Consider new attribute a significant change (#8054)

* Consider new attribute a significant change

* Update object_processing.py
This commit is contained in:
Nicolas Mowen 2023-10-07 08:22:45 -06:00 committed by GitHub
parent c47b02d2fe
commit 52cc707eb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,6 +232,9 @@ class TrackedObject:
if self.obj_data["position_changes"] != obj_data["position_changes"]: if self.obj_data["position_changes"] != obj_data["position_changes"]:
significant_change = True significant_change = True
if self.obj_data["attributes"] != obj_data["attributes"]:
significant_change = True
# if the motionless_count reaches the stationary threshold # if the motionless_count reaches the stationary threshold
if ( if (
self.obj_data["motionless_count"] self.obj_data["motionless_count"]