Plate recognition
The second step in license plate recognition aims to retrieve the characters of the license plate with optical character recognition. For each detected plate, we proceed to segment the plate for each character, and use an Artificial Neural Network (ANN) machine-learning algorithm to recognize the character. Also in this section we will learn how to evaluate a classification algorithm.
OCR segmentation
First, we obtain a plate image patch as the input to the segmentation OCR function with an equalized histogram, we then need to apply a threshold filter and use this threshold image as the input of a Find contours algorithm; we can see this process in the next figure:
This segmentation process is coded as:
Mat img_threshold; threshold(input, ...
Get Mastering OpenCV with Practical Computer Vision Projects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.