Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public enum FormContentType
Png = 2,
Jpeg = 3,
Tiff = 4,
Bmp = 5,
}
public partial class FormRecognizerClient
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,11 @@ public enum FormContentType
/// </summary>
[CodeGenMember("ImageTiff")]
Tiff,

/// <summary>
/// Used for BMP files.
/// </summary>
[CodeGenMember("ImageBmp")]
Bmp,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public virtual RecognizeContentOperation StartRecognizeContent(Stream form, Reco
{
FormContentType contentType = recognizeContentOptions.ContentType ?? DetectContentType(form, nameof(form));

Response response = ServiceClient.AnalyzeLayoutAsync(contentType, form, cancellationToken);
Response response = ServiceClient.AnalyzeLayoutAsync(contentType, form, null, cancellationToken);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down Expand Up @@ -170,7 +170,7 @@ public virtual async Task<RecognizeContentOperation> StartRecognizeContentAsync(
{
FormContentType contentType = recognizeContentOptions.ContentType ?? DetectContentType(form, nameof(form));

Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(contentType, form, cancellationToken).ConfigureAwait(false);
Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(contentType, form, null, cancellationToken).ConfigureAwait(false);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down Expand Up @@ -202,7 +202,7 @@ public virtual RecognizeContentOperation StartRecognizeContentFromUri(Uri formUr
try
{
SourcePath sourcePath = new SourcePath() { Source = formUri.AbsoluteUri };
Response response = ServiceClient.AnalyzeLayoutAsync(sourcePath, cancellationToken);
Response response = ServiceClient.AnalyzeLayoutAsync(null, sourcePath, cancellationToken);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down Expand Up @@ -234,7 +234,7 @@ public virtual async Task<RecognizeContentOperation> StartRecognizeContentFromUr
try
{
SourcePath sourcePath = new SourcePath() { Source = formUri.AbsoluteUri };
Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(sourcePath, cancellationToken).ConfigureAwait(false);
Response response = await ServiceClient.AnalyzeLayoutAsyncAsync(null, sourcePath, cancellationToken).ConfigureAwait(false);
string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader);

return new RecognizeContentOperation(ServiceClient, Diagnostics, location);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading