- Install the required packages by running
pip install -r requirements.txt
. - Download haarcascade_frontalface_default.xml into your project directory. To navigate around the GitHub repository, select the icon for 'Download raw file', then move the installed .xml file into your project directory)
- The official documentation for CustomTkinter can be found here ▸ https://customtkinter.tomschimansky.com/
- An unofficial comprehensive instruction for real-time face detection with OpenCV can be found here ▸ https://www.datacamp.com/tutorial/face-detection-python-opencv. In running the script, ensure to end the loop by hitting
q
on your keyboard. This will stop the program from reading the frames captured by the camera.