Open kdiogenes opened 6 years ago
the same problem to u
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?