how to segment form?

2 views (last 30 days)
lamghari
lamghari on 27 Nov 2014
Commented: lamghari on 29 Nov 2014
I have a form table that contains characters. how to extract these characters?
  4 Comments
lamghari
lamghari on 28 Nov 2014
select the images of the characters

Sign in to comment.

Accepted Answer

Image Analyst
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.
  3 Comments
lamghari
lamghari on 29 Nov 2014
ok thank you very much

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by