Loading [MathJax]/extensions/tex2jax.js

You are here: Start » Program Examples » Cap (Advanced)

Cap (Advanced)

Aim

The task of this example is to check whether a seal (plastic ring under the cap) is correctly placed.

Input

An image of the top of a bottle. The position of the bottle is variable.

Output

An image with the result of the inspection printed at the top. If a defect is detected, a rectangle is drawn around it.

Hints

The position of the object is variable along both vertical and horizontal axes. Using 1D Edge Detection technique you are able to create a local coordinate system that can be used to configure other tools to work independent of the object orientation, translation and scale.

Solution (Studio)

►Click here to show the solution.

Used Filters

►Click here to show the filters list.

Further Readings