FaceOperations Class
Definition
FaceOperations operations.
public class FaceOperations : Microsoft.Azure.CognitiveServices.Vision.Face.IFaceOperations, Microsoft.Rest.IServiceOperations<Microsoft.Azure.CognitiveServices.Vision.Face.FaceClient>
type FaceOperations = class
interface IServiceOperations<FaceClient>
interface IFaceOperations
Public Class FaceOperations
Implements IFaceOperations, IServiceOperations(Of FaceClient)
- Inheritance
-
FaceOperations
- Implements
Constructors
FaceOperations(FaceClient) |
Initializes a new instance of the FaceOperations class. |
Properties
Client |
Gets a reference to the FaceClient |
Methods
DetectWithStreamWithHttpMessagesAsync(Stream, Nullable<Boolean>, Nullable<Boolean>, IList<FaceAttributeType>, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) |
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
DetectWithStreamWithHttpMessagesAsync(Stream, Nullable<Boolean>, Nullable<Boolean>, IList<Nullable<FaceAttributeType>>, String, Nullable<Boolean>, String, Dictionary<String,List<String>>, CancellationToken) | |
DetectWithUrlWithHttpMessagesAsync(String, Nullable<Boolean>, Nullable<Boolean>, IList<FaceAttributeType>, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) |
Detect human faces in an image, return face rectangles, and optionally with faceIds, landmarks, and attributes.<br />
|
DetectWithUrlWithHttpMessagesAsync(String, Nullable<Boolean>, Nullable<Boolean>, IList<Nullable<FaceAttributeType>>, String, Nullable<Boolean>, String, Dictionary<String,List<String>>, CancellationToken) | |
FindSimilarWithHttpMessagesAsync(Guid, String, String, IList<Nullable<Guid>>, Nullable<Int32>, FindSimilarMatchMode, Dictionary<String,List<String>>, CancellationToken) |
Given query face's faceId, to search the similar-looking faces from a faceId array, a face list or a large face list. faceId array contains the faces created by Face - Detect, which will expire 24 hours after creation. A "faceListId" is created by FaceList - Create containing persistedFaceIds that will not expire. And a "largeFaceListId" is created by LargeFaceList - Create containing persistedFaceIds that will also not expire. Depending on the input the returned similar faces list contains faceIds or persistedFaceIds ranked by similarity. <br/>Find similar has two working modes, "matchPerson" and "matchFace". "matchPerson" is the default mode that it tries to find faces of the same person as possible by using internal same-person thresholds. It is useful to find a known person's other photos. Note that an empty list will be returned if no faces pass the internal thresholds. "matchFace" mode ignores same-person thresholds and returns ranked similar faces anyway, even the similarity is low. It can be used in the cases like searching celebrity-looking faces. <br/>The 'recognitionModel' associated with the query face's faceId should be the same as the 'recognitionModel' used by the target faceId array, face list or large face list. |
GroupWithHttpMessagesAsync(IList<Guid>, Dictionary<String,List<String>>, CancellationToken) |
Divide candidate faces into groups based on face similarity.<br />
|
GroupWithHttpMessagesAsync(IList<Nullable<Guid>>, Dictionary<String,List<String>>, CancellationToken) | |
IdentifyWithHttpMessagesAsync(IList<Guid>, String, String, Nullable<Int32>, Nullable<Double>, Dictionary<String,List<String>>, CancellationToken) |
1-to-many identification to find the closest matches of the specific query person face from a person group or large person group. <br/> For each face in the faceIds array, Face Identify will compute similarities between the query face and all the faces in the person group (given by personGroupId) or large person group (given by largePersonGroupId), and return candidate person(s) for that face ranked by similarity confidence. The person group/large person group should be trained to make it ready for identification. See more in PersonGroup - Train and LargePersonGroup - Train. <br/> Remarks:<br />
|
IdentifyWithHttpMessagesAsync(IList<Nullable<Guid>>, String, String, Nullable<Int32>, Nullable<Double>, Dictionary<String,List<String>>, CancellationToken) | |
VerifyFaceToFaceWithHttpMessagesAsync(Guid, Guid, Dictionary<String,List<String>>, CancellationToken) |
Verify whether two faces belong to a same person or whether one face belongs to a person. <br/> Remarks:<br />
|
VerifyFaceToPersonWithHttpMessagesAsync(Guid, Guid, String, String, Dictionary<String,List<String>>, CancellationToken) |
Verify whether two faces belong to a same person. Compares a face Id with a Person Id |
Extension Methods
DetectWithStreamAsync(IFaceOperations, Stream, Nullable<Boolean>, Nullable<Boolean>, IList<FaceAttributeType>, String, Nullable<Boolean>, CancellationToken) |
Detect human faces in an image and returns face locations, and optionally with faceIds, landmarks, and attributes. |
DetectWithStreamAsync(IFaceOperations, Stream, Nullable<Boolean>, Nullable<Boolean>, IList<Nullable<FaceAttributeType>>, String, Nullable<Boolean>, String, CancellationToken) | |
DetectWithUrlAsync(IFaceOperations, String, Nullable<Boolean>, Nullable<Boolean>, IList<FaceAttributeType>, String, Nullable<Boolean>, CancellationToken) |
Detect human faces in an image, return face rectangles, and optionally with faceIds, landmarks, and attributes.<br />
|
DetectWithUrlAsync(IFaceOperations, String, Nullable<Boolean>, Nullable<Boolean>, IList<Nullable<FaceAttributeType>>, String, Nullable<Boolean>, String, CancellationToken) | |
FindSimilarAsync(IFaceOperations, Guid, String, String, IList<Nullable<Guid>>, Nullable<Int32>, FindSimilarMatchMode, CancellationToken) |
Given query face's faceId, to search the similar-looking faces from a faceId array, a face list or a large face list. faceId array contains the faces created by Face - Detect, which will expire 24 hours after creation. A "faceListId" is created by FaceList - Create containing persistedFaceIds that will not expire. And a "largeFaceListId" is created by LargeFaceList - Create containing persistedFaceIds that will also not expire. Depending on the input the returned similar faces list contains faceIds or persistedFaceIds ranked by similarity. <br/>Find similar has two working modes, "matchPerson" and "matchFace". "matchPerson" is the default mode that it tries to find faces of the same person as possible by using internal same-person thresholds. It is useful to find a known person's other photos. Note that an empty list will be returned if no faces pass the internal thresholds. "matchFace" mode ignores same-person thresholds and returns ranked similar faces anyway, even the similarity is low. It can be used in the cases like searching celebrity-looking faces. <br/>The 'recognitionModel' associated with the query face's faceId should be the same as the 'recognitionModel' used by the target faceId array, face list or large face list. |
GroupAsync(IFaceOperations, IList<Guid>, CancellationToken) |
Divide candidate faces into groups based on face similarity.<br />
|
GroupAsync(IFaceOperations, IList<Nullable<Guid>>, CancellationToken) | |
IdentifyAsync(IFaceOperations, IList<Guid>, String, String, Nullable<Int32>, Nullable<Double>, CancellationToken) |
1-to-many identification to find the closest matches of the specific query person face from a person group or large person group. <br/> For each face in the faceIds array, Face Identify will compute similarities between the query face and all the faces in the person group (given by personGroupId) or large person group (given by largePersonGroupId), and return candidate person(s) for that face ranked by similarity confidence. The person group/large person group should be trained to make it ready for identification. See more in PersonGroup - Train and LargePersonGroup - Train. <br/> Remarks:<br />
|
IdentifyAsync(IFaceOperations, IList<Nullable<Guid>>, String, String, Nullable<Int32>, Nullable<Double>, CancellationToken) | |
VerifyFaceToFaceAsync(IFaceOperations, Guid, Guid, CancellationToken) |
Verify whether two faces belong to a same person or whether one face belongs to a person. <br/> Remarks:<br />
|
VerifyFaceToPersonAsync(IFaceOperations, Guid, Guid, String, String, CancellationToken) |
Verify whether two faces belong to a same person. Compares a face Id with a Person Id |