apoorva-dave / LicensePlateDetector

Detects license plate of car and recognizes its characters
345 stars 113 forks source link

license_plate = np.invert(DetectPlate.plate_like_objects[0]) IndexError: list index out of range #17

Closed utkarsh9450 closed 4 years ago

utkarsh9450 commented 4 years ago

hi @apoorva-dave your project works best for the already input videos and images but whenever i try to take video created by me as input the bounding boxes are not created and the following error comes ,could u please provide any solution for this issue.

apoorva-dave commented 4 years ago

This error comes when no plate is detected. You can try the following -

  1. Instead of working on videos directly first see if you are able to detect license plate in an image ( a frame of the video that you are giving as input.) Debugging will become easier for image.
  2. If you are facing issues in that, try updating the breadth and height of the license plate that I am assuming in the code. Try to see what is getting detected. Also the code doesn't handle corner cases where image of car is not properly aligned.
utkarsh9450 commented 4 years ago

Thank you for your response. I implemented the same and found it to be working fine.

On Mon 15 Jun, 2020, 12:33 PM Apoorva Dave, notifications@github.com wrote:

This error comes when no plate is detected. You can try the following -

  1. Instead of working on videos directly first see if you are able to detect license plate in an image ( a frame of the video that you are giving as input.) Debugging will become easier for image.
  2. If you are facing issues in that, try updating the breadth and height of the license plate that I am assuming in the code. Try to see what is getting detected. Also the code doesn't handle corner cases where image of car is not properly aligned.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/apoorva-dave/LicensePlateDetector/issues/17#issuecomment-643943442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMJA5ROD5LAOLDMI6E66YJLRWXBTLANCNFSM4NGUZ2NA .