Get dominant colors from image discarding the background

后端 未结 4 853
盖世英雄少女心
盖世英雄少女心 2021-02-02 02:42

What is the best (result, not performance) algorithm to fetch dominant colors from an image. The algorithm should discard the background of the image.

I know I can build

4条回答
  •  庸人自扰
    2021-02-02 03:19

    The colour summarizer is a pretty sweet spot for info on this subject, not to mention their seemingly free XML Web API that will produce descriptive colour statistics for an image of your choosing, reporting back the following formatted with swatches in HTML or as XML...

    • what is the average color hue, saturation and value in my image?
    • what is the RGB colour that is most representative of the image?
    • what do the RGB and HSV histograms look like?
    • what is the image's human readable colour description (e.g. dark pure blue)?

    The purpose of this utility is to generate metadata that summarizes an image's colour characteristics for inclusion in an image database, such as Flickr. In particular this tool is being used to generate metadata for Flickr's Color Fields group.

    enter image description here

    In my experience though.. this tool still misses the "human-readable" / obvious "main" color, A LOT of the time. Silly machines!

提交回复
热议问题