How to crop license plate image automatically?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
1.How to crop the attached license plate image automatically? 2.And using these coordinates how to draw red rectangle around license plate in original image?

0 Commenti
Risposta accettata
Image Analyst
il 22 Feb 2015
Get the bounding box with regionprops. Put up rectangle with rectangle. Crop with imcrop().
binaryImage = maskedImage > 0;
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'BoundingBox');
bb = [measurements.BoundingBox];
% Put up red rectangle
hold on;
rectangle('Position', bb, 'EdgeColor', 'r');
% Crop
croppedImage = imcrop(maskedImage, bb);
7 Commenti
mae magdadaro
il 10 Apr 2017
what is the output of this code?
binaryImage = maskedImage > 0; labeledImage = bwlabel(binaryImage); measurements = regionprops(labeledImage, 'BoundingBox'); bb = [measurements.BoundingBox]; % Put up red rectangle hold on; rectangle('Position', bb, 'EdgeColor', 'r'); % Crop croppedImage = imcrop(maskedImage, bb);
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Deep Learning Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!