diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index 81a418d..a81f8f1 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -594,6 +594,7 @@ def detectFace( face_objs = extract_faces( img_path=img_path, detector_backend=detector_backend, + grayscale=False, enforce_detection=enforce_detection, align=align, ) diff --git a/deepface/modules/demography.py b/deepface/modules/demography.py index cf101c6..1634571 100644 --- a/deepface/modules/demography.py +++ b/deepface/modules/demography.py @@ -124,6 +124,7 @@ def analyze( img_path=img_path, detector_backend=detector_backend, enforce_detection=enforce_detection, + grayscale=False, align=align, expand_percentage=expand_percentage, anti_spoofing=anti_spoofing, diff --git a/deepface/modules/recognition.py b/deepface/modules/recognition.py index 72d2fd3..4eda51f 100644 --- a/deepface/modules/recognition.py +++ b/deepface/modules/recognition.py @@ -240,6 +240,7 @@ def find( source_objs = detection.extract_faces( img_path=img_path, detector_backend=detector_backend, + grayscale=False, enforce_detection=enforce_detection, align=align, expand_percentage=expand_percentage, @@ -363,6 +364,7 @@ def __find_bulk_embeddings( img_objs = detection.extract_faces( img_path=employee, detector_backend=detector_backend, + grayscale=False, enforce_detection=enforce_detection, align=align, expand_percentage=expand_percentage, diff --git a/deepface/modules/representation.py b/deepface/modules/representation.py index bbccc27..b228288 100644 --- a/deepface/modules/representation.py +++ b/deepface/modules/representation.py @@ -71,6 +71,7 @@ def represent( img_objs = detection.extract_faces( img_path=img_path, detector_backend=detector_backend, + grayscale=False, enforce_detection=enforce_detection, align=align, expand_percentage=expand_percentage, diff --git a/deepface/modules/verification.py b/deepface/modules/verification.py index c6b5ee6..8b03ed4 100644 --- a/deepface/modules/verification.py +++ b/deepface/modules/verification.py @@ -239,6 +239,7 @@ def __extract_faces_and_embeddings( img_objs = detection.extract_faces( img_path=img_path, detector_backend=detector_backend, + grayscale=False, enforce_detection=enforce_detection, align=align, expand_percentage=expand_percentage,