浏览代码

新活体检测:晃出摄像头、陌生人

Michael Wang 5 年之前
父节点
当前提交
8b4b751221
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/features/OnlineExam/Examing/FaceMotion/FaceMotion.vue

+ 2 - 0
src/features/OnlineExam/Examing/FaceMotion/FaceMotion.vue

@@ -577,6 +577,7 @@ export default {
       );
       if (result && result.length >= 2) {
         this.corFinalResult.result = false;
+        this.corFinalResult.stranger = true;
         this.corFinalResult.errorMsg = "检测过程中多人脸失败";
         console.log("检测过程中多人脸失败");
         this.failedTest("检测到多张人脸!活体检测失败!");
@@ -592,6 +593,7 @@ export default {
           this.singleFaceFailedTimes / this.totalDetectTimes >= 0.2
         ) {
           this.corFinalResult.result = false;
+          this.corFinalResult.waggleOutCamera = true;
           this.corFinalResult.errorMsg = "检测过程人脸晃出摄像头";
           console.log("检测过程人脸晃出摄像头");
           this.failedTest("活检过程中没有检测到人脸!活体检测失败!");