Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rishraks/face_detection_anonymizer
The Face Detection and Anonymizer is a Python-based tool using OpenCV and Mediapipe to detect faces in real-time from a video stream. It allows users to toggle features like drawing bounding boxes around faces or anonymizing them with blur effects, ensuring privacy while showcasing efficient computer vision capabilities.
https://github.com/rishraks/face_detection_anonymizer
computer-vision mediapipe opencv-python
Last synced: 13 days ago
JSON representation
The Face Detection and Anonymizer is a Python-based tool using OpenCV and Mediapipe to detect faces in real-time from a video stream. It allows users to toggle features like drawing bounding boxes around faces or anonymizing them with blur effects, ensuring privacy while showcasing efficient computer vision capabilities.
- Host: GitHub
- URL: https://github.com/rishraks/face_detection_anonymizer
- Owner: rishraks
- License: mit
- Created: 2024-12-14T06:57:01.000Z (21 days ago)
- Default Branch: main
- Last Pushed: 2024-12-14T07:04:29.000Z (21 days ago)
- Last Synced: 2024-12-14T07:27:31.854Z (21 days ago)
- Topics: computer-vision, mediapipe, opencv-python
- Language: Python
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Face Detection and Anonymizer
A Python-based real-time face detection and anonymization tool using OpenCV and Mediapipe. The program detects faces in a video stream, allows users to draw bounding boxes, and blur faces for anonymization.
---
## Features
- **Real-time Face Detection**: Detects faces from webcam input using Mediapipe's Face Detection API.
- **Bounding Box Toggle**: Draws a rectangle around detected faces when toggled.
- **Face Anonymization**: Blurs the detected face areas to ensure privacy.
- **User-Controlled Actions**: Toggle features dynamically with keyboard inputs.---
## Requirements
Ensure you have the following installed before running the project:
- Python 3.7 or higher
- OpenCV
- MediapipeTo install the required Python packages, run:
```bash
pip install opencv-python mediapipe
```## How to use
1. Clone or download this repository.
2. Run the main.py file:
```bash
python video.py
```
3. Use the following keyboard inputs during runtime:
- Press d to toggle the face bounding box.
- Press b to toggle face blurring.
- Press q to quit the program.## Customization
- Adjust the blur intensity by changing the kernel size in the cv2.blur() function.
- Modify the confidence threshold in min_detection_confidence for more precise face detection.## License
This project is licensed under the MIT License. Feel free to use, modify, and distribute it.