Przeglądaj źródła

disable FaceDetector

Michael Wang 5 lat temu
rodzic
commit
4de6cfc50e

+ 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) {