Table of contents
Swift
Objective-C

SimplifiedBarcodeReaderSettings

The SimplifiedBarcodeReaderSettings class contains settings for barcode decoding. It is a sub-parameter of SimplifiedCaptureVisionSettings.

Definition

Package: com.dynamsoft.dbr

public class SimplifiedBarcodeReaderSettings

Attributes

Attribute Type Description
barcodeFormatIds long Specifies the targeting format(s) of the barcode(s) to be decoded.
expectedBarcodesCount int Specifies the expected barcode count.
grayscaleTransformationModes int[] Sets the grayscale transformation modes.
grayscaleEnhancementModes int[] Sets the grayscale enhancement modes.
localizationModes int[] Sets the localization modes.
deblurModes int[] Sets the deblur modes.
minResultConfidence int Sets the minimum result confidence.
minBarcodeTextLength int Sets the minimum barcode text length.
barcodeTextRegExPattern String Sets the regex pattern for barcode text.
maxThreadsInOneTask int Sets the maximum threads in one task.
scaleDownThreshold int Sets the scale down threshold.

Attribute Details

barcodeFormatIds

Specifies the targeting format(s) of the barcode(s) to be decoded.

public long barcodeFormatIds

It is a bitwise OR combination of one or more values from the EnumBarcodeFormat enumeration.

expectedBarcodesCount

Specifies the expected barcode count. The default value is 0.

public int expectedBarcodesCount

Remarks

  • Set expectedBarcodesCount to 0 if the barcode count is unknown. The library will try to find at least 1 barcode.
  • Set expectedBarcodesCount to 1 to reach the highest speed for processing single barcode.
  • Set expectedBarcodesCount to “n” if there will be “n” barcodes to process from an image.
  • Set expectedBarcodesCount to the highest expected value if there exists multiple barcode but the exact count is not confirmed.

grayscaleTransformationModes

Specifies how grayscale transformations should be applied, including whether to process inverted grayscale images and the specific transformation mode to use.

public int[] grayscaleTransformationModes

It is an array of 8 integers, where each integer represents a mode specified by the EnumGrayscaleTransformationMode enumeration.

View the parameter reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.

grayscaleEnhancementModes

Specifies how to enhance the quality of the grayscale image.

public int[] grayscaleEnhancementModes

It is an array of 8 integers, where each integer represents a mode specified by the EnumGrayscaleEnhancementMode enumeration.

View the parameter reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.

localizationModes

Specifies how to localize barcodes.

public int[] localizationModes

It is an array of 8 integers, where each integer represents a mode specified by the EnumLocalizationMode enumeration.

View the parameter reference page of LocalizationModes for more detail about location modes.

deblurModes

Specifies the mode and priority for deblurring.

public int[] deblurModes

It is an array of 10 integers, where each integer represents a mode specified by the EnumDeblurMode enumeration.

View the parameter reference page of DeblurModes for more detail about deblur modes.

minResultConfidence

Specifies the minimum result confidence to filter out the low confidence results. The default value is 30.

public int minResultConfidence

minBarcodeTextLength

Specifies the minimum barcode text length to filter out the unqualified results.

public int minBarcodeTextLength

barcodeTextRegExPattern

Specifies the RegEx pattern of the barcode text to filter out the unqualified results.

public String barcodeTextRegExPattern

maxThreadsInOneTask

Specifies the maximum available threads count in one barcode decoding task.

public int maxThreadsInOneTask

Value Range

[1, 256]

Default value

4

scaleDownThreshold

Specifies the threshold for image shrinking.

public int scaleDownThreshold

Value Range

[512, 0x7fffffff]

Default Value

2300

Remarks

If the shorter edge size is larger than the given threshold value, the library will calculate the required height and width of the target image and shrink the image to that size before further operation. Otherwise, the library will perform operation on the original image.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: