Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37537318
en ru br
Репозитории ALT
S:3.0.0-alt7.beta1.gitc5b1766
www.altlinux.org/Changes

Группа :: Система/Ядро и оборудование
Пакет: howdy

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: howdy-pull-692-2.patch
Скачать


From 6893900a878d4e3ab0d209b2613283f710c5cbf2 Mon Sep 17 00:00:00 2001
From: FeliciaWen <wmyfelix@gmail.com>
Date: Tue, 26 Jul 2022 12:41:19 +0800
Subject: [PATCH] Add sleep delay
---
 howdy/src/recorders/video_capture.py | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/howdy/src/recorders/video_capture.py b/howdy/src/recorders/video_capture.py
index 07c4320..6e0d1a2 100755
--- a/howdy/src/recorders/video_capture.py
+++ b/howdy/src/recorders/video_capture.py
@@ -3,6 +3,7 @@
 
 # Import required modules
 import configparser
+from time import sleep
 import cv2
 import os
 import sys
@@ -83,6 +84,7 @@ def read_frame(self):
 		ret, frame = self.internal.read()
 		i = 0
 		while not ret and i<=4:
+			sleep(i*.5)
 			ret, frame = self.internal.read()
 			if i == 4:
 				print(_("Failed to read camera specified in the 'device_path' config option, aborting"))
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin