You are here: Start » Program Examples » Fuses

Fuses

Aim

The task is to check if there is no gap in the wire between two pins of fuse.

Input

An image containing fuses.

Output

Result of the inspection drawn on the image. If fuse is undamaged, a green circle is drawn, otherwise the circle is red.

Hints

To detect a broken wire Blob Analysis technique can be used. Using SplitRegionIntoBlobs filter you can analyze each fuse separately.

Labeling connections is explained in this article.

Solution (AVS)

  1. Go to the "ACQUIRE" section. Add the LoadImage filter and specify a path to the file in LoadImage.

  2. Add ThresholdToRegion filter to create a region containing fuses. A background is white, therefore you can set inMaxValue to 248. Since the PROCESS section should consist of key functionalities of the application, rest of the tools will be placed here.

  3. To split region to several regions corresponding to each fuse, add SplitRegionIntoBlobs filter and connect it with the ThresholdToRegion filter.

  4. Now you have an array of regions. To check whether the wire is not broken you need to analyze each of them separately. You can accomplish it with an Array mode.

  5. Note that pins and a wire are darker than a material around them, thus ThresholdToRegion filter can be used again. Add this filter and connect an outImage to it. Also connect FuseBlobs output to the inRoi.

  6. Add SplitRegionIntoBlobs filter to check whether the fuse is damaged. If there will be more then one Region on the outBlobs output it will mean that the fuse is broken into two parts. To check that, right-click on outBlobs output, select Property Outputs and choose the Count property. Then open the Results Control, mark the checkbox in the outBlobs.Count row and set Limits to 1: After that operation a new Property Outputs will appear. Just click on outBlobs.Count and select Status property.

  7. Click twice on the new output and change its name to IsFuseOK.
  8. Add RegionBoundingCircle filter to create circles around fuses. To be more precise this filter computes circle around region of fuse.

  9. To draw the circles with color corresponding to the result of the inspection, add DrawCircles_MultiColor.

Macrofilter Main

Used Filters

Icon Name Description
DrawCircles_MultiColor Draws circles on an image with multiple colors.
ThresholdToRegion Extraction of a region of objects that can be defined by a salient brightness.
RegionBoundingCircle Computes the smallest circle enclosing a region.
LoadImage Loads a single image from a file.
SplitRegionIntoBlobs Segmentation of a region into individual objects when the objects do not touch each other.

Further Readings

  • Blob Analysis - Article presents detailed information about the Blob Analysis technique.