fsalinas26 / License-Plate-Finder

A simple demonstration of Canny Edge Detection using OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C++ 100.0%