Thanks for downloading Dynamsoft Barcode Reader Package!
Your download will start shortly. If your download does not begin, click here to retry.
How to read an inverted barcode?
Typically, normal barcode images include a dark barcode on a light background. An inverted image in this case would have a light barcode on a dark background instead. In order to read those types of barcodes, the grayscaleTransformationModes
array of furtherModes
must prioritize GTM_INVERTED
like shown in the below example.
settings.furtherModes.grayscaleTransformationMode[0] =
Dynamsoft.DBR.EnumGrayscaleTransformationMode.GTM_INVERTED;
await scanner.updateRuntimeSettings(settings);