PCA face recognition process

Source: Internet
Author: User

1: There are n faces in total. Each face is calculated from left to right based on pixels, from top to bottom, and the number of pixels in each face is m, which forms the face matrix m * n, then, a new matrix is formed for the values of each row in this matrix minus the mean value, and then its covariance matrix is obtained for this matrix, continue to find the feature vector with the largest M values on the covariance matrix (feature vector is M * 1), and then form feature vectures (M * m. The Matrix is.

2: perform projection on the faces of each person in the face database (a person may have multiple faces) on a separately. This projection forms a (1 * m ), if a person has multiple faces, perform the average operation to form the weight matrix (1 * m). There are n faces in the graphic library, then there will be n 1 * m Weight matrices (here we will add the computation of ball matrix projection: the formula for calculating the projection of multi-dimensional vectors A and B is ).

3: Calculate the weight matrix of the new image, and then calculate the distance from the weight matrix of N 1 * m to determine the face closest to it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.