|
@@ -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()
|