Skip to content

Troubleshooting "Failed to init API, possibly an invalid tessdata path"

Mike Gerber edited this page Mar 7, 2024 · 3 revisions
Failed to init API, possibly an invalid tessdata path
  • Check what path ocrd-tesserocr-recognize -D gives (the OCR-D module resource location)
  • This directory (usually a path ending with tessdata below your venv) should contain:
    • *.traineddata
    • including osd.traineddata
    • configs/
    • tessconfigs/
  • Check those files for corruption
    • ls -l (We have seen empty - 0 byte - files)
    • Use tesseract with the specific model you'd like to use with ocrd-tesserocr-recognize later
Clone this wiki locally