Table of contents

How to avoid incorrect barcode results?

Version 10 and above

  • One method is to raise the value of minResultConfidence of the SimplifiedBarcodeReaderSettings interface of SimplifiedCaptureVisionSettings. It is set to 30 by default.

  • If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the minBarcodeTextLength property of the SimplifiedBarcodeReaderSettings interface of SimplifiedCaptureVisionSettings, the SDK can ignore results that are consistently coming out shorter than expected. It is set to 0 by default.

  let settings = await router.getSimplifiedSettings('ReadSingleBarcode');
  settings.barcodeSettings.minResultConfidence = 40; //setting confidence
  settings.barcodeSettings.minBarcodeTextLength = 5; //setting barcodeTextLength
  await router.updateSettings('ReadSingleBarcode', settings);

Version 9

  • One method is to raise the value of minResultConfidence of the RuntimeSettings to a value of 50 or higher. It is set to 30 by default.
  • If the issue has to do with the length of the text result, you can try setting a minimum length for the barcode text(s) that are returned by the SDK. By setting the minBarcodeTextLength property of the RuntimeSettings, the SDK can ignore results that are consistently coming out shorter than expected.

This page is compatible for:

Is this page helpful?

YesYes NoNo