Skip to content

With this running you don't have to remind yourself to lock your computer everytime you leave it alone. It will lock it for you whenever it detects a human face looking at your computer.

Notifications You must be signed in to change notification settings

berkay-dincer/no-more-baklava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

no-more-baklava

This is a project to prevent people in Scotty to order desert when your computer is idle. Applies to pretty much every company I've worked at so far :)

How it works:

This python program checks ioreg entries to measure the idle time of your computer. If it is greater than a certain threshold it activates your camera and tries to detect a human face. If a face is detected it captures the image and saves it under images/ + locks your computer. I tailed the OS logs for 'SACLockScreenImmediate' and 'LUIAuthenticationServiceProvider' events to see if the mac is currently locked (let me know if there is a better way). If your computer is locked, it will not do anything.

run trigger.py

Requirements:

  • Python 3.6
  • Open CV

About

With this running you don't have to remind yourself to lock your computer everytime you leave it alone. It will lock it for you whenever it detects a human face looking at your computer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages