RapidAPI logo

AWSRekognition

FREE
By serg.osipchuk
Updated a year ago
Visual Recognition
5.2/10
Popularity Score
287ms
Latency
100%
Success Rate

AWSRekognition API Documentation

Detect objects, scenes, and faces in images

View API Details
POSTcompareFacesInImages
POSTcompareFacesInS3Images
POSTcreateCollection
POSTdeleteCollection
POSTdeleteFacesFromCollection
POSTdetectFacesInImage
POSTdetectFacesInS3Image
POSTdetectLabelsInImage
POSTdetectLabelsInS3Image
POSTgetCollections
POSTgetFacesInCollection
POSTindexFacesIntoCollection
POSTindexS3FacesIntoCollection
POSTsearchFaces
POSTsearchFacesByImage
POSTsearchFacesByS3Image
POSTcompareFacesInImages

Compares a face in the source input image with each face detected in the target input image.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
apiSecretCREDENTIALS
REQUIREDAPI secret obtained from Amazon
sourceImageFILE
REQUIREDFile or url
targetImageFILE
REQUIREDFile or url
apiKeyCREDENTIALS
REQUIREDAPI key obtained from Amazon
Optional Parameters
regionSELECT
OPTIONALAWS Region. Supported values: `us-east-1` (N. Virginia) and `us-west-2` (Oregon)
similarityThresholdNUMBER
OPTIONALThe minimum level of confidence in the match you want included in the result.
Code Snippet
unirest.post("https://AWSRekognitionserg-osipchukV1.p.rapidapi.com/compareFacesInImages")
.header("X-RapidAPI-Host", "AWSRekognitionserg-osipchukV1.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
General
Request URL: https://AWSRekognitionserg-osipchukV1.p.rapidapi.com/compareFacesInImages
Request Method: POST
Response Headers
Response Body
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://AWSRekognitionserg-osipchukV1.p.rapidapi.com/compareFacesInImages")
.header("X-RapidAPI-Host", "AWSRekognitionserg-osipchukV1.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