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

cannot create gestures #15

Open
vamshikulkarni opened this issue Nov 10, 2021 · 2 comments
Open

cannot create gestures #15

vamshikulkarni opened this issue Nov 10, 2021 · 2 comments

Comments

@vamshikulkarni
Copy link

create_gestures.py is giving an error when opening the camera and trying to find contours which it cannot find.

@RayzicKA
Copy link

RayzicKA commented Apr 2, 2022

create_gestures.py is giving an error when opening the camera and trying to find contours which it cannot find.

did u find the solution ????

@PrathameshJadhav33
Copy link

For this issue you need to change the line in create_gestures.py
from
contours = cv2.findContours(thresh.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)[1]
to
contours = cv2.findContours(thresh.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)[0]

also you need to click 'c' as soon as the camera shows up.

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

3 participants