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

Error on contourArea function when running create_gestures.py #37

Open
khoalan opened this issue Nov 19, 2019 · 0 comments
Open

Error on contourArea function when running create_gestures.py #37

khoalan opened this issue Nov 19, 2019 · 0 comments

Comments

@khoalan
Copy link

khoalan commented Nov 19, 2019

Traceback (most recent call last):
File "create_gestures.py", line 106, in
store_images(g_id)
File "create_gestures.py", line 70, in store_images
contour = max(contours, key = cv2.contourArea(contours[0]))
cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\imgproc\src\shapedescr.cpp:274: error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) in function 'cv::contourArea'

Do you have any idea about this error ? I tried google it but there was no solution.

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

1 participant