C++ Edition Introduction
Dynamsoft Label Recognizer (DLR) is an SDK designed to recognize meaningful zonal text or symbols in an image (or a ‘Label’ in this context). Starting from version 3.0, the DLR is designed based on a new DCV architecture. The CVR module will serve as the active organizer and coordinator, while the DLR module will become a passive algorithm module, dynamically loaded and used by the CVR.
Modules of SDK
Modules | Description | Header files | dll/so files |
---|---|---|---|
Capture Vision Router (CVR) | Active organizer and coordinator | DynamsoftCaptureVisionRouter.h | Windows: DynamsoftCaptureVisionRouter[arch].dll Linux: DynamsoftCaptureVisionRouter.so |
Dynamsoft Label Recognizer (DLR) | Label recognition algorithms | DynamsoftLabelRecognizer.h | Windows: DynamsoftLabelRecognizer[arch].dll Linux: DynamsoftLabelRecognizer.so |
Dynamsoft Core (DC) | Basic structures and common intermediate results | DynamsoftCore.h | Windows: DynamsoftCore[arch].dll Linux: DynamsoftCore.so |
Dynamsoft Image Processing (DIP) | Image processing algorithms | - | Windows: DynamsoftImageProcessing[arch].dll Linux: DynamsoftImageProcessing.so |
Dynamsoft License (DL) | License module | DynamsoftLicense.h | Windows: DynamsoftLicense[arch].dll Linux: DynamsoftLicense.so |
Dynamsoft Utility (DU) | Contains some useful utility classes | DynamsoftUtility.h | Windows: DynamsoftUtility[arch].dll Linux: DynamsoftUtility.so |
Dynamsoft Neural Network (DNN) | A deep learning library for computer vision tasks | DynamsoftNeuralNetwork.h | Windows: DynamsoftNeuralNetwork[arch].dll Linux: DynamsoftNeuralNetwork.so |
Note: arch refers to the CPU architecture for Windows edition, which could be either x86 or x64 here.
Main Classes of SDK
- class CCaptureVisionRouter
The CCaptureVisionRouter
class is a router responsible for obtaining images from the registered CImageSourceAdatper
object, distributing them to the label recognition module for text recognition, and then calling back the CCapturedResultReceiver
object registered by the user to return the CRecognizedTextLinesResult
result.
- class CImageSourceAdapter
The CImageSourceAdapter
class provides an interface for fetching and buffering images. It is an abstract class that needs to be implemented by a concrete class to provide actual functionality. The CDirectoryFetcher
class inherits and implements CImageSourceAdapter
, and obtains image files from the specified directory according to certain conditions.
- class CCapturedResultReceiver
The CCaptureResultReceiver
class is responsible for receiving captured results. It contains several callback functions for different types of results, including original image, decoded barcodes, recognized text lines, detected quads, normalized images, and parsed results. The DLR recognition result is returned by the OnRecognizedTextLinesReceived
callback function.
- class CRecognizedTextLinesResult
The CRecognizedTextLinesResult
class represents the result of a text recognition process. It provides access to information about the recognized text lines, the source image, and any errors that occurred during the recognition process.