Spaces:
Sleeping
Sleeping
Jon Taylor
commited on
Commit
•
98b5e62
1
Parent(s):
b0e089f
moved params logic
Browse files- app/bot.py +7 -3
app/bot.py
CHANGED
@@ -101,8 +101,13 @@ class DailyVision(EventHandler):
|
|
101 |
})
|
102 |
|
103 |
def process_frames(self):
|
104 |
-
|
|
|
|
|
|
|
105 |
|
|
|
|
|
106 |
while not self.__app_quit:
|
107 |
# Is anyone watching?
|
108 |
if not self.__idle and len(self.__client.participants()) < 2:
|
@@ -129,8 +134,7 @@ class DailyVision(EventHandler):
|
|
129 |
# Process ~15 frames per second (considering incoming frames at 30fps).
|
130 |
if time.time() - self.__time > float(os.getenv("FPS_CAP", 0.0333)):
|
131 |
self.__time = time.time()
|
132 |
-
|
133 |
-
self.__params = self.__pipeline.InputParams(**self.__params_buffer)
|
134 |
self.__image_buffer = video_frame
|
135 |
#self.__queue.put(video_frame)
|
136 |
|
|
|
101 |
})
|
102 |
|
103 |
def process_frames(self):
|
104 |
+
if self.__params_buffer:
|
105 |
+
print("New buffer params found")
|
106 |
+
print(self.__params_buffer)
|
107 |
+
self.__params = self.__pipeline.InputParams(**self.__params_buffer)
|
108 |
|
109 |
+
params = self.__params
|
110 |
+
|
111 |
while not self.__app_quit:
|
112 |
# Is anyone watching?
|
113 |
if not self.__idle and len(self.__client.participants()) < 2:
|
|
|
134 |
# Process ~15 frames per second (considering incoming frames at 30fps).
|
135 |
if time.time() - self.__time > float(os.getenv("FPS_CAP", 0.0333)):
|
136 |
self.__time = time.time()
|
137 |
+
|
|
|
138 |
self.__image_buffer = video_frame
|
139 |
#self.__queue.put(video_frame)
|
140 |
|