Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
fix: decode also inverted qr codes
Browse files Browse the repository at this point in the history
  • Loading branch information
glumb authored and gruhn committed Jun 18, 2023
1 parent c0b50d7 commit 0fe0e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function detectWithJsQR(imageData : ImageData) : Array<DetectedBarcode> {
imageData.data,
imageData.width,
imageData.height,
{ inversionAttempts: "dontInvert" }
{ inversionAttempts: "attemptBoth" }
);

if (qrcode === null || qrcode.data === "") {
Expand Down

0 comments on commit 0fe0e64

Please sign in to comment.