Skip to main content

Enrollment Image Quality

Adding a person to a watchlist is called enrollment, whether you do it in Station (Manage Watchlists, Bulk Enrollment) or through the REST API (Enroll and Identify). The enrollment image is the reference every later detection is compared against, so its quality sets the ceiling for matching accuracy no matter how good the cameras are. Face Matcher can match faces captured in the wild, but a poor reference image lowers every score for that person.

Face validation at enrollment is on by default. The REST API rejects images that fall outside the limits in the table, and Station applies the same predefined limits (FACE_VALIDATION_MODE=predefined in .env.station). Adjust the keys in .env section 3.2 only when you understand the trade-off, and apply with docker compose up -d.

CheckDefaultKey
Face size (eye distance)at least 30 pxFaceValidation__Size__Min=30
Yaw, pitch, roll-20° to 20° eachFaceValidation__YawAngle__Min/Max, PitchAngle, RollAngle
Face detection quality1000 to 10000FaceValidation__FaceQuality__Min/Max
Template qualityat least 10FaceValidation__TemplateQuality__Min
Brightness, sharpness, area on framenot limitedFaceValidation__Brightness__*, Sharpness__*, AreaOnFrame__*

Face size and eye distance​

Aim for a sharp, in-focus image without heavy compression artefacts and with at least 50 pixels between the eyes. The validator accepts 30 px, but everything between 30 and 50 px produces weaker templates. Get there by using a sensible resolution, by photographing from the right distance and angle, and by choosing a lens with a suitable field of view. Face size terms are explained in the Biometrics Glossary.

Lens​

Short focal lengths distort faces (the fish-eye effect), so do not use lenses below 2.8 mm for enrollment. A longer lens or zoom keeps the eye distance high and limits the frame to the face; fixed focal length is fine for a dedicated enrollment station.

Lens focal length compared: shorter lenses widen the view and distort faces, longer lenses keep proportions

Contrast and focus​

Contrast is the difference between light and dark areas; a low-contrast image has soft edges and hides facial detail. The usual cause is focus: a face slightly out of focus is tolerable if it is large enough (50 px and up), but strongly blurred faces produce poor templates. Two things put faces out of focus: a shallow depth of field, typical of zoom lenses at long focal lengths, and autofocus that hunts as the light changes. Prefer fixed focus set for the enrollment distance.

An out-of-focus face: soft edges and lost detail in the eyes and mouth

Lighting​

Keep every light source out of the camera's view. Natural light from windows and doors changes through the day, so do not rely on it alone; shade it or move the enrollment spot. Artificial light can usually be moved, dimmed or covered. Typical problems:

ConditionEffect
BacklightThe face becomes a silhouette. Never place the subject in front of a window or lamp.
Low lightLonger exposure blurs any movement (keep it at 1/50 s or shorter); raising ISO adds noise instead. Add light.
OverexposureThe camera meters the background; zoom in on the face or remove the spotlight.
Warm-coloured lightLowers skin contrast and removes detail. Use neutral white light.
Side, top or no lightLeaves dark patches on the face. Light it frontally and diffusely.

Low-light image with visible sensor noise across the face

Motion blur caused by a long exposure in poor light

Warm-coloured lighting flattening the contrast of the face

Lighting to avoid: backlight, side light, top light and low light

Face orientation​

A frontal view is the goal. Keep roll, pitch and yaw within ±15° for enrollment; the validator rejects anything beyond ±20°. Live cameras tolerate wider pitch and yaw (see Camera Selection and Placement), but the reference image should be as frontal as you can make it. Place the enrollment camera at eye level, close to the person, and zoom rather than step back to keep the face above 50 px.

Roll, pitch and yaw of a face relative to the camera

The ideal image​

Frontal, diffusely lit, in focus, eyes well above 50 px apart, neutral expression, no glasses glare, no hat or mask. The example below is not perfectly sharp and is still an excellent reference because the lighting is even and the view is frontal.

A good enrollment image: frontal view, even diffuse lighting, no shadows or hot spots

A registration can carry up to 50 images; several good images of the same person taken at different times improve robustness, several poor ones do not. If a person keeps scoring low everywhere, re-enroll them with a better image before touching thresholds, see Tuning Identification.