Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 706 Bytes

README.md

File metadata and controls

19 lines (16 loc) · 706 Bytes

Azure Cognitive Services

Basic gem to interact with Azure cognitive services via REST API

Supported services

Use example

Computer vision

service = AzureCognitiveServices::ComputerVision.new(api_key: 'API_KEY')
service.analyze_image(url: 'https://upload.wikimedia.org/wikipedia/commons/e/e5/Hotel_Puente_Romano.jpg')

Translator text

service = AzureCognitiveServices::Translator.new(api_key: 'API_KEY')
service.translate('I am too old for this', from: :en, to: [:es, :pt, :it])