PanelSimulator Academy

Video Surveillance, lesson 5 of 14

Light, low light and infrared

Lesson 2 showed that every picture starts with light. Most incidents happen when that light is bad: at night, or with the sun pouring in behind the person. A camera that is superb at noon can be worthless at midnight. This lesson explains how cameras cope with too little light and with too much contrast, and how to help them.

About 15 minutes. Read lesson 2 first.

One camera, three hard scenes

Pick a situation, then play or step through. The picture is what this lobby camera records.

what the camera records Light on the scene Camera mode Infrared lamp Wide dynamic range

The everyday picture

Walk out of a movie theater into bright afternoon sun. For a few seconds you can see nothing but glare. Walk back in and the aisle is pitch black until your eyes settle. Your eyes are remarkable, and even they can only handle one level of light at a time.

Now stand in a dim hallway and look at a friend standing in a sunny doorway. You see their outline and not their face. Your eyes have set themselves for the sunshine behind them.

A camera has both problems, only worse. It struggles when there is too little light, and it struggles when bright and dark sit side by side. Lesson 2 gave you the three exposure settings. This lesson is about what to do when those three are not enough.

Measuring light

The amount of light falling on a surface is measured in lux. An older unit, the foot-candle, is still used in United States lighting work. One foot-candle is about 10 lux. A light meter that reads lux costs little and belongs in the tool bag.

SceneRoughly how many lux
Direct sunlight30,000 to 100,000
Overcast day1,000 to 10,000
Office or shop interior300 to 500
Lit parking lot at night5 to 50
Residential street at night1 to 10
Full moon, clear skyAbout 0.1 to 0.3
Starlight, no moonAbout 0.001

Noon to starlight is a range of a hundred million to one. No fixed setting covers that, which is why night needs its own plan.

Camera data sheets give a minimum illumination, such as 0.01 lux. Treat it with care. Makers measure it in different ways, often with a slow shutter and maximum gain, and the picture at that level is usually noisy and useless for moving people. Compare cameras by looking at real night footage of a person walking.

How a camera sees at night

A camera sensor can see light that your eye cannot: infrared, just beyond red. By day this is a nuisance, because it spoils colors. So every day-and-night camera has a small filter, the IR cut filter, that blocks infrared in daytime.

When the light falls below a set level, the camera slides that filter out of the way with a soft click. Now the sensor uses every scrap of light, visible and infrared. The colors would be wrong, so the camera switches to black and white. This is night mode. Most cameras then switch on their own infrared lamps, a ring of small LEDs around the lens, and light the scene with a beam that people cannot see.

There are four ways to get a night picture. Each has its place.

MethodPictureGood forWatch out for
Existing lightingColorLit lots, lobbies, shop frontsLights on timers that go off at midnight
Low-light color cameraColor, with some grainStreets and lots with a little lightNeeds a big sensor and a wide iris, and still needs some light
Infrared lampsBlack and whiteUnlit areas, and places where visible light would annoy neighborsLimited reach, reflections, no color
White LED on the cameraColorDoorways and driveways, where a light also detersGlare and light spill onto neighbors

A fifth kind, the thermal camera, sees heat and needs no light at all. It shows a warm body as a bright shape. That makes it excellent for detecting a person along a fence at long range and useless for identifying one.

Check yourself

A witness says the thief wore a red jacket. The night recording, made with infrared, shows a light gray jacket. Why?

Infrared in practice

  • Two wavelengths. Most lamps work at 850 nanometers. They give the longest reach, and the LEDs show as a faint red glow if you look straight at them. Lamps at 940 nanometers have no visible glow, but sensors are less sensitive there, so the reach is noticeably shorter.
  • Reach. A data sheet may say "IR range 100 feet". That is the farthest distance at which something shows, under good conditions. Plan on useful detail at well under the stated figure, and test.
  • Beam and lens must match. A narrow beam with a wide lens gives a bright spot in the middle and black edges, like a flashlight in a cave. A wide beam with a long lens wastes most of the light.
  • Close objects burn out. A face three feet from the lamps turns plain white. Cameras with adjustable or "smart" infrared turn the lamps down when something is close.
  • Infrared bounces. A wall, a soffit or a gutter near the camera throws the beam straight back into the lens and fogs the picture. So do rain, spider webs and a dirty dome cover.
  • Shades change. Some dark fabrics look pale under infrared, and some dyes vanish. Do not describe clothing colors from an infrared recording.

How fast light fades

Light from a lamp spreads out as it travels. At twice the distance it covers four times the area, so each spot gets a quarter of the light. At three times the distance, a ninth. This is the inverse square law, and it is why infrared reach is so short.

Light at a distance

Start from a distance where you have seen the lamp give a good picture, then move the target.

of the light that reached the first spot
difference in stops
lamp power needed to match

The rule holds for any lamp that spreads its light, white or infrared. A stop, from lesson 2, is one halving. Two stops is the difference between a clean picture and a grainy one.

Bright and dark together

The span between the darkest and brightest things a camera can show in one picture is its dynamic range. A sunny doorway seen from inside a lobby exceeds it. The camera must choose: expose for the sunlight and the person becomes a black outline, or expose for the person and the doorway becomes a white hole.

Three features help, and you will find them in every camera menu.

  • Wide dynamic range, or WDR. The camera takes two or more exposures of each frame, a short one for the bright parts and a long one for the dark parts, and blends them. Data sheets rate it in decibels. A figure around 120 dB usually means this multi-exposure kind, often called true WDR. A cheaper "digital" WDR only brightens the shadows of a single exposure and does much less.
  • Backlight compensation. The camera exposes for the middle of the picture and lets the background burn out. Simple, and useful when only the person matters.
  • Highlight compensation. The camera masks or dims very bright spots such as headlights, so they do not darken everything else.

WDR has a price. Blending exposures can leave faint ghosting on fast movement and lowers contrast a little, so switch it on where the scene needs it and leave it off where it does not. And none of these beats moving the camera. If the window is behind the camera and not behind the person, the problem disappears.

Three examples

Simple: fog every night

A dome camera under a white porch roof gives a fine picture by day and a milky haze at night. The lens sits a few inches below the roof and is tilted up a little, so its infrared lamps light the white surface and the glow floods the lens.

Tilt the camera down until the roof is out of the picture, or lower it on a short bracket. Then clean the dome cover. The haze goes.

Medium: the black figure at the glass doors

A lobby camera faces the glass entrance from the back wall. From 9 a.m. to 3 p.m. everyone who walks in is a black outline against the street. The camera has WDR, switched off. Turning it on brings the faces back.

At 4 p.m. in winter the low sun shines straight through the doors and even WDR is beaten. The lasting fix is a second position: a camera beside the door, looking across the entrance with the glass at its side. Now the daylight falls on faces and not into the lens.

Advanced: color at night, by request

A car dealer wants night recordings in color, because police ask about the color of cars. The lot has pole lights and measures 20 lux under the poles and 2 lux between them. The cameras have small sensors and switch to black and white at dusk.

There are two parts to the answer. First, fit cameras made for low-light color, with larger sensors and wide irises, and set them to stay in color down to a lower level. Second, deal with the dark patches, because 2 lux is one tenth of 20, which is more than three stops less light. Extra fittings on the existing poles even out the lot. The dealer also learns that the lights must stay on all night. A timer that cuts them at midnight turns every camera back to black and white.

From the field

  • Go back after dark. A camera that was never checked at night has not been commissioned. Walk the scene and look at the recording.
  • Look for what is close to the lens. Eaves, gutters, sign edges, cables and leaves all bounce infrared. Clear them from the view.
  • Keep the dome cover clean and unscratched, and make sure the foam ring around the lens touches the cover. If it does not, the lamps leak light straight into the lens.
  • Brush away spider webs. Infrared lamps are warm and draw insects, and spiders follow. A web glows like a curtain at night.
  • Mount with the light, not against it. Before fixing the bracket, note where the sun and the brightest lamps are at each time of day.

Common mistakes

  • Believing the minimum illumination figure or the infrared range on a data sheet without testing.
  • Pointing a camera at a glass door or window with WDR off.
  • Relying on built-in infrared to light a scene far beyond its reach.
  • Reporting clothing or vehicle colors from a black and white infrared recording.
  • Leaving WDR on everywhere, including scenes with even light and fast movement.

Summary

  • Light is measured in lux. Day to night spans many millions to one.
  • At night a camera removes its IR cut filter, switches to black and white and usually turns on infrared lamps.
  • Light from a lamp falls to a quarter at twice the distance.
  • Infrared gives no color, burns out close objects and bounces off nearby surfaces.
  • WDR blends several exposures to show bright and dark areas together. Moving the camera out of the backlight is better still.

Exercises

Answer each one yourself first, then open the answer.

Exercise 1. Why does a camera switch to black and white when it removes its IR cut filter?

Show answer
With the filter out, infrared reaches the sensor along with visible light. The sensor cannot tell them apart, so the colors would be wrong. Black and white avoids false colors and lets the camera use all the light it receives.

Exercise 2. An infrared lamp gives a good picture of a person at 40 feet. How much of that light reaches a person at 120 feet?

Show answer
The distance is three times as great, so the light is one ninth, about 11 percent. That is a little more than three stops less. The person will be dark and grainy.

Exercise 3. A parking lot measures 2 foot-candles under its lights. About how many lux is that, and would you expect a color picture?

Show answer
About 20 lux. That is enough for a usable color picture from most current cameras, and a good one from a low-light model. Check the darkest spots between the poles as well, not only the brightest.

Exercise 4 (think, don't memorize). A homeowner's front door camera shows visitors' faces as white blobs at night, while the driveway behind them is black. What is happening, and what would you try?

Show answer
The visitor stands a couple of feet from the infrared lamps and is burned out, while the driveway is beyond their reach. That is the inverse square law at both ends. Try turning the infrared power down or enabling the smart infrared setting, and leave the porch light on so the camera can stay in color with even light. If the driveway matters, it needs its own light or its own camera.