Skip to content

Commit 07f6468

Browse files
committed
fix: tessdata path not found on Windows
1 parent afb1776 commit 07f6468

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib_ccx/ocr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ char *probe_tessdata_location(const char *lang)
106106
"/usr/share/tesseract-ocr/",
107107
"/usr/share/tesseract-ocr/4.00/",
108108
"/usr/share/tesseract-ocr/5/",
109-
"/usr/share/tesseract/"};
109+
"/usr/share/tesseract/",
110+
"C:\\Program Files\\Tesseract-OCR\\"
111+
};
110112

111113
for (int i = 0; i < sizeof(paths) / sizeof(paths[0]); i++)
112114
{

0 commit comments

Comments
 (0)