LINGBANG · VisionAgent Injection-Molded Part Defect Inspection · Imaging & Lighting · ~8 min read 中文
Technical Solution · Optics First

Black Molded Parts
Defect Vision Inspection

The inspected objects are black injection-molded parts whose defects are mostly local, small-scale structural anomalies — missing material, fracture, deformation, flash — rather than large-area surface issues. The core principle is optics first: make the defect physically obvious in the image before talking about algorithms. Each defect is lit by the method best suited to its physical nature, imaged on its own station and never merged.

Backlight silhouette Low-angle dark field Diffuse + photometric stereo 5 MP mono camera Monochrome red / blue
Local feature of a black molded part under coaxial light
Coaxial-light capture
Black molded part · Local structure · Grayscale imaging

In industrial inspection, 80% of success or failure lies in the optics, not the algorithm. This document makes clear how to image black-part defects sharply: first separate which defects are feasible and which are currently not, then lock down the imaging principle, field of view, working distance, camera/lens and light source for each of the three feasible defects.

01

Overview & Core Principle

The inspected objects are black injection-molded parts, and the defects are mostly local, small-scale structural anomalies (missing material, fracture, deformation, flash), not large-area surface problems. The solution uses a single station + fixed angle + dedicated light source: each defect is lit by the method best matching its physical nature, imaged independently and never merged onto one station.

Core principle
Optics first. Make the defect "physically obvious" in the image before recognition — projecting the defect into a high-contrast feature while avoiding black-part reflection is the key to the whole solution.
Imaging setup
Monochrome industrial camera + single-color light (red/blue) gives the best SNR; one station can capture in bursts under multiple light sources.
Station strategy
Each defect has an independent viewpoint that does not interfere with others; stations are not forcibly merged.

Four difficulties

D1Black & highly reflective · reflection easily confused with real defects
D23D complex structure · large difference between angles
D3Defects small & local · hooks/posts/edges within a few mm
D4Non-uniform environment · needs fixtures + light shroud
Local feature 1
Coaxial capture · ring/hook feature, clear edge contour
Local feature 2
Coaxial capture · corner of an L-shaped holed bracket
Local feature 3
Coaxial capture · mesh seam and edge
Local feature 4
Coaxial capture · snap area (white X = manual mark)

The above are real samples under coaxial light, shown to illustrate the imaging difficulty of local black-part structures; the formal solution switches feasible defects to backlight/dark-field imaging for higher contrast.

02

Defect Overview & Feasibility

There are 6 target defects: 3 are feasible (defects 1 / 3 / 4) and 3 are high-difficulty and excluded from the current solution (defects 2 / 5 / 6).

6
Total target defects
3
Feasible (defects 1 / 3 / 4)
3
Excluded (defects 2 / 5 / 6)
1
Station per defect, independent
DefectNatureFeasibilityKey methodNotes
D1 Hook-tip loss / fractureMissing edge contour★★★ Very highBacklight silhouetteMissing hook tip is obvious; length measurable
D3 Bracket loss / deformationBottom edge of L-shaped holed bracket★★★ HighBacklight silhouette + dark fieldSwitch to dark field + black background when occluded
D4 Snap deformation / whiteningTop protruding snap★★ Med-highSide backlight silhouette + shroudRequires fixed fixture, isolate shop-floor stray light
D5·6 Edge burr height over-toleranceBurr height vs. datum plane✕ Not feasible2D projection can't reliably convert to true burr height
D2 Boss-hole inner arc white edgeWhite region on inner arc of hole✕ Not feasibleTiny white edge easily confused with in-hole highlight; no stable feature

Note: sizes / working distances are estimated from drawings (hook-tip defects ≈ 0.5 mm, snap deformation ≈ 1 mm); models will be locked once real dimensions are confirmed.

03

Three Lighting Principles

Lighting is chosen by the physical nature of each defect, with one shared goal: project the defect into a high-contrast feature while avoiding black-part reflection.

Backlight contour
The part edge faces the camera with backlight behind, so the feature becomes a black silhouette — used for defects 1 · 3.
Low-angle dark field
Light grazes the surface at 10°–30°, so protrusions/flash scatter into bright lines — only helps reveal burrs, cannot measure height.
Diffuse + photometric stereo
Soft light suppresses highlights, multi-direction light computes surface normals, revealing deformation/whitening — used for defect 4 (and as a supplement for defect 3).
Monochrome industrial camera + single-color light (red/blue) gives the best SNR; one station can capture in bursts under multiple lights.
04

Defect 1 · Hook-tip Loss / Fracture

FEASIBLE

Backlight silhouette · missing hook tip is obvious

Length measurable

Imaging principle: the hook tip faces the camera with a backlight panel behind; the hook tip becomes a black silhouette, so any loss is obvious and its length can be measured.

FOV
50 × 42 mm
Working distance
200 mm
Camera / lens
5 MP mono camera + 25 mm prime (upgradeable to 0.14× telecentric for tolerance measurement)
Resolution
≈ 0.02 mm/px; a 0.5 mm defect ≈ 25 pixels
Lighting
LED backlight panel (≈ 100×100 mm, red 660 nm) placed directly behind the hook tip.
Hook-tip feature 1
Hook / ring feature · coaxial capture
Hook-tip feature 2
Hole and post contour integrity
Hook-tip feature 3
Edge contour · basis for length measurement
Hook-tip feature 4
Formal solution switches to backlight silhouette
05

Defect 3 · Bracket Loss / Deformation

FEASIBLE

Backlight silhouette + dark field · L-shaped holed bracket

Backlight preferred

Imaging principle: the L-shaped holed bracket protrudes on the bottom edge; backlight reveals the silhouette (hole/hook/edge integrity). When the rear is occluded by the body, switch to low-angle dark field + black background.

FOV
80 × 68 mm
Working distance
250 mm
Camera / lens
5 MP mono camera + 25 mm prime
Resolution
≈ 0.033 mm/px; sufficient for hole/edge features
Lighting
LED backlight panel preferred; fallback: bar-type grazing dark-field light (15°–30°) + black-velvet background.
Bracket feature 1
Holed bracket · hole/top-edge integrity
Bracket feature 2
Loss/deformation revealed in silhouette contour
Bracket feature 3
Corner of L-shaped holed bracket
Bracket feature 4
Bottom-edge protrusion · contour by backlight
Bracket feature 5
When occluded, switch to dark field + black bg
06

Defect 4 · Snap Deformation / Whitening

FEASIBLE

Side backlight silhouette + shroud · success hinges on shading

Fixed fixture required

Imaging principle: the camera views the snap horizontally with a backlight behind it; a normal snap has a regular contour, while deformation/whitening makes the silhouette shape abnormal. When deformation only faces the camera, add one grazing light as a backup.

FOV
40 × 34 mm
Working distance
150 mm
Camera / lens
5 MP mono camera + 25 mm prime
Resolution
≈ 0.016 mm/px; a 1 mm deformation ≈ 60 pixels
Lighting
Small backlight panel directly behind the snap + a shroud to isolate shop-floor stray light (the make-or-break factor).
Snap feature 1
Snap/post area (white X = manual mark)
Snap feature 2
Top protruding snap · silhouette shape
Snap feature 3
Deformation/whitening makes shape abnormal
07

High-difficulty · Excluded from Current Solution

✕ Defect 5·6 · Edge Burr Height Over-tolerance

Actual decision target: measure the true height of the edge burr relative to the datum plane and judge whether it exceeds a specified distance — not merely whether a burr exists.

  • Core limitation: image length is a 2D projection and cannot equal the vertical height of the burr.
  • An ordinary monocular 2D camera cannot obtain true height information; grazing light only helps reveal burrs, it cannot reliably measure height.
  • Conclusion: if height measurement is mandatory, laser triangulation, confocal displacement or a 3D profilometer must be separately validated — outside the scope of this 2D vision solution.
Edge burr 1
Edge burr · grazing light shows but can't measure height
Edge burr 2
Bright scatter lines of flash at mesh seams
Edge burr 3
2D projection can't convert to true height
Edge burr 4
Edge-burr morphology varies widely

✕ Defect 2 · Boss-hole Inner-arc White Edge

Assessment: high-difficulty, cannot be detected stably. The target is a white edge on the inner arc of the boss hole — unrelated to burrs or height measurement.

  • The white edge is small and located inside the hole, easily confused with specular highlights on the black plastic surface.
  • Its visible width and brightness change markedly with light angle, camera viewpoint and part pose, lacking a stable, repeatable feature.
  • The in-hole space is narrow and occluded, making it hard to control incident and reflected light simultaneously, so both false-reject and false-accept risks are high.

For a dedicated re-assessment: sufficient OK/NG physical samples must be provided with a clear physical defect and decision boundary; a high-repeatability fixture is used to specifically test coaxial, polarized and multi-angle split-light imaging. Only after repeated trials prove the OK/NG features are stable and separable can it be reconsidered — feasibility is not promised at present.

08

Hardware Baseline & Prerequisites

A common hardware baseline across the three stations — only the field of view and backlight size differ — which simplifies stocking and maintenance.

#EquipmentRecommended specPurpose
1Industrial mono camera2/3" 5 MP (2448×2048, 3.45 µm)Best SNR for black parts; e.g. Hikrobot MV-CU050 / Basler acA2440
2Industrial lens25 mm prime (0.14× telecentric optional for D1)Common across three stations, easy to stock & maintain
3LED backlight panelRed 660 nm, sized to the FOVSilhouette imaging for defects 1 / 3 / 4
4Bar grazing dark-field lightLow angle 10°–30°, red/blueFallback for D3; surface-deformation aid for D4
5Shroud + locating fixtureRepeat positioning ≤ ±0.5 mmIsolate ambient light, ensure imaging repeatability (mandatory for D4)
6Light controllerConstant current / strobe-synced to cameraAvoid brightness drift; multi-light burst capture

Prerequisites for accurate recognition (results not guaranteed otherwise)

01Locating fixture · position/angle repeatability ≤ ±0.5 mm
02Shading + stable light · LED constant current/strobe sync
03Backlight/dark field first · no direct top light on black parts
04Independent stations · one viewpoint per defect
05Samples + tolerance · OK ≥30–50 / NG ≥10–20 per type
06Part consistency · same color/mold/batch

Items to confirm (once confirmed, models and BOM can be locked)

Conclusion: do the feasible ones solidly, state the infeasible ones clearly

Defects 1 / 3 / 4 image stably with backlight silhouette + dark field and can be deployed on independent stations; defects 2 / 5 / 6 are limited by 2D imaging principles and are explicitly excluded from the current solution to avoid over-promising.

First make the defect "obvious", then talk about recognition — optics first is the first principle of this solution.
b
blue
PhD in computer vision · VisionAgent solutions and delivery

Works on few-shot segmentation and industrial scene understanding; argues for moving appearance QC from “one long training run per defect” to “few-shot segmentation + event composition + state-machine aggregation”, so thresholds decouple from perception and a grade change needs no retraining.

Currently focused on edge GPU inference, cross-domain generalisation and closing the data loop on site. This piece records the family grouping, sampling derivation and platform configuration path behind a battery tab inspection plan.