0

Python Document Scanner Using OpenCV and Numpy

I have created my external module for the rectangle box function. i am successfully able to import the module in my maintain code. Also there are no visible errors in the code. But when I run the program in SPYDER, I get the following error. Traceback (most recent call last): File "<ipython-input-27-fe60ef962c9d>", line 36, in <module> (contours, _) = cv2.findContours(edged, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE) ValueError: too many values to unpack (expected 2) Please do help me out. Thanx...... Main Code- https://code.sololearn.com/cZW1842mzRQy/?ref=app Module- https://code.sololearn.com/c60j2QRKBN8l/?ref=app

14th Apr 2019, 10:21 AM
Nilutpol Kashyap
Nilutpol Kashyap - avatar
1 Antwort
0
try quitting the parenthesis in (contours, _)
11th Apr 2020, 9:47 AM
Vicente Gras Mas
Vicente Gras Mas - avatar