Dev Center
Swift
Objective-C
Table of contents

PerformanceSettings Sample

View the sample code

Templates

Template Name Description
ReadBarcodes_Default The default template for DBR mobile editions.
ReadSingleBarcode The video streaming barcode scanning template for single barcode usage scenario.
ReadBarcodes_SpeedFirst The video streaming barcode scanning template for speed first usage scenario.
ReadBarcodes_ReadRateFirst The video streaming barcode scanning template for read-rate first usage scenario.

Parameter Parsing

ExpectedBarcodeCount

Parameter ExpectedBarcodesCount is an int value that refers to how many barcodes you would like to decode from a single image or frame. The barcode reader will try to find as many barcodes as the ExpectedBarcodesCount number. Set the ExpectedBarcodesCount to 1 can maximize the processing speed of your program but limit the read rate at the same time.

BarcodeFormatIds

Parameter BarcodeFormatIds is an int value that controls the recognizable barcode formats. The fewer formats you set, the higher speed your app will be.

ScaleDownThreshold

The image/frame will be continuously scaled down until it is smaller than the ScaleDownThreshold. You can use this parameter to improve the processing speed but the read rate and accuracy will decline on decoding the small-module barcode.

Timeout

The parameter Timeout controls the maximum time consumption on processing a single image/frame. For image decoding scenarios, you can set a longer Timeout to ensure the barcode reader decode as many barcodes as possible from the image. For video barcode decoding scenarios, not all video frame contains a barcode. You can reduce the Timeout to enable your barcode reader to quickly quit the video frames without a barcode. The Timeout parameter benefits the speed of barcode decoding but might reduce the read rate.

DeblurModes

The DeblurModes parameter enables the barcode reader to try different algorithms on processing the blurry barcodes. This parameter will benefit the read rate but reduce the processing speed.

Other Settings

Set Scan Region

Configuring the scan region via CameraEnhancer method setScanRegion can further improve the barcode decoding speed. The video frames will be cropped based on the scanRegion setting before they are processed by the barcode reader. The scanRegion setting benefits the processing speed but might reduce the read rate at the same time.

region-def

Reduce the Size of Scan Area

Multi-Frame Verification

When a barcode result has been decoded more than once within a short period of time, we can confirm it is a correct result and output it. However, if a barcode result has never been decoded a second time within a period of time, we consider it a misread result and discard it. You can enable the multi-frame verification to further improve the result accuracy via the method enableResultCrossVerification.

Frame Filter

Frame filter is one of the camera enhancer features. You can enable it via CameraEnhancer method enableEnhancedFeatures. The frame filter helps in filtering blurry video frames to improve the barcode decoding accuracy. It also improves the speed performance of low-end devices.

This page is compatible for:

Version 7.5.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 10.x
    • Version 10.2.10
    • Version 10.0.21
    • Version 10.0.20
  • Version 9.x
    • Version 9.6.40
    • 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 +