KhadijehValipour / Iranian-license-plates-recognition

easyOCR & DTRB for Iranian license plates recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Iranian License Plate Recognition

We will compare the performance of OCR and DTRB and see how accurate the results are in correctly identifying Iranian license plates

![Alt text](image.png)

How to install

pip install -r requirements.txt

OCR

Give the language you are considering to easyOCR and see the results with the Matplotlib library. You can remove the percentage of detection probabilities with a simple Python condition and see those that have a higher percentage of probability.

More complete description and use of EasyOCR

results

Alt text

Alt text

Alt text

Alt text

Alt text


deep-text-recognition-benchmark

Alt text

More complete description and use of deep-text-recognition-benchmark

How to create dataset

Download via IR-LPR repository

How to train

clone the DTRB repository, We run the demo.py file that was previously taught for a few pictures to make sure of the correctness of our work so far, and we download the file with the pth extension, which is already designed and trained with the architecture, and we use the transfer training method. We use it to teach Iranian license plates that have not been seen on the network.

How to run

--train_data dataset/train --valid_data dataset/validation \
--select_data / --batch_ratio 1 --num_iter 10000 --batch_max_length 8 --valInterval 50 \
--Transformation TPS --FeatureExtraction ResNet --SequenceModeling BiLSTM --Prediction Attn 

results

Image name 00005.jpg 00008.jpg 01290.jpg 01666.jpg 01309.jpg 01310.jpg
Image Alt text Alt text Alt text Alt text Alt text Alt text
Recognized text from image 95t38633 44h67355 42t7711 73i34174 27t54314 37t58922
Letters ت ه ت ی ت ت

About

easyOCR & DTRB for Iranian license plates recognition


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%