LightingHow-to

Lighting for scratch detection on plated plastic parts

Set up dark-field side lighting for scratch detection on plated plastic parts: angles, distances, camera math, and a bench procedure that works.

LumaSpec Vision10 min read Share on LinkedIn

On this page 9 sections
  1. 01What lighting finds scratches on plated plastic fastest?
  2. 02Why do coaxial and dome lights wash scratches out?
  3. 03Where should the light sit, and at what angle?
  4. 04Which camera and lens numbers pair with dark-field lighting?
  5. 05How do I set it up on the bench?
  6. 06How do I keep fingerprints and room light from faking defects?
  7. 07When is a dome or coaxial light still right for plated plastic?
  8. 08Which checks do I run before ordering?
  9. 09Questions

An electroplated ABS part behaves like a chrome mirror: the flat plating returns your light exactly where it came from, and a scratch is the one feature that breaks the mirror. Pick the wrong light and the whole field saturates toward white while the defect you are paid to find vanishes into it.

This guide gives the lighting decision, the angles and distances to start from, the camera arithmetic that decides how small a scratch you can see, and a bench procedure you can finish in an afternoon. It is written for anyone setting up scratch detection on plated plastic parts — bezels, knobs, trim, switch caps — on a static station or a moving line.

What lighting finds scratches on plated plastic fastest?

Dark-field side lighting is the fastest working answer: aim the light so its rays graze the surface 15-20° above the plane, which puts the illumination 70-75° away from a vertical camera axis, and the plating mirrors that light past the lens while every scratch scatters light into it.

The law of reflection does the work. Light arriving at 15° leaves a mirror surface at 15°, travelling sideways across the station instead of up into the lens. A scratch is a tiny V-groove whose walls sit at every angle, so some wall always directs light up to the camera. The plated field reads near black and each scratch reads as a bright line.

A low-angle shadowless light delivers this from four sides at once, so scratch orientation stops mattering. The same recipe finds dents and pits: see Detecting dents and pits in metal surfaces with low-angle lighting. If parts travel past the camera, a bar-shaped low-angle light covers one direction of travel, as in Low angle bar lights for scratch detection on moving boards.

Why do coaxial and dome lights wash scratches out?

Coaxial and dome lights return the plating's specular reflection straight into the lens, so the flat field saturates and a scratch that scatters only a few percent of the incoming light disappears into it; for pure height defects on flat shiny plating, both are the wrong tool.

A coaxial light couples its LEDs through a beam splitter onto the camera axis, so flat plating acts as a mirror and sends the light straight back: the field climbs toward 255 grey. A dome surrounds the part with diffuse light from nearly every direction, which is exactly why curved parts look even — but on a flat chrome surface most of that light still arrives near the viewing axis and comes back the same way. The scratch has to fight a saturated background, and it loses. The physics, and when bright field wins instead, is laid out in Bright field vs dark field lighting: the law of reflection decides.

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.
Lighting Flat plating reads as A scratch reads as First choice for
Coaxial (bright field) Bright, near saturation Faint line on white Missing plating, engraved marks
Dome Even bright field Low contrast Curved parts, overall appearance
Low-angle dark field Near black Bright thin line Scratches, dents, pits

One station can still cover both defect families: strobe a dark-field shot and a coaxial shot in alternation, or use a combined dark-and-bright-field source, and judge each image with its own thresholds.

Where should the light sit, and at what angle?

Put the light exit 30-50 mm above the part plane, offset it so the rays leave 15-20° above the surface, and the specular reflection travels 70-75° away from the camera axis — far outside the acceptance cone of any normal lens.

How far off-axis is enough? A lens accepts light inside a cone whose half-angle follows its f-number:

half-angle = arctan(1 / (2 × f-number)) f/2.8 → arctan(1/5.6) = 10.1° f/4 → arctan(1/8.0) = 7.1° f/8 → arctan(1/16) = 3.6°

Even wide open at f/2.8, a reflection 70° off-axis misses the lens by 60°. The old shop habit of setting light and camera about 90° apart is simply the flat end of a 70-90° working band. Flatter gives a blacker field but fewer photons out of each scratch, so start at 15-20° above the surface and steepen only if the background grey climbs past about 20% of full scale.

Which camera and lens numbers pair with dark-field lighting?

Work backwards from the narrowest scratch you must catch: give it at least 2 pixels, keep the pixel scale at or under half the scratch width, and everything else follows. The example below lands on a 0.045 mm pixel, a 110 mm field of view and a 12 mm lens.

Take a plated bezel 100 mm wide and a 5 MP camera with 2448 × 2048 pixels at a 3.45 µm pitch, so the sensor is 2448 × 0.00345 mm = 8.45 mm wide. These are example inputs, not a required spec.

  1. Field of view: 100 mm × 1.10 margin = 110 mm.
  2. Pixel scale: 110 mm ÷ 2448 px = 0.045 mm/px, so a 0.1 mm scratch spans 2.2 px.
  3. Magnification: m = 8.45 ÷ 110 = 0.0768.
  4. Lens at a 150 mm working distance: f = 150 × 0.0768 ÷ (1 + 0.0768) = 10.7 mm, so order 12 mm.
  5. Working distance with the 12 mm lens: WD = 12 × (1 + 0.0768) ÷ 0.0768 = 168 mm.
m = sensor width / FOV f = WD × m / (1 + m) WD = f × (1 + m) / m

The lens focal length calculator runs the same numbers in one step, and the calculator below links straight to matching lenses.

Lens focal length, field of view and working distance
Units
Solve for
Focal length
– mm
Field of view
– mm
Working distance
– mm
Magnification
– x
Angle of view
– °
Pixel on the part
– mm

Thin-lens model: m = sensor width / field of view, f = WD × m / (1 + m). Accurate to a few percent above about 150 mm; check the lens's minimum object distance.

Find lenses with this focal length Open the full calculator

How do I set it up on the bench?

Eight bench steps take you from an empty plate to a locked recipe: mount the camera square, fit the low-angle light at 15-20° above the surface, strobe through a controller, then tune exposure until the field reads near black and a known scratch reads bright.

  1. Mount the camera square to the part plane at the working distance from the example above — 168 mm.
  2. Offset the low-angle light so its exit sits about 40 mm above the part and its rays graze at 15-20° above the surface.
  3. Feed the light from a 24 V supply through a light controller and start at half output.
  4. Set exposure so the flat field reads 10-20% of full scale and a known scratch peaks at 60-80%.
  5. Fire the light pulse inside the exposure window in strobe mode, so room light never adds to the image.
  6. Shroud the station — enclosure curtains or a simple matte-black tunnel around the field.
  7. Run three good parts and three scratched parts; confirm the background sits within ±5 grey levels and scratch contrast stays above 50 grey levels.
  8. Rotate a scratched part in 90° steps; a low-angle ring should hold contrast through all four orientations.

A low-angle shadowless light does this from four sides at once, so part orientation stops mattering. The LS-SDL-0067 is a 113 mm low-angle shadowless light that runs on 24 V.

Shadowless lights113 mm Low angle shadowless light (LS-SDL-0067)LS-SDL-0067
Size
100-200 mm
Voltage
24 V
$429.00View partBuild a system with it

Flat, square and ring shadowless bodies cover small bezels through panel-size trim:

Shadowless lights150 x 150 mm Flat shadowless light, 620 nm (LS-SDL-0053)LS-SDL-0053
Size
100-200 mm
Voltage
24 V
$589.00View part
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
Shadowless lights184 mm Ring shadowless light (LS-SDL-0106)LS-SDL-0106
Size
100-200 mm
Voltage
24 V
$559.00View part

How do I keep fingerprints and room light from faking defects?

Fingerprints and room light fool dark-field checks too, so shroud the station, handle parts with gloves, and separate thin bright lines from soft oil blobs in software before you count a defect.

Skin oil scatters grazing light exactly like a scratch wall does, so a greasy bezel produces soft bright smears that a naive blob counter calls defects. Gloves from the plating line onward remove most of it. The shroud matters because a fluorescent tube at a grazing angle is a second dark-field source, and strobing the LED keeps mains flicker from beating against the exposure.

In software, run a line-shaped filter before counting: a scratch is long and thin with high gradient across it, an oil smear is wide and soft. Distinguishing scratches from dust with lighting covers the lighting side, and Scratch defect detection with lighting and dynamic thresholding the threshold logic.

An infrared band at 850 nm or 940 nm also sees through thin oil films better than visible light does.

When is a dome or coaxial light still right for plated plastic?

A dome or a coaxial light is still the right tool when the defect you chase changes reflectance instead of height: missing plating, engraved or recessed marks, or a curved part whose overall appearance you must judge evenly.

Missing plating is a reflectance change, so bright field is exactly right: the bare plastic where chrome peeled off reads dark against the mirror. Engraved or recessed marks behave the same way, and a coaxial light delivers illumination straight down the viewing axis to make them pop — the set-up is described in Coaxial lighting for engraved characters in recessed metal parts. For that job, the LS-CXL-0227 is a 50 x 50 mm blue coaxial light on 24 V.

Coaxial lightsCoaxial light, 50 x 50 mm, Blue (LS-CXL-0227)LS-CXL-0227
Size
50-100 mm
Voltage
24 V
$219.00View partBuild a system with it

Curved plated parts are the dome's home ground: it wraps even light around a knob or handle so the whole surface is judged at once, which Dome lights for shiny, curved and wrinkled parts covers in depth. Watch for the dark spot the camera hole casts at the centre of a dome image; the fix is in Dark spot from the camera hole in dome lights: how to fix it.

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.

The LS-DOM-0085 provides a 116 mm emitting area inside a 166 mm outer dome.

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 partBuild a system with it

Which checks do I run before ordering?

Before you order anything, check four things on paper: the light exit covers the part diagonal, the rays clear the fixture at your chosen angle, the pixel scale halves the narrowest scratch, and the station can be shrouded from room light.

Light

  • Exit size at least the part diagonal, so grazing light reaches the far corner and not just the centre.
  • 24 V feed from a controller output, so you can strobe and set output level.
  • Colour matched to the camera's strongest response band.

Geometry

  • Rays 70-90° away from the camera axis, starting at 15-20° above the surface.
  • Fixture lips below the light path and matte black.

Camera and lens

  • Pixel scale at most half the narrowest scratch width — 0.045 mm/px in the example.
  • Field of view at least 1.1 × the part width.

Environment

  • Shroud or tunnel so room light cannot graze in.
  • Vertical room for the light: 30-50 mm above the part in the example geometry.

When the list is filled in, the shadowless lights category holds the low-angle bodies, the lights finder filters them by size and colour, and the light configurator walks the rest of the chain. For a mixed defect set, budget a dark-field and a coaxial source from day one — or bring the part callouts to the contact page and we will spec the pair with you. More lighting recipes are collected on the lighting topic page.

Questions

Does LED colour matter for scratches on chrome-look plastic?

Not for finding the scratch: scattering is geometry, so white, red, green and blue all work on neutral plating. Choose for the rest of the job — white when a colour camera also judges overall appearance, blue when the plating carries a warm tint and you want the defect on a cooler background, red when you pair the LED with a matching bandpass filter to cut stray visible light.

What changes when the plated parts move on a conveyor?

Motion blur must stay under one pixel, which sets the exposure: exposure time ≤ pixel size ÷ belt speed. At 0.045 mm per pixel and a 100 mm/s belt that is 0.045 ÷ 100 = 0.00045 s, or 0.45 ms. Strobe the LED through the controller so the pulse lasts only that long, and cover the field along the travel direction — a long bar or two staggered rings replace a single ring.

Can one station catch scratches and missing plating together?

Yes, with two images per part. Strobe a low-angle dark-field exposure first, then a coaxial bright-field exposure milliseconds later, and run separate checks on each frame — geometry defects on the dark image, reflectance defects on the bright one. Combined dark-and-bright-field sources that merge both illumination paths in one shot also exist, and they save cycle time at the cost of a more specialized light.

Why does a fingerprint count as a defect in dark field too?

The same physics lights it: the ridges of an oil film scatter grazing light toward the camera just as a scratch wall does. The shapes differ — a fingerprint is a wide swirl of soft blobs, a scratch a thin line — so classify on shape, not brightness alone. Gloves on the line and an infrared band, which sees through thin oil films better than visible light, remove most of the problem before software runs.

Do I need a light controller for a 24 V shadowless light?

On a static bench a plain 24 V supply works and the bench steps still apply. A controller earns its place the moment you strobe, sequence two lights, or need short bright pulses for a moving line or a fast shutter. It also lets you drop output level for very reflective parts instead of stretching exposure until ambient light shows. Every shadowless light in the category runs on 24 V.