Thursday, January 30, 2014

Averaging Congress Correctly

Unknown | 4:18 AM |
SOCIALIZE IT →
Today I saw another interesting article from the Huffington post that averaged the faces of all the members of congress together. You can find it here.

Unfortunately, its not a good averaging for many reasons I'll state below. So, I created my own, shown here:

I noticed a couple things about the Huffington Post image. It was a really cool idea, but it was extremely blurry so I investigated. It seems the website the creator got the images from has over 800 images for members of the house (I'll let you figure out what is wrong with that). It turns out it had a bunch of copies and black and white images mixed in. Also none of them were aligned. When averaging images, especially facial ones, it is always important to align them.

So I wrote a quick crawler in bash just to get the images from the wikipedia page for congress. Then I wrote some C++ code using OpenCV and my own modification of flandmark[1] to align the facial images. Once aligned, I then averaged them.

You can find the crawler code, the original and aligned images, and the alignment and averaging code on my Github at https://github.com/StevenHickson/AverageFaces. I used CMake, OpenCV, and Boost if you want to test it.

Feel free to use this image as long as you cite this page.

Update:
I was asked who was the closest and furthest away from the mean. The results are as follows:
Closest to the mean (left being the closest):

Stephen Fincher
John Shimkus
Xavier Becerra












....
Furthest from the mean (left being the furthest):

Terri A. Sewell
Corrine Brown
Betty McCollum

Consider donating to further my tinkering.













Hey EveryOne! I BILAL AHMED,From Pakistan,Author of this blog.. By Profession I'm a Web Designer,Blogger and SEO Optimizer. I'm not having an educational degree or something like that but, I'm the one who has done everything whatever i want to do.Thanks for visiting this blog.if you like it than please share this one with others.
Our site always trying to share something new and also useful Mobile Tips and Tricks, If you find and new latest updated working code than please comment below we will sure updated, Thanks for visit our blog, For more method an useful stuffs keep explore our blog, For support us like our Facebook page and share this article with your friends.

 We used Various sources to obtain data and information For this Website to make it more useful and better for our viewers.We asurw that the contents of this website are not based on personal knowledge of any other. If you have any question you can contact us or meet with us.Thanks



Contact


  1. Are you think that is this post is useful for you ???? if yes or not,than kindly tell us about your opinion in comment.
  2. If you have any problem than tell us,we will give you a proper solution of your problem.




0 comments:

Post a Comment

Ranking and DMCA

Like our Page

Copyright © . ALL TOP TRICKS. All Rights Reserved.
Blog Owner :- Gujjar_Awan | Proundly Designed by :- Admin