@ekyc_qoobiss/qbs-ect-cmp 4.7.25 → 4.7.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -530,10 +530,19 @@ const IdAutoCapture = class {
530
530
  this.opencvReady = false;
531
531
  this.isCapturing = false;
532
532
  this.handleOpencvReady = async () => {
533
- this.opencvReady = true;
534
- console.log('OpenCV.js loaded. Ready to start detection.');
535
- await this.getMedia(); // Get camera media once OpenCV is ready
536
- await this.handleStartDetection(); // Start processing video frames
533
+ const checkMatReady = setInterval(async () => {
534
+ if (typeof cv !== 'undefined' && typeof cv.Mat === 'function') {
535
+ clearInterval(checkMatReady);
536
+ console.log('opencv:ready event received and cv.Mat is a constructor. OpenCV is truly ready.');
537
+ this.opencvReady = true;
538
+ console.log('OpenCV.js loaded. Ready to start detection.');
539
+ await this.getMedia(); // Get camera media once OpenCV is ready
540
+ await this.handleStartDetection(); // Start processing video frames
541
+ }
542
+ else {
543
+ console.log('OpenCV.js detected, but cv.Mat is not yet a constructor. Waiting...');
544
+ }
545
+ }, 50);
537
546
  };
538
547
  // Method to start video recording
539
548
  this.startRecording = () => {
@@ -796,7 +805,7 @@ const IdAutoCapture = class {
796
805
  if (TranslationUtils.state.device.isDesktop) {
797
806
  cameraVideoClass = 'cameraVideoSelfieDesk';
798
807
  }
799
- return (index.h("div", { key: 'deb2d35a50823fa5c222c6049a4119a371194870', class: "container flex center" }, index.h("div", { key: '449a0fef911f14d3611a1d7e83ed1bfc02c0553f', class: "px-2 w-100" }, index.h("h1", { key: '8d9f8b3684e58ba57f4ec0467efa0d9af62c5a98', class: this.titleStyle, innerHTML: this.titleMesage }), index.h("div", { key: '701aeecc148bdd00ef9cd38b165f0628adfe827c', hidden: this.verified }, index.h("div", { key: 'cbe89cf4ddc15c46b595929ecaf4fb8cc20136b5', class: "w-100 h-100 rounded" }, index.h("div", { key: '78f52a0a77c3dd8218115253bbcb79ee0a9a6d4b', class: "camera rounded" }, index.h("video", { key: '6ee76764205ce855fedd7b8c86be4394b2cad7bb', id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.videoElement = el) }), index.h("canvas", { key: '5574b79a997d3ca06afa99faa61cb9bace755e91', id: "output", ref: el => (this.canvasElement = el), style: { display: 'none' } }), index.h("canvas", { key: 'e25df7ef70206d5544adade008cd612f1fee550a', id: "processingCanvasElement", ref: el => (this.processingCanvasElement = el), style: { display: 'none' } }), index.h("div", { key: '8ac6db08f2d1e44d04f2827f29e08787b853812e', class: "id-guide-rectangle" }), this.isCapturing && index.h("div", { key: '900ddcc0d2bf371d7ad4e593eaf0e9b60b6d2810', class: "capture-flash-overlay" }), this.countdown > 0 && (index.h("div", { key: 'd5f05c1b3dcbd02977462c6b9d816c2835698c2f', class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center" }, index.h("span", { key: '7b85d36f1b609360c8214a29e220f6f80effffca', class: "text-white text-9xl font-bold animate-bounce" }, this.countdown)))))), index.h("div", { key: '9b653ebb92ce731ddb235d85db4a7fa99aaa4c64', class: "footer text-center" }, index.h("img", { key: 'f085d8f1698e66448cf749ec4cc45b496fbd55a1', src: Cameras.logoOntraceSvg })))));
808
+ return (index.h("div", { key: '559bfe7fac1dd5a3e27916476eb5e4a8c2fef7b7', class: "container flex center" }, index.h("div", { key: 'ae81c667734915a9c1cb415623dc8228eb1c939f', class: "px-2 w-100" }, index.h("h1", { key: '3b2b2188b103dca2ece3005d06875906ab602e32', class: this.titleStyle, innerHTML: this.titleMesage }), index.h("div", { key: '80bfc6f31de728101d329710b9334f03ef70d7ee', hidden: this.verified }, index.h("div", { key: '05f7765dd9f42ce792f85e7ca096bfefc8b1c797', class: "w-100 h-100 rounded" }, index.h("div", { key: '91bef087eff53fd1fe568b580815087b5112db81', class: "camera rounded" }, index.h("video", { key: '618fe3be9beba201b0c3db4dd70f26bd1a4a31b4', id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.videoElement = el) }), index.h("canvas", { key: 'd7558bb154af3ccdf7f8d7f100567c6744588ccc', id: "output", ref: el => (this.canvasElement = el), style: { display: 'none' } }), index.h("canvas", { key: '56aafa25e4dfb93e9ded664e453ee7c9c53bde7f', id: "processingCanvasElement", ref: el => (this.processingCanvasElement = el), style: { display: 'none' } }), index.h("div", { key: '5de9a4cb22378fc35da753f31219fa7eb32a58fa', class: "id-guide-rectangle" }), this.isCapturing && index.h("div", { key: '21362e7496c1761528541731baf71140a3d41893', class: "capture-flash-overlay" }), this.countdown > 0 && (index.h("div", { key: '2015a4ba22578673c12bd39e0d76219fd735f707', class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center" }, index.h("span", { key: '480811d0e692d8b9e0e0c64c1f220850c18f38b0', class: "text-white text-9xl font-bold animate-bounce" }, this.countdown)))))), index.h("div", { key: '58cb4e78d20c69e63fff719e00115a599d0a4391', class: "footer text-center" }, index.h("img", { key: '480db038bd76c75a7c1ad212214257529c30e200', src: Cameras.logoOntraceSvg })))));
800
809
  }
801
810
  get el() { return index.getElement(this); }
802
811
  };
@@ -861,7 +870,7 @@ const IdSelection = class {
861
870
  };
862
871
  IdSelection.style = idSelectionCss;
863
872
 
864
- const version$1 = "4.7.25";
873
+ const version$1 = "4.7.26";
865
874
  var packageJson = {
866
875
  version: version$1};
867
876