How to avoid incorrect barcode results?
Version 10
-
One method is to raise the value of minResultConfidence of the
SimplifiedCaptureVisionSettings
interface of the capture vision router module. It is set to30
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
SimplifiedCaptureVisionSettings
interface of the capture vision router module, the SDK can ignore results that are consistently coming out shorter than expected. It is set to0
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.