저는 파이썬을 사용하여 얼굴 인식을위한 코드를 작성하려고합니다. 이제 모든 데이터베이스 이미지를 하나의 2 차원 배열에 넣어 주성분 분석 (PCA)을 적용 할 수있게되었습니다. matplotlib에서 PCA라는 클래스를 발견했지만 얼굴 인식을 위해이를 사용하는 방법에 대해 궁금합니다.matplotlib에서 PCA 클래스를 사용하여 얼굴 인식을 사용하는 방법은 무엇입니까?
class matplotlib.mlab.PCA(a)
compute the SVD of a and store data for PCA. Use project to project the data onto a reduced set of dimensions
Inputs:
a: a numobservations x numdims array
Attrs:
a a centered unit sigma version of input a
numrows, numcols: the dimensions of a
mu : a numdims array of means of a
sigma : a numdims array of atandard deviation of a
fracs : the proportion of variance of each of the principal components
Wt : the weight vector for projecting a numdims point or array into PCA space
Y : a projected into PCA space
The factor loadings are in the Wt factor, ie the factor loadings for the 1st principal component are given by Wt[0]
이 링크는 질문에 대해서는 대답의 핵심 부분을 여기에 포함시키고 참조 용 링크를 제공하는 것이 좋습니다. 링크 된 페이지가 변경되면 링크 전용 답변이 유효하지 않게 될 수 있습니다. – Matsemann