DEV Community

Xingliao Smart Home
Xingliao Smart Home

Posted on

Focal Length Decides Whether a Camera Identifies Faces or Just Records Shapes

Most people buy a camera by resolution and then spend the next six months disappointed that a 4 MP image of a visitor still cannot tell you who it was. The number that actually decides that is the lens, and it is buried in the small print.

What the millimetre figure really means

A 2.8 mm lens on a small sensor gives a wide horizontal field of view, often announced as 100 degrees or more. A 4 mm lens narrows it to roughly 80 degrees, an 6 mm to about 55, and a 12 mm to something approaching a corridor view. Wider is not better. Wider means the same number of pixels has to cover more scene, so every face in the frame gets fewer of them, and the pixel density at the point you care about drops.

The useful way to think about it is pixels per metre at the distance that matters. A doorway two metres from the lens is the practical identification distance for a doorbell, a driveway eight to twelve metres away is the practical one for a plate or a face at the gate. Choose the lens for that distance, not for the widest angle the box can claim.

The two failure modes people confuse

Too wide and faces become unidentifiable: the person is in frame, the footage is fine, and nobody can tell you who it was. Too narrow and the event is never recorded at all: motion happens just outside the frame and the camera, which only triggers on motion in view, does not wake. The first is a disappointment, the second is a security gap, and both come from the same specification being chosen for the wrong distance.

Then there is distortion. Wide lenses stretch the edges, so a person walking past the frame edge appears elongated and their face skews. Software corrects it, and correction throws away pixels at the corners, which is why a corrected 2.8 mm image at the edges is softer than the same sensor with a 4 mm lens that never needed the correction.

Where zoom and digital cropping fit

Digital zoom crops, so it reduces pixels and does nothing for identification. Optical zoom moves glass and keeps them, which is why a PTZ with a real optical range is a different tool from a fixed camera with a zoom slider in the app. If the requirement is reading a number plate at fifteen metres, no amount of software will rescue a 2.8 mm lens.

Practical guidance

Measure the distance from the mounting point to the thing you want to identify before you buy. For a doorway at one to three metres, a 2.8 or 3.6 mm lens is usually right and gives useful context. For a gate or driveway beyond six metres, go longer, 6 mm or more, and accept the narrower view, or use two cameras with different lenses instead of one compromise. Mount so the face is at lens height rather than looking down at the top of a head, since a camera two and a half metres up records hats and shoulders. And check the vertical field as well as the horizontal, because a camera can have a generous horizontal angle and a surprisingly narrow vertical one, which is how packages on a doorstep end up outside the frame.

Where this matters when you are buying

Panel standards, protocols and MOQ live on the Xingliao smart home factory site; panel families (86, 118, 147) are on the smart switch board manufacturing page. Sourcing questions go to the factory team.

Top comments (0)