mirror of
https://github.com/serengil/deepface.git
synced 2025-06-08 04:25:21 +00:00
deprecated functions
This commit is contained in:
parent
fb52de282d
commit
75f3eb7577
@ -817,6 +817,7 @@ def extract_faces(
|
|||||||
def detectFace(
|
def detectFace(
|
||||||
img_path, target_size=(224, 224), detector_backend="opencv", enforce_detection=True, align=True
|
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(
|
face_objs = extract_faces(
|
||||||
img_path=img_path,
|
img_path=img_path,
|
||||||
target_size=target_size,
|
target_size=target_size,
|
||||||
|
@ -267,6 +267,7 @@ def preprocess_face(
|
|||||||
enforce_detection=True,
|
enforce_detection=True,
|
||||||
align=True,
|
align=True,
|
||||||
):
|
):
|
||||||
|
print("⚠️ Function preprocess_face is deprecated. Use extract_faces instead.")
|
||||||
result = None
|
result = None
|
||||||
img_objs = extract_faces(
|
img_objs = extract_faces(
|
||||||
img=img,
|
img=img,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user