Documentation
Table of contents

Thanks for downloading Dynamsoft Label Recognizer Package!

Your download will start shortly. If your download does not begin, click here to retry.

C API Reference - Result

Method Description
DLR_GetAllDLRResults Gets all recognized results.
DLR_FreeDLRResults Frees memory allocated for recognized results.

DLR_GetAllDLRResults

Get all recognized results.

DLR_API int DLR_GetAllDLRResults (void* recognizer, DLRResultArray** results)	

Parameters [in] recognizer Handle of the label recognition instance.
[out] results Recognized results returned by last calling function DLR_RecognizeByBuffer / DLR_RecognizeByFile. The results is allocated by SDK and should be freed by calling function DLR_FreeDLRResults.

Return Value Returns error code (returns 0 if the function operates successfully).
You can call DLR_GetErrorString to get detailed error message.

Code Snippet

void* recognizer = DLR_CreateInstance();
DLR_InitLicense(recognizer, "t0260NwAAAHV***************");
DLRResultArray * results = NULL;
int errorCode = DLR_RecognizeByFile(recognizer, "C:\\Program Files (x86)\\Dynamsoft\\{Version number}\\Images\\AllSupportedBarcodeTypes.tif", "");
DLR_GetAllDLRResults(recognizer, &results);
DLR_FreeDLRResults(&results);
DLR_DestroyInstance(recognizer);

 

DLR_FreeDLRResults

Free memory allocated for text results.

DLR_API void DLR_FreeDLRResults (DLRResultArray ** results)	

Parameters [in] results Recognized results.

Code Snippet

void* recognizer = DLR_CreateInstance();
DLR_InitLicense(recognizer, "t0260NwAAAHV***************");
DLRResultArray * results = NULL;
int errorCode = DLR_RecognizeByFile(recognizer, "C:\\Program Files (x86)\\Dynamsoft\\{Version number}\\Images\\AllSupportedBarcodeTypes.tif", "");
DLR_GetAllDLRResults(recognizer, &results);
DLR_FreeDLRResults(&results);
DLR_DestroyInstance(recognizer);

 

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(3.2.10)
    • Version 3.x
      • Version 3.2.0
      • Version 3.0.30
      • Version 3.0.20
      • Version 3.0.10
      • Version 3.0.0
    • Version 2.x
      • Version 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
    • Version 1.x
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support