I have implemented a simple face recognition class for OF. The demo video shows tracking and recognizing one face from amongst 6 training faces. I have also tested it successfully tracking and identifying two different faces in the video frame. It is intended to work in concert with the ofxCvHaarFinder class.
this looks really cool. Theo, Arturo and I were playing around with Surf to try face recognition. I saw someone on vimeo already did this but no code I will try to get in inside OF and post.
I think combining simple face tracking to narrow down the searching and then use surf to id the person will work great.
I’m guessing this is the video you meant: http://vimeo.com/4990304, he has two good code links there as well.
I wasn’t familiar with surf. Though I may have seen a demo video like the vimeo one. I am also curious about HMMs for recognition, but I’ll be happy with whatever works.
Kyle: I am training a recognition system with images of friends and acquaintances (drawn from all the likely places, plus personal memorabilia I have) towards the creation of an interactive piece.
Technically you could use any square formatted cropped image of a face.
However,I have a short faceExtractor program (adapted from the dirList example) which runs the same face detection code as the faceRec program. You can feed it a list of files and it will try to identify faces, saving them out at the proper dimensions for use in the faceRec code. It’s here:
Thanks for the second program. I think I got your programs distinguish two people. I am preparing for a theatrical production and am evaluating various interactivity means.
Very Interesting Piece
I try to run it a Linux Box. but, an error happen. Cant load the “train” images, so de XML file is not created.
I had change format names without spaces and nothing happen always the same error.
Any idea?
in
Great piece robert and found it SUPER useful, thanks so much for posting.
No major problems getting it running in 0700, though weird Xcode 4/of 7 were reading the faces.txt document as having a space and a carriage return on each line (so had to change the line:
inImage = inImage.substr(0, inImage.length()-1);
to
inImage = inImage.substr(0, inImage.length()-2);
weird.
Using it in a “security app” prototype for the computer that uses both face recognition and a palm scan taken using an old scanner to confirm identity (working on getting an electric scale with USB I just got on ebay implemented to check and make sure you’re not a terminator as well, as you can tell this is very SERIOUS stuff). I’ll make sure to post as soon as I get it cleaned up. Thanks again!
An even older reply. Yes, on OSX 10.11.6 with OF 9.3 it works jus fine out of the box.
Not many changes to code whatsoever apart from a few deprecated terms. Can post it if necessary.
Basically I created a new project, with ofxCV and ofxOpenCV and ofxYAML as addons.
Mind the recognizer.setup(1, 132, false, “faces”); line, which deals with the amount of photos in your faces folder.
Hi, since it’s been a while I can’t really remember which issues I was having at that point. Sorry. Perhaps you can post a screenshot of the problems and that’ll help figure things out.
hmmm looks like I might have been using something different altogether since I can’t seem to find the specific project file for this thread any more From the comment I think I was referring to this code actually but since I had multiple tabs open I mixed them up: FaceRecognizer opencv