From 08710029e8685d17cb9521a96d286148c6839202 Mon Sep 17 00:00:00 2001 From: Andrea Lanfranchi Date: Tue, 27 Feb 2024 10:52:10 +0100 Subject: [PATCH] Remove commented out code --- deepface/detectors/DetectorWrapper.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/deepface/detectors/DetectorWrapper.py b/deepface/detectors/DetectorWrapper.py index 16672d7..b16bb81 100644 --- a/deepface/detectors/DetectorWrapper.py +++ b/deepface/detectors/DetectorWrapper.py @@ -104,18 +104,6 @@ def detect_faces( confidence = facial_area.confidence if expand_percentage > 0: - # Uncomment this if you want to : - # Expand the facial area to be extracted and recompute the height and width - # keeping the same aspect ratio and ensuring that the expanded area stays - # within img.shape limits - - # current_area = w * h - # expanded_area = current_area + int((current_area * expand_percentage) / 100) - # scale_factor = math.sqrt(expanded_area / current_area) - # expanded_w = int(w * scale_factor) - # expanded_h = int(h * scale_factor) - - # Or uncomment this if you want to : # Expand the facial region height and width by the provided percentage # ensuring that the expanded region stays within img.shape limits expanded_w = w + int(w * expand_percentage / 100)