We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$ python code.py Traceback (most recent call last): File "code.py", line 47, in if cv2.contourArea(c) < 600: cv2.error: OpenCV(4.1.0) 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'
[ WARN:1] terminating async callback
The text was updated successfully, but these errors were encountered:
This is happening because of version issues. You may find some solutions here
Sorry, something went wrong.
Please go through the following link https://stackoverflow.com/questions/39475125/compatibility-issue-with-contourarea-in-opencv-3
In Opencv 3 API version the cv2.findContours() returns 3 objects
Check you Opencv version
No branches or pull requests
$ python code.py
Traceback (most recent call last):
File "code.py", line 47, in
if cv2.contourArea(c) < 600:
cv2.error: OpenCV(4.1.0) 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'
[ WARN:1] terminating async callback
The text was updated successfully, but these errors were encountered: