Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

해당 부분에서 계속 오류가 발생합니다 ㅠㅠ #2

Open
jichoi1010 opened this issue Mar 28, 2021 · 0 comments
Open

해당 부분에서 계속 오류가 발생합니다 ㅠㅠ #2

jichoi1010 opened this issue Mar 28, 2021 · 0 comments

Comments

@jichoi1010
Copy link

jichoi1010 commented Mar 28, 2021

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant