瀏覽代碼

人脸错误三次

y595705120 2 年之前
父節點
當前提交
2704f5de6b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/containers/center/play/components/iMedia.vue

+ 3 - 3
src/containers/center/play/components/iMedia.vue

@@ -135,7 +135,7 @@
           } else {
             this.errCount = 0;
           }
-          if (this.errCount >= 2) {
+          if (this.errCount > 2) {
             this.doPause();
           }
         })
@@ -297,14 +297,14 @@
           this.doPause()
           return;
         }
-        if (this.errCount > 3) {
+        if (this.errCount > 5) {
           this.$message.errorMsg("人脸不在摄像头上", 5);
           this.destroyTimer()
           this.$emit("close");
           return;
         }
         // 异常 10秒检查
-        if (this.errCount > 0 && this.tickNum % 20 == 3) {
+        if (this.errCount > 0 && this.tickNum % 10 == 3) {
           this.photograph()
         } else if (this.tickNum % 60 == 1) {
           this.photograph()