This is a license plate localizer using pre-trained YOLOv5, combined with a text extractor built with a pre-trained TrOCR.
The functioning is simple:
- The yolo model localize the plate(s)
- The ROI (Region Of Interest) is cropped
- The TrOCR model is used on the cropped image to extract the text from it
Once you downloaded my repo, set it as your working directory and type in the python console:
pip install -r requirements.txt
In the line 25 you have to put the path of the image you want to submit to the models:
img = 'path/to/your/image'