Skip to content

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()

bool HOCR_SDK_CPU_initFromImrModelFile(void* obj, char* imrModelDataPath, char* name, bool isRecovery, bool isSelfCheck, int enginesCount)
Parameters
NameTypeDescription
objvoid*

Pointer to the object created with HOCR_SDK_CPU_CreateArgoSDK

imrModelDataPathchar*

Integrated resource file path (*.imr)

namechar*

Name

isRecoverybool

Use auto recovery mode; if an issue occurs in the SDK engine, it restarts itself

isSelfCheckbool

Use self-check mode; the SDK engine periodically calls APIs internally to verify normal operation

enginesCountint

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
);