Remove "show" from the YOLOv8 detector.

This commit is contained in:
Vincent STRAGIER 2023-05-23 23:17:55 +02:00
parent b32c31aea3
commit 6c06996686

View File

@ -41,7 +41,7 @@ def build_model(model: str):
def detect_face(face_detector, img, align=False):
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:
x, y, w, h = result.boxes.xywh.tolist()[0]