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

Facing Errors Mian.py #17

Open
nomanbahoo opened this issue May 29, 2019 · 5 comments
Open

Facing Errors Mian.py #17

nomanbahoo opened this issue May 29, 2019 · 5 comments

Comments

@nomanbahoo
Copy link

main()
listOfPossiblePlates = DetectPlates.detectPlatesInScene(imgOriginalScene) # detect plates
listOfPossibleCharsInScene = findPossibleCharsInScene(imgThreshScene)
imgContours, contours, hierarchy = cv2.findContours(imgThreshCopy, cv2.RETR_LIST, cv2.CHAIN_APPROX_SIMPLE) # find all contours
ValueError: not enough values to unpack (expected 3, got 2)
Capture

@RYucel
Copy link

RYucel commented Jun 3, 2019

Same Error I got too

@RYucel
Copy link

RYucel commented Jun 3, 2019

Change these lines in
detectPlate.py
Line no: 133-----

 contours, npaHierarchy = cv2.findContours(imgThreshCopy, cv2.RETR_CCOMP, 
 cv2.CHAIN_APPROX_SIMPLE)  # find all contours

detectChars.py
Line no: 239-----

 contours, npaHierarchy = cv2.findContours(imgThreshCopy, cv2.RETR_CCOMP, 
 cv2.CHAIN_APPROX_SIMPLE)

for contour in contours:                        # for each contour
    possibleChar = PossibleChar.PossibleChar(contour)

@nomanbahoo
Copy link
Author

thanks sir its working for me ... i really appreciate you ...kindly you can tell me how can i use this project for Pakistani car number plates ?????

@AthiraAsakumar
Copy link

I had same errors but after changing the above mentioned lines code worked. Thank you so much . Its my MCA project .

@slowrunner
Copy link

Interesting, neither change worked for me in Python3, but the adding [-2:] at the end of the original findContours() worked.

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

4 participants