소스 검색

人脸认证间隔时间2秒

y595705120 1 년 전
부모
커밋
6961747078
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/containers/center/play/components/iMedia.vue

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

@@ -221,7 +221,7 @@
     methods: {
       getface( val){
         this.imgbase64 = val;
-        let now = parseInt( Date.now()/1000 );
+        let now = parseInt( Date.now()/2000 );
         if( !this.identifyFacePass && this.prevCollect != now ){
           this.prevCollect = now
           this.photograph("video2")
@@ -412,9 +412,9 @@
             this.doPause()
           }
           // 人脸认证
-          if (this.tickNum % 3 == 1) {
-            this.photograph( "video2" );
-          }
+          // if (this.tickNum % 3 == 1) {
+          //   this.photograph( "video2" );
+          // }
           return;
         };
         // 未开始