-
Notifications
You must be signed in to change notification settings - Fork 58
해당 부분에서 계속 오류가 발생합니다 ᅲᅲ #2
Open
Description
for i, plate_img in enumerate(plate_imgs):
plate_img = cv2.resize(plate_img, dsize=(0, 0), fx=1.6, fy=1.6)
_, plate_img = cv2.threshold(plate_img, thresh=0.0, maxval=255.0, type=cv2.THRESH_BINARY | cv2.THRESH_OTSU)
# find contours again (same as above)
_, contours, _ = cv2.findContours(plate_img, mode=cv2.RETR_LIST, method=cv2.CHAIN_APPROX_SIMPLE)
plate_min_x, plate_min_y = plate_img.shape[1], plate_img.shape[0]
plate_max_x, plate_max_y = 0, 0
find contours again (same as above)
----> 9 _, contours, _ = cv2.findContours(plate_img, mode=cv2.RETR_LIST, method=cv2.CHAIN_APPROX_SIMPLE)
10
11 plate_min_x, plate_min_y = plate_img.shape[1], plate_img.shape[0]
ValueError: not enough values to unpack (expected 3, got 2)
Metadata
Metadata
Assignees
Labels
No labels