Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paragraphs instead of lines in gpageseg #228

Open
xdsv opened this issue Jun 25, 2017 · 3 comments
Open

Paragraphs instead of lines in gpageseg #228

xdsv opened this issue Jun 25, 2017 · 3 comments

Comments

@xdsv
Copy link

xdsv commented Jun 25, 2017

Is there a way to get paragraphs instead of lines in ocropy-gpageseg?
If that's not possible, from what I saw only the .pseg file contains the paragraph information encoded as a different color. Is there a utility to extract that information?

@zuphilip
Copy link
Collaborator

No, the page segmentation will always output lines. However during this process it tries to identify the columns (I am not sure that also paragraphs are identified in this step) and this information is saved in the pseg files, as you noted already. See in the wiki for more information about the file format.

Maybe try also to go further and create a hocr file with ocropus-hocr which should contain some paragraphs splits as <p />.

@xdsv
Copy link
Author

xdsv commented Jun 26, 2017 via email

@Sultan91
Copy link

Also interested in this question. In addition, it is not quite clear how text line ordering works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants