Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Construct SVG output files by putting together the recognition results for each page - #139

Open
kba wants to merge 1 commit into
ocropus-archive:masterfrom
kba:ocropus-svg
Open

Construct SVG output files by putting together the recognition results for each page#139
kba wants to merge 1 commit into
ocropus-archive:masterfrom
kba:ocropus-svg

Conversation

@kba

@kba kba commented Nov 4, 2016

Copy link
Copy Markdown
Collaborator

By @jze in #68

@kba kba mentioned this pull request Nov 4, 2016
@zuphilip zuphilip changed the title Construct SVG output files by putting together the recognition resuts for each page Construct SVG output files by putting together the recognition results for each page May 7, 2017
@zuphilip

zuphilip commented May 7, 2017

Copy link
Copy Markdown
Collaborator

Here is an example of the output (converted into a png file for easier handling).

I think it is more interesting to continue hocrjs for visualizing the hocr output. Thus, I would suggest to not take this PR in the repo. @kba What do you think about this?

@kba

kba commented May 7, 2017

Copy link
Copy Markdown
Collaborator Author

SVG is a nice format, portable, can be displayed in the browser and could also be scripted. I considered it for hocrjs but decided against it because hOCR is already HTML and easier to manipulate. If you want to share/compare a visual representation of the hOCR output, it seems like a good option. Github supports diffing SVGs, so you could use that to see what affects positioning etc.

@zuphilip

zuphilip commented May 7, 2017

Copy link
Copy Markdown
Collaborator

Okay, I see that there is some more value into this script. However, I am not sure we should have another top-level command ocropus-svg for that...

If you want to share/compare a visual representation of the hOCR output, it seems like a good option.

Wouldn't we need then something like a hocr2svg tool? Which I guess is possible by rewriting the lines here and could be saved in the hocr-tools...

We could also think about integrating these svg lines into ocropus-visualize-results. These could actually be some replacement for the nowadays obsolete csegs parts in this script.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants