Loading [MathJax]/extensions/tex2jax.js

You are here: Start » Program Examples » Gasket Inspection

Gasket Inspection

Aim:

The task is to measure the distance between the centers of gasket holes.

Input:

An image containing a gasket. The position of the gasket is variable.

Output:

Calculated distance between two pairs of holes.

Hints:

The location of the object is variable. Therefore, in the first step of an algorithm, the LocateSingleObject_Edges1 filter should be used. Then, its outObject.Alignment output can be used as a reference CoordinateSystem2D to subsequent filters. The centers of holes can be found using the FitCircleToEdges filters. The centers of the holes which are not closed can be found using the FitArcToEdges.

Labeling connections is explained in this article.

Solution (FIS):

►Click here to show the solution.

Used Filters

►Click here to show the filters list.

Further Readings

  • Shape Fitting - This article presents usage of the Shape Fitting technique.
  • Template Matching - Most detailed description of the Template Matching technique.