Project 4 Artifact

by Oscar Danielsson

General Remarks

 

 

Extra Credit

 

 

Eigenfaces and Average Face

 

Below are the ten most significant eigenfaces along with the average face.

 

Average Face

 

         

Eigenfaces

 

Recognition Results

 

The figure below shows the results when using a varying number of eigenfaces acquired from the set of images of nonsmiling students to recognize the images of the smiling students.

 

 

It is obvious that one gains little by using more than 10-11 eigenfaces. In some cases the algorithm did not do correct classification for any number of eigenfaces. A couple of examples of hard cases are shown below:

 

Image 01 was often recognized as image 22:

 

à

 

Image 13 was often recognized as image 04:

 

à

 

 

Finding Faces in Images

 

Using ten eigenfaces to span face space we shall try to find patches representing faces in images. Several examples are shown below.

 

Cropping elf.tga (scales: 0.35 – 0.45, step: 0.01)

 

Original

 

Cropped

 

Cropping a picture of myself (scales: 0.15 – 0.25, step:0.01)

 

Original (scaled down)

 

Cropped

 

Finding the three faces in IMG_0031.tga (scales: 0.45 – 0.55, step:  0.01)

 

Original

 

Faces marked

 

Finding faces in another group photo (scales: 0.7 – 1.2, step: 0.05)

 

Original

 

Faces marked

 

We see that the algorithm can have problems with images where the background has similar colors and shapes as the faces. We can also see that the algorithm does not find faces that are partially occluded, which was expected. Getting good performance out of the algorithm and finding the faces in an image usually comes down to searching a good range of scales. That range differs a lot between different images and often some intervention from the user is required to find good scales. If we had unlimited time or processing power, we could off course get around this problem by just searching a wide range of scales with a small step size.

 

 

Batch files:

recognize.bat

experiment.bat

experiment2.bat