-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
showing error in making gestures #19
Comments
gesture folder are made but cant save any image over that |
The problem related to not being able to run CreateGest.py is due different versions of OpenCV as cv2.findContours() has varying return signatures in OpenCV 3.4.X, OpenCV 2.X and 4.1.X. using the code below
instead of
runs CreateGest.py and saves 1200 images in the folder. However, the images are still not generating good hand contours. I am using @akshaybahadur21 which opencv version did you use in this project ? |
anyway, the above method in opencv == 4.1.1.26 had contour problem as it was finding black object from white background. This is incorrect because in OpenCV, object to be found should be white and background should be black. So the image needs to be inverted using
instead of :
so the code after all changes is :
CreateGest.py runs correctly using above changes in code for opencv version 4.1.1.26 |
It is still not creating the gestures |
my create gesture file is completely working but it is not saving the images |
cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\imgproc\src\shapedescr.cpp:274:
The text was updated successfully, but these errors were encountered: