Issue:
When you scan a barcode from a screen on a monitor, a TV or a mobile phone, the image contains roughly parallel dark and light bands superimposed, called the moiré pattern. The interfering pattern makes decoding the barcode very challenging.
Solution:
Dynamsoft Barcode Reader SDK provides an image processing step to remove the moiré texture and would quickly decode the barcode.
JSON Template:
{
"ImageParameter" : {
"TextureDetectionModes": [
{
"LibraryFileName": "",
"LibraryParameters": "",
"Mode": "TDM_GENERAL_WIDTH_CONCENTRATION",
"Sensitivity": 5
}
],
"Name": "Settings"
},
"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);