Webcam motion detection!help plizzz!

hello…i really need help;( is it possible to detect eye blinking + movement using webcam? i’m doing some sort of game which use webcam as a motion detector…in my game, there’ll be a character moving, player’ll have to concntrate to the screen,watching that characte moving.if there’s any eye blink / movement detected by the webcam, the character will die. is it possible to do that? so far, i’ve figured out + got the script on integrating webcam into flash, but still stuck on that eye blink+movement detection…anyone can help me???