-
Create a virtual enviornment with following command
python -m venv <venv>
venv is your virtual enviornment name -
Activate your virtual enviornment
-
install packages using requirements.txt
pip install -r requirements.txt
You can aslo run this as a spyder project -
Start running python scripts
-
Create following folders:
- images/
- database/
-
Extract database on database folder
-
Run
face_detection.py
script
it will execute fuction nameddetect_face_from_video(path:str,load_file:bool=True)
write the path to your database in path argument and if you want to save progress then keep load_file=True -
Run
image_entropy.py
script
executecalculate_entropy()
function -
Run the
project.ipynb
jupyter notebook
You can see the result here !