bikz05 / digit-recognition

Handwritten Digit Recognition using OpenCV, sklearn and Python
131 stars 90 forks source link

ValueError: too many values to unpack #4

Open Umair-Anwar opened 7 years ago

Umair-Anwar commented 7 years ago

capture

with pre 0.18 version of skimage.

image

Please look into it. Thanks, Umair

msclar commented 6 years ago

I'm having the same error, were you able to solve it? Thanks!

developer-young commented 6 years ago

Here the return statements have changed, see http://docs.opencv.org/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html?highlight=findcontours It should be change to read: _,ctrs, hier = cv2.findContours(im_th.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)

egvs commented 6 years ago

capture2

I got this error while executing the same code for another image