This is a very basic wrapper for the Microsoft Computer Vision API.
Add this line to your application's Gemfile:
gem 'microsoft_computer_vision'
And then execute:
$ bundle
Or install it yourself as:
$ gem install microsoft_computer_vision
$ mscv analyze /path/to/image --subscription_key your_subscription_key
require 'microsoft_computer_vision'
client = MicrosoftComputerVision::Client.new('your_subscription_key')
options = {
visual_features: 'Faces',
details: 'Celebrities'
}
res = client.analyze('http://example.com/images/test.jpg', options)
puts res.body
Please see example.
Bug reports and pull requests are welcome on GitHub at https://github.com/henteko/microsoft_computer_vision.