-
-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
Hey there, I need to implement timeout for a long running Tesseract command.
I came up with two options how to do it:
- Add the timeout option to the
RTesseract.newand reimplement theCommand#runusing theOpen3.popen3instead ofOpen3.capture3and catch the timout there (if set) - Add some
asyncoption to theRTesseract.newand implement somerun_asyncandresultsmethods, also usingOpen3.popen3, which would return PID therefore the timeout (killing the process) can be handled in the client code.
What do you think? Should I try to open a PR? Thanks!
Metadata
Metadata
Assignees
Labels
No labels