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개)
참고 항목
카테고리
Help Center 및 File 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!