标签: deepface

当未找到人脸时,如何处理 deepFace.analyze() 中的错误?

img=cv2.imread(face.jpg)
predictions= DeepFace.analyze(img)
Run Code Online (Sandbox Code Playgroud)

Error: Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False.

设置enforce_detectionFalse会导致即使图像中没有面部,它也会读取情绪

我们如何处理这个错误,让它告诉我们没有人脸?

python error-handling face-detection deepface

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

deepface ×1

error-handling ×1

face-detection ×1

python ×1