Remove the non-digit from mser regions.
Afficher commentaires plus anciens
I need to remove the non-digit regions(I need only the meter reading). I got a code that is similar to it, but that's for non-text removal(I attached code here). Anybody, please help me.
% Threshold the data to determine which regions to remove. These thresholds
% may need to be tuned for other images.
filterIdx = aspectRatio' > 3;
filterIdx = filterIdx | [mserStats.Eccentricity] > .995 ;
filterIdx = filterIdx | [mserStats.Solidity] < .3;
filterIdx = filterIdx | [mserStats.Extent] < 0.2 | [mserStats.Extent] > 0.9;
filterIdx = filterIdx | [mserStats.EulerNumber] < -4;
% Remove regions
mserStats(filterIdx) = [];
mserRegions(filterIdx) = [];
1 commentaire
Silpa K
le 10 Mar 2020
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Read, Write, and Modify Image dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
