次の方法で共有


Person Group Operations - Get Person Group Person

人物の name と userData、および登録された人物の顔特徴に対応する persistedFaceIds を取得します。

GET {endpoint}/face/{apiVersion}/persongroups/{personGroupId}/persons/{personId}

URI パラメーター

名前 / 必須 説明
apiVersion
path True

string

API バージョン

endpoint
path True

string

uri

サポートされている Cognitive Services エンドポイント (プロトコルとホスト名(例: https://{resource-name}.cognitiveservices.azure.com)。

personGroupId
path True

string

コンテナーの ID。

Regex pattern: ^[a-z0-9-_]+$

personId
path True

string

uuid

ユーザーの ID。

応答

名前 説明
200 OK

PersonGroupPerson

呼び出しが成功すると、そのユーザーの情報が返されます。

Other Status Codes

FaceErrorResponse

予期しないエラー応答。

Headers

x-ms-error-code: string

セキュリティ

Ocp-Apim-Subscription-Key

Azure AI Face サブスクリプションの秘密キー。

Type: apiKey
In: header

AADToken

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: accessCode
Authorization URL: https://api.example.com/oauth2/authorize
Token URL: https://api.example.com/oauth2/token

Scopes

名前 説明
https://cognitiveservices.azure.com/.default

Get Person from PersonGroup

Sample Request

GET {endpoint}/face/v1.1-preview.1/persongroups/your_person_group_id/persons/25985303-c537-4467-b41d-bdb45cd95ca1

Sample Response

{
  "personId": "25985303-c537-4467-b41d-bdb45cd95ca1",
  "name": "your_person_group_person_name",
  "userData": "your_user_data",
  "persistedFaceIds": [
    "43897a75-8d6f-42cf-885e-74832febb055"
  ]
}

定義

名前 説明
FaceError

error オブジェクト。 Face Service によって返されるエラー コードとメッセージの詳細については、次のリンクを参照してください。 https://aka.ms/face-error-codes-and-messages

FaceErrorResponse

エラーの詳細を含む応答。

PersonGroupPerson

指定したユーザー グループ内のユーザー。 このユーザーに顔を追加するには、"Add Large Person Group Person Face" を呼び出してください。

FaceError

error オブジェクト。 Face Service によって返されるエラー コードとメッセージの詳細については、次のリンクを参照してください。 https://aka.ms/face-error-codes-and-messages

名前 説明
code

string

サーバー定義のエラー コードのセットの 1 つ。

message

string

エラーの人間が判読できる表現。

FaceErrorResponse

エラーの詳細を含む応答。

名前 説明
error

FaceError

error オブジェクト。

PersonGroupPerson

指定したユーザー グループ内のユーザー。 このユーザーに顔を追加するには、"Add Large Person Group Person Face" を呼び出してください。

名前 説明
name

string

ユーザー定義の名前。最大長は 128 です。

persistedFaceIds

string[]

人物に登録されている顔の顔 ID。

personId

string

ユーザーの ID。

userData

string

省略可能なユーザー定義データ。 長さは 16,000 を超えないようにしてください。