License Plate Recognition

Setting Up


Download the weights for Yolov5 and Low-Light Image Enhancement model from here.

and create a folder “weights” and put them inside.

git clone https://github.com/amish1706/license_plate_recognition

Inference Script

python pipeline.py <image_path>

Required Arguments:

  • <image_path>

Options:

  • --save : Save the annotated image in output directory, i.e. outputs
  • --show: View the annotated image
  • --llie : Apply low-light image enhancement (if your image is shot in low light, set this to True)
  • --out_dir: Output directory for saving results
  • --model: TrOCR model used for OCR (default : trocr-small-printed) Check available models

Gradio Local Deployment

python deploy.py