https://github.com/zafarrehan/licence_plate_detection
This repository uses a custom trained model trained on SSDMobileNetV2 to detect licence plates in images
https://github.com/zafarrehan/licence_plate_detection
object-detection ssd-mobilenet tensorflow2 transfer-learning
Last synced: 4 days ago
JSON representation
This repository uses a custom trained model trained on SSDMobileNetV2 to detect licence plates in images
- Host: GitHub
- URL: https://github.com/zafarrehan/licence_plate_detection
- Owner: zafarRehan
- Created: 2022-03-12T13:02:00.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T15:01:03.000Z (almost 3 years ago)
- Last Synced: 2025-01-24T22:09:00.735Z (9 months ago)
- Topics: object-detection, ssd-mobilenet, tensorflow2, transfer-learning
- Language: Python
- Homepage:
- Size: 43.7 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Licence Plate Detection
This repository uses custom-trained MobileNet-SSD V2 model for Object Detection to detect Licence plates in Images
This model will only detect one class of object i.e. Licence Plates
The explained training of the model can be found in my training repo here : https://github.com/zafarRehan/tensorflow_transfer_learningRequired Libraries
pip install opencv-python
pip install numpy
pip install tensorflow
Contents
1. exported-model:
This folder contains the trained model that we got as the result from tensorflow_transfer_learning2. models:
This folder is the official Tensorflow's models library https://github.com/tensorflow/models which is needed for custom training a tensorflow model and in this case loading the custom trained model. This repo also has cool drawing functionalities which I used for drawing the bounding boxes over image.3. custom.pbtxt:
This file contains the class labels and is the same file used while training the model.4. detect.py:
The python file which consists the code to
1. Load Model
2. Detect Licences
3. Draw the output over imageRunning the code
1. In order to run the code you must have tensorflow 2.2 or above intalled
2. Make sure to change your present working directory to path to repo folder + licence_plate_detection/models/research
3. Run the following code:
protoc object_detection/protos/*.proto --python_out=.
4. Change the BASE_PATH in line 10 of the code as guided in comment
5. Proceed to run the codeThe code is well-commented so more details can be found in comments
Input Images
![]()
![]()
Output Images
![]()
![]()