Explorar o código

人脸认证间隔时间2秒

y595705120 hai 1 ano
pai
achega
6961747078
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  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;
         };
         // 未开始