Skip to main content

HOCR_SDK_getOpenApi

Included header​

#include <HOCR_SDK_COMMON.h>

Description​

API to query available engine functions

HOCR_SDK_getOpenApi()​

int HOCR_SDK_getOpenApi(void* obj, char** openApiJson)
Parameters
NameTypeDescription
objvoid*

Pointer to 'ArgoEngineApi' object

openApiJsonchar**

Pointer to receive the result string

Return value

int: Length of the ‘openApiJson’ string

Examples​

char *resultJsonStr = nullptr;
int resultSize = HOCR_SDK_getOpenApi(obj, &resultJsonStr);
std::string resultJson(resultJsonStr, resultSize);

Example result JSON​

{"SUPPORT_API":["TEXT_RECOGNITION"]}