Smart Lock is a security system using facial recognition to identify potential threats and notify users rapidly. Devpost
Security systems for people nowadays are outdated. With SmartLock, face recognition can tell the difference between friendly faces and unknown people, alerting you when it matters.
We use the face_recognition python library. Here is its github.
If you want to use your GPU with dlib then look below.
Easy download, type pip install face_recognition
into the command prompt.
If you get a lot of errors, you need to download Visual Studio 2015 or 2017 and cmake. Look online for Visual Studio and cmake. Make sure that when you install Visual Studio, you check the C++ options. Also make sure that you put Cmake into your path in environment variables.
Afterwards, you can try to download face_recognition using the pip command above.
With a GPU, you should install Visual Studio 2015. Afterwards, install windows SDK 8.1, cmake, make sure you have cuda and cudnn installed(9.0 is ok), and also try to create a c++ project in visual studio to see if you can install the c++ option.
Clone the dlib repo and opened it in cmd and run
python setup.py install --yes DLIB_USE_CUDA
Try to follow this guide
If you have a webcam, run face_recog_live.py. If not, then you can run face_recog_test.py and change the image file at the bottom.
Add the pictures that you want to encode into the "dataset" folder under a folder of the name of the person in the image.
Then run in the command prompt in this directory:
python encode_faces.py -i dataset -e encodings/encodings.pickle
MIT © fidgetspinnerkid