diff --git a/index.html b/index.html index 7cb33a3..57a2bde 100644 --- a/index.html +++ b/index.html @@ -2232,7 +2232,7 @@
Response Schema: application/json
code
required
integer (FaceSDKResultCode)
Enum: 0 1 2 3 4 … 34 more
object (DetectResult)

Request samples

Content type
application/json
{
  • "tag": "string",
  • "processParam": {
    • "scenario": "OldMode",
    • "onlyCentralFace": false,
    • "outputImageParams": {
      • "backgroundColor": [
        • 128,
        • 128,
        • 128
        ],
      • "crop": {
        • "type": 0,
        • "padColor": [
          • 128,
          • 128,
          • 128
          ],
        • "size": [
          • 300,
          • 400
          ],
        • "returnOriginalRect": true
        }
      },
    • "quality": {
      • "backgroundMatchColor": [
        • 128,
        • 128,
        • 128
        ],
      • "config": [
        • {
          • "name": "Age",
          • "range": [
            ]
          }
        ]
      },
    • "attributes": false
    },
  • "image": "string",
  • "thumbnails": false,
  • "attributes": {
    • "config": [
      • {
        • "name": "Age",
        • "range": [
          • "x",
          • "y"
          ]
        }
      ]
    }
}

Response samples

Content type
application/json
{
  • "code": 0,
  • "results": {
    • "detections": [
      • {
        • "crop": "string",
        • "attributes": {
          • "age": "adult",
          • "emotion": "smile"
          },
        • "landmarks": [
          • [
            ]
          ],
        • "quality": {
          • "nonCompliant": [
            ],
          • "detailsGroups": [
            ],
          • "details": [
            ],
          • "score": -1,
          • "timer": 0.420364111661911
          },
        • "roi": [
          • "x",
          • "y",
          • "width",
          • "height"
          ],
        • "thumbnail": "string"
        }
      ],
    • "detectorType": 0,
    • "landmarksType": 0,
    • "scenario": "OldMode",
    • "timer": 0.8479356
    }
}

person

Create person

header Parameters
X-RequestID
string

Request header label.

+
http://localhost:41101/api/detect

Request samples

Content type
application/json
{
  • "tag": "string",
  • "processParam": {
    • "scenario": "OldMode",
    • "onlyCentralFace": false,
    • "outputImageParams": {
      • "backgroundColor": [
        • 128,
        • 128,
        • 128
        ],
      • "crop": {
        • "type": 0,
        • "padColor": [
          • 128,
          • 128,
          • 128
          ],
        • "size": [
          • 300,
          • 400
          ],
        • "returnOriginalRect": true
        }
      },
    • "quality": {
      • "backgroundMatchColor": [
        • 128,
        • 128,
        • 128
        ],
      • "config": [
        • {
          • "name": "Age",
          • "range": [
            ]
          }
        ]
      },
    • "attributes": false
    },
  • "image": "string",
  • "thumbnails": false,
  • "attributes": {
    • "config": [
      • {
        • "name": "Age",
        • "range": [
          • "x",
          • "y"
          ]
        }
      ]
    }
}

Response samples

Content type
application/json
{
  • "code": 0,
  • "results": {
    • "detections": [
      • {
        • "crop": "string",
        • "attributes": {
          • "details": [
            ],
          • "elapsedTime": 0
          },
        • "landmarks": [
          • [
            ]
          ],
        • "quality": {
          • "nonCompliant": [
            ],
          • "detailsGroups": [
            ],
          • "details": [
            ],
          • "score": -1,
          • "timer": 0.420364111661911
          },
        • "roi": [
          • "x",
          • "y",
          • "width",
          • "height"
          ],
        • "thumbnail": "string"
        }
      ],
    • "detectorType": 0,
    • "landmarksType": 0,
    • "scenario": "OldMode",
    • "timer": 0.8479356
    }
}

person

Create person

header Parameters
X-RequestID
string

Request header label.

Request Body schema: application/json
tag
string

Session identificator.

name
string

Person name.

object

A free-form object containing person's extended attributes.

@@ -2518,7 +2518,7 @@
Response Schema: application/json
property name*
additional property
any

Response samples

Content type
application/json
{ }