Example #1
0
 /// <summary>
 /// Find faces in an image
 /// </summary>
 /// Locate the positions of all faces in an image
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='imageFile'>
 /// Image file to perform the operation on.  Common file formats such as PNG,
 /// JPEG are supported.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LocateOKResponse> LocateAsync(this IFace operations, System.IO.Stream imageFile, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.LocateWithHttpMessagesAsync(imageFile, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }