mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Don't update for stationary objects
This commit is contained in:
parent
6a4e340919
commit
f2361cb81e
@ -349,6 +349,9 @@ class TrackedObject:
|
||||
|
||||
def should_update_attribute(self) -> bool:
|
||||
"""Decides if attributes should be checked."""
|
||||
if not self.active:
|
||||
return False
|
||||
|
||||
if self.obj_data["label"] == "person" and not self.requires_face_detection:
|
||||
return False
|
||||
elif self.obj_data["label"] == "car" and not self.requires_lpr_detection:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user