Aadhaar-Card-OCR icon indicating copy to clipboard operation
Aadhaar-Card-OCR copied to clipboard

Too many values to unpack

Open SaikrishnaViridis opened this issue 7 years ago • 2 comments

" /crop_morphology.py test.jpg " is returning too many values to unpack message. Could you please provide the fix for this.

SaikrishnaViridis avatar Oct 18 '17 09:10 SaikrishnaViridis

Actually the purpose of this " /crop_morphology.py test.jpg " is to crop the image where text resides.

dilippuri avatar Oct 19 '17 17:10 dilippuri

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.

datNurd avatar Nov 29 '17 07:11 datNurd