zxing-js / browser

ZXing for JS's browser layer with decoding implementations for browser.
MIT License
213 stars 43 forks source link

COuldn't scan EAN 13 barcode #106

Closed distabiolijze closed 1 year ago

distabiolijze commented 1 year ago

COuldn't scan EAN 13 barcode with this error message No MultiFormat Readers were able to detect the code.

Version:


    "@zxing/browser": "^0.1.1",
    "@zxing/library": "^0.19.1",

Settings

const hints = new Map();
const formats = [BarcodeFormat.EAN_8, BarcodeFormat.EAN_13, BarcodeFormat.UPC_A, , BarcodeFormat.UPC_EAN_EXTENSION];

hints.set(DecodeHintType.POSSIBLE_FORMATS, formats);
hints.set(DecodeHintType.TRY_HARDER, true);

image

Shahrukh0396 commented 3 months ago

@distabiolijze How did you resolve this issue??