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
1 change: 1 addition & 0 deletions sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

### Breaking changes
- Renamed `Id` for `Identity` in all the `StartRecognizeIdDocuments` functionalities. For example, the name of the method is now `StartRecognizeIdentityDocuments`.
- Renamed the model `ReadingOrder` to `FormReadingOrder`.

## 3.0.1 (2021-04-09)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ public enum FormContentType
Tiff = 4,
Bmp = 5,
}
public enum FormReadingOrder
{
Basic = 0,
Natural = 1,
}
public partial class FormRecognizerClient
{
protected FormRecognizerClient() { }
Expand Down Expand Up @@ -172,11 +177,6 @@ public static partial class OperationExtensions
public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.CreateComposedModelOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public static System.Threading.Tasks.Task<Azure.Response<Azure.AI.FormRecognizer.Training.CustomFormModel>> WaitForCompletionAsync(this System.Threading.Tasks.Task<Azure.AI.FormRecognizer.Training.TrainingOperation> operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
public enum ReadingOrder
{
Basic = 0,
Natural = 1,
}
public partial class RecognizeBusinessCardsOptions
{
public RecognizeBusinessCardsOptions() { }
Expand All @@ -191,7 +191,7 @@ public RecognizeContentOptions() { }
public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } }
public Azure.AI.FormRecognizer.FormRecognizerLanguage? Language { get { throw null; } set { } }
public System.Collections.Generic.IList<string> Pages { get { throw null; } }
public Azure.AI.FormRecognizer.ReadingOrder? ReadingOrder { get { throw null; } set { } }
public Azure.AI.FormRecognizer.FormReadingOrder? ReadingOrder { get { throw null; } set { } }
}
public partial class RecognizeCustomFormsOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Azure.AI.FormRecognizer
/// business logic should be built upon the actual line location instead of order.
/// </summary>
[CodeGenModel("ReadingOrder")]
public enum ReadingOrder
public enum FormReadingOrder
{
/// <summary>
/// The lines are sorted top to bottom, left to right, although in certain cases
Expand Down

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.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public RecognizeContentOptions()
/// order depends on the detected text, it may change across images and OCR version updates. Thus,
/// business logic should be built upon the actual line location instead of order.
/// </summary>
public ReadingOrder? ReadingOrder { get; set; }
public FormReadingOrder? ReadingOrder { get; set; }

/// <summary>
/// The BCP-47 language code of the text in the document.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ public async Task StartRecognizeContentWithReadingOrder()
var uri = FormRecognizerTestEnvironment.CreateUri(TestFile.Form1);
RecognizeContentOperation basicOrderOperation, naturalOrderOperation;

basicOrderOperation = await client.StartRecognizeContentFromUriAsync(uri, new RecognizeContentOptions() { ReadingOrder = ReadingOrder.Basic });
naturalOrderOperation = await client.StartRecognizeContentFromUriAsync(uri, new RecognizeContentOptions() { ReadingOrder = ReadingOrder.Natural });
basicOrderOperation = await client.StartRecognizeContentFromUriAsync(uri, new RecognizeContentOptions() { ReadingOrder = FormReadingOrder.Basic });
naturalOrderOperation = await client.StartRecognizeContentFromUriAsync(uri, new RecognizeContentOptions() { ReadingOrder = FormReadingOrder.Natural });

await basicOrderOperation.WaitForCompletionAsync();
Assert.IsTrue(basicOrderOperation.HasValue);
Expand Down