Guide
Face detection and bounding boxes, explained
Short answer
Face detection is the computer-vision task of locating faces in an image and returning, for each one, a bounding box — the coordinates of a rectangle around the face — and a confidence score from 0 to 1. It is the first step of anonymization: the boxes tell a blurring stage exactly which pixels to redact.
What is face detection?
Face detection answers "where are the faces?" — not "whose face is this?" (that is face recognition, a different and more sensitive task). A detector takes a frame and returns a list of bounding boxes, one per face, each with a confidence score. For anonymization that is exactly the right primitive: you need to know where every face is so you can cover it, and you specifically do not want to identify anyone.
What exactly is a bounding box?
A bounding box is the smallest axis-aligned rectangle that encloses the object — here, a face. It is stored as pixel coordinates, most often (x, y) for the top-left corner plus width and height, or as two corners (x1, y1, x2, y2). Some formats normalise the numbers to 0–1 so they survive resizing. The box is what a downstream stage acts on: to blur a face, you blur the pixels inside its box.
- bbox
- The rectangle around the face, e.g. [x, y, width, height] in pixels.
- conf
- Confidence the box contains a face, from 0 to 1 (e.g. 0.80 = 80%).
- class
- What was detected — face, head, plate, screen — when a model finds more than one type.
- track_id
- A stable id linking the same face across frames of a video.
How does the confidence threshold change the result?
You keep detections above a chosen confidence and discard the rest. A low threshold maximises recall — you catch nearly every face, at the cost of occasionally boxing something that is not a face. A high threshold maximises precision — almost every box is a real face, but a few faint or distant faces slip through. For anonymization, recall matters more than precision: an extra blurred patch is harmless, a missed face is a leaked identity, so the threshold is set low and a human catches the false positives.
This is why anonymization pipelines tune for recall and keep a reviewer in the loop, rather than chasing a single "accuracy" number. The right threshold is the one that meets your acceptable miss rate on a labelled sample of your own footage.
Why is detection only the first step?
A box marks a face; it does not hide it. After detection comes tracking (linking boxes across video frames so coverage does not flicker), redaction (blurring the pixels inside each box, irreversibly), and review (a human confirming nothing was missed). Detection is necessary but not sufficient — the guarantee that a video is anonymized comes from the whole pipeline, not the detector alone.
Check it against the sample pack.
40 episodes across 4 environments, delivered in the exact schema these guides describe.