Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

rename

root9a55a23ce67a
diff --git a/api4cpp/rapidocr_api.cpp b/api4cpp/rapidocr_api.cpp
index fe59a6b..dc13309 100755
--- a/api4cpp/rapidocr_api.cpp
+++ b/api4cpp/rapidocr_api.cpp
@@ -31,14 +31,14 @@ extern "C"
}
- _QM_OCR_API BOOL BPOcrDoOcr(BPHANDLE handle, const char* szImgPath, BOOL bAutoParam,BOOL bLongPic,BPOCR_PARAM *pParam)
+ _QM_OCR_API BOOL BPOcrDoOcr(BPHANDLE handle, const char* szImgPath, BOOL bAutoParam,BOOL bLongPic,RAPIDOCR_PARAM *pParam)
{
OCR_OBJ* pOcrObj=(OCR_OBJ*)handle;
if(!pOcrObj)
return FALSE;
- BPOCR_PARAM Param = *pParam;
+ RAPIDOCR_PARAM Param = *pParam;
if(bAutoParam)
{
diff --git a/api4cpp/rapidocrtest.cpp b/api4cpp/rapidocrtest.cpp
index 04c560e..5ca2f13 100755
--- a/api4cpp/rapidocrtest.cpp
+++ b/api4cpp/rapidocrtest.cpp
@@ -68,7 +68,7 @@ const char *szImagePath=NULL;
return -1;
}
- BPOCR_PARAM Param={0};
+ RAPIDOCR_PARAM Param={0};
BOOL bRet =BPOcrDoOcr(Handle,szImagePath,false,false,&Param);
if (bRet)
{
diff --git a/include/rapidocr_api.h b/include/rapidocr_api.h
index 6b86071..65afb69 100755
--- a/include/rapidocr_api.h
+++ b/include/rapidocr_api.h
@@ -26,7 +26,7 @@ typedef char BOOL;
#define FALSE 0
-typedef struct __bpocr_param
+typedef struct __rapidocr_param
{
float unClipRatio;
int maxSideLen;
@@ -36,7 +36,7 @@ typedef struct __bpocr_param
int numThread;
int flagDoAngle; // 1 means do
int flagMostAngle; // 1 means true
-} BPOCR_PARAM;
+} RAPIDOCR_PARAM;
@@ -45,7 +45,7 @@ By default, nThreads should be the number of threads
*/
_QM_OCR_API BPHANDLE BPOcrInit(const char * szDetModel, const char * szClsModel, const char * szRecModel,const char *szKeyPath,int nThreads);
-_QM_OCR_API BOOL BPOcrDoOcr(BPHANDLE handle, const char* szImgPath, BOOL bAutoParam,BOOL bLongPic, BPOCR_PARAM *pParam);
+_QM_OCR_API BOOL BPOcrDoOcr(BPHANDLE handle, const char* szImgPath, BOOL bAutoParam,BOOL bLongPic, RAPIDOCR_PARAM *pParam);
_QM_OCR_API int BPOcrGetLen(BPHANDLE handle);