Quick fixes (#16668)

* Write thumbnails to disk on shutdown

* Update text on face library page
This commit is contained in:
Nicolas Mowen
2025-02-18 09:13:28 -07:00
committed by GitHub
parent b6db97d313
commit 81b873dead
2 changed files with 18 additions and 6 deletions

View File

@@ -412,6 +412,11 @@ class CameraState:
self.previous_frame_id = frame_name
def shutdown(self) -> None:
for obj in self.tracked_objects.values():
if not obj.obj_data.get("end_time"):
obj.write_thumbnail_to_disk()
class TrackedObjectProcessor(threading.Thread):
def __init__(
@@ -722,6 +727,10 @@ class TrackedObjectProcessor(threading.Thread):
event_id, camera, _ = update
self.camera_states[camera].finished(event_id)
# shut down camera states
for state in self.camera_states.values():
state.shutdown()
self.requestor.stop()
self.detection_publisher.stop()
self.event_sender.stop()