Skip to content

Application

Surface inspection

Detection of scratches, embossing and surface defects with line scan, dark field and high-speed cameras.

Surface inspection

Scratches, dents, embossing, orange-peel, micro-pitting and tool marks share an awkward property: they are mostly invisible under the kind of even, bright illumination that suits print and assembly checks. The defect is a change in surface relief or local reflectance of a few microns to a fraction of a millimetre, and on a flat, specular or semi-glossy part it simply blends into the background until the light hits it at the right angle.

Solving surface inspection is therefore less about resolution alone and more about controlling the geometry of light and the way the part is presented to the sensor. Get the illumination angle and the camera architecture right and a defect that was statistically undetectable becomes a high-contrast feature any threshold or model can catch. This page frames the optical and acquisition decisions that make surface inspection robust, and explains why line scan cameras, dark-field lighting and high-speed imaging are the hardware that consistently delivers.

Why surface defects are hard to image

The core difficulty is contrast. A scratch is not a different colour from the material around it; it is a region where the surface normal has been disturbed, so it scatters or redirects light differently from the intact surface. Under diffuse, on-axis (bright-field) light, both the defect and the surface return light to the camera, the difference between them is small, and the resulting grey-level separation is too low to threshold reliably. The defect is physically present but radiometrically buried.

Specular and textured materials make this worse. Machined metal, coated panels, plastic mouldings, glass and brushed finishes produce hot-spots, glare and a noisy reflectance pattern that swamps the subtle signal of a real defect. Curvature compounds the problem: on a cylindrical or formed part, the angle between the surface and a fixed light source changes across the field of view, so an inspection that works at the centre fails at the edges. Embossing and debossing add a further twist, because these are deliberate relief features that must be read or verified rather than rejected, which again depends entirely on directional shadowing to become legible.

The practical consequence is that surface inspection is won or lost at the optics stage, before any image processing. The recommended approach is to engineer the lighting geometry so the defect produces a strong, repeatable signal, then choose a camera architecture that can capture that signal across the full part at production speed.

Dark-field and grazing light to reveal relief

The most effective technique for surface relief is dark-field illumination: light projected at a low, grazing angle so that the intact surface reflects it away from the lens and appears dark, while any edge, scratch, dent or raised feature scatters light back toward the sensor and lights up brightly against that dark background. This is the inverse of a normal image and it is exactly what surface defect detection needs, because it converts a few-micron change in relief into a high-contrast bright-on-dark feature. The same geometry makes embossing and engraving legible by casting controlled shadows along the relief.

Getting this right is a geometry exercise, not just a brightness one. The angle of incidence, the direction of the light relative to the likely defect orientation, the working distance and the uniformity of the line all determine whether the defect signal is repeatable across the field. Scratches have direction, so a single-direction grazing light can be blind to defects running parallel to it; multi-directional or low-angle ring arrangements, or sequential captures from different directions, are often used to catch defects of any orientation. High-intensity, tightly-controlled illumination from a lighting specialist such as DCM Sistemes is important here, because grazing geometry is inherently light-inefficient and line scan acquisition concentrates the requirement onto a single bright line.

In practice you should expect to prototype several lighting geometries against real defective samples. Bright-field, dark-field, low-angle and coaxial each expose different defect classes, and the winning configuration is the one that maximises defect-to-background contrast for your specific material, finish and defect catalogue.

  • Bright-field (diffuse, on-axis): good for colour, print and stains; weak on relief.
  • Low-angle / dark-field (grazing): best for scratches, dents, edges and embossing; suppresses the flat background.
  • Directional vs multi-directional: single-direction light can miss scratches running parallel to it, so combine angles for orientation-independent detection.
  • Match light spectrum and intensity to the material; specular and dark surfaces need careful angle control and high output.

Line scan, area scan and the speed question

For continuous webs, sheets, coils, extrusions, foils and any part moving on a conveyor, line scan cameras are usually the right architecture. A line scan camera builds the image one pixel-row at a time as the material passes, synchronised to motion with an encoder, producing a seamless image of effectively unlimited length with very high cross-web resolution. This suits surface inspection well because grazing illumination only needs to be uniform along a single line rather than across a whole 2D field, which is far easier and more efficient to engineer, and because the geometry between light, surface and sensor stays constant for every line. Line scan is the standard choice for wide-web and high-throughput surface inspection, and the catalog includes GigE and high-line-rate options from Basler and iRAYPLE suited to this role.

Where parts are discrete, presented station-by-station, or where the surface is curved enough that it must be imaged from several viewpoints, area scan cameras can be the better fit, often combined with multiple shots under different lighting directions. The decision between line scan and area scan comes down to part geometry, motion and how the defect contrast is generated, and it is worth resolving early because it drives the lighting, optics and motion control.

High-speed imaging becomes a hard requirement once the line moves quickly or the defects are small. Two figures dominate: the line rate (for line scan) or frame rate (for area scan) needed to keep pixel resolution along the direction of travel, and the exposure time short enough to freeze motion without blur. Both push you toward sensors with high readout speed, fast interfaces such as GigE, USB3 Vision or CoaXPress, and global-shutter behaviour so that fast-moving features are not geometrically distorted. They also push the lighting harder, because shorter exposures demand more instantaneous light, reinforcing the need for high-output dark-field illumination.

From contrast to a reliable accept/reject decision

Once the optics deliver a high-contrast image, the detection step is comparatively straightforward for well-defined, consistent defects: thresholding, blob analysis, edge and texture metrics on the dark-field image will reliably flag scratches and dents against the suppressed background. This rule-based path is fast, deterministic and easy to validate, and it is the right tool when the defect signature is stable and the surface is uniform.

Many real surfaces are not that cooperative. Cosmetic and aesthetic defects on textured, brushed, grained or naturally variable materials are notoriously hard to separate from acceptable surface variation with fixed rules, because the boundary between cosmetic noise and a genuine reject is subjective and context-dependent. This is where a deep-learning approach earns its place: trained on labelled examples, an anomaly or defect model learns the normal appearance of the surface and flags meaningful deviations, tolerating natural variation that would trip a hard threshold. Rosepetal, the group's deep-learning inspection software, is built for exactly this class of problem and can run on the same line scan or high-speed images, so AI is added only where it genuinely outperforms classical vision rather than by default.

Whichever method you choose, the imaging chain is the foundation. Neither a classical algorithm nor a neural network can recover a defect that the lighting and camera never made visible, which is why the engineering effort concentrates on optics and acquisition first.

Recommended hardware

Categories commonly used to solve this application.

Products for this application

A selection from 1,326 products. Open a category above to compare them all.

  • Basler racer 2 r2L2048-29gc machine vision camera
    BaslerBasler racer 2 r2L2048-29gcr2L2048-29gc

    GigE 2k color line scan camera with a Gpixel GL3504 CMOS sensor at up to 29 kHz line rate.

    • Line scan
    • GigE Vision
    • 2k (2048 px)
    • 29 kHz
    On request
    View
  • DCM Sistemes DKL5650B machine vision lighting

    Large square low-angle darkfield ring light (570 x 570 mm, 500 mm inner diameter) for machine-vision surface and edge defect inspection.

    • Darkfield / low-angle ring light
    • Available in white (W00), blue 470nm, green 525nm, red 630nm, IR 850nm and UV 400nm
    • 500 mm
    • Continuous (C), Powered (P), Strobe (S) and iBlueDrive (i) modes available
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE AX5A22MX060E machine vision camera
    iRAYPLEiRAYPLE AX5A22MX060EAX5A22MX060E

    12.6MP monochrome CoaXPress (CXP-6) high-speed area scan camera on the CMOSIS CMV12000 global shutter sensor, reaching 188 fps at 4096 x 3072.

    • Area scan
    • CoaXPress, CXP-6
    • 12.6 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE L5047MK140E machine vision camera
    iRAYPLEiRAYPLE L5047MK140EL5047MK140E

    4K monochrome Camera Link line scan camera with 4096 x 2 resolution and a 120 kHz line rate for high-speed web and surface inspection.

    • Line scan
    • Camera Link
    • 4k (4096 px)
    • 120 kHz
    On request
    View
  • Basler Standard Light Darkfield-50OD-x (White / Red / Blue / IR) machine vision lighting
    BaslerBasler Standard Light Darkfield-50OD-xStandard Light Darkfield-50OD-x

    A horizontal dark-field ring light (50 mm luminous-area diameter) that emits laterally at very flat angles to highlight object surfaces and edges, available in White, Red, Blue and IR.

    • Dark field (horizontal ring light)
    • White / Red / Blue / IR (variant-dependent)
    • Ø 50 mm luminous-area (outer diameter)
    • Continuous, current-controlled and strobe (overdrive) modes
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech Sentech STC-MCS163U3V machine vision camera
    Omron / SentechOmron Sentech STC-MCS163U3VSTC-MCS163U3V

    1.6 MP color USB3 Vision area scan camera with a 1/2.9" Sony IMX273 global shutter CMOS sensor, 1440 x 1080 resolution at up to 238 fps.

    • Area scan
    • USB3 Vision
    • 1.6 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech Sentech FS-B2KU7CL machine vision camera
    Omron / SentechOmron Sentech FS-B2KU7CLFS-B2KU7CL

    2K monochrome Camera Link line scan camera with a 2048-pixel CMOS line sensor at 7 um pitch, up to 80 kHz line rate.

    • Line scan
    • Camera Link
    • 2k (2048 px)
    • 80 kHz
    On request
    View
  • Omron / Sentech FLV-DL5890 machine vision lighting

    The Omron FLV-DL5890 is a low-angle (dark-field) LED ring light with 58 mm outer diameter designed for machine vision surface inspection, available in white, red (635 nm), and blue (460 nm) variants.

    • Low Angle Ring Light (Dark Field)
    • White / Red (635 nm typ.) / Blue (460 nm typ.)
    • ~27 mm
    • Continuous (strobe via controller)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Datasensing U190 (CAM-U190-USB3) machine vision camera
    Datalogic / DatasensingDatasensing U190 (CAM-U190-USB3)U190

    2.2 MP monochrome USB3.0 area scan camera with a 2/3-inch global shutter CMOS sensor running at 165 fps for high-speed inspection.

    • Area scan
    • USB3 Vision
    • 2.2 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Datalogic / Datasensing CAM-M565-GE (M565) machine vision camera
    Datalogic / DatasensingDatalogic / Datasensing CAM-M565-GE-2048 (M565)CAM-M565-GE-2048

    A 2048-pixel grayscale GigE line-scan camera with a 51 kHz maximum line rate and 7 µm pixels in a compact housing.

    • Line scan
    • Gigabit Ethernet (Gig-E)
    • Grayscale (mono)
    • c-mount/f-mount/m42-mount (camera supports C, F, and M42 lens mounts)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • DCM Sistemes DKL1813A machine vision lighting

    Ring-shaped low-angle (darkfield) LED light for machine vision that illuminates the part from a shallow angle to the camera axis to highlight edges, scratches, engravings and surface relief.

    • Dark field (direct low-angle ring darkfield)
    • Available in White, Blue 470nm, Green 525nm, Red 630nm, IR 850nm, UV 400nm
    • 130 mm
    • Ring-format darkfield, 130 mm inner diameter, 188 x 188 mm outer
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Basler ace 2 a2A2048-114umPRO machine vision camera
    BaslerBasler ace 2 a2A2048-114umPROa2A2048-114umPRO

    High-speed USB3 area scan camera with a 3.2 MP Sony IMX900 global shutter CMOS sensor delivering 114 fps in monochrome, sensitive in visible and NIR.

    • Area scan
    • USB3 Vision
    • 3.2 MP
    • 114 fps
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Hikrobot MV-CL024-91GC machine vision camera
    HikrobotHikrobot MV-CL024-91GCMV-CL024-91GC

    Hikrobot MV-CL024-91GC: 2k linescan camera, color, GPixel, 7μm.

    • Line scan
    • GigE
    • Color
    • M42*1.0, flange back length 12 mm, applicable to F-mount, C-mount and others via lens adapter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Basler Light Darkfield-50OD-IR machine vision lighting
    BaslerBasler Light Darkfield-50OD-IRLight Darkfield-50OD-IR

    Basler Light Darkfield-50OD-IR: horizontal Ring Light, lateral light emission at very flat angles. This Darkfield Light is ideal for inspecting object surfaces or edges.

    • Darkfield Light
    • Infrared (IR)
    • Ø 50 mm
    • Horizontal slight diffuse
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Hikrobot MV-CU013-A0UC machine vision camera
    HikrobotHikrobot MV-CU013-A0UCMV-CU013-A0UC

    Hikrobot MV-CU013-A0UC: 1.3MP Area Scan Camera, USB3, Color.

    • Area scan
    • USB3.0
    • 1.3 MP
    • CMOS, global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Basler racer 2 r2L8192-240cm machine vision camera
    BaslerBasler racer 2 r2L8192-240cmr2L8192-240cm

    CoaXPress CXP-12 8k mono line scan camera with a Gpixel GL7008 CMOS sensor at up to 240 kHz line rate.

    • Line scan
    • CoaXPress, CXP-12
    • 8k (8192 px)
    • 240 kHz
    On request
    View
  • Omron / Sentech FLV-DL12060 machine vision lighting
    Omron / SentechOmron FLV-DL12060 Low Angle Ring LightFLV-DL12060

    120 mm low-angle (dark-field) LED ring light for machine vision, available in White, Red (635 nm) and Blue (460 nm), with 60° emission angle and IP20 protection.

    • Low Angle Ring (Dark Field)
    • WHITE / RED / BLUE (colour options across the family)
    • 67 mm
    • 60 deg (lighting angle)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE A7230CU000E (1920x1200, 167fps, IMX392, USB3.0) machine vision camera
    iRAYPLEiRAYPLE A7230CU000EA7230CU000E

    2.3 MP (1920x1200) colour USB3.0 area scan industrial camera built on the Sony IMX392 global-shutter CMOS sensor, running up to 167 fps.

    • Area scan
    • USB3.0 (5 Gbps)
    • 2.3 MP
    • Global shutter
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • iRAYPLE L5022MG141E / L5022CG141E (2K mono/colour, 49kHz, GigE) machine vision camera

    2K (2048 px) GigE CMOS line scan camera with a 49 kHz line rate and 14 µm pixels, available in monochrome (L5022MG141E) and colour (L5022CG141E) versions.

    • Line scan
    • GigE (Gigabit Ethernet)
    • CMOS line sensor
    • Monochrome (L5022MG141E) / Colour (L5022CG141E)
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • DCM Sistemes DKL3223A machine vision lighting

    Large-format direct low-angle darkfield LED ring light (337 x 337 mm, 230 mm inner aperture) for machine-vision edge and surface-relief inspection.

    • Dark field (low-angle direct)
    • Available in white, UV 400 nm, blue 470 nm, green 525 nm, red 630 nm, IR 850 nm
    • 230 mm inner diameter
    • Continuous (C), Powered/overdrive (P) and Strobe (S) modes
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Omron / Sentech Sentech STC-CMB120ACXP machine vision camera
    Omron / SentechOmron Sentech STC-CMB120ACXPSTC-CMB120ACXP

    12 MP monochrome high-speed CoaXPress area scan camera with an ams/CMOSIS CMV12000 global shutter CMOS sensor, 4096 x 3072 resolution at up to 186.9 fps.

    • Area scan
    • CoaXPress, CXP-6
    • 12 MP
    • Global shutter
    On request
    View
  • Omron / Sentech FS-B4KU7CLU-F machine vision camera
    Omron / SentechOmron Sentech FS-B4KU7CLU-FFS-B4KU7CLU-F

    4K monochrome CMOS Camera Link line scan camera with F-mount, 4096 px resolution and 80 kHz line rate.

    • Line scan
    • Camera Link (Medium/Base, 2.1, dual MDR)
    • Global shutter
    • Monochrome
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View
  • Basler Light Darkfield-100OD-R machine vision lighting
    BaslerBasler Light Darkfield-100OD-RLight Darkfield-100OD-R

    Basler Light Darkfield-100OD-R: horizontal Ring Light, lateral light emission at very flat angles. This Darkfield Light is ideal for inspecting object surfaces or edges.

    • Darkfield Light
    • Red
    • Ø 100 mm
    • Horizontal slight diffuse
    • Rosepetal compatible
    • Recommended by AIS Vision
    On request
    View

Frequently asked questions

Related technical guides

Request a technical quote

Share the key data about your part, speed and environment and we propose a configuration.