Image grayscale processing is to calculate the gray value of each pixel of the specified image by using the RGB three components of each pixel through a certain algorithm, so that the image only contains brightness and no color information. The answer card image collected at the beginning of this program is a color image, which contains a lot of color information, but the identification of the answer card does not need to care about these color information, but these color information will interfere with the identification of the answer card, and the color Information wastes a lot of data space storage. Therefore, the color information of the answer sheet can be removed by performing grayscale processing on the original image, which is beneficial to the processing of subsequent modules and can save a large amount of system storage space.
正在翻译中..