Need Help Showing Video from Firewire Camera Using Java Opencv 2.4.9 on Ubuntu

181 views Asked by At

I can show video from a USB webcam, but when I try to show video from a firewire camera, I get the following erorr:

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0

I have used Coriander and can see video from the firewire camera through there. Any suggestions?

1

There are 1 answers

0
karlphillip On

Well, OpenCV is not compiled with CMU camera support by default, but it supports it. You can try to enable this feature and rebuild OpenCV.

Another alternative requires to use libdc1394 to retrieve frames, and then convert that data to a Mat.