Microsoft Azure SDK for Node.js - Cognitive Services Vision
This project provides a Node.js rollup package that makes it easy to work with the Microsoft Azure Cognitive Services Vision APIs. Right now it supports:
- Node.js version: 6.x or higher
How to Install
npm install azure-cognitiveservices-vision
How to use
Create a Cognitive Services Account(ex. Computer Vision)
const msRestAzure = ; const CognitiveServicesManagement = ; 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 vision = ; let client = credentials;let fileStream = fs;client;
### Face API
let fileStream = fs;clientface;
More Detailed Information
https://azure.microsoft.com/en-us/try/cognitive-services/ under "Vision"