Dev Center
Swift
Objective-C
Table of contents

Parameter Configuration Classes

PublicRuntimeSettings

You can update most of the parameter settings through the PublicRuntimeSettings class.

class com.dynamsoft.dbr.PublicRuntimeSettings;
Attribute Type Descriptions
terminatePhase int Sets the phase to stop the barcode reading algorithm.
timeout int Set the maximum time spent on scanning one image (page).
maxAlgorithmThreadCount int Sets the number of threads the image processing algorithm will use to decode barcodes.
expectedBarcodesCount int Sets the number of barcodes expected to be detected for each image.
barcodeFormatIds int BarcodeFormat group 1. Read more in EnumBarcodeFormat
barcodeFormatIds_2 int BarcodeFormat group 2. Read more in EnumBarcodeFormat_2
pdfRasterDPI int Sets the output image resolution.
scaleDownThreshold int Sets the threshold for the image shrinking.
binarizationModes int[] Sets the mode and priority for binarization.
localizationModes int[] Sets the mode and priority for localization algorithms.
furtherModes FurtherModes Further modes settings. Please read more in FurtherModes class.
deblurLevel int Sets the degree of blurriness of the barcode.
intermediateResultTypes int Sets which types of intermediate result to be kept for further reference.
intermediateResultSavingMode int Sets the mode for saving intermediate result.
resultCoordinateType int Specifies the format for the coordinates returned.
textResultOrderModes int[] Sets the mode and priority for the order of the text results returned.
returnBarcodeZoneClarity int Sets whether or not to return the clarity of the barcode zone.
region RegionDefinition Sets the scan region. Please read more in RegionDefinition Class
minBarcodeTextLength int Sets the range of barcode text length for barcodes search.
minResultConfidence int The minimum confidence of the result.
scaleUpModes int[] Sets the mode and priority to control the sampling methods of scale-up for linear barcode with small module sizes.
pdfReadingMode int Sets the way to detect barcodes from a PDF file when using the DecodeFile method.
deblurModes int[] Sets the mode and priority for deblurring.

Code Snippet

PublicRuntimeSettings runtimeSettings = barcodeReader.getRuntimeSettings();
// Make some settings here
// runtimeSettings.****** = ******
barcodeReader.updateRuntimeSettings(runtimeSettings);

FurtherModes

FurtherModes is an extension of the PublicRuntimeSettings class. Through the FurtherModes, you can make advanced settings to process the image for barcode reading.

class com.dynamsoft.dbr.FurtherModes;
Attribute Type Descriptions
colourClusteringModes int[] Sets the mode and priority for colour categorization.
colourConversionModes int[] Sets the mode and priority for converting a colour image to a grayscale image.
grayscaleTransformationModes int[] Sets the mode and priority for the grayscale image conversion.
regionPredetectionModes int[] Sets the region pre-detection mode for barcodes search.
imagePreprocessingModes int[] Sets the mode and priority for image preprocessing algorithms.
textureDetectionModes int[] Sets the mode and priority for texture detection.
textFilterModes int[] Sets the mode and priority for text filter.
textAssistedCorrectionMode int Sets the mode of text assisted correction for barcode decoding.
dpmCodeReadingModes int[] Sets the mode and priority for DPM code reading.
deformationResistingModes int[] Sets the mode and priority for deformation resisting.
barcodeComplementModes int[] Sets the mode and priority to complement the missing parts in the barcode.
barcodeColourModes int[] Sets the mode and priority for the barcode colour mode used to process the barcode zone.
accompanyingTextRecognitionModes int[] Sets the mode and priority to recognize accompanying text.

Code Snippet

FurtherModes furtherModes = runtimeSettings.furtherModes;

RegionDefinition

The class stores the defined region information.

class com.dynamsoft.dbr.RegionDefinition;
Attribute Type Descriptions
regionTop int The top-most coordinate or percentage of the region.
regionLeft int The Left-most coordinate or percentage of the region.
regionRight int The Right-most coordinate or percentage of the region.
regionBottom int The Bottom-most coordinate or percentage of the region.
regionMeasuredByPercentage int Sets whether or not to use percentage to measure the region size.

Code Snippet

RegionDefinition regionDefinition = runtimeSettings.region;

FrameDecodingParameters

The parameters that helps you on frame decoding.

class com.dynamsoft.dbr.FrameDecodingParameters;
Attribute Type Descriptions
maxQueueLength int The maximum number of frames waiting for decoding.
maxResultQueueLength int The maximum number of frames waiting results (text result/localization result) will be kept for further reference.
width int The width of the frame image in pixels.
height int The height of the frame image in pixels.
stride int The stride (or scan width) of the frame image.
imagePixelFormat int The image pixel format used in the image byte array.
region RegionDefinition The region definition of the frame to calculate the internal indicator.
threshold float The threshold used for filtering frames.
fps int The frequency of calling appendFrame per second.
autoFilter int Sets whether to filter frames automatically.
clarityCalculationMethod int Sets the method used for calculating the clarity of the frames.
clarityFilterMode int Sets the mode used for filtering frames by calculated clarity.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

version 8.0.0

  • Latest version (10.2.10)
  • Version 10.x
    • Version 10.0.21
    • Version 10.0.20
  • Version 9.x
    • Version 9.6.20
    • Version 9.6.11
    • Version 9.6.10
    • Version 9.6.0
    • Version 9.4.0
    • Version 9.2.13
    • Version 9.2.11
    • Version 9.2.10
    • Version 9.0.2
    • Version 9.0.1
    • Version 9.0.0
  • Version 8.x
    • Version 8.9.3
    • Version 8.9.1
    • Version 8.9.0
    • Version 8.8.0
    • Version 8.6.0
    • Version 8.4.0
    • Version 8.2.1
    • 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
Change +