ApplicationsChecklist

Prevent product recalls with machine vision inspection points

Place machine vision inspection points that prevent product recalls: four stages, the 3-pixel sizing rule and a worked 0.1 mm scratch example.

LumaSpec Vision10 min read Share on LinkedIn

On this page 9 sections
  1. 01Decide by stage: the four gates that stop a recall
  2. 02Gate 1 checklist: incoming parts and materials
  3. 03Gate 2 checklist: in-process assembly verification
  4. 04Gate 3 checklist: final defect detection
  5. 05Gate 4 checklist: code and lot verification
  6. 06Worked example: a 0.1 mm scratch on a 131 mm housing face
  7. 07When the usual answer is wrong
  8. 08Before you order: five checks
  9. 09Questions

A recall turns a quality problem into a logistics problem: every shipped unit becomes suspect, and the cost stops being one part's price and starts being retrieval, replacement and lost trust. The fix is placement, not just better cameras. Machine vision prevents product recalls when the inspection points sit at the four stages where a defect gets expensive — incoming parts, in-process assembly, final defect detection, and code or lot verification. This checklist gives you each gate's items and the reason they matter, then sizes one camera end to end with the 3-pixel rule, so you can repeat the arithmetic for your own smallest critical defect. It is written for quality and process engineers planning a line or retrofitting gates into an existing one.

Decide by stage: the four gates that stop a recall

Put one camera gate at each stage below, in this order of value. The same defect costs the part's price at receiving; the part plus the labor built onto it after assembly; and, once shipped, retrieval and replacement across the whole suspect population. Each gate catches what the previous one cannot see, which is why the order matters more than the resolution of any single camera.

Gate Question it answers Defect class it stops Typical hardware
Incoming parts Is this the right part, undamaged? Mixed lots, wrong revision, transit damage Area scan or smart camera at receiving
In-process Did the last step land? Missing insert, reversed part, wrong orientation Smart camera at the station
Final Is the finished part defect-free? Scratches, voids, flash, out-of-tolerance features 12 MP and up area scan camera
Code and lot Is the code present, correct, readable? Missing, wrong or unreadable date and lot codes Fixed code reader

Gate 1 and Gate 3 run on area scan cameras, Gate 2 on smart cameras, and Gate 4 on fixed code readers.

Gate 1 checklist: incoming parts and materials

  • Inspect at the first unpackaged touchpoint. Packaging hides the surfaces that matter. Photograph the faces that will be assembled, not the box, because transit damage and supplier mix-ups are cheapest to reject before they enter good stock.
  • Compare every lot against a golden reference. A stored reference image set for each approved part lets the gate reject a mixed or wrong-revision part before it joins the line. Part identification by dimensions shows the measurement approach.
  • Size this gate for lot-level defects. A wrong part and gross damage separate at far lower resolution than the final gate's smallest defect, so a modest sensor with the right optics is enough here; save the pixel budget for Gate 3.
  • Log the lot ID with every image. If a supplier lot later appears in a field failure, the archive proves what arrived — the difference between a supplier claim and an internal write-off.

Gate 2 checklist: in-process assembly verification

  • Gate every irreversible step. A pressed-in insert, a welded connector, a glued joint: once the next step buries the interface, no downstream camera can check it. Mount the camera immediately after the step that closes it.
  • Verify before value is added. Check the insert before overmolding and the connector before potting. The insert inspection approach for injection molding shows a camera-and-light layout that confirms inserts while they are still visible.
  • Keep one camera per gate, on-device. A dedicated smart camera carries its own light and optics, so the verdict does not drift when someone moves a fixture. The MV-SC5060XM-08M-WBN pairs a 6 MP mono sensor with an 8 mm M12 lens, which suits fixed-standoff presence and orientation checks:
Smart cameras & vision sensorsHikrobot MV-SC5060XM-08M-WBN SC5000X series Smart Camera, 6 MP, Mono, 8 mm focal length, M12-mountMV-SC5060XM-08M-WBN
Interface
GigE
Resolution
6-10 MP
Sensor format
1/2.4"
Shutter
Rolling
$1,629.00View part

Gate 3 checklist: final defect detection

  • Start from the smallest critical defect in millimeters. Take the number from the control plan or the customer drawing; it sizes the sensor, the lens and the light. Then apply the 3-pixel rule: the smallest defect must span at least 3 pixels, or its contrast spreads into neighboring pixels and disappears. Camera resolution for defect detection works this rule out in detail.
  • Buy contrast before pixels. A scratch on a textured face needs the right light direction before it needs more sensor; lighting for defect detection on webs and parts matches light geometry to the surface.
  • Freeze the motion, then judge the image. Keep blur under one pixel: the exposure limit is pixel scale divided by line speed. At 300 mm/s and 0.033 mm per pixel that is about 110 µs, and the strobe pulse must cover the exposure — this strobe sizing method applies to any strobed gate. Moving, strobed parts want a global shutter sensor; for those lines the MV-CH120-11UC combines a 12 MP global shutter with USB3 transfer in a high-speed version.
  • Make the verdict physical. A fail that does not remove the part did not happen: wire the camera verdict to a reject mechanism with its own part-removed sensor, and treat a reject that times out as a fault, not a pass.

Gate 4 checklist: code and lot verification

  • Read and grade every code, not a sample. The code gate is what shrinks a recall's scope, and a marginal print is a future unread. Date code print quality inspection covers verifying the string and grading the print, so bad prints reprint instead of shipping.
  • Check that the code belongs to the product. A perfect read of the wrong label is itself a recall trigger; match the decoded content against the order or recipe active at that station. Barcode reader verification for label inspection is the reference set-up.
  • Set a confidence threshold on every decode. A decode below threshold sends the unit to re-check, never silently through. Barcode read confidence explains how to judge a decode.
  • Archive code, verdict and timestamp. Mapping a field failure to a production window is what turns a months-long pull into a one-shift pull. Two reader classes cover most code gates:
Fixed code readersHikrobot MV-ID3013PM-12M-WBN 12mm focal length 1.3 MP Compact Industrial Code ReaderMV-ID3013PM-12M-WBN
Interface
Fast Ethernet
Resolution
Up to 3 MP
$1,979.00View part
Fixed code readers2560 x 2048 fixed code reader, 30 fps, 60 codes/s, 8 mm lens (LS-CRD-0028)LS-CRD-0028
Interface
Fast Ethernet
Resolution
5 MP
$920.00View part

Worked example: a 0.1 mm scratch on a 131 mm housing face

The gate is final inspection of an anodized aluminum housing, customer-visible face. The control plan calls any scratch 0.1 mm or longer on that face critical (a typical case — substitute your own control-plan value). The face is 131 mm wide and the camera photographs it in one view, part stopped on a fixture.

Inputs: smallest critical defect 0.1 mm, from the control plan; one view of 131 mm field width (face plus fit margin); a 12 MP camera; nominal width of the 1/1.7" format, about 7.4 mm; working distance about 150 mm, chosen to clear the fixture hardware. The LS-CMR-0166 supplies the array for this example, and its data sheet prints the resolution as 4000 × 3000.

The rule in words: a defect needs 3 pixels across it, so the pixel scale must stay at or below one third of the defect size. That sets the widest field the sensor can cover; the lens focal length then follows from the magnification the field demands.

pixel scale ≤ defect ÷ 3 max FOV width = horizontal pixels × pixel scale m = sensor width ÷ FOV width f = WD × m ÷ (1 + m)

Arithmetic. Pixel scale: 0.1 mm ÷ 3 = 0.0333 mm per pixel. Field limit: 4000 px × 0.0333 mm/px = 133 mm, so the 131 mm field fits with about 1.5% margin. Magnification: m = 7.4 mm ÷ 133 mm = 0.056. Focal length at a 150 mm working distance: f = 150 mm × 0.056 ÷ 1.056 = 7.9 mm, and the nearest stock value is 8 mm. Check with 8 mm: m = 8 ÷ (150 − 8) = 0.0563, field = 7.4 mm ÷ 0.0563 = 131 mm, pixel scale = 131 mm ÷ 4000 px = 0.0328 mm/px, and the scratch spans 0.1 ÷ 0.0328 = 3.05 px — just past the rule, so hold the field at 131 mm and do not widen it.

How sensor width, working distance and field of view set the focal length Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.CameraField of view (FOV)Working distance (WD)≈ fsensor width slensm = s / FOVf = WD × m / (1 + m)
How sensor width, working distance and field of view set the focal length. Rays from the edges of the sensor pass through the lens and spread to the edges of the field of view. The ratio of sensor width to field of view is the magnification m.

Decision. With the field at or below 133 mm, a 12 MP camera with an 8 mm lens at 150 mm working distance detects 0.1 mm scratches in one view. If the face is wider, split it into views or add horizontal pixels: the rule needs FOV ÷ 0.0333 mm/px pixels across, and the camera resolution calculator converts your field directly:

Camera resolution for the smallest feature
Units
Pixels needed
–
Sensor size
– MP
Smallest sensor that fits
–
Pixel on the part
– mm
Pixels across the feature, that sensor
–

Pixels needed = field / feature × pixels per feature on each axis (field incl. margin). The lens must resolve the pixels too: Nyquist = 1000 / (2 × pixel µm) lp/mm.

Find cameras with enough pixels Open the full calculator

The LS-CMR-0166 is a 12 MP USB3 area scan camera with a 4000 × 3000 resolution on a 1/1.7" rolling-shutter sensor. With the part stopped, that rolling shutter photographs cleanly; moving gates take the global-shutter option from Gate 3.

Area scan cameras12 MP USB3 area scan camera, IMX226, 1/1.7" rolling shutter, 30 fps, 4000 × 3000 resolution (LS-CMR-0166)LS-CMR-0166
Sensor format
1/1.7"
Interface
USB3
Resolution
12 MP
Shutter
Rolling
$560.00View partBuild a system with it

When the usual answer is wrong

  • "Add megapixels." Extra pixels deliver only when the optics resolve them and the light separates defect from texture; on a textured part under unchanged light, a bigger sensor yields sharper noise, not more detections. Fix light geometry first, then re-check pixel scale.
  • "One camera can see the whole part." Widen the 131 mm field to 300 mm and the same 4000-pixel sensor runs at 300 ÷ 4000 = 0.075 mm per pixel, so the 0.1 mm scratch spans 1.3 px — below the rule. Wide coverage and small defects need multiple views or a staged gate.
  • "We already audit a sample." An audit estimates the defect rate; it does not stop the unit that carries the defect. Gates inspect every unit; keep the audit to discover defect classes the recipes do not yet know.
  • "AI will clean it up." Models inherit the optics: adding AI surface defect inspection to existing cameras works when the images already contain the defect.

Before you order: five checks

  1. Smallest critical defect in mm, per surface — from the control plan; every other number follows from it.
  2. Field width and view count per gate — one view per region that must meet the pixel rule.
  3. Pixel scale at or below defect ÷ 3 in every view — compute it before quoting optics. Matching sensor, lens and software to a parts-inspection task is walked through in this parts inspection system selection guide.
  4. Line speed and shutter type — the exposure budget is pixel scale ÷ speed; strobed motion wants a global shutter.
  5. Verdict wiring — reject mechanism, part-removed sensor, and a logged pass/fail per unit.

Match hardware to these numbers in the camera finder or configure a full system; more applications guides cover the individual gates, and the contact page reaches the applications team with your control plan.

Questions

How many vision inspection points does a production line need?

Start with four: one gate at incoming parts, one after each irreversible assembly step, one at final defect detection and one at the code printer. Add cameras only where a single view cannot hold the part at 3 pixels across its smallest critical defect — a wide panel may need two or three views at the same gate. Fewer gates than this lets a defect travel on to the stage where it costs the most to undo.

What camera resolution catches a 0.1 mm defect?

Work from the field of view, not the sensor alone. A 0.1 mm defect needs a pixel scale of 0.033 mm per pixel or finer, so the pixels needed equal field width divided by 0.033. A 200 mm field needs about 6,000 pixels across, beyond the 4,000 of a 12 MP sensor in one view — split the field into two cameras or move to a higher-resolution sensor. A 130 mm field fits a 12 MP camera with margin.

Does 100% machine inspection replace manual quality audits?

No, it complements them. The camera gate checks every unit at line speed, but only for the defect classes it was built and validated for. A small manual audit still matters: it catches defect classes outside the validated set, feeds escaped parts back through the gate to test the recipe, and confirms the reject mechanism removes what the camera flags. Keep the audit and shrink its scope to defect discovery rather than detection.

How does code verification reduce the size of a recall?

When a reader grades the date or lot code on every unit and logs it with a timestamp, a field failure maps to a production window instead of to everything shipped since the last audit. You can scope the pull to one shift or one ingredient batch. Without verified codes, the conservative answer is to withdraw every unit made since the last known good check, which multiplies the retrieval cost.

Can one smart camera cover several inspection stages?

Usually not. Each stage asks a different question at a different point in the flow, and the part presents differently — bare at receiving, assembled mid-line, finished at the end. A smart camera earns its place as a dedicated gate with fixed optics, fixed light and one verdict. Sharing one camera across stages means moving hardware between stations and re-validating every recipe each time it moves.