Skip to content

Automatic Number Plate Detection for Python using OpenCV

Notifications You must be signed in to change notification settings

abdulfatir/pyANPD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

pyANPD

pyANPD is a high recall automatic number plate detector based on this Stack Overflow answer. For details of the algorithm, check the answer on Stack Overflow. The detector is robust to orientation. The precision decreases and recall increases if the edge_density threshold is decreased.

Dependencies

  1. OpenCV
  2. Numpy

Usage

python pyANPR.py <image_file_path>

This outputs an image with the same name with -detected appended.

How to tweak it for your dataset?

Change aspect_ratio_range (Range of Aspect Ratio for Accepted Rectangles), area_range (Range of Area for Accepted Rectangles), and se_shape (Shape of Structuring Element for Morphological Closing) to the taste of your own dataset.

Results

1 2 3

About

Automatic Number Plate Detection for Python using OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages