Fix autotrack to work with new tracked object package (#14414)

This commit is contained in:
Josh Hawkins 2024-10-17 11:21:27 -05:00 committed by GitHub
parent b299652e86
commit 5d8bcb42c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1275,7 +1275,7 @@ class PtzAutoTracker:
# If it's within bounds, start tracking that object. # If it's within bounds, start tracking that object.
# Should we check region (maybe too broad) or expand the previous object's box a bit and check that? # Should we check region (maybe too broad) or expand the previous object's box a bit and check that?
self.tracked_object[camera] is None self.tracked_object[camera] is None
and obj.camera == camera and obj.camera_config.name == camera
and obj.obj_data["label"] in self.object_types[camera] and obj.obj_data["label"] in self.object_types[camera]
and not obj.previous["false_positive"] and not obj.previous["false_positive"]
and not obj.false_positive and not obj.false_positive