Faces Interface
public interface Faces
An instance of this class provides access to all the operations defined in Faces.
Method Summary
Modifier and Type | Method and Description |
---|---|
FacesDetectWithStreamDefinitionStages.WithImage |
detectWithStream()
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
List<Detected |
detectWithStream(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter)
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
Observable<List<Detected |
detectWithStreamAsync(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter)
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
FacesDetectWithUrlDefinitionStages.WithUrl |
detectWithUrl()
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
List<Detected |
detectWithUrl(String url, DetectWithUrlOptionalParameter detectWithUrlOptionalParameter)
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
Observable<List<Detected |
detectWithUrlAsync(String url, DetectWithUrlOptionalParameter detectWithUrlOptionalParameter)
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
FacesFindSimilarDefinitionStages.WithFaceId |
findSimilar()
Given query face's faceId, find the similar-looking faces from a faceId array or a faceListId. |
List<Similar |
findSimilar(UUID faceId, FindSimilarOptionalParameter findSimilarOptionalParameter)
Given query face's faceId, find the similar-looking faces from a faceId array or a faceListId. |
Observable<List<Similar |
findSimilarAsync(UUID faceId, FindSimilarOptionalParameter findSimilarOptionalParameter)
Given query face's faceId, find the similar-looking faces from a faceId array or a faceListId. |
Group |
group(List<UUID> faceIds)
Divide candidate faces into groups based on face similarity. |
Observable<Group |
groupAsync(List<UUID> faceIds)
Divide candidate faces into groups based on face similarity. |
FacesIdentifyDefinitionStages.WithPersonGroupId |
identify()
Identify unknown faces from a person group. |
List<Identify |
identify(String personGroupId, List<UUID> faceIds, IdentifyOptionalParameter identifyOptionalParameter)
Identify unknown faces from a person group. |
Observable<List<Identify |
identifyAsync(String personGroupId, List<UUID> faceIds, IdentifyOptionalParameter identifyOptionalParameter)
Identify unknown faces from a person group. |
Verify |
verifyFaceToFace(UUID faceId1, UUID faceId2)
Verify whether two faces belong to a same person or whether one face belongs to a person. |
Observable<Verify |
verifyFaceToFaceAsync(UUID faceId1, UUID faceId2)
Verify whether two faces belong to a same person or whether one face belongs to a person. |
Verify |
verifyFaceToPerson(UUID faceId, String personGroupId, UUID personId)
Verify whether two faces belong to a same person. Compares a face Id with a Person Id. |
Observable<Verify |
verifyFaceToPersonAsync(UUID faceId, String personGroupId, UUID personId)
Verify whether two faces belong to a same person. Compares a face Id with a Person Id. |
Method Details
detectWithStream
public FacesDetectWithStreamDefinitionStages.WithImage detectWithStream()
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.
Returns:
detectWithStream
public List
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.
Parameters:
Returns:
Throws:
detectWithStreamAsync
public Observable> detectWithStreamAsync(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter)
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.
Parameters:
Returns:
Throws:
detectWithUrl
public FacesDetectWithUrlDefinitionStages.WithUrl detectWithUrl()
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.
Returns:
detectWithUrl
public List
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.
Parameters:
Returns:
Throws:
detectWithUrlAsync
public Observable> detectWithUrlAsync(String url, DetectWithUrlOptionalParameter detectWithUrlOptionalParameter)
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes.
Parameters:
Returns:
Throws:
findSimilar
public FacesFindSimilarDefinitionStages.WithFaceId findSimilar()
Given query face's faceId, find the similar-looking faces from a faceId array or a faceListId.
Returns:
findSimilar
public List
Given query face's faceId, find the similar-looking faces from a faceId array or a faceListId.
Parameters:
Returns:
Throws:
findSimilarAsync
public Observable> findSimilarAsync(UUID faceId, FindSimilarOptionalParameter findSimilarOptionalParameter)
Given query face's faceId, find the similar-looking faces from a faceId array or a faceListId.
Parameters:
Returns:
Throws:
group
public GroupResult group(List
Divide candidate faces into groups based on face similarity.
Parameters:
Returns:
Throws:
groupAsync
public Observable
Divide candidate faces into groups based on face similarity.
Parameters:
Returns:
Throws:
identify
public FacesIdentifyDefinitionStages.WithPersonGroupId identify()
Identify unknown faces from a person group.
Returns:
identify
public List
Identify unknown faces from a person group.
Parameters:
Returns:
Throws:
identifyAsync
public Observable> identifyAsync(String personGroupId, List
Identify unknown faces from a person group.
Parameters:
Returns:
Throws:
verifyFaceToFace
public VerifyResult verifyFaceToFace(UUID faceId1, UUID faceId2)
Verify whether two faces belong to a same person or whether one face belongs to a person.
Parameters:
Returns:
Throws:
verifyFaceToFaceAsync
public Observable
Verify whether two faces belong to a same person or whether one face belongs to a person.
Parameters:
Returns:
Throws:
verifyFaceToPerson
public VerifyResult verifyFaceToPerson(UUID faceId, String personGroupId, UUID personId)
Verify whether two faces belong to a same person. Compares a face Id with a Person Id.
Parameters:
Returns:
Throws:
verifyFaceToPersonAsync
public Observable
Verify whether two faces belong to a same person. Compares a face Id with a Person Id.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java