Skip to main content

getOpenApiOption

Description

API to query if there are applicable options for available engine functions

getOpenApiOption()

int getOpenApiOption(void* obj, char** openApiOptionJson, char* openApiName)
Parameters
Name Type Description
objvoid*

'ArgoEngineApi' object pointer

openApiOptionJsonchar**

Query result string (json) for applicable options in engine functions

openApiNamechar*

Name of function to query

Return Value

int: Length of 'openApiOptionJson' string

Example

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