Fix detections logic

This commit is contained in:
Nicolas Mowen 2024-09-16 16:46:13 -06:00
parent 2f69f5afe6
commit a7728e8acd

View File

@ -1138,12 +1138,14 @@ class TrackedObjectProcessor(threading.Thread):
) )
) )
or ( or (
not review_config.detections.labels (
or obj.obj_data["label"] in review_config.detections.labels not review_config.detections.labels
) or obj.obj_data["label"] in review_config.detections.labels
and ( )
not review_config.detections.required_zones and (
or set(obj.entered_zones) & set(review_config.alerts.required_zones) not review_config.detections.required_zones
or set(obj.entered_zones) & set(review_config.alerts.required_zones)
)
) )
): ):
logger.debug( logger.debug(