Skip to content

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

Open
andyvuong wants to merge 2 commits intodesmondmorris:masterfrom
andyvuong:stream-processing
Open

Add a function to enable tesseract stdin and stdout argument parameters#31
andyvuong wants to merge 2 commits intodesmondmorris:masterfrom
andyvuong:stream-processing

Conversation

@andyvuong
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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