From 04cd5e307e936217b192b4e689b2369298931ab0 Mon Sep 17 00:00:00 2001 From: Hridesh MG Date: Mon, 25 Aug 2025 13:15:39 +0530 Subject: [PATCH] fix: tessdata path not found on Windows --- src/lib_ccx/ocr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib_ccx/ocr.c b/src/lib_ccx/ocr.c index 40477fb8b..22c1716e2 100644 --- a/src/lib_ccx/ocr.c +++ b/src/lib_ccx/ocr.c @@ -106,7 +106,8 @@ char *probe_tessdata_location(const char *lang) "/usr/share/tesseract-ocr/", "/usr/share/tesseract-ocr/4.00/", "/usr/share/tesseract-ocr/5/", - "/usr/share/tesseract/"}; + "/usr/share/tesseract/", + "C:\\Program Files\\Tesseract-OCR\\"}; for (int i = 0; i < sizeof(paths) / sizeof(paths[0]); i++) {