Skip to content

Face Blurring Tool #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gulcihanglmz
Copy link

Face Blurring Tool - AI-Powered Privacy Protection with Real-time Processing

Summary

Added a comprehensive face blurring tool that automatically detects and blurs faces in images, videos, and live webcam feeds using multiple AI detection methods (Haar Cascades, MediaPipe, DNN). The tool provides an easy-to-use interface with customizable blur effects and supports batch processing.

Description

This PR introduces a professional-grade face blurring tool designed for privacy protection and content moderation. The tool combines multiple computer vision techniques to provide accurate face detection with various blur effects.

The changes are as follows:

  • face_blur.py - Main comprehensive tool with multiple detection methods and blur types
  • demo.py - Interactive demo script for easy testing with real images, webcam capture, or test patterns
  • requirements.txt - All necessary dependencies (OpenCV, MediaPipe, NumPy)
  • README.md - Complete documentation with quick start guide and usage examples

Checks

in the repository
Made no changes that degrades the functioning of the repository
Gave each commit a better title (unlike updated README.md)

  • 🔍 Multiple AI Detection Methods: Haar Cascades (fast), MediaPipe (accurate), DNN (highest quality)
  • 🌊 Various Blur Effects: Gaussian blur, motion blur, and pixelation
  • 📸 Multiple Input Sources: Images, videos, webcam feeds, batch processing
  • Real-time Processing: Optimized for live webcam with adjustable performance
  • 🎛️ Highly Customizable: Adjustable blur intensity, detection sensitivity, output formats

in the PR

Followed the format of the pull_request_template
Made the Pull Request in a small level
Tested the changes you made

Developer Note:

The face detection sensitivity can be fine-tuned by modifying the hardcoded confidence values in the detect_faces_dnn and _init_mediapipe_detector methods within face_blur.py.

Thank You,

Gulcihan Gulmez

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant