Skip to content

Computer vision project to perform real time license plate detection and OCR to read license plate text and make entry in a database

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
license-plate-detection.ipynb
Notifications You must be signed in to change notification settings

aayush1036/residential-safety-solution

Repository files navigation

Vehicle_Security

This project aims to track unauthorized vehicles entering a society from the CCTV camera footages using YOLO-V5 model to detect the license plates. The model was trained on Car plate detection dataset. Then the license plate numbers were read from the license plates using EasyOCR and they were entered in the database

Authorized residents and vehicles can be registered by using the UI made on the flask app

Setup and usage

  1. Clone the github repository
git clone https://github.com/aayush1036/vehicle-security.git
  1. Create virtual environment
virtualenv env 
# For linux 
source env/bin/activate
# For windows 
env\Scripts\activate
  1. Install the required dependencies
pip install -r requirements.txt
  1. Edit the config file to suit your database credentials

  2. Start the detections by using the detect.py script on sample video or your CCTV/webcam

# For detecting on sample video
python detect.py --society YOUR_SOCIETY_NAME --position ENTRY/EXIT --path sample.mp4
# For detecting on CCTV/Webcam
python detect.py --society YOUR_SOCIETY_NAME --position ENTRY/EXIT --device 0/1/2....
  1. If you want to retrain the model on custom data, please refer to the kaggle notebook published on License plate detection notebook by me and please upvote it and comment on it if you liked it

Demo

User Interface

  1. Home page

1. To register person

2. To register vehicle

Detailed explanation of the project can be found on Medium Article. Please upvote the article if you find it helpful

Future prospects

  1. Improve OCR
  2. Make predictions more faster

About

Computer vision project to perform real time license plate detection and OCR to read license plate text and make entry in a database

Topics

Resources

License

GPL-3.0, Unknown licenses found

Licenses found

GPL-3.0
LICENSE
Unknown
license-plate-detection.ipynb

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages