ertugruldeniz / pyANPD

Automatic Number Plate Detection for Python using OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Python 100.0%