mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
Sub label snapshot (#17296)
* Publish sub label for logos * Cleanup check
This commit is contained in:
parent
08cf0def6e
commit
4e83237d47
@ -172,6 +172,16 @@ class TrackedObjectProcessor(threading.Thread):
|
|||||||
retain=True,
|
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):
|
def camera_activity(camera, activity):
|
||||||
last_activity = self.camera_activity.get(camera)
|
last_activity = self.camera_activity.get(camera)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user