Skip to content

HOCR_SDK_getOpenApiOption

Included header

#include <HOCR_SDK_COMMON.h>

Description

API to query whether options are available for a given engine function

HOCR_SDK_getOpenApiOption()

int HOCR_SDK_getOpenApiOption(void* obj, char** openApiOptionJson, char* openApiName)
Parameters
NameTypeDescription
objvoid*

Pointer to 'ArgoEngineApi' object

openApiOptionJsonchar**

Pointer to receive the result string

openApiNamechar*

Function to query

Return value

int: Length of the ‘openApiOptionJson’ string

Examples

char *resultJsonStr = nullptr;
std::string openApiName = "TEXT_RECOGNITION";
int resultSize = HOCR_SDK_getOpenApiOption(obj, &resultJsonStr, openApiName.data());
std::string resultJson(resultJsonStr, resultSize);

Example result JSON

{}