Face Detection Safety System for Windows, MacOS and Linux, by Muneeb Khurram.
This Project uses the Python 3.6 face_recognition library and detects the face infront of the webcam of the computer, if the user is detected as allowed and is in,
the ./Faces
Folder and its name is the Name of the Face or Could be the ID, whatever you prefer it allows and if the added ID is Blocked in the Banned_Faces.txt
file,
then it locks, the computer and if that person is still infront of the computer then, it says mean words to that person like, "Out of all the Calculations my AI has done, you have no chance of surviving in the universe"
. So it is really cool and is Good for Memes as well. Further working is being done, and if there is a nice feature or,
a meme u want to add be sure to tell me what it shoud be ;)
Installing this is Straightforward on Linux and MacOS and Windows, as long as you follow my instructions
.
Python 3.6
[This Version Only, unless u can somehowinstall dlib
]pip
dlib
numpy
face_recognition
opencv-python
pyttsx3
psutil
These are the requirements of installing this on your Windows Machine. In Depth Procedure is given below.
4GB-6GB RAM DDR4 ~ Less will also Do (Hopefully) Intel HD 620 Graphics ~ If u have a GPU, then make sure to install face_recognition with GPU not CPU PyPI Page 7th - Infinte Gen
- Download and Install Python 3.6
- When Installing Python 3.6 Select
Add pip to PATH
option. - Open cmd or powershell Admin and type
pip install cmake
- After that type:
pip install https://pypi.python.org/packages/da/06/bd3e241c4eb0a662914b3b4875fc52dd176a9db0d4a2c915ac2ad8800e9e/dlib-19.7.0-cp36-cp36m-win_amd64.whl#md5=b7330a5b2d46420343fbed5df69e6a3f
This should do the trick and save you from hours of Install of Visual Studio SDK. No need to say thankyou!
-
After that Install Git.
-
Type in the terminal
git clone https://github.com/UBISOFT-1/Project_Exodus.git
-
Then type
cd Project_Exodus
or press open terminal here. -
Type
pip install -r requirements.txt
-
Thats all, I hope so ;)
After this you have done all that had to be done to make it run.
Now, the FUN Part.
You will see the Faces Folder, open the Folder and add the Faces, you want to add, it will auto detect them when they come in front of the Webcam. If there is a user that you do not know of, means there is no picture of him in the Faces Folder, it will add its photo onto the Unknown_Access folder, so u can see.
Most Importantly, It saves their Face Encodings, Features in the ./Unknown_Access/Face_Encoding.txt
for further refrence and for other tools to process.
To Restrict/Ban a man from using your device or being infront of the webcam, go to the Banned_People.txt file and add the name of the Picture you saved in the ./Faces
Folder.
Note: Name the Pictures with an ID like User_001.jpg or *.JPEG or *.PNG or *.png and make it easy like I added mine as Muneeb Khurram.jpg so it detects me as Muneeb Khurram.
Then just add the First Part of the Image name in the Banned_People.txt
as Muneeb Khurram for Muneeb Khurram.jpeg
, hope you get the point.
When you are in the Folder, type python Face_Detection.py
and thats it ;)
Happy Secure Safe Computer :)
MIT - (C) 2020 Muneeb Ahmad