Explorar o código

人脸错误三次

y595705120 %!s(int64=2) %!d(string=hai) anos
pai
achega
2704f5de6b
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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()