Search for Shapes Using Shape Detection

NI Vision Assistant

Search for Shapes Using Shape Detection

Note  The shape detection step works only with 8-bit images.

Main Tab

  1. In the Step Name control, enter a descriptive name for the step.
  2. Verify that the Reposition Region of Interest option is enabled if you want to link the region of interest specified in this step to a previously defined coordinate system.

    Link the region of interest to a coordinate system if the position of the object under inspection changes from image to image, and you need to adjust the position of the region of interest to match the new location of the object.

Curve Settings Tab

Modify the Extraction Mode, Edge Threshold, Edge Filter Size, Minimum Length, Row Search Step Size, and Column Search Step Size to improve edge detection, if necessary.

Shape Tab

  1. Select the type of shape you want to detect.
  2. Set the Descriptor values to indicate the size of the shapes to return.

Settings Tab

  1. Specify the minimum score a detected shape can have to be considered a valid match. This value can range from 0 to 1000, where a score of 1000 indicates a perfect match.
  2. Enable Search for Matches that are Rotated, Scaled, or Occluded to indicate that a match may be a rotated, scaled, or occluded version of the shape you want to detect. Specify an acceptable range for each parameter to restrict the amount of rotation, scale, or occlusion allowed in a valid shape.
  3. Click OK to save this step to the script.