VISIONLIGHTINGSOLUTIONS
Test on Sample

Brightfield vs Darkfield Lighting: Which to Choose?

The exact same scratch can appear as a bright line on a dark background, or a dark line on a bright background β€” the difference is entirely the lighting angle, not the defect itself.

The Physical Problem

A scratch, engraving or embossed mark is a small, local discontinuity in a surface's angle relative to the surrounding flat area. A single, arbitrarily chosen lighting angle often fails specifically on this class of defect: the same discontinuity that reflects light one way toward the camera at one lighting angle reflects it a completely different way β€” or not at all β€” the moment the angle changes, and choosing the wrong one can hide the very defect the inspection is meant to find.

The Optical Solution

This is exactly the distinction between brightfield and darkfield illumination, a well-established principle from optics and microscopy that applies directly to machine vision. In brightfield lighting, the source is positioned so its light reflects straight back into the camera off the flat, undamaged surface β€” the image is bright by default, and a scratch or defect that scatters that light away from the lens appears as a dark mark against it. In darkfield lighting, the source instead sits at a grazing, oblique angle chosen so that specular reflection off the flat surface never reaches the lens at all β€” the image is dark by default, and only a raised edge, scratch or engraving that happens to scatter light back toward the lens at that specific angle appears as a bright mark against the dark field. Brightfield suits flat, mirror-like surfaces best viewed on-axis (a job for coaxial lighting); darkfield suits surface-relief defects like scratches and embossing, and is typically achieved with a bar or dome light mounted at a low, grazing angle instead of straight on.

BrightfieldLightDarkfieldDefectLightReflection misses the lens

Brightfield: flat areas reflect straight into the lens. Darkfield: only a defect scatters light toward it.

Wiring & Integration Recommendations

Whether you mount the source at direct incidence (brightfield) or a grazing angle (darkfield), the wiring stays identical: the standard M12 pinout doesn't depend on mounting angle. It's the mechanical precision of that angle, far more than the electrical wiring, that determines whether a darkfield setup succeeds.

Not Sure About the Optical Result?

Borrow a demo kit to test on your own bench, or send us a sample of your part for a free contrast analysis in our lab.

Test on Sample or Borrow Equipment

Ask an Application Engineer

Describe your inspection challenge and one of our engineers will recommend the right optical approach.

By submitting this form, you agree that your data will be processed to respond to your industrial inquiry.

Send by direct email instead

Recommended Lighting Formats

Integration Tools

Application Notes & Optical Challenge Resolution

Three engineering application notes showing how the right optical principle β€” not a different camera or software β€” resolves the inspection challenge.

Industrial Context

Food & Beverage / Packaging

Optical Problem

Saturating glare on glossy plastic film during seal inspection.

Solution & Geometry

630nm Diffuse Dome Lighting (omnidirectional light).

Physical Result

Elimination of the specular hot spot and light homogeneity above 90%.

Test on your own parts β†’

Industrial Context

Pharmaceutical / Vials

Optical Problem

Liquid fill-level inspection through an opaque amber glass vial.

Solution & Geometry

850nm Infrared Backlight, transmitted through the tinted glass.

Physical Result

Optimal transmittance through the liquid, clean contrast on the meniscus.

Test on your own parts β†’

Industrial Context

Metalworking / Automotive

Optical Problem

Reading a laser-marked Data Matrix (DPM) code on a machined metal surface.

Solution & Geometry

Darkfield Grazing Light + Crossed Polarization.

Physical Result

Cancellation of directional glare, clean separation of the code's micro-relief.

Test on your own parts β†’

Application notes based on real physical and optical principles β€” exact outcomes depend on your configuration and are validated during a lab sample test.