-
Notifications
You must be signed in to change notification settings - Fork 842
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.connectedComponentsWithStats raises weird error on latest version #602
Comments
Lets track it here: opencv/opencv#21366 |
For me removing the parameter connectivity=4 from cv2.connectedComponentsWithStats fixed it. This is in cojunction with easyOCR. |
FYI: This still fails with the latest release The OpenCV C++ library has been fixed, but not released yet. |
Thanks!,This has worked for me. |
thanks!!!! |
thankyou so much. |
Where can I find the file? what is it called? |
For anyone else experiencing this issue, @robertschweizer seemed to have it right. I ran the following command:
and the exception went away. The suggestion from @noxqs works as well but obviously is far less ideal than having the packages "fix" themselves. |
Actual behaviour
When using cv2.connectedComponentsWithStats I am presented with a mysterious error
Took me a long time to figure out what's wrong because of the vague error message...
Finally solved it by switching back to version 4.5.4.60
Steps to reproduce
Windows 10 64bit
opencv-python 4.5.5.62
Use the cv2.connectedComponentsWithStats function with the latest opencv-python version
The text was updated successfully, but these errors were encountered: