diff --git a/deepface/DeepFace.py b/deepface/DeepFace.py index 33064d3..d533e2b 100644 --- a/deepface/DeepFace.py +++ b/deepface/DeepFace.py @@ -817,6 +817,7 @@ def extract_faces( def detectFace( img_path, target_size=(224, 224), detector_backend="opencv", enforce_detection=True, align=True ): + print("⚠️ Function detectFace is deprecated. Use extract_faces instead.") face_objs = extract_faces( img_path=img_path, target_size=target_size, diff --git a/deepface/commons/functions.py b/deepface/commons/functions.py index 0569fba..e47e367 100644 --- a/deepface/commons/functions.py +++ b/deepface/commons/functions.py @@ -267,6 +267,7 @@ def preprocess_face( enforce_detection=True, align=True, ): + print("⚠️ Function preprocess_face is deprecated. Use extract_faces instead.") result = None img_objs = extract_faces( img=img,