enter image description here我将dlib用于基于图像的人脸识别应用程序。如何使用cv2.putText
在检测到的面上方写入名称?你知道吗
for ( k, face ) in enumerate( face_image ):
faceBlob = cv2.dnn.blobFromImage(face, 1.0 / 255,
(96, 96), (0, 0, 0), swapRB=True, crop=False)
embedder.setInput(faceBlob)
vec = embedder.forward()
# perform classification to recognize the face
preds = recognizer.predict_proba(vec)[0]
j = np.argmax(preds)
proba = preds[j]
name = le.classes_[j]
试着玩弄这些价值观。你知道吗
相关问题 更多 >
编程相关推荐