How can I avoid unintended barcodes scans?

When trying to scan a single barcode in a crowded situation (like when several codes are closed together or you are scanning an object in front of a shelf with other barcodes), there are few settings that can help you tune our scanner in order to avoid unintended barcodes scanning.


If you are looking for how to select a specific barcode among many, you can find the right article here.


Restrict the Active Symbologies

The Scandit Data Capture SDK is capable of reading many different types of barcodes. The type of a barcode is referred to as its symbology.
Whether you are trying to scan a label that presents different symbologies or different products with different types of barcodes, the easiest way to scan the right barcode is to enable only the symbology you are looking for.

You can find more information in the documentation pages for each specific platform/plugin:

NOTE: each additional enabled symbology requires additional computational resources as the image is searched for more potential barcode types. This will decrease the scanning performance slightly or even heavily.

NOTE: Some symbologies support variable length data content (e.g., Code 128, Code 39, Code 93, ITF). The length of data encoded in variable-length symbologies is measured as the number of symbols. If you have different codes with different numbers of symbols but you need to scan just one, an effective way to avoid unwanted scanning is to adjust the symbol count settings. More info can be found here.


Restrict the scanning search area

The area which is searched for barcodes is called "Active Scan Area". Any area not covered by the Active Scan Area will not be searched for barcodes.
By restricting the Active Scan Area it's easier to point at the right code among many.


There are different options to restrict the Active scan area, like setting a corner-based area by using RectangularLocationSelection or a circle-based area by using RadiusLocationSelection.

You can find more information in the documentation pages for each specific platform/plugin:

NOTE: In use-cases where a Scan Area restriction is used to aim at a specific barcode among many - e.g. while still using the Rectangular Viewfinder - it makes sense that the Viewfinder matches the active Scan Area.

NOTE: restricting the Scan Area can significantly improve decoding speed - especially on low-end devices - as we are searching for barcodes in a smaller area and we therefore need to reduce the computational effort needed.


NOTE: Together with a restricted scan area, to give the user an indication of where he should scan, you can use a specific viewfinder instead of the standard Rectangular viewfinder used by default, like the Laserline Viewfinder or the Spotlight Viewfinder.


Use a scan & stop workflow

To minimize the unwanted scanning, a possible workflow could be to:

  • Start the scanner in paused mode (camera preview on but capture mode disabled and not scanning).
  • Add a button to enable scanning on user tap. When the scanner is active, the button can be grayed out and display “Scanning”.
  • When a barcode is scanned, disable scanning by putting the camera in standby mode. This will ensure that you are not scanning any other codes and will save battery.
  • To scan again, click on the button button again
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request