Aadhaar-Card-OCR
Aadhaar-Card-OCR copied to clipboard
Too many values to unpack
" /crop_morphology.py test.jpg " is returning too many values to unpack message. Could you please provide the fix for this.
Actually the purpose of this " /crop_morphology.py test.jpg " is to crop the image where text resides.
Hey Sai krishna, Replace, 'contours, hierarchy' to '_,contours, hierarchy' in the python file(lines 116 and 237). This error is due to the version of CV2. The new CV2 version returns 3 values namely image,contours, hierarchy.