how to segment form?

3 次查看(过去 30 天)
lamghari
lamghari 2014-11-27
评论: lamghari 2014-11-29
I have a form table that contains characters. how to extract these characters?
  4 个评论
Thorsten
Thorsten 2014-11-28
编辑:Thorsten 2014-11-28
What do you mean by "extract these characters"? Select the images of the characters or do an OCR (optical character recognition) or something else?
lamghari
lamghari 2014-11-28
select the images of the characters

请先登录,再进行评论。

采纳的回答

Image Analyst
Image Analyst 2014-11-28
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 个评论
Image Analyst
Image Analyst 2014-11-29
Plot the profiles and you'll be able to tell what the number is. It might be like half the max value or something.
lamghari
lamghari 2014-11-29
ok thank you very much

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by