Tips for Effective Window Setting |
 |
| The Area Detection tool detects the size or presence of a target object by counting the number of pixels within the window through binarization. However, using a large inspection window to obtain a pixel count over a wide area may reduce the accuracy of the detection, causing minor flaws to be overlooked. In such cases, it is advisable to use multiple small windows for detection rather than a single large one, in order to minimize errors. |
 |
| In the following example, a date code is inspected. Due to lighting fluctuations, the number of pixels detected by a window will vary by a percentage of the overall pixel count. In the large inspection window, more pixels are counted and therefore there is a larger variation from part to part. This margin of error will make it difficult to tell if one character is missing over the large area. However, if a small inspection window is used for each character, the pixel count will be reduced significantly when that character is missing. This will reduce the affect of lighting fluctuations and stabilize the inspection. |
 |
The Entire Print Area is Enclosed in a Single Window |
 |
 |
 |
One window is used per character |
 |
 |