i am using win7 x64 and there are cameras connecting with my PC
1.Intergrated_webcamera
2.QuickCame_Orbit/Sphere_AF
3.EO-1312C
I tested with the simple Applet "test camera",
it only list the 1 and 2 cameras. but i want to use camera3 for my experiment.
i guess normally camera3 have to install an external driver to work.
i am a greenhand here,
Can anyone tell me how to let Processing find the camera with extera driver.
Also, there are C++ code on my hand, which seems can be used to read camera. but i still donot know Processing can read these code. like ,h.cpp
i tried GSVideo, OpenCV, JMyron. GSVideo and OpenCV can not find camera3, and JMyron can read but shows a werid video. It is possible to transfer data from JMyron to OpenCV in Processing.?
import processing.video.*;
Capture cam;
void setup() {
size(320, 240);
String[] cameras = Capture.list();
if (cameras.length == 0) {
println("There are no cameras available for capture.");
exit();
} else {
println("Available cameras:");
for (int i = 0; i < cameras.length; i++) {
println(cameras[i]);
}
// The camera can be initialized directly using an
// element from the array returned by list():
cam = new Capture(this, cameras[0]);
cam.start();
}
}
void draw() {
if (cam.available() == true) {
cam.read();
}
image(cam, 0, 0);
// The following does the same, and is faster when just drawing the image
// without any additional resizing, transformations, or tint.