LightingTroubleshooting

Lighting for glossy packaging inspection: stop the glare

Glossy packaging inspection needs diffuse lighting: swap the ring or coaxial light for a large source - dome, shadowless or polarized panel - and strobe it.

LumaSpec Vision11 min read Share on LinkedIn

On this page 9 sections
  1. 01Why a varnished carton glints from every angle
  2. 02Size the diffuse source before you order it
  3. 03Fix 1: wrap the carton in a dome light
  4. 04Fix 2: a flat shadowless light for flat faces
  5. 05Fix 3: crossed polarizers for foil and mirror varnish
  6. 06Strobe the light and cap the exposure
  7. 07When diffuse is the wrong answer
  8. 08Bench order and the decision
  9. 09Questions

A varnished, multicolor carton glints from every angle: tilt the box a few degrees and the hot spot jumps to another panel, so no single ring, spot or coaxial position clears the image. The mechanism is one mirror law, and the fix is one family: replace small directional emission with a large-area diffuse source, then control what the lens collects. This guide gives you the glint geometry behind the glare, sizing arithmetic for dome and flat diffuse lights, a polarizer light budget, and a strobe calculation for a moving belt. The fixes, in the order we reach for them on the bench: a dome light for curved or multi-panel cartons, a flat shadowless light for flat faces, crossed polarizers for foil and mirror varnish, then strobe and ambient control.

Why a varnished carton glints from every angle

A glossy varnish is a mirror. The law of reflection that separates bright field from dark field sends the camera's own direction straight back from every facet, so each tilted panel paints one bright lobe, and the lobe direction sits at twice the panel tilt measured from the camera axis. A folded carton carries dozens of different panel normals, which is why some panel glints at every setting.

Each source you tried failed for its own geometric reason:

  • A ring light emits from a small area at one elevation. Only panels whose normals bisect the camera-to-ring angle mirror it into the lens, so you get a glare stripe that moves as the box rotates.
  • A coaxial light sits on the camera axis, so flat facets of varnish mirror it straight back into the lens: a full-field burn.
  • A small dome mounted close to a tall carton loses part of its emission cone to the curved wall, and what reaches the part behaves like a narrow ring. The dome concept was right; the size and mounting height were not.

If a blue ring looked best in early trials, that was ink contrast, not glare reduction: blue inks stay bright under blue light while red and yellow inks darken, so the artwork separates even though the lobe is unchanged. Rank the causes in this order when you troubleshoot:

  1. A directional source (ring, spot, coaxial) on a multi-panel mirror target.
  2. A diffuse source that is undersized or mounted too close, so its angle span is truncated.
  3. Metalized foil or a polarization-keeping varnish that survives diffuse light alone.
  4. Room light and motion smear misread as glare, collected by the long exposure a weak light forces.

Size the diffuse source before you order it

Two numbers size the light: the glint angle span and the part outline. Coverage comes first. A face tilted 20° from flat mirrors the vertical camera direction to 2 × 20° = 40° off axis, so the emitting surface must wrap that span or those facets see black and print contrast collapses at the folds. Dome lights wrap roughly 0-90° of elevation. A flat panel covers about ±45° when its width is twice the inspection window at the same mounting height, which is the sizing rule for flat sources.

Emitting area comes second, and a starting rule of twice the carton's largest dimension covers the three things that eat margin: the camera hole cut into the middle of the emitting surface, the clearance that keeps folded panels off the walls, and the grazing facets near the field edge. Work the rule on a 60 mm carton: 2 × 60 mm = 120 mm of emitting area. A Ø116 mm emitting surface sits just under that target; the next class up, a 194 mm outer diameter, clears it with room to spare. Height matters as much as diameter on a tall carton, because the same 2θ rule pushes upper-panel glint directions toward the top of the cavity.

Fix 1: wrap the carton in a dome light

A dome is a diffuse cavity that emits inward across roughly a half-hemisphere. Every glint direction on a folded carton lands inside that span, so the mirror image dissolves into a faint even background and the inks carry the contrast. Mount the carton near the vertical center of the cavity and keep every panel clear of the wall; a panel leaning against the glass loses its grazing light and goes dark.

How a dome light works LEDs at the rim light the white inner surface of the dome, which lights the part evenly from almost every direction. The camera looks through a hole at the top; on flat mirror-like areas the hole reflects as a dark spot.Cameradiffuse inner surfacelights the part from every sideLED ringcamera holecurved or wrinkled part; dark spot where the hole reflects
How a dome light works. LEDs at the rim light the white inner surface of the dome, which lights the part evenly from almost every direction. The camera looks through a hole at the top; on flat mirror-like areas the hole reflects as a dark spot.

One direction stays dark: the lens cone cut into the dome. Oversizing thins the shadow, offset mounting moves it off the print, and a second diffuse channel fills it; the fixes for the dark spot from a dome's camera hole cover all three. For curved, wrinkled or multi-panel parts beyond cartons, the guide to dome lights for shiny, curved and wrinkled parts goes deeper.

For the 60 mm carton from the sizing section, the rule asks for a 120 mm emitting area. The LS-DOM-0085 provides a Ø116 mm emitting area inside a Ø166 mm body. The LS-DOM-0062 provides a 194 mm outer diameter for cartons with deeper folds or taller walls. Both run from 24 V.

Dome lightsØ166 mm dome light, Ø116 mm emitting area (LS-DOM-0085)LS-DOM-0085
Size
100-200 mm
Voltage
24 V
from $409.00View part
Dome lights3.0 dome light, outer diameter 194 mm (LS-DOM-0062)LS-DOM-0062
Size
100-200 mm
Voltage
24 V
$819.00View part

Keep white light for multicolor print on a monochrome camera. The category also lists 850 nm and 940 nm infrared variants for the day one ink must vanish or the line runs under bright visible ambient.

Fix 2: a flat shadowless light for flat faces

When one flat face carries the print and headroom is short, flat diffuse beats a dome: the same spreading effect at a fraction of the height. The shadowless lights family covers flat domes with a central camera window, square panels and arches for long packs. Keep the panel about twice the window width and mount it as close as the folding hardware allows; that ratio is what buys the ±45° span.

The LS-FDL-0002-L8 flat dome lights a 251.5 x 251.5 mm area. The LS-SDL-0006 square shadowless light measures 120 x 120 x 30 mm.

Shadowless lightsFlat dome light, 251.5 x 251.5 mm lit area (LS-FDL-0002-L8)LS-FDL-0002-L8
Size
200-400 mm
Voltage
24 V
from $1,659.00 · quotedView and quote
Shadowless lightsSquare shadowless light, 120 x 120 x 30 mm (LS-SDL-0006)LS-SDL-0006
Size
100-200 mm
Voltage
24 V
$449.00View part

That 30 mm profile slides under a folding head where a dome cannot. Elongated packs want an arch instead: the LS-SDL-0026 arch shadowless light opens a 204 x 110 mm window.

Shadowless lights204 x 110 mm Arch shadowless light (LS-SDL-0026)LS-SDL-0026
Size
200-400 mm
Voltage
24 V
$879.00View partBuild a system with it
Source Emission Wins on Fails on
Ring, spot, coaxial small area, one elevation matte, flat targets every tilted facet mirrors a hot spot
Dome wraps about 0-90° curved, folded, multi-panel parts camera-hole shadow; needs height
Flat dome / shadowless panel wide panel, about ±45° when sized 2:1 flat faces, low headroom steep tilts at the field edge
Diffuse panel + crossed polarizers wide and polarization-controlled metalized foil, mirror varnish about a 5x cut in usable light
Low-angle dark field grazing, off-axis scratches, dents, beads in the coating the print itself goes dark

Fix 3: crossed polarizers for foil and mirror varnish

Some cartons carry metalized foil or a varnish so mirror-flat that even a large diffuse source leaves a soft lobe on the critical panel. Polarization finishes the job. Put a linear polarizing film over the light and a crossed analyzer on the lens: mirror reflection keeps its polarization and is blocked, while paper and ink scattering depolarizes the light and passes. The cross-polarizer arrangement on lens and light shows the mounting and tuning steps.

Budget the light before you commit. A typical polarizing film passes about 35-45% of unpolarized light, and depolarized target light splits evenly between the axes, so the crossed analyzer passes roughly half of what survives: 0.40 × 0.50 = 0.20, about a 5x cut in usable signal. Specular energy falls by far more than that; the asymmetry is the entire point. Buy the print signal back with a brighter source, a shorter working distance or a strobe pulse, and match the film to the wavelength you run, because polarizing film performance shifts with wavelength.

Strobe the light and cap the exposure

Diffuse cavities waste most of their light: only a narrow cone from each emitting point reaches the lens. On a moving belt that inefficiency pushes exposure times up until the print smears. Strobe instead: a short, high-current pulse with the camera exposure clipped to it.

pixel size = field of view / pixels across allowed blur = 0.5 x pixel size t_max = allowed blur / belt speed

Worked example: a 120 mm window over 2448 pixels gives 120 mm / 2448 = 0.049 mm per pixel, so the blur budget is 0.5 × 0.049 mm = 0.025 mm. At a belt speed of 300 mm/s, t_max = 0.025 mm ÷ 300 mm/s = 0.000083 s, about 83 µs. Fire an 80 µs pulse and the smear is 300 mm/s × 0.000080 s = 0.024 mm, inside budget. Switch the camera to manual exposure before you trust the number; the maximum auto exposure cap article explains how auto exposure quietly re-extends itself on a belt.

Camera resolution for the smallest feature
Units
Pixels needed
–
Sensor size
– MP
Smallest sensor that fits
–
Pixel on the part
– mm
Pixels across the feature, that sensor
–

Pixels needed = field / feature × pixels per feature on each axis (field incl. margin). The lens must resolve the pixels too: Nyquist = 1000 / (2 × pixel µm) lp/mm.

Find cameras with enough pixels Open the full calculator

A strobe cleans up ambient light too, because the sensor collects room light only during the pulse: 5 ms ÷ 83 µs = 60, so a strobed frame gathers about 60x less ambient than a 5 ms continuous exposure. The same discipline carries to robot cells, as the ambient light control for pick-and-place vision article shows.

Drive the pulse from a strobe-capable controller: the LS-CTL-0070 is a 4-channel, 200 W digital control box with RS232. The light controllers category and the controller finder filter strobe models by channel count and output type.

Light controllersDigital control box, 4 ch, 200 W, RS232 (LS-CTL-0070)LS-CTL-0070
Output
Constant voltage 24 V
Channels
4 channels
Control
Digital
Feature
Strobe
$549.00View partBuild a system with it

Keep the pulse within the light's rated duty cycle. Peak current buys brightness; average current heats the LEDs.

When diffuse is the wrong answer

Diffuse light inspects print. If the target is the coating itself, such as scratches in the varnish, dents in the foil or glue beads at the seam, diffuse lighting evens the surface out and hides exactly what you hunt. Low-angle dark field inverts the result: grazing light turns every topology break into a bright line on a black field. The multi-angle sequential method for scratches on glossy parts and the grazing-light versus dome comparison for engraved text on metal show the technique on comparable surfaces.

Bright-field and dark-field lighting geometry High-angle light reflects off the flat surface straight into the lens, so the surface looks bright. Low-angle light reflects away from the lens, so the surface looks dark and only edges or scratches scatter light upward.flat part with a scratchCamerabright field(high angle)dark field (low angle)flat areas reflect away;only the scratch sends light up
Bright-field and dark-field lighting geometry. High-angle light reflects off the flat surface straight into the lens, so the surface looks bright. Low-angle light reflects away from the lens, so the surface looks dark and only edges or scratches scatter light upward.

Decide by defect type first and source second: print, OCV and code work go diffuse; topology work goes grazing.

Bench order and the decision

Run the bench in this order and stop when the image holds:

  1. Tilt test: rock the carton ±20° under the current light and mark where lobes cross the lens. Sweeping lobes confirm a directional source.
  2. Fit the largest diffuse source the station allows: a dome for folded or curved cartons, a flat shadowless light for one printed face.
  3. If a soft lobe survives on foil or varnish, add crossed polarizers and re-budget for the 5x light cut.
  4. Strobe at the pulse width the belt speed allows and set manual exposure to match.
  5. Only now judge wavelength: white for multicolor print, a single color or infrared channel to drop one ink.

The decisions by case:

  • Folded or curved carton, print inspection: a dome sized to at least twice the largest dimension, strobed, white light.
  • Flat face, wide window, headroom under about 100 mm: a flat shadowless light at twice the window width.
  • Metalized foil or mirror varnish: flat diffuse plus crossed polarizers plus a strobe.
  • Scratches, dents or glue in the coating: low-angle dark field with the diffuse source off.

The light finder filters both light categories by emitting size and wavelength, and the configurator at the light step pairs the light with camera and lens; for a belted line start the configurator at the controller step. If the geometry is unusual, send the carton's largest dimension, folding depth and line speed through the contact page and we will size the source with you.

Questions

Why did the blue ring light look best in early trials?

Wavelength changed ink contrast, not the glint: under blue light, cyan and blue inks reflect strongly and stay bright while red and yellow inks absorb and go dark, so the artwork separates and the image reads as improved. Keep white light on a monochrome camera for multicolor print; reserve a single color channel for dropping one ink, and infrared for shape-only work where print contrast does not matter.

How large should a dome be for a given carton?

Start from an emitting area of about twice the carton's largest dimension, roughly 120 mm of emitting area for a 60 mm carton, then add a size class when the carton is tall rather than wide, because upper panels push glint directions toward the top of the cavity. Two more upsizing triggers: a large lens opening, which grows the camera hole cut into the emitting surface, and line vibration, which widens the effective tilt envelope.

Can I keep the ring light and just add a diffuser sheet?

It is a fair first test because it needs only a film. A diffuser widens each LED's emission cone, but the source stays small and at one elevation, so a panel tilted toward the ring still mirrors it; you soften the spot rather than remove it. Run the tilt test with the film fitted: if lobes still sweep across the lens, move the budget to a dome or a flat shadowless light.

Does the station still need an enclosure against room light?

Not always. A strobed light with the camera exposure capped at the pulse width rejects most room light: an 83 µs pulse collects about 60x less ambient energy than a 5 ms continuous exposure. Enclose the station when you must run continuous light for color-critical work, when the conveyor carries shiny neighbors that catch stray pulses, or when the acceptance test specifies an ambient rejection ratio.

When does a coaxial light win on glossy packaging?

Coaxial illumination wins on flat, mirror-flat targets where the feature sits in or under the surface: embossed or debossed marks, film windows, and voids under a clear varnish. On a folded carton it mirror-finishes the varnish straight back into the lens as a full-field burn, which is exactly what you saw. If one carton face is genuinely flat and the feature is recessed, try a diffuse coaxial before a dome.