https://github.com/hamarshehmhmd/face_tracker
This is a Python application that uses OpenCV to track faces in a video stream from a camera. The application detects faces in real-time and draws a rectangle around each face in the video stream.
https://github.com/hamarshehmhmd/face_tracker
face face-detection face-recognition opencv python python3 technology
Last synced: about 2 months ago
JSON representation
This is a Python application that uses OpenCV to track faces in a video stream from a camera. The application detects faces in real-time and draws a rectangle around each face in the video stream.
- Host: GitHub
- URL: https://github.com/hamarshehmhmd/face_tracker
- Owner: hamarshehmhmd
- License: apache-2.0
- Created: 2023-03-08T10:18:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T16:16:13.000Z (about 3 years ago)
- Last Synced: 2025-07-06T08:05:32.272Z (about 1 year ago)
- Topics: face, face-detection, face-recognition, opencv, python, python3, technology
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Face Tracking
This is a Python project that uses OpenCV to track faces in real time.
## Installation
1. Clone this repository to your local machine.
2. Install the required dependencies by running `pip install -r requirements.txt` in the project directory.
3. Download the `haarcascade_frontalface_default.xml` file and place it in the project directory. You can download it from [here](https://github.com/opencv/opencv/blob/master/data/haarcascades/haarcascade_frontalface_default.xml).
4. Downlaod the `haarcascade_eye.xml` file and place it in the project directory. You can download it from [here](https://github.com/opencv/opencv/blob/master/data/haarcascades/haarcascade_eye.xml).
5. Run the `face_tracking.py` script.
## Usage
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.
## Contributing
Contributions to this project are welcome! If you have any suggestions or find any bugs, please open an issue or submit a pull request.
## License
This project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.
## Contact
If you have any questions or concerns, feel free to contact Mohammad Hamarsheh at hamarshehmhmd@gmail.com.