Person Directory Operations - Delete Person Face
藉由指定的personId和persistedFaceId,從Person Directory中的人員刪除臉部。
將臉部新增/刪除至相同人員或從同一個人進行循序處理。 新增/刪除不同人員的人臉會平行處理。
DELETE {endpoint}/face/{apiVersion}/persons/{personId}/recognitionModels/{recognitionModel}/persistedfaces/{persistedFaceId}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
api
|
path | True |
string |
API 版本 |
endpoint
|
path | True |
string uri |
支持的認知服務端點(通訊協定和主機名,例如:https://{resource-name}.cognitiveservices.azure.com)。 |
persisted
|
path | True |
string uuid |
臉部的臉部標識碼。 |
person
|
path | True |
string uuid |
人員標識碼。 |
recognition
|
path | True |
與臉部相關聯的 『recognitionModel』。 |
回應
名稱 | 類型 | Description |
---|---|---|
202 Accepted |
成功的呼叫會傳回空的回應本文。 服務已接受要求,且即將開始處理。 用戶端可以使用 『Operation-Location』 回應標頭中指定的 URL 來查詢作業狀態和結果。 URL 會在 48 小時內到期。 標題 operation-Location: string |
|
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 |
範例
Delete Face from PersonDirectory Person
範例要求
DELETE {endpoint}/face/v1.2-preview.1/persons/85c0c630-c9c9-40f8-8a4e-f9ae4f926ea5/recognitionModels/recognition_01/persistedfaces/43897a75-8d6f-42cf-885e-74832febb055
範例回覆
location: https://contoso.com/operationstatus
operation-Location: https://contoso.com/operationstatus
定義
名稱 | Description |
---|---|
Face |
error 物件。 如需臉部服務所傳回錯誤碼和訊息的完整詳細數據,請參閱下列連結:https://aka.ms/face-error-codes-and-messages。 |
Face |
包含錯誤詳細數據的回應。 |
Recognition |
臉部的辨識模型。 |
FaceError
error 物件。 如需臉部服務所傳回錯誤碼和訊息的完整詳細數據,請參閱下列連結:https://aka.ms/face-error-codes-and-messages。
名稱 | 類型 | Description |
---|---|---|
code |
string |
其中一組伺服器定義的錯誤碼。 |
message |
string |
錯誤的人類可讀取表示法。 |
FaceErrorResponse
包含錯誤詳細數據的回應。
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
RecognitionModel
臉部的辨識模型。
名稱 | 類型 | Description |
---|---|---|
recognition_01 |
string |
「偵測」的預設辨識模型。 所有在 2019 年 3 月之前建立的 faceId 都會與這個辨識模型結合。 |
recognition_02 |
string |
辨識模型於 2019 年 3 月發行。 |
recognition_03 |
string |
辨識模型於 2020 年 5 月發行。 |
recognition_04 |
string |
辨識模型於 2021 年 2 月發行。 建議您使用此辨識模型來提升辨識精確度。 |