Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I got same as your error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'. Unfortunately, you can't get debug to fix it.

  • VIDEOIO ERROR: V4L2: Could not obtain specifics of capture window. VIDEOIO ERROR: V4L: can't open camera by index 1 /dev/video1 does not support memory mapping

To get it working. Change this:

cap = cv2.VideoCapture(1)

to:

cap = cv2.VideoCapture(0)

I got same as your error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'. Unfortunately, you can't get debug to fix it.

  • VIDEOIO ERROR: V4L2: Could not obtain specifics of capture window. VIDEOIO window.
  • VIDEOIO ERROR: V4L: can't open camera by camera by index 1 1
  • /dev/video1 does not support memory support memory mapping

To get it working. Change this:

cap = cv2.VideoCapture(1)

to:

cap = cv2.VideoCapture(0)