You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.new and reimplement the Command#run using the Open3.popen3 instead of Open3.capture3 and catch the timout there (if set)
Add some async option to the RTesseract.new and implement some run_async and results methods, also using Open3.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!
The text was updated successfully, but these errors were encountered:
Hey there, I need to implement timeout for a long running Tesseract command.
I came up with two options how to do it:
RTesseract.new
and reimplement theCommand#run
using theOpen3.popen3
instead ofOpen3.capture3
and catch the timout there (if set)async
option to theRTesseract.new
and implement somerun_async
andresults
methods, 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!
The text was updated successfully, but these errors were encountered: