Aqsa-K/Car-Number-Plate-Detection-OpenCV-Python

Not Working

MannanMalik3998 opened this issue · 2 comments

new, cnts, _ = cv2.findContours(edged.copy(), cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE)
ValueError: not enough values to unpack (expected 3, got 2)

replacec to this (new, cnts) = cv2.findContours(edged.copy(), cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE)

Replace the line with this: (cnts, heirarchy) = cv2.findContours(edged.copy(), cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE). This will work.