[BUG] TESSDATA_PREFIX requires path separator at its end #531

Open
opened 2026-01-29 16:46:41 +00:00 by claunia · 0 comments
Owner

Originally created by @NilsIrl on GitHub (Dec 29, 2019).

Necessary information

  • arguments: just the filename (including location):
$ TESSDATA_PREFIX=/nix/store/8lr60hp7yv0aysns056b74fsi8fm49zg-tesseract-3.05.00/share/ ./result/bin/ccextractor ~/Downloads/telecine.ts
  • platform: NixOS (Linux)
  • regression: I don't know

Video link

I hope that it works with any file that uses tesseract (files that store subtitles as images). Because if it isn't then it means that the location of the tesseract data is dealt in a separate way for different files.

I used the one from #1104 (https://edge1.motv.eu/telecine.ts)

Additional information

TESSDATA_PREFIX is an environment variable that points to the directory/folder containing the tessdata directory/folder. For some reason, ccextractor requires TESSDATA_PREFIX to finish with a /. It should work without one.

e.g.

TESSDATA_PREFIX=/nix/store/8lr60hp7yv0aysns056b74fsi8fm49zg-tesseract-3.05.00/share

Should work but it doesn't.

Originally created by @NilsIrl on GitHub (Dec 29, 2019). **Necessary information** * arguments: just the filename (including location): ``` $ TESSDATA_PREFIX=/nix/store/8lr60hp7yv0aysns056b74fsi8fm49zg-tesseract-3.05.00/share/ ./result/bin/ccextractor ~/Downloads/telecine.ts ``` * platform: NixOS (Linux) * regression: I don't know **Video link** I **hope** that it works with any file that uses tesseract (files that store subtitles as images). Because if it isn't then it means that the location of the tesseract data is dealt in a separate way for different files. I used the one from #1104 (https://edge1.motv.eu/telecine.ts) **Additional information** `TESSDATA_PREFIX` is an environment variable that points to the directory/folder containing the tessdata directory/folder. For some reason, ccextractor requires `TESSDATA_PREFIX` to finish with a `/`. It should work without one. e.g. ``` TESSDATA_PREFIX=/nix/store/8lr60hp7yv0aysns056b74fsi8fm49zg-tesseract-3.05.00/share ``` Should work but it doesn't.
claunia added the difficulty: easyOCRHacktoberfest labels 2026-01-29 16:46:41 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#531