필터 지우기
필터 지우기

region extraction from a text document Image

조회 수: 1 (최근 30일)
praveen rai
praveen rai 2019년 3월 6일
댓글: Image Analyst 2019년 3월 8일
I have a image(binary image already extracted from Input Image) in which I have to extract the paragraph for example from"Apart from my to....from me"this paragraph I want to extract and similarly "during the war to...German reparation" how should I do I have extracted the body from input Image
Page_body.png
  댓글 수: 2
praveen rai
praveen rai 2019년 3월 7일
any suggestion anyone want to give or anything addtional should I add so that anyone can help me please tell me
KSSV
KSSV 2019년 3월 7일
Try ocr...

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2019년 3월 7일
You need to scan your document with something like stdfilt() with the proper size window to identify blocks of text. It will have high values, whereas smooth areas like photos and white space will have low values, Then you can threshold the stdfilt image and use bwareaopen() to look for appropriate sized areas or use regionprops and look for rectangular shaped areas.
  댓글 수: 1
Image Analyst
Image Analyst 2019년 3월 8일
It will get you the entire block of text. If you want to find paragraphs within that, it looks like you can scan down the image, getting the block sum as a function of column number. The columns that start paragraphs will have a lower sum since there are no pixels there.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

KSSV
KSSV 2019년 3월 7일
편집: KSSV 2019년 3월 7일
I = imread('Page_body.png');
results = ocr(I);
str = results.Text
  댓글 수: 5
KSSV
KSSV 2019년 3월 7일
i have dited thw code....try again..
praveen rai
praveen rai 2019년 3월 8일
ya thnx but what u sent I dont want that

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by