摘要 |
An image processing method. The method comprises: acquiring a gray value of each pixel in an image, and dividing the image into one or more regions according to N preset gray levels, pixels in the same region belonging to the same gray level, and N being a positive integer greater than or equal to 1; calculating the area of each region divided from the image, determining a region having the largest area, and calculating the number of the gray levels of the image; and determining whether the image is a blurred image according to the area of the region having the largest area or the number of the gray levels of the image. According to embodiments of the present invention, preprocessing of dividing an image into regions is performed, and the preprocessed picture is compared with a preset condition to determine whether the picture is a blurred image; therefore, a terminal has the function of automatically recognizing a blurred image and a user is prevented from filtering one by one blurred images not worth keeping. |