OVERVIEW

Case Study: Detecting minute bent pins and dust particles with two images and a telecentric lens

A global electronics manufacturer needed to automate inspections of multi-pin header connectors for bent pins and dust. Manual inspection was slow and led to a 2% miss rate. We built a segmenter recipe on the OV80i, pairing it with a telecentric lens to eliminate perspective distortion. With 2 training images (1 only good pins, 1 only bad pins) and customized logic in “Node-Red” (no code tool) to calculate pin position, we achieved 100% accuracy in ~3h. The ability to pair AI with custom optics, and logic made for a unique solution.

  • Industry: Electronics
  • Application: Bent pins
  • Key Challenge: Extremely high accuracy to detect bent pins
  • Time to Train: <1h setup/training
  • Accuracy: 100% accuracy
100%

Accuracy across test samples (n=25)

3hours

Time to set-up & train segmenter algorithm

2

Images to setup & train segmenter recipe

DEFECTTwo connector captures annotated with Node-RED reference measurement callouts and dust particles marked in yellow, plus raw image and AI overlay comparison strips
Getting to this performance level & accuracy was impressive. The team had good lens knowledge & getting multiple classes of defects with logic was impressive
–Head of Quality

See next section for detailed report

OVERVIEW

Problem:

Manual inspection of the header connectors was slow, costly, and unreliable, leading to a consistent 2% miss rate for subtle pin bends. This was hard due to:

  • Perspective Distortion: With a standard lens, pins on the connector edge appear to be at a different angle than the center causing overkill.
  • 3D Variation: Pins can be bent slightly in any direction (X, Y, or Z axis), which is challenging for 2D rule-based systems to handle reliably.
  • Multiple defects: In addition to bent pins, dust particles could settle on connectors. These were individually, manually cleaned prior to packing.

Solution:

We implemented a classifier algorithm on the OV80i using a telecentric lens with 0.3x magnification to reduce perspective error. This setup ultimately allowed us to reliably capture all 7 defect types in 1 system.

Four crops comparing a high zoom lens, where pins at the image edge do not look perpendicular, against a telecentric lens where they do

Setup:

Step 1: Hardware setup

  • Camera: OV80i at a working distance of 110 mm
  • Lens: 0.3x magnification telecentric lens
  • Light: Standard ring light
The OV80i mounted on an extrusion frame above the connector with the telecentric lens and ring light

Step 2: Alignment and inspection setup

Connector with the alignment regions drawn against the left and bottom edges

Set up alignment so each component can be reliably inspected, independent of how they are placed by machinery. Left and bottom edges are used for alignment

OVERVIEW
Connector with every inspection region drawn, reference points at the corners and a region on each pin top

Create two types of inspections:

  • ROI covering top and bottom corners for reference measurements
  • ROI covering pin tops

Step 4: Training Classification

We trained on 2 samples - 1 good connector where all pins were correct, 1 bad connector where all pins were bent. Total of 28 ROIs (14 pins on each)

Three labelled panels: reference points, pin tops, and debris, each showing six region crops

Step 5: Testing

Tested on 15 good samples and 10 defective samples, achieving 100% accuracy with zero misses and zero overkills. Examples of a pass, fail due to a bent pin, and fail due to debris and a bent pin are shown below

Three test captures side by side, each with the full per-pin measurement overlay

Result: Pass

Reason: All pins within 10 pixels (~0.1 mm); no debris

Result: Fail

Reason: Pin 5 failure in vertical direction by ~45 pixels (~0.45 mm); no debris

Result: Fail

Reason: Pin 3 horizontal & vertical failure; multiple dust particles

OVERVIEW
  • Pass / fail for measurement was identified using “Node-Red”. Sample example flow with custom functions to calculate pin distances and create a dashboard are shown below
  • +/- 5 pixel tolerance was allowed (~50 µm)
The Node-RED flow: all block outputs into pin analysis, payload result and inspection pass/fail, with dashboard values feeding a global inspection result and a template
  • Reference values for top row of pins:
  • ◦ X-dist: 159 +/- 5
  • ◦ Y-dist: 108 +/-5
Measured pin centres and distances with the resulting pass or fail for each pin
DatumPin 1Pin 2Pin 3Pin 4Pin 5Pin 6
X-center22182182181181215180
Y-center426318315318320402319
X-dist-160160159159193158
Y-dist-10811110810624107
X-pass-passpasspasspassfailpass
Y-pass-passpasspasspassfailpass
Overall-PASSPASSPASSPASSFAILPASS

Take the next step toward zero defects and higher efficiency.

Contact Overview at contact@overview.ai or +1 (844) 799-7044

Timings are reproduced as published. The document quotes both "<1h setup/training" in the specification list and ~3 hours to set up and train the segmenter. Ask us for the exact breakdown if you are planning against it.