getElementById("photoRaw"),getScanOptions());
              await loadImageToDoc(document.getElementById("photoRaw").src);
              showPerspectiveViewer(points);
            }else{
              getCroppedImage();
              captureViewer.currentDocument.deleteAllPages();
            }
        });
        perspectiveViewer = new Dynamsoft.DDV.PerspectiveViewer({
          container: document.getElementById("perspectiveViewer"),
          uiConfig: isMobile()? mobilePerspectiveUiConfig : pcPerspecti