Microsoft Azure SDK for Node.js - Cognitive Services Computer Vision
This project provides a Node.js package that makes it easy to work with the Microsoft Azure Cognitive Services Computer Vision API. Right now it supports:
- Node.js version: 6.x or higher
How to Install
npm install azure-cognitiveservices-computervision
How to use
Create a Cognitive Services Account(ex. Computer Vision)
const msRestAzure = ; const CognitiveServicesManagement = ; const SubscriptionId = 'your-subscription-key'; const ResourceGroup = 'your-resource-group-name'; const ResourceName = 'resource-name'; let client; let createAccount = msRestAzure;
List the keys from the created account
let serviceKey; createAccount;
Create credentials
const CognitiveServicesCredentials = CognitiveServicesCredentials; // Creating the Cognitive Services credentials// This requires a key corresponding to the service being used (i.e. text-analytics, etc)let credentials = serviceKey;
Computer Vision API
const ComputerVisionClient = ; let client = credentials 'https://westus.api.cognitive.microsoft.com';let fileStream = ;client;
More Detailed Information
https://azure.microsoft.com/en-us/try/cognitive-services/ under "Vision"