GeekyPRAVEE / OpenCV-Projects

OpenCV projects using python
147 stars 244 forks source link

error drawContour #1

Open andung opened 3 years ago

andung commented 3 years ago

error: (-215:Assertion failed) reader.ptr != NULL in function 'cvDrawContours' line 39

phernady commented 3 years ago

error: (-215:Assertion failed) reader.ptr != NULL in function 'cvDrawContours' line 39

I have the same issue. Somehow the cv2 does not find the license plate as a contour with the original examle image. Even removing the limit at the sorting, only a small part in the headlight is recognized. Version: opencv-python==4.4.0.40

Maybe some tuning needed at the filtering or edging?

whodanyalahmed commented 3 years ago

same error @GeekyPRAVEE please solve this issue

arya312 commented 2 years ago

yes im facing the same problem. the draw contour is not detecting any contour

wild-civil commented 1 year ago

error: (-215:Assertion failed) reader.ptr != NULL in function 'cvDrawContours' line 39

I change the picture, and it worked.