From b7ed6f172dde7d7472ddb9deb8c2ffadc856068a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 2 Feb 2024 15:37:28 +0000 Subject: [PATCH] update pages --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 1b5a30a..c9a9f57 100644 --- a/index.html +++ b/index.html @@ -2234,7 +2234,7 @@

Clients

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": "ImageWidth",
          • "range": [
            ]
          }
        ]
      },
    • "attributes": {
      • "config": [
        • {
          • "name": "ImageWidth",
          • "range": [
            ]
          }
        ]
      }
    },
  • "image": "string",
  • "thumbnails": false
}

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.

+
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": "ImageWidth",
          • "range": [
            ]
          }
        ]
      },
    • "attributes": {
      • "config": [
        • {
          • "name": "Age"
          }
        ]
      }
    },
  • "image": "string",
  • "thumbnails": false
}

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
name
string

Person name.

object

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

groups
Array of strings <uuid>

Groups a person should be placed to. If no group is specified in request, a Default group is created and the person is placed to it.

@@ -2515,7 +2515,7 @@

Clients

Response Schema: application/json
property name*
additional property
any

Response samples

Content type
application/json
{ }