Install the virtual environment library:

pip3 install virtualenv

Activate the environment:

  • source env/bin/activate (Linux)
  • env\Scripts\activate.bat (Windows)

Install requirements:

pip3 install -r requirements.txt

Download pretrained FaceNet models from here and unzip file to pre_model folder.

Download pretrained Yolo models from here and here and place them in the HeadDetector folder.

Install tkinter:

sudo apt-get install python3-tk