In image processing, most of the treatment is needed prior to convert a color image to grayscale to do related to the evaluation and recognition. Convert to grayscale equation is that of an RGB value, respectively are the 3 colors r, g, b component, calculated as follows: Gray = R * 0.299 + G *0.587 + B * 0.114 Then Gray replaced 3 color components separately.