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
GetAllDLRResults Gets all recognized results.
FreeDLRResults Frees memory allocated for recognized results.

GetAllDLRResults

Get all recognized results.

int dynamsoft::dlr::CLabelRecognition::GetAllDLRResults (DLRResultArray** results)	

Parameters

[out] results Recognized results returned by last calling function RecognizeByBuffer / RecognizeByFile. The results is allocated by SDK and should be freed by calling function FreeDLRResults.

Return value

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

Code Snippet

CLabelRecognition* recognizer = new CLabelRecognition();
recognizer->InitLicense("t0260NwAAAHV***************");
DLRResultArray * results;
int errorCode = recognizer->RecognizeByFile("C:\\Program Files (x86)\\Dynamsoft\\{Version number}\\Images\\AllSupportedBarcodeTypes.tif", "");
recognizer->GetAllDLRResults(&results);
dynamsoft::dlr::CLabelRecognition::FreeDLRResults(&results);
delete recognizer;

 

FreeDLRResults

Free memory allocated for text results.

static void dynamsoft::dlr::CLabelRecognition::FreeDLRResults (DLRResultArray ** results)	

Parameters

[in] results Recognized results.

Code Snippet

CLabelRecognition* recognizer = new CLabelRecognition();
recognizer->InitLicense("t0260NwAAAHV***************");
DLRResultArray * results;
int errorCode = recognizer->RecognizeByFile("C:\\Program Files (x86)\\Dynamsoft\\{Version number}\\Images\\AllSupportedBarcodeTypes.tif", "");
recognizer->GetAllDLRResults(&results);
dynamsoft::dlr::CLabelRecognition::FreeDLRResults(&results);
delete recognizer;

 

This page is compatible for:

Version 7.5

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 1.2.1
    • Version 1.2
    • Version 1.0
    Change +
    © 2003–2021 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support