A Chrome extension that automatically blurs video content while keeping faces visible using TensorFlow.js and MediaPipe Face Detection.
- Automatically detects video elements on web pages
- Applies a blur effect to the entire video
- Uses TensorFlow.js and MediaPipe Face Detection for real-time face detection
- Creates unblurred regions around detected faces
- Updates face detection at 15 FPS (configurable)
-
Download the required library files:
- Create a
libdirectory - Download tensorflow.min.js
- Download @tensorflow-models/face-detection and save as
face-detection.min.js - Place both files in the
libdirectory
- Create a
-
Load the extension in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right
- Click "Load unpacked" and select this directory
- Open Chrome and navigate to
Once installed, the extension will automatically:
- Detect video elements on any webpage
- Apply a blur effect to the entire video
- Detect faces in the video in real-time using MediaPipe Face Detection
- Create unblurred regions around detected faces
The extension works automatically without any user intervention needed.
- Uses MutationObserver to detect new video elements
- Implements face detection using TensorFlow.js and MediaPipe Face Detection
- Uses CSS backdrop-filter for blur effects
- Runs face detection at 15 FPS (configurable in content.js)
- Supports detection of multiple faces simultaneously (configurable up to 10 faces)
- Google Chrome browser
- Internet connection (for initial model loading)
MIT License