MCT-453: Machine Vision License Plate Recognition Using Morphological Operations
MCT-453: Machine Vision License Plate Recognition Using Morphological Operations
“ABC…XYZ0123456789” in the same font as the “EIBLT8H” written on the license plate.
hw3_license_plate_clean.png hw3_license_plate_noisy.png
a. Binarize the clean license plate image, the noisy license plate image, and the template images, so that the large characters
in the middle of the plate appear as white and the background appears as black. Choose the threshold by applying Otsu’s
method on the clean license plate image, and use the same threshold for all binarization operations in this problem.
Show below the binarized clean and noisy license plate images and the binarized template images.
.
.
.
.
b. Perform character detection by erosion in the binarized clean license (MATLAB function: imerode). To eliminate the
effects of slight mismatches along the character boundaries, compute a slightly eroded template which is erode(template,
3x3 square), and then use the eroded template as the SE in the erosion detector. For each template that generates a
nonzero detection result, dilate the eroded license plate image (MATLAB function: imdilate) by the template for
visualization purposes and submit the dilation result below, like shown in the following example for the template “B”.
Which characters are detected by this approach?
Are there any false positive detections, and if so, why?
.
.
.
c. Repeat Part B, except use a hit-miss filter in place of erosion for the detector (MATLAB function: bwhitmiss). Use the
same SE as in Part B for the foreground SE. For the background SE, use the difference dilate(template, 5x5 square) –
dilate(template, 3x3 square) which extracts a thin outline around the character.
Comment on the advantages of the hitmiss detector compared to the erosion detector.
.
.
.
Code:.