Decode Unreadable Barcodes with Dynamsoft Barcode Reader's Custom Scan Parameters

Binarized image produced by Dynamsoft Barcode Reader:
JSON Template (help):
Issue: Reading the dot code on a cigarette package can be challenging due to several factors. Firstly, the small size of the code makes it difficult to detect. Additionally, the plastic wrapping on the package creates glare, further complicating the scanning process. The code is often printed in white on a black background, resulting in an inverted appearance. Moreover, the absence of a clear finder pattern hinders the accurate localization of the barcode.
Solution: The Dynamsoft Barcode Reader SDK offers flexible APIs, enabling developers to build a custom barcode scanner for various usage scenarios such as reading tiny inverted and glared DotCode. For this scenario, we recommend the following adjustments:
- Set BinarizationModes to
BM_LOCAL_BLOCK
to perform adaptive binarization by blocks, effectively reducing the impact of uneven lighting and small module sizes. - Set LocalizationModes to
LM_STATISTICS_MARKS
to localize barcodes by grouping marks specifically designed for DotCode. - Configure DeblurModes appropriately to enhance and sharpen blurry images.
- Set GrayscaleTransformationModes to invert the image, enabling the accurate reading of light barcodes on a dark background.