Mqtt sub labels (#3899)

* Set sub label on object data if event is in progress

* Include sub_label in dict

* Don't need to set and passively get

* Formatting

* Don't expect event to be valid

* Update docs to reflect that sub label is included
This commit is contained in:
Nicolas Mowen
2022-10-01 08:00:56 -06:00
committed by GitHub
parent 53f7190d42
commit a1ae5b67d8
3 changed files with 15 additions and 1 deletions

View File

@@ -180,6 +180,7 @@ class TrackedObject:
"frame_time": self.obj_data["frame_time"],
"snapshot_time": snapshot_time,
"label": self.obj_data["label"],
"sub_label": self.obj_data.get("sub_label"),
"top_score": self.top_score,
"false_positive": self.false_positive,
"start_time": self.obj_data["start_time"],