Skip to content
Snippets Groups Projects
Commit 22015b68 authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed issue from rebasing

parent e76f11a5
No related branches found
No related tags found
No related merge requests found
Pipeline #23860 passed
...@@ -224,12 +224,12 @@ def detect_all_faces(image, cascade = None, sampler = None, threshold = 0, overl ...@@ -224,12 +224,12 @@ def detect_all_faces(image, cascade = None, sampler = None, threshold = 0, overl
# group overlapping detections # group overlapping detections
if minimum_overlap < 1.: if minimum_overlap < 1.:
bbs, qualities = group_detections(detections, predictions, minimum_overlap, threshold, overlaps) detections, predictions = group_detections(detections, predictions, minimum_overlap, threshold, overlaps)
if not detections: if not detections:
return None return None
# average them # average them
bbs, qualities = zip(*[average_detections(b, q, relative_prediction_threshold) for b,q in zip(bbs, qualities)]) detections, predictions = zip(*[average_detections(b, q, relative_prediction_threshold) for b,q in zip(detections, predictions)])
return detections, predictions return detections, predictions
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment