If you haven't seen this yet, you should check these guys out. Pretty cool stuff. The software monitors a webcam output and triggers when humans enter the picture. It works REALLY well. I've sent them a note trying to push them to offer applescripts as a trigger option, please do the same.
How cool would courtesy lighting be if it were slaved to people recognition and not just motion?
Heres the link: http://www.vitamindinc.com/
Cheers,
J