Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.005/tessdata/"

This solution from: https://towardsdatascience.com/deploy-python-tesseract-ocr-on-heroku-bbcc39391a8d

...