File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,11 @@ def get_tessdata_dir() -> pathlib.Path:
51
51
#
52
52
# [1] https://tesseract-ocr.github.io/tessdoc/Installation.html
53
53
tessdata_dirs = [
54
- pathlib .Path ("/usr/share/tessdata/" ), # on Debian
54
+ pathlib .Path ("/usr/share/tessdata/" ), # on some Debian
55
55
pathlib .Path ("/usr/share/tesseract/tessdata/" ), # on Fedora
56
- pathlib .Path (
57
- "/usr/share/tesseract-ocr/tessdata/"
58
- ), # ? (documented, but not encountered)
59
- pathlib .Path ("/usr/share/tesseract-ocr/4.00/tessdata/" ), # on Ubuntu
56
+ pathlib .Path ("/usr/share/tesseract-ocr/tessdata/" ), # ? (documented)
57
+ pathlib .Path ("/usr/share/tesseract-ocr/4.00/tessdata/" ), # on Ubuntu Focal
58
+ pathlib .Path ("/usr/share/tesseract-ocr/5/tessdata/" ), # on Debian Trixie
60
59
]
61
60
62
61
for dir in tessdata_dirs :
You can’t perform that action at this time.
0 commit comments