Table of contents
Swift
Objective-C

SimplifiedBarcodeReaderSettings

The SimplifiedBarcodeReaderSettings class comes from the SimplifiedCaptureVisionSettings class and contains a limited subset of the parameters that influence the Barcode Reader’s performance. If you would like to get familiar with the full parameters available to the Barcode Reader, please visit the main parameters page.

If you visit the main parameters page, the majority of the settings related to the Barcode Reader will be in BarcodeReaderTaskSetting, ImageParameter, and BarcodeFormatSpecification. In order to use any of the settings that are not available in SimplifiedBarcodeReaderSettings, you will need to use a Capture Vision JSON template. Please see this section of the user guide on how to use JSON templates.

Definition

Assembly: dynamsoft_capture_vision_flutter

class SimplifiedBarcodeReaderSettings

Properties

Property Type Description
barcodeFormatIds EnumBarcodeFormat Specifies which barcode format(s) the Barcode Reader will target.
expectedBarcodesCount int Determines the expected barcode count, which can be set to 0 if the barcode count is unknown.
localizationModes List<EnumLocalizationMode> Defines which localization modes (as EnumLocalizationMode) the barcode reader will use during the detection process.
deblurModes *List* Sets which deblur algorithms (as EnumDeblurMode) the library will apply during the detection process when dealing with blurry images/frames.
minResultConfidence int Specifies the minimum barcode result confidence to help filter out inaccurate results.
minBarcodeTextLength int Sets the minimum barcode text length (in characters) for the barcode result to be considered valid.
barcodeTextRegExPattern String Defines a regular expression pattern that the barcode text must match to be considered valid.
maxThreadsInOneTask int Establishes the maximum number of threads available for a single detection task.
grayscaleTransformationModes List<EnumGrayscaleTransformationMode> Determines which grayscale transformation modes (as EnumGrayscaleTransformationMode) the barcode reader will apply before the detection process.
grayscaleEnhancementModes List<EnumGrayscaleEnhancementMode> Sets which grayscale enhancement modes (as EnumGrayscaleEnhancementModes) the library will apply before the detection process.
scaleDownThreshold int Defines the threshold for scaling down the image/frame before processing to help with memory overhead.

barcodeFormatIds

Specifies which barcode format(s) (as EnumBarcodeFormat) the Barcode Reader will target. To learn more on how to set the barcode formats, please refer to the Foundational Guide.

BigInt barcodeFormatIds;

expectedBarcodesCount

Determines the expected barcode count, which can be set to 0 if the barcode count is unknown.

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 barcodes but the exact count is not confirmed.

localizationModes

Determines how to localize the barcodes.

List<EnumLocalizationMode> localizationModes;

deblurModes

Determines which deblur algorithms to apply when decoding the barcodes.

List<EnumDeblurMode> deblurModes;

minResultConfidence

Specifies the minimum barcode result confidence to help filter out low-confidence results.

int minResultConfidence;

Remarks

The default minResultConfidence value is 30.

minBarcodeTextLength

Sets the minimum barcode text length to filter out non-target barcodes.

int minBarcodeTextLength;

barcodeTextRegExPattern

Defines a regular expression pattern to filter out non-target barcodes.

String? barcodeTextRegExPattern;

maxThreadsInOneTask

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

int maxThreadsInOneTask;

grayscaleTransformationModes

Determines whether to decode inverted barcodes.

List<EnumGrayscaleTransformationMode> grayscaleTransformationModes;

grayscaleEnhancementModes

Determines how to enhance the quality of the grayscale image.

List<EnumGrayscaleEnhancementMode> grayscaleEnhancementModes;

scaleDownThreshold

Defines the threshold for scaling down the image/frame before processing to help with memory overhead. If both the width and height are larger than the threshold, the image is shrunk by half.

int scaleDownThreshold;

This page is compatible for: