From 1d4fbbdba30e03eec725caa17e6a919827ecea13 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 7 Jan 2020 20:43:25 -0600 Subject: [PATCH] update all obj props --- frigate/objects.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frigate/objects.py b/frigate/objects.py index 6056fce31..d91414740 100644 --- a/frigate/objects.py +++ b/frigate/objects.py @@ -258,11 +258,7 @@ class ObjectTracker(threading.Thread): del self.tracked_objects[id] def update(self, id, new_obj): - self.tracked_objects[id]['centroid'] = new_obj['centroid'] - self.tracked_objects[id]['box'] = new_obj['box'] - self.tracked_objects[id]['region'] = new_obj['region'] - self.tracked_objects[id]['score'] = new_obj['score'] - self.tracked_objects[id]['name'] = new_obj['name'] + self.tracked_objects[id].update(new_obj) # TODO: am i missing anything? history? def match_and_update(self, new_objects):