1. A method comprising: segmenting a foreground and a background of an image that comprises a plurality of image grids; extracting a global entropy of the image based on a grey level histogram of the image; extracting a local entropy for each image grid based on a grey level histogram of the image grid; and recognize the image based on the global entropy and the local entropies.