This repository was made with the intention of educating Sal College students, since it would be utilized in a lecture for those students.
This is simple to start
Step 1 Create a Virtual environment in python using vevn module
Linux:
sudo apt install python3-venv
Step 2:
After creating the venv check the version of pip and setup tool
Use pip list
command
Use command pip install module_name --upgrade
to upgrade any module if needed
Let's Start the real thing!!
Install the dependencies mentioned below
sudo apt-get install build-essential cmake pkg-config libx11-dev libatlas-base-dev libgtk-3-dev libboost-python-dev python3-dev python3-pip
Follow the below steps to install the dlib library
wget http://dlib.net/files/dlib-19.9.tar.bz2
tar xvf dlib-19.9.tar.bz2
cd dlib-19.9/
mkdir build
cd build
cmake ..
cmake --build . --config Release
sudo make install
sudo ldconfig
cd ..
pkg-config --libs --cflags dlib-1
After installing the dlib library install the other libraries using command
pip install -r requirements.txt
Create a train_dir
folder in this folder create a sub folder with person's name and put at least 3 images of that person inside that folder
----train_dir
|
|---Person_1
| |
| --images
---Person_2
|
--images
Run the code and you are ready to go
This is the source repo :- Face_recognition_github
Also create a folder name unknown_capture