All Projects → apoorva-dave → Licenseplatedetector

apoorva-dave / Licenseplatedetector

Detects license plate of car and recognizes its characters

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Licenseplatedetector

Pneumonia Detection From Chest X Ray Images With Deep Learning
Detecting Pneumonia in Chest X-ray Images using Convolutional Neural Network and Pretrained Models
Stars: ✭ 64 (-61.21%)
Mutual labels:  image-recognition
Spherenet
Implementation for <Deep Hyperspherical Learning> in NIPS'17.
Stars: ✭ 111 (-32.73%)
Mutual labels:  image-recognition
Idenprof
IdenProf dataset is a collection of images of identifiable professionals. It is been collected to enable the development of AI systems that can serve by identifying people and the nature of their job by simply looking at an image, just like humans can do.
Stars: ✭ 149 (-9.7%)
Mutual labels:  image-recognition
Factorized Bilinear Network
FBN: Factorized Bilinear Models for Image Recognition (ICCV 2017)
Stars: ✭ 66 (-60%)
Mutual labels:  image-recognition
Coremldemo
A simple demo for Core ML
Stars: ✭ 90 (-45.45%)
Mutual labels:  image-recognition
Trainer Mac
Trains a model, then generates a complete Xcode project that uses it - no code necessary
Stars: ✭ 122 (-26.06%)
Mutual labels:  image-recognition
People Counter Python
Create a smart video application using the Intel Distribution of OpenVINO toolkit. The toolkit uses models and inference to run single-class object detection.
Stars: ✭ 62 (-62.42%)
Mutual labels:  image-recognition
Instance Segmentation With Discriminative Loss Tensorflow
Tensorflow implementation of "Semantic Instance Segmentation with a Discriminative Loss Function"
Stars: ✭ 158 (-4.24%)
Mutual labels:  image-recognition
Sod
An Embedded Computer Vision & Machine Learning Library (CPU Optimized & IoT Capable)
Stars: ✭ 1,460 (+784.85%)
Mutual labels:  image-recognition
Nsfw Resnet
🔥🔥NSFW implement in pytorch(色情图&性感图识别,本程序经过了线上大数据集测试,性能优异效果良好)🔥🔥
Stars: ✭ 142 (-13.94%)
Mutual labels:  image-recognition
Cogalg
This project is a Computer Vision implementation of general hierarchical pattern discovery principles introduced in README
Stars: ✭ 68 (-58.79%)
Mutual labels:  image-recognition
Uploadcare Php
PHP API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
Stars: ✭ 77 (-53.33%)
Mutual labels:  image-recognition
Image classifier
CNN image classifier implemented in Keras Notebook 🖼️.
Stars: ✭ 139 (-15.76%)
Mutual labels:  image-recognition
Fastai deeplearn part1
Notes for Fastai Deep Learning Course
Stars: ✭ 1,135 (+587.88%)
Mutual labels:  image-recognition
Fall Detection
Human Fall Detection from CCTV camera feed
Stars: ✭ 154 (-6.67%)
Mutual labels:  image-recognition
Papers
A list of paper, books and sites for various different topics related to machine learning and deep learning along with various field in which it is implemented
Stars: ✭ 63 (-61.82%)
Mutual labels:  image-recognition
Ysda deeplearning17
Yandex SDA classes on deep learning. Version of year 2017
Stars: ✭ 118 (-28.48%)
Mutual labels:  image-recognition
Iresnet
Improved Residual Networks (https://arxiv.org/pdf/2004.04989.pdf)
Stars: ✭ 163 (-1.21%)
Mutual labels:  image-recognition
Degate
Open source software for chip reverse engineering.
Stars: ✭ 156 (-5.45%)
Mutual labels:  image-recognition
Hey Waldo
Labeled images of the Where's Waldo puzzle for use in classification and image recognition problems.
Stars: ✭ 138 (-16.36%)
Mutual labels:  image-recognition

LicensePlateDetector

Detects license plate of car and recognizes its characters

Method

  1. Detect License Plate
  2. Perform segmentation of characters
  3. Train a ML model to predict characters
  4. Prediction of characters in License Plate

The approach used to segment the images is Connected Component Analysis. Connected regions wil imply that all the connected pixels belong to the same object. A pixel is said to be connected to another if they both have the same value and are adjacent to each other.

Car Image -> Grayscale Image -> Binary Image -> Applying CCA to get connected regions -> Detect license plate out of all connected regions (Assumptions made : width of the license plate region to the full image ranges between 15% and 40% and height of the license plate region to the full image is between 8% & 20%)

Output of first step is a license plate image detected in a car image. This is provided as input to step2 and CCA is applied on this image to bound the characters in plate.Each character identified is appended into a list.

Model is trained using SVC (4 cross fold validation) with dataset present in directory train20X20. The model is saved as finalized_model.sav which is then loaded to predict each character.

Once the characters of plate is obtained and model is trained, the model is loaded in order to predict each character.

Setup

Clone the repository.

Change the path of the image/video file in DetectPlate.py

Create virtual env. On windows you could do something like: py -m venv env

Activate the virtual environment env

Install the needed modules using: pip install -r requirements.txt

Run PredictCharacters.py. This will load the trained model (finalized_model.sav) which is added to repo for reference. Your own model can also be trained using the dataset attached in repo.

Running PredictCharacters.py first gives grayscale and binary image. Then produces gray image with license plate bounded inside a rectangle.Each characters are also segmented and shown within boxes.Finally the model predicts the license plate.

Screenshots

  1. Car Video

Original frame of video

fram35

License Plate Detected

out

Segmented Characters

out

Predicted Value

out

  1. Car Image

Original Image

car

License Plate Detected

out7

Segmented characters

out8

Predicted characters

out9

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].