필터 지우기
필터 지우기

how to segment form?

조회 수: 1 (최근 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