Skip to content

Comments

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

Merged
tmbdev merged 2 commits intoocropus-archive:masterfrom
lunactic:master
Oct 11, 2015
Merged

Added better print methods for distinguishing between info and error …#53
tmbdev merged 2 commits intoocropus-archive:masterfrom
lunactic:master

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants