Aurora Visio Studio TOP » Program Examples » Molybdenum Foil

Molybdenum Foil

目的

The task is to check whether the molybdenum foil inside halogen lamp is not damaged.

Input

An image of halogen lamp. The position of the object is variable.

Output

Region of detected defect and circle around it.

ヒント

Location of object is variable. The foils are much darker than wire and glass, therefore to find them Blob Analysis technique can be used. In this case this way can be faster than performing Template Matching.

接続のラベル付けについては こちらを参照ください。

Solution (AVS)

  1. In Workspace Explorer open workspace Examples and in Film strip window select MolybdenumFoil dataset. Drag the Image channel to the ACQUIRE section.
  2. Add the ThresholdToRegion filter to create a region containing the foils.
    • Click the "..." button at the inRoi input to open the GUI for marking the region of interest. The halogen lamp moves mainly along the horizontal axis, thus the ROI does not have to be too big.
    • Set the inMaxValue to 50. The inRegion output should be a region of the foils and the letters.
  3. Add the OpenRegion filter to remove noise and most of the letters.
  4. Add the FillRegionHoles filter to fill small holes in the foils which should not be considered as defects. Set the inMaxHoleArea to 10.
  5. Add the OpenRegion filter to remove the remaining noises. Set the inRadiusX to 6.
  6. Add the CloseRegion filter to close the holes in region of foil. Set its inRadiusX to 5.
  7. Add the RegionDifference filter to compute the region containing defects.
  8. To split the detected holes add the SplitRegionIntoBlobs filter and set the inMinBlobArea to 8.
  9. Add the RegionMassCenter filter to compute the point with coordinates equal to the average coordinates of the region's pixels.
  10. Add the CreateCircle filter and connect its in.Point input with the outMassCenter.

マクロフィルタ メイン

使用したフィルタ

アイコン 名前 説明
ThresholdToRegion 顕著な明るさによって定義できるオブジェクトの領域の抽出。
RegionMassCenter 領域のピクセルの平均座標に等しい座標を持つ点を計算します。
FillRegionHoles Adds pixels to the input region so that it contains no holes.
CreateCircle Creates a circle from an aligned point and radius.
CloseRegion Filling-in small gaps in a region without making it thicker.
RegionDifference Computes a region containing pixels from the first input region but not from the second input region.
SplitRegionIntoBlobs オブジェクトが互いに接触していない場合に、領域を個々のオブジェクトにセグメント化します。
OpenRegion Removing small parts from a region without making it thinner.

その他の資料

  • Blob Analysis - ブロブ分析手法について詳しく説明します。