face_unlock
face_unlock copied to clipboard
We can lock and unlock our Ubuntu system using face recognition(currently only on Ubuntu).
Lock/Unlock Ubuntu OS
Introduction
We can lock and unlock our Ubuntu system using face recognition(currently only on Ubuntu).
Article about implementation
Automatically Locking & Unlocking Ubuntu with Computer Vision Using a Human Face!!!
Demo
Requirements
Install below the required library in your local machine.
- python 3.7
- opencv 4.1.0
- numpy
- face-recognition
- sudo apt-get install gnome-screensaver
- sudo apt-get install xdotool
Quick Start
I have used three python files to solve this issue.
- face_generate.py This will detect your face and save it in the dataset folder then the new folder will create with your name.
- face_train.py This python file will open the dataset folder and take your image from that and train your face using the K-nearest neighbor algorithm and face_recognition library.
- face_unlock.py This is an important python file that will detect your face using the webcam and unlock the system.
Having problems?
If you run into problems, Please feel free to connect me on Linkedin and Twitter
Contributing
Code contributions are also very welcome. feel free to open an issue for that too.
To do:
- [ ] Support Windows and Mac OS.
- [ ] Train face using browser(UI).
- [ ] Increase performance and speed.