Project 4: Eigenfaces

Computer Vision (CSE 455), Winter 2012
Name: Daseul Lee

Experiment: Testing Recognition with Cropped Class Images
  • Methodology
    1. Using the cropped, non-smiling students pictures, compute 10 eigenfaces and get the average face and 10 eigenfaces.

    main --eigenfaces 10 25 25 nonsmiling_cropped/list.txt eig.face

    2. Compute a userbase using the same set of images.

    main --constructuserbase eig.face nonsmiling_cropped/list.txt base.user

    3. Figure out whether each picture matches a correct user in the userbase.

    main --recognizeface smiling_cropped/smiling-1.tga base.user eig.face 10

    4. Repeat the above steps using different number of eigenfaces to be computed, e.g. 1, 3, 5, ... , 31, 33.

    5. After collecting data, generate a plot of number of faces recognized versus number of eigenfaces used.
  • Sample Results
    Average Face
    10 Eigenfaces





    Example of recognition error

    Image 4 recognized as Image 17
  • Discussion
    Q1 : Describe the trends you see in your plots. Discuss the tradeoffs; how many eigenfaces should one use? Is there a clear answer?

    The number of correct face recognition increases with the number of eigenfaces used; however, at about 5 eigenfaces, there is not much differences in the rate of correct recognition. If we use more eigenfaces, then accuracy may increase(maybe slightly) however the performance would be not as fast. To get the best result, we could use a good sample faces to find eigenfaces and only use a good threshold number, in my case 5.

    Q2 : You likely saw some recognition errors in step 3; show images of a couple. How reasonable were the mistakes? Did the correct answer at least appear highly in the sorted results?

    image 4 is recognized as image 17. However, it was the 5th closest image in a sorted list.

    main --recognizeface smiling_cropped/smiling-4.tga base.user eig.face 10
    Loaded faces from 'eig.face'
    Loaded users from 'base.user'
    Face 'smiling_cropped/smiling-4.tga' recognized as being closest too:
    0: nonsmiling_cropped/neutral-17; MSE: 61533.9
    1: nonsmiling_cropped/neutral-13; MSE: 71181.6
    2: nonsmiling_cropped/neutral-19; MSE: 74426.3
    3: nonsmiling_cropped/neutral-25; MSE: 78570.6
    4: nonsmiling_cropped/neutral-4; MSE: 85656.2
    5: nonsmiling_cropped/neutral-18; MSE: 105442
    6: nonsmiling_cropped/neutral-22; MSE: 117551
    7: nonsmiling_cropped/neutral-27; MSE: 126268
    8: nonsmiling_cropped/neutral-24; MSE: 130913
    9: nonsmiling_cropped/neutral-32; MSE: 139686

Experiment: Cropping and Finding Faces
Experiment: Verify Face