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()
|
- Parameters
-
Name Type Description obj void* Pointer to 'ArgoEngineApi' object
openApiOptionJson char** Pointer to receive the result string
openApiName char* 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
{}