Choosing the Right Lens for CCTV: Depth of Field and Identification Distances

Security cameras do two jobs at once. They watch a scene continuously, and they also need to resolve enough detail in the specific spot that matters when an incident occurs. A good lens is the hinge between those needs. Get the focal length or aperture wrong and the camera either sees a postcard view with no actionable detail, or a tight frame that misses everything left and right. I have seen both mistakes on real sites, from small retail counters to sprawling distribution yards. The fix starts with understanding depth of field, identification distances, and how lens choice ties them together.

What you are trying to see, and where

Every camera should be assigned a purpose by location. That purpose decides the lens. A parking aisle might be for vehicle detection across 90 feet, but the gate kiosk needs face identification at three to six feet. A warehouse bay needs coverage for operations, while the shipping office needs legible paperwork on a counter. Many poor installs come from using one lens for all scenarios. The result is either motion without detail or detail without context.

If you are planning professional CCTV installation or a home surveillance system installation, write down the task for each camera before touching a spec sheet. Common goals fall into categories: detect a person, recognize a familiar face, identify an unknown face, read a plate, verify an action like a hand-to-hand exchange or a package handoff. Each of those tasks maps to pixels on target.

The pixel density yardstick

There is a simple, defensible way to estimate whether a camera can deliver a given task at a given distance. Measure pixel density on the subject. Industry practice uses pixels per foot or pixels per meter on target as a proxy for detail.

    Detection usually works around 15 to 20 pixels per foot, enough to notice a moving human shape and direction of travel. Recognition of a known face generally needs about 40 to 60 pixels per foot, assuming decent light and a front-facing angle. Identification of an unknown face runs closer to 80 to 100 pixels per foot. Reading a plate reliably in mixed lighting hovers around 120 to 150 pixels per foot if you are not using a dedicated LPR camera and IR.

These numbers shift with compression, motion blur, lighting, and angle. I treat them as starting points. On a well-lit reception desk, 60 ppf can be enough for identification because the subject is cooperative and near. In a dim warehouse, you may need 100 ppf and still be limited by noise.

How do you estimate ppf with a given lens? Use the horizontal field of view (HFOV). Take the camera’s horizontal resolution in pixels, divide by the width of the scene at the subject distance. The width depends on focal length and sensor size. Most manufacturers publish HFOV by focal length for their sensors. If they do not, an HFOV calculator gets you close enough.

A practical example: a 4 MP camera with 2560 horizontal pixels, paired with a 4 mm lens on a 1/3-inch sensor, yields roughly a 86 foot wide scene at 100 feet. That gives about 30 ppf at 100 feet. You can detect a person, maybe recognize clothing, but not identify a face. To get 80 ppf at 100 feet from the same camera, you need to narrow the field so the scene is only about 32 feet wide at that distance. That tends to land near 10 to 12 mm on a 1/3-inch sensor, depending on the exact optics.

Focal length and angle of view

Focal length decides how wide or narrow the camera sees. Short focal lengths, like 2.8 mm, give a wide angle, useful for room coverage or alleyways near the wall. Longer focal lengths, like 12 mm, 25 mm, or even 50 mm, compress the scene and reach farther. When we design commercial CCTV system design for large lots, we often mix a few long-lens channels for identification at choke points with wide-angle cameras for general activity.

Matching focal length to the distance you care about saves budget. I once audited a car lot with eight 2.8 mm domes scattered along a fence. They had acres of coverage and no way to identify a trespasser 60 feet out. We replaced two of those with 16 mm varifocal bullets positioned to cover the gate and a bottleneck between rows. The rest stayed wide for context. Police later used a frame of the suspect’s face and hoodie logo from one of the long-lens cameras to make an arrest. Same recorder, same network, different lens plan.

Fixed lenses are fine when the distance and scene are known. Varifocal lenses pay off in commissioning because you can tune the frame to the exact choke point. Motorized varifocal lenses add convenience during IP camera setup. Whether you choose wired vs wireless CCTV systems, focal length choices are the same. Wireless impacts bandwidth and reliability, not optics.

Depth of field, aperture, and the focus trap

Depth of field, or DOF, is the range in front of and behind the focus point that looks acceptably sharp. Three things influence DOF strongly: aperture (f-number), focal length, and the distance to the focus point. Smaller apertures (higher f-stop numbers) increase DOF. Shorter focal lengths increase DOF. Greater subject distance increases DOF. That sounds convenient until you meet low light.

Most security cameras open the iris at night to gather light. Open aperture means shallow DOF. If you pre-focused the camera on a door at 12 feet in daylight with the iris stopped down, you might find the image soft at night because the iris opened, and DOF shrank. Autofocus helps, but it can hunt under low illumination. I teach techs to focus after dusk or force the iris to open during the day by using neutral density film or a special installer trick in the camera menu that sets a fixed iris during focusing. If your camera has a varifocal lens with auto-iris, focus with the iris near its open state to get realistic DOF for night.

Another trap: long lenses magnify motion blur. At 25 mm and beyond, a small pan tilt vibration becomes visible, and a walking subject can blur at low shutter speeds. Depth of field and shutter speed are tied to light. If you must push the shutter to 1/60 or faster to arrest motion at distance, you will need more light or more gain. Plan power to illuminators accordingly.

Sensor size and its quiet influence

Sensor size changes how a given focal length behaves. A 4 mm lens on a 1/2.8-inch sensor gives a wider angle than 4 mm on a 1/3-inch https://anotepad.com/notes/xienh2s3 sensor. Larger sensors also handle low light better at the same resolution, which means you can stop down or raise shutter speed a bit without as much noise. In practice, mixing sensors across a site can make your calculations messy. When specifying a fleet, try to standardize on a sensor class for predictable fields of view.

The best cameras for businesses often pair a 1/1.8-inch or 1/1.2-inch sensor with 4K resolution. That combination gathers light well and lets you crop or use analytics reliably. But a big sensor needs lenses that cover the image circle, and long focal lengths get expensive. If you need a 25 mm reach on a large sensor, check lens availability before you lock the model. On budget projects, a quality 4 MP on a 1/2.7-inch sensor with a strong 2.8 to 12 mm varifocal is still a workhorse.

Identification distances by design

You can map identification distances across a property by combining ppf targets with focal length choices. Start with a plan drawing, mark the camera locations, and then mark the choke points where you want identification. These are not always the main entrances. They might be the path between a dumpster and a fence, the stairwell landing under a light fixture, or the counter spot where cash is handed over.

For example, at a small restaurant in Fremont, the owner wanted identification at the front door and the register. We chose a 2.8 mm lens at the back to cover seating and exits for context. At the door, we used an 8 to 32 mm varifocal, set near 20 mm, aimed at chest to face height, and focused at five feet. That gave roughly 100 ppf where patrons paused at the hostess stand. At the register, a 12 mm lens above the POS covered the cash exchange at two to three feet with over 150 ppf. The combination solved prior problems where wide cameras saw everything except the face we needed. If you search for security camera installation Fremont, you will find integrators who use similar choke point planning. It is a dependable method.

Outdoor vs indoor camera setup and how environments change optics

Indoors, distances are short and light is predictable. Wide angles are common, and DOF is friendly. Outdoors, distances stretch, light swings wildly, and heat shimmer can soften long shots in the afternoon. A 25 mm lens that looks tack sharp at 7 a.m. can lose crispness across a hot parking lot at 2 p.m. due to atmospheric distortion. If your site needs 100 ppf at 120 feet, consider a lower mounting height angled across a shorter diagonal rather than a high perch across a long slab of air. Mounting position is often a better lever than throwing longer glass at a problem.

Consider backlight. If your choke point is a glass door, a narrow lens can do everything right and still fail because the subject is in silhouette. Many IP cameras offer wide dynamic range modes that help, but only up to a point. I prefer to place the identification camera slightly to the side of the door, close to face height, with a tight lens and a small dedicated light source aimed toward the subject zone. That light can be gentle. Even 200 to 300 lux at the face area can transform identification at night.

For harsh coastal or dusty environments, domes collect film on the bubble that softens the image. Bullets with sunshields keep the optic clean longer. The lens choice does not change, but the housing choice protects it. That matters for long lenses, which suffer more from film and glare.

Aperture, f-number, and how it interacts with IR

Integrated IR is common on small domes and bullets. With IR, the camera can stop down a bit and gain DOF, but IR introduces focus shift with some lenses. The focal point in infrared can differ from visible light. Good IR-corrected lenses account for this, but not all do it well. If you use IR heavily at night for identification distances beyond 30 feet, pick models that specify IR-corrected optics and test for focus shift in the field. I have had scenes that looked sharp at dusk go soft under IR only. The fix was a small refocus at night and, in one case, swapping to a lens with better IR performance.

If you add external illuminators, aim them to avoid washing the lens directly. Flare reduces contrast, which hurts face detail long before it is obvious to the eye. With plates, IR angle and wavelength matter even more, but for general identification, even uniform illumination without flare is most of the battle.

Varifocal versus fixed, and when motorized pays off

Fixed lenses are cost-effective and rugged. If the design is precise and repeatable, fixed lenses prevent misadjustment. In a chain of retail stores, I prefer fixed focal lengths with a printed mounting diagram so every site matches. In custom sites with unknowns, a motorized varifocal lens saves labor. You can set framing and focus from a ladder once, then fine-tune from the NVR the next day after reviewing night footage. In a network video recorder setup, ensure the model and firmware allow remote back-focus or autofocus triggers. Budget 30 to 60 seconds for autofocus to settle in low light. Train staff not to keep clicking it during an incident.

Frame rates, shutter speed, and how they secretly change your lens plan

Lens choice assumes you can freeze motion. At 10 to 15 frames per second with a shutter near 1/60 to 1/120, faces and hands are crisp enough for identification in most scenes. If your NVR policy caps bitrates and forces lower shutter speeds at night, a long lens will betray you with motion blur. I have seen cameras configured to 1/30 and auto shutter, which drifted to 1/6 at night. On a 16 mm lens watching a gate, every face became a smear. The fix was simple: minimum shutter 1/60 at night, add light, reduce gain, adjust compression. Always check night recordings before signing off.

How resolution and compression play with optics

More pixels do not automatically mean more detail on target. A 4K camera with a very wide 2.8 mm lens might have fewer pixels on a face at 30 feet than a 4 MP camera with a 12 mm lens. If you need identification, prioritize the right focal length first, then choose resolution. Compression matters too. Heavily compressed streams can lose edge detail that you need for identification. In the IP camera setup guide that we give to new technicians, we set H.265 or H.264 with medium quantization, cap the GOP length to keep I-frames frequent enough, and avoid over-aggressive noise reduction. Test a moving face at the target distance and scrutinize a paused frame for stair-stepped edges and smearing. If it looks plastic, ease the compression.

Mapping lenses to common scenes

In reception areas, a 2.8 to 4 mm for context and an 8 to 12 mm for identification at the counter work well. In narrow hallways, 2.8 to 3.6 mm covers from door to door, and you can identify at close range without special planning because subjects pass near the lens. In fenced yards, a 12 to 25 mm at the gate outperforms a 2.8 mm that sees the entire fence line but never captures a face. For stairwells, place the lens where people slow down. A 6 to 8 mm often suffices inside because the geometry forces proximity.

Retail aisles are tricky. A long lens down an aisle captures faces at endcaps but gets blocked by displays and shoppers. I prefer overheads at 2.8 to 4 mm and a tight 12 mm near the exit to see the face when someone leaves. If you plan professional CCTV installation for a convenience store, put budget into that exit camera and light. You can solve half your investigations with that one channel.

Wired vs wireless CCTV systems, and what they change about lenses

Optics stay the same, but wireless links add constraints. High-resolution, long-lens streams with tighter compression need stable bandwidth and low retransmission. If you must use wireless for a long-lens identification camera, prioritize line of sight and use directional antennas with proper alignment. Reduce frame rate a touch rather than increasing compression. A sharp 12 fps stream beats a smeared 20 fps stream for identification. For critical choke-point cameras, I still favor wired runs even if the rest of the site uses wireless bridges for general coverage.

Commissioning checklist for identification-focused lenses

Use this short checklist at turn-up to make sure the lens is doing the job you designed it to do.

    Print or show a test target at the intended distance: a face with known features or a patterned chart. Confirm ppf by counting pixels across a known width. Focus at night or with the iris forced open. Verify no focus shift when IR turns on. Record a walking approach and a quick head turn. Pause frames and check eye detail and edge contrast. Review compression and shutter at night. Verify minimum shutter speed and light level. Adjust illuminators to avoid flare. Capture a control frame at the scene’s hottest and coldest times of day if outdoors. Check for shimmer or haze with long lenses.

Indoor and outdoor examples with numbers

At a mid-sized office lobby, we recently used a 5 MP camera with a motorized 2.8 to 13.5 mm lens. The main overview stayed at 2.8 mm. A second identical camera, set to 10 mm and aimed at the visitor registration tablet, delivered about 90 ppf at four feet. With 1/100 shutter and 300 lux overhead downlights, faces were crisp even with quick glances. The network video recorder setup reserved a higher bitrate for that channel, 6 Mbps versus 3 Mbps for the overview, to preserve edges in hair and eyes.

image

At a distribution gate, we chose a 4 MP bullet with a 25 mm fixed lens. The gate arm sat 65 feet from the lens. HFOV at that distance was roughly 20 feet, giving about 128 ppf. We added a 30-degree IR illuminator and set the camera to 1/120 minimum shutter. The result was reliable facial identification when drivers paused for the guard, and readable badges on lanyards under IR. A second camera with a 2.8 mm lens captured the wider scene for vehicle flow and incidents between trucks. The pair complemented each other, and the guard staff started relying on the tight camera footage during disputes.

When analytics and PTZ can replace, or complement, long glass

Auto-tracking PTZs can follow a person across a yard, but they miss the start of an incident and can be pointed the wrong way when something happens. I treat PTZs as supplements, not replacements, for fixed identification cameras. Use a fixed long lens to guarantee identification at a choke point. Use a PTZ to gather context after detection. If your budget is tight, analytics on fixed cameras, like line crossing or face detection, can trigger higher bitrates or snapshots on the identification camera to preserve detail when it matters.

Edge cases that challenge the rules

Snow scenes can fool exposure and IR, producing faces that are underexposed while the background glows. In that case, disable IR on the camera and use off-axis illumination. For high-glare lobbies with marble floors, polarized filters on lenses can reduce reflections, but they also cut light, narrowing DOF. Test before committing. At bars and music venues, colored lighting with strong reds or blues can reduce perceived resolution. A high-quality sensor and a slightly higher shutter speed keep detail usable. If you must go very long, beyond 50 mm, consider compact box cameras with CS-mount lens options and solid mounts. Tiny domes at that reach tend to wobble.

image

Tying lens choice into system design

Optics are one leg of the stool. The other two are storage and power. Higher pixel densities at tight fields often require higher bitrates. Make sure the recorder can handle the aggregate throughput. If you aim for 100 ppf at a busy entrance, you will end up with complex textures that demand bits. Storage needs rise accordingly. Power matters because external IR and motorized lenses draw more current than a basic fixed unit. On a PoE switch, leave headroom. Cameras that brown out at night when IR kicks in will ruin your identification plan.

If you are weighing best cameras for businesses, combine these factors: optical flexibility, low-light performance, compression efficiency, and integration with your NVR. Once you know the job each camera must do, choose the lens and sensor that achieve the required ppf at the planned distances, then size the rest of the system to support that output.

A note on choosing lenses during procurement

Datasheets do not always match real performance. When a project involves multiple identification-critical cameras, I order a single unit and test it on-site. I bring a tape measure, a focus chart, and a ladder. That two-hour test beats weeks of theoretical debate. If the client is local, like many of our security camera installation Fremont customers, I will stage a live demo at the gate or counter they care about. Confidence rises when they see their own scene solve correctly on-screen.

Putting it into practice on a new site

Walk the site and mark choke points where people must pass, pause, or present something. Decide the task at each: detect, recognize, identify, read. For each task, pick a ppf target that fits the light and behavior. Estimate focal lengths to hit those ppf numbers at the measured distances, accounting for your sensor size. Decide where you need varifocal flexibility. Plan illumination to support shutter speed and DOF. During IP camera setup, lock in compression that preserves edges, and during network video recorder setup, allocate bitrate and storage to your most critical channels. At night, refocus as needed and capture test clips that prove the system can do the job.

Done this way, lens choice is not guesswork. It is a set of trade-offs informed by distance, light, and purpose. The camera does not care whether it is in a living room, a corner store, or a 20-acre yard. The physics are the same. A thoughtful plan that ties depth of field and identification distance to the right focal length turns a collection of cameras into a system that produces evidence you can use.