Hawk Vision — Dominant Colors Addon

一般的なドミナントカラー解析ライブラリによる抽出結果

Dominant ColorsアドオンによるAIを利用した抽出結果

  • 各色のドミナントカラーとしての強さを示す「Score」
  • 各色の画像中の使用率の高さ(=面積)を示す「Pixel Fraction」

専用メソッド hawkvision_get_dominant_colors

Request

$dominant_colors = hawkvision_get_dominant_colors(array(
'post_id' => 123,
'force_extract' => true
));

Return

Array
(
[status] => success
[dominant_colors] => Array
(
[0] => Array
(
[id] => 776
[post_id] => 252
[color_r] => 227
[color_g] => 30
[color_b] => 28
[hex] => e31e1c
[pixel_fraction] => 0.00673333
[score] => 0.236978
[percent] => 43.8721
)
[1] => Array
(
[id] => 777
[post_id] => 252
[color_r] => 165
[color_g] => 31
[color_b] => 33
[hex] => a51f21
[pixel_fraction] => 0.00406667
[score] => 0.0592024
[percent] => 10.9603
)
[2] => Array
(
[id] => 778
[post_id] => 252
[color_r] => 198
[color_g] => 196
[color_b] => 198
[hex] => c6c4c6
[pixel_fraction] => 0.0618
[score] => 0.0549452
[percent] => 10.1721
)

)
)

--

--

💻 Web Design and Develop @ aguije inc. / 🏄‍♂️ Pro Web Surfer / ≡ adidas SAMBA / 🚲 VanMoofer / 🎮 Nintendo Addict / 🇯🇵 nipponcolors.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Takehiko Ono

Takehiko Ono

587 Followers

💻 Web Design and Develop @ aguije inc. / 🏄‍♂️ Pro Web Surfer / ≡ adidas SAMBA / 🚲 VanMoofer / 🎮 Nintendo Addict / 🇯🇵 nipponcolors.com