mirror of
https://github.com/RapidAI/RapidOCR.git
synced 2026-11-11 13:30:51 +08:00
Determine parameters automatically.
This commit is contained in:
1 parent
219bf6295a
commit
a237f33dc3
5 files changed
+52
-34
No files matched your search
@@ -16,7 +16,7 @@
|
||||
|
||||
const char* DEFAULT_MODEL_DIR = "E:\\bai-piao-ocr\\cpp\\BaiPiaoOcrOnnx\\models\\";
|
||||
|
||||
const char* DEFAULT_TEST_IMG = "E:\\bai-piao-ocr\\cpp\\BaiPiaoOcrOnnx\\images\\1.jpg";
|
||||
const char* DEFAULT_TEST_IMG = "E:\\bai-piao-ocr\\cpp\\BaiPiaoOcrOnnx\\images\\long1.jpg";
|
||||
#else
|
||||
const char * DEFAULT_MODEL_DIR ="/data/workprj/RapidOCR/models/";
|
||||
|
||||
@@ -69,7 +69,7 @@ const char *szImagePath=NULL;
|
||||
}
|
||||
|
||||
RAPIDOCR_PARAM Param={0};
|
||||
BOOL bRet =BPOcrDoOcr(Handle,szImagePath,false,false,&Param);
|
||||
BOOL bRet =BPOcrDoOcr(Handle,szImagePath,true,false,&Param);
|
||||
if (bRet)
|
||||
{
|
||||
int nLen = BPOcrGetLen(Handle);
|
||||
|
||||
Reference in new issue
Block a user