Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

got error in get_hand_images.py #13

Closed
AnowarCST opened this issue Dec 19, 2018 · 2 comments
Closed

got error in get_hand_images.py #13

AnowarCST opened this issue Dec 19, 2018 · 2 comments

Comments

@AnowarCST
Copy link

$ python3.6 get_hand_images.py

VIDEOIO ERROR: V4L2: Pixel format of incoming image is unsupported by OpenCV
Unable to stop the stream: Device or resource busy
VIDEOIO ERROR: V4L: can't open camera by index 0
Traceback (most recent call last):
File "get_hand_images.py", line 28, in
main()
File "get_hand_images.py", line 22, in main
cv2.imshow("Capturing gesture", frame)
cv2.error: OpenCV(3.4.3) /io/opencv/modules/highgui/src/window.cpp:356: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'

Maybe I missed something or version related problem. Could you please help me?
Thanks in advance.

@akshaybahadur21
Copy link
Owner

@AnowarCST - I think it's mostly because of the webcam.
Try restarting your webcam.
If you are using an external webcam, switch index to 1.

@akshaybahadur21
Copy link
Owner

Closing due to no further comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants