Automatic-leaf-infection-identifier icon indicating copy to clipboard operation
Automatic-leaf-infection-identifier copied to clipboard

To solve the "too many values to unpack" error

Open V2dha opened this issue 3 years ago • 0 comments

In some opencv versions cv2.findContours returns 2 variables i.e contours, hierarchy or 3 variables i.e image, contours, hierarchy. Hence to avoid this version problem added list slicing which would always return the last two values so whether it returns 2 or 3 values it won't give an error.

V2dha avatar May 14 '21 14:05 V2dha