Exemplo n.º 1
0
 /// <summary>
 /// Use this interface to get the result of a Read operation, employing the
 /// state-of-the-art Optical Character Recognition (OCR) algorithms optimized
 /// for text-heavy documents. When you use the Read File interface, the
 /// response contains a field called "Operation-Location". The
 /// "Operation-Location" field contains the URL that you must use for your
 /// "Read Operation Result" operation to access OCR results.​
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='mode'>
 /// Type of text to recognize. Possible values include: 'Handwritten',
 /// 'Printed'
 /// </param>
 /// <param name='url'>
 /// Publicly reachable URL of an image.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BatchReadFileHeaders> BatchReadFileAsync(this IComputerVisionClient operations, string url, TextRecognitionMode mode, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BatchReadFileWithHttpMessagesAsync(url, mode, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }