mirror of
https://github.com/serengil/deepface.git
synced 2025-06-06 19:45:21 +00:00
Remove "show" from the YOLOv8 detector.
This commit is contained in:
parent
b32c31aea3
commit
6c06996686
@ -41,7 +41,7 @@ def build_model(model: str):
|
|||||||
def detect_face(face_detector, img, align=False):
|
def detect_face(face_detector, img, align=False):
|
||||||
resp = []
|
resp = []
|
||||||
|
|
||||||
results = face_detector.predict(img, verbose=False, show=True, conf=0.25)[0]
|
results = face_detector.predict(img, verbose=False, show=False, conf=0.25)[0]
|
||||||
|
|
||||||
for result in results:
|
for result in results:
|
||||||
x, y, w, h = result.boxes.xywh.tolist()[0]
|
x, y, w, h = result.boxes.xywh.tolist()[0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user