Abstract—According to the problem of color recognition of
clothes for image searching on web, a kind of clustering main
color detection with one step of k-means and one step of mean
shift is adopted and the color of clothes can be detected
accurately. It uses the k-means to extract the background and
foreground of a picture, which contains the information of a
person dressed up with a color cloth in a complex background.