How to count characters from an imfill Image
1 回表示 (過去 30 日間)
古いコメントを表示
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247425/filled%20image.jpeg)
![filled image.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/247425/filled%20image.jpeg)
2 件のコメント
採用された回答
Anmol Dhiman
2019 年 11 月 11 日
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 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!