Skip to content

A simple demonstration of Canny Edge Detection using OpenCV

Notifications You must be signed in to change notification settings

fsalinas26/License-Plate-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Plate Finder C++ (OpenCV)

Steps

  1. Find a clear image of a license plate

  1. Grayscale the image and perform both a bilateral filter and median blur
    Both of these methods are effective for removing noise from our image while preserving edges

  1. Peform canny edge detection on our filtered image to find all the edges.

  1. Use findContours to extract all the contours from our canny edged image.

  1. Use approxPolyDB to approximate the polygonal curve of each contour, and only return the output vectors that have an exact size of four.

  1. Now that we have all our contours with exactly four sides, we can find the one that contains the most contours inside it's bounds. In an application for reading license plates, this data would be processed using OCR.

  1. Now, we can go ahead and draw that contour to our original image to outline the license plate.

About

A simple demonstration of Canny Edge Detection using OpenCV

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages