It basically checks for one specific face based on a jpg file.
- it'll make a "sample" of the face. This can be obtained with the capture_face_dump.py script
- The "sample" of the face can be found in ./target_face.jpg
- The main.py script will use the device's camera to process each frame
- It'll do an analysis of the face dumped in target_face.jpg
On my computer (Intel i5 4 cores & 8GB ram) it took 3 seconds to process every frame. That can be different between each computer.
1.Install the required modules
python -m pip install -r requirements.txt # on Windows
python3 -m pip install -r requirements.txt # on linux and other distributions
2.Make a "sample" of of the target's face
python capture_face_dump.py
- Press space to make a picture
- Press Q to close the application
3.And finally, run the main script
python main.py
You'll see that in the console will be printed if it found the target's face or not
Press the q
button while focused on the opencv created window to close the project
Note that this project is not recommended to be used in real projects for production. Processing the image is slow and it's not optimized