Skip to content

Detects the number plate of a car and performs character segmentation and recognition with FLASK DEPLOYMENT

Notifications You must be signed in to change notification settings

Rudra-Patil/Number-Plate-Detection

Repository files navigation

Number-Plate-Detection

Method

  1. Detect License Plate

  2. Perform segmentation of characters

  3. Train a DL 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.

FLASK Based API Coming Soon...

Step 1 A Grayscale image is produced of the given file.

Step 2 The license plate is detected from the input image. Step 3 Characters segmentation is applied to recognize distinct characters.

The output of the detected characters is displayed in the code output.

About

Detects the number plate of a car and performs character segmentation and recognition with FLASK DEPLOYMENT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published