Skip to content

Code not running due to V4L2 errors (amongst others) #7

@jlrw

Description

@jlrw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions