License Plate Detection & Segmentation


Total downloads: 195

This code detects the license plate in the image and segment the characters on the plate. The work is based on the Discrete Wavelet Transformation (DWT) followed by morphological operations. The height to width ratio of detected bounding box has to be tuned if images are use other than this project’s test images.

This package contains:

  1. Few Test Images (On request)
  2. MATLAB code is in the description

Note:  We don’t support to copy this code for your academic submission. This is to ease your pain to start writing code from scratch. We suggest to modify the code for your work.

Download Code  Discuss Code
Categories: ,


Segmented characters of License plate-
Segmented characters of License plate


step 1 Convert the image into gray color and take DWT transform of gray colored image

step 2 Use sobel edge detcetion of vertical component of DWT transformed image

step 3 apply imclose, imopen morphological operations with strcutural co-efficient like


step 4 Use bounding box method to extract all possible bounding boxes and below condition to select the bounding box of license plate only

if dim(jj)>4

BoundingBox(3)= height BoundingBox(4)= width

Detected License Plate-
Detected License Plate

step5 crop the detected license plate and apply morphological operations again to extract the characters in license plate.

Step 5.1 Enhance the image edges by gradient enhancement operation

g=rgb2gray(cropedimg);              % Converting the RGB (color) image to gray (intensity).
g=medfilt2(g,[3 3]);                % Median filtering to remove noise.
se=strel('disk',1);                 % Structural element (disk of radius 1) for morphological processing.
gi=imdilate(g,se);                  % Dilating the gray image with the structural element.
ge=imerode(g,se);                   % Eroding the gray image with structural element.
gdiff=imsubtract(gi,ge);            % Morphological Gradient for edges enhancement.

Step 5.2 Eliminate the license plate edges and removing pixels area with more than 100 pixels results in segmented characters.


admin is an innovative and first of its kind platform created by Vidhilekha Soft Solutions Pvt Ltd, a Startup recognized by the Department For Promotion Of Industry And Internal Trade, Ministry of Commerce and Industry, Government of India recognised innovative research startup.

26 reviews for License Plate Detection & Segmentation

  1. morteza (verified owner)


  2. deepan.parikh (verified owner)

    Nice work.

  3. venkat.reddy (verified owner)


  4. venkat.reddy (verified owner)


  5. waseem.sajjad (verified owner)

    Good for thesis

  6. divya.punia (verified owner)


  7. garba.abdulrauf (verified owner)

    thank you very useful code

  8. theo.kontoh (verified owner)


  9. jesus.trapero (verified owner)

    muchas gracias fenomenal

  10. jesus.trapero (verified owner)


  11. jesus.trapero (verified owner)


  12. jesus.trapero (verified owner)


  13. jesus.trapero (verified owner)


  14. prince.narayan (verified owner)

    for personal use its best

  15. sameer.kumthekar (verified owner)


  16. vankani.arjun (verified owner)

    Nice project !!

  17. sameer.kumthekar (verified owner)

    best one

  18. ratheesh.p m (verified owner)

    Very Helful

  19. ratheesh.p m (verified owner)

    Very Helpful

  20. ratheesh.p m (verified owner)


  21. ratheesh.p m (verified owner)

    good collection

  22. dbsignup (verified owner)

    thankyou very much

  23. Manikanta (verified owner)


  24. chou_aib (verified owner)


  25. imer.alvarenga (verified owner)


  26. zakir (verified owner)


Only logged in customers who have purchased this product may leave a review.