Capture readbarcodes not recognizing QRCode

Chris Jensen
edited February 9, 2023 in Services #1

Hi - I am submitting the attached QRCode (I have tried several from many sources with same result) to capture readbarcodes and it does not recognize any QRCode barcodes.

The api works fine for me with several other types of barcodes. I don't get any error with the QRCode - just nothing found.

This is java - but it will give you an idea of the current settings I use. Although I have tried almost everything under the sun

propList.add(new ReadBarcodeRequest.ServiceProp("Env", "D"));
propList.add(new ReadBarcodeRequest.ServiceProp("Mode", "Enhanced"));
propList.add(new ReadBarcodeRequest.ServiceProp("Orientation", "HorizontalVertical"));
propList.add(new ReadBarcodeRequest.ServiceProp("Decode", "true"));
propList.add(new ReadBarcodeRequest.ServiceProp("Characters", "46"));
propList.add(new ReadBarcodeRequest.ServiceProp("MinHeight", "0"));
propList.add(new ReadBarcodeRequest.ServiceProp("ScanDistance", "5"));
propList.add(new ReadBarcodeRequest.ServiceProp("BarcodeTypes", "Addon2,Addo...

(the list of barcodes has all the available barcode types - I've also tried with just QRCode but no difference in results)

propList.add(new ReadBarcodeRequest.ServiceProp("UseChecksum", true));
propList.add(new ReadBarcodeRequest.ServiceProp("UseRegion", ""));


Comments

  • jpluimers
    jpluimers E Community Moderator

    Hi Chris, I tested with you tiff file and also for me no data was returned for the tiff image you shared. I expect it has to do with the amount of whitespace it has next to the QR code. After I removed that whitespace the tiff was recognized ok and its value was returned.

    See my request and response. Note that I kept the serviceProps empty, not sure if that impacts the result.

    I tested with this attached qrcode-jopl.tiff.

    tiff

  • Hi -Thanks for your response - it made me wonder if serviceProps was the issue.

    So I removed all the serviceProps values - and it worked for my original image for me (strange). Also I have been able to get my original use case to work with blank serviceProps. I have been wanting to scan a badge and get the QRCode value back from it - as you can see below.

    I think the API documentation needs some clarification around serviceProps. I don't believe it mentions that apparently we should start with blank values. Nor any recommendations for specific types of barcodes. My previous settings worked pretty good for many different types of barcodes - but made QRCodes invisible.

    Thanks again

    Here is the view of my use case in my API Demo webapp. Working exactly like I wanted it to.