Takes an image file and returns a list of words that describe the dominant colors so..
ColorWords::dominant_colors_names("image.png")
will return:
["dark plum", "dark blue", "tiffany blue", "burnt red", "lime yellow"]
Add this line to your application's Gemfile:
gem 'color_words'
And then execute:
$ bundle
Or install it yourself as:
$ gem install color_words
This could be useful for indexing images and being able to search by color or group together images by color ressemblance.
- Fork it ( https://github.com/[my-github-username]/color_words/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request