cv2.findContours returns 3 values , not just 2 , which leads to a 'too many values to unpack' i added 'contourImage, ' as a dummy before 'contours, '