This project demonstrates face detection using the MediaPipe library in Python. It processes a video input and detects faces, drawing bounding boxes and confidence scores around each detected face.
Before running the code, ensure you have the following libraries installed:
- OpenCV (
cv2
) - MediaPipe (
mediapipe
)
You can install them using the following commands:
pip install opencv-python
pip install mediapipe
- Clone this repository to your local machine:
git clone https://github.com/your-username/FaceDetection.git
- Navigate to the project directory:
cd FaceDetection
- Run the Python script:
python FaceDetectionModule.py
The provided Python script face_detection.py reads frames from a video file, performs face detection using MediaPipe's FaceDetection module, and displays the processed frames with bounding boxes and confidence scores.