EvilPort2 / Sign-Language

A very simple CNN project.
759 stars 354 forks source link

Error on contourArea function when running create_gestures.py #37

Open khoalan opened 4 years ago

khoalan commented 4 years ago

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.