Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure min frames for zone presence #6680

Merged
merged 5 commits into from
Jun 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatting
  • Loading branch information
NickM-27 committed Jun 1, 2023
commit 6689b82f548b268348ba6e3ef453b340c0ca5d9a
4 changes: 3 additions & 1 deletion frigate/object_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def update(self, current_frame_time, obj_data):
# an object is only considered present in a zone if it has a zone inertia of 3+
if zone_score >= zone.inertia:
# if the object passed the filters once, dont apply again
if name in self.current_zones or not zone_filtered(self, zone.filters):
if name in self.current_zones or not zone_filtered(
self, zone.filters
):
current_zones.append(name)
if name not in self.entered_zones:
self.entered_zones.append(name)
Expand Down
Loading