-
-
Notifications
You must be signed in to change notification settings - Fork 84
Handling timeouts #93
Copy link
Copy link
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!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels