【发布时间】:2020-06-12 08:39:21
【问题描述】:
我正在使用这个链接:https://www.learnopencv.com/eigenface-using-opencv-c-python/ 来获取图像和特征脸的平均脸。
# Compute the eigenvectors from the stack of images created
print("Calculating PCA ", end="...")
mean, eigenVectors = cv2.PCACompute(data, mean=None, maxComponents=NUM_EIGEN_FACES)
print ("DONE")
averageFace = mean.reshape(sz)
eigenFaces = [];
for eigenVector in eigenVectors:
eigenFace = eigenVector.reshape(sz)
eigenFaces.append(eigenFace)
但我不知道如何获得像这张图片这样的顶级特征脸image example top eigenfaces
源码github
【问题讨论】:
标签: python opencv face-recognition