Преглед изворни кода

人脸认证间隔时间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;
         };
         // 未开始