Fix detections logic (#13781)

This commit is contained in:
Nicolas Mowen 2024-09-16 17:23:10 -06:00 committed by GitHub
parent 2f69f5afe6
commit 4fc8d33d31
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1138,6 +1138,7 @@ class TrackedObjectProcessor(threading.Thread):
) )
) )
or ( or (
(
not review_config.detections.labels not review_config.detections.labels
or obj.obj_data["label"] in review_config.detections.labels or obj.obj_data["label"] in review_config.detections.labels
) )
@ -1145,6 +1146,7 @@ class TrackedObjectProcessor(threading.Thread):
not review_config.detections.required_zones not review_config.detections.required_zones
or set(obj.entered_zones) & set(review_config.alerts.required_zones) or set(obj.entered_zones) & set(review_config.alerts.required_zones)
) )
)
): ):
logger.debug( logger.debug(
f"Not creating clip for {obj.obj_data['id']} because it did not qualify as an alert or detection" f"Not creating clip for {obj.obj_data['id']} because it did not qualify as an alert or detection"