Trying use my Udoo QUAD to capture images the camera doesn't work. Running a simple code in python and opencv, when i call the camera using `cap = cv2.VideoCapture(-1)`, for example, this message is returned. -------------------------------------------------------------------------------- HIGHGUI ERROR: libv4l unable to ioctl S_FMT HIGHGUI ERROR: libv4l unable to ioctl VIDIOCSPICT OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /build/buildd/opencv-2.4.8+dfsg1/modules/highgui/src/window.cpp, line 261 Traceback (most recent call last): File "face.py", line 7, in <module> cv2.imshow("Video", frame) cv2.error: /build/buildd/opencv-2.4.8+dfsg1/modules/highgui/src/window.cpp:261: error: (-215) size.width>0 && size.height>0 in function imshow -------------------------------------------------------------------------------- If a use a UsbCam, WORK OK!! WHY? Whats is the problem??
Does it not work at all or only not in CV? Did you follow these instructions: https://www.udoo.org/docs/Hardware_&_Accessories/UDOO_Camera_Module.html Is this working? Code: gst-launch-1.0 imxv4l2videosrc ! imxipuvideosink
As the camera can't work anymore as loopback device since Udoobuntu 2.x, it cannot be used in CV. https://www.udoo.org/forum/threads/...-qr-code-scanning-via-python.6563/#post-24967 Or someone finds a solution.....
Thanks! This command worked: gst-launch-1.0 imxv4l2videosrc! imxipuvideosink But, I have some questions using cam. how can I do it using opencv c++ and, seeing the error returned, do I need to compile opencv again?