我最近看了YouTube教程Getting Started with Face Recognition in Python,并尝试自己关注它。这是我尝试的代码:
import face_recognition
import numpy as np
image=face_recognition.load_image_file('IMG_1000.jpg')
unknown=face_recognition.load_image_file('img_0892.jpg')
actual_encoding= face_recognition.face_encodings(image)[0]
unknown_encoding= face_recognition.face_encodings(unknown)[0]
results=face_recognition.compare_faces([actual_encoding],unknown_encoding)
print(results)
输出为:
`[False]`
我做错了吗?如果没有,您会建议使用哪个库来获得相似图片的准确预测?