You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I find that the problem is in the call cv2.findContours. Maybe the script uses opencv2, from my distro repos I only find opencv3, but I have not had time to read the documentation.
in older versions cv2.findContours return 2 values
in new versions of opencv, this funcion return 3 values, so you have to update the code to receive these 3 values:
Ex:
from contours, hierarchy = cv2.findContours
to something like this:
_, contours, hierarchy = cv2.findContours
I'm getting this error when trying to run the script https://github.com/danvk/oldnyc/blob/master/ocr/tess/crop_morphology.py:
Any hint of what can be the issue?
The text was updated successfully, but these errors were encountered: