Partager via


PersonDirectoryExtensions.AddPersonFaceFromStreamAsync Méthode

Définition

Surcharges

AddPersonFaceFromStreamAsync(IPersonDirectory, Guid, String, Stream, String, String, String, CancellationToken)
AddPersonFaceFromStreamAsync(IPersonDirectory, String, String, Stream, String, String, String, CancellationToken)
Obsolète.

AddPersonFaceFromStreamAsync(IPersonDirectory, Guid, String, Stream, String, String, String, CancellationToken)

Source:
PersonDirectoryExtensions.cs
public static System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.EnrollmentPrintResponse,Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryAddPersonFaceFromStreamHeaders>> AddPersonFaceFromStreamAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory operations, Guid personId, string recognitionModel, System.IO.Stream image, string detectionModel = default, string userData = default, string targetFace = default, System.Threading.CancellationToken cancellationToken = default);
static member AddPersonFaceFromStreamAsync : Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory * Guid * string * System.IO.Stream * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.EnrollmentPrintResponse, Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryAddPersonFaceFromStreamHeaders>>
<Extension()>
Public Function AddPersonFaceFromStreamAsync (operations As IPersonDirectory, personId As Guid, recognitionModel As String, image As Stream, Optional detectionModel As String = Nothing, Optional userData As String = Nothing, Optional targetFace As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of EnrollmentPrintResponse, PersonDirectoryAddPersonFaceFromStreamHeaders))

Paramètres

operations
IPersonDirectory
personId
Guid
recognitionModel
String
image
Stream
detectionModel
String
userData
String
targetFace
String
cancellationToken
CancellationToken

Retours

S’applique à

AddPersonFaceFromStreamAsync(IPersonDirectory, String, String, Stream, String, String, String, CancellationToken)

Source:
PersonDirectoryExtensions.cs

Attention

Method is being deprecated, consider using other overloads.

[System.Obsolete("Method is being deprecated, consider using other overloads.", false)]
public static System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.EnrollmentPrintResponse,Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryAddPersonFaceFromStreamHeaders>> AddPersonFaceFromStreamAsync (this Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory operations, string personId, string recognitionModel, System.IO.Stream image, string detectionModel = default, string userData = default, string targetFace = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Method is being deprecated, consider using other overloads.", false)>]
static member AddPersonFaceFromStreamAsync : Microsoft.Azure.CognitiveServices.Vision.Face.IPersonDirectory * string * string * System.IO.Stream * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.Vision.Face.Models.EnrollmentPrintResponse, Microsoft.Azure.CognitiveServices.Vision.Face.Models.PersonDirectoryAddPersonFaceFromStreamHeaders>>
<Extension()>
Public Function AddPersonFaceFromStreamAsync (operations As IPersonDirectory, personId As String, recognitionModel As String, image As Stream, Optional detectionModel As String = Nothing, Optional userData As String = Nothing, Optional targetFace As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of EnrollmentPrintResponse, PersonDirectoryAddPersonFaceFromStreamHeaders))

Paramètres

operations
IPersonDirectory
personId
String
recognitionModel
String
image
Stream
detectionModel
String
userData
String
targetFace
String
cancellationToken
CancellationToken

Retours

Attributs

S’applique à