解决国产系统loongarch64架构自动文本方向识别报错“没有数据”的问题;

This commit is contained in:
yangjiaxuan 2024-09-12 15:58:13 +08:00
parent 80a6f907aa
commit d22297f950
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ HGResult HGOCRTesseract::Init()
}
HGChar moduleName[256];
HGBase_GetModuleName((void*)HGImgProc_CreateOCRMgr, moduleName, 256);
HGBase_GetModuleName((void*)HGImgProc_ImageOCR, moduleName, 256);
HGChar dataPath[256];
HGBase_GetFilePath(moduleName, dataPath, 256);
strcat(dataPath, "tessdata");