HOCR_SDK_CPU_initFromImrModelFile
Included header
#include <HOCR_SDK_CPU.h>
Description
Initialize an 'ArgoEngineApi' object created by HOCR_SDK_CPU_CreateArgoSDK using an integrated resource file
HOCR_SDK_CPU_initFromImrModelFile()
|
- Parameters
-
Name Type Description obj void* Pointer to the object created with HOCR_SDK_CPU_CreateArgoSDK
imrModelDataPath char* Integrated resource file path (*.imr)
name char* Name
isRecovery bool Use auto recovery mode; if an issue occurs in the SDK engine, it restarts itself
isSelfCheck bool Use self-check mode; the SDK engine periodically calls APIs internally to verify normal operation
enginesCount int Number of SDK engine instances
- Return value
bool: success (true) or failure (false)
Examples
void *obj = HOCR_SDK_CPU_CreateArgoSDK(/* ... */);
std::string imrResourcePath = "../assets/Hancom.25.12.01.cpu.imr";
std::string objName = "Sample";
bool isRecovery = true;
bool isSelfCheck = false;
int enginesCount = 1;
bool isSuccess = HOCR_SDK_CPU_initFromImrModelFile(
obj,
imrResourcePath.data(),
objName.data(),
isRecovery,
isSelfCheck,
enginesCount
);