Mindket

Face Redaction

Newversion 1 · updated

Overview

Finds every face in a photo or video and hides it with pixelation, blur or a solid block while the rest of the image stays intact. For privacy teams handling CCTV, event or street footage.

Face Redaction is a kit in the Legal category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python on your computer
  • The Python packages listed in requirements.txt
  • The huggingface_hub package, which gives you the hf command
Runs in
  • A web browser, on the Space's page at Hugging Face, with nothing to install
  • Windows, macOS or Linux with Python, using the web interface
  • A terminal, using the command-line tool
Start with
pip install -U huggingface_hub
hf download hamzaasyf/face-redaction --repo-type space --local-dir face-redaction
cd face-redaction

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Face Redaction finds faces in photos and videos and covers them, leaving the rest of the image as it was. It handles group photos, dense crowds and dark CCTV frames. When the detector loses a face in video, a tracker carries the cover over the gap, so the face does not reappear on blurry frames.

It comes as a web app and as a command-line tool.

Who it suits

People who must hide identities before footage or images are shared, stored or used for training.

IndustryWho uses itHow they use itExample
SecurityCCTV and body-camera operatorsCover faces before footage leaves the buildingRedact a dark CCTV frame with the low-light option
CompliancePrivacy and legal teamsAnswer data requests without exposing bystandersBlur everyone except the person asking
Machine learningData teamsAnonymise image sets before trainingRun a folder of photos through the command line tool
MediaEvent and street videographersPublish footage without showing facesPixelate faces in a crowd clip

You can skip it if you need to find a specific person, since it hides faces and does not identify them.

Where to use it

  • A web browser, on the Space's page at Hugging Face, with nothing to install
  • Windows, macOS or Linux with Python, using the web interface
  • A terminal, using the command-line tool
Use caseWhoWhat they get back
Redact a photoAnyone sharing imagesA copy with faces pixelated, blurred or blocked
Redact a videoFootage ownersA video with the same covering and the original audio
Check the resultReviewersNumbered boxes with scores, plus a clean copy without boxes
Count facesAnalystsA JSON report of face boxes, or counts per track for video

How to set it up

  • Python on your computer
  • The Python packages listed in requirements.txt
  • The huggingface_hub package, which gives you the hf command
  1. Install the huggingface_hub package.
  2. Download the Space with the hf command.
  3. Move into the downloaded folder.
  4. Install the pinned Gradio version.
  5. Install the packages from requirements.txt.
  6. Start the app with Python.
pip install -U huggingface_hub
hf download hamzaasyf/face-redaction --repo-type space --local-dir face-redaction
cd face-redaction
pip install gradio==6.31.0
pip install -r requirements.txt
python app.py

How to use it

In the web interface you pick the photo or video tab, add a file and choose the style. From a terminal, you run the command-line tool with a file and an output name.

python cli.py photo.jpg -o redacted.png --style blur
python cli.py clip.mp4 -o redacted.mp4 --scales 1,2
python cli.py cctv.jpg -o redacted.png --scales 1,2,3 --low-light --threshold 0.5
ToolWhat it does
app.pyOpens the web interface with photo and video tabs
cli.pyRedacts a photo or video from the command line
--styleChooses how faces are covered, such as blur
--scalesSets the zoom levels the detector scans
--low-lightBrightens dark frames for detection only
--thresholdSets the detection cutoff, lower for hard footage

Example

You run the first command above on photo.jpg. It writes redacted.png with every detected face blurred and the rest of the picture unchanged.

For newcomers and experts

If you are new to this, open the Space and try one group photo with the default settings. Check that every face is covered, then try another style.

If you know the field, the detector is YuNet, run on overlapping tiles at several zoom levels so tiny faces are caught. Duplicate boxes are merged with non-maximum suppression. The tracker matches boxes across frames in two stages, like ByteTrack, and estimates each track's motion at constant velocity. Output video is encoded as H.264 and the sound is carried over.

  1. Each frame is cut into tiles at 1x, 2x and 3x
  2. YuNet detects faces on every tile
  3. Duplicate boxes are merged
  4. A tracker covers faces the detector misses
  5. Faces are redacted and the output is saved

Good to know

  • License: MIT for the code, and the README says the same for the YuNet model
  • Cost to run: none named
  • Data it reaches: the photos and videos you give it, plus the files in the Space
  • Not for: guaranteed redaction, since a face turned away, mostly hidden or tiny in the frame can still be missed, so review the output before you publish
  • Limits: the online demo cuts each video to its first 20 seconds, and the README names a MAX_VIDEO_SECONDS setting for changing that

README and files

README

Face Redaction

Finds every face in a photo or video and hides it with pixelation, blur or a solid block while the rest of the image stays intact. For privacy teams handling CCTV, event or street footage.

Made by hamzaasyf on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.

About

What it is: Face Redaction finds faces in photos and videos and covers them, leaving the rest of the image as it was. It handles group photos, dense crowds and dark CCTV frames. When the detector loses a face in video, a tracker carries the cover over the gap, so the face does not reappear on blurry frames.

It comes as a web app and as a command-line tool.

Who it suits: People who must hide identities before footage or images are shared, stored or used for training.

Industry | Who uses it | How they use it | Example
Security | CCTV and body-camera operators | Cover faces before footage leaves the building | Redact a dark CCTV frame with the low-light option
Compliance | Privacy and legal teams | Answer data requests without exposing bystanders | Blur everyone except the person asking
Machine learning | Data teams | Anonymise image sets before training | Run a folder of photos through the command line tool
Media | Event and street videographers | Publish footage without showing faces | Pixelate faces in a crowd clip

You can skip it if you need to find a specific person, since it hides faces and does not identify them.

Where to use it:

  • A web browser, on the Space's page at Hugging Face, with nothing to install
  • Windows, macOS or Linux with Python, using the web interface
  • A terminal, using the command-line tool
Use case | Who | What they get back
Redact a photo | Anyone sharing images | A copy with faces pixelated, blurred or blocked
Redact a video | Footage owners | A video with the same covering and the original audio
Check the result | Reviewers | Numbered boxes with scores, plus a clean copy without boxes
Count faces | Analysts | A JSON report of face boxes, or counts per track for video

How to set it up:

  • Python on your computer
  • The Python packages listed in requirements.txt
  • The huggingface_hub package, which gives you the hf command
  1. Install the huggingface_hub package.
  2. Download the Space with the hf command.
  3. Move into the downloaded folder.
  4. Install the pinned Gradio version.
  5. Install the packages from requirements.txt.
  6. Start the app with Python.
pip install -U huggingface_hub
hf download hamzaasyf/face-redaction --repo-type space --local-dir face-redaction
cd face-redaction
pip install gradio==6.31.0
pip install -r requirements.txt
python app.py

How to use it: In the web interface you pick the photo or video tab, add a file and choose the style. From a terminal, you run the command-line tool with a file and an output name.

python cli.py photo.jpg -o redacted.png --style blur
python cli.py clip.mp4 -o redacted.mp4 --scales 1,2
python cli.py cctv.jpg -o redacted.png --scales 1,2,3 --low-light --threshold 0.5
Tool | What it does
app.py | Opens the web interface with photo and video tabs
cli.py | Redacts a photo or video from the command line
--style | Chooses how faces are covered, such as blur
--scales | Sets the zoom levels the detector scans
--low-light | Brightens dark frames for detection only
--threshold | Sets the detection cutoff, lower for hard footage

Example: You run the first command above on photo.jpg. It writes redacted.png with every detected face blurred and the rest of the picture unchanged.

For newcomers and experts: If you are new to this, open the Space and try one group photo with the default settings. Check that every face is covered, then try another style.

If you know the field, the detector is YuNet, run on overlapping tiles at several zoom levels so tiny faces are caught. Duplicate boxes are merged with non-maximum suppression. The tracker matches boxes across frames in two stages, like ByteTrack, and estimates each track's motion at constant velocity. Output video is encoded as H.264 and the sound is carried over.

Each frame is cut into tiles at 1x, 2x and 3x
YuNet detects faces on every tile
Duplicate boxes are merged
A tracker covers faces the detector misses
Faces are redacted and the output is saved

Good to know:

  • License: MIT for the code, and the README says the same for the YuNet model
  • Cost to run: none named
  • Data it reaches: the photos and videos you give it, plus the files in the Space
  • Not for: guaranteed redaction, since a face turned away, mostly hidden or tiny in the frame can still be missed, so review the output before you publish
  • Limits: the online demo cuts each video to its first 20 seconds, and the README names a MAX_VIDEO_SECONDS setting for changing that

On Hugging Face, 13 November 2026

  • Likes: 1
  • Built with: gradio
  • License: mit

Links

Try it

Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-12

Compare with similar

Listed Hugging Face Spaces in the same category that share the most tags with this one.

ProductLikesBuilt withLicenseLast change
Face Redaction This page1gradiomit
AI Lawyer - Everyday Legal Help (India)Shares gradio2gradiomit
LurisQAShares gradio1gradiomit
Numbers as Mindket last read them, on 2026-11-12.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Legal

See all in Legal

rizzo-pii-0.3B

rizzoaiacademy · Kit

A small CPU-friendly model that finds 22 kinds of personal data in Italian legal text, including codice fiscale and partita IVA, for reversible anonymization.…

New

PII-Tracer

perplexity-ai · Kit

Finds personal data in chat conversations and masks it, using a 600M-parameter encoder with a token tagger and a sensitivity score. It suits teams that clean c…

New

Finds and masks personal data in text, across 55 fine-grained categories such as names, contact details and IDs. It suits teams that redact text before sharing…

New