Dev Center
Table of contents

Class Dynamsoft.DBR.BarcodeReader

Constructor and Destructor

Method Description
BarcodeReader Constructor of BarcodeReader object.
Dispose Destroys an instance of Dynamsoft Barcode Reader.
GetInstance Creates an instance of Dynamsoft Barcode Reader.
Recycle Destroys an instance of Dynamsoft Barcode Reader.

License

Method Description
InitLicense Initializes license key and activate the SDK.
GetDeviceUUID Gets the device uuid used for license activating.
IsInstanceValid Gets whether the instance is valid when charging by concurrent instances count.
SetDeviceFriendlyName Sets a human-readable name that identifies the device.
SetLicenseCachePath Sets a directory path for saving the license cache.
SetMaxConcurrentInstanceCount Sets the max concurrent instance count used for current device and process.
GetInstancePoolStatus Gets a class to represent the status of an instance pool.
GetIdleInstancesCount Deprecated
InitLicenseFromServer Deprecated
InitLicenseFromLicenseContent Deprecated
OutputLicenseToString Deprecated
InitDLSConnectionParameters Deprecated
InitLicenseFromDLS Deprecated
InitLTSConnectionParameters Deprecated
InitLicenseFromLTS Deprecated

Decode

Method Description
DecodeFile Decodes barcodes from a specified image file.
DecodeFileInMemory Decode barcodes from an image file in memory.
DecodeBuffer Decodes barcodes from the memory buffer containing image pixels in defined format.
DecodeBase64String Decodes barcodes from a base64 encoded string.
DecodeBitmap Decodes barcode from a bitmap.
InitIntermediateResult Inits an intermediateResult struct with default values.
DecodeIntermediateResults Decodes barcode from intermediate results.

Basic Settings Functions

Method Description
SetModeArgument Sets the optional argument for a specified mode in Modes parameters.
GetModeArgument Gets the optional argument for a specified mode in Modes parameters.
GetRuntimeSettings Gets current runtime settings.
UpdateRuntimeSettings Update runtime settings with a given struct.
ResetRuntimeSettings Resets all parameters to default values.

Advanced Settings Functions

Method Description
InitRuntimeSettingsWithFile Initializes runtime settings with the settings in a given JSON file.
InitRuntimeSettingsWithString Initializes runtime settings with the settings in a given JSON string.
AppendTplFileToRuntimeSettings Appends a new template file to the current runtime settings.
AppendTplStringToRuntimeSettings Appends a new template string to the current runtime settings.
GetAllParameterTemplateNames Gets the parameter templates name array.
OutputSettingsToFile Outputs runtime settings to a settings file (JSON file).
OutputSettingsToString Outputs runtime settings to a string.

General

Method Description
GetVersion Gets version information of SDK.
TransformCoordinates Transform the coordinates of a point based on the given transformation matrix.

Video

Decode

Method Description
StartFrameDecoding Starts a new thread to decode barcodes from the inner frame queue.
StartFrameDecodingEx Starts a new thread to decode barcodes from the inner frame queue.
AppendFrame Appends a frame image buffer to the inner frame queue.
StopFrameDecoding Stops the frame decoding thread created by StartFrameDecoding.

Parameter

Method Description
InitFrameDecodingParameters Initializes frame decoding parameters.

Callback

Method Description
SetErrorCallback Set callback function to process errors which is triggered when the library finishes decoding a frame.
SetTextResultCallback Set callback function to process text results which is triggered when the library finishes decoding a frame.
SetUniqueBarcodeCallback Set callback function to process text results which is triggered when the library finishes decoding a frame and finds unique barcodes.
SetIntermediateResultCallback Set callback function to process intermediate results which is triggered when the library finishes decoding a frame.

Status retrieval

Method Description
GetLengthOfFrameQueue Gets length of current inner frame queue.

Result

Method Description
GetIntermediateResults Returns intermediate results containing the original image, the colour clustered image, the binarized Image, contours, Lines, TextBlocks, etc.

BarcodeReader Attributes

Attribute Description
ProductKeys Deprecated. It still works in this version but could be removed in the near future.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 10.x
    • Version 10.4.10
    • Version 10.2.10
    • Version 10.2.0
    • Version 10.0.20
    • Version 10.0.10
    • Version 10.0.0
  • Version 9.x
    • Version 9.6.40
    • Version 9.6.30
    • Version 9.6.20
    • Version 9.6.10
    • Version 9.6.0
    • Version 9.4.0
    • Version 9.2.0
    • Version 9.0.0
  • Version 8.x
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.0
    • Version 8.1.2
    • Version 8.1.0
    • Version 8.0.0
  • Version 7.x
    • Version 7.6.0
    • Version 7.5.0
  • Documentation Homepage
Change +