Don't need to set and passively get

This commit is contained in:
Nick Mowen 2022-09-23 07:30:29 -06:00
parent 803e9b74d6
commit f018805666

View File

@ -80,9 +80,6 @@ class TrackedObject:
# start the score history # start the score history
self.score_history = [self.obj_data["score"]] self.score_history = [self.obj_data["score"]]
# set blank sub label
self.obj_data["sub_label"] = None
def _is_false_positive(self): def _is_false_positive(self):
# once a true positive, always a true positive # once a true positive, always a true positive
if not self.false_positive: if not self.false_positive:
@ -183,7 +180,7 @@ class TrackedObject:
"frame_time": self.obj_data["frame_time"], "frame_time": self.obj_data["frame_time"],
"snapshot_time": snapshot_time, "snapshot_time": snapshot_time,
"label": self.obj_data["label"], "label": self.obj_data["label"],
"sub_label": self.obj_data["sub_label"], "sub_label": self.obj_data.get("sub_label"),
"top_score": self.top_score, "top_score": self.top_score,
"false_positive": self.false_positive, "false_positive": self.false_positive,
"start_time": self.obj_data["start_time"], "start_time": self.obj_data["start_time"],