Skip to content

Commit

Permalink
Fix detections logic (#13781)
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Sep 16, 2024
1 parent 2f69f5a commit 4fc8d33
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions frigate/object_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,12 +1138,14 @@ def should_retain_recording(self, camera: str, obj: TrackedObject):
)
)
or (
not review_config.detections.labels
or obj.obj_data["label"] in review_config.detections.labels
)
and (
not review_config.detections.required_zones
or set(obj.entered_zones) & set(review_config.alerts.required_zones)
(
not review_config.detections.labels
or obj.obj_data["label"] in review_config.detections.labels
)
and (
not review_config.detections.required_zones
or set(obj.entered_zones) & set(review_config.alerts.required_zones)
)
)
):
logger.debug(
Expand Down

0 comments on commit 4fc8d33

Please sign in to comment.