The invention relates to the
information processing technology, in particular to an
image processing method and device. The method includes the first step of converting an image to a gray image, obtaining the sum of variance of pixel points in a region formed by first preset values and second preset values according to the gray value of the gray image, wherein the pixel points of a human face
skin region in the gray image extend in the
positive direction and negative direction of x-axes of the pixel points to obtain the first preset values, and the pixel points of the human face
skin region in the gray image extend in the
positive direction and negative direction of y-axes of the pixel points to obtain the second preset values, the second step of obtaining a
dermabrasion weight value according to the sum of variance in the human face
skin region, the third step of regulating the gray value of the gray image according to the
dermabrasion weight value, and the fourth step of finally converting the gray image to a
color image according to the regulated gray value to achieve
processing of the image. Through the method, the image is converted to the gray image, and the gray value of the image is regulated and the image is processed according to the sum of variance of the pixel points in the human face skin region, so that
processing speed and the quality of the processed image are both enhanced.