How to count characters from an imfill Image
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Adam Kelly
el 8 de Nov. de 2019
Respondida: Anmol Dhiman
el 11 de Nov. de 2019
I need to count the amount of alphanumerical characters from this image, I have no idea how to do that. Would anyone be able to help get started on this problem? Thanks for the help!
2 comentarios
Respuesta aceptada
Anmol Dhiman
el 11 de Nov. de 2019
I = imread('Your_image.jpg');
I=rgb2gray(I);
imshow(I)
% Defining Threshold
th = 100;
BW = I > th;
% Cropping image
img = BW(50:end-100,300:end-150);
imshow(img)
% Applying regionprops
s = numel(regionprops(img))
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!