Automatic-leaf-infection-identifier
Automatic-leaf-infection-identifier copied to clipboard
To solve the "too many values to unpack" error
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.