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

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' #14

Open
saikumarvaddepally15 opened this issue Sep 23, 2019 · 3 comments

Comments

@saikumarvaddepally15
Copy link

Screenshot (126)

@nguyenthanhluan98
Copy link

nguyenthanhluan98 commented Jan 19, 2020

In opencv 4.1.1, cv2.findContours return 2 values
let try it
contours,hierarchy = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
https://stackoverflow.com/questions/54273763/assertion-error-215-npoints-0-and-error-while-extracting-letters-from-capt

@snehitvaddi
Copy link

snehitvaddi commented Feb 8, 2020

@saikumarnani0304 Fasing same issue. After adding hierarchy it is giving error like :
Expected Ptr<cv::UMat> for argument '%s'.
My code looks like this!!

Capture

@zoldaten
Copy link

that is not an opencv issue it seems to be that problems with camera. no access to it. try different camera or try to change videoinput from 0 to 1.

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

4 participants