Skip to content
New issue

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

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

Already on GitHub? # to your account

Added better print methods for distinguishing between info and error … #53

Merged
merged 2 commits into from
Oct 11, 2015

Conversation

lunactic
Copy link

I changed printing to a new (future proof) method and changed the output a bit.
My reasoning behind this is the following:

I am currently writing a nodejs wrapper to build a RESTful API to use ocropy over the web. To be able to easily distinguish if an operation ran correct or not I need to check if ocropy wrote to stderr or not.

If you can agree with these changes, I could add the same printing to the other ocropy methods as well.

Marcel Würsch added 2 commits July 27, 2015 16:17
changed common.py to no longer use fromstring() but use frombytes() instead (DeprecationWarning)
tmbdev added a commit that referenced this pull request Oct 11, 2015
Added better print methods for distinguishing between info and error …
@tmbdev tmbdev merged commit 511f488 into ocropus-archive:master Oct 11, 2015
@tmbdev
Copy link
Collaborator

tmbdev commented Oct 11, 2015

Sorry it took so long; I've been focusing on CLSTM.

@lunactic
Copy link
Author

No worries :)

Should I make the same changes in the other python files as well?

kba pushed a commit to kba/ocropy that referenced this pull request Dec 16, 2017
Closes ocropus-archive#53. translate_back_locations would fail when the output had a
non-zero output class in the first column of the output lattice.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants