...
On a heroku build that includes tesseract, you can find the data directory by logging into a dyno with heroku run bash
and running: find ~+ -iname tessdata
. Which In heroku-24 with tesseract 5.x that is probably:
Code Block |
---|
heroku config:set TESSDATA_PREFIX= "/app/.apt/usr/share/tesseract-ocr/4.00/tessdata/5/tessdata/" |
This solution from: https://towardsdatascience.com/deploy-python-tesseract-ocr-on-heroku-bbcc39391a8d
Verify tesseract install
(These checks should also be covered by our system_env_spec)
In a heroku dyno with heroku run bash
:
...