Document(doc.uid);
      }

      document.getElementById("loadFileBtn").addEventListener("click",function(){
        document.getElementById("file").click();
      })
      document.getElementById("detectBtn").addEventListener("click",async function(){
        let points = documentScanner.detect(document.getElementById("photoRaw"),getScanOptions());
        if (document.getElementById("enableEditing").checked) {
          await loadImageToDoc(document.getElementById("photoRaw").src);
          showPerspect