Unable to scan the UPC-E
Oktay28 opened this issue · comments
Describe the bug
The scanner can't find the UPC-E barcode. It works with the rest of the formats that are set, but not with UPC_E. Tried on multiple devices, non of them succeeded
const hints = new Map()
const formats = [
BarcodeFormat.UPC_A,
BarcodeFormat.UPC_E,
BarcodeFormat.UPC_EAN_EXTENSION,
]
hints.set(DecodeHintType.POSSIBLE_FORMATS, formats)
const scanner = new BrowserMultiFormatReader(hints)
const stream = await navigator.mediaDevices.getUserMedia({ video: { facingMode: 'environment' }})
const result = await scanner.decodeOnceFromStream(stream, 'video').catch(() => null)
Screenshots
This is what I am trying to scan
Additional context
Library version 0.20.0
Confirmed, couldn't scan any UPC-E barcodes, not just the above barcode, but others I made with different methods.
The code in the screenshot can be scanned with a Zebra TC52 Android device.
Stale issue message