Key points
- Short focal lengths (2.8 mm) see wide and near. Long focal lengths (8 mm and up) see narrow and far.
- Field of view also depends on sensor size, so compare cameras by the angle on the data sheet, not just millimetres.
- Varifocal lenses let the installer set the exact view on site and are worth the small extra cost.
- Use the lens to put the scene width you need in front of the camera, and no wider.
The lens decides what part of the world the camera's pixels are spread across. Choose too wide a lens and the camera sees everything in poor detail. Choose too narrow and it sees one face beautifully while the incident happens just outside the frame. This guide explains how to pick the right lens for each view, building on pixels per metre.
Focal length and field of view
Focal length, in millimetres, is printed on every camera data sheet. The shorter the focal length, the wider the angle of view. Field of view also depends on the size of the image sensor: the same 4 mm lens gives a wider view on a large sensor than on a small one. That is why the horizontal field of view in degrees is the number to compare.
Typical horizontal angles for the common 1/2.8-inch and 1/3-inch sensors used in business cameras are shown below. Check the data sheet for your exact model, because they vary.
| Focal length | Horizontal view (typical) | Scene width at 10 m | Good for |
|---|---|---|---|
| 2.8 mm | About 90 to 105° | About 20 to 26 m | Small rooms, overviews |
| 4 mm | About 75 to 85° | About 15 to 18 m | Larger rooms, lobbies |
| 6 mm | About 50 to 55° | About 9 to 10 m | Entrances from across a room |
| 8 mm | About 40° | About 7 m | Gates, doors at a distance |
| 12 mm | About 25 to 28° | About 4.5 to 5 m | Long-distance identification, lanes |
Fixed, varifocal and motorized
- Fixed lens. One focal length set at the factory. Cheapest and simplest, and fine when you know exactly what the view needs, such as a 2.8 mm overview in a small room.
- Manual varifocal. The installer sets the zoom and focus by hand. Flexible, but focus often drifts between day and infrared night light unless the lens is IR-corrected.
- Motorized varifocal. Zoom and focus are set remotely from software, with autofocus. This is the standard choice for most business installs because views can be fine-tuned from the desk and corrected later without a ladder.
Plans change. Racking moves, a tree grows or the client decides a door matters more than the room. A motorized lens lets us reframe a view remotely in minutes, which usually pays for the small price difference on the first change.
PTZ cameras
Pan-tilt-zoom cameras combine a long optical zoom with motors that move the view. They are excellent for an operator actively following an event, and for tours across a large yard. They are poor at recording what you did not know to look at: while a PTZ is zoomed on the gate, it is not watching the fence. Always pair a PTZ with fixed cameras that record the full area continuously, and treat the PTZ as a bonus.
Multi-sensor and panoramic cameras
Multi-sensor cameras put two to four separate imagers in one housing, each with its own lens, often aimed to cover 180 or 360 degrees from a corner or the centre of a lot. Because each sensor has its own pixels, they keep useful density across a wide area with one mount and one cable. Fisheye cameras use a single sensor and a very wide lens to see an entire room from the ceiling. They are great for situational awareness in retail and open offices, but pixel density at the edges of the image is low, so they rarely identify anyone.
How to choose a lens, step by step
- Find the target line. Pick where in the scene the detail matters, such as the doorway, the gate lane or the cash counter.
- Measure two numbers. The distance from the camera to the target line, and the width that must be visible along it.
- Check the pixels. Divide the camera's horizontal pixels by that width. If it falls short of your DORI target, use a higher resolution camera or a narrower width.
- Work out the angle. Horizontal view = 2 × arctan(width ÷ (2 × distance)). A 6 m wide target at 8 m needs about 41 degrees.
- Pick the lens range. Choose a fixed lens close to that angle, or a varifocal range that includes it with room either side.
Lens details that matter
- IR correction. Visible and infrared light focus at slightly different points. IR-corrected lenses, or autofocus that refocuses at night, keep night video sharp.
- Aperture. A lower f-number, such as F1.4 against F2.0, lets in more light and helps in low light, especially at the long end of a varifocal.
- Distortion. Very wide lenses bend straight lines at the edges. Some cameras correct it in software, at the cost of some field of view.
- Depth of field. Long lenses with wide apertures have a narrow zone of sharp focus. Focus on the target line, not the far wall.
Cameras aimed through windows reflect their own infrared at night and often focus on the glass. Mount outside, or turn off IR and rely on outdoor lighting.
Once the lens is chosen, set the mounting point with mounting heights and angles so the camera sees faces rather than the tops of heads.