How to get work a uEye cam in processing?
in
Core Library Questions
•
8 months ago
Hello guys,
I was trying to make a tracking with a IR cam, but the problem is that processing doesn't recognize my cam.
I'm working with a Asus Eee PC 1000H and I've tested this little script with three cam's. First with the internal cam from my Netbook. Secondly with a Logitech C310 and at last with the IDS uEye UI-1555LE-C-GL. Which is my IR cam.
My result was that the first and second cam works, but the third not. I have all the drivers and progs installed that I could find for this cam, but it only works with the own programs. Of course I've Quick Time Player and VDig installed.
I try this script also in to different processing Versions. First the 1.5.1 and secondly the 2.0b7. In the first Version nothing works and in the second only the first and the second cam.
This is the script that I found here in the processing Website, which I've used for trying:
- import processing.video.*;
- Capture cam;
- void setup() {
- size(640, 480);
- 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.
- //set(0, 0, cam);
- }
I don't know if this example doesn't work with IR cams.
I was also trying to solve it with the other processing Video examples and also with OpenCV, but it doesn't works at all. Only with this example.
Maybe you have an idea for my solution. Thanks for your time.
1