Face Detection API Guide

Face Detection

Overview

Detect and find human faces within an image, and returns with high accuracy face bordering boxes...

Details

Request URL:- {{apiURL}}face/detect

Method Type:-POST

Headers:-

Content-Type : application/json

Subscriptionkey : xxxxxxxxxxxx

Request Body

{
  "encoded_image": "/9j/4AAQSkZJRgABAQAAAQA……"
}

Request Parameters

Param Required Type Description
encoded_image Yes String base64 encoded string

Response Body

[
  {
    "faces": [
      {
        "quality": 94.401535,
        "points": [
          {
            "x": 71.92761,
            "y": -36.935425
          },
          {
            "x": 1560.9269,
            "y": -7.7887573
          },
          {
            "x": 35.494263,
            "y": 1824.3137
          },
          {
            "x": 1524.4935,
            "y": 1853.4603
          }
        ],
        "faceRectangle": {
          "x": 35,
          "y": 0,
          "height": 1853,
          "width": 1525
        }
      }
    ]
  }
]

Response Parameters

Param Type Description
quality float Quality score of images between 1 to 100.
faceRectangle object boundry of face
height int hight of face
width int width of face
x int x-edge of face
y int y-edge of face