Face.com has an API that you send a picture via oAuth and receibe a json response with values for that picture if it finds a face.
Try it yourself:
Somebody has that already working in Flash:
The flash application will be showcasing videos and have a webcam connected that will be determiming the users age and gender.
I need to interact with that json response meaning if I get a male I will display videos for males, or if female display videos in female category. Same goes for age ranges.
Let me know if you have more questions.