Giter Site home page Giter Site logo

anpr's Introduction

Automatic Number Plate Recognition (ANPR)

License Plate detection and recognition on Indian Number Plates using Yolo v3 Darknet and Pytesseract

Detection

Dataset Preparation

This would serve as our starter dataset

  • Check out JSON preprocessing to yield the dataset in yolo format here

  • I have uploaded the prepared dataset too

Clone the darknet repository

git clone https://github.com/pjreddie/darknet
cd darknet
  • We add our processed data to the data folder in the darknet directory

  • After cloning the darknet repository, we run split.py to segregate the data into training and validation image paths https://github.com/sid0312/ANPR/blob/master/split.py in darknet/data/train.txt and darknet/data/val.txt repectively

Let us train now !!!

The entire training process has been explained here

We train on YOLO v3 Darknet in Google Colaboratory. Notice the darknet forlder in the repository shows the files to be added to the cloned repository from Pjreddie.

Model checkpoints

Time for detection

git clone https://github.com/sid0312/ANPR
cd ANPR
python test.py -i /path/to/image -c /path/to/config_file -w /path/to/weights/ -cl /path/to/obj.names

Results for detection

Note: It works on only high resolution images as the dataset contains only 237 images. A larger manually labelled dataset would lead much robust predictions

We obtain a cropped region of interest too

Recgonition

Now we use Optical Character Recognition on the cropped Region of Interest to obtain the value of the license plate. We use the awesome Pytesseract library

cd ANPR
python recognition.py /path/to/cropped/img

Recognition results

Our ANPR works. Credits to....

Just Kidding ๐Ÿ˜‚ ๐Ÿ˜‚ !!!

Made with โค๏ธ by Siddhant Baldota

anpr's People

Contributors

sid0312 avatar

Watchers

James Cloos avatar

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.