Issue: When a barcode is wrapped on a cylindrical object such as a pop can, the resulting barcode image is curved. The deformed barcode is very challenging to scan correctly.
Solution: Dynamsoft Barcode Reader SDK provides several image processing methods to combat deformation. These helps to scan curved, crumpled, distorted and other types of challenging barcodes.
JSON Template:
{
"ImageParameter": {
"BarcodeFormatIds": [
"BF_QR_CODE",
"BF_MICRO_QR"
],
"BarcodeFormatIds_2": [
"BF2_NULL"
],
"DeformationResistingModes": [
{
"Level": 5,
"LibraryFileName": "",
"LibraryParameters": "",
"Mode": "DRM_GENERAL"
},
{
"Level": 5,
"LibraryFileName": "",
"LibraryParameters": "",
"Mode": "DRM_BROAD_WARP"
},
{
"Level": 5,
"LibraryFileName": "",
"LibraryParameters": "",
"Mode": "DRM_DEWRINKLE"
}
],
"Description": "",
"Name": "Settings",
"Timeout": 99999
},
"Version": "3.0"
}
Binarized image produced by Dynamsoft Barcode Reader:
Template for Dynamsoft Barcode Reader:
JavaScript Code Snippet to Use the Template:
barcodeReader.initRuntimeSettingsWithString(template);