Update 酒店源1.py

This commit is contained in:
frxz751113
2025-05-04 13:34:43 +08:00
committed by GitHub
parent 46f3577851
commit 2804c6951e
+1 -1
View File
@@ -778,7 +778,7 @@ with open(output_file_path, 'w', encoding='utf-8') as output_file:
start_time = time.time() start_time = time.time()
frame_count = 0 frame_count = 0
# 尝试捕获5秒内的帧 # 尝试捕获5秒内的帧
while frame_count < 50 and (time.time() - start_time) < 3:#//////////////////////////////////////////////////////////////////////////////////////########### while frame_count < 50 and (time.time() - start_time) < 5:#//////////////////////////////////////////////////////////////////////////////////////###########
ret, frame = cap.read() ret, frame = cap.read()
if not ret: if not ret:
break break