The application scope of the aoi algorithm - polarity reversal
The application of algorithms is a key part of the application of AOI(Automatic Optical Inspection Instrument) algorithms in the field of inspection. Shenzhou Vision AOI has over 20 algorithms, and each algorithm has its specific purpose. Therefore, on the basis of being familiar with and understanding various AOI algorithms, applying AOI algorithms to each detection item is the prerequisite for AOI engineers to create detection programs.
Reverse polarity is a necessary test item for detecting the direction of polar components. The selectable algorithms for detecting missing parts include TOC, Match, OCV, OCR and Histogram algorithms. Among them, the detection algorithms of TOC, Match, OCV and OCR are consistent with those of the erroneous items. The Histogram class detection algorithm uses the maximum value (minimum value) to detect whether the polarity inversion phenomenon occurs in the component. In polar components, there exists a polarity mark. The brightness of this polarity mark is significantly greater (less than) the brightness of the component itself. The maximum (minimum) value can be used to detect and determine whether the component has reversed polarity. If there is a high-brightness area in the polar element and the brightness of this brightness area is greater than 200, the determination range (200, 255) can be set, and the maximum value algorithm can be used for detection, as follows:
In the above figure, if the ratio is set to 5, the detection mode is set to Max, and the return value is 243, then the direction of this component is correct.