Sub label snapshot (#17296)

* Publish sub label for logos

* Cleanup check
This commit is contained in:
Nicolas Mowen 2025-03-21 16:37:09 -06:00 committed by GitHub
parent 08cf0def6e
commit 4e83237d47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,6 +172,16 @@ class TrackedObjectProcessor(threading.Thread):
retain=True,
)
if obj.obj_data.get("sub_label"):
sub_label = obj.obj_data["sub_label"][0]
if sub_label in self.config.model.all_attribute_logos:
self.dispatcher.publish(
f"{camera}/{sub_label}/snapshot",
jpg_bytes,
retain=True,
)
def camera_activity(camera, activity):
last_activity = self.camera_activity.get(camera)