I am using Processing 2.0 on mac and am trying to run a HD webcam (Logitech c910, 1080p capable) with the Capture class. However it looks like it is taking the max resolution from the built in iSight camera since it won't let me instantiate the external webcam with a resolution greater than 640x480. My code is:
Thanks in advance!
- import processing.video.*;
Capture cap;
void setup(){
size(1920, 1080);
cap = new Capture(this, 1920, 1080, "Logitech HD Webcam C910", 30);
cap.start();
}
void draw(){
if(cap.available() == true){
cap.read();
image(cap, 0, 0);
}
} - /* Throws the following error:
- Exception in thread "Animation Thread" java.lang.RuntimeException: The requested resolution of 1920x1080, 30/1fps is not supported by the selected capture device.
Use one of the following resolutions instead:
640x480, 5.00 fps (5/1)... - */
Thanks in advance!
1