浏览代码

disable FaceDetector

Michael Wang 5 年之前
父节点
当前提交
4de6cfc50e
共有 1 个文件被更改,包括 4 次插入4 次删除
  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) {