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.

.Net API Reference - Recognizing

Method Description
RecognizeByBuffer Recognizes text from memory buffer containing image pixels in defined format.
RecognizeByFile Recognizes text from a specified image file.

RecognizeByBuffer

Recognizes text from the memory buffer containing image pixels in defined format.

DLR_Result[] Dynamsoft.DLR.LabelRecognition.RecognizeByBuffer(DLR_ImageData imageData, string templateName)

Parameters [in] imageData An object of DLR_ImageData that represents an image.
[in] templateName The template name. A template name is the value of key LabelRecognitionParameter.Name defined in JSON formatted settings. If no template name is specified, current runtime settings will be used.

Return Value All results recognized successfully.

Exceptions DLR_Exception

Code Snippet

LabelRecognition recognizer = new LabelRecognition();
recognizer.InitLicense("t0260NwAAAHV***************");
//Generate imageData from somewhere else
DLR_Result[] result = recognizer.RecognizeByBuffer(imageData, "");
recognizer.Dispose();

 

RecognizeByFile

Recognizes text from a specified image file.

DLR_Result[] Dynamsoft.DLR.LabelRecognition.RecognizeByFile (string fileName, string templateName)	

Parameters fileName A string defining the file name.
templateName The template name. A template name is the value of key LabelRecognitionParameter.Name defined in JSON formatted settings. If no template name is specified, current runtime settings will be used.

Return Value All results recognized successfully.

Exceptions DLR_Exception

Code Snippet

LabelRecognition recognizer = new LabelRecognition();
recognizer.InitLicense("t0260NwAAAHV***************");
DLR_Result[] result = recognizer.RecognizeByFile("full file path", "");
recognizer.Dispose();

 

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(3.2.20)
    • Version 3.x
      • Version 3.2.10
      • 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 2.2.20
      • Version 2.2.11
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.0
      • Version 2.0.0
      • Version 2.0.0
    • Version 1.x
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
      • Version 1.2
      • Version 1.0
      • Version 1.2.1
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support