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- 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 agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.