330
edits
Line 19: | Line 19: | ||
<source lang="Java" line start= "17"> | <source lang="Java" line start= "17"> | ||
printArray(Capture.list()); | printArray(Capture.list());//to get the webcam source list | ||
//cam = new Capture(this, 640, 480); | //cam = new Capture(this, 640, 480); //default webcam in your laptop | ||
cam = new Capture(this, 640, 480, Capture.list()[2]);//Logitech C270 Webcam | cam = new Capture(this, 640, 480, Capture.list()[2]);//Logitech C270 Webcam | ||
edits