Filter löschen
Filter löschen

How to count characters from an imfill Image

1 Ansicht (letzte 30 Tage)
Adam Kelly
Adam Kelly am 8 Nov. 2019
Beantwortet: Anmol Dhiman am 11 Nov. 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!filled image.jpg
  2 Kommentare
KALYAN ACHARJYA
KALYAN ACHARJYA am 8 Nov. 2019
I have idea, what about your previous question?
Adam Kelly
Adam Kelly am 8 Nov. 2019
What do you mean?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Anmol Dhiman
Anmol Dhiman am 11 Nov. 2019
You can use regionprops for the counting the alphanumeric characters as shown below
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))

Weitere Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by