RapidAPI logo

Sign Up

Log In

Microsoft Computer Vision

FREEMIUM
By microsoft-azureOfficial
Updated 3 months ago
Visual Recognition
9.2/10
Popularity Score
1106ms
Latency
96%
Success Rate

Microsoft Computer Vision API Documentation

The Computer Vision API provides state-of-the-art algorithms to process images and return information.

View API Details
POSTAnalyze Image [File]
POSTAnalyze Image [URL]
POSTDescribe Image [File]
POSTDescribe Image [URL]
POSTGenerate Thumbnail [File]
POSTGenerate Thumbnail [URL]
POSTOCR [File]
POSTOCR [URL]
POSTAnalyze Image [File]

Extract a rich set of visual features based on the image content.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
imageBINARY
REQUIREDThe image to be analyzed.
Optional Parameters
visualfeaturesSTRING
OPTIONALA string indicating what visual feature types to return. Multiple values should be comma-separated. Valid visual feature types include: Categories, Tags, Description, Faces, ImageType, Color, Adult
detailsSTRING
OPTIONALA string indicating which domain-specific details to return. Multiple values should be comma-separated. Valid visual feature types include: Celebrities, Landmarks.
languageSTRING
OPTIONALA string indicating which language to return. The service will return recognition results in specified language. If this parameter is not specified, the default value is "en". Supported languages: en, zh.
Request Snippet
unirest.post("https://microsoft-azure-microsoft-computer-vision-v1.p.rapidapi.com/analyze?visualfeatures=Categories%2CTags%2CColor%2CFaces%2CDescription")
.header("X-RapidAPI-Host", "microsoft-azure-microsoft-computer-vision-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://microsoft-azure-microsoft-computer-vision-v1.p.rapidapi.com/analyze?visualfeatures=Categories%2CTags%2CColor%2CFaces%2CDescription")
.header("X-RapidAPI-Host", "microsoft-azure-microsoft-computer-vision-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication