Sfoglia il codice sorgente

disable FaceDetector

Michael Wang 5 anni fa
parent
commit
4de6cfc50e
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/components/FaceRecognition/FaceRecognition.vue

+ 4 - 4
src/components/FaceRecognition/FaceRecognition.vue

@@ -84,14 +84,14 @@ export default {
     window.__stream = null;
     this.openCamera();
 
-    this.checkFaceDetectorTimeout = setTimeout(() => {
-      this.nativeFaceDetectorStats();
-    }, 60 * 1000);
+    // this.checkFaceDetectorTimeout = setTimeout(() => {
+    //   this.nativeFaceDetectorStats();
+    // }, 60 * 1000);
   },
   beforeDestroy() {
     clearTimeout(this.retrySnapTimeout);
     clearTimeout(this.showSnapResultTimeout);
-    clearTimeout(this.checkFaceDetectorTimeout);
+    // clearTimeout(this.checkFaceDetectorTimeout);
     window.__stream = null;
     if (this.$refs.video.srcObject) {
       this.$refs.video.srcObject.getTracks().forEach(function(track) {