Exemplo n.º 1
0
        /// <summary>
        /// Returns an face feature data from image contains a human face.
        /// </summary>
        /// <exception cref="FaceRecognitionDotNet.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="image"> (optional)</param>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of Encoding</returns>
        public async System.Threading.Tasks.Task <Encoding> FaceEncodingEncodingPostAsync(Image image = default(Image), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            FaceRecognitionDotNet.Client.Client.ApiResponse <Encoding> localVarResponse = await FaceEncodingEncodingPostWithHttpInfoAsync(image, cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Returns an face feature data from image contains a human face.
 /// </summary>
 /// <exception cref="FaceRecognitionDotNet.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="image"> (optional)</param>
 /// <returns>Encoding</returns>
 public Encoding FaceEncodingEncodingPost(Image image = default(Image))
 {
     FaceRecognitionDotNet.Client.Client.ApiResponse <Encoding> localVarResponse = FaceEncodingEncodingPostWithHttpInfo(image);
     return(localVarResponse.Data);
 }
        /// <summary>
        /// Get all registered person data.
        /// </summary>
        /// <exception cref="FaceRecognitionDotNet.Client.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
        /// <returns>Task of List&lt;Registration&gt;</returns>
        public async System.Threading.Tasks.Task <List <Registration> > FaceRegistrationGetAllGetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            FaceRecognitionDotNet.Client.Client.ApiResponse <List <Registration> > localVarResponse = await FaceRegistrationGetAllGetWithHttpInfoAsync(cancellationToken).ConfigureAwait(false);

            return(localVarResponse.Data);
        }
 /// <summary>
 /// Returns an enumerable collection of face location correspond to all faces in specified image.
 /// </summary>
 /// <exception cref="FaceRecognitionDotNet.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="image"> (optional)</param>
 /// <returns>List&lt;FaceArea&gt;</returns>
 public List <FaceArea> FaceDetectionLocationsPost(Image image = default(Image))
 {
     FaceRecognitionDotNet.Client.Client.ApiResponse <List <FaceArea> > localVarResponse = FaceDetectionLocationsPostWithHttpInfo(image);
     return(localVarResponse.Data);
 }
 /// <summary>
 /// Get all registered person data.
 /// </summary>
 /// <exception cref="FaceRecognitionDotNet.Client.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>List&lt;Registration&gt;</returns>
 public List <Registration> FaceRegistrationGetAllGet()
 {
     FaceRecognitionDotNet.Client.Client.ApiResponse <List <Registration> > localVarResponse = FaceRegistrationGetAllGetWithHttpInfo();
     return(localVarResponse.Data);
 }