The RGB color mode is a color standard in the industrial field. It acquires different colors by changing the three color channels of red (R), green (G), and blue (B) and their superposition on each other. RGB represents the colors of the red, green and blue channels, basically covering all the colors that human vision can perceive. It is also one of the most widely used color systems at present.
The RGB color mode uses the RGB model to assign an intensity value within the range of 0 to 255 to the RGB component of each pixel in the image. An RGB image only uses three colors, which can be mixed in different proportions to present 16,777,216 (255 * 255 * 255) colors on the screen.
As shown in the following figure
Color name | Red value (red) | Green value (Green) | Blue value (Blue) |
---|---|---|---|
Black | 0 | 0 | 0 |
Blue | 0 | 0 | 255 |
Green | 0 | 255 | 0 |
Cyan | 0 | 255 | 255 |
Red | 255 | 0 | 0 |
Magenta | 255 | 0 | 255 |
Yellow | 255 | 255 | 0 |
White | 255 | 255 | 255 |
The above colors are the commonly used basic colors.
During AOI inspection, the color of each pixel in the component image captured by the camera is composed of three different values of RGB. By calculating the variation range of each value of RGB, the variation range of the component can be detected.
In terms of the characteristics of color analysis and data analysis: AOI has a good detection rate for defects with relatively concentrated colors in SMT components, such as missing or incorrect parts of capacitors and ics, and its programming and debugging are also very simple.