Why optical properties are so critical
The way a feature reflects, scatters, absorbs, or transmits light directly determines whether it appears as contrast in the image or gets lost in noise or reflections.
Especially AI models are ruthlessly honest here: What is not cleanly present as a signal in the image cannot be reliably distinguished by the model either.

At their core, features and substrate materials can be roughly divided into the following classes:
- Crack/edge structures on smooth, often shiny surfaces
- Residues, contamination, and coatings on reflective or painted parts
- Embossed, raised, or recessed structures (engravings, scribe marks)
- Transmission features in transparent or translucent materials
- Low-contrast structures on matte, diffusely reflecting surfaces
For each of these classes, there are typical lighting concepts that are well-founded in physics.

Cracks and scratches: Dark field and low angle
The principle: The component is illuminated with a very shallow angle of incidence; the majority of the light is reflected away from the camera by the smooth surface, making it appear nearly dark.
Anomalies such as scratches, dents, or particles disrupt the reflection path, scatter light toward the camera, and thus appear bright against a dark background.
Typical applications:
- Scratch detection on metal surfaces and hard disks
- Detection of tool marks, burrs, impressions
- Detection of particles, dust, fingerprints on polished surfaces
Geometry is important here:
- Sehr geringer Einfallswinkel (oft <10°),
- short working distances (typically a few millimeters to a few centimeters),
- mechanically stable mounting, as even minor angle changes strongly influence the contrast.

Residues on glossy surfaces: Diffuse vs. Coaxial
Residues, films, or coatings on reflective or painted surfaces behave differently in optical terms than sharp-edged cracks. The key here is often to control the specular background reflection in order to make the residues visible as a change in brightness or texture.
Two typical approaches:
Diffuse lighting (e.g., dome/cup light, tubelight)
-
- Produces very uniform illumination, reducing harsh reflections and shadows.
- Well-suited for slightly curved, glossy surfaces (e.g., body panels, plastic covers) where locally altered reflections caused by residues become visible against an otherwise homogeneous image.
Coaxial (on-axis) lighting
-
- The light is coupled in along the optical axis via a beam splitter and directed perpendicularly onto the surface.
- Smooth, reflective surfaces direct the light straight back into the camera, appearing uniformly bright. Surface defects (residues, texture, microscopic roughness) alter the reflection and create contrast.
- Particularly useful for planar, highly reflective surfaces such as wafers, metallized films, or glass.

Example: Soot or oil films on a highly polished component can often be imaged using a diffuse dome light so that the base surface appears uniform, while the film areas show a slightly different brightness or texture.
Coaxial light, on the other hand, is helpful when the surface is nominally "perfectly" reflective and even minor angle changes or residues visibly alter the directional reflection.
Embossed and topographical features
For engravings, scribe marks, embossed codes, or raised structures, two questions arise:
- Should the edge/topography be emphasized primarily?
- Or is the readability of the code (e.g., 2D code, laser marking) the main priority?
Dark field ring lights are excellent for highlighting the edges of engravings or embossed structures. Due to the shallow angle of incidence, the edges are accentuated as bright lines while the background remains dark – ideal for detecting scribe marks on wafers or embossed numbers on metal parts.
Conversely, if contrast between the marking and the background is the main requirement (e.g., for laser-etched codes), the following can be useful:
- Brightfield illumination
- or coaxial systems
to translate the varying roughness or changes in reflection behavior into brightness contrast.

Transparent and translucent features
Transmission plays a dominant role in transparent or translucent materials (glass, films, plastics, pharmaceutical packaging).
Typical examples:
- Inclusions, bubbles, or scratches in glass or plastic
- Misalignment or thickness variations in films
- Liquid levels, particles, or air bubbles in transparent containers
This is where other types of lighting come into play:
- Backlight / Transmitted Light: Features become visible as absorption or refraction artifacts, and contours appear sharp against a high contrast.
- Structured lighting (e.g., line grids): Distortion of the pattern at defects or thickness variations can be used for evaluation and 3D reconstruction.
- Coaxial light for translucent materials: Reduces the contribution of volume scattering and emphasizes the surface, making fine surface structures or slight topography more recognizable.
Particularly in combination with AI, subtle patterns (e.g., haze, inhomogeneities) can be detected here that are classically difficult to threshold unambiguously – though a stably reproducible lighting setup remains a prerequisite.

Matte, diffuse surfaces and weak contrasts
With highly diffuse, matte surfaces, specular reflection is low, and the brightness distribution is primarily determined by local reflectance levels. The challenges here are:
- very low contrasts between the feature and the base material,
- texture noise (e.g., cast structures, matte coatings).
Suitable options for such cases include:
- Homogeneous brightfield area lights with careful alignment to maximize global contrast.
- Polarization filters on lighting and optics to attenuate residual reflections and suppress distracting glare.
- Depending on the geometry, gentle angled lighting to subtly translate the surface relief into brightness gradients without falling into an extreme darkfield.
A typical example is the detection of slightly discolored or otherwise altered areas on a matte, structured surface (e.g., powder coating).
Here, the goal is less about highlighting hard edges and more about maximizing the global SNR for subtle grayscale differences – an area where AI models can play to their strengths, provided the lighting layout minimizes environmental variability.