Coder Social home page Coder Social logo

alexander-zadorozhnyy / licence-plate-recognition Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 53.58 MB

🛠 Licence plate detection and recognition tool. A new lightweight tool is able to recognize license plates in real time on devices with significant limitations in computing power.

License: Apache License 2.0

Python 100.00%
licence-plate-detection licence-plates-recognition mrnet object-detection pytorch real-time tensorflow tensorflow-lite yolov8

licence-plate-recognition's Introduction

logo

version issues forks stars license

Description

🛠 Introducing an innovative license plate detection and recognition tool that breaks through the barriers of computing power limitations. This lightweight solution leverages the power of YOLOv8s and MRNetm models to achieve real-time license plate recognition on devices with constrained resources. YOLOv8s, a state-of-the-art object detection model, efficiently detects license plates with remarkable accuracy. MRNetm, a compact deep learning model, specializes in recognizing and extracting alphanumeric characters from license plates.

This tool has a wide range of applications, including traffic enforcement, parking management, and vehicle tracking. It enables automated toll collection, traffic violation detection, and efficient vehicle identification in real time. With its ability to operate on low-powered devices such as smartphones, surveillance cameras, and edge devices, the tool offers scalability and versatility.

By harnessing YOLOv8s and MRNetm, this license plate detection and recognition tool overcomes the limitations of computing power, making it a valuable solution for traffic management systems, parking facilities, and law enforcement agencies. Its lightweight nature and real-time capabilities pave the way for enhanced efficiency, security, and automation in various domains.

The work was carried out with the support and on the basis of the laboratory of theoretical and interdisciplinary problems of Informatics of the Federal State Budgetary Institution of Science "St. Petersburg Federal Research Center of the Russian Academy of Sciences" (St. Petersburg FRC RAS). Official website: https://dscs.pro/

Licence Plate Recognition Example

Captcha examples that can be solved by this CAPTCHA solver

Usage guide⚙️

Step0: Clone the Project
git clone https://github.com/Alexander-Zadorozhnyy/Licence-Plate-Recognition.git
cd Licence-Plate-Recognition
Step1: Create & Activate Conda Env (Optional)
conda create -n "Licence-Plate-Recognition" python=3.10
conda activate Licence-Plate-Recognition
Step2: Install PIP Requirements
pip install -r requirement.txt
Step3: Run app/main.py

If you want only to test app, all params have default values

python -m app.main.py --source --detection_model --recognition_model --size --plate

Training guide ‍🔬

Step0: Clone the Project
git clone https://github.com/Alexander-Zadorozhnyy/Licence-Plate-Recognition.git
cd Licence-Plate-Recognition
Step1: Create & Activate Conda Env (Optional)
conda create -n "Licence-Plate-Recognition" python=3.10
conda activate Licence-Plate-Recognition
Step2: Install PIP Requirements
pip install -r requirement.txt
Step3: Configure src/detection/yaml/your_file.yaml
Step4: Add your dataset to src/datasets folder. To create clear and efficient dataset you canuse src/detection/utils functions
Step5: Train YOLO model
python -m src.detection.train --model model_name --yaml path_to_yaml --epoch number_of_epoch --imgsz size_of_images --batch bathc_size --augment True
Step6: Configure src/recognition/config.py
Step7: Train MRNet model
python -m src.recognition.train.py --train_path path_to_train_folder --valid_path path_to_valid_folder --augment True --saved_model_name save_path --save_csv True

Metrics

Licence Plate Detector

Time: 23.4ms for 1 img

Accuracy: ~96%

Licence Plate Recognizer

Time: 25ms for 1 img

Accuracy:  ~90%

Documentation

You can check some details about this solver in the docs directory:

  • docs/report.pdf - educational practice's report (RU)

Authors

License

Source code of this repository is released under the Apache-2.0 license

licence-plate-recognition's People

Contributors

alexander-zadorozhnyy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lynkeusai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.