Detection is the easy part -- recognition has always been the stumper!
Combine this with something like http://nicklothian.com/blog/2009/12/15/using-flash-to-shim-a... and you might be able to do facetracking in Javascript
EDIT: Just a thought, wouldn't it be cool if we didn't have to ring doorbells anymore? There'd be a webcam instead of a lens on the door, and a small computer that notifies you when someone's at your door. It could even tell you who they are if we create adequate recognition technologies.
(Although, for real usage you'd actually have to do it in Flash still because of a Webkit memory leak)