This is a Python project that uses OpenCV to track faces in real time.
- Clone this repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt
in the project directory. - Download the
haarcascade_frontalface_default.xml
file and place it in the project directory. You can download it from here. - Downlaod the
haarcascade_eye.xml
file and place it in the project directory. You can download it from here. - Run the
face_tracking.py
script.
The face_tracking.py
script will start capturing video from your default camera and track faces in real time. If a face is detected, a green rectangle will be drawn around it.
Press the q
key to exit the program.
Contributions to this project are welcome! If you have any suggestions or find any bugs, please open an issue or submit a pull request.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
If you have any questions or concerns, feel free to contact Mohammad Hamarsheh at hamarshehmhmd@gmail.com.