FaceRect

FREE
By apicloud
Updated a month ago
Media
9.2/10
Popularity Score
2260ms
Latency
97%
Success Rate
gvynas5 years ago
On improving the response contentHi, Could you extend the response with fields "width" and "height" where original image width and height would be saved in pixels. It will be easier to transform the coordinates of faces and features when visualizing the results on images which change size in the client application. Very nice and simple API. Thank you.
apicloud5 years ago
Hi there, Thanks for your interest and suggestions! No problem, we've added additional image information field to the response, looks like this: "image": { "width" : 800, "height" : 600 } Let us know if you need anything else!
Hi Developer, feel free to post your answer:

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://apicloud-facerect.p.rapidapi.com/process-file.json")
.header("X-RapidAPI-Host", "apicloud-facerect.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