keynekassapa13/num-plate-track

cv2.CHAIN_APPROX_SIMPLE ValueError: not enough values to unpack (expected 3, got 2)

cdpavan opened this issue · 1 comments

Hi @keynekassapa13

getting below error while running code pls help me out

cv2.CHAIN_APPROX_SIMPLE
ValueError: not enough values to unpack (expected 3, got 2)

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 )

Source: https://stackoverflow.com/questions/54164630/want-to-find-contours-valueerror-not-enough-values-to-unpack-expected-3-go