This commit is contained in:
liushuang 2025-03-05 14:18:05 +08:00
parent 98d7406a99
commit a7dd7fa0ba

@ -38,7 +38,7 @@ public class OCRProcessor {
// 设置Tesseract数据路径
String tessdataPath = System.getenv("TESSDATA_PREFIX");
if (tessdataPath == null || tessdataPath.isEmpty()) {
tessdataPath ="D:\\study\\backend\\embeddingstoes-master\\src\\main\\resources\\ocr";
tessdataPath ="D:\\study\\backend\\luckday-knows-demo\\konws-java\\src\\main\\resources\\ocr";
}
tesseract.setDatapath(tessdataPath);