diff --git a/src/worker/worker.ts b/src/worker/worker.ts index 98e3c78..dc9c0f0 100644 --- a/src/worker/worker.ts +++ b/src/worker/worker.ts @@ -10,7 +10,7 @@ function detectWithJsQR(imageData : ImageData) : Array { imageData.data, imageData.width, imageData.height, - { inversionAttempts: "dontInvert" } + { inversionAttempts: "attemptBoth" } ); if (qrcode === null || qrcode.data === "") {