Skip to content

AutoFaceBlur is a Python-based tool designed to enhance privacy and anonymity in video content. Utilizing the advanced capabilities of the YOLO model, AutoFaceBlur efficiently detects faces in real-time within video streams and applies a seamless blurring effect.

Notifications You must be signed in to change notification settings

CesareDavidePace/autoblurface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AutoBlurFace

Description

AutoFaceBlur is a Python-based tool designed to enhance privacy and anonymity in video content. Utilizing the advanced capabilities of the YOLO model, AutoFaceBlur efficiently detects faces in real-time within video streams and applies a seamless blurring effect.

alt text

Features

  • Real-time face detection: Leveraging the YOLO model for accurate and fast detection.
  • Face blurring: Enhances privacy by blurring detected faces.
  • Compatibility: Works with video files and webcam streams.
  • Adjustable blurring intensity: Customize the intensity of the blur effect.
  • Output saving: Option to save the processed video output.

Installation

Steps

  1. Clone the repository:

    git clone https://github.com/cesaredavidepace/autoblurface.git
  2. Navigate to the cloned directory:

    cd AutoBlurFace
  3. Install required Python packages:

    pip install -r requirements.txt
  4. Download models YoloV8 Face

Basic Usage

from AutoBlurFace import AutoBlurFace

auto_blur_face = AutoBlurFace(
    model_path='yolov8n-face.pt',
    output_video_path='output.mp4',
    show_video=True,
    save_video=True,
    apply_blur=True
)

auto_blur_face.run('face-video.mp4')

Using Webcam

auto_blur_face.run(use_webcam=True)

Acknowledgments

  • YOLO and Ultralytics for the face detection model.
  • OpenCV community for the image processing tools.

About

AutoFaceBlur is a Python-based tool designed to enhance privacy and anonymity in video content. Utilizing the advanced capabilities of the YOLO model, AutoFaceBlur efficiently detects faces in real-time within video streams and applies a seamless blurring effect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages