Prince2124 / Automatic-License-Number-Plate-Recognition-ANPR-

Automatic Number Plate Recognition (ANPR) is commonly used in many countries for many applications like Ticketless parking fee management, car theft prevention etc. ANPR systems consists of three stages: Number Plate detection, character segmentation and character recognition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic-License-Number-Plate-Recognition-ANPR-

Automatic Number Plate Recognition (ANPR) is commonly used in many countries for many applications like Ticketless parking fee management, car theft prevention etc. ANPR systems consists of three stages: Car Plate Detection with OpenCV and Haar Cascade, Plate Number Recognition and Extraction with TesseractOCR.

image

Model (Haar Cascades)

OpenCV actually comes with pre-trained XML files of various Haar Cascades, where each XML file contains the feature set. We will be using the Haar Cascade XML file containing the features for Russian car plates, and here’s how you can download the Haar Cascade XML file from: https://raw.githubusercontent.com/opencv/opencv/master/data/haarcascades/haarcascade_russian_plate_number.xml

TesseractOCR

TesseractOCR is an open source optical character recognition (OCR) engine. It is recognized as one of the most popular and most accurate open-source OCR engines.

Execution steps

A. We convert input image into to gray-scale to reduce the noises. B. And then use haar cascade classifire model to detectect lisence plate and get the cordinates of ROI(Plate). C. Apply image preprocessing over plate Smoothing (blurring or de-noising) then pass to pytesseracrt to grt the text. D. After de-noising the plate pass it to pytesseracrt to get the text.

Results

A. Cropped plate:

cropped plate1

cropped plate2

B. Detected number plate

result

result1 (2)

result1 (1)

References

https://towardsdatascience.com/russian-car-plate-detection-with-opencv-and-tesseractocr-dce3d3f9ff5c

About

Automatic Number Plate Recognition (ANPR) is commonly used in many countries for many applications like Ticketless parking fee management, car theft prevention etc. ANPR systems consists of three stages: Number Plate detection, character segmentation and character recognition.