Skip to content

This project aims to implement basic ANPR(Automatic Number Plate Recognition system) using OpenCV and Tesseract-OCR in Python.

Notifications You must be signed in to change notification settings

BALaka-18/Implementing-Basic-ANPR

Repository files navigation

Implementing-Basic-ANPR

This project aims to implement basic ANPR(Automatic Number Plate Recognition system) using OpenCV and Tesseract-OCR in Python. The program extracts the number plate information from a picture or a static videoframe and stores it in CSV file with date of entry.

What is ANPR ?

Automatic number-plate recognition is a technology that uses optical character recognition on images to read vehicle registration plates to create vehicle location data. It can use existing closed-circuit television, road-rule enforcement cameras, or cameras specifically designed for the task. ANPR is an advanced version of what I am going to show you in this article. Here, we will be implementing the software part. The hardware part can be implemented using CCTV cameras and Raspberry Pi.

Steps involved :

  1. Read the original image
  2. Resize the image
  3. Convert it to grayscale.
  4. Apply Bilateral Filter.
  5. Identify and store the Canny edges.
  6. Find the contours in from the edges detected and sort the top 30 contours.
  7. Get the perimeter of each contour and select those with 4 corners.
  8. Mask all other parts of the image and show the final image.
  9. Read the text using Tesseract OCR.
  10. Append to csv file.

Read my article on ANPR :

https://cppsecrets.com/users/1001989710897107975054485364103109971051084699111109/Automatic-Vehicle-Number-Plate-Recognition-using-OpenCV-and-Tesseract-OCR-A-Real-World-Python-project.php

About

This project aims to implement basic ANPR(Automatic Number Plate Recognition system) using OpenCV and Tesseract-OCR in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages