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
You will find more information about this method in our documentation for webSDK
→ 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 frameworks - 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.