This Python script uses a pre-trained deep learning model to perform real-time head detection using your webcam. The script displays the webcam feed in a window and updates the window title based on whether a head is detected or not.
- Python 3.x
- OpenCV (
pip install opencv-python
) - Keras (
pip install keras
)
-
Clone the repository:
git clone https://github.com/grantUser/iTAH.git cd iTAH
-
Install dependencies:
pip install -r requirements.txt
-
Run the script:
python main.py
-
Press
Esc
key to exit the application.
- The script uses a pre-trained Keras model (
head.h5
) for head detection. - The labels for the classes are stored in a file (
labels.txt
).
- You can modify the window size by changing
window_width
andwindow_height
in the script. - Adjust the paths to the model and label files if they are not in the same directory.
This project is licensed under the MIT License - see the LICENSE file for details.