cv2.CHAIN_APPROX_SIMPLE ValueError: not enough values to unpack (expected 3, got 2)
cdpavan opened this issue · 1 comments
cdpavan commented
getting below error while running code pls help me out
cv2.CHAIN_APPROX_SIMPLE
ValueError: not enough values to unpack (expected 3, got 2)
keynekassapa13 commented
Your OpenCV version might be different than mine.
cv2.findContours() returns only the contours and hierarchy.
contours, _ = cv2.findContours( self.res_img, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE )