Monday, March 3, 2008

Project 3 Mike and Styler

Our project 3 compares still images. Give a picture and a name, it analyzes the picture and stores it's color distributions in an xml file. Given only a picture, it compares it against all stored people (xml files) it has saved. To compare, it creates color distributions for Red, Blue, and Green pixels (barring white pixels). Then, it compares the red distributions local minimums, maximums, the median and the mean. Comparing these distributions yields a difference, and the known person with the least difference is considered the match.

Here are our saved pictures:



Which were saved into XML. Then, we ran these pictures through the comparison:



The results were:
FaceDetection.exe styler2.jpg
Diff with styler from styler.xml is 103.669794574545
Diff with mike from mike.xml is 179.5194369055
Best match is: styler

FaceDetection.exe mike2.jpg
Diff with styler from styler.xml is 158.225831330128
Diff with mike from mike.xml is 82.0856684981685
Best match is: mike

The algorithm was a success. Given a photo stored into xml, the Diff would equal 0 every time. The algorithm also worked in the reverse direction. However, it is only suitable for fixed backgrounds between photos.

The code is in C# and available here. and a sample XML output is available here.

Project 3

For Project 3 we split into two teams, Mike and Styler vs. Wes and Lucas.