-
Notifications
You must be signed in to change notification settings - Fork 40
Description
I get these error messages when trying to run the code. It has the correct camera and setup...Not understanding why V4L2 is throwing an error (it did work once, but then stopped again). Is it the wrong version of OpenCV?
Initilize camera.
VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream: Device or resource busy
start camera thread
camera init completed.
OpenCV Error: Assertion failed (size.width>0 && size.height>0) in imshow, file /build/opencv-L65chJ/opencv-3.2.0+dfsg/modules/highgui/src/window.cpp, line 304
Traceback (most recent call last):
File "picar-mini-kbd-common.py", line 145, in
cv2.imshow('frame', frame)
cv2.error: /build/opencv-L65chJ/opencv-3.2.0+dfsg/modules/highgui/src/window.cpp:304: error: (-215) size.width>0 && size.height>0 in function imshow