Person Group Operations - Get Large Person Group
擷取大型人員群組的資訊,包括其名稱、userData 和 recognitionModel。 此 API 只會傳回大型人員群組資訊,請改用「取得大型人員群組人員」,以擷取大型人員群組底下的人員資訊。
GET {endpoint}/face/{apiVersion}/largepersongroups/{largePersonGroupId}
GET {endpoint}/face/{apiVersion}/largepersongroups/{largePersonGroupId}?returnRecognitionModel={returnRecognitionModel}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
api
|
path | True |
string |
API 版本 |
endpoint
|
path | True |
string uri |
支持的認知服務端點(通訊協定和主機名,例如:https://{resource-name}.cognitiveservices.azure.com)。 |
large
|
path | True |
string |
容器的標識碼。 Regex 模式: |
return
|
query |
boolean |
傳回 'recognitionModel' 或否。 默認值為 false。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
成功的呼叫會傳回大型人員群組的資訊。 |
|
Other Status Codes |
未預期的錯誤回應。 標題 x-ms-error-code: string |
安全性
Ocp-Apim-Subscription-Key
Azure AI 臉部訂用帳戶的秘密密鑰。
類型:
apiKey
位於:
header
AADToken
Azure Active Directory OAuth2 流程
類型:
oauth2
Flow:
accessCode
授權 URL:
https://api.example.com/oauth2/authorize
權杖 URL:
https://api.example.com/oauth2/token
範圍
名稱 | Description |
---|---|
https://cognitiveservices.azure.com/.default |
範例
Get LargePersonGroup
範例要求
GET {endpoint}/face/v1.2-preview.1/largepersongroups/your_large_person_group_id?returnRecognitionModel=True
範例回覆
{
"name": "your_large_person_group_name",
"userData": "your_user_data",
"recognitionModel": "recognition_01",
"largePersonGroupId": "your_large_person_group_id"
}
定義
名稱 | Description |
---|---|
Face |
error 物件。 如需臉部服務所傳回錯誤碼和訊息的完整詳細數據,請參閱下列連結:https://aka.ms/face-error-codes-and-messages。 |
Face |
包含錯誤詳細數據的回應。 |
Large |
上傳人員數據的容器,包括臉部辨識功能,以及最多1,000,000人。 |
Recognition |
臉部的辨識模型。 |
FaceError
error 物件。 如需臉部服務所傳回錯誤碼和訊息的完整詳細數據,請參閱下列連結:https://aka.ms/face-error-codes-and-messages。
名稱 | 類型 | Description |
---|---|---|
code |
string |
其中一組伺服器定義的錯誤碼。 |
message |
string |
錯誤的人類可讀取表示法。 |
FaceErrorResponse
包含錯誤詳細數據的回應。
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
LargePersonGroup
上傳人員數據的容器,包括臉部辨識功能,以及最多1,000,000人。
名稱 | 類型 | Description |
---|---|---|
largePersonGroupId |
string |
容器的標識碼。 |
name |
string |
用戶定義的名稱,最大長度為128。 |
recognitionModel |
辨識模型的名稱。 辨識模型會在擷取臉部特徵並與偵測到的faceId相關聯時使用。 |
|
userData |
string |
選擇性的使用者定義數據。 長度不應超過 16K。 |
RecognitionModel
臉部的辨識模型。
名稱 | 類型 | Description |
---|---|---|
recognition_01 |
string |
「偵測」的預設辨識模型。 所有在 2019 年 3 月之前建立的 faceId 都會與這個辨識模型結合。 |
recognition_02 |
string |
辨識模型於 2019 年 3 月發行。 |
recognition_03 |
string |
辨識模型於 2020 年 5 月發行。 |
recognition_04 |
string |
辨識模型於 2021 年 2 月發行。 建議您使用此辨識模型來提升辨識精確度。 |