Project Idea: Face detection in Gallery2
This past weekend my little sister and I were going through the Facebook profiles of various cousins, and I noticed something about Facebook’s photo support that I somehow missed before: it automatically detects the presence of faces in each photo, and allows users to tag each face with the identity of its owner. Already-tagged faces have the owner’s name superimposed over the image.
That’s an awesome feature, and reminds me of the stuff Riya was working on a few years back (although FB doesn’t do facial recognition (yet, anyway), so you still have to tag everyone yourself). I was immediately jealous that my photo hosting software of choice, Gallery, didn’t have this feature.
I investigated this a bit, and I found that Intel’s OpenCV library includes open-source face detection code. Using Intel’s sample face detect app, I found it to be both quick (~150ms per photo) and accurate. I wonder how much work would be required to create a Gallery module that used opencv to detect faces in photos, and provided an AJAX UI for tagging the photos. It would certainly be cool.
November 22nd, 2008 - 19:57
Facebook doesn’t actually have any face detection system. You just select an area of the photo that contains a person and tag it as such.
Scary though: if the CIA/NSA/MI5/KGB or whatever TLA you care to name were trying to train facial recognition software on surveillance cameras or create a database of their citizen’s photos, what better place to look than Facebook: hundred of photos of people from different angles and with different expressions.
November 23rd, 2008 - 04:44
Yes, I figured that out too.
I had the same thought RE training an Orwellian face recognition system. Picasa is further along on this, and actually does detect faces and match them to people. Scary.