Your Cart
Loading

CCTV Pixel Density and DORI: How to Choose the Lens for Detection, Recognition and Identification (Formula, Examples, Excel)

"Can this camera identify a face at the door?" is a question every CCTV designer gets. The honest answer is a number: pixels per metre at the target. Here is the method I use on ELV projects to choose lenses and check cameras against DORI targets.


DORI levels (IEC / EN 62676-4)

• Detection: 25 px/m - a person or object is present

• Observation: 62.5 px/m - activity and general appearance

• Recognition: 125 px/m - confirm a known individual

• Identification: 250 px/m - identify an unknown individual

These come from the number of pixels across a 16 cm face (4, 10, 20 and 40 pixels). The 2025 edition of the standard defines new levels, but 125 and 250 px/m appear in both.


The formulas (rectilinear lens)

Scene width (m) = distance (m) x sensor width (mm) / focal length (mm)

Pixel density (px/m) = horizontal pixels / scene width

Horizontal field of view = 2 x ATAN(sensor width / (2 x focal length))

Focal length needed = required px/m x sensor width x distance / horizontal pixels

Use the real sensor width from the datasheet: format labels are nominal (1/2.8" is about 5.4 mm, 1/1.8" about 7.2 mm).


Worked example 1: car park overview

4MP camera (2688 px wide), 1/2.8" sensor (5.376 mm), 4 mm lens, target at 10 m.

Scene width = 10 x 5.376 / 4 = 13.4 m

Pixel density = 2688 / 13.4 = 200 px/m -> Recognition, not Identification.

Maximum distance for Identification with this lens: 2688 x 4 / (250 x 5.376) = 8 m.


Worked example 2: cash desk that fails

2MP camera (1920 px), 1/3" sensor (4.8 mm), 2.8 mm lens, target at 5 m.

Scene width = 5 x 4.8 / 2.8 = 8.6 m -> 224 px/m. Identification needs 250, so this is a FAIL.

Focal length needed = 250 x 4.8 x 5 / 1920 = 3.1 mm. A 3.6 mm lens (or a varifocal set to at least 3.1 mm) fixes it.


Practical tips

• Set a DORI target per area, not one target for the whole site: identification at doors and tills, recognition in corridors, detection on the perimeter.

• Pixel density is for the centre of the scene in good conditions. Low light, steep angles, motion blur, compression and wide-angle distortion all lower it, so keep a margin.

• Higher resolution on a wide lens does not always beat a narrower lens: check the numbers.

• Confirm critical cameras with the manufacturer's tool and a site test.


Excel calculator

I put this into the CCTV Lens, Field of View & Pixel Density (DORI) Calculator (Excel, $7): a camera schedule for up to 60 cameras with HFOV, scene width, px/m, level achieved, PASS / FAIL, focal length needed and maximum distance for each DORI level.

Get it here: https://payhip.com/b/UeGJz


Free quick calculator (CCTV storage, PoE budget, voltage drop): https://payhip.com/b/PUG1b

All 11 ELV calculators and BoQ templates for $29: https://payhip.com/b/R0uyW

Related in ELV Design Notes: How to Calculate CCTV NVR Storage, and PoE Switch Power Budget.

Related guides: CCTV NVR storage | PoE switch power budget | DC voltage drop for 12V/24V