This repository contains a Python script that uses OpenCV and the cvzone
library to capture video from a camera and detect faces in the video frames in real-time.
- Python 3
- OpenCV
- cvzone
-
Install the required libraries by running
pip install opencv-python cvzone
. -
Clone this repository to your local machine.
-
Navigate to the directory where you cloned this repository.
-
Run the script by executing
python <script_name>.py
, replacing<script_name>
with the name of the script file. -
A window named "image" will open and display the video captured from your camera. The script will detect faces in the video frames and draw their bounding boxes.
This project is licensed under the MIT License.