unproject_text icon indicating copy to clipboard operation
unproject_text copied to clipboard

Error with the usage command

Open anuragreddygv323 opened this issue 7 years ago • 3 comments

m-c02sh1f0g8wl:unproject_text-master arg000m$ python unproject_text.py deskew0.jpg Traceback (most recent call last): File "unproject_text.py", line 503, in main() File "unproject_text.py", line 490, in main contours, hierarchy = get_contours(img) File "unproject_text.py", line 135, in get_contours cv2.CHAIN_APPROX_NONE) ValueError: need more than 2 values to unpack

could you help me with this ?

anuragreddygv323 avatar Mar 14 '17 21:03 anuragreddygv323

@anuragreddygv323 i have the same problem . did you solve it?

zhanglaplace avatar Apr 12 '17 09:04 zhanglaplace

@anuragreddygv323 @zhanglaplace it has to unpack more than 2 values but it isn't able to, check get_contours function and change 'contours, hierarchy = cv2.findContours() to _,contours, hierarchy = cv2.findContours()', this should solve. It has to do with opencv version, better to run it on opencv 3.0.0.

rremani avatar Jul 26 '17 13:07 rremani

@rremani thanks, i have already solved the problem. 😄

zhanglaplace avatar Jul 27 '17 01:07 zhanglaplace