1

I'm working a project that getting a video from usb camera on raspi for encode qr code. So I wanna display the current frame, but i am getting this error:

<cv2.imshow('Current', frame)
  error:/build/opencv-zRYBJW/opencv-2.4.9.1+dsfg/modules/highgui/src/window.cpp:266:error:(-215) size.width> 0 in function imshow >

how can i solve this problem?

  • have to show more of your code.....looks like maybe its a size issue – Chad G May 11 '18 at 15:29

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.