I need OCR capability for a Rails app on Heroku. My efforts to get tesseract to work have not been successful. Does anyone have any suggestions? It's hard to believe that something as basic as OCR isn't supported on something as ubiquitous as Rails on Heroku.
BACKGROUND ON EFFORT TO GET TESSERACT TO WORK
- Application works fine on MacOS using tesseract binaries and tesseract-ocr gem
- Heroku doesn't have built-in tesseract support and doesn't support installing binaries (see Configuring environmental paths in Heroku)
- Most SO questions about tesseract on Heroku don't have answers (Using Tesseract on Heroku with Django, Tesseract-OCR on Heroku with Node.js)
- Can't get tesseract_bin gem to load locally (haven't tried on Heroku)
- Route of using buildpack-libraries seems overwhelming to me (and if that approach is viable, I don't understand why someone hasn't provided a pre-packaged solution)
SPECIFIC ERROR LOADING TESSERACT_BIN gem
/Users/palfvin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory - /Users/palfvin/.rvm/gems/ruby-2.0.0-p247@avlats/gems/tesseract_bin-1.0.2/bin (Errno::ENOENT)
from /Users/palfvin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/pathname.rb:422:in `foreach'
from /Users/palfvin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/pathname.rb:422:in `children'
from /Users/palfvin/.rvm/gems/ruby-2.0.0-p247@avlats/gems/tesseract_bin-1.0.2/lib/tesseract_bin.rb:7:in `<module:TesseractBin>'
from /Users/palfvin/.rvm/gems/ruby-2.0.0-p247@avlats/gems/tesseract_bin-1.0.2/lib/tesseract_bin.rb:3:in `<top (required)>'
from /Users/palfvin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
from /Users/palfvin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
from /Users/palfvin/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
from tmp/tesseract.rb:261:in `<main>'