다음을 통해 공유


Person Directory Operations - Get Person Face

사람 얼굴 정보를 검색합니다. 지속형 사람 얼굴은 personId로 지정됩니다. recognitionModel 및 persistedFaceId.

GET {endpoint}/face/{apiVersion}/persons/{personId}/recognitionModels/{recognitionModel}/persistedfaces/{persistedFaceId}

URI 매개 변수

Name In(다음 안에) 필수 형식 Description
apiVersion
path True

string

API 버전

endpoint
path True

string

uri

지원되는 Cognitive Services 엔드포인트(프로토콜 및 호스트 이름, 예: https://{resource-name}.cognitiveservices.azure.com).

persistedFaceId
path True

string

uuid

얼굴의 얼굴 ID입니다.

personId
path True

string

uuid

사용자의 개인 ID입니다.

recognitionModel
path True

RecognitionModel

얼굴과 연결된 'recognitionModel'입니다.

응답

Name 형식 Description
200 OK

PersonDirectoryFace

성공한 호출은 대상 지속형 얼굴의 정보(persistedFaceId 및 userData)를 반환합니다.

Other Status Codes

FaceErrorResponse

예기치 않은 오류 응답입니다.

헤더

x-ms-error-code: string

보안

Ocp-Apim-Subscription-Key

Azure AI Face 구독의 비밀 키입니다.

형식: apiKey
In(다음 안에): header

AADToken

Azure Active Directory OAuth2 흐름

형식: oauth2
Flow: accessCode
권한 부여 URL: https://api.example.com/oauth2/authorize
토큰 URL: https://api.example.com/oauth2/token

범위

Name Description
https://cognitiveservices.azure.com/.default

예제

Get Face from PersonDirectory Person

샘플 요청

GET {endpoint}/face/v1.2-preview.1/persons/85c0c630-c9c9-40f8-8a4e-f9ae4f926ea5/recognitionModels/recognition_01/persistedfaces/43897a75-8d6f-42cf-885e-74832febb055

샘플 응답

{
  "persistedFaceId": "43897a75-8d6f-42cf-885e-74832febb055",
  "userData": "your_user_data"
}

정의

Name Description
FaceError

오류 개체입니다. Face Service에서 반환된 오류 코드 및 메시지에 대한 포괄적인 세부 정보는 다음 링크를 참조하세요. https://aka.ms/face-error-codes-and-messages.

FaceErrorResponse

오류 세부 정보가 포함된 응답입니다.

PersonDirectoryFace

개인 디렉터리 사용자를 위한 Face 리소스입니다.

RecognitionModel

얼굴의 인식 모델입니다.

FaceError

오류 개체입니다. Face Service에서 반환된 오류 코드 및 메시지에 대한 포괄적인 세부 정보는 다음 링크를 참조하세요. https://aka.ms/face-error-codes-and-messages.

Name 형식 Description
code

string

서버에서 정의한 오류 코드 집합 중 하나입니다.

message

string

사람이 읽을 수 있는 오류 표현입니다.

FaceErrorResponse

오류 세부 정보가 포함된 응답입니다.

Name 형식 Description
error

FaceError

오류 개체입니다.

PersonDirectoryFace

개인 디렉터리 사용자를 위한 Face 리소스입니다.

Name 형식 Description
persistedFaceId

string

얼굴의 얼굴 ID입니다.

userData

string

얼굴에 연결된 사용자 제공 데이터입니다. 길이 제한은 1K입니다.

RecognitionModel

얼굴의 인식 모델입니다.

Name 형식 Description
recognition_01

string

"Detect"의 기본 인식 모델입니다. 2019년 3월 이전에 만든 모든 faceId는 이 인식 모델과 결합됩니다.

recognition_02

string

인식 모델은 2019년 3월에 출시되었습니다.

recognition_03

string

인식 모델은 2020년 5월에 출시됩니다.

recognition_04

string

인식 모델은 2021년 2월에 출시되었습니다. 더 나은 인식 정확도를 위해 이 인식 모델을 사용하는 것이 좋습니다.