Electronic connector, post assembly, have to be inspected whether the right pins have been installed in the connector. The definition of right-pins includes the height of the pins, location and its bend.

Using the shine from the tip of the connector pins the location of the pins are identified. Then the algorithm compares there expected and actual locations of the pins and declares whether the connector is OK or NG.