Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
Defines a struct to configure the barcode reading runtime settings. These settings control the barcode recognition process such as which barcode types to decode.
typedef struct tagPublicRuntimeSettings PublicRuntimeSettings
Sets the phase to stop the barcode reading algorithm.
TerminatePhase tagPublicRuntimeSettings::terminatePhase
Value Range
Any one of the TerminatePhase
Enumeration items
Default Value
TP_BARCODE_RECOGNIZED
Remarks
When the recognition result is not desired, you can set this parameter can be set to skip certain processing stages.
See Also
TerminatePhase
Sets the maximum amount of time (in milliseconds) that should be spent searching for a barcode per page. It does not include the time taken to load/decode an image (TIFF, PNG, etc.) from disk into memory.
int tagPublicRuntimeSettings::timeout
Value Range
[0, 0x7fffffff]
Default Value
10000
Remarks
If you want to stop reading barcodes after a certain period of time, you can use this parameter to set a timeout.
Sets the number of threads the image processing algorithm will use to decode barcodes.
int tagPublicRuntimeSettings::maxAlgorithmThreadCount
Value Range
[1, 4]
Default Value
4
Remarks
To keep a balance between speed and quality, the library concurrently runs four different threads for barcode decoding by default.
Sets the number of barcodes expected to be detected for each image.
int tagPublicRuntimeSettings::expectedBarcodesCount
Value Range
[0, 0x7fffffff]
Default Value
0
Remarks
- 0: means Unknown and it will return the result of the first successful localization mode attempt.
- 1: try to find one barcode. If one barcode is found, the library will stop the localization process and perform barcode decoding.
- n: try to find n barcodes. If the library only finds m (m<n) barcode, it will try different algorithms till n barcodes are found or all algorithms are tried.
Sets the formats of the barcode in BarcodeFormat group 1 to be read. Barcode formats in BarcodeFormat group 1 can be combined.
int tagPublicRuntimeSettings::barcodeFormatIds
Value Range
A combined value of BarcodeFormat
Enumeration items
Default Value
BF_ALL
Remarks
If the barcode type(s) are certain, specifying the barcode type(s) to be read will speed up the recognition process. The barcode format our library will search for is composed of BarcodeFormat group 1 and BarcodeFormat group 2, so you need to specify the barcode format in group 1 and group 2 individually.
See Also
BarcodeFormat
, BarcodeFormat_2
Sets the formats of the barcode in BarcodeFormat group 2 to be read. Barcode formats in BarcodeFormat group 2 can be combined.
int tagPublicRuntimeSettings::barcodeFormatIds_2
Value Range
A combined value of BarcodeFormat_2
Enumeration items
Default Value
BF2_NULL
Remarks
If the barcode type(s) are certain, specifying the barcode type(s) to be read will speed up the recognition process. The barcode format our library will search for is composed of BarcodeFormat group 1 and BarcodeFormat group 2, so you need to specify the barcode format in group 1 and group 2 individually.
See Also
BarcodeFormat
, BarcodeFormat_2
Sets the output image resolution.
int tagPublicRuntimeSettings::pdfRasterDPI
Value Range
[100, 600]
Default Value
300
Remarks
When decoding barcodes from a PDF file using the DecodeFile method, the library will convert the PDF file to image(s) first, then perform barcode recognition.
Sets the threshold for the image shrinking.
int tagPublicRuntimeSettings::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 barcode image and shrink the image to that size before localization. Otherwise, the library will perform barcode localization on the original image.
Sets the mode and priority for binarization.
BinarizationMode tagPublicRuntimeSettings::binarizationModes[8]
Value Range
Each array item can be any one of the BinarizationMode
Enumeration items.
Default Value
[BM_LOCAL_BLOCK,BM_SKIP,BM_SKIP,BM_SKIP,BM_SKIP,BM_SKIP,BM_SKIP,BM_SKIP]
Remarks
The array index represents the priority of the item. The smaller index is, the higher priority is.
See Also
BinarizationMode
Sets the mode and priority for localization algorithms.
LocalizationMode tagPublicRuntimeSettings::localizationModes[8]
Value Range
Each array item can be any one of the LocalizationMode
Enumeration items.
Default Value
[LM_CONNECTED_BLOCKS, LM_SCAN_DIRECTLY, LM_STATISTICS, LM_LINES, LM_SKIP, LM_SKIP, LM_SKIP, LM_SKIP]
Remarks
The array index represents the priority of the item. The smaller index is, the higher priority is.
See Also
LocalizationMode
Sets further modes.
FurtherModes tagPublicRuntimeSettings::furtherModes
Sets the degree of blurriness of the barcode.
int tagPublicRuntimeSettings::deblurLevel
Value Range
[0, 9]
Default Value
9
Remarks
If you have a blurry image, you can set this property to a larger value. The higher the value set, the more effort the library will spend to decode images, but it may also slow down the recognition process.
Sets which types of intermediate result to be kept for further reference. Intermediate result types can be combined.
int tagPublicRuntimeSettings::intermediateResultTypes
Value Range
A combined value of IntermediateResultType
Enumeration items
Default Value
0
See Also
IntermediateResultType
Sets the mode for saving intermediate result.
IntermediateResultSavingMode tagPublicRuntimeSettings::intermediateResultSavingMode
Value Range
A value of IntermediateResultSavingMode
Enumeration items
Default Value
IRSM_MEMORY
See Also
IntermediateResultSavingMode
Specifies the format for the coordinates returned.
ResultCoordinateType tagPublicRuntimeSettings::resultCoordinateType
Value Range
Any one of the ResultCoordinateType
Enumeration items
Default Value
IRSM_MEMORY
See Also
ResultCoordinateType
Sets the mode and priority for the order of the text results returned.
TextResultOrderMode tagPublicRuntimeSettings::textResultOrderModes[8]
Value Range
Each array item can be any one of the TextResultOrderMode
Enumeration items.
Default Value
[TROM_CONFIDENCE, TROM_POSITION, TROM_FORMAT, TROM_SKIP, TROM_SKIP, TROM_SKIP, TROM_SKIP, TROM_SKIP]
Remarks
The array index represents the priority of the item. The smaller the index, the higher the priority.
See Also
TextResultOrderMode
Sets whether or not to return the clarity of the barcode zone.
int tagPublicRuntimeSettings::returnBarcodeZoneClarity
Value Range
[0,1]
Default Value
0
Remarks
0: Do not return the clarity of the barcode zone; 1: Return the clarity of the barcode zone.
Sets the region definition including regionTop, regionLeft, regionRight, regionBottom, and regionMeasuredByPercentage.
RegionDefinition tagPublicRuntimeSettings::region
Sets the range of barcode text length for barcodes search.
int tagPublicRuntimeSettings::minBarcodeTextLength
Value Range
[0, 0x7fffffff]
Default Value
0
Remarks
0: means no limitation on the barcode text length.
The minimum confidence of the result.
int tagPublicRuntimeSettings::minResultConfidence
Value Range
[0, 100]
Default Value
0
Remarks
0: means no limitation on the result confidence.
Sets the mode and priority to control the sampling methods of scale-up for linear barcode with small module sizes.
ScaleUpMode tagPublicRuntimeSettings::scaleUpModes[8]
Value Range
Each array item can be any one of the ScaleUpMode
Enumeration items.
Default Value
[SUM_AUTO, SUM_SKIP, SUM_SKIP, SUM_SKIP, SUM_SKIP, SUM_SKIP, SUM_SKIP, SUM_SKIP]
Remarks
The array index represents the priority of the item. The smaller the index, the higher the priority.
See Also
ScaleUpMode
Sets the way to detect barcodes from a PDF file when using the DecodeFile method.
PDFReadingMode tagPublicRuntimeSettings::pdfReadingMode
Value Range
Any one of the PDFReadingMode
Enumeration items.
Default Value
PDFRM_AUTO
See Also
PDFReadingMode
Sets the mode and priority for deblurring.
DeblurMode tagPublicRuntimeSettings::deblurModes[10]
Value Range
Each array item can be any one of the DeblurMode
Enumeration items.
Default Value
[DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP,DM_SKIP]
Remarks
The array index represents the priority of the item. The smaller index is, the higher priority is.
See Also
DeblurMode
Sets the minimum distance (in pixels) between the barcode zone and image borders.
int tagPublicRuntimeSettings::barcodeZoneMinDistanceToImageBorders
Value Range
[0, 0x7fffffff]
Default Value
0
Remarks
0: means no limitation on the distance.
Reserved memory for struct. The length of this array indicates the size of the memory reserved for this struct.
char tagPublicRuntimeSettings::reserved[36]
latest version