hritik7080 / Car-License-Plate-Recognition

This is an implementation of a research paper - creating an Automatic Car License Plate Recognizer with some Computer Vision Techniques.
https://www.geeksforgeeks.org/detect-and-recognize-car-license-plate-from-a-video-in-real-time/
94 stars 66 forks source link

error while testing video #1

Closed vihari1729 closed 4 years ago

vihari1729 commented 4 years ago

Hi, I cloned your repository and tested with your video and got the following error

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

not sure, what went wrong. could you please help me in testing the video

hritik7080 commented 4 years ago

Hi @vihari1729, The problem is with the version of your OpenCV. I have just included my article in the repository, make sure you install all the libraries with given versions.

vihari1729 commented 4 years ago

Yes, it is working if i change the opencv version and try with your video. but not working on any of my videos.

hritik7080 commented 4 years ago

There may be the problem of camera angle or the size of the plate coming in the frame. If you see in the constructor of Plate Finder Class, I have set min and max area values for the plate contour. If the program not extracting the plate from your video that means the area of the plate contour doesn't lie within the given range.

vihari1729 commented 4 years ago

The indian plate is of 10 characterstics. it is only detecting 8 or 9 characters in live and after getting detected, the characters recognition it is giving few false values. maybe u didn't train with all alphabets and digits

hritik7080 commented 4 years ago

Yeah @vihari1729 Actually I didn't found any suitable Indian video for testing and this is an implementation of a research paper, so I have done everything with respect to that given video. Maybe you should refer to the article. I have written all the limitations of this CV model there. Screenshot (316)