From 75f3eb757734ae451b99c8940d66266fa7351317 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Fri, 24 Feb 2023 11:54:58 +0000 Subject: [PATCH] deprecated functions --- deepface/DeepFace.py | 1 + deepface/commons/functions.py | 1 + 2 files changed, 2 insertions(+) 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,