From 741490090721a9e88fcb75d769abf15f975d8edb Mon Sep 17 00:00:00 2001 From: frxz751113 <156018267+frxz751113@users.noreply.github.com> Date: Tue, 20 Aug 2024 22:55:27 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=BB=84=E6=92=AD=E5=AE=9A=E6=9C=9F?= =?UTF-8?q?=E6=A3=80=E6=B5=8B.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/组播定期检测.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/组播定期检测.py b/py/组播定期检测.py index b3d5cfc..49d0cf0 100644 --- a/py/组播定期检测.py +++ b/py/组播定期检测.py @@ -57,14 +57,14 @@ for filename in os.listdir(folder_path): cap = cv2.VideoCapture(url) start_time = time.time() frame_count = 0 - while frame_count < 20 and (time.time() - start_time) < 10: + while frame_count < 200 and (time.time() - start_time) < 10: ret, frame = cap.read() if not ret: break frame_count += 1 cap.release() - if frame_count >= 20: + if frame_count >= 200: detected_ips[ip_key] = {'status': 'ok'} output_file.write(line) else: