Hi, I have a requirement to read the serial number from the barcode image uploaded in the portals.
Since the barcode field in the OOB CRM is only available for the mobiles and tablets, I had to look for another approach.
I went with QuaggaJS librabry and added the quagga.js file in the webfiles and added the code to detect the barcode. It worked fine for few of the images downloaded from the internet. When it came to the client images, the values read were different.
Below was the code used for Quagga decoding function:
Quagga.decodeSingle(
{
decoder: {
readers: ["upc_reader", "code_128_reader", "code_39_reader", "code_39_vin_reader", "ean_8_reader", "ean_reader", "upc_e_reader", "codabar_reader", "i2of5_reader", "2of5_reader", "code_93_reader"]
},
locate: true,
src: src
},
function(result){
if(result && result.codeResult && result.codeResult.code)
{
$("#new_barcodevalue").val(result.codeResult.code);
}else{
$("#new_barcodevalue").val("Unable to read");
}
});
The serials numbers were being read correctly in online third-party tools. Please suggest if there is any other way of getting the barcode value.
Thanks in advance!!
*This post is locked for comments
I have the same question (0)Hi Sahithi, did you manage to get this working for your client images?