Patent ID: 8897604

Claim:
A method comprising: determining, using one or more processors, an image quality score associated with an image, including: determining a foreground and a background in the image; calculating a set of one or more characteristic parameters of the image based on the foreground and the background; and calculating the image quality score based at least in part on the set of characteristic parameters, wherein calculating the image quality score comprises using an image quality computation model that has been pre-trained; and in response to a search query, generating a set of search results that includes a set of images, wherein inclusion of the images or ranking of the search results is based at least in part on image quality scores associated with the set of images; wherein determining the foreground and the background in the image comprises: determining an outer frame zone of the image, wherein the outer frame zone is determined using a preset value from edges of the image; clustering pixels in the outer frame zone to obtain a plurality of color zones, wherein each color zone corresponds to a color type; determining seed zones; expanding the seed zones to obtain the background in the image; and determining the foreground; and wherein determining seed zones comprises: calculating an area ratio of each color zone to an area of the outer frame zone; determining a second plurality of color zones that exceed a threshold area ratio; determining a zone flatness of each color zone in the second plurality of color zones; and determining seed zones, wherein the seed zones comprise color zones from the second plurality of color zones, and wherein the seed zones exceed a threshold color flatness value.