Replace green screen with error message and force camera_fps to 0 (#4544)

* Move to images specific folder

* Send error image when camera stream is not available

* Immediately set camera_fps to 0 if camera crashes

* Cache error image so it is not read from file system on each run

* Move camera fps set
This commit is contained in:
Nicolas Mowen
2022-11-28 20:47:20 -07:00
committed by GitHub
parent aaedd24f37
commit 69560c8bde
6 changed files with 23 additions and 4 deletions

View File

@@ -882,6 +882,10 @@ class TrackedObjectProcessor(threading.Thread):
def get_current_frame(self, camera, draw_options={}):
return self.camera_states[camera].get_current_frame(draw_options)
def get_current_frame_time(self, camera) -> int:
"""Returns the latest frame time for a given camera."""
return self.camera_states[camera].current_frame_time
def run(self):
while not self.stop_event.is_set():
try: