A massive image
library retrieving method based on an optimal K mean value Hash
algorithm comprises the steps that part of images are selected from an image
library to be retrieved to serve as a training image set, and firstly
GIST characteristics of images of the training image set are extracted; characteristic value allocation preprocessing is conducted on characteristic data of the training image set; the preprocessed characteristic data are divided into a plurality of sub-spaces; a
codebook and codes of the
codebook of the corresponding sub-space are trained out for each sub-space; the
processing and training process of characteristic data in the image
library to be retrieved corresponds to the
processing and training process of characteristic data in inquiring images, the
GIST characteristics of images to be retrieved and the
GIST characteristics of the inquiring images are extracted respectively, then Hash codes of the characteristics of the images to be retrieved and Hash codes of the characteristics of the inquiring images are calculated, the
Hamming distance between the codes of the characteristics of the images to be retrieved and the codes of the characteristics of the inquiring images is calculated, and thus similar images are fast retrieved. The massive image library retrieving method based on the optimal K mean value Hash
algorithm has good universality, the storage space for data is reduced, and the inquiring retrieving efficiency is improved.