Aligner Block finds an object of interest in all incoming images. You can use an Aligner Block before an ROI (Region of Interest) Block to make the defined inspection regions dynamic and adapt to the current orientation of the object. Using aligner allows you to align all incoming images to match up perfectly with your template image. This allows you to do fine grain inspections later on, tells you the rotation offset, and the (x,y) coordinate of the image.

<aside> 💡 #1 TIP: Make sure that the “Template Region” you use for your aligner is NOT in an area that could have defects. This will prevent aligner from finding part.

</aside>

☑️How To:

  1. Click on the Edit option under the Alignment Block

    Untitled

  2. [Optional] Toggle Skip Aligner to On if your inspection does not require an alignment step.

    Untitled

  3. Otherwise, go the Template Regions and select your shape option to define your alignment region: square or circle. You should only include parts of the object that will be present in a consistent way across all incoming images and in all parts of the field of view.

    Untitled

  4. Define the Template Regions by moving your cursor and drawing the selected shape type around your targeted area. To create additional template regions, click on either square or circle and repeat the process until all regions have been identified. Make sure to only align on things that don’t change from part to part.

    Untitled

  5. Increase the Sensitivity until you are able to see green lines within all of the template regions. You should adjust edge sensitivity to a value where you are able to pick up all the edges that will consistently show up in all images and exclude all other edges.

    Untitled



    Untitled

  6. Ignore Template Regions should be leveraged when the increased sensitivity yields excess “noise” that creates lines outside of the intended aligned area. You can use the eraser tool to remove the excess lines.

    Untitled

    Untitled

  7. Rotation Range represents the amount of degrees the object can be rotated and still be recognized by the aligner. To increase or decrease the range of rotation, enter the numeric value that you want to set for your inspection in the Rotation Range tab.

  8. The Mode options - Fast or Accurate, will dictate the prioritization of speed or accuracy when running your model. Fast mode prioritizes speed and may sacrifice some level of precision, while accurate mode provides higher precision but may take longer processing time.

  9. The Confidence Threshold is approximately the proportion of the defined edges the Aligner Block is able to find in the current image, i.e., A 70% confidence score roughly means that the Aligner Block was able to successfully find 70% of the defined edges in the current image. ****

  10. Save your settings and select the Live Preview Mode to determine your Confidence Score and Processing Time.

    Untitled


💡Tips & Best Practices

Template Regions

  1. You can use one or multiple template regions to define which parts of the object to use to determine the object’s orientation.