region extraction from a text document Image

1 次查看(过去 30 天)
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

请先登录,再进行评论。

采纳的回答

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 个评论

请先登录,再进行评论。

类别

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