How to count characters from an imfill Image

조회 수: 1 (최근 30일)
Adam Kelly
Adam Kelly 2019년 11월 8일
답변: Anmol Dhiman 2019년 11월 11일
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
KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 11월 8일
I have idea, what about your previous question?
Adam Kelly
Adam Kelly 2019년 11월 8일
What do you mean?

댓글을 달려면 로그인하십시오.

채택된 답변

Anmol Dhiman
Anmol Dhiman 2019년 11월 11일
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))

추가 답변 (0개)

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by