Blur faces
blur_facesBlur faces in video with automatic tracking, adjusting the blur region as people move. Expand coverage to include hair and chin, or exclude the main subject for interviews.
Instructions
Blur every face in a clip, following each one as it moves.
Each tracked face gets its own blurred region whose position is driven over time, so the blur stays on the person rather than covering a fixed rectangle. Boxes are expanded past the detected face by default so hair and chin are covered too.
Set exclude_primary to keep the main subject sharp and blur everyone else — the usual requirement for street interviews. Because a missed detection means an unblurred face, review the output before publishing it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encode | No | ||
| expand | No | Grow each face box by this factor, so hair and chin are covered too. | |
| input_path | Yes | Path to the source media file. | |
| max_frames | No | ||
| sample_fps | No | ||
| output_path | No | Destination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result. | |
| blur_strength | No | Gaussian blur sigma. Higher is stronger. | |
| min_confidence | No | Lower than the detection default, since a missed face is not blurred. | |
| exclude_primary | No | Leave the main subject sharp and blur everyone else. | |
| exclude_track_ids | No | Specific tracks from detect_faces to leave sharp. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| job_id | Yes | ||
| status | No | queued | |
| message | No | Job queued. Poll job_status for progress, then job_result. |