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

Add a function to enable tesseract stdin and stdout argument parameters #31

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andyvuong
Copy link

Introduces a new function processStream() that pipes read streams into a child process executing the tesseract binary. Process() is unchanged to keep any backwards compatibility. Included a test case as well.

Usage:

  tesseract.processStream(stream, options, callback)

@andyvuong
Copy link
Author

The wercker configuration appears to be using an older release of tesseract (3.02) that does not support the 'stdin' parameter hence why the test is failing. Tesseract 3.03 or above is needed for this feature. I can't do anything on my end to modify the wercker set-up.

@reecefenwick
Copy link

Great work with this!

Would it be worthwhile updating the README with an example, and point out that this feature requires at least version 3.03 of tesseract

@andyvuong
Copy link
Author

Yes updating is always worthwhile! Thanks.

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