huydevct / Vietnam-License-Plate-Recognition

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vietnamese License Plate Recognition

This repository provides you with a detailed guide on how to training and build a Vietnamese License Plate detection and recognition system. This system can work on 2 types of license plate in Vietnam, 1 line plates and 2 lines plates.

Installation

  git clone https://github.com/Marsmallotr/License-Plate-Recognition.git
  cd License-Plate-Recognition

  # install dependencies using pip 
  pip install -r ./requirement.txt
  • Pretrained model provided in ./model folder in this repo

  • Download yolov5 (old version) from this link: yolov5 - google drive

  • Copy yolov5 folder to project folder

Run License Plate Recognition

  # run inference on webcam (15-20fps if there is 1 license plate in scene)
  python webcam.py 

  # run inference on image
  python index.py -i test_image/3.jpg

  # run LP_recognition.ipynb if you want to know how model work in each step

Result

Demo 1

Vid

Vietnamese Plate Dataset

This repo uses 2 sets of data for 2 stage of license plate recognition problem:

Thanks Mì Ai and winter2897 for sharing a part in this dataset.

Training

Training code for Yolov5:

Use code in ./training folder

  training/Plate_detection.ipynb     #for LP_Detection
  training/Letter_detection.ipynb    #for Letter_detection

About


Languages

Language:Jupyter Notebook 56.7%Language:Python 40.8%Language:JavaScript 1.0%Language:HTML 0.8%Language:Shell 0.4%Language:Dockerfile 0.3%Language:Roff 0.0%Language:PureBasic 0.0%