解决国产系统loongarch64架构自动文本方向识别报错“没有数据”的问题;
This commit is contained in:
parent
80a6f907aa
commit
d22297f950
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue