Light Sources Detecting Surface Defects in Mobile Phone Housings
Light sources detecting surface defects decide what the camera can see at all. This page covers angle, spectrum, stability, and glare control on machined and anodized phone parts. Read it before buying another camera.

In this article
- 1
- 2
- 3
- 4
- 5
- 6
Light Sources Detecting Surface Defects: Symptom, Cause, and Fix
Match the symptom before you change any hardware.
| Symptom | Likely cause | What to do |
|---|---|---|
| Scratch visible by eye, invisible on camera | Light angle matches scratch direction | Sweep the bar 15–30° off the scratch axis |
| Bright center, dark edges | Falloff from a point source | Use a bar or dome with 80%+ uniformity |
| Defect appears and disappears | Mains ripple or PWM flicker | Switch to constant current or strobe sync |
| Machining marks vanish | Diffuse light, low grazing angle | Drop to 5–15° grazing incidence |
| Glare blocks the defect | Specular reflection off polished metal | Go coaxial or add crossed polarizers |
| Fine porosity lost in shadow | Hard source, no fill | Add a ring fill at 20–30% of key output |
| Color shift across the frame | Mixed CCT fixtures on one line | Match all emitters to one bin, 5000 K ±200 K |
How Light Sources Detecting Surface Defects Reveal or Hide a Flaw
A scratch on an anodized housing is a shallow groove, often 2–8 μm deep. Whether it shows up on camera depends almost entirely on the angle between the light, the surface, and the lens. At normal incidence the groove fills with reflected light and disappears. At grazing incidence the far wall of the groove goes dark and the near wall goes bright, so the defect draws its own contrast.
This is why the first question is never how many lumens. It is where the light sits. For a matte bead-blasted surface, a bar light at 15–30° off the surface plane gives good contrast on scratches and dents. For a brushed finish, rotate the bar until the brush lines run parallel to the light axis, otherwise the texture itself becomes noise.
A dome light spreads illumination from many directions and flattens almost everything. It is the right choice when you want to read laser markings or check for color uniformity. It is the wrong choice for shallow scratches, because it removes the shadow that makes them visible.
Curved edges on a phone frame need their own treatment. A single bar cannot hold constant incidence around a radius. Use a ring light with the camera centered, or two bars at different angles, and check the corner regions separately during setup.
- 1Grazing beats bright5–15° incidence for shallow scratches, 15–30° for dents and dings.
- 2Match the textureRotate the bar until brush lines or tool marks run parallel to the axis.
- 3Corners need their own lightA ring or dual-bar setup holds incidence around radii.
Spectrum Choice for Light Sources Detecting Surface Defects
White light is not one thing. A 5000 K LED with a 80 CRI has dips in the red and cyan bands, and those dips can hide a thin oxide film that a broader source would show as a faint color change. For cosmetic inspection on anodized aluminum, a CRI of 90 or higher reduces the chance of missing a dye inconsistency.
Monochromatic light is the opposite tool. Blue light at 450–470 nm tightens the effective resolution because shorter wavelengths diffract less, which helps on sub-10 μm features. Red light at 630–660 nm penetrates slightly deeper into translucent coatings and can reveal subsurface pores in powder coat or paint.
UV at 365–395 nm is worth having on the bench for one job: detecting residue. Polishing compound, mold release, or fingerprint oil fluoresces under UV while the base metal does not. If your cleaning validation keeps failing intermittently, a UV pass often explains why.
None of this means you need a tunable source on every line. Pick one spectrum per part family, document it, and stop changing it. Consistency across shifts matters more than the theoretical optimum.
- 1CRI 90+ for cosmeticsReduces missed dye and oxide variation on anodized surfaces.
- 2450–470 nm blueTighter resolution on small features.
- 3365–395 nm UVFinds polishing residue and oils that white light hides.
Output Stability, Flicker, and Heat in Inspection Lighting
Camera exposure times of 1–10 ms mean the light must hold steady over that window. A mains-driven LED with 10% ripple will produce a visible brightness band that moves across the frame between shots. Constant-current drivers cut ripple below 1%, which is usually enough for a rolling-shutter sensor.
PWM dimming is a common trap. If the dimming frequency sits near the exposure time, some frames come out dark and some bright. The defect then appears to blink, and operators start rejecting good parts. Either move the PWM frequency well above the frame rate or switch to analog current dimming.
Heat changes both output and spectrum. An LED driven at 100% for an eight-hour shift can lose 10–15% of its flux as the junction warms, and the color point drifts with it. Overdriving with a strobe at 10–20× nominal current for 100 μs keeps the junction cool and holds output flat.
Mount the light on a rigid bracket, not on the same frame as a press or a mill. A few micrometers of vibration smear the edge of a defect and soften the contrast you just engineered.
- 1Ripple under 1%Constant-current drivers for rolling-shutter cameras.
- 2PWM above frame rateOr use analog dimming to avoid blinking defects.
- 3Strobe to stay coolShort high-current pulses hold flux and color point.
Glare and Ambient Light Control
Polished or mirror-like surfaces reflect the source straight into the lens. Coaxial illumination sends light along the optical axis and reflects it back along the same path, so the camera sees a bright field with dark defects. It works well on flat, highly reflective parts and poorly on rough ones.
Crossed polarizers are the other standard trick. A polarizing film on the light and a second film rotated 90° on the lens kill specular highlights while keeping diffuse scatter from the defect. Expect to lose 50–70% of the light through the pair, so plan the source output accordingly.
Ambient light is the quiet failure. A window on the far side of the room, a status LED on a nearby machine, or a ceiling fixture can add 5–10 lux of uncontrolled illumination that changes with the time of day. Enclose the station or add a shroud, then verify with the room lights on and off.
Filter the source itself when you can. A bandpass filter matched to the LED wavelength rejects most ambient light and raises contrast without any change to the fixture.
- 1Coaxial for flat mirrorsBright field, dark defect on polished surfaces.
- 2Crossed polarizersBudget for 50–70% light loss.
- 3Shroud the stationUncontrolled ambient light changes with the time of day.
Step by Step: Setting Up a Lighting Check
Run this on a known-good and a known-bad part before releasing the station.
- 1Start with the defect you must catchList the three cosmetic defects that matter most, with size limits. A 20 μm scratch and a 200 μm dent need different angles.
- 2Fix camera first, then move the lightLock exposure, gain, and focus. Sweep one bar from 5° to 45° incidence in 5° steps and save an image at each.
- 3Pick the angle with the best contrastMeasure gray-level difference between defect and background. Aim for at least 40 gray levels at 8-bit.
- 4Check uniformity across the fieldCompare center and corner brightness. Keep variation under 20% or add a diffuser.
- 5Verify stability over timeRun 200 frames and plot mean intensity. Drift above 2% points to a driver or thermal problem.
- 6Test with room lights on and offAny change in defect visibility means ambient light is reaching the sensor. Add a shroud.
- 7Write the settings downRecord angle, distance, current, and spectrum. Lock the fixture so the next shift cannot move it.
Frequently Asked Questions
How bright should the light be?
Brightness is a dependent variable, not a target. Set the angle and spectrum first, then raise current until the camera hits 60–80% of full well without clipping. If you need more than that, the angle is probably wrong.
Overdriving a fixture to compensate for poor geometry adds heat, shortens LED life, and usually makes glare worse rather than better.
Can one light setup handle every phone model?
No. A matte mid-frame and a polished camera bezel behave differently under the same light. Most lines end up with two or three preset recipes keyed to surface finish, not to model number.
Group parts by finish and color, then assign one recipe per group. That keeps the number of setups small without forcing a compromise that hides defects.
Why does the defect disappear in the saved image but show on screen?
Live view often runs a different exposure and gain than the capture path, and some cameras apply sharpening or noise reduction only in still mode. Compare the raw frames before blaming the light.
If raw frames differ, check for automatic exposure or auto white balance. Both will drift as the part moves through the field and can wash out a shallow scratch.
Do we need UV for cosmetic inspection?
Only if residue is a real failure mode for your process. UV at 365–395 nm is useful for polishing compound, release agents, and oils, and it is largely blind to surface topography.
Adding UV to a station costs money and adds eye-safety controls. Keep it as a separate audit step unless residue defects reach the customer.
How often should the light be rechecked?
Once per shift, run a reference part and compare the mean gray level against the baseline. Monthly, measure uniformity across the field and check for dust on the diffuser.
Recheck after any fixture move, lamp replacement, or driver swap. Those three events cause most of the drift we see on inspection lines.
Does the light need to match the camera sensor?
Yes for wavelength and timing. A monochrome sensor paired with a narrowband source gives the best contrast-to-noise ratio. Color sensors lose roughly two-thirds of the light to the Bayer filter.
For strobe setups, check the sensor trigger delay and the LED rise time. If the light is still ramping when the shutter opens, the first rows of the image will be darker.
Send Us the Part and the Defect You Need to Catch
Tell us the finish, the defect size, and the inspection method. We will quote the machining and flag any geometry that makes lighting difficult.
12-hour quote100% inspectionNo minimum order