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, andBarcodeFormatSpecification. In order to use any of the settings that are not available inSimplifiedBarcodeReaderSettings, 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
expectedBarcodesCountto 0 if the barcode count is unknown. The library will try to find at least 1 barcode. - Set
expectedBarcodesCountto 1 to reach the highest speed for processing single barcode. - Set
expectedBarcodesCountto “n” if there will be “n” barcodes to process from an image. - Set
expectedBarcodesCountto the highest expected value if there exists multiple barcodes but the exact count is not confirmed.
localizationModes
Determines how to localize the barcodes.
- View more information about LocalizationMode Parameters.
- View the available
EnumLocalizationModemembers.
List<EnumLocalizationMode> localizationModes;
deblurModes
Determines which deblur algorithms to apply when decoding the barcodes.
- View more information about DeblurMode Parameters.
- View the available
EnumDeblurModemembers.
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.
- View more information about GrayscaleTransformationMode Parameter.
- View the available
EnumGrayscaleTransformationModemembers.
List<EnumGrayscaleTransformationMode> grayscaleTransformationModes;
grayscaleEnhancementModes
Determines how to enhance the quality of the grayscale image.
- View more information about GrayscaleEnhancementMode Parameter.
- View the available
EnumGrayscaleEnhancementModemembers.
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;