how to segment form?
1 view (last 30 days)
Show older comments
I have a form table that contains characters. how to extract these characters?
Accepted Answer
Image Analyst
on 28 Nov 2014
First I'd sum the image vertically and horizontally and look for the rows and columns where the grid lines are. Then call imcrop.
[rows, columns, numberOfColorChannels) = size(grayImage);
horizontalProfile = sum(grayImage, 1);
verticalProfile = sum(grayImage, 2);
binaryHoriz = horizontalProfile < someNumber;
and so on. Give it a try.
More Answers (0)
See Also
Categories
Find more on Computer Vision With Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!