mentScanner();
          document.getElementById('status').innerHTML = 'OpenCV.js is ready.';
          detectHandler = new OpenCVDocumentDetectHandler(documentScanner);
          Dynamsoft.DDV.setProcessingHandler("documentBoundariesDetect", detectHandler);
        }
      };

      async function initDDV(){
        Dynamsoft.DDV.Core.license = "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9"; // Public trial license which is valid for 24 hours
        Dynamsoft.DDV.Core.engineResourcePath = "/dynamsoft-document