An ongoing small script to automatically lock/unlock system when detecting the presence of user. When you leave your laptop/device for 8-10 secs it automatically locks the screen to prevent access. Only requires you to download and install this script on to your system and launch it via cmd. The script uses OpenCV to detect the user on the computer screen.
- Download the repo.
- navigate to the main directory.
- Install the requirements file by typing pip install -r requirements.txt
- Now run the script using python pyautolock.py
You may have to add the script into the services file to make it run on the background.