What are inverse barcodes and does Scandit read them?
Barcodes are typically created using dark elements and bright backgrounds.
However, some of them are using inverted colors as shown below.
![]() |
![]() |
Datamatrix code | Inverse Datamatrix Code |
Scandit does support reading both variants for given barcode symbologies.
By default, reading inverse barcodes need to be enabled particularly within the symbology settings.
How to enable reading inverse barcodes?
→ In Web SDK (5.x):
// Let's enable inverted color reading for datamatrix codes
scanSettings.getSymbologySettings(ScanditSDK.Barcode.Symbology.DATA_MATRIX).setColorInvertedEnabled(true);
barcodePicker.applyScanSettings(scanSettings);
You will find more information about this method in our documentation for webSDK
https://docs.scandit.com/stable/web/classes/SymbologySettings.html#setColorInvertedEnabled
→ in Native SDK’s or frameworks:
// Example for iOS - Let's enable inverted color reading for datamatrix codes
let settings = BarcodeCaptureSettings() let symbologySettings = settings.settings(for: .datamatrix) symbologySettings.isColorInvertedEnabled = true
// more details here: https://docs.scandit.com/data-capture-sdk/ios/configure-barcodes.html#read-bright-on-dark-barcodes
For other platforms - Open documentation for the platform you use(start here: https://www.scandit.com/developers/ ) and open
“Barcode Scanning”->”Configure Which Barcodes Are Read”
from the list on the left side and find the “Read Bright-on-Dark Barcodes” section. You will find there a description of the use and code snippet.
Comments
0 comments
Article is closed for comments.