- Item onei want to crop 0 to 9 digits as image and recognition as well.
- Item two
i want to segment/crop digits from this image and remove extra background and store each digit as image array. i want to scan row wise digits and results.
1 view (last 30 days)
Show older comments
% code
imgSD = imread('sdigits.png');
bw = im2bw(imgSD);
img = imgSD;
img(:,sum(bw)==40,1)=0;
img(:,sum(bw)==40,2)=0;
img(:,sum(bw)==40,3)=255;
imshow(img);
img(sum(bw,2)==575,:,1)=255;
img(sum(bw,2)==575,:,2)=0;
img(sum(bw,2)==575,:,3)=0;
imshow(img)
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!