 location.hash = '';
  } else {
    location.hash = set;
  }
};

intext.oninput();

let recording = false;
const video = document.createElement("video");
const ctx = canvas.getContext("2d");

async function detectOnCanvas() {
  try {
    const img = ctx.getImageData(0, 0, canvas.width, canvas.height);
    const { digitized, detected } = await qrean.detect(img, {
      gamma: gamma.value,
      eciCode: seleci.value,
    });
    decodeResult.value = detected.map(({ type, text, qr }) => `${type}${qr ? JSON.st