how to segment form?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a form table that contains characters. how to extract these characters?
4 件のコメント
採用された回答
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
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.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!