How to find the Dominant color in image?

后端 未结 9 577
花落未央
花落未央 2020-12-07 13:34

i want to find the dominant color in image, how can i do it ?

it would be great if i can get this in HEX code (exm: #eeeeee)

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-07 13:58

    Though its in javascript but color-thief is best for getting dominant color in image.

    https://github.com/lokesh/color-thief

提交回复
热议问题