meh / ruby-tesseract-ocr

A Ruby wrapper library to the tesseract-ocr API.
629 stars 74 forks source link

Mark time consuming C++ methods as blocking to allow parallel processing #2

Closed larskanis closed 12 years ago

larskanis commented 12 years ago

Hi meh,

I was a little bit surprised just now, that github didn't like my pull request for ffi-inline - the patch was already there...

Here is the second part: Using the blocking flag for tesseract-ocr. Although I did some verification by looking into the tesseract sources and by doing parallel processing in a real application, I'm not fully sure, if I marked all the right methods.

Hope you like it. And thanks for your great work to integrate tesseract properly into ruby!

meh commented 12 years ago

Thanks for both patches.

If you find any other methods requiring blocking status don't hesitate to open an issue or pull request.