HOCR_SDK_RUN_RESULT_CALLBACK
Included header
#include <HOCR_SDK_COMMON.h>
Description
Prototype of the callback used to receive engine module results asynchronously, passed as an argument to HOCR_SDK_runAsync and HOCR_SDK_runAsyncBase64
HOCR_SDK_RUN_RESULT_CALLBACK()
|
When invoked, the callback receives the result string and its length.
- Parameters
-
Name Type Description result char* Engine module execution result string (JSON)
length int Length of the result string
- Return value
None
Examples
void resultCallbackFunc(char* resultJsonStr, int resultJsonLength) {
std::string callbackResultJson = std::string(resultJsonStr, resultJsonLength);
std::cout << callbackResultJson << std::endl;
}