1 | initial version |
Basically you want to use Viola&Jones face detection framework and one no detection has been found, you want to put out a command to your system to lock the pc.
Look at the source code here to see an example on how to use this feature.
About putting your system in lockdown, this might be accessible through cmd line input.
Keep in mind however, that the face detector is not failsafe. So basically when you have a missing frame, your pc will go into lock mode. You should make it robust with tracking.