Selecting a Feature
When choosing a feature to use for your inspection, consider the following guidelines to ensure the best results:
- If you’re not using a fixture, ensure that the feature is present in roughly the same location in every image, or the region is large enough to account for the expected movement of the feature.
- The Brightness Tool is useful in applications where the feature being inspected is all one greyscale value when present (for instance, black), and the opposite when absent.
Example
In this example, two Edge Location Tools are being used on the bottle cap to fixture two Inspection Tools: a Brightness Tool, with the region set to detect the presence or absence of the liquid, and a Contrast Tool, with the region set to detect whether or not the bottle cap is correctly fastened. The Brightness Tool is focused on the liquid, because when the liquid is present, it is roughly one greyscale value (roughly 10 to 20), and another when absent (255). The Contrast Tool is focused on the bottle cap, because if the seal is broken, there will be a mixture of greyscale values, light and dark.
![]()
![]()