Browse Source

采样频率

TitanWong 2 years ago
parent
commit
b136c9f0be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cvControl.py

+ 1 - 1
cvControl.py

@@ -188,7 +188,7 @@ while (cap.isOpened()):
     frame = cv2.resize(frame, (512, 288))
     # 1. 图像写入管道
     # 模n采样
-    if frame_counter%3==0:
+    if frame_counter%5==0:
         nt = datetime.datetime.now()
         nt+=dateutil.relativedelta.relativedelta(seconds=-2)
         timeStr = nt.strftime('%Y-%m-%d %H:%M:%S')