Does Ximea support OpenCV Python?

asked 2014-06-24 16:48:44 -0500

niveK gravatar image

updated 2014-06-25 00:55:03 -0500

berak gravatar image

I have a Ximea XiQ camera, and I want to capture an image with it using OpenCV python on a windows 7 , but whenever I try to initialize and open the camera with a = cv2.VideoCapture(0) and then, a.isOpened() always returns false and I am unable to capture an image. Is there Ximea support for Python? How can I use OpenCV python to capture an image on a Ximea camera?

edit retag flag offensive close merge delete


try cv2.getBuildInformation() to see if the opencv libs(highgui) were build with ximea support. it's probably off by default.

to enable it, you will have to rebuild from src, cmake -DWITH_XIMEA=ON, if it needs an sdk(no idea), install it before doing so.

berak gravatar imageberak ( 2014-06-25 00:54:24 -0500 )edit