From f745cba8c9eeca942c6c31a550155da4ff53e206 Mon Sep 17 00:00:00 2001 From: Mariana Rios Flores Date: Fri, 29 Jan 2021 16:27:31 -0800 Subject: [PATCH] [FR] Language and Locale as extensible enums (#18271) * language and locale as extensible enums --- .../Azure.AI.FormRecognizer/CHANGELOG.md | 2 + .../Azure.AI.FormRecognizer.netstandard2.0.cs | 54 +- .../src/FormRecognizerClient.cs | 32 +- ...{Language.cs => FormRecognizerLanguage.cs} | 4 +- .../{Locale.cs => FormRecognizerLocale.cs} | 4 +- .../src/Generated/FormRecognizerRestClient.cs | 48 +- .../Models/FormRecognizerLanguage.cs | 72 + .../Generated/Models/FormRecognizerLocale.cs | 60 + .../src/Generated/Models/Language.cs | 72 - .../src/Generated/Models/Locale.cs | 60 - .../Models/ReadResult.Serialization.cs | 5 +- .../src/Generated/Models/ReadResult.cs | 5 +- .../Models/TextLine.Serialization.cs | 5 +- .../src/Generated/Models/TextLine.cs | 5 +- .../src/RecognizeBusinessCardsOptions.cs | 5 +- .../src/RecognizeContentOptions.cs | 3 +- .../src/RecognizeInvoicesOptions.cs | 5 +- .../src/RecognizeReceiptsOptions.cs | 5 +- .../FormRecognizerClientLiveTests.cs | 64 +- ...eBusinessCardsWithSupportedLocale(%%).json | 1136 ----- ...nessCardsWithSupportedLocale(%%)Async.json | 1106 ----- ...nessCardsWithSupportedLocale(%en-US%).json | 1106 ----- ...ardsWithSupportedLocale(%en-US%)Async.json | 1136 ----- ...gnizeBusinessCardsWithSupportedLocale.json | 1197 ++++++ ...BusinessCardsWithSupportedLocaleAsync.json | 1227 ++++++ ...RecognizeBusinessCardsWithWrongLocale.json | 18 +- ...nizeBusinessCardsWithWrongLocaleAsync.json | 18 +- ...StartRecognizeContentWithLanguage(%%).json | 3705 ----------------- ...RecognizeContentWithLanguage(%%)Async.json | 3705 ----------------- ...=> StartRecognizeContentWithLanguage.json} | 130 +- ...artRecognizeContentWithLanguageAsync.json} | 130 +- ...ognizeContentWithNoSupporttedLanguage.json | 17 +- ...eContentWithNoSupporttedLanguageAsync.json | 19 +- ...eInvoicesWithSupportedLocale(%en-US%).json | 1513 ------- ...icesWithSupportedLocale(%en-US%)Async.json | 1513 ------- ...RecognizeInvoicesWithSupportedLocale.json} | 364 +- ...nizeInvoicesWithSupportedLocaleAsync.json} | 358 +- ...ognizeReceiptsWithSupportedLocale(%%).json | 1315 ------ ...iptsWithSupportedLocale(%en-US%)Async.json | 1315 ------ ...RecognizeReceiptsWithSupportedLocale.json} | 96 +- ...nizeReceiptsWithSupportedLocaleAsync.json} | 76 +- 41 files changed, 3303 insertions(+), 18407 deletions(-) rename sdk/formrecognizer/Azure.AI.FormRecognizer/src/{Language.cs => FormRecognizerLanguage.cs} (64%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/src/{Locale.cs => FormRecognizerLocale.cs} (64%) create mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLanguage.cs create mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLocale.cs delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Language.cs delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Locale.cs delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%).json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%)Async.json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%).json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%)Async.json create mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale.json create mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocaleAsync.json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%).json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%)Async.json rename sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/{StartRecognizeContentWithLanguage(%en%)Async.json => StartRecognizeContentWithLanguage.json} (95%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/{StartRecognizeContentWithLanguage(%en%).json => StartRecognizeContentWithLanguageAsync.json} (95%) delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%).json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%)Async.json rename sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/{StartRecognizeInvoicesWithSupportedLocale(%%)Async.json => StartRecognizeInvoicesWithSupportedLocale.json} (86%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/{StartRecognizeInvoicesWithSupportedLocale(%%).json => StartRecognizeInvoicesWithSupportedLocaleAsync.json} (86%) delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%).json delete mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%)Async.json rename sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/{StartRecognizeReceiptsWithSupportedLocale(%en-US%).json => StartRecognizeReceiptsWithSupportedLocale.json} (91%) rename sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/{StartRecognizeReceiptsWithSupportedLocale(%%)Async.json => StartRecognizeReceiptsWithSupportedLocaleAsync.json} (92%) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md index 3023486415f1..211630f57813 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md @@ -6,6 +6,8 @@ - Renamed the model `Style` to `TextStyle`. - Renamed the extensible enum `TextStyle` to `TextStyleName`. - Changed object type for property `Pages` under `RecognizeContentOptions` from `IEnumerable` to `IList`. +- Changed model type of `Locale` from `string` to `FormRecognizerLocale` in `RecognizeBusinessCardsOptions`, `RecognizeInvoicesOptions`, and `RecognizeReceiptsOptions`. +- Changed model type of `Language` from `string` to `FormRecognizerLanguage` in `RecognizeContentOptions`. ## 3.1.0-beta.1 (2020-11-23) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/api/Azure.AI.FormRecognizer.netstandard2.0.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/api/Azure.AI.FormRecognizer.netstandard2.0.cs index d0e5240880a3..e6e034f50ea3 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/api/Azure.AI.FormRecognizer.netstandard2.0.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/api/Azure.AI.FormRecognizer.netstandard2.0.cs @@ -47,6 +47,52 @@ public enum ServiceVersion V2_1_Preview_2 = 2, } } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FormRecognizerLanguage : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FormRecognizerLanguage(string value) { throw null; } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage De { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage En { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage Es { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage Fr { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage It { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage Ja { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage Nl { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage Pt { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLanguage ZhHans { get { throw null; } } + public bool Equals(Azure.AI.FormRecognizer.FormRecognizerLanguage other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.FormRecognizer.FormRecognizerLanguage left, Azure.AI.FormRecognizer.FormRecognizerLanguage right) { throw null; } + public static implicit operator Azure.AI.FormRecognizer.FormRecognizerLanguage (string value) { throw null; } + public static bool operator !=(Azure.AI.FormRecognizer.FormRecognizerLanguage left, Azure.AI.FormRecognizer.FormRecognizerLanguage right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct FormRecognizerLocale : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public FormRecognizerLocale(string value) { throw null; } + public static Azure.AI.FormRecognizer.FormRecognizerLocale EnAU { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLocale EnCA { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLocale EnGB { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLocale EnIN { get { throw null; } } + public static Azure.AI.FormRecognizer.FormRecognizerLocale EnUS { get { throw null; } } + public bool Equals(Azure.AI.FormRecognizer.FormRecognizerLocale other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.AI.FormRecognizer.FormRecognizerLocale left, Azure.AI.FormRecognizer.FormRecognizerLocale right) { throw null; } + public static implicit operator Azure.AI.FormRecognizer.FormRecognizerLocale (string value) { throw null; } + public static bool operator !=(Azure.AI.FormRecognizer.FormRecognizerLocale left, Azure.AI.FormRecognizer.FormRecognizerLocale right) { throw null; } + public override string ToString() { throw null; } + } public static partial class OperationExtensions { public static System.Threading.Tasks.Task> WaitForCompletionAsync(this System.Threading.Tasks.Task operation, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -63,13 +109,13 @@ public partial class RecognizeBusinessCardsOptions public RecognizeBusinessCardsOptions() { } public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } } public bool IncludeFieldElements { get { throw null; } set { } } - public string Locale { get { throw null; } set { } } + public Azure.AI.FormRecognizer.FormRecognizerLocale? Locale { get { throw null; } set { } } } public partial class RecognizeContentOptions { public RecognizeContentOptions() { } public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } } - public string Language { get { throw null; } set { } } + public Azure.AI.FormRecognizer.FormRecognizerLanguage? Language { get { throw null; } set { } } public System.Collections.Generic.IList Pages { get { throw null; } } } public partial class RecognizeCustomFormsOptions @@ -83,14 +129,14 @@ public partial class RecognizeInvoicesOptions public RecognizeInvoicesOptions() { } public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } } public bool IncludeFieldElements { get { throw null; } set { } } - public string Locale { get { throw null; } set { } } + public Azure.AI.FormRecognizer.FormRecognizerLocale? Locale { get { throw null; } set { } } } public partial class RecognizeReceiptsOptions { public RecognizeReceiptsOptions() { } public Azure.AI.FormRecognizer.FormContentType? ContentType { get { throw null; } set { } } public bool IncludeFieldElements { get { throw null; } set { } } - public string Locale { get { throw null; } set { } } + public Azure.AI.FormRecognizer.FormRecognizerLocale? Locale { get { throw null; } set { } } } } namespace Azure.AI.FormRecognizer.Models diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerClient.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerClient.cs index 4e1dc818c9ad..318a207dbdfa 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerClient.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerClient.cs @@ -141,7 +141,7 @@ public virtual RecognizeContentOperation StartRecognizeContent(Stream form, Reco Response response = ServiceClient.AnalyzeLayoutAsync( formContentType.ConvertToContentType1(), form, - recognizeContentOptions.Language == null ? (Language?)null : recognizeContentOptions.Language, + recognizeContentOptions.Language, recognizeContentOptions.Pages.Count == 0 ? null : recognizeContentOptions.Pages, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -180,7 +180,7 @@ public virtual async Task StartRecognizeContentAsync( Response response = await ServiceClient.AnalyzeLayoutAsyncAsync( formContentType.ConvertToContentType1(), form, - recognizeContentOptions.Language == null ? (Language?)null : recognizeContentOptions.Language, + recognizeContentOptions.Language, recognizeContentOptions.Pages.Count == 0 ? null : recognizeContentOptions.Pages, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -216,7 +216,7 @@ public virtual RecognizeContentOperation StartRecognizeContentFromUri(Uri formUr { SourcePath sourcePath = new SourcePath() { Source = formUri.AbsoluteUri }; Response response = ServiceClient.AnalyzeLayoutAsync( - recognizeContentOptions.Language == null ? (Language?)null : recognizeContentOptions.Language, + recognizeContentOptions.Language, recognizeContentOptions.Pages.Count == 0 ? null : recognizeContentOptions.Pages, sourcePath, cancellationToken); @@ -253,7 +253,7 @@ public virtual async Task StartRecognizeContentFromUr { SourcePath sourcePath = new SourcePath() { Source = formUri.AbsoluteUri }; Response response = await ServiceClient.AnalyzeLayoutAsyncAsync( - recognizeContentOptions.Language == null ? (Language?)null : recognizeContentOptions.Language, + recognizeContentOptions.Language, recognizeContentOptions.Pages.Count == 0 ? null : recognizeContentOptions.Pages, sourcePath, cancellationToken).ConfigureAwait(false); @@ -299,7 +299,7 @@ public virtual async Task StartRecognizeReceiptsAsyn formContentType.ConvertToContentType1(), receipt, recognizeReceiptsOptions.IncludeFieldElements, - recognizeReceiptsOptions.Locale == null ? (Locale?)null : recognizeReceiptsOptions.Locale, + recognizeReceiptsOptions.Locale, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -339,7 +339,7 @@ public virtual RecognizeReceiptsOperation StartRecognizeReceipts(Stream receipt, formContentType.ConvertToContentType1(), receipt, recognizeReceiptsOptions.IncludeFieldElements, - recognizeReceiptsOptions.Locale == null ? (Locale?)null : recognizeReceiptsOptions.Locale, + recognizeReceiptsOptions.Locale, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -376,7 +376,7 @@ public virtual async Task StartRecognizeReceiptsFrom SourcePath sourcePath = new SourcePath() { Source = receiptUri.AbsoluteUri }; Response response = await ServiceClient.AnalyzeReceiptAsyncAsync( recognizeReceiptsOptions.IncludeFieldElements, - recognizeReceiptsOptions.Locale == null ? (Locale?)null : recognizeReceiptsOptions.Locale, + recognizeReceiptsOptions.Locale, sourcePath, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -414,7 +414,7 @@ public virtual RecognizeReceiptsOperation StartRecognizeReceiptsFromUri(Uri rece SourcePath sourcePath = new SourcePath() { Source = receiptUri.AbsoluteUri }; Response response = ServiceClient.AnalyzeReceiptAsync( recognizeReceiptsOptions.IncludeFieldElements, - recognizeReceiptsOptions.Locale == null ? (Locale?)null : recognizeReceiptsOptions.Locale, + recognizeReceiptsOptions.Locale, sourcePath, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -459,7 +459,7 @@ public virtual async Task StartRecognizeBusines formContentType.ConvertToContentType1(), businessCard, recognizeBusinessCardsOptions.IncludeFieldElements, - recognizeBusinessCardsOptions.Locale == null ? (Locale?)null : recognizeBusinessCardsOptions.Locale, + recognizeBusinessCardsOptions.Locale, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -499,7 +499,7 @@ public virtual RecognizeBusinessCardsOperation StartRecognizeBusinessCards(Strea formContentType.ConvertToContentType1(), businessCard, recognizeBusinessCardsOptions.IncludeFieldElements, - recognizeBusinessCardsOptions.Locale == null ? (Locale?)null : recognizeBusinessCardsOptions.Locale, + recognizeBusinessCardsOptions.Locale, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -536,7 +536,7 @@ public virtual async Task StartRecognizeBusines SourcePath sourcePath = new SourcePath() { Source = businessCardUri.AbsoluteUri }; Response response = await ServiceClient.AnalyzeBusinessCardAsyncAsync( recognizeBusinessCardsOptions.IncludeFieldElements, - recognizeBusinessCardsOptions.Locale == null ? (Locale?)null : recognizeBusinessCardsOptions.Locale, + recognizeBusinessCardsOptions.Locale, sourcePath, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -574,7 +574,7 @@ public virtual RecognizeBusinessCardsOperation StartRecognizeBusinessCardsFromUr SourcePath sourcePath = new SourcePath() { Source = businessCardUri.AbsoluteUri }; Response response = ServiceClient.AnalyzeBusinessCardAsync( recognizeBusinessCardsOptions.IncludeFieldElements, - recognizeBusinessCardsOptions.Locale == null ? (Locale?)null : recognizeBusinessCardsOptions.Locale, + recognizeBusinessCardsOptions.Locale, sourcePath, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -619,7 +619,7 @@ public virtual async Task StartRecognizeInvoicesAsyn formContentType.ConvertToContentType1(), invoice, recognizeInvoicesOptions.IncludeFieldElements, - recognizeInvoicesOptions.Locale == null ? (Locale?)null : recognizeInvoicesOptions.Locale, + recognizeInvoicesOptions.Locale, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -659,7 +659,7 @@ public virtual RecognizeInvoicesOperation StartRecognizeInvoices(Stream invoice, formContentType.ConvertToContentType1(), invoice, recognizeInvoicesOptions.IncludeFieldElements, - recognizeInvoicesOptions.Locale == null ? (Locale?)null : recognizeInvoicesOptions.Locale, + recognizeInvoicesOptions.Locale, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -696,7 +696,7 @@ public virtual async Task StartRecognizeInvoicesFrom SourcePath sourcePath = new SourcePath() { Source = invoiceUri.AbsoluteUri }; Response response = await ServiceClient.AnalyzeInvoiceAsyncAsync( recognizeInvoicesOptions.IncludeFieldElements, - recognizeInvoicesOptions.Locale == null ? (Locale?)null : recognizeInvoicesOptions.Locale, + recognizeInvoicesOptions.Locale, sourcePath, cancellationToken).ConfigureAwait(false); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); @@ -734,7 +734,7 @@ public virtual RecognizeInvoicesOperation StartRecognizeInvoicesFromUri(Uri invo SourcePath sourcePath = new SourcePath() { Source = invoiceUri.AbsoluteUri }; Response response = ServiceClient.AnalyzeInvoiceAsync( recognizeInvoicesOptions.IncludeFieldElements, - recognizeInvoicesOptions.Locale == null ? (Locale?)null : recognizeInvoicesOptions.Locale, + recognizeInvoicesOptions.Locale, sourcePath, cancellationToken); string location = ClientCommon.GetResponseHeader(response.Headers, Constants.OperationLocationHeader); diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Language.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerLanguage.cs similarity index 64% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/src/Language.cs rename to sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerLanguage.cs index e3378fe90c7f..fe33b0d1a7db 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Language.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerLanguage.cs @@ -3,10 +3,10 @@ using Azure.Core; -namespace Azure.AI.FormRecognizer.Models +namespace Azure.AI.FormRecognizer { [CodeGenModel("Language")] - internal readonly partial struct Language + public readonly partial struct FormRecognizerLanguage { } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Locale.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerLocale.cs similarity index 64% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/src/Locale.cs rename to sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerLocale.cs index 973f5327bc57..69f4b4eea83a 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Locale.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormRecognizerLocale.cs @@ -3,10 +3,10 @@ using Azure.Core; -namespace Azure.AI.FormRecognizer.Models +namespace Azure.AI.FormRecognizer { [CodeGenModel("Locale")] - internal readonly partial struct Locale + public readonly partial struct FormRecognizerLocale { } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerRestClient.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerRestClient.cs index e4d5b6051c1a..8a4d5e91bded 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerRestClient.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerRestClient.cs @@ -676,7 +676,7 @@ public ResponseWithHeaders Compos } } - internal HttpMessage CreateAnalyzeBusinessCardAsyncRequest(ContentType1 contentType, Stream fileStream, bool? includeTextDetails, Locale? locale) + internal HttpMessage CreateAnalyzeBusinessCardAsyncRequest(ContentType1 contentType, Stream fileStream, bool? includeTextDetails, FormRecognizerLocale? locale) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -707,7 +707,7 @@ internal HttpMessage CreateAnalyzeBusinessCardAsyncRequest(ContentType1 contentT /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// The cancellation token to use. /// is null. - public async Task> AnalyzeBusinessCardAsyncAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, Locale? locale = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeBusinessCardAsyncAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, FormRecognizerLocale? locale = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -733,7 +733,7 @@ public async Task Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// The cancellation token to use. /// is null. - public ResponseWithHeaders AnalyzeBusinessCardAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, Locale? locale = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeBusinessCardAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, FormRecognizerLocale? locale = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -752,7 +752,7 @@ public ResponseWithHeaders Analyz } } - internal HttpMessage CreateAnalyzeBusinessCardAsyncRequest(bool? includeTextDetails, Locale? locale, SourcePath fileStream) + internal HttpMessage CreateAnalyzeBusinessCardAsyncRequest(bool? includeTextDetails, FormRecognizerLocale? locale, SourcePath fileStream) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -786,7 +786,7 @@ internal HttpMessage CreateAnalyzeBusinessCardAsyncRequest(bool? includeTextDeta /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public async Task> AnalyzeBusinessCardAsyncAsync(bool? includeTextDetails = null, Locale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeBusinessCardAsyncAsync(bool? includeTextDetails = null, FormRecognizerLocale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeBusinessCardAsyncRequest(includeTextDetails, locale, fileStream); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -805,7 +805,7 @@ public async Task Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public ResponseWithHeaders AnalyzeBusinessCardAsync(bool? includeTextDetails = null, Locale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeBusinessCardAsync(bool? includeTextDetails = null, FormRecognizerLocale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeBusinessCardAsyncRequest(includeTextDetails, locale, fileStream); _pipeline.Send(message, cancellationToken); @@ -876,7 +876,7 @@ public Response GetAnalyzeBusinessCardResult(Guid result } } - internal HttpMessage CreateAnalyzeInvoiceAsyncRequest(ContentType1 contentType, Stream fileStream, bool? includeTextDetails, Locale? locale) + internal HttpMessage CreateAnalyzeInvoiceAsyncRequest(ContentType1 contentType, Stream fileStream, bool? includeTextDetails, FormRecognizerLocale? locale) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -907,7 +907,7 @@ internal HttpMessage CreateAnalyzeInvoiceAsyncRequest(ContentType1 contentType, /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// The cancellation token to use. /// is null. - public async Task> AnalyzeInvoiceAsyncAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, Locale? locale = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeInvoiceAsyncAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, FormRecognizerLocale? locale = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -933,7 +933,7 @@ public async Task> /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// The cancellation token to use. /// is null. - public ResponseWithHeaders AnalyzeInvoiceAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, Locale? locale = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeInvoiceAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, FormRecognizerLocale? locale = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -952,7 +952,7 @@ public ResponseWithHeaders AnalyzeInvo } } - internal HttpMessage CreateAnalyzeInvoiceAsyncRequest(bool? includeTextDetails, Locale? locale, SourcePath fileStream) + internal HttpMessage CreateAnalyzeInvoiceAsyncRequest(bool? includeTextDetails, FormRecognizerLocale? locale, SourcePath fileStream) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -986,7 +986,7 @@ internal HttpMessage CreateAnalyzeInvoiceAsyncRequest(bool? includeTextDetails, /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public async Task> AnalyzeInvoiceAsyncAsync(bool? includeTextDetails = null, Locale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeInvoiceAsyncAsync(bool? includeTextDetails = null, FormRecognizerLocale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeInvoiceAsyncRequest(includeTextDetails, locale, fileStream); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -1005,7 +1005,7 @@ public async Task> /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public ResponseWithHeaders AnalyzeInvoiceAsync(bool? includeTextDetails = null, Locale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeInvoiceAsync(bool? includeTextDetails = null, FormRecognizerLocale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeInvoiceAsyncRequest(includeTextDetails, locale, fileStream); _pipeline.Send(message, cancellationToken); @@ -1076,7 +1076,7 @@ public Response GetAnalyzeInvoiceResult(Guid resultId, C } } - internal HttpMessage CreateAnalyzeReceiptAsyncRequest(ContentType1 contentType, Stream fileStream, bool? includeTextDetails, Locale? locale) + internal HttpMessage CreateAnalyzeReceiptAsyncRequest(ContentType1 contentType, Stream fileStream, bool? includeTextDetails, FormRecognizerLocale? locale) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1107,7 +1107,7 @@ internal HttpMessage CreateAnalyzeReceiptAsyncRequest(ContentType1 contentType, /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// The cancellation token to use. /// is null. - public async Task> AnalyzeReceiptAsyncAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, Locale? locale = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeReceiptAsyncAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, FormRecognizerLocale? locale = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -1133,7 +1133,7 @@ public async Task> /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// The cancellation token to use. /// is null. - public ResponseWithHeaders AnalyzeReceiptAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, Locale? locale = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeReceiptAsync(ContentType1 contentType, Stream fileStream, bool? includeTextDetails = null, FormRecognizerLocale? locale = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -1152,7 +1152,7 @@ public ResponseWithHeaders AnalyzeRece } } - internal HttpMessage CreateAnalyzeReceiptAsyncRequest(bool? includeTextDetails, Locale? locale, SourcePath fileStream) + internal HttpMessage CreateAnalyzeReceiptAsyncRequest(bool? includeTextDetails, FormRecognizerLocale? locale, SourcePath fileStream) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1186,7 +1186,7 @@ internal HttpMessage CreateAnalyzeReceiptAsyncRequest(bool? includeTextDetails, /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public async Task> AnalyzeReceiptAsyncAsync(bool? includeTextDetails = null, Locale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeReceiptAsyncAsync(bool? includeTextDetails = null, FormRecognizerLocale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeReceiptAsyncRequest(includeTextDetails, locale, fileStream); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -1205,7 +1205,7 @@ public async Task> /// Locale of the input document. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US(default). /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public ResponseWithHeaders AnalyzeReceiptAsync(bool? includeTextDetails = null, Locale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeReceiptAsync(bool? includeTextDetails = null, FormRecognizerLocale? locale = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeReceiptAsyncRequest(includeTextDetails, locale, fileStream); _pipeline.Send(message, cancellationToken); @@ -1276,7 +1276,7 @@ public Response GetAnalyzeReceiptResult(Guid resultId, C } } - internal HttpMessage CreateAnalyzeLayoutAsyncRequest(ContentType1 contentType, Stream fileStream, Language? language, IEnumerable pages) + internal HttpMessage CreateAnalyzeLayoutAsyncRequest(ContentType1 contentType, Stream fileStream, FormRecognizerLanguage? language, IEnumerable pages) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1307,7 +1307,7 @@ internal HttpMessage CreateAnalyzeLayoutAsyncRequest(ContentType1 contentType, S /// Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a comma or space. /// The cancellation token to use. /// is null. - public async Task> AnalyzeLayoutAsyncAsync(ContentType1 contentType, Stream fileStream, Language? language = null, IEnumerable pages = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeLayoutAsyncAsync(ContentType1 contentType, Stream fileStream, FormRecognizerLanguage? language = null, IEnumerable pages = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -1333,7 +1333,7 @@ public async Task> /// Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a comma or space. /// The cancellation token to use. /// is null. - public ResponseWithHeaders AnalyzeLayoutAsync(ContentType1 contentType, Stream fileStream, Language? language = null, IEnumerable pages = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeLayoutAsync(ContentType1 contentType, Stream fileStream, FormRecognizerLanguage? language = null, IEnumerable pages = null, CancellationToken cancellationToken = default) { if (fileStream == null) { @@ -1352,7 +1352,7 @@ public ResponseWithHeaders AnalyzeLayou } } - internal HttpMessage CreateAnalyzeLayoutAsyncRequest(Language? language, IEnumerable pages, SourcePath fileStream) + internal HttpMessage CreateAnalyzeLayoutAsyncRequest(FormRecognizerLanguage? language, IEnumerable pages, SourcePath fileStream) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1386,7 +1386,7 @@ internal HttpMessage CreateAnalyzeLayoutAsyncRequest(Language? language, IEnumer /// Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a comma or space. /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public async Task> AnalyzeLayoutAsyncAsync(Language? language = null, IEnumerable pages = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public async Task> AnalyzeLayoutAsyncAsync(FormRecognizerLanguage? language = null, IEnumerable pages = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeLayoutAsyncRequest(language, pages, fileStream); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); @@ -1405,7 +1405,7 @@ public async Task> /// Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a comma or space. /// .json, .pdf, .jpg, .png or .tiff type file stream. /// The cancellation token to use. - public ResponseWithHeaders AnalyzeLayoutAsync(Language? language = null, IEnumerable pages = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) + public ResponseWithHeaders AnalyzeLayoutAsync(FormRecognizerLanguage? language = null, IEnumerable pages = null, SourcePath fileStream = null, CancellationToken cancellationToken = default) { using var message = CreateAnalyzeLayoutAsyncRequest(language, pages, fileStream); _pipeline.Send(message, cancellationToken); diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLanguage.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLanguage.cs new file mode 100644 index 000000000000..28333e1339fa --- /dev/null +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLanguage.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.AI.FormRecognizer +{ + /// Language code. + public readonly partial struct FormRecognizerLanguage : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public FormRecognizerLanguage(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnValue = "en"; + private const string EsValue = "es"; + private const string DeValue = "de"; + private const string FrValue = "fr"; + private const string ItValue = "it"; + private const string NlValue = "nl"; + private const string PtValue = "pt"; + private const string JaValue = "ja"; + private const string ZhHansValue = "zh-Hans"; + + /// en. + public static FormRecognizerLanguage En { get; } = new FormRecognizerLanguage(EnValue); + /// es. + public static FormRecognizerLanguage Es { get; } = new FormRecognizerLanguage(EsValue); + /// de. + public static FormRecognizerLanguage De { get; } = new FormRecognizerLanguage(DeValue); + /// fr. + public static FormRecognizerLanguage Fr { get; } = new FormRecognizerLanguage(FrValue); + /// it. + public static FormRecognizerLanguage It { get; } = new FormRecognizerLanguage(ItValue); + /// nl. + public static FormRecognizerLanguage Nl { get; } = new FormRecognizerLanguage(NlValue); + /// pt. + public static FormRecognizerLanguage Pt { get; } = new FormRecognizerLanguage(PtValue); + /// ja. + public static FormRecognizerLanguage Ja { get; } = new FormRecognizerLanguage(JaValue); + /// zh-Hans. + public static FormRecognizerLanguage ZhHans { get; } = new FormRecognizerLanguage(ZhHansValue); + /// Determines if two values are the same. + public static bool operator ==(FormRecognizerLanguage left, FormRecognizerLanguage right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FormRecognizerLanguage left, FormRecognizerLanguage right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FormRecognizerLanguage(string value) => new FormRecognizerLanguage(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FormRecognizerLanguage other && Equals(other); + /// + public bool Equals(FormRecognizerLanguage other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLocale.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLocale.cs new file mode 100644 index 000000000000..288ffc092f02 --- /dev/null +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/FormRecognizerLocale.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.AI.FormRecognizer +{ + /// The Locale. + public readonly partial struct FormRecognizerLocale : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + /// is null. + public FormRecognizerLocale(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnAUValue = "en-AU"; + private const string EnCAValue = "en-CA"; + private const string EnGBValue = "en-GB"; + private const string EnINValue = "en-IN"; + private const string EnUSValue = "en-US"; + + /// en-AU. + public static FormRecognizerLocale EnAU { get; } = new FormRecognizerLocale(EnAUValue); + /// en-CA. + public static FormRecognizerLocale EnCA { get; } = new FormRecognizerLocale(EnCAValue); + /// en-GB. + public static FormRecognizerLocale EnGB { get; } = new FormRecognizerLocale(EnGBValue); + /// en-IN. + public static FormRecognizerLocale EnIN { get; } = new FormRecognizerLocale(EnINValue); + /// en-US. + public static FormRecognizerLocale EnUS { get; } = new FormRecognizerLocale(EnUSValue); + /// Determines if two values are the same. + public static bool operator ==(FormRecognizerLocale left, FormRecognizerLocale right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FormRecognizerLocale left, FormRecognizerLocale right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator FormRecognizerLocale(string value) => new FormRecognizerLocale(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FormRecognizerLocale other && Equals(other); + /// + public bool Equals(FormRecognizerLocale other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Language.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Language.cs deleted file mode 100644 index 55ccea371756..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Language.cs +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.AI.FormRecognizer.Models -{ - /// Language code. - internal readonly partial struct Language : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Language(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnValue = "en"; - private const string EsValue = "es"; - private const string DeValue = "de"; - private const string FrValue = "fr"; - private const string ItValue = "it"; - private const string NlValue = "nl"; - private const string PtValue = "pt"; - private const string JaValue = "ja"; - private const string ZhHansValue = "zh-Hans"; - - /// en. - public static Language En { get; } = new Language(EnValue); - /// es. - public static Language Es { get; } = new Language(EsValue); - /// de. - public static Language De { get; } = new Language(DeValue); - /// fr. - public static Language Fr { get; } = new Language(FrValue); - /// it. - public static Language It { get; } = new Language(ItValue); - /// nl. - public static Language Nl { get; } = new Language(NlValue); - /// pt. - public static Language Pt { get; } = new Language(PtValue); - /// ja. - public static Language Ja { get; } = new Language(JaValue); - /// zh-Hans. - public static Language ZhHans { get; } = new Language(ZhHansValue); - /// Determines if two values are the same. - public static bool operator ==(Language left, Language right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Language left, Language right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Language(string value) => new Language(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Language other && Equals(other); - /// - public bool Equals(Language other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Locale.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Locale.cs deleted file mode 100644 index ce9ab182380c..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/Locale.cs +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.AI.FormRecognizer.Models -{ - /// The Locale. - internal readonly partial struct Locale : IEquatable - { - private readonly string _value; - - /// Determines if two values are the same. - /// is null. - public Locale(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnAUValue = "en-AU"; - private const string EnCAValue = "en-CA"; - private const string EnGBValue = "en-GB"; - private const string EnINValue = "en-IN"; - private const string EnUSValue = "en-US"; - - /// en-AU. - public static Locale EnAU { get; } = new Locale(EnAUValue); - /// en-CA. - public static Locale EnCA { get; } = new Locale(EnCAValue); - /// en-GB. - public static Locale EnGB { get; } = new Locale(EnGBValue); - /// en-IN. - public static Locale EnIN { get; } = new Locale(EnINValue); - /// en-US. - public static Locale EnUS { get; } = new Locale(EnUSValue); - /// Determines if two values are the same. - public static bool operator ==(Locale left, Locale right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(Locale left, Locale right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator Locale(string value) => new Locale(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is Locale other && Equals(other); - /// - public bool Equals(Locale other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs index 3e9966fa4493..954952640630 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.Models @@ -20,7 +21,7 @@ internal static ReadResult DeserializeReadResult(JsonElement element) float width = default; float height = default; LengthUnit unit = default; - Optional language = default; + Optional language = default; Optional> lines = default; Optional> selectionMarks = default; foreach (var property in element.EnumerateObject()) @@ -57,7 +58,7 @@ internal static ReadResult DeserializeReadResult(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - language = new Language(property.Value.GetString()); + language = new FormRecognizerLanguage(property.Value.GetString()); continue; } if (property.NameEquals("lines")) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs index 4c8ceeded8e8..3e57714fd008 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/ReadResult.cs @@ -6,6 +6,7 @@ #nullable disable using System.Collections.Generic; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.Models @@ -39,7 +40,7 @@ internal ReadResult(int page, float angle, float width, float height, LengthUnit /// The detected language on the page overall. /// When includeTextDetails is set to true, a list of recognized text lines. The maximum number of lines returned is 300 per page. The lines are sorted top to bottom, left to right, although in certain cases proximity is treated with higher priority. As the sorting 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. /// List of selection marks extracted from the page. - internal ReadResult(int page, float angle, float width, float height, LengthUnit unit, Language? language, IReadOnlyList lines, IReadOnlyList selectionMarks) + internal ReadResult(int page, float angle, float width, float height, LengthUnit unit, FormRecognizerLanguage? language, IReadOnlyList lines, IReadOnlyList selectionMarks) { Page = page; Angle = angle; @@ -62,7 +63,7 @@ internal ReadResult(int page, float angle, float width, float height, LengthUnit /// The unit used by the width, height and boundingBox properties. For images, the unit is "pixel". For PDF, the unit is "inch". public LengthUnit Unit { get; } /// The detected language on the page overall. - public Language? Language { get; } + public FormRecognizerLanguage? Language { get; } /// When includeTextDetails is set to true, a list of recognized text lines. The maximum number of lines returned is 300 per page. The lines are sorted top to bottom, left to right, although in certain cases proximity is treated with higher priority. As the sorting 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. public IReadOnlyList Lines { get; } /// List of selection marks extracted from the page. diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs index 78cc9ced3be7..70971670a30c 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.Serialization.cs @@ -7,6 +7,7 @@ using System.Collections.Generic; using System.Text.Json; +using Azure.AI.FormRecognizer; using Azure.Core; namespace Azure.AI.FormRecognizer.Models @@ -17,7 +18,7 @@ internal static TextLine DeserializeTextLine(JsonElement element) { string text = default; IReadOnlyList boundingBox = default; - Optional language = default; + Optional language = default; IReadOnlyList words = default; Optional appearance = default; foreach (var property in element.EnumerateObject()) @@ -44,7 +45,7 @@ internal static TextLine DeserializeTextLine(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - language = new Language(property.Value.GetString()); + language = new FormRecognizerLanguage(property.Value.GetString()); continue; } if (property.NameEquals("words")) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.cs index e2e633e5ee88..5a4754b67b20 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/Models/TextLine.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.AI.FormRecognizer; namespace Azure.AI.FormRecognizer.Models { @@ -45,7 +46,7 @@ internal TextLine(string text, IEnumerable boundingBox, IEnumerable The detected language of this line, if different from the overall page language. /// List of words in the text line. /// Text appearance properties. - internal TextLine(string text, IReadOnlyList boundingBox, Language? language, IReadOnlyList words, TextAppearance appearance) + internal TextLine(string text, IReadOnlyList boundingBox, FormRecognizerLanguage? language, IReadOnlyList words, TextAppearance appearance) { Text = text; BoundingBox = boundingBox; @@ -59,7 +60,7 @@ internal TextLine(string text, IReadOnlyList boundingBox, Language? langu /// Bounding box of an extracted line. public IReadOnlyList BoundingBox { get; } /// The detected language of this line, if different from the overall page language. - public Language? Language { get; } + public FormRecognizerLanguage? Language { get; } /// List of words in the text line. public IReadOnlyList Words { get; } /// Text appearance properties. diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeBusinessCardsOptions.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeBusinessCardsOptions.cs index 344362cd92c3..7d299fffe560 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeBusinessCardsOptions.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeBusinessCardsOptions.cs @@ -33,8 +33,9 @@ public RecognizeBusinessCardsOptions() public FormContentType? ContentType { get; set; } /// - /// Locale value. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US. + /// Sets the locale information for the business card. + /// Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US. /// - public string Locale { get; set; } + public FormRecognizerLocale? Locale { get; set; } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeContentOptions.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeContentOptions.cs index eaf0b9072f96..7c7775106521 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeContentOptions.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeContentOptions.cs @@ -33,9 +33,8 @@ public RecognizeContentOptions() /// Recognize Content supports auto language identification and multi language documents, so only /// provide a language code if you would like to force the documented to be processed as /// that specific language. - /// See supported language codes here. /// - public string Language { get; set; } + public FormRecognizerLanguage? Language { get; set; } /// /// diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeInvoicesOptions.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeInvoicesOptions.cs index 50cedcc75712..3a983163c70e 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeInvoicesOptions.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeInvoicesOptions.cs @@ -33,8 +33,9 @@ public RecognizeInvoicesOptions() public FormContentType? ContentType { get; set; } /// - /// Locale value. Supported locales include: en-US. + /// Sets the locale information for the invoice. + /// Supported locales include: en-US. /// - public string Locale { get; set; } + public FormRecognizerLocale? Locale { get; set; } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeReceiptsOptions.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeReceiptsOptions.cs index 9584ce54fd56..b0a769b20369 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeReceiptsOptions.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/RecognizeReceiptsOptions.cs @@ -33,8 +33,9 @@ public RecognizeReceiptsOptions() public FormContentType? ContentType { get; set; } /// - /// Locale value. Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US. + /// Sets the locale information for the receipt. + /// Supported locales include: en-AU, en-CA, en-GB, en-IN, en-US. /// - public string Locale { get; set; } + public FormRecognizerLocale? Locale { get; set; } } } diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/FormRecognizerClientLiveTests.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/FormRecognizerClientLiveTests.cs index 33b0d0108810..4db85a0893f4 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/FormRecognizerClientLiveTests.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/FormRecognizerClient/FormRecognizerClientLiveTests.cs @@ -489,15 +489,13 @@ public async Task StartRecognizeContentWithMultiplePageArgument(string page1, st } [Test] - [TestCase("en")] - [TestCase("")] - public async Task StartRecognizeContentWithLanguage(string language) + public async Task StartRecognizeContentWithLanguage() { var client = CreateFormRecognizerClient(); RecognizeContentOperation operation; var uri = FormRecognizerTestEnvironment.CreateUri(TestFile.Form1); - operation = await client.StartRecognizeContentFromUriAsync(uri, new RecognizeContentOptions() { Language = language } ); + operation = await client.StartRecognizeContentFromUriAsync(uri, new RecognizeContentOptions() { Language = FormRecognizerLanguage.En } ); await operation.WaitForCompletionAsync(PollingInterval); Assert.IsTrue(operation.HasValue); @@ -944,15 +942,13 @@ public void StartRecognizeReceiptsFromUriThrowsForNonExistingContent() } [Test] - [TestCase("en-US")] - [TestCase("")] - public async Task StartRecognizeReceiptsWithSupportedLocale(string locale) + public async Task StartRecognizeReceiptsWithSupportedLocale() { var client = CreateFormRecognizerClient(); var options = new RecognizeReceiptsOptions() { IncludeFieldElements = true, - Locale = locale + Locale = FormRecognizerLocale.EnUS }; RecognizeReceiptsOperation operation; @@ -1381,6 +1377,52 @@ public async Task StartRecognizeBusinessCardsCanParseMultipageForm(bool useStrea } } + [Test] + public async Task StartRecognizeBusinessCardsWithSupportedLocale() + { + var client = CreateFormRecognizerClient(); + var options = new RecognizeBusinessCardsOptions() + { + IncludeFieldElements = true, + Locale = FormRecognizerLocale.EnUS + }; + RecognizeBusinessCardsOperation operation; + + using var stream = FormRecognizerTestEnvironment.CreateStream(TestFile.BusinessCardJpg); + using (Recording.DisableRequestBodyRecording()) + { + operation = await client.StartRecognizeBusinessCardsAsync(stream, options); + } + + RecognizedFormCollection recognizedForms = await operation.WaitForCompletionAsync(PollingInterval); + + var businessCard = recognizedForms.Single(); + + ValidatePrebuiltForm( + businessCard, + includeFieldElements: true, + expectedFirstPageNumber: 1, + expectedLastPageNumber: 1); + + Assert.Greater(businessCard.Fields.Count, 0); + + var businessCardPage = businessCard.Pages.Single(); + + Assert.Greater(businessCardPage.Lines.Count, 0); + Assert.AreEqual(0, businessCardPage.SelectionMarks.Count); + Assert.AreEqual(0, businessCardPage.Tables.Count); + } + + [Test] + public void StartRecognizeBusinessCardsWithWrongLocale() + { + var client = CreateFormRecognizerClient(); + + var businessCardsUri = FormRecognizerTestEnvironment.CreateUri(TestFile.BusinessCardJpg); + RequestFailedException ex = Assert.ThrowsAsync(async () => await client.StartRecognizeBusinessCardsFromUriAsync(businessCardsUri, new RecognizeBusinessCardsOptions() { Locale = "not-locale" })); + Assert.AreEqual("UnsupportedLocale", ex.ErrorCode); + } + #endregion #region StartRecognizeInvoices @@ -1698,15 +1740,13 @@ public void StartRecognizeInvoicesFromUriThrowsForNonExistingContent() } [Test] - [TestCase("en-US")] - [TestCase("")] - public async Task StartRecognizeInvoicesWithSupportedLocale(string locale) + public async Task StartRecognizeInvoicesWithSupportedLocale() { var client = CreateFormRecognizerClient(); var options = new RecognizeInvoicesOptions() { IncludeFieldElements = true, - Locale = locale + Locale = FormRecognizerLocale.EnUS }; RecognizeInvoicesOperation operation; diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%).json deleted file mode 100644 index b5f2b45b4132..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%).json +++ /dev/null @@ -1,1136 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=true\u0026locale=", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "279674", - "Content-Type": "image/jpeg", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-3cab1f5a2053b248a8f9bfdeefd21f6d-2d7fb6efaf96c549-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "88792ec4ff928b8d521341c391325950", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "19cb0b48-28fc-4a82-b79c-b35378498537", - "Content-Length": "0", - "Date": "Thu, 15 Oct 2020 23:59:05 GMT", - "Operation-Location": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/19cb0b48-28fc-4a82-b79c-b35378498537", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "417" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/19cb0b48-28fc-4a82-b79c-b35378498537", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "13a84ab0c34ba4f117693304a5e57fe5", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d0ddce20-4a48-4b68-ad89-9a8f2e0c3196", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "83" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2020-10-15T23:59:05Z", - "lastUpdatedDateTime": "2020-10-15T23:59:05Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/19cb0b48-28fc-4a82-b79c-b35378498537", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "6f0b6adfbb82697d74b2e1d5f2b73eee", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0aaf70e1-3bb3-4ee2-a71b-caed783c5d28", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "13" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:05Z", - "lastUpdatedDateTime": "2020-10-15T23:59:06Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/19cb0b48-28fc-4a82-b79c-b35378498537", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "0832d7893f3f015b3cd57028cb88e56c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6d8ef234-fc31-4247-957d-a7d8345227f0", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "34" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:05Z", - "lastUpdatedDateTime": "2020-10-15T23:59:06Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/19cb0b48-28fc-4a82-b79c-b35378498537", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "26e45c94e927f4cdcd3e9e98e11cb160", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "b17d7d5d-36a4-4ebd-9bd0-f71db3b10268", - "Content-Length": "6571", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:08 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-10-15T23:59:05Z", - "lastUpdatedDateTime": "2020-10-15T23:59:08Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0.2511, - "width": 1688, - "height": 3000, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 619, - 291, - 1051, - 284, - 1053, - 384, - 620, - 396 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 623, - 292, - 1051, - 284, - 1052, - 383, - 624, - 397 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "Contoso", - "boundingBox": [ - 322, - 591, - 501, - 601, - 498, - 654, - 319, - 644 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 328, - 591, - 500, - 602, - 498, - 654, - 325, - 644 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "123 Main Street", - "boundingBox": [ - 319, - 690, - 655, - 695, - 654, - 757, - 318, - 752 - ], - "words": [ - { - "text": "123", - "boundingBox": [ - 323, - 690, - 387, - 692, - 383, - 754, - 319, - 753 - ], - "confidence": 0.958 - }, - { - "text": "Main", - "boundingBox": [ - 399, - 692, - 502, - 694, - 498, - 756, - 395, - 754 - ], - "confidence": 0.958 - }, - { - "text": "Street", - "boundingBox": [ - 514, - 695, - 656, - 698, - 653, - 758, - 510, - 756 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "Redmond, WA 98052", - "boundingBox": [ - 317, - 795, - 751, - 795, - 752, - 859, - 317, - 860 - ], - "words": [ - { - "text": "Redmond,", - "boundingBox": [ - 321, - 795, - 523, - 795, - 520, - 861, - 317, - 858 - ], - "confidence": 0.573 - }, - { - "text": "WA", - "boundingBox": [ - 535, - 795, - 597, - 795, - 595, - 861, - 532, - 861 - ], - "confidence": 0.958 - }, - { - "text": "98052", - "boundingBox": [ - 610, - 795, - 749, - 796, - 747, - 858, - 607, - 861 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 618, - 1011, - 616, - 1068, - 305, - 1062 - ], - "words": [ - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "6/10/2019 13:59", - "boundingBox": [ - 303, - 1223, - 630, - 1225, - 629, - 1289, - 302, - 1286 - ], - "words": [ - { - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "confidence": 0.762 - }, - { - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "confidence": 0.943 - } - ] - }, - { - "text": "Sales Associate: Paul", - "boundingBox": [ - 294, - 1335, - 768, - 1335, - 768, - 1401, - 294, - 1399 - ], - "words": [ - { - "text": "Sales", - "boundingBox": [ - 302, - 1336, - 418, - 1335, - 416, - 1399, - 301, - 1399 - ], - "confidence": 0.959 - }, - { - "text": "Associate:", - "boundingBox": [ - 430, - 1335, - 649, - 1336, - 646, - 1401, - 428, - 1399 - ], - "confidence": 0.943 - }, - { - "text": "Paul", - "boundingBox": [ - 661, - 1336, - 767, - 1336, - 764, - 1402, - 659, - 1401 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "1 Surface Pro 6", - "boundingBox": [ - 336, - 1560, - 679, - 1561, - 678, - 1625, - 336, - 1623 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 337, - 1560, - 360, - 1561, - 360, - 1625, - 337, - 1625 - ], - "confidence": 0.799 - }, - { - "text": "Surface", - "boundingBox": [ - 373, - 1561, - 542, - 1562, - 542, - 1624, - 373, - 1625 - ], - "confidence": 0.958 - }, - { - "text": "Pro", - "boundingBox": [ - 555, - 1562, - 631, - 1563, - 631, - 1625, - 555, - 1624 - ], - "confidence": 0.909 - }, - { - "text": "6", - "boundingBox": [ - 644, - 1563, - 676, - 1563, - 675, - 1625, - 643, - 1625 - ], - "confidence": 0.762 - } - ] - }, - { - "text": "256GB / Intel Core i5 /", - "boundingBox": [ - 372, - 1669, - 846, - 1669, - 846, - 1743, - 372, - 1742 - ], - "words": [ - { - "text": "256GB", - "boundingBox": [ - 375, - 1670, - 506, - 1671, - 503, - 1740, - 373, - 1740 - ], - "confidence": 0.95 - }, - { - "text": "/", - "boundingBox": [ - 520, - 1671, - 533, - 1671, - 531, - 1740, - 517, - 1740 - ], - "confidence": 0.876 - }, - { - "text": "Intel", - "boundingBox": [ - 547, - 1671, - 648, - 1671, - 646, - 1741, - 545, - 1740 - ], - "confidence": 0.939 - }, - { - "text": "Core", - "boundingBox": [ - 662, - 1671, - 758, - 1670, - 756, - 1743, - 660, - 1741 - ], - "confidence": 0.942 - }, - { - "text": "i5", - "boundingBox": [ - 772, - 1670, - 808, - 1670, - 807, - 1744, - 770, - 1743 - ], - "confidence": 0.82 - }, - { - "text": "/", - "boundingBox": [ - 822, - 1670, - 847, - 1670, - 846, - 1744, - 820, - 1744 - ], - "confidence": 0.84 - } - ] - }, - { - "text": "8GB RAM (Black)", - "boundingBox": [ - 370, - 1783, - 732, - 1785, - 731, - 1853, - 370, - 1850 - ], - "words": [ - { - "text": "8GB", - "boundingBox": [ - 374, - 1783, - 451, - 1783, - 448, - 1850, - 370, - 1850 - ], - "confidence": 0.799 - }, - { - "text": "RAM", - "boundingBox": [ - 465, - 1783, - 561, - 1784, - 559, - 1851, - 461, - 1850 - ], - "confidence": 0.958 - }, - { - "text": "(Black)", - "boundingBox": [ - 575, - 1784, - 731, - 1785, - 729, - 1854, - 572, - 1852 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 999.00", - "boundingBox": [ - 937, - 1785, - 1139, - 1790, - 1137, - 1862, - 936, - 1859 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 939, - 1785, - 959, - 1785, - 958, - 1859, - 938, - 1859 - ], - "confidence": 0.895 - }, - { - "text": "999.00", - "boundingBox": [ - 974, - 1786, - 1134, - 1789, - 1133, - 1863, - 973, - 1860 - ], - "confidence": 0.873 - } - ] - }, - { - "text": "1 SurfacePen", - "boundingBox": [ - 320, - 2019, - 627, - 2013, - 629, - 2076, - 321, - 2083 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "confidence": 0.819 - }, - { - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "confidence": 0.938 - } - ] - }, - { - "text": "$ 99.99", - "boundingBox": [ - 967, - 2028, - 1128, - 2029, - 1127, - 2091, - 967, - 2091 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 969, - 2028, - 994, - 2028, - 994, - 2091, - 969, - 2091 - ], - "confidence": 0.887 - }, - { - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "confidence": 0.912 - } - ] - }, - { - "text": "Sub-Total", - "boundingBox": [ - 474, - 2242, - 697, - 2244, - 697, - 2310, - 473, - 2308 - ], - "words": [ - { - "text": "Sub-Total", - "boundingBox": [ - 476, - 2242, - 695, - 2245, - 694, - 2310, - 474, - 2308 - ], - "confidence": 0.917 - } - ] - }, - { - "text": "$ 1098.99", - "boundingBox": [ - 922, - 2259, - 1136, - 2253, - 1138, - 2318, - 924, - 2325 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 924, - 2261, - 950, - 2260, - 954, - 2326, - 928, - 2326 - ], - "confidence": 0.881 - }, - { - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "confidence": 0.941 - } - ] - }, - { - "text": "Tax", - "boundingBox": [ - 570, - 2355, - 655, - 2357, - 654, - 2415, - 568, - 2413 - ], - "words": [ - { - "text": "Tax", - "boundingBox": [ - 571, - 2355, - 654, - 2357, - 653, - 2415, - 570, - 2413 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 104.40", - "boundingBox": [ - 941, - 2368, - 1134, - 2364, - 1137, - 2433, - 942, - 2438 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 943, - 2368, - 966, - 2367, - 968, - 2437, - 944, - 2438 - ], - "confidence": 0.892 - }, - { - "text": "104.40", - "boundingBox": [ - 980, - 2367, - 1132, - 2364, - 1133, - 2434, - 982, - 2437 - ], - "confidence": 0.957 - } - ] - }, - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 672, - 2584, - 675, - 2652, - 554, - 2659 - ], - "words": [ - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 668, - 2584, - 672, - 2652, - 554, - 2659 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "$ 1203.39", - "boundingBox": [ - 918, - 2589, - 1123, - 2611, - 1116, - 2677, - 912, - 2656 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 918, - 2590, - 942, - 2592, - 936, - 2659, - 912, - 2657 - ], - "confidence": 0.886 - }, - { - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "confidence": 0.951 - } - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:businesscard", - "pageRange": [ - 1, - 1 - ], - "fields": { - "CompanyNames": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "Contoso Contoso", - "text": "Contoso Contoso", - "boundingBox": [ - 349.3, - 241.3, - 1058, - 284.4, - 1033.5, - 687.1, - 324.8, - 644 - ], - "page": 1, - "confidence": 0.879, - "elements": [ - "#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/1/words/0" - ] - } - ] - }, - "Addresses": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "123 Main Street Redmond, WA 98052", - "text": "123 Main Street Redmond, WA 98052", - "boundingBox": [ - 319.9, - 689.9, - 750.7, - 697.5, - 747.8, - 865.6, - 317, - 858 - ], - "page": 1, - "confidence": 0.988, - "elements": [ - "#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1", - "#/readResults/0/lines/2/words/2", - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2" - ] - } - ] - }, - "OtherPhones": { - "type": "array", - "valueArray": [ - { - "type": "phoneNumber", - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "page": 1, - "confidence": 0.99, - "elements": [ - "#/readResults/0/lines/4/words/0" - ] - } - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/", - "RandomSeed": "84403959" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%)Async.json deleted file mode 100644 index 63bd7b805aa5..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%%)Async.json +++ /dev/null @@ -1,1106 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=true\u0026locale=", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "279674", - "Content-Type": "image/jpeg", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6dbdfb463f873b4ab6cfb441f8bedcdc-9b046c679c3a324c-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "da116df558b3da3d2019368fab51681a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "246250e4-2faf-4eef-9ef3-c82425388365", - "Content-Length": "0", - "Date": "Thu, 15 Oct 2020 23:59:18 GMT", - "Operation-Location": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/246250e4-2faf-4eef-9ef3-c82425388365", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "232" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/246250e4-2faf-4eef-9ef3-c82425388365", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "01416f34aec50afdd9d70ea54b15089d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "19ca4a08-c608-4711-b14c-015072914fcf", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2020-10-15T23:59:18Z", - "lastUpdatedDateTime": "2020-10-15T23:59:18Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/246250e4-2faf-4eef-9ef3-c82425388365", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "dd50a676f11b9f782a9bc0fd1b0243b8", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "1500f654-a2dc-4295-8786-c63f7ca31d9a", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:19 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:18Z", - "lastUpdatedDateTime": "2020-10-15T23:59:19Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/246250e4-2faf-4eef-9ef3-c82425388365", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "110cc3d870da47866f0600dc4a978f0b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9c5e265b-1d69-4a58-85c0-8817008cd30a", - "Content-Length": "6571", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:20 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-10-15T23:59:18Z", - "lastUpdatedDateTime": "2020-10-15T23:59:20Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0.2511, - "width": 1688, - "height": 3000, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 619, - 291, - 1051, - 284, - 1053, - 384, - 620, - 396 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 623, - 292, - 1051, - 284, - 1052, - 383, - 624, - 397 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "Contoso", - "boundingBox": [ - 322, - 591, - 501, - 601, - 498, - 654, - 319, - 644 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 328, - 591, - 500, - 602, - 498, - 654, - 325, - 644 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "123 Main Street", - "boundingBox": [ - 319, - 690, - 655, - 695, - 654, - 757, - 318, - 752 - ], - "words": [ - { - "text": "123", - "boundingBox": [ - 323, - 690, - 387, - 692, - 383, - 754, - 319, - 753 - ], - "confidence": 0.958 - }, - { - "text": "Main", - "boundingBox": [ - 399, - 692, - 502, - 694, - 498, - 756, - 395, - 754 - ], - "confidence": 0.958 - }, - { - "text": "Street", - "boundingBox": [ - 514, - 695, - 656, - 698, - 653, - 758, - 510, - 756 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "Redmond, WA 98052", - "boundingBox": [ - 317, - 795, - 751, - 795, - 752, - 859, - 317, - 860 - ], - "words": [ - { - "text": "Redmond,", - "boundingBox": [ - 321, - 795, - 523, - 795, - 520, - 861, - 317, - 858 - ], - "confidence": 0.573 - }, - { - "text": "WA", - "boundingBox": [ - 535, - 795, - 597, - 795, - 595, - 861, - 532, - 861 - ], - "confidence": 0.958 - }, - { - "text": "98052", - "boundingBox": [ - 610, - 795, - 749, - 796, - 747, - 858, - 607, - 861 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 618, - 1011, - 616, - 1068, - 305, - 1062 - ], - "words": [ - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "6/10/2019 13:59", - "boundingBox": [ - 303, - 1223, - 630, - 1225, - 629, - 1289, - 302, - 1286 - ], - "words": [ - { - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "confidence": 0.762 - }, - { - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "confidence": 0.943 - } - ] - }, - { - "text": "Sales Associate: Paul", - "boundingBox": [ - 294, - 1335, - 768, - 1335, - 768, - 1401, - 294, - 1399 - ], - "words": [ - { - "text": "Sales", - "boundingBox": [ - 302, - 1336, - 418, - 1335, - 416, - 1399, - 301, - 1399 - ], - "confidence": 0.959 - }, - { - "text": "Associate:", - "boundingBox": [ - 430, - 1335, - 649, - 1336, - 646, - 1401, - 428, - 1399 - ], - "confidence": 0.943 - }, - { - "text": "Paul", - "boundingBox": [ - 661, - 1336, - 767, - 1336, - 764, - 1402, - 659, - 1401 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "1 Surface Pro 6", - "boundingBox": [ - 336, - 1560, - 679, - 1561, - 678, - 1625, - 336, - 1623 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 337, - 1560, - 360, - 1561, - 360, - 1625, - 337, - 1625 - ], - "confidence": 0.799 - }, - { - "text": "Surface", - "boundingBox": [ - 373, - 1561, - 542, - 1562, - 542, - 1624, - 373, - 1625 - ], - "confidence": 0.958 - }, - { - "text": "Pro", - "boundingBox": [ - 555, - 1562, - 631, - 1563, - 631, - 1625, - 555, - 1624 - ], - "confidence": 0.909 - }, - { - "text": "6", - "boundingBox": [ - 644, - 1563, - 676, - 1563, - 675, - 1625, - 643, - 1625 - ], - "confidence": 0.762 - } - ] - }, - { - "text": "256GB / Intel Core i5 /", - "boundingBox": [ - 372, - 1669, - 846, - 1669, - 846, - 1743, - 372, - 1742 - ], - "words": [ - { - "text": "256GB", - "boundingBox": [ - 375, - 1670, - 506, - 1671, - 503, - 1740, - 373, - 1740 - ], - "confidence": 0.95 - }, - { - "text": "/", - "boundingBox": [ - 520, - 1671, - 533, - 1671, - 531, - 1740, - 517, - 1740 - ], - "confidence": 0.876 - }, - { - "text": "Intel", - "boundingBox": [ - 547, - 1671, - 648, - 1671, - 646, - 1741, - 545, - 1740 - ], - "confidence": 0.939 - }, - { - "text": "Core", - "boundingBox": [ - 662, - 1671, - 758, - 1670, - 756, - 1743, - 660, - 1741 - ], - "confidence": 0.942 - }, - { - "text": "i5", - "boundingBox": [ - 772, - 1670, - 808, - 1670, - 807, - 1744, - 770, - 1743 - ], - "confidence": 0.82 - }, - { - "text": "/", - "boundingBox": [ - 822, - 1670, - 847, - 1670, - 846, - 1744, - 820, - 1744 - ], - "confidence": 0.84 - } - ] - }, - { - "text": "8GB RAM (Black)", - "boundingBox": [ - 370, - 1783, - 732, - 1785, - 731, - 1853, - 370, - 1850 - ], - "words": [ - { - "text": "8GB", - "boundingBox": [ - 374, - 1783, - 451, - 1783, - 448, - 1850, - 370, - 1850 - ], - "confidence": 0.799 - }, - { - "text": "RAM", - "boundingBox": [ - 465, - 1783, - 561, - 1784, - 559, - 1851, - 461, - 1850 - ], - "confidence": 0.958 - }, - { - "text": "(Black)", - "boundingBox": [ - 575, - 1784, - 731, - 1785, - 729, - 1854, - 572, - 1852 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 999.00", - "boundingBox": [ - 937, - 1785, - 1139, - 1790, - 1137, - 1862, - 936, - 1859 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 939, - 1785, - 959, - 1785, - 958, - 1859, - 938, - 1859 - ], - "confidence": 0.895 - }, - { - "text": "999.00", - "boundingBox": [ - 974, - 1786, - 1134, - 1789, - 1133, - 1863, - 973, - 1860 - ], - "confidence": 0.873 - } - ] - }, - { - "text": "1 SurfacePen", - "boundingBox": [ - 320, - 2019, - 627, - 2013, - 629, - 2076, - 321, - 2083 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "confidence": 0.819 - }, - { - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "confidence": 0.938 - } - ] - }, - { - "text": "$ 99.99", - "boundingBox": [ - 967, - 2028, - 1128, - 2029, - 1127, - 2091, - 967, - 2091 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 969, - 2028, - 994, - 2028, - 994, - 2091, - 969, - 2091 - ], - "confidence": 0.887 - }, - { - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "confidence": 0.912 - } - ] - }, - { - "text": "Sub-Total", - "boundingBox": [ - 474, - 2242, - 697, - 2244, - 697, - 2310, - 473, - 2308 - ], - "words": [ - { - "text": "Sub-Total", - "boundingBox": [ - 476, - 2242, - 695, - 2245, - 694, - 2310, - 474, - 2308 - ], - "confidence": 0.917 - } - ] - }, - { - "text": "$ 1098.99", - "boundingBox": [ - 922, - 2259, - 1136, - 2253, - 1138, - 2318, - 924, - 2325 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 924, - 2261, - 950, - 2260, - 954, - 2326, - 928, - 2326 - ], - "confidence": 0.881 - }, - { - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "confidence": 0.941 - } - ] - }, - { - "text": "Tax", - "boundingBox": [ - 570, - 2355, - 655, - 2357, - 654, - 2415, - 568, - 2413 - ], - "words": [ - { - "text": "Tax", - "boundingBox": [ - 571, - 2355, - 654, - 2357, - 653, - 2415, - 570, - 2413 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 104.40", - "boundingBox": [ - 941, - 2368, - 1134, - 2364, - 1137, - 2433, - 942, - 2438 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 943, - 2368, - 966, - 2367, - 968, - 2437, - 944, - 2438 - ], - "confidence": 0.892 - }, - { - "text": "104.40", - "boundingBox": [ - 980, - 2367, - 1132, - 2364, - 1133, - 2434, - 982, - 2437 - ], - "confidence": 0.957 - } - ] - }, - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 672, - 2584, - 675, - 2652, - 554, - 2659 - ], - "words": [ - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 668, - 2584, - 672, - 2652, - 554, - 2659 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "$ 1203.39", - "boundingBox": [ - 918, - 2589, - 1123, - 2611, - 1116, - 2677, - 912, - 2656 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 918, - 2590, - 942, - 2592, - 936, - 2659, - 912, - 2657 - ], - "confidence": 0.886 - }, - { - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "confidence": 0.951 - } - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:businesscard", - "pageRange": [ - 1, - 1 - ], - "fields": { - "CompanyNames": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "Contoso Contoso", - "text": "Contoso Contoso", - "boundingBox": [ - 349.3, - 241.3, - 1058, - 284.4, - 1033.5, - 687.1, - 324.8, - 644 - ], - "page": 1, - "confidence": 0.879, - "elements": [ - "#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/1/words/0" - ] - } - ] - }, - "Addresses": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "123 Main Street Redmond, WA 98052", - "text": "123 Main Street Redmond, WA 98052", - "boundingBox": [ - 319.9, - 689.9, - 750.7, - 697.5, - 747.8, - 865.6, - 317, - 858 - ], - "page": 1, - "confidence": 0.988, - "elements": [ - "#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1", - "#/readResults/0/lines/2/words/2", - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2" - ] - } - ] - }, - "OtherPhones": { - "type": "array", - "valueArray": [ - { - "type": "phoneNumber", - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "page": 1, - "confidence": 0.99, - "elements": [ - "#/readResults/0/lines/4/words/0" - ] - } - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/", - "RandomSeed": "1842160532" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%).json deleted file mode 100644 index b66a484c7ec8..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%).json +++ /dev/null @@ -1,1106 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=true\u0026locale=en-US", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "279674", - "Content-Type": "image/jpeg", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-170a05bcf740284ca5fe3cfb075b5b30-30e8656b3ee86b4d-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "02266b350010fcb8fc643579dac7e756", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "f4132695-0462-43ae-a416-c5d5a4ed29c7", - "Content-Length": "0", - "Date": "Thu, 15 Oct 2020 23:59:02 GMT", - "Operation-Location": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/f4132695-0462-43ae-a416-c5d5a4ed29c7", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "271" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/f4132695-0462-43ae-a416-c5d5a4ed29c7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "e156edda9cd8b4f59ea289413011ff5d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "bdc59a33-a27d-451b-8601-19ae771edf60", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:02 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "66" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:02Z", - "lastUpdatedDateTime": "2020-10-15T23:59:02Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/f4132695-0462-43ae-a416-c5d5a4ed29c7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "40adaf570a65cbe42d94275d271215cb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "106c6ece-4600-4774-b96d-bb63bf8e4849", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:03 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:02Z", - "lastUpdatedDateTime": "2020-10-15T23:59:02Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/f4132695-0462-43ae-a416-c5d5a4ed29c7", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "44f00a418417982b7571636e7777cceb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "abdc8c19-784b-43d1-af4e-4df2c0ba6395", - "Content-Length": "6571", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-10-15T23:59:02Z", - "lastUpdatedDateTime": "2020-10-15T23:59:04Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0.2511, - "width": 1688, - "height": 3000, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 619, - 291, - 1051, - 284, - 1053, - 384, - 620, - 396 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 623, - 292, - 1051, - 284, - 1052, - 383, - 624, - 397 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "Contoso", - "boundingBox": [ - 322, - 591, - 501, - 601, - 498, - 654, - 319, - 644 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 328, - 591, - 500, - 602, - 498, - 654, - 325, - 644 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "123 Main Street", - "boundingBox": [ - 319, - 690, - 655, - 695, - 654, - 757, - 318, - 752 - ], - "words": [ - { - "text": "123", - "boundingBox": [ - 323, - 690, - 387, - 692, - 383, - 754, - 319, - 753 - ], - "confidence": 0.958 - }, - { - "text": "Main", - "boundingBox": [ - 399, - 692, - 502, - 694, - 498, - 756, - 395, - 754 - ], - "confidence": 0.958 - }, - { - "text": "Street", - "boundingBox": [ - 514, - 695, - 656, - 698, - 653, - 758, - 510, - 756 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "Redmond, WA 98052", - "boundingBox": [ - 317, - 795, - 751, - 795, - 752, - 859, - 317, - 860 - ], - "words": [ - { - "text": "Redmond,", - "boundingBox": [ - 321, - 795, - 523, - 795, - 520, - 861, - 317, - 858 - ], - "confidence": 0.573 - }, - { - "text": "WA", - "boundingBox": [ - 535, - 795, - 597, - 795, - 595, - 861, - 532, - 861 - ], - "confidence": 0.958 - }, - { - "text": "98052", - "boundingBox": [ - 610, - 795, - 749, - 796, - 747, - 858, - 607, - 861 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 618, - 1011, - 616, - 1068, - 305, - 1062 - ], - "words": [ - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "6/10/2019 13:59", - "boundingBox": [ - 303, - 1223, - 630, - 1225, - 629, - 1289, - 302, - 1286 - ], - "words": [ - { - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "confidence": 0.762 - }, - { - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "confidence": 0.943 - } - ] - }, - { - "text": "Sales Associate: Paul", - "boundingBox": [ - 294, - 1335, - 768, - 1335, - 768, - 1401, - 294, - 1399 - ], - "words": [ - { - "text": "Sales", - "boundingBox": [ - 302, - 1336, - 418, - 1335, - 416, - 1399, - 301, - 1399 - ], - "confidence": 0.959 - }, - { - "text": "Associate:", - "boundingBox": [ - 430, - 1335, - 649, - 1336, - 646, - 1401, - 428, - 1399 - ], - "confidence": 0.943 - }, - { - "text": "Paul", - "boundingBox": [ - 661, - 1336, - 767, - 1336, - 764, - 1402, - 659, - 1401 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "1 Surface Pro 6", - "boundingBox": [ - 336, - 1560, - 679, - 1561, - 678, - 1625, - 336, - 1623 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 337, - 1560, - 360, - 1561, - 360, - 1625, - 337, - 1625 - ], - "confidence": 0.799 - }, - { - "text": "Surface", - "boundingBox": [ - 373, - 1561, - 542, - 1562, - 542, - 1624, - 373, - 1625 - ], - "confidence": 0.958 - }, - { - "text": "Pro", - "boundingBox": [ - 555, - 1562, - 631, - 1563, - 631, - 1625, - 555, - 1624 - ], - "confidence": 0.909 - }, - { - "text": "6", - "boundingBox": [ - 644, - 1563, - 676, - 1563, - 675, - 1625, - 643, - 1625 - ], - "confidence": 0.762 - } - ] - }, - { - "text": "256GB / Intel Core i5 /", - "boundingBox": [ - 372, - 1669, - 846, - 1669, - 846, - 1743, - 372, - 1742 - ], - "words": [ - { - "text": "256GB", - "boundingBox": [ - 375, - 1670, - 506, - 1671, - 503, - 1740, - 373, - 1740 - ], - "confidence": 0.95 - }, - { - "text": "/", - "boundingBox": [ - 520, - 1671, - 533, - 1671, - 531, - 1740, - 517, - 1740 - ], - "confidence": 0.876 - }, - { - "text": "Intel", - "boundingBox": [ - 547, - 1671, - 648, - 1671, - 646, - 1741, - 545, - 1740 - ], - "confidence": 0.939 - }, - { - "text": "Core", - "boundingBox": [ - 662, - 1671, - 758, - 1670, - 756, - 1743, - 660, - 1741 - ], - "confidence": 0.942 - }, - { - "text": "i5", - "boundingBox": [ - 772, - 1670, - 808, - 1670, - 807, - 1744, - 770, - 1743 - ], - "confidence": 0.82 - }, - { - "text": "/", - "boundingBox": [ - 822, - 1670, - 847, - 1670, - 846, - 1744, - 820, - 1744 - ], - "confidence": 0.84 - } - ] - }, - { - "text": "8GB RAM (Black)", - "boundingBox": [ - 370, - 1783, - 732, - 1785, - 731, - 1853, - 370, - 1850 - ], - "words": [ - { - "text": "8GB", - "boundingBox": [ - 374, - 1783, - 451, - 1783, - 448, - 1850, - 370, - 1850 - ], - "confidence": 0.799 - }, - { - "text": "RAM", - "boundingBox": [ - 465, - 1783, - 561, - 1784, - 559, - 1851, - 461, - 1850 - ], - "confidence": 0.958 - }, - { - "text": "(Black)", - "boundingBox": [ - 575, - 1784, - 731, - 1785, - 729, - 1854, - 572, - 1852 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 999.00", - "boundingBox": [ - 937, - 1785, - 1139, - 1790, - 1137, - 1862, - 936, - 1859 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 939, - 1785, - 959, - 1785, - 958, - 1859, - 938, - 1859 - ], - "confidence": 0.895 - }, - { - "text": "999.00", - "boundingBox": [ - 974, - 1786, - 1134, - 1789, - 1133, - 1863, - 973, - 1860 - ], - "confidence": 0.873 - } - ] - }, - { - "text": "1 SurfacePen", - "boundingBox": [ - 320, - 2019, - 627, - 2013, - 629, - 2076, - 321, - 2083 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "confidence": 0.819 - }, - { - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "confidence": 0.938 - } - ] - }, - { - "text": "$ 99.99", - "boundingBox": [ - 967, - 2028, - 1128, - 2029, - 1127, - 2091, - 967, - 2091 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 969, - 2028, - 994, - 2028, - 994, - 2091, - 969, - 2091 - ], - "confidence": 0.887 - }, - { - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "confidence": 0.912 - } - ] - }, - { - "text": "Sub-Total", - "boundingBox": [ - 474, - 2242, - 697, - 2244, - 697, - 2310, - 473, - 2308 - ], - "words": [ - { - "text": "Sub-Total", - "boundingBox": [ - 476, - 2242, - 695, - 2245, - 694, - 2310, - 474, - 2308 - ], - "confidence": 0.917 - } - ] - }, - { - "text": "$ 1098.99", - "boundingBox": [ - 922, - 2259, - 1136, - 2253, - 1138, - 2318, - 924, - 2325 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 924, - 2261, - 950, - 2260, - 954, - 2326, - 928, - 2326 - ], - "confidence": 0.881 - }, - { - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "confidence": 0.941 - } - ] - }, - { - "text": "Tax", - "boundingBox": [ - 570, - 2355, - 655, - 2357, - 654, - 2415, - 568, - 2413 - ], - "words": [ - { - "text": "Tax", - "boundingBox": [ - 571, - 2355, - 654, - 2357, - 653, - 2415, - 570, - 2413 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 104.40", - "boundingBox": [ - 941, - 2368, - 1134, - 2364, - 1137, - 2433, - 942, - 2438 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 943, - 2368, - 966, - 2367, - 968, - 2437, - 944, - 2438 - ], - "confidence": 0.892 - }, - { - "text": "104.40", - "boundingBox": [ - 980, - 2367, - 1132, - 2364, - 1133, - 2434, - 982, - 2437 - ], - "confidence": 0.957 - } - ] - }, - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 672, - 2584, - 675, - 2652, - 554, - 2659 - ], - "words": [ - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 668, - 2584, - 672, - 2652, - 554, - 2659 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "$ 1203.39", - "boundingBox": [ - 918, - 2589, - 1123, - 2611, - 1116, - 2677, - 912, - 2656 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 918, - 2590, - 942, - 2592, - 936, - 2659, - 912, - 2657 - ], - "confidence": 0.886 - }, - { - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "confidence": 0.951 - } - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:businesscard", - "pageRange": [ - 1, - 1 - ], - "fields": { - "CompanyNames": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "Contoso Contoso", - "text": "Contoso Contoso", - "boundingBox": [ - 349.3, - 241.3, - 1058, - 284.4, - 1033.5, - 687.1, - 324.8, - 644 - ], - "page": 1, - "confidence": 0.879, - "elements": [ - "#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/1/words/0" - ] - } - ] - }, - "Addresses": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "123 Main Street Redmond, WA 98052", - "text": "123 Main Street Redmond, WA 98052", - "boundingBox": [ - 319.9, - 689.9, - 750.7, - 697.5, - 747.8, - 865.6, - 317, - 858 - ], - "page": 1, - "confidence": 0.988, - "elements": [ - "#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1", - "#/readResults/0/lines/2/words/2", - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2" - ] - } - ] - }, - "OtherPhones": { - "type": "array", - "valueArray": [ - { - "type": "phoneNumber", - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "page": 1, - "confidence": 0.99, - "elements": [ - "#/readResults/0/lines/4/words/0" - ] - } - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/", - "RandomSeed": "1964171681" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%)Async.json deleted file mode 100644 index a01356642572..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale(%en-US%)Async.json +++ /dev/null @@ -1,1136 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=true\u0026locale=en-US", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "279674", - "Content-Type": "image/jpeg", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9dacca780396ca4fbd35f5bdddc289ee-9cef70b9cfd48741-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "ab811e1441607f86b4401e4d350cfeda", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "65e8e5cf-a6c5-4934-ac52-9f1e67627402", - "Content-Length": "0", - "Date": "Thu, 15 Oct 2020 23:59:15 GMT", - "Operation-Location": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/65e8e5cf-a6c5-4934-ac52-9f1e67627402", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "234" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/65e8e5cf-a6c5-4934-ac52-9f1e67627402", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "8cf57ed06b990572ff9d47130596e4e3", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "a5095331-2fc0-4b6b-848a-cdd8df0c008c", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2020-10-15T23:59:15Z", - "lastUpdatedDateTime": "2020-10-15T23:59:15Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/65e8e5cf-a6c5-4934-ac52-9f1e67627402", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "606b50dc7a0ef8437c58270443a217b1", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "67823a02-d222-4199-8b32-dc64262f38b7", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:15Z", - "lastUpdatedDateTime": "2020-10-15T23:59:15Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/65e8e5cf-a6c5-4934-ac52-9f1e67627402", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "d2fae61ed3d7a84dab7cabc2f973791d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d4e77f54-240b-441b-b913-401e67a77216", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "13" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-10-15T23:59:15Z", - "lastUpdatedDateTime": "2020-10-15T23:59:15Z" - } - }, - { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/65e8e5cf-a6c5-4934-ac52-9f1e67627402", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "e5713a5b9ea156cc3bfd0f40446dc25d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9e0ec07f-89af-4d5f-9092-98e71d06b38c", - "Content-Length": "6571", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-10-15T23:59:15Z", - "lastUpdatedDateTime": "2020-10-15T23:59:18Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0.2511, - "width": 1688, - "height": 3000, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 619, - 291, - 1051, - 284, - 1053, - 384, - 620, - 396 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 623, - 292, - 1051, - 284, - 1052, - 383, - 624, - 397 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "Contoso", - "boundingBox": [ - 322, - 591, - 501, - 601, - 498, - 654, - 319, - 644 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 328, - 591, - 500, - 602, - 498, - 654, - 325, - 644 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "123 Main Street", - "boundingBox": [ - 319, - 690, - 655, - 695, - 654, - 757, - 318, - 752 - ], - "words": [ - { - "text": "123", - "boundingBox": [ - 323, - 690, - 387, - 692, - 383, - 754, - 319, - 753 - ], - "confidence": 0.958 - }, - { - "text": "Main", - "boundingBox": [ - 399, - 692, - 502, - 694, - 498, - 756, - 395, - 754 - ], - "confidence": 0.958 - }, - { - "text": "Street", - "boundingBox": [ - 514, - 695, - 656, - 698, - 653, - 758, - 510, - 756 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "Redmond, WA 98052", - "boundingBox": [ - 317, - 795, - 751, - 795, - 752, - 859, - 317, - 860 - ], - "words": [ - { - "text": "Redmond,", - "boundingBox": [ - 321, - 795, - 523, - 795, - 520, - 861, - 317, - 858 - ], - "confidence": 0.573 - }, - { - "text": "WA", - "boundingBox": [ - 535, - 795, - 597, - 795, - 595, - 861, - 532, - 861 - ], - "confidence": 0.958 - }, - { - "text": "98052", - "boundingBox": [ - 610, - 795, - 749, - 796, - 747, - 858, - 607, - 861 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 618, - 1011, - 616, - 1068, - 305, - 1062 - ], - "words": [ - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "6/10/2019 13:59", - "boundingBox": [ - 303, - 1223, - 630, - 1225, - 629, - 1289, - 302, - 1286 - ], - "words": [ - { - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "confidence": 0.762 - }, - { - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "confidence": 0.943 - } - ] - }, - { - "text": "Sales Associate: Paul", - "boundingBox": [ - 294, - 1335, - 768, - 1335, - 768, - 1401, - 294, - 1399 - ], - "words": [ - { - "text": "Sales", - "boundingBox": [ - 302, - 1336, - 418, - 1335, - 416, - 1399, - 301, - 1399 - ], - "confidence": 0.959 - }, - { - "text": "Associate:", - "boundingBox": [ - 430, - 1335, - 649, - 1336, - 646, - 1401, - 428, - 1399 - ], - "confidence": 0.943 - }, - { - "text": "Paul", - "boundingBox": [ - 661, - 1336, - 767, - 1336, - 764, - 1402, - 659, - 1401 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "1 Surface Pro 6", - "boundingBox": [ - 336, - 1560, - 679, - 1561, - 678, - 1625, - 336, - 1623 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 337, - 1560, - 360, - 1561, - 360, - 1625, - 337, - 1625 - ], - "confidence": 0.799 - }, - { - "text": "Surface", - "boundingBox": [ - 373, - 1561, - 542, - 1562, - 542, - 1624, - 373, - 1625 - ], - "confidence": 0.958 - }, - { - "text": "Pro", - "boundingBox": [ - 555, - 1562, - 631, - 1563, - 631, - 1625, - 555, - 1624 - ], - "confidence": 0.909 - }, - { - "text": "6", - "boundingBox": [ - 644, - 1563, - 676, - 1563, - 675, - 1625, - 643, - 1625 - ], - "confidence": 0.762 - } - ] - }, - { - "text": "256GB / Intel Core i5 /", - "boundingBox": [ - 372, - 1669, - 846, - 1669, - 846, - 1743, - 372, - 1742 - ], - "words": [ - { - "text": "256GB", - "boundingBox": [ - 375, - 1670, - 506, - 1671, - 503, - 1740, - 373, - 1740 - ], - "confidence": 0.95 - }, - { - "text": "/", - "boundingBox": [ - 520, - 1671, - 533, - 1671, - 531, - 1740, - 517, - 1740 - ], - "confidence": 0.876 - }, - { - "text": "Intel", - "boundingBox": [ - 547, - 1671, - 648, - 1671, - 646, - 1741, - 545, - 1740 - ], - "confidence": 0.939 - }, - { - "text": "Core", - "boundingBox": [ - 662, - 1671, - 758, - 1670, - 756, - 1743, - 660, - 1741 - ], - "confidence": 0.942 - }, - { - "text": "i5", - "boundingBox": [ - 772, - 1670, - 808, - 1670, - 807, - 1744, - 770, - 1743 - ], - "confidence": 0.82 - }, - { - "text": "/", - "boundingBox": [ - 822, - 1670, - 847, - 1670, - 846, - 1744, - 820, - 1744 - ], - "confidence": 0.84 - } - ] - }, - { - "text": "8GB RAM (Black)", - "boundingBox": [ - 370, - 1783, - 732, - 1785, - 731, - 1853, - 370, - 1850 - ], - "words": [ - { - "text": "8GB", - "boundingBox": [ - 374, - 1783, - 451, - 1783, - 448, - 1850, - 370, - 1850 - ], - "confidence": 0.799 - }, - { - "text": "RAM", - "boundingBox": [ - 465, - 1783, - 561, - 1784, - 559, - 1851, - 461, - 1850 - ], - "confidence": 0.958 - }, - { - "text": "(Black)", - "boundingBox": [ - 575, - 1784, - 731, - 1785, - 729, - 1854, - 572, - 1852 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 999.00", - "boundingBox": [ - 937, - 1785, - 1139, - 1790, - 1137, - 1862, - 936, - 1859 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 939, - 1785, - 959, - 1785, - 958, - 1859, - 938, - 1859 - ], - "confidence": 0.895 - }, - { - "text": "999.00", - "boundingBox": [ - 974, - 1786, - 1134, - 1789, - 1133, - 1863, - 973, - 1860 - ], - "confidence": 0.873 - } - ] - }, - { - "text": "1 SurfacePen", - "boundingBox": [ - 320, - 2019, - 627, - 2013, - 629, - 2076, - 321, - 2083 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "confidence": 0.819 - }, - { - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "confidence": 0.938 - } - ] - }, - { - "text": "$ 99.99", - "boundingBox": [ - 967, - 2028, - 1128, - 2029, - 1127, - 2091, - 967, - 2091 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 969, - 2028, - 994, - 2028, - 994, - 2091, - 969, - 2091 - ], - "confidence": 0.887 - }, - { - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "confidence": 0.912 - } - ] - }, - { - "text": "Sub-Total", - "boundingBox": [ - 474, - 2242, - 697, - 2244, - 697, - 2310, - 473, - 2308 - ], - "words": [ - { - "text": "Sub-Total", - "boundingBox": [ - 476, - 2242, - 695, - 2245, - 694, - 2310, - 474, - 2308 - ], - "confidence": 0.917 - } - ] - }, - { - "text": "$ 1098.99", - "boundingBox": [ - 922, - 2259, - 1136, - 2253, - 1138, - 2318, - 924, - 2325 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 924, - 2261, - 950, - 2260, - 954, - 2326, - 928, - 2326 - ], - "confidence": 0.881 - }, - { - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "confidence": 0.941 - } - ] - }, - { - "text": "Tax", - "boundingBox": [ - 570, - 2355, - 655, - 2357, - 654, - 2415, - 568, - 2413 - ], - "words": [ - { - "text": "Tax", - "boundingBox": [ - 571, - 2355, - 654, - 2357, - 653, - 2415, - 570, - 2413 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 104.40", - "boundingBox": [ - 941, - 2368, - 1134, - 2364, - 1137, - 2433, - 942, - 2438 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 943, - 2368, - 966, - 2367, - 968, - 2437, - 944, - 2438 - ], - "confidence": 0.892 - }, - { - "text": "104.40", - "boundingBox": [ - 980, - 2367, - 1132, - 2364, - 1133, - 2434, - 982, - 2437 - ], - "confidence": 0.957 - } - ] - }, - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 672, - 2584, - 675, - 2652, - 554, - 2659 - ], - "words": [ - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 668, - 2584, - 672, - 2652, - 554, - 2659 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "$ 1203.39", - "boundingBox": [ - 918, - 2589, - 1123, - 2611, - 1116, - 2677, - 912, - 2656 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 918, - 2590, - 942, - 2592, - 936, - 2659, - 912, - 2657 - ], - "confidence": 0.886 - }, - { - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "confidence": 0.951 - } - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:businesscard", - "pageRange": [ - 1, - 1 - ], - "fields": { - "CompanyNames": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "Contoso Contoso", - "text": "Contoso Contoso", - "boundingBox": [ - 349.3, - 241.3, - 1058, - 284.4, - 1033.5, - 687.1, - 324.8, - 644 - ], - "page": 1, - "confidence": 0.879, - "elements": [ - "#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/1/words/0" - ] - } - ] - }, - "Addresses": { - "type": "array", - "valueArray": [ - { - "type": "string", - "valueString": "123 Main Street Redmond, WA 98052", - "text": "123 Main Street Redmond, WA 98052", - "boundingBox": [ - 319.9, - 689.9, - 750.7, - 697.5, - 747.8, - 865.6, - 317, - 858 - ], - "page": 1, - "confidence": 0.988, - "elements": [ - "#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1", - "#/readResults/0/lines/2/words/2", - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2" - ] - } - ] - }, - "OtherPhones": { - "type": "array", - "valueArray": [ - { - "type": "phoneNumber", - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "page": 1, - "confidence": 0.99, - "elements": [ - "#/readResults/0/lines/4/words/0" - ] - } - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/", - "RandomSeed": "312413013" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale.json new file mode 100644 index 000000000000..1db4796bb9c7 --- /dev/null +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocale.json @@ -0,0 +1,1197 @@ +{ + "Entries": [ + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=true\u0026locale=en-US", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "915108", + "Content-Type": "image/jpeg", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-632f49b43c276d45b9e0d7789277faaf-2709d7bb82036e46-00", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "f1bf7ea81b4eebb9c0afea971f9a7495", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "apim-request-id": "e2101240-0dfe-4534-9387-7b583bf8e817", + "Content-Length": "0", + "Date": "Fri, 29 Jan 2021 00:11:29 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/e2101240-0dfe-4534-9387-7b583bf8e817", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "501" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/e2101240-0dfe-4534-9387-7b583bf8e817", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "ee453eea74c8dab4c8121724d6033728", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "a8dde9b1-1537-4aca-b941-0127ba9700f2", + "Content-Length": "109", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:29 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "12" + }, + "ResponseBody": { + "status": "notStarted", + "createdDateTime": "2021-01-29T00:11:29Z", + "lastUpdatedDateTime": "2021-01-29T00:11:29Z" + } + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/e2101240-0dfe-4534-9387-7b583bf8e817", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "12cec26ec55e138a7f6b9d0c8f30ea9b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "e3e60efe-6fc6-4f2e-ba29-0d1d7a2aa20d", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:30 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "44" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2021-01-29T00:11:29Z", + "lastUpdatedDateTime": "2021-01-29T00:11:30Z" + } + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/e2101240-0dfe-4534-9387-7b583bf8e817", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "af9dc527201e3404c9e4293c049415bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "60a24178-5112-402c-854c-98f656d14b47", + "Content-Length": "9010", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:31 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "30" + }, + "ResponseBody": { + "status": "succeeded", + "createdDateTime": "2021-01-29T00:11:29Z", + "lastUpdatedDateTime": "2021-01-29T00:11:32Z", + "analyzeResult": { + "version": "2.1.0", + "readResults": [ + { + "page": 1, + "angle": -16.6836, + "width": 4032, + "height": 3024, + "unit": "pixel", + "lines": [ + { + "text": "Dr. Avery Smith", + "boundingBox": [ + 416, + 1155, + 1608, + 871, + 1637, + 993, + 443, + 1268 + ], + "words": [ + { + "text": "Dr.", + "boundingBox": [ + 416, + 1161, + 661, + 1103, + 691, + 1217, + 446, + 1268 + ], + "confidence": 0.984 + }, + { + "text": "Avery", + "boundingBox": [ + 683, + 1098, + 1158, + 984, + 1187, + 1103, + 712, + 1212 + ], + "confidence": 0.983 + }, + { + "text": "Smith", + "boundingBox": [ + 1179, + 979, + 1610, + 871, + 1637, + 990, + 1209, + 1097 + ], + "confidence": 0.985 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.998 + } + } + }, + { + "text": "Senior Researcher", + "boundingBox": [ + 447, + 1313, + 1317, + 1103, + 1332, + 1179, + 465, + 1390 + ], + "words": [ + { + "text": "Senior", + "boundingBox": [ + 447, + 1313, + 779, + 1234, + 796, + 1310, + 466, + 1390 + ], + "confidence": 0.983 + }, + { + "text": "Researcher", + "boundingBox": [ + 794, + 1231, + 1318, + 1103, + 1332, + 1181, + 811, + 1306 + ], + "confidence": 0.981 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "Cloud \u0026 Al Department", + "boundingBox": [ + 474, + 1410, + 1596, + 1131, + 1613, + 1215, + 494, + 1490 + ], + "words": [ + { + "text": "Cloud", + "boundingBox": [ + 474, + 1411, + 771, + 1337, + 790, + 1421, + 494, + 1490 + ], + "confidence": 0.984 + }, + { + "text": "\u0026", + "boundingBox": [ + 792, + 1332, + 876, + 1311, + 894, + 1396, + 811, + 1416 + ], + "confidence": 0.983 + }, + { + "text": "Al", + "boundingBox": [ + 902, + 1305, + 1011, + 1277, + 1029, + 1363, + 920, + 1390 + ], + "confidence": 0.817 + }, + { + "text": "Department", + "boundingBox": [ + 1027, + 1274, + 1594, + 1132, + 1611, + 1215, + 1045, + 1359 + ], + "confidence": 0.981 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "avery.smith@contoso.com", + "boundingBox": [ + 2102, + 933, + 2939, + 697, + 2952, + 757, + 2119, + 994 + ], + "words": [ + { + "text": "avery.smith@contoso.com", + "boundingBox": [ + 2103, + 935, + 2926, + 701, + 2938, + 764, + 2119, + 994 + ], + "confidence": 0.943 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "https://www.contoso.com/", + "boundingBox": [ + 2116, + 1004, + 2986, + 756, + 3007, + 825, + 2135, + 1075 + ], + "words": [ + { + "text": "https://www.contoso.com/", + "boundingBox": [ + 2116, + 1004, + 2981, + 757, + 3006, + 824, + 2136, + 1075 + ], + "confidence": 0.939 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "mob: \u002B44 (0) 7911 123456", + "boundingBox": [ + 2239, + 1098, + 3080, + 846, + 3100, + 912, + 2256, + 1165 + ], + "words": [ + { + "text": "mob:", + "boundingBox": [ + 2239, + 1103, + 2425, + 1043, + 2441, + 1112, + 2256, + 1165 + ], + "confidence": 0.983 + }, + { + "text": "\u002B44", + "boundingBox": [ + 2437, + 1039, + 2554, + 1002, + 2571, + 1074, + 2453, + 1108 + ], + "confidence": 0.987 + }, + { + "text": "(0)", + "boundingBox": [ + 2566, + 998, + 2667, + 967, + 2684, + 1040, + 2583, + 1070 + ], + "confidence": 0.983 + }, + { + "text": "7911", + "boundingBox": [ + 2679, + 964, + 2833, + 918, + 2850, + 990, + 2696, + 1036 + ], + "confidence": 0.984 + }, + { + "text": "123456", + "boundingBox": [ + 2846, + 914, + 3082, + 846, + 3099, + 913, + 2863, + 986 + ], + "confidence": 0.983 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.998 + } + } + }, + { + "text": "tel: \u002B44 (0) 20 9876 5432", + "boundingBox": [ + 2341, + 1158, + 3137, + 914, + 3153, + 983, + 2362, + 1224 + ], + "words": [ + { + "text": "tel:", + "boundingBox": [ + 2342, + 1161, + 2459, + 1123, + 2478, + 1192, + 2361, + 1224 + ], + "confidence": 0.986 + }, + { + "text": "\u002B44", + "boundingBox": [ + 2472, + 1119, + 2589, + 1082, + 2608, + 1155, + 2491, + 1189 + ], + "confidence": 0.987 + }, + { + "text": "(0)", + "boundingBox": [ + 2602, + 1078, + 2703, + 1046, + 2720, + 1121, + 2620, + 1151 + ], + "confidence": 0.983 + }, + { + "text": "20", + "boundingBox": [ + 2716, + 1042, + 2791, + 1019, + 2808, + 1094, + 2733, + 1117 + ], + "confidence": 0.988 + }, + { + "text": "9876", + "boundingBox": [ + 2804, + 1015, + 2964, + 967, + 2980, + 1038, + 2821, + 1090 + ], + "confidence": 0.982 + }, + { + "text": "5432", + "boundingBox": [ + 2977, + 963, + 3137, + 915, + 3152, + 981, + 2993, + 1034 + ], + "confidence": 0.983 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.992 + } + } + }, + { + "text": "fax: \u002B44 (0) 20 6789 2345", + "boundingBox": [ + 2376, + 1242, + 3199, + 981, + 3219, + 1055, + 2396, + 1308 + ], + "words": [ + { + "text": "fax:", + "boundingBox": [ + 2376, + 1243, + 2512, + 1199, + 2531, + 1270, + 2395, + 1308 + ], + "confidence": 0.984 + }, + { + "text": "\u002B44", + "boundingBox": [ + 2525, + 1195, + 2644, + 1157, + 2663, + 1232, + 2544, + 1267 + ], + "confidence": 0.983 + }, + { + "text": "(0)", + "boundingBox": [ + 2657, + 1153, + 2759, + 1121, + 2778, + 1197, + 2676, + 1228 + ], + "confidence": 0.983 + }, + { + "text": "20", + "boundingBox": [ + 2772, + 1117, + 2853, + 1091, + 2872, + 1167, + 2791, + 1193 + ], + "confidence": 0.988 + }, + { + "text": "6789", + "boundingBox": [ + 2866, + 1087, + 3028, + 1036, + 3047, + 1110, + 2885, + 1163 + ], + "confidence": 0.985 + }, + { + "text": "2345", + "boundingBox": [ + 3041, + 1032, + 3199, + 982, + 3218, + 1052, + 3060, + 1106 + ], + "confidence": 0.983 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.991 + } + } + }, + { + "text": "Contoso", + "boundingBox": [ + 1145, + 1922, + 2313, + 1562, + 2368, + 1731, + 1200, + 2099 + ], + "words": [ + { + "text": "Contoso", + "boundingBox": [ + 1157, + 1923, + 2299, + 1565, + 2361, + 1731, + 1213, + 2098 + ], + "confidence": 0.982 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "2 Kingdom Street", + "boundingBox": [ + 1228, + 2139, + 2028, + 1876, + 2058, + 1962, + 1257, + 2235 + ], + "words": [ + { + "text": "2", + "boundingBox": [ + 1229, + 2138, + 1293, + 2116, + 1322, + 2215, + 1258, + 2236 + ], + "confidence": 0.987 + }, + { + "text": "Kingdom", + "boundingBox": [ + 1313, + 2110, + 1726, + 1975, + 1753, + 2065, + 1341, + 2209 + ], + "confidence": 0.984 + }, + { + "text": "Street", + "boundingBox": [ + 1745, + 1969, + 2030, + 1877, + 2056, + 1954, + 1772, + 2059 + ], + "confidence": 0.984 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "Paddington, London, W2 6BD", + "boundingBox": [ + 1273, + 2262, + 2576, + 1803, + 2608, + 1898, + 1304, + 2354 + ], + "words": [ + { + "text": "Paddington,", + "boundingBox": [ + 1274, + 2262, + 1850, + 2056, + 1881, + 2160, + 1302, + 2354 + ], + "confidence": 0.976 + }, + { + "text": "London,", + "boundingBox": [ + 1869, + 2049, + 2224, + 1925, + 2256, + 2024, + 1899, + 2154 + ], + "confidence": 0.984 + }, + { + "text": "W2", + "boundingBox": [ + 2242, + 1919, + 2380, + 1870, + 2413, + 1965, + 2274, + 2017 + ], + "confidence": 0.988 + }, + { + "text": "6BD", + "boundingBox": [ + 2398, + 1864, + 2573, + 1804, + 2607, + 1889, + 2431, + 1957 + ], + "confidence": 0.982 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + } + ] + } + ], + "documentResults": [ + { + "docType": "prebuilt:businesscard", + "pageRange": [ + 1, + 1 + ], + "fields": { + "ContactNames": { + "type": "array", + "valueArray": [ + { + "type": "object", + "valueObject": { + "FirstName": { + "type": "string", + "valueString": "Avery", + "text": "Avery", + "boundingBox": [ + 683, + 1098, + 1158, + 984, + 1187, + 1103, + 712, + 1212 + ], + "page": 1, + "elements": [ + "#/readResults/0/lines/0/words/1" + ] + }, + "LastName": { + "type": "string", + "valueString": "Smith", + "text": "Smith", + "boundingBox": [ + 1179, + 979, + 1610, + 871, + 1637, + 990, + 1209, + 1097 + ], + "page": 1, + "elements": [ + "#/readResults/0/lines/0/words/2" + ] + } + }, + "text": "Dr. Avery Smith", + "boundingBox": [ + 413.8, + 1151.8, + 1610, + 871, + 1639.5, + 996.8, + 443.4, + 1277.6 + ], + "page": 1, + "confidence": 0.979, + "elements": [ + "#/readResults/0/lines/0/words/0", + "#/readResults/0/lines/0/words/1", + "#/readResults/0/lines/0/words/2" + ] + } + ] + }, + "JobTitles": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "Senior Researcher", + "text": "Senior Researcher", + "boundingBox": [ + 446.8, + 1312.2, + 1318, + 1103, + 1336.7, + 1180.9, + 465.5, + 1390.1 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1" + ] + } + ] + }, + "Departments": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "Cloud \u0026 Al Department", + "text": "Cloud \u0026 Al Department", + "boundingBox": [ + 473.1, + 1407.2, + 1594, + 1132, + 1615.4, + 1219.3, + 494.5, + 1494.5 + ], + "page": 1, + "confidence": 0.989, + "elements": [ + "#/readResults/0/lines/2/words/0", + "#/readResults/0/lines/2/words/1", + "#/readResults/0/lines/2/words/2", + "#/readResults/0/lines/2/words/3" + ] + } + ] + }, + "Emails": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "avery.smith@contoso.com", + "text": "avery.smith@contoso.com", + "boundingBox": [ + 2103, + 935, + 2926, + 701, + 2938, + 764, + 2119, + 994 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/3/words/0" + ] + } + ] + }, + "Websites": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "https://www.contoso.com/", + "text": "https://www.contoso.com/", + "boundingBox": [ + 2116, + 1004, + 2981, + 757, + 3006, + 824, + 2136, + 1075 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/4/words/0" + ] + } + ] + }, + "MobilePhones": { + "type": "array", + "valueArray": [ + { + "type": "phoneNumber", + "text": "\u002B44 (0) 7911 123456", + "boundingBox": [ + 2431.9, + 1037.2, + 3081.2, + 843.3, + 3102.7, + 915.2, + 2453.3, + 1109.1 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/5/words/1", + "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/5/words/3", + "#/readResults/0/lines/5/words/4" + ] + } + ] + }, + "OtherPhones": { + "type": "array", + "valueArray": [ + { + "type": "phoneNumber", + "text": "\u002B44 (0) 20 9876 5432", + "boundingBox": [ + 2469.1, + 1118.1, + 3136.2, + 912.4, + 3158.8, + 985.8, + 2491.8, + 1191.5 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/6/words/1", + "#/readResults/0/lines/6/words/2", + "#/readResults/0/lines/6/words/3", + "#/readResults/0/lines/6/words/4", + "#/readResults/0/lines/6/words/5" + ] + } + ] + }, + "Faxes": { + "type": "array", + "valueArray": [ + { + "type": "phoneNumber", + "text": "\u002B44 (0) 20 6789 2345", + "boundingBox": [ + 2521.3, + 1196.2, + 3198, + 979, + 3222.3, + 1054.7, + 2545.6, + 1271.9 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/7/words/1", + "#/readResults/0/lines/7/words/2", + "#/readResults/0/lines/7/words/3", + "#/readResults/0/lines/7/words/4", + "#/readResults/0/lines/7/words/5" + ] + } + ] + }, + "CompanyNames": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "Contoso", + "text": "Contoso", + "boundingBox": [ + 1157, + 1923, + 2299, + 1565, + 2361, + 1731, + 1213, + 2098 + ], + "page": 1, + "confidence": 0.222, + "elements": [ + "#/readResults/0/lines/8/words/0" + ] + } + ] + }, + "Addresses": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "2 Kingdom Street Paddington, London, W2 6BD", + "text": "2 Kingdom Street Paddington, London, W2 6BD", + "boundingBox": [ + 1224.6, + 2139.5, + 2536.4, + 1685.2, + 2613.1, + 1906.7, + 1301.3, + 2361 + ], + "page": 1, + "confidence": 0.979, + "elements": [ + "#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1", + "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", + "#/readResults/0/lines/10/words/2", + "#/readResults/0/lines/10/words/3" + ] + } + ] + } + } + } + ] + } + } + } + ], + "Variables": { + "FORM_RECOGNIZER_API_KEY": "Sanitized", + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "467384433" + } +} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocaleAsync.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocaleAsync.json new file mode 100644 index 000000000000..41430fb6e011 --- /dev/null +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithSupportedLocaleAsync.json @@ -0,0 +1,1227 @@ +{ + "Entries": [ + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=true\u0026locale=en-US", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Length": "915108", + "Content-Type": "image/jpeg", + "Ocp-Apim-Subscription-Key": "Sanitized", + "traceparent": "00-7a9c3e71407f9b488a7640e842bf5239-912c63370540f443-00", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "e0058522d58e335ca9692088f71a0e57", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "apim-request-id": "983937b4-6d5b-47b1-b96b-3453047f27ef", + "Content-Length": "0", + "Date": "Fri, 29 Jan 2021 00:11:48 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/983937b4-6d5b-47b1-b96b-3453047f27ef", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "633" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/983937b4-6d5b-47b1-b96b-3453047f27ef", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "72734f5a9c7efb708ce0048c4b799707", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "89577031-21a7-4e28-adc6-407404ba4760", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:48 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "11" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2021-01-29T00:11:48Z", + "lastUpdatedDateTime": "2021-01-29T00:11:48Z" + } + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/983937b4-6d5b-47b1-b96b-3453047f27ef", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "757cf70269ef7ceed373e7f70bd8dcdf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "55487a39-bdfe-4828-a71f-e7116dc729e9", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:49 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "12" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2021-01-29T00:11:48Z", + "lastUpdatedDateTime": "2021-01-29T00:11:48Z" + } + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/983937b4-6d5b-47b1-b96b-3453047f27ef", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "00e9d777a99885ce140a53add0d0e82f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "17da0092-c12a-4252-83aa-05c120f63a36", + "Content-Length": "106", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:50 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "12" + }, + "ResponseBody": { + "status": "running", + "createdDateTime": "2021-01-29T00:11:48Z", + "lastUpdatedDateTime": "2021-01-29T00:11:48Z" + } + }, + { + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/983937b4-6d5b-47b1-b96b-3453047f27ef", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Ocp-Apim-Subscription-Key": "Sanitized", + "User-Agent": [ + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" + ], + "x-ms-client-request-id": "008619d1999ef06860f69e0ab579f0b4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "apim-request-id": "2dba041d-cfe3-4a14-892c-89cb83a73afd", + "Content-Length": "9010", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 29 Jan 2021 00:11:51 GMT", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", + "X-Content-Type-Options": "nosniff", + "x-envoy-upstream-service-time": "27" + }, + "ResponseBody": { + "status": "succeeded", + "createdDateTime": "2021-01-29T00:11:48Z", + "lastUpdatedDateTime": "2021-01-29T00:11:51Z", + "analyzeResult": { + "version": "2.1.0", + "readResults": [ + { + "page": 1, + "angle": -16.6836, + "width": 4032, + "height": 3024, + "unit": "pixel", + "lines": [ + { + "text": "Dr. Avery Smith", + "boundingBox": [ + 416, + 1155, + 1608, + 871, + 1637, + 993, + 443, + 1268 + ], + "words": [ + { + "text": "Dr.", + "boundingBox": [ + 416, + 1161, + 661, + 1103, + 691, + 1217, + 446, + 1268 + ], + "confidence": 0.984 + }, + { + "text": "Avery", + "boundingBox": [ + 683, + 1098, + 1158, + 984, + 1187, + 1103, + 712, + 1212 + ], + "confidence": 0.983 + }, + { + "text": "Smith", + "boundingBox": [ + 1179, + 979, + 1610, + 871, + 1637, + 990, + 1209, + 1097 + ], + "confidence": 0.985 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.998 + } + } + }, + { + "text": "Senior Researcher", + "boundingBox": [ + 447, + 1313, + 1317, + 1103, + 1332, + 1179, + 465, + 1390 + ], + "words": [ + { + "text": "Senior", + "boundingBox": [ + 447, + 1313, + 779, + 1234, + 796, + 1310, + 466, + 1390 + ], + "confidence": 0.983 + }, + { + "text": "Researcher", + "boundingBox": [ + 794, + 1231, + 1318, + 1103, + 1332, + 1181, + 811, + 1306 + ], + "confidence": 0.981 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "Cloud \u0026 Al Department", + "boundingBox": [ + 474, + 1410, + 1596, + 1131, + 1613, + 1215, + 494, + 1490 + ], + "words": [ + { + "text": "Cloud", + "boundingBox": [ + 474, + 1411, + 771, + 1337, + 790, + 1421, + 494, + 1490 + ], + "confidence": 0.984 + }, + { + "text": "\u0026", + "boundingBox": [ + 792, + 1332, + 876, + 1311, + 894, + 1396, + 811, + 1416 + ], + "confidence": 0.983 + }, + { + "text": "Al", + "boundingBox": [ + 902, + 1305, + 1011, + 1277, + 1029, + 1363, + 920, + 1390 + ], + "confidence": 0.817 + }, + { + "text": "Department", + "boundingBox": [ + 1027, + 1274, + 1594, + 1132, + 1611, + 1215, + 1045, + 1359 + ], + "confidence": 0.981 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "avery.smith@contoso.com", + "boundingBox": [ + 2102, + 933, + 2939, + 697, + 2952, + 757, + 2119, + 994 + ], + "words": [ + { + "text": "avery.smith@contoso.com", + "boundingBox": [ + 2103, + 935, + 2926, + 701, + 2938, + 764, + 2119, + 994 + ], + "confidence": 0.943 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "https://www.contoso.com/", + "boundingBox": [ + 2116, + 1004, + 2986, + 756, + 3007, + 825, + 2135, + 1075 + ], + "words": [ + { + "text": "https://www.contoso.com/", + "boundingBox": [ + 2116, + 1004, + 2981, + 757, + 3006, + 824, + 2136, + 1075 + ], + "confidence": 0.939 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "mob: \u002B44 (0) 7911 123456", + "boundingBox": [ + 2239, + 1098, + 3080, + 846, + 3100, + 912, + 2256, + 1165 + ], + "words": [ + { + "text": "mob:", + "boundingBox": [ + 2239, + 1103, + 2425, + 1043, + 2441, + 1112, + 2256, + 1165 + ], + "confidence": 0.983 + }, + { + "text": "\u002B44", + "boundingBox": [ + 2437, + 1039, + 2554, + 1002, + 2571, + 1074, + 2453, + 1108 + ], + "confidence": 0.987 + }, + { + "text": "(0)", + "boundingBox": [ + 2566, + 998, + 2667, + 967, + 2684, + 1040, + 2583, + 1070 + ], + "confidence": 0.983 + }, + { + "text": "7911", + "boundingBox": [ + 2679, + 964, + 2833, + 918, + 2850, + 990, + 2696, + 1036 + ], + "confidence": 0.984 + }, + { + "text": "123456", + "boundingBox": [ + 2846, + 914, + 3082, + 846, + 3099, + 913, + 2863, + 986 + ], + "confidence": 0.983 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.998 + } + } + }, + { + "text": "tel: \u002B44 (0) 20 9876 5432", + "boundingBox": [ + 2341, + 1158, + 3137, + 914, + 3153, + 983, + 2362, + 1224 + ], + "words": [ + { + "text": "tel:", + "boundingBox": [ + 2342, + 1161, + 2459, + 1123, + 2478, + 1192, + 2361, + 1224 + ], + "confidence": 0.986 + }, + { + "text": "\u002B44", + "boundingBox": [ + 2472, + 1119, + 2589, + 1082, + 2608, + 1155, + 2491, + 1189 + ], + "confidence": 0.987 + }, + { + "text": "(0)", + "boundingBox": [ + 2602, + 1078, + 2703, + 1046, + 2720, + 1121, + 2620, + 1151 + ], + "confidence": 0.983 + }, + { + "text": "20", + "boundingBox": [ + 2716, + 1042, + 2791, + 1019, + 2808, + 1094, + 2733, + 1117 + ], + "confidence": 0.988 + }, + { + "text": "9876", + "boundingBox": [ + 2804, + 1015, + 2964, + 967, + 2980, + 1038, + 2821, + 1090 + ], + "confidence": 0.982 + }, + { + "text": "5432", + "boundingBox": [ + 2977, + 963, + 3137, + 915, + 3152, + 981, + 2993, + 1034 + ], + "confidence": 0.983 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.992 + } + } + }, + { + "text": "fax: \u002B44 (0) 20 6789 2345", + "boundingBox": [ + 2376, + 1242, + 3199, + 981, + 3219, + 1055, + 2396, + 1308 + ], + "words": [ + { + "text": "fax:", + "boundingBox": [ + 2376, + 1243, + 2512, + 1199, + 2531, + 1270, + 2395, + 1308 + ], + "confidence": 0.984 + }, + { + "text": "\u002B44", + "boundingBox": [ + 2525, + 1195, + 2644, + 1157, + 2663, + 1232, + 2544, + 1267 + ], + "confidence": 0.983 + }, + { + "text": "(0)", + "boundingBox": [ + 2657, + 1153, + 2759, + 1121, + 2778, + 1197, + 2676, + 1228 + ], + "confidence": 0.983 + }, + { + "text": "20", + "boundingBox": [ + 2772, + 1117, + 2853, + 1091, + 2872, + 1167, + 2791, + 1193 + ], + "confidence": 0.988 + }, + { + "text": "6789", + "boundingBox": [ + 2866, + 1087, + 3028, + 1036, + 3047, + 1110, + 2885, + 1163 + ], + "confidence": 0.985 + }, + { + "text": "2345", + "boundingBox": [ + 3041, + 1032, + 3199, + 982, + 3218, + 1052, + 3060, + 1106 + ], + "confidence": 0.983 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 0.991 + } + } + }, + { + "text": "Contoso", + "boundingBox": [ + 1145, + 1922, + 2313, + 1562, + 2368, + 1731, + 1200, + 2099 + ], + "words": [ + { + "text": "Contoso", + "boundingBox": [ + 1157, + 1923, + 2299, + 1565, + 2361, + 1731, + 1213, + 2098 + ], + "confidence": 0.982 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "2 Kingdom Street", + "boundingBox": [ + 1228, + 2139, + 2028, + 1876, + 2058, + 1962, + 1257, + 2235 + ], + "words": [ + { + "text": "2", + "boundingBox": [ + 1229, + 2138, + 1293, + 2116, + 1322, + 2215, + 1258, + 2236 + ], + "confidence": 0.987 + }, + { + "text": "Kingdom", + "boundingBox": [ + 1313, + 2110, + 1726, + 1975, + 1753, + 2065, + 1341, + 2209 + ], + "confidence": 0.984 + }, + { + "text": "Street", + "boundingBox": [ + 1745, + 1969, + 2030, + 1877, + 2056, + 1954, + 1772, + 2059 + ], + "confidence": 0.984 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + }, + { + "text": "Paddington, London, W2 6BD", + "boundingBox": [ + 1273, + 2262, + 2576, + 1803, + 2608, + 1898, + 1304, + 2354 + ], + "words": [ + { + "text": "Paddington,", + "boundingBox": [ + 1274, + 2262, + 1850, + 2056, + 1881, + 2160, + 1302, + 2354 + ], + "confidence": 0.976 + }, + { + "text": "London,", + "boundingBox": [ + 1869, + 2049, + 2224, + 1925, + 2256, + 2024, + 1899, + 2154 + ], + "confidence": 0.984 + }, + { + "text": "W2", + "boundingBox": [ + 2242, + 1919, + 2380, + 1870, + 2413, + 1965, + 2274, + 2017 + ], + "confidence": 0.988 + }, + { + "text": "6BD", + "boundingBox": [ + 2398, + 1864, + 2573, + 1804, + 2607, + 1889, + 2431, + 1957 + ], + "confidence": 0.982 + } + ], + "appearance": { + "style": { + "name": "print", + "confidence": 1 + } + } + } + ] + } + ], + "documentResults": [ + { + "docType": "prebuilt:businesscard", + "pageRange": [ + 1, + 1 + ], + "fields": { + "ContactNames": { + "type": "array", + "valueArray": [ + { + "type": "object", + "valueObject": { + "FirstName": { + "type": "string", + "valueString": "Avery", + "text": "Avery", + "boundingBox": [ + 683, + 1098, + 1158, + 984, + 1187, + 1103, + 712, + 1212 + ], + "page": 1, + "elements": [ + "#/readResults/0/lines/0/words/1" + ] + }, + "LastName": { + "type": "string", + "valueString": "Smith", + "text": "Smith", + "boundingBox": [ + 1179, + 979, + 1610, + 871, + 1637, + 990, + 1209, + 1097 + ], + "page": 1, + "elements": [ + "#/readResults/0/lines/0/words/2" + ] + } + }, + "text": "Dr. Avery Smith", + "boundingBox": [ + 413.8, + 1151.8, + 1610, + 871, + 1639.5, + 996.8, + 443.4, + 1277.6 + ], + "page": 1, + "confidence": 0.979, + "elements": [ + "#/readResults/0/lines/0/words/0", + "#/readResults/0/lines/0/words/1", + "#/readResults/0/lines/0/words/2" + ] + } + ] + }, + "JobTitles": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "Senior Researcher", + "text": "Senior Researcher", + "boundingBox": [ + 446.8, + 1312.2, + 1318, + 1103, + 1336.7, + 1180.9, + 465.5, + 1390.1 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1" + ] + } + ] + }, + "Departments": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "Cloud \u0026 Al Department", + "text": "Cloud \u0026 Al Department", + "boundingBox": [ + 473.1, + 1407.2, + 1594, + 1132, + 1615.4, + 1219.3, + 494.5, + 1494.5 + ], + "page": 1, + "confidence": 0.989, + "elements": [ + "#/readResults/0/lines/2/words/0", + "#/readResults/0/lines/2/words/1", + "#/readResults/0/lines/2/words/2", + "#/readResults/0/lines/2/words/3" + ] + } + ] + }, + "Emails": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "avery.smith@contoso.com", + "text": "avery.smith@contoso.com", + "boundingBox": [ + 2103, + 935, + 2926, + 701, + 2938, + 764, + 2119, + 994 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/3/words/0" + ] + } + ] + }, + "Websites": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "https://www.contoso.com/", + "text": "https://www.contoso.com/", + "boundingBox": [ + 2116, + 1004, + 2981, + 757, + 3006, + 824, + 2136, + 1075 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/4/words/0" + ] + } + ] + }, + "MobilePhones": { + "type": "array", + "valueArray": [ + { + "type": "phoneNumber", + "text": "\u002B44 (0) 7911 123456", + "boundingBox": [ + 2431.9, + 1037.2, + 3081.2, + 843.3, + 3102.7, + 915.2, + 2453.3, + 1109.1 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/5/words/1", + "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/5/words/3", + "#/readResults/0/lines/5/words/4" + ] + } + ] + }, + "OtherPhones": { + "type": "array", + "valueArray": [ + { + "type": "phoneNumber", + "text": "\u002B44 (0) 20 9876 5432", + "boundingBox": [ + 2469.1, + 1118.1, + 3136.2, + 912.4, + 3158.8, + 985.8, + 2491.8, + 1191.5 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/6/words/1", + "#/readResults/0/lines/6/words/2", + "#/readResults/0/lines/6/words/3", + "#/readResults/0/lines/6/words/4", + "#/readResults/0/lines/6/words/5" + ] + } + ] + }, + "Faxes": { + "type": "array", + "valueArray": [ + { + "type": "phoneNumber", + "text": "\u002B44 (0) 20 6789 2345", + "boundingBox": [ + 2521.3, + 1196.2, + 3198, + 979, + 3222.3, + 1054.7, + 2545.6, + 1271.9 + ], + "page": 1, + "confidence": 0.99, + "elements": [ + "#/readResults/0/lines/7/words/1", + "#/readResults/0/lines/7/words/2", + "#/readResults/0/lines/7/words/3", + "#/readResults/0/lines/7/words/4", + "#/readResults/0/lines/7/words/5" + ] + } + ] + }, + "CompanyNames": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "Contoso", + "text": "Contoso", + "boundingBox": [ + 1157, + 1923, + 2299, + 1565, + 2361, + 1731, + 1213, + 2098 + ], + "page": 1, + "confidence": 0.222, + "elements": [ + "#/readResults/0/lines/8/words/0" + ] + } + ] + }, + "Addresses": { + "type": "array", + "valueArray": [ + { + "type": "string", + "valueString": "2 Kingdom Street Paddington, London, W2 6BD", + "text": "2 Kingdom Street Paddington, London, W2 6BD", + "boundingBox": [ + 1224.6, + 2139.5, + 2536.4, + 1685.2, + 2613.1, + 1906.7, + 1301.3, + 2361 + ], + "page": 1, + "confidence": 0.979, + "elements": [ + "#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1", + "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", + "#/readResults/0/lines/10/words/2", + "#/readResults/0/lines/10/words/3" + ] + } + ] + } + } + } + ] + } + } + } + ], + "Variables": { + "FORM_RECOGNIZER_API_KEY": "Sanitized", + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "1149310180" + } +} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocale.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocale.json index 81e77485e08d..b49d04c806f2 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocale.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocale.json @@ -1,17 +1,17 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=false\u0026locale=not-locale", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false\u0026locale=not-locale", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-33b9eca0cf9666479bb91c9a916575f7-ca5f58fb0d4bb949-00", + "traceparent": "00-ead8e2131e96564da5040c253a771dd0-fa6da470ddef9d44-00", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "0c00f61b3fe264147a8e75f31ac2e787", "x-ms-return-client-request-id": "true" @@ -21,19 +21,19 @@ }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "55631c36-da76-4a9e-a119-516e38209262", + "apim-request-id": "3debf965-0020-459d-94c1-1507f789e95a", "Content-Length": "200", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:01 GMT", + "Date": "Fri, 29 Jan 2021 00:11:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "655" + "x-envoy-upstream-service-time": "1035" }, "ResponseBody": { "error": { "code": "UnsupportedLocale", "innerError": { - "requestId": "55631c36-da76-4a9e-a119-516e38209262" + "requestId": "3debf965-0020-459d-94c1-1507f789e95a" }, "message": "Locale unsupported. Supported locales include en-AU, en-CA, en-GB, en-IN and en-US." } @@ -42,7 +42,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/", + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", "RandomSeed": "1101271057" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocaleAsync.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocaleAsync.json index c081274061c2..c457759c38a7 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocaleAsync.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeBusinessCardsWithWrongLocaleAsync.json @@ -1,17 +1,17 @@ { "Entries": [ { - "RequestUri": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=false\u0026locale=not-locale", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false\u0026locale=not-locale", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f331b6ea8e955c4fafd723306b431e4b-73ab2e428521cd40-00", + "traceparent": "00-817455c84abee848826db4c0809ac3e2-fff4bfca7107ad49-00", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201015.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], "x-ms-client-request-id": "0bef32c94f3dd48ff57dc7e518ff7a7b", "x-ms-return-client-request-id": "true" @@ -21,19 +21,19 @@ }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "988fc859-a11d-48e0-a148-fbfd07ec9b24", + "apim-request-id": "ed0885e6-046a-46b7-94fb-691c3e6d8e93", "Content-Length": "200", "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 15 Oct 2020 23:59:13 GMT", + "Date": "Fri, 29 Jan 2021 00:11:52 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "512" + "x-envoy-upstream-service-time": "893" }, "ResponseBody": { "error": { "code": "UnsupportedLocale", "innerError": { - "requestId": "988fc859-a11d-48e0-a148-fbfd07ec9b24" + "requestId": "ed0885e6-046a-46b7-94fb-691c3e6d8e93" }, "message": "Locale unsupported. Supported locales include en-AU, en-CA, en-GB, en-IN and en-US." } @@ -42,7 +42,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-westus2-formrecognizer.cognitiveservices.azure.com/", + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", "RandomSeed": "161180304" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%).json deleted file mode 100644 index 741727a76370..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%).json +++ /dev/null @@ -1,3705 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "22", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-16857cbba4020e48b11054f27de39d7e-07aaaaedf41b2640-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "d296e4e67319a75e58269007ef6108ec", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "source": "Sanitized" - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "45fcff6d-4f51-47f2-a3ef-9f4b3374a240", - "Content-Length": "0", - "Date": "Wed, 11 Nov 2020 20:57:05 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/45fcff6d-4f51-47f2-a3ef-9f4b3374a240", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "369" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/45fcff6d-4f51-47f2-a3ef-9f4b3374a240", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c75fa6f8ee3894b870687a0c9c7ed416", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "f1cc1ecb-7c76-4727-8d3c-ca83f0ff65af", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:05 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-11T20:57:05Z", - "lastUpdatedDateTime": "2020-11-11T20:57:05Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/45fcff6d-4f51-47f2-a3ef-9f4b3374a240", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "ce481f95e03454bcb64739c520c4b765", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "19581fd0-5b22-4631-8b83-8a3fa02141d3", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-11T20:57:05Z", - "lastUpdatedDateTime": "2020-11-11T20:57:05Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/45fcff6d-4f51-47f2-a3ef-9f4b3374a240", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c56170692ddaf7fa2c0161b0f9510bda", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "918f41de-2cb9-41f5-b545-d4ac22c8fe5f", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-11T20:57:05Z", - "lastUpdatedDateTime": "2020-11-11T20:57:05Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/45fcff6d-4f51-47f2-a3ef-9f4b3374a240", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "cf727a523a1917b8ea0b11f1b4f274ac", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d7a82f5f-ea48-41eb-a556-4b0fe0a8c409", - "Content-Length": "24387", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:09 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "20" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-11-11T20:57:05Z", - "lastUpdatedDateTime": "2020-11-11T20:57:09Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0, - "width": 1700, - "height": 2200, - "unit": "pixel", - "lines": [ - { - "boundingBox": [ - 136, - 139, - 351, - 138, - 351, - 166, - 136, - 166 - ], - "text": "Purchase Order", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 137, - 140, - 264, - 139, - 263, - 167, - 137, - 167 - ], - "text": "Purchase", - "confidence": 0.984 - }, - { - "boundingBox": [ - 269, - 139, - 351, - 139, - 351, - 167, - 269, - 167 - ], - "text": "Order", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 620, - 205, - 1074, - 204, - 1075, - 265, - 620, - 266 - ], - "text": "Hero Limited", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 621, - 208, - 794, - 205, - 793, - 266, - 620, - 266 - ], - "text": "Hero", - "confidence": 0.987 - }, - { - "boundingBox": [ - 806, - 205, - 1075, - 205, - 1074, - 266, - 805, - 266 - ], - "text": "Limited", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 1112, - 321, - 1554, - 321, - 1554, - 369, - 1112, - 369 - ], - "text": "Purchase Order", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1113, - 322, - 1381, - 321, - 1380, - 370, - 1113, - 368 - ], - "text": "Purchase", - "confidence": 0.983 - }, - { - "boundingBox": [ - 1390, - 321, - 1554, - 321, - 1553, - 370, - 1389, - 370 - ], - "text": "Order", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 163, - 352, - 528, - 350, - 528, - 376, - 163, - 379 - ], - "text": "Company Phone: 555-348-6512", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 163, - 353, - 274, - 351, - 275, - 379, - 164, - 378 - ], - "text": "Company", - "confidence": 0.985 - }, - { - "boundingBox": [ - 279, - 351, - 359, - 351, - 360, - 378, - 280, - 378 - ], - "text": "Phone:", - "confidence": 0.984 - }, - { - "boundingBox": [ - 364, - 351, - 528, - 351, - 528, - 374, - 364, - 378 - ], - "text": "555-348-6512", - "confidence": 0.975 - } - ] - }, - { - "boundingBox": [ - 166, - 393, - 533, - 393, - 533, - 418, - 166, - 418 - ], - "text": "Website: www.herolimited.com", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 167, - 394, - 269, - 393, - 269, - 418, - 167, - 417 - ], - "text": "Website:", - "confidence": 0.981 - }, - { - "boundingBox": [ - 273, - 393, - 531, - 393, - 530, - 418, - 273, - 418 - ], - "text": "www.herolimited.com", - "confidence": 0.945 - } - ] - }, - { - "boundingBox": [ - 165, - 435, - 237, - 435, - 237, - 460, - 165, - 460 - ], - "text": "Email:", - "appearance": { - "style": { - "name": "other", - "confidence": 0.99 - } - }, - "words": [ - { - "boundingBox": [ - 165, - 435, - 237, - 435, - 237, - 460, - 165, - 460 - ], - "text": "Email:", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 1024, - 419, - 1317, - 420, - 1317, - 448, - 1024, - 448 - ], - "text": "Dated As: 12/20/2020", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1025, - 421, - 1108, - 420, - 1108, - 448, - 1025, - 448 - ], - "text": "Dated", - "confidence": 0.986 - }, - { - "boundingBox": [ - 1114, - 420, - 1160, - 420, - 1160, - 448, - 1114, - 448 - ], - "text": "As:", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1165, - 420, - 1317, - 421, - 1316, - 449, - 1165, - 448 - ], - "text": "12/20/2020", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 164, - 479, - 482, - 478, - 483, - 502, - 164, - 503 - ], - "text": "accounts@herolimited.com", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 164, - 481, - 478, - 479, - 478, - 503, - 165, - 503 - ], - "text": "accounts@herolimited.com", - "confidence": 0.952 - } - ] - }, - { - "boundingBox": [ - 1023, - 461, - 1376, - 461, - 1376, - 489, - 1023, - 488 - ], - "text": "Purchase Order #: 948284", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 1023, - 461, - 1152, - 461, - 1152, - 489, - 1023, - 488 - ], - "text": "Purchase", - "confidence": 0.984 - }, - { - "boundingBox": [ - 1157, - 461, - 1238, - 461, - 1239, - 489, - 1157, - 489 - ], - "text": "Order", - "confidence": 0.986 - }, - { - "boundingBox": [ - 1244, - 461, - 1272, - 461, - 1272, - 489, - 1244, - 489 - ], - "text": "#:", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1277, - 461, - 1376, - 462, - 1376, - 489, - 1277, - 489 - ], - "text": "948284", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 167, - 547, - 397, - 546, - 397, - 591, - 167, - 592 - ], - "text": "Shipped To", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 167, - 547, - 333, - 547, - 332, - 592, - 168, - 592 - ], - "text": "Shipped", - "confidence": 0.985 - }, - { - "boundingBox": [ - 341, - 547, - 397, - 547, - 396, - 591, - 341, - 592 - ], - "text": "To", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 159, - 609, - 520, - 609, - 520, - 638, - 159, - 638 - ], - "text": "Vendor Name: Hillary Swank", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 160, - 611, - 254, - 610, - 254, - 638, - 160, - 637 - ], - "text": "Vendor", - "confidence": 0.982 - }, - { - "boundingBox": [ - 259, - 610, - 344, - 609, - 344, - 639, - 259, - 638 - ], - "text": "Name:", - "confidence": 0.986 - }, - { - "boundingBox": [ - 350, - 609, - 430, - 609, - 430, - 639, - 349, - 639 - ], - "text": "Hillary", - "confidence": 0.985 - }, - { - "boundingBox": [ - 435, - 609, - 521, - 610, - 520, - 639, - 435, - 639 - ], - "text": "Swank", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 159, - 647, - 629, - 646, - 629, - 677, - 160, - 679 - ], - "text": "Company Name: Higgly Wiggly Books", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 160, - 649, - 278, - 647, - 279, - 678, - 161, - 676 - ], - "text": "Company", - "confidence": 0.985 - }, - { - "boundingBox": [ - 284, - 647, - 370, - 647, - 370, - 679, - 284, - 678 - ], - "text": "Name:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 375, - 647, - 453, - 646, - 453, - 679, - 375, - 679 - ], - "text": "Higgly", - "confidence": 0.986 - }, - { - "boundingBox": [ - 459, - 646, - 545, - 646, - 544, - 678, - 459, - 679 - ], - "text": "Wiggly", - "confidence": 0.986 - }, - { - "boundingBox": [ - 550, - 646, - 629, - 646, - 628, - 676, - 550, - 678 - ], - "text": "Books", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 160, - 684, - 526, - 684, - 526, - 712, - 160, - 711 - ], - "text": "Address: 938 NE Burner Road", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 161, - 685, - 269, - 685, - 268, - 712, - 160, - 711 - ], - "text": "Address:", - "confidence": 0.981 - }, - { - "boundingBox": [ - 274, - 685, - 324, - 685, - 323, - 713, - 273, - 712 - ], - "text": "938", - "confidence": 0.987 - }, - { - "boundingBox": [ - 329, - 685, - 365, - 685, - 364, - 713, - 328, - 713 - ], - "text": "NE", - "confidence": 0.988 - }, - { - "boundingBox": [ - 370, - 685, - 455, - 685, - 455, - 713, - 369, - 713 - ], - "text": "Burner", - "confidence": 0.985 - }, - { - "boundingBox": [ - 460, - 685, - 527, - 685, - 527, - 713, - 460, - 713 - ], - "text": "Road", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 279, - 722, - 566, - 721, - 566, - 750, - 279, - 751 - ], - "text": "Boulder City, CO 92848", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 279, - 722, - 371, - 722, - 372, - 751, - 280, - 750 - ], - "text": "Boulder", - "confidence": 0.985 - }, - { - "boundingBox": [ - 377, - 722, - 433, - 722, - 434, - 751, - 378, - 751 - ], - "text": "City,", - "confidence": 0.986 - }, - { - "boundingBox": [ - 439, - 722, - 477, - 722, - 477, - 751, - 439, - 751 - ], - "text": "CO", - "confidence": 0.988 - }, - { - "boundingBox": [ - 482, - 722, - 565, - 722, - 565, - 749, - 482, - 751 - ], - "text": "92848", - "confidence": 0.976 - } - ] - }, - { - "boundingBox": [ - 612, - 721, - 885, - 721, - 885, - 747, - 612, - 748 - ], - "text": "Phone: 938-294-2949", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 613, - 722, - 702, - 722, - 702, - 749, - 613, - 749 - ], - "text": "Phone:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 708, - 722, - 885, - 722, - 884, - 748, - 708, - 749 - ], - "text": "938-294-2949", - "confidence": 0.976 - } - ] - }, - { - "boundingBox": [ - 167, - 784, - 453, - 784, - 453, - 829, - 167, - 830 - ], - "text": "Shipped From", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 167, - 784, - 330, - 785, - 330, - 830, - 169, - 830 - ], - "text": "Shipped", - "confidence": 0.982 - }, - { - "boundingBox": [ - 339, - 785, - 448, - 785, - 448, - 826, - 339, - 830 - ], - "text": "From", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 165, - 852, - 445, - 851, - 445, - 878, - 165, - 879 - ], - "text": "Name: Bernie Sanders", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 166, - 853, - 250, - 853, - 250, - 879, - 166, - 879 - ], - "text": "Name:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 255, - 852, - 338, - 852, - 337, - 880, - 255, - 879 - ], - "text": "Bernie", - "confidence": 0.985 - }, - { - "boundingBox": [ - 343, - 852, - 446, - 852, - 445, - 879, - 343, - 880 - ], - "text": "Sanders", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 164, - 889, - 629, - 889, - 629, - 919, - 164, - 919 - ], - "text": "Company Name: Jupiter Book Supply", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 164, - 890, - 282, - 890, - 283, - 919, - 165, - 919 - ], - "text": "Company", - "confidence": 0.984 - }, - { - "boundingBox": [ - 288, - 890, - 374, - 889, - 375, - 919, - 289, - 919 - ], - "text": "Name:", - "confidence": 0.985 - }, - { - "boundingBox": [ - 380, - 889, - 466, - 889, - 466, - 919, - 380, - 919 - ], - "text": "Jupiter", - "confidence": 0.983 - }, - { - "boundingBox": [ - 471, - 889, - 536, - 889, - 536, - 920, - 472, - 919 - ], - "text": "Book", - "confidence": 0.983 - }, - { - "boundingBox": [ - 542, - 889, - 630, - 890, - 629, - 920, - 542, - 920 - ], - "text": "Supply", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 165, - 925, - 521, - 926, - 521, - 953, - 165, - 952 - ], - "text": "Address: 383 N Kinnick Road", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 166, - 926, - 273, - 925, - 273, - 953, - 166, - 953 - ], - "text": "Address:", - "confidence": 0.982 - }, - { - "boundingBox": [ - 279, - 925, - 327, - 925, - 327, - 953, - 278, - 953 - ], - "text": "383", - "confidence": 0.987 - }, - { - "boundingBox": [ - 332, - 926, - 353, - 926, - 353, - 953, - 332, - 953 - ], - "text": "N", - "confidence": 0.983 - }, - { - "boundingBox": [ - 358, - 926, - 448, - 926, - 448, - 954, - 358, - 953 - ], - "text": "Kinnick", - "confidence": 0.984 - }, - { - "boundingBox": [ - 453, - 926, - 521, - 927, - 520, - 954, - 453, - 954 - ], - "text": "Road", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 280, - 963, - 514, - 962, - 514, - 990, - 281, - 991 - ], - "text": "Seattle, WA 38383", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 281, - 965, - 377, - 964, - 378, - 991, - 283, - 991 - ], - "text": "Seattle,", - "confidence": 0.981 - }, - { - "boundingBox": [ - 382, - 964, - 429, - 964, - 430, - 991, - 383, - 991 - ], - "text": "WA", - "confidence": 0.988 - }, - { - "boundingBox": [ - 434, - 964, - 514, - 962, - 514, - 990, - 435, - 991 - ], - "text": "38383", - "confidence": 0.975 - } - ] - }, - { - "boundingBox": [ - 760, - 963, - 1032, - 963, - 1032, - 989, - 760, - 990 - ], - "text": "Phone: 932-299-0292", - "appearance": { - "style": { - "name": "other", - "confidence": 0.997 - } - }, - "words": [ - { - "boundingBox": [ - 760, - 964, - 849, - 964, - 849, - 990, - 760, - 990 - ], - "text": "Phone:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 855, - 964, - 1033, - 963, - 1032, - 990, - 854, - 990 - ], - "text": "932-299-0292", - "confidence": 0.978 - } - ] - }, - { - "boundingBox": [ - 446, - 1047, - 558, - 1047, - 558, - 1077, - 446, - 1077 - ], - "text": "Details", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 447, - 1048, - 558, - 1048, - 558, - 1077, - 446, - 1078 - ], - "text": "Details", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 885, - 1047, - 1034, - 1047, - 1034, - 1083, - 886, - 1083 - ], - "text": "Quantity", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 886, - 1048, - 1034, - 1047, - 1034, - 1084, - 886, - 1084 - ], - "text": "Quantity", - "confidence": 0.981 - } - ] - }, - { - "boundingBox": [ - 1111, - 1047, - 1270, - 1047, - 1269, - 1078, - 1111, - 1077 - ], - "text": "Unit Price", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1112, - 1047, - 1181, - 1047, - 1180, - 1078, - 1111, - 1078 - ], - "text": "Unit", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1187, - 1047, - 1270, - 1049, - 1269, - 1078, - 1186, - 1078 - ], - "text": "Price", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1382, - 1047, - 1468, - 1047, - 1467, - 1077, - 1382, - 1077 - ], - "text": "Total", - "appearance": { - "style": { - "name": "other", - "confidence": 0.997 - } - }, - "words": [ - { - "boundingBox": [ - 1384, - 1047, - 1468, - 1047, - 1468, - 1077, - 1384, - 1077 - ], - "text": "Total", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 172, - 1093, - 279, - 1095, - 279, - 1123, - 172, - 1121 - ], - "text": "Bindings", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 172, - 1094, - 278, - 1097, - 278, - 1123, - 173, - 1122 - ], - "text": "Bindings", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 859, - 1094, - 893, - 1094, - 893, - 1119, - 859, - 1119 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.959 - } - }, - "words": [ - { - "boundingBox": [ - 861, - 1094, - 892, - 1094, - 892, - 1119, - 861, - 1119 - ], - "text": "20", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 1240, - 1096, - 1295, - 1094, - 1294, - 1118, - 1241, - 1118 - ], - "text": "1.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1241, - 1095, - 1293, - 1094, - 1294, - 1117, - 1242, - 1118 - ], - "text": "1.00", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1458, - 1095, - 1530, - 1095, - 1530, - 1119, - 1458, - 1119 - ], - "text": "20.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1458, - 1096, - 1531, - 1095, - 1530, - 1120, - 1459, - 1119 - ], - "text": "20.00", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 169, - 1135, - 332, - 1134, - 333, - 1160, - 169, - 1161 - ], - "text": "Covers Small", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 170, - 1136, - 254, - 1136, - 253, - 1161, - 170, - 1161 - ], - "text": "Covers", - "confidence": 0.985 - }, - { - "boundingBox": [ - 259, - 1136, - 333, - 1135, - 332, - 1161, - 258, - 1161 - ], - "text": "Small", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 859, - 1135, - 894, - 1135, - 891, - 1160, - 860, - 1160 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.952 - } - }, - "words": [ - { - "boundingBox": [ - 861, - 1135, - 894, - 1135, - 894, - 1160, - 861, - 1160 - ], - "text": "20", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 1239, - 1135, - 1295, - 1135, - 1294, - 1159, - 1239, - 1160 - ], - "text": "1.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 1240, - 1135, - 1294, - 1135, - 1294, - 1159, - 1241, - 1160 - ], - "text": "1.00", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1458, - 1135, - 1530, - 1135, - 1530, - 1159, - 1459, - 1160 - ], - "text": "20.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 1458, - 1135, - 1529, - 1135, - 1530, - 1159, - 1458, - 1160 - ], - "text": "20.00", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 173, - 1178, - 403, - 1177, - 403, - 1205, - 173, - 1206 - ], - "text": "Feather Bookmark", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 173, - 1180, - 266, - 1179, - 267, - 1206, - 174, - 1206 - ], - "text": "Feather", - "confidence": 0.983 - }, - { - "boundingBox": [ - 271, - 1179, - 402, - 1178, - 403, - 1206, - 272, - 1206 - ], - "text": "Bookmark", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 860, - 1179, - 892, - 1179, - 891, - 1204, - 860, - 1203 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.842 - } - }, - "words": [ - { - "boundingBox": [ - 863, - 1179, - 892, - 1179, - 891, - 1204, - 863, - 1204 - ], - "text": "20", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1239, - 1179, - 1295, - 1178, - 1295, - 1203, - 1239, - 1204 - ], - "text": "5.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1239, - 1179, - 1294, - 1178, - 1294, - 1203, - 1239, - 1204 - ], - "text": "5.00", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1442, - 1180, - 1530, - 1180, - 1530, - 1203, - 1443, - 1204 - ], - "text": "100.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1443, - 1181, - 1529, - 1180, - 1529, - 1204, - 1443, - 1205 - ], - "text": "100.00", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 169, - 1223, - 429, - 1222, - 430, - 1249, - 169, - 1253 - ], - "text": "Copper Swirl Marker", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 170, - 1223, - 259, - 1222, - 259, - 1252, - 170, - 1253 - ], - "text": "Copper", - "confidence": 0.985 - }, - { - "boundingBox": [ - 265, - 1222, - 328, - 1222, - 328, - 1251, - 265, - 1252 - ], - "text": "Swirl", - "confidence": 0.986 - }, - { - "boundingBox": [ - 334, - 1222, - 429, - 1223, - 428, - 1248, - 334, - 1251 - ], - "text": "Marker", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 860, - 1223, - 893, - 1223, - 893, - 1247, - 860, - 1247 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.985 - } - }, - "words": [ - { - "boundingBox": [ - 860, - 1223, - 892, - 1223, - 892, - 1247, - 860, - 1247 - ], - "text": "20", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 1239, - 1221, - 1294, - 1222, - 1294, - 1246, - 1239, - 1247 - ], - "text": "5.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.996 - } - }, - "words": [ - { - "boundingBox": [ - 1239, - 1221, - 1293, - 1221, - 1293, - 1247, - 1239, - 1247 - ], - "text": "5.00", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 1443, - 1223, - 1530, - 1222, - 1530, - 1246, - 1444, - 1247 - ], - "text": "100.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1444, - 1224, - 1530, - 1223, - 1529, - 1247, - 1444, - 1248 - ], - "text": "100.00", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 1146, - 1573, - 1296, - 1573, - 1296, - 1600, - 1146, - 1600 - ], - "text": "SUBTOTAL", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1147, - 1575, - 1295, - 1575, - 1294, - 1600, - 1147, - 1600 - ], - "text": "SUBTOTAL", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 1426, - 1571, - 1530, - 1571, - 1530, - 1597, - 1426, - 1598 - ], - "text": "$140.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.997 - } - }, - "words": [ - { - "boundingBox": [ - 1426, - 1572, - 1531, - 1572, - 1531, - 1597, - 1427, - 1599 - ], - "text": "$140.00", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 1236, - 1618, - 1296, - 1618, - 1295, - 1643, - 1236, - 1643 - ], - "text": "TAX", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1238, - 1618, - 1296, - 1618, - 1296, - 1643, - 1238, - 1643 - ], - "text": "TAX", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 1458, - 1615, - 1529, - 1615, - 1528, - 1641, - 1458, - 1643 - ], - "text": "$4.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1458, - 1615, - 1529, - 1615, - 1529, - 1642, - 1458, - 1643 - ], - "text": "$4.00", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 484, - 1670, - 764, - 1670, - 764, - 1707, - 484, - 1706 - ], - "text": "Bernie Sanders", - "appearance": { - "style": { - "name": "handwriting", - "confidence": 0.793 - } - }, - "words": [ - { - "boundingBox": [ - 489, - 1671, - 609, - 1671, - 609, - 1706, - 489, - 1706 - ], - "text": "Bernie", - "confidence": 0.979 - }, - { - "boundingBox": [ - 616, - 1671, - 764, - 1670, - 765, - 1708, - 616, - 1706 - ], - "text": "Sanders", - "confidence": 0.979 - } - ] - }, - { - "boundingBox": [ - 1203, - 1673, - 1297, - 1673, - 1297, - 1698, - 1204, - 1699 - ], - "text": "TOTAL", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1204, - 1674, - 1297, - 1673, - 1297, - 1699, - 1205, - 1699 - ], - "text": "TOTAL", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 1427, - 1670, - 1529, - 1669, - 1530, - 1696, - 1427, - 1697 - ], - "text": "$144.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.995 - } - }, - "words": [ - { - "boundingBox": [ - 1427, - 1671, - 1529, - 1669, - 1529, - 1697, - 1429, - 1698 - ], - "text": "$144.00", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 542, - 1718, - 718, - 1719, - 718, - 1742, - 542, - 1741 - ], - "text": "Bernie Sanders", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 542, - 1719, - 617, - 1719, - 618, - 1742, - 544, - 1742 - ], - "text": "Bernie", - "confidence": 0.985 - }, - { - "boundingBox": [ - 621, - 1719, - 717, - 1719, - 717, - 1743, - 622, - 1742 - ], - "text": "Sanders", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 577, - 1753, - 681, - 1755, - 681, - 1778, - 577, - 1776 - ], - "text": "Manager", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 577, - 1754, - 681, - 1756, - 680, - 1778, - 578, - 1776 - ], - "text": "Manager", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 172, - 1796, - 478, - 1796, - 478, - 1832, - 172, - 1831 - ], - "text": "Additional Notes:", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 173, - 1796, - 355, - 1796, - 354, - 1832, - 173, - 1831 - ], - "text": "Additional", - "confidence": 0.98 - }, - { - "boundingBox": [ - 361, - 1796, - 479, - 1797, - 478, - 1833, - 361, - 1832 - ], - "text": "Notes:", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 174, - 1879, - 707, - 1880, - 707, - 1911, - 174, - 1908 - ], - "text": "Do not Jostle Box. Unpack carefully. Enjoy.", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 175, - 1881, - 205, - 1881, - 205, - 1907, - 175, - 1907 - ], - "text": "Do", - "confidence": 0.988 - }, - { - "boundingBox": [ - 210, - 1881, - 256, - 1880, - 257, - 1908, - 210, - 1907 - ], - "text": "not", - "confidence": 0.987 - }, - { - "boundingBox": [ - 261, - 1880, - 335, - 1880, - 335, - 1909, - 262, - 1908 - ], - "text": "Jostle", - "confidence": 0.982 - }, - { - "boundingBox": [ - 340, - 1880, - 401, - 1880, - 402, - 1909, - 340, - 1909 - ], - "text": "Box.", - "confidence": 0.986 - }, - { - "boundingBox": [ - 406, - 1880, - 500, - 1880, - 500, - 1910, - 407, - 1909 - ], - "text": "Unpack", - "confidence": 0.985 - }, - { - "boundingBox": [ - 505, - 1880, - 623, - 1880, - 623, - 1911, - 505, - 1910 - ], - "text": "carefully.", - "confidence": 0.975 - }, - { - "boundingBox": [ - 628, - 1880, - 707, - 1881, - 707, - 1912, - 628, - 1911 - ], - "text": "Enjoy.", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 168, - 1923, - 1510, - 1923, - 1510, - 1957, - 168, - 1958 - ], - "text": "Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 169, - 1924, - 270, - 1924, - 270, - 1959, - 169, - 1959 - ], - "text": "Jupiter", - "confidence": 0.984 - }, - { - "boundingBox": [ - 277, - 1924, - 355, - 1924, - 355, - 1958, - 277, - 1959 - ], - "text": "Book", - "confidence": 0.986 - }, - { - "boundingBox": [ - 361, - 1924, - 465, - 1924, - 465, - 1958, - 361, - 1958 - ], - "text": "Supply", - "confidence": 0.983 - }, - { - "boundingBox": [ - 472, - 1924, - 517, - 1924, - 517, - 1958, - 471, - 1958 - ], - "text": "will", - "confidence": 0.986 - }, - { - "boundingBox": [ - 524, - 1924, - 623, - 1924, - 623, - 1958, - 524, - 1958 - ], - "text": "refund", - "confidence": 0.984 - }, - { - "boundingBox": [ - 630, - 1924, - 687, - 1924, - 687, - 1958, - 629, - 1958 - ], - "text": "you", - "confidence": 0.987 - }, - { - "boundingBox": [ - 694, - 1924, - 763, - 1924, - 762, - 1958, - 694, - 1958 - ], - "text": "50%", - "confidence": 0.983 - }, - { - "boundingBox": [ - 770, - 1924, - 820, - 1924, - 819, - 1958, - 769, - 1958 - ], - "text": "per", - "confidence": 0.987 - }, - { - "boundingBox": [ - 827, - 1924, - 900, - 1924, - 900, - 1958, - 826, - 1958 - ], - "text": "book", - "confidence": 0.987 - }, - { - "boundingBox": [ - 907, - 1924, - 926, - 1924, - 925, - 1958, - 907, - 1958 - ], - "text": "if", - "confidence": 0.985 - }, - { - "boundingBox": [ - 932, - 1924, - 1061, - 1924, - 1060, - 1958, - 932, - 1958 - ], - "text": "returned", - "confidence": 0.981 - }, - { - "boundingBox": [ - 1068, - 1924, - 1157, - 1924, - 1156, - 1958, - 1067, - 1958 - ], - "text": "within", - "confidence": 0.981 - }, - { - "boundingBox": [ - 1164, - 1924, - 1201, - 1924, - 1200, - 1958, - 1163, - 1958 - ], - "text": "60", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1208, - 1924, - 1283, - 1924, - 1282, - 1958, - 1206, - 1958 - ], - "text": "days", - "confidence": 0.985 - }, - { - "boundingBox": [ - 1290, - 1924, - 1318, - 1924, - 1316, - 1958, - 1289, - 1958 - ], - "text": "of", - "confidence": 0.988 - }, - { - "boundingBox": [ - 1325, - 1924, - 1439, - 1924, - 1438, - 1958, - 1323, - 1958 - ], - "text": "reading", - "confidence": 0.983 - }, - { - "boundingBox": [ - 1446, - 1924, - 1510, - 1924, - 1509, - 1958, - 1445, - 1958 - ], - "text": "and", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 168, - 1957, - 786, - 1958, - 786, - 1991, - 168, - 1991 - ], - "text": "offer you 25% off you next total purchase.", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 169, - 1958, - 235, - 1958, - 236, - 1991, - 169, - 1991 - ], - "text": "offer", - "confidence": 0.985 - }, - { - "boundingBox": [ - 242, - 1958, - 299, - 1958, - 300, - 1992, - 242, - 1991 - ], - "text": "you", - "confidence": 0.987 - }, - { - "boundingBox": [ - 306, - 1958, - 374, - 1958, - 374, - 1992, - 306, - 1992 - ], - "text": "25%", - "confidence": 0.983 - }, - { - "boundingBox": [ - 380, - 1958, - 421, - 1958, - 421, - 1992, - 381, - 1992 - ], - "text": "off", - "confidence": 0.987 - }, - { - "boundingBox": [ - 427, - 1958, - 483, - 1958, - 483, - 1992, - 428, - 1992 - ], - "text": "you", - "confidence": 0.987 - }, - { - "boundingBox": [ - 489, - 1958, - 555, - 1959, - 556, - 1992, - 490, - 1992 - ], - "text": "next", - "confidence": 0.986 - }, - { - "boundingBox": [ - 562, - 1959, - 628, - 1959, - 628, - 1991, - 562, - 1992 - ], - "text": "total", - "confidence": 0.986 - }, - { - "boundingBox": [ - 634, - 1959, - 786, - 1961, - 786, - 1990, - 635, - 1991 - ], - "text": "purchase.", - "confidence": 0.967 - } - ] - } - ] - } - ], - "pageResults": [ - { - "page": 1, - "tables": [ - { - "rows": 5, - "columns": 5, - "cells": [ - { - "rowIndex": 0, - "columnIndex": 0, - "columnSpan": 2, - "text": "Details", - "boundingBox": [ - 157, - 1038, - 847, - 1037, - 847, - 1086, - 157, - 1086 - ], - "elements": [ - "#/readResults/0/lines/21/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 2, - "text": "Quantity", - "boundingBox": [ - 847, - 1037, - 1071, - 1037, - 1071, - 1086, - 847, - 1086 - ], - "elements": [ - "#/readResults/0/lines/22/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 3, - "text": "Unit Price", - "boundingBox": [ - 1071, - 1037, - 1310, - 1038, - 1310, - 1086, - 1071, - 1086 - ], - "elements": [ - "#/readResults/0/lines/23/words/0", - "#/readResults/0/lines/23/words/1" - ] - }, - { - "rowIndex": 0, - "columnIndex": 4, - "text": "Total", - "boundingBox": [ - 1310, - 1038, - 1543, - 1038, - 1543, - 1086, - 1310, - 1086 - ], - "elements": [ - "#/readResults/0/lines/24/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 0, - "columnSpan": 2, - "text": "Bindings", - "boundingBox": [ - 157, - 1086, - 847, - 1086, - 847, - 1127, - 157, - 1128 - ], - "elements": [ - "#/readResults/0/lines/25/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1086, - 1071, - 1086, - 1071, - 1127, - 847, - 1127 - ], - "elements": [ - "#/readResults/0/lines/26/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 3, - "text": "1.00", - "boundingBox": [ - 1071, - 1086, - 1310, - 1086, - 1310, - 1127, - 1071, - 1127 - ], - "elements": [ - "#/readResults/0/lines/27/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 4, - "text": "20.00", - "boundingBox": [ - 1310, - 1086, - 1543, - 1086, - 1543, - 1127, - 1310, - 1127 - ], - "elements": [ - "#/readResults/0/lines/28/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 0, - "columnSpan": 2, - "text": "Covers Small", - "boundingBox": [ - 157, - 1128, - 847, - 1127, - 847, - 1171, - 157, - 1171 - ], - "elements": [ - "#/readResults/0/lines/29/words/0", - "#/readResults/0/lines/29/words/1" - ] - }, - { - "rowIndex": 2, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1127, - 1071, - 1127, - 1071, - 1171, - 847, - 1171 - ], - "elements": [ - "#/readResults/0/lines/30/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 3, - "text": "1.00", - "boundingBox": [ - 1071, - 1127, - 1310, - 1127, - 1310, - 1171, - 1071, - 1171 - ], - "elements": [ - "#/readResults/0/lines/31/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 4, - "text": "20.00", - "boundingBox": [ - 1310, - 1127, - 1543, - 1127, - 1543, - 1171, - 1310, - 1171 - ], - "elements": [ - "#/readResults/0/lines/32/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 0, - "columnSpan": 2, - "text": "Feather Bookmark", - "boundingBox": [ - 157, - 1171, - 847, - 1171, - 847, - 1214, - 157, - 1214 - ], - "elements": [ - "#/readResults/0/lines/33/words/0", - "#/readResults/0/lines/33/words/1" - ] - }, - { - "rowIndex": 3, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1171, - 1071, - 1171, - 1071, - 1214, - 847, - 1214 - ], - "elements": [ - "#/readResults/0/lines/34/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 3, - "text": "5.00", - "boundingBox": [ - 1071, - 1171, - 1310, - 1171, - 1310, - 1214, - 1071, - 1214 - ], - "elements": [ - "#/readResults/0/lines/35/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 4, - "text": "100.00", - "boundingBox": [ - 1310, - 1171, - 1543, - 1171, - 1543, - 1215, - 1310, - 1214 - ], - "elements": [ - "#/readResults/0/lines/36/words/0" - ] - }, - { - "rowIndex": 4, - "columnIndex": 0, - "columnSpan": 2, - "text": "Copper Swirl Marker", - "boundingBox": [ - 157, - 1214, - 847, - 1214, - 847, - 1258, - 157, - 1258 - ], - "elements": [ - "#/readResults/0/lines/37/words/0", - "#/readResults/0/lines/37/words/1", - "#/readResults/0/lines/37/words/2" - ] - }, - { - "rowIndex": 4, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1214, - 1071, - 1214, - 1071, - 1258, - 847, - 1258 - ], - "elements": [ - "#/readResults/0/lines/38/words/0" - ] - }, - { - "rowIndex": 4, - "columnIndex": 3, - "text": "5.00", - "boundingBox": [ - 1071, - 1214, - 1310, - 1214, - 1310, - 1258, - 1071, - 1258 - ], - "elements": [ - "#/readResults/0/lines/39/words/0" - ] - }, - { - "rowIndex": 4, - "columnIndex": 4, - "text": "100.00", - "boundingBox": [ - 1310, - 1214, - 1543, - 1215, - 1543, - 1260, - 1310, - 1258 - ], - "elements": [ - "#/readResults/0/lines/40/words/0" - ] - } - ], - "boundingBox": [ - 153, - 1036, - 1547, - 1037, - 1547, - 1265, - 153, - 1265 - ] - }, - { - "rows": 4, - "columns": 2, - "cells": [ - { - "rowIndex": 0, - "columnIndex": 0, - "text": "SUBTOTAL", - "boundingBox": [ - 1072, - 1564, - 1307, - 1565, - 1308, - 1609, - 1071, - 1608 - ], - "elements": [ - "#/readResults/0/lines/41/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 1, - "text": "$140.00", - "boundingBox": [ - 1307, - 1565, - 1542, - 1564, - 1543, - 1609, - 1308, - 1609 - ], - "elements": [ - "#/readResults/0/lines/42/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 0, - "text": "TAX", - "boundingBox": [ - 1071, - 1608, - 1308, - 1609, - 1308, - 1652, - 1071, - 1651 - ], - "elements": [ - "#/readResults/0/lines/43/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 1, - "text": "$4.00", - "boundingBox": [ - 1308, - 1609, - 1543, - 1609, - 1543, - 1652, - 1308, - 1652 - ], - "elements": [ - "#/readResults/0/lines/44/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 0, - "text": "", - "boundingBox": [ - 1071, - 1651, - 1308, - 1652, - 1308, - 1663, - 1071, - 1663 - ], - "elements": [] - }, - { - "rowIndex": 2, - "columnIndex": 1, - "text": "", - "boundingBox": [ - 1308, - 1652, - 1543, - 1652, - 1543, - 1663, - 1308, - 1663 - ], - "elements": [] - }, - { - "rowIndex": 3, - "columnIndex": 0, - "text": "TOTAL", - "boundingBox": [ - 1071, - 1663, - 1308, - 1663, - 1308, - 1707, - 1071, - 1707 - ], - "elements": [ - "#/readResults/0/lines/46/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 1, - "text": "$144.00", - "boundingBox": [ - 1308, - 1663, - 1543, - 1663, - 1543, - 1708, - 1308, - 1707 - ], - "elements": [ - "#/readResults/0/lines/47/words/0" - ] - } - ], - "boundingBox": [ - 1058, - 1563, - 1555, - 1563, - 1555, - 1707, - 1058, - 1707 - ] - } - ] - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "1751412136" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%)Async.json deleted file mode 100644 index 3f811b386930..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%%)Async.json +++ /dev/null @@ -1,3705 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "22", - "Content-Type": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-6609670ace505342b8fdb67df22f6f15-bc9413a18ecd8e4c-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "92af4448d4c0344e0a2aeb7f1525381a", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": { - "source": "Sanitized" - }, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "9f893699-59a2-47d9-8cd8-eb0c2c2ef353", - "Content-Length": "0", - "Date": "Wed, 11 Nov 2020 20:57:14 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/9f893699-59a2-47d9-8cd8-eb0c2c2ef353", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "351" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/9f893699-59a2-47d9-8cd8-eb0c2c2ef353", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "16cbb266c0ee5cc19e917312e25c80eb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "319a5b63-b216-4672-95f0-a0bb8f59739e", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:15 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-11T20:57:15Z", - "lastUpdatedDateTime": "2020-11-11T20:57:15Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/9f893699-59a2-47d9-8cd8-eb0c2c2ef353", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "f9c55ff60df5c6d194dcd17b5801a685", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "65a85b76-e391-4f47-baff-c15595964304", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-11T20:57:15Z", - "lastUpdatedDateTime": "2020-11-11T20:57:15Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/9f893699-59a2-47d9-8cd8-eb0c2c2ef353", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "a51b634c303987fc8353f42f613b51ae", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ac12ca55-d678-4934-83d4-7d47a033e9eb", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-11T20:57:15Z", - "lastUpdatedDateTime": "2020-11-11T20:57:15Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/9f893699-59a2-47d9-8cd8-eb0c2c2ef353", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "b588ffaa3f605924e1058111ee45039d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d0226cb8-65bb-4956-967f-fa868d75b504", - "Content-Length": "24387", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-11-11T20:57:15Z", - "lastUpdatedDateTime": "2020-11-11T20:57:18Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0, - "width": 1700, - "height": 2200, - "unit": "pixel", - "lines": [ - { - "boundingBox": [ - 136, - 139, - 351, - 138, - 351, - 166, - 136, - 166 - ], - "text": "Purchase Order", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 137, - 140, - 264, - 139, - 263, - 167, - 137, - 167 - ], - "text": "Purchase", - "confidence": 0.984 - }, - { - "boundingBox": [ - 269, - 139, - 351, - 139, - 351, - 167, - 269, - 167 - ], - "text": "Order", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 620, - 205, - 1074, - 204, - 1075, - 265, - 620, - 266 - ], - "text": "Hero Limited", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 621, - 208, - 794, - 205, - 793, - 266, - 620, - 266 - ], - "text": "Hero", - "confidence": 0.987 - }, - { - "boundingBox": [ - 806, - 205, - 1075, - 205, - 1074, - 266, - 805, - 266 - ], - "text": "Limited", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 1112, - 321, - 1554, - 321, - 1554, - 369, - 1112, - 369 - ], - "text": "Purchase Order", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1113, - 322, - 1381, - 321, - 1380, - 370, - 1113, - 368 - ], - "text": "Purchase", - "confidence": 0.983 - }, - { - "boundingBox": [ - 1390, - 321, - 1554, - 321, - 1553, - 370, - 1389, - 370 - ], - "text": "Order", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 163, - 352, - 528, - 350, - 528, - 376, - 163, - 379 - ], - "text": "Company Phone: 555-348-6512", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 163, - 353, - 274, - 351, - 275, - 379, - 164, - 378 - ], - "text": "Company", - "confidence": 0.985 - }, - { - "boundingBox": [ - 279, - 351, - 359, - 351, - 360, - 378, - 280, - 378 - ], - "text": "Phone:", - "confidence": 0.984 - }, - { - "boundingBox": [ - 364, - 351, - 528, - 351, - 528, - 374, - 364, - 378 - ], - "text": "555-348-6512", - "confidence": 0.975 - } - ] - }, - { - "boundingBox": [ - 166, - 393, - 533, - 393, - 533, - 418, - 166, - 418 - ], - "text": "Website: www.herolimited.com", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 167, - 394, - 269, - 393, - 269, - 418, - 167, - 417 - ], - "text": "Website:", - "confidence": 0.981 - }, - { - "boundingBox": [ - 273, - 393, - 531, - 393, - 530, - 418, - 273, - 418 - ], - "text": "www.herolimited.com", - "confidence": 0.945 - } - ] - }, - { - "boundingBox": [ - 165, - 435, - 237, - 435, - 237, - 460, - 165, - 460 - ], - "text": "Email:", - "appearance": { - "style": { - "name": "other", - "confidence": 0.99 - } - }, - "words": [ - { - "boundingBox": [ - 165, - 435, - 237, - 435, - 237, - 460, - 165, - 460 - ], - "text": "Email:", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 1024, - 419, - 1317, - 420, - 1317, - 448, - 1024, - 448 - ], - "text": "Dated As: 12/20/2020", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1025, - 421, - 1108, - 420, - 1108, - 448, - 1025, - 448 - ], - "text": "Dated", - "confidence": 0.986 - }, - { - "boundingBox": [ - 1114, - 420, - 1160, - 420, - 1160, - 448, - 1114, - 448 - ], - "text": "As:", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1165, - 420, - 1317, - 421, - 1316, - 449, - 1165, - 448 - ], - "text": "12/20/2020", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 164, - 479, - 482, - 478, - 483, - 502, - 164, - 503 - ], - "text": "accounts@herolimited.com", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 164, - 481, - 478, - 479, - 478, - 503, - 165, - 503 - ], - "text": "accounts@herolimited.com", - "confidence": 0.952 - } - ] - }, - { - "boundingBox": [ - 1023, - 461, - 1376, - 461, - 1376, - 489, - 1023, - 488 - ], - "text": "Purchase Order #: 948284", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 1023, - 461, - 1152, - 461, - 1152, - 489, - 1023, - 488 - ], - "text": "Purchase", - "confidence": 0.984 - }, - { - "boundingBox": [ - 1157, - 461, - 1238, - 461, - 1239, - 489, - 1157, - 489 - ], - "text": "Order", - "confidence": 0.986 - }, - { - "boundingBox": [ - 1244, - 461, - 1272, - 461, - 1272, - 489, - 1244, - 489 - ], - "text": "#:", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1277, - 461, - 1376, - 462, - 1376, - 489, - 1277, - 489 - ], - "text": "948284", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 167, - 547, - 397, - 546, - 397, - 591, - 167, - 592 - ], - "text": "Shipped To", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 167, - 547, - 333, - 547, - 332, - 592, - 168, - 592 - ], - "text": "Shipped", - "confidence": 0.985 - }, - { - "boundingBox": [ - 341, - 547, - 397, - 547, - 396, - 591, - 341, - 592 - ], - "text": "To", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 159, - 609, - 520, - 609, - 520, - 638, - 159, - 638 - ], - "text": "Vendor Name: Hillary Swank", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 160, - 611, - 254, - 610, - 254, - 638, - 160, - 637 - ], - "text": "Vendor", - "confidence": 0.982 - }, - { - "boundingBox": [ - 259, - 610, - 344, - 609, - 344, - 639, - 259, - 638 - ], - "text": "Name:", - "confidence": 0.986 - }, - { - "boundingBox": [ - 350, - 609, - 430, - 609, - 430, - 639, - 349, - 639 - ], - "text": "Hillary", - "confidence": 0.985 - }, - { - "boundingBox": [ - 435, - 609, - 521, - 610, - 520, - 639, - 435, - 639 - ], - "text": "Swank", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 159, - 647, - 629, - 646, - 629, - 677, - 160, - 679 - ], - "text": "Company Name: Higgly Wiggly Books", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 160, - 649, - 278, - 647, - 279, - 678, - 161, - 676 - ], - "text": "Company", - "confidence": 0.985 - }, - { - "boundingBox": [ - 284, - 647, - 370, - 647, - 370, - 679, - 284, - 678 - ], - "text": "Name:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 375, - 647, - 453, - 646, - 453, - 679, - 375, - 679 - ], - "text": "Higgly", - "confidence": 0.986 - }, - { - "boundingBox": [ - 459, - 646, - 545, - 646, - 544, - 678, - 459, - 679 - ], - "text": "Wiggly", - "confidence": 0.986 - }, - { - "boundingBox": [ - 550, - 646, - 629, - 646, - 628, - 676, - 550, - 678 - ], - "text": "Books", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 160, - 684, - 526, - 684, - 526, - 712, - 160, - 711 - ], - "text": "Address: 938 NE Burner Road", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 161, - 685, - 269, - 685, - 268, - 712, - 160, - 711 - ], - "text": "Address:", - "confidence": 0.981 - }, - { - "boundingBox": [ - 274, - 685, - 324, - 685, - 323, - 713, - 273, - 712 - ], - "text": "938", - "confidence": 0.987 - }, - { - "boundingBox": [ - 329, - 685, - 365, - 685, - 364, - 713, - 328, - 713 - ], - "text": "NE", - "confidence": 0.988 - }, - { - "boundingBox": [ - 370, - 685, - 455, - 685, - 455, - 713, - 369, - 713 - ], - "text": "Burner", - "confidence": 0.985 - }, - { - "boundingBox": [ - 460, - 685, - 527, - 685, - 527, - 713, - 460, - 713 - ], - "text": "Road", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 279, - 722, - 566, - 721, - 566, - 750, - 279, - 751 - ], - "text": "Boulder City, CO 92848", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 279, - 722, - 371, - 722, - 372, - 751, - 280, - 750 - ], - "text": "Boulder", - "confidence": 0.985 - }, - { - "boundingBox": [ - 377, - 722, - 433, - 722, - 434, - 751, - 378, - 751 - ], - "text": "City,", - "confidence": 0.986 - }, - { - "boundingBox": [ - 439, - 722, - 477, - 722, - 477, - 751, - 439, - 751 - ], - "text": "CO", - "confidence": 0.988 - }, - { - "boundingBox": [ - 482, - 722, - 565, - 722, - 565, - 749, - 482, - 751 - ], - "text": "92848", - "confidence": 0.976 - } - ] - }, - { - "boundingBox": [ - 612, - 721, - 885, - 721, - 885, - 747, - 612, - 748 - ], - "text": "Phone: 938-294-2949", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 613, - 722, - 702, - 722, - 702, - 749, - 613, - 749 - ], - "text": "Phone:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 708, - 722, - 885, - 722, - 884, - 748, - 708, - 749 - ], - "text": "938-294-2949", - "confidence": 0.976 - } - ] - }, - { - "boundingBox": [ - 167, - 784, - 453, - 784, - 453, - 829, - 167, - 830 - ], - "text": "Shipped From", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 167, - 784, - 330, - 785, - 330, - 830, - 169, - 830 - ], - "text": "Shipped", - "confidence": 0.982 - }, - { - "boundingBox": [ - 339, - 785, - 448, - 785, - 448, - 826, - 339, - 830 - ], - "text": "From", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 165, - 852, - 445, - 851, - 445, - 878, - 165, - 879 - ], - "text": "Name: Bernie Sanders", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 166, - 853, - 250, - 853, - 250, - 879, - 166, - 879 - ], - "text": "Name:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 255, - 852, - 338, - 852, - 337, - 880, - 255, - 879 - ], - "text": "Bernie", - "confidence": 0.985 - }, - { - "boundingBox": [ - 343, - 852, - 446, - 852, - 445, - 879, - 343, - 880 - ], - "text": "Sanders", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 164, - 889, - 629, - 889, - 629, - 919, - 164, - 919 - ], - "text": "Company Name: Jupiter Book Supply", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 164, - 890, - 282, - 890, - 283, - 919, - 165, - 919 - ], - "text": "Company", - "confidence": 0.984 - }, - { - "boundingBox": [ - 288, - 890, - 374, - 889, - 375, - 919, - 289, - 919 - ], - "text": "Name:", - "confidence": 0.985 - }, - { - "boundingBox": [ - 380, - 889, - 466, - 889, - 466, - 919, - 380, - 919 - ], - "text": "Jupiter", - "confidence": 0.983 - }, - { - "boundingBox": [ - 471, - 889, - 536, - 889, - 536, - 920, - 472, - 919 - ], - "text": "Book", - "confidence": 0.983 - }, - { - "boundingBox": [ - 542, - 889, - 630, - 890, - 629, - 920, - 542, - 920 - ], - "text": "Supply", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 165, - 925, - 521, - 926, - 521, - 953, - 165, - 952 - ], - "text": "Address: 383 N Kinnick Road", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 166, - 926, - 273, - 925, - 273, - 953, - 166, - 953 - ], - "text": "Address:", - "confidence": 0.982 - }, - { - "boundingBox": [ - 279, - 925, - 327, - 925, - 327, - 953, - 278, - 953 - ], - "text": "383", - "confidence": 0.987 - }, - { - "boundingBox": [ - 332, - 926, - 353, - 926, - 353, - 953, - 332, - 953 - ], - "text": "N", - "confidence": 0.983 - }, - { - "boundingBox": [ - 358, - 926, - 448, - 926, - 448, - 954, - 358, - 953 - ], - "text": "Kinnick", - "confidence": 0.984 - }, - { - "boundingBox": [ - 453, - 926, - 521, - 927, - 520, - 954, - 453, - 954 - ], - "text": "Road", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 280, - 963, - 514, - 962, - 514, - 990, - 281, - 991 - ], - "text": "Seattle, WA 38383", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 281, - 965, - 377, - 964, - 378, - 991, - 283, - 991 - ], - "text": "Seattle,", - "confidence": 0.981 - }, - { - "boundingBox": [ - 382, - 964, - 429, - 964, - 430, - 991, - 383, - 991 - ], - "text": "WA", - "confidence": 0.988 - }, - { - "boundingBox": [ - 434, - 964, - 514, - 962, - 514, - 990, - 435, - 991 - ], - "text": "38383", - "confidence": 0.975 - } - ] - }, - { - "boundingBox": [ - 760, - 963, - 1032, - 963, - 1032, - 989, - 760, - 990 - ], - "text": "Phone: 932-299-0292", - "appearance": { - "style": { - "name": "other", - "confidence": 0.997 - } - }, - "words": [ - { - "boundingBox": [ - 760, - 964, - 849, - 964, - 849, - 990, - 760, - 990 - ], - "text": "Phone:", - "confidence": 0.983 - }, - { - "boundingBox": [ - 855, - 964, - 1033, - 963, - 1032, - 990, - 854, - 990 - ], - "text": "932-299-0292", - "confidence": 0.978 - } - ] - }, - { - "boundingBox": [ - 446, - 1047, - 558, - 1047, - 558, - 1077, - 446, - 1077 - ], - "text": "Details", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 447, - 1048, - 558, - 1048, - 558, - 1077, - 446, - 1078 - ], - "text": "Details", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 885, - 1047, - 1034, - 1047, - 1034, - 1083, - 886, - 1083 - ], - "text": "Quantity", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 886, - 1048, - 1034, - 1047, - 1034, - 1084, - 886, - 1084 - ], - "text": "Quantity", - "confidence": 0.981 - } - ] - }, - { - "boundingBox": [ - 1111, - 1047, - 1270, - 1047, - 1269, - 1078, - 1111, - 1077 - ], - "text": "Unit Price", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1112, - 1047, - 1181, - 1047, - 1180, - 1078, - 1111, - 1078 - ], - "text": "Unit", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1187, - 1047, - 1270, - 1049, - 1269, - 1078, - 1186, - 1078 - ], - "text": "Price", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1382, - 1047, - 1468, - 1047, - 1467, - 1077, - 1382, - 1077 - ], - "text": "Total", - "appearance": { - "style": { - "name": "other", - "confidence": 0.997 - } - }, - "words": [ - { - "boundingBox": [ - 1384, - 1047, - 1468, - 1047, - 1468, - 1077, - 1384, - 1077 - ], - "text": "Total", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 172, - 1093, - 279, - 1095, - 279, - 1123, - 172, - 1121 - ], - "text": "Bindings", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 172, - 1094, - 278, - 1097, - 278, - 1123, - 173, - 1122 - ], - "text": "Bindings", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 859, - 1094, - 893, - 1094, - 893, - 1119, - 859, - 1119 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.959 - } - }, - "words": [ - { - "boundingBox": [ - 861, - 1094, - 892, - 1094, - 892, - 1119, - 861, - 1119 - ], - "text": "20", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 1240, - 1096, - 1295, - 1094, - 1294, - 1118, - 1241, - 1118 - ], - "text": "1.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1241, - 1095, - 1293, - 1094, - 1294, - 1117, - 1242, - 1118 - ], - "text": "1.00", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1458, - 1095, - 1530, - 1095, - 1530, - 1119, - 1458, - 1119 - ], - "text": "20.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1458, - 1096, - 1531, - 1095, - 1530, - 1120, - 1459, - 1119 - ], - "text": "20.00", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 169, - 1135, - 332, - 1134, - 333, - 1160, - 169, - 1161 - ], - "text": "Covers Small", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 170, - 1136, - 254, - 1136, - 253, - 1161, - 170, - 1161 - ], - "text": "Covers", - "confidence": 0.985 - }, - { - "boundingBox": [ - 259, - 1136, - 333, - 1135, - 332, - 1161, - 258, - 1161 - ], - "text": "Small", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 859, - 1135, - 894, - 1135, - 891, - 1160, - 860, - 1160 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.952 - } - }, - "words": [ - { - "boundingBox": [ - 861, - 1135, - 894, - 1135, - 894, - 1160, - 861, - 1160 - ], - "text": "20", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 1239, - 1135, - 1295, - 1135, - 1294, - 1159, - 1239, - 1160 - ], - "text": "1.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 1240, - 1135, - 1294, - 1135, - 1294, - 1159, - 1241, - 1160 - ], - "text": "1.00", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1458, - 1135, - 1530, - 1135, - 1530, - 1159, - 1459, - 1160 - ], - "text": "20.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 1458, - 1135, - 1529, - 1135, - 1530, - 1159, - 1458, - 1160 - ], - "text": "20.00", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 173, - 1178, - 403, - 1177, - 403, - 1205, - 173, - 1206 - ], - "text": "Feather Bookmark", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 173, - 1180, - 266, - 1179, - 267, - 1206, - 174, - 1206 - ], - "text": "Feather", - "confidence": 0.983 - }, - { - "boundingBox": [ - 271, - 1179, - 402, - 1178, - 403, - 1206, - 272, - 1206 - ], - "text": "Bookmark", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 860, - 1179, - 892, - 1179, - 891, - 1204, - 860, - 1203 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.842 - } - }, - "words": [ - { - "boundingBox": [ - 863, - 1179, - 892, - 1179, - 891, - 1204, - 863, - 1204 - ], - "text": "20", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1239, - 1179, - 1295, - 1178, - 1295, - 1203, - 1239, - 1204 - ], - "text": "5.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1239, - 1179, - 1294, - 1178, - 1294, - 1203, - 1239, - 1204 - ], - "text": "5.00", - "confidence": 0.986 - } - ] - }, - { - "boundingBox": [ - 1442, - 1180, - 1530, - 1180, - 1530, - 1203, - 1443, - 1204 - ], - "text": "100.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1443, - 1181, - 1529, - 1180, - 1529, - 1204, - 1443, - 1205 - ], - "text": "100.00", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 169, - 1223, - 429, - 1222, - 430, - 1249, - 169, - 1253 - ], - "text": "Copper Swirl Marker", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 170, - 1223, - 259, - 1222, - 259, - 1252, - 170, - 1253 - ], - "text": "Copper", - "confidence": 0.985 - }, - { - "boundingBox": [ - 265, - 1222, - 328, - 1222, - 328, - 1251, - 265, - 1252 - ], - "text": "Swirl", - "confidence": 0.986 - }, - { - "boundingBox": [ - 334, - 1222, - 429, - 1223, - 428, - 1248, - 334, - 1251 - ], - "text": "Marker", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 860, - 1223, - 893, - 1223, - 893, - 1247, - 860, - 1247 - ], - "text": "20", - "appearance": { - "style": { - "name": "other", - "confidence": 0.985 - } - }, - "words": [ - { - "boundingBox": [ - 860, - 1223, - 892, - 1223, - 892, - 1247, - 860, - 1247 - ], - "text": "20", - "confidence": 0.988 - } - ] - }, - { - "boundingBox": [ - 1239, - 1221, - 1294, - 1222, - 1294, - 1246, - 1239, - 1247 - ], - "text": "5.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.996 - } - }, - "words": [ - { - "boundingBox": [ - 1239, - 1221, - 1293, - 1221, - 1293, - 1247, - 1239, - 1247 - ], - "text": "5.00", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 1443, - 1223, - 1530, - 1222, - 1530, - 1246, - 1444, - 1247 - ], - "text": "100.00", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1444, - 1224, - 1530, - 1223, - 1529, - 1247, - 1444, - 1248 - ], - "text": "100.00", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 1146, - 1573, - 1296, - 1573, - 1296, - 1600, - 1146, - 1600 - ], - "text": "SUBTOTAL", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1147, - 1575, - 1295, - 1575, - 1294, - 1600, - 1147, - 1600 - ], - "text": "SUBTOTAL", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 1426, - 1571, - 1530, - 1571, - 1530, - 1597, - 1426, - 1598 - ], - "text": "$140.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.997 - } - }, - "words": [ - { - "boundingBox": [ - 1426, - 1572, - 1531, - 1572, - 1531, - 1597, - 1427, - 1599 - ], - "text": "$140.00", - "confidence": 0.982 - } - ] - }, - { - "boundingBox": [ - 1236, - 1618, - 1296, - 1618, - 1295, - 1643, - 1236, - 1643 - ], - "text": "TAX", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1238, - 1618, - 1296, - 1618, - 1296, - 1643, - 1238, - 1643 - ], - "text": "TAX", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 1458, - 1615, - 1529, - 1615, - 1528, - 1641, - 1458, - 1643 - ], - "text": "$4.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 1458, - 1615, - 1529, - 1615, - 1529, - 1642, - 1458, - 1643 - ], - "text": "$4.00", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 484, - 1670, - 764, - 1670, - 764, - 1707, - 484, - 1706 - ], - "text": "Bernie Sanders", - "appearance": { - "style": { - "name": "handwriting", - "confidence": 0.793 - } - }, - "words": [ - { - "boundingBox": [ - 489, - 1671, - 609, - 1671, - 609, - 1706, - 489, - 1706 - ], - "text": "Bernie", - "confidence": 0.979 - }, - { - "boundingBox": [ - 616, - 1671, - 764, - 1670, - 765, - 1708, - 616, - 1706 - ], - "text": "Sanders", - "confidence": 0.979 - } - ] - }, - { - "boundingBox": [ - 1203, - 1673, - 1297, - 1673, - 1297, - 1698, - 1204, - 1699 - ], - "text": "TOTAL", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 1204, - 1674, - 1297, - 1673, - 1297, - 1699, - 1205, - 1699 - ], - "text": "TOTAL", - "confidence": 0.983 - } - ] - }, - { - "boundingBox": [ - 1427, - 1670, - 1529, - 1669, - 1530, - 1696, - 1427, - 1697 - ], - "text": "$144.00", - "appearance": { - "style": { - "name": "other", - "confidence": 0.995 - } - }, - "words": [ - { - "boundingBox": [ - 1427, - 1671, - 1529, - 1669, - 1529, - 1697, - 1429, - 1698 - ], - "text": "$144.00", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 542, - 1718, - 718, - 1719, - 718, - 1742, - 542, - 1741 - ], - "text": "Bernie Sanders", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 542, - 1719, - 617, - 1719, - 618, - 1742, - 544, - 1742 - ], - "text": "Bernie", - "confidence": 0.985 - }, - { - "boundingBox": [ - 621, - 1719, - 717, - 1719, - 717, - 1743, - 622, - 1742 - ], - "text": "Sanders", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 577, - 1753, - 681, - 1755, - 681, - 1778, - 577, - 1776 - ], - "text": "Manager", - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - }, - "words": [ - { - "boundingBox": [ - 577, - 1754, - 681, - 1756, - 680, - 1778, - 578, - 1776 - ], - "text": "Manager", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 172, - 1796, - 478, - 1796, - 478, - 1832, - 172, - 1831 - ], - "text": "Additional Notes:", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 173, - 1796, - 355, - 1796, - 354, - 1832, - 173, - 1831 - ], - "text": "Additional", - "confidence": 0.98 - }, - { - "boundingBox": [ - 361, - 1796, - 479, - 1797, - 478, - 1833, - 361, - 1832 - ], - "text": "Notes:", - "confidence": 0.985 - } - ] - }, - { - "boundingBox": [ - 174, - 1879, - 707, - 1880, - 707, - 1911, - 174, - 1908 - ], - "text": "Do not Jostle Box. Unpack carefully. Enjoy.", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 175, - 1881, - 205, - 1881, - 205, - 1907, - 175, - 1907 - ], - "text": "Do", - "confidence": 0.988 - }, - { - "boundingBox": [ - 210, - 1881, - 256, - 1880, - 257, - 1908, - 210, - 1907 - ], - "text": "not", - "confidence": 0.987 - }, - { - "boundingBox": [ - 261, - 1880, - 335, - 1880, - 335, - 1909, - 262, - 1908 - ], - "text": "Jostle", - "confidence": 0.982 - }, - { - "boundingBox": [ - 340, - 1880, - 401, - 1880, - 402, - 1909, - 340, - 1909 - ], - "text": "Box.", - "confidence": 0.986 - }, - { - "boundingBox": [ - 406, - 1880, - 500, - 1880, - 500, - 1910, - 407, - 1909 - ], - "text": "Unpack", - "confidence": 0.985 - }, - { - "boundingBox": [ - 505, - 1880, - 623, - 1880, - 623, - 1911, - 505, - 1910 - ], - "text": "carefully.", - "confidence": 0.975 - }, - { - "boundingBox": [ - 628, - 1880, - 707, - 1881, - 707, - 1912, - 628, - 1911 - ], - "text": "Enjoy.", - "confidence": 0.984 - } - ] - }, - { - "boundingBox": [ - 168, - 1923, - 1510, - 1923, - 1510, - 1957, - 168, - 1958 - ], - "text": "Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and", - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - }, - "words": [ - { - "boundingBox": [ - 169, - 1924, - 270, - 1924, - 270, - 1959, - 169, - 1959 - ], - "text": "Jupiter", - "confidence": 0.984 - }, - { - "boundingBox": [ - 277, - 1924, - 355, - 1924, - 355, - 1958, - 277, - 1959 - ], - "text": "Book", - "confidence": 0.986 - }, - { - "boundingBox": [ - 361, - 1924, - 465, - 1924, - 465, - 1958, - 361, - 1958 - ], - "text": "Supply", - "confidence": 0.983 - }, - { - "boundingBox": [ - 472, - 1924, - 517, - 1924, - 517, - 1958, - 471, - 1958 - ], - "text": "will", - "confidence": 0.986 - }, - { - "boundingBox": [ - 524, - 1924, - 623, - 1924, - 623, - 1958, - 524, - 1958 - ], - "text": "refund", - "confidence": 0.984 - }, - { - "boundingBox": [ - 630, - 1924, - 687, - 1924, - 687, - 1958, - 629, - 1958 - ], - "text": "you", - "confidence": 0.987 - }, - { - "boundingBox": [ - 694, - 1924, - 763, - 1924, - 762, - 1958, - 694, - 1958 - ], - "text": "50%", - "confidence": 0.983 - }, - { - "boundingBox": [ - 770, - 1924, - 820, - 1924, - 819, - 1958, - 769, - 1958 - ], - "text": "per", - "confidence": 0.987 - }, - { - "boundingBox": [ - 827, - 1924, - 900, - 1924, - 900, - 1958, - 826, - 1958 - ], - "text": "book", - "confidence": 0.987 - }, - { - "boundingBox": [ - 907, - 1924, - 926, - 1924, - 925, - 1958, - 907, - 1958 - ], - "text": "if", - "confidence": 0.985 - }, - { - "boundingBox": [ - 932, - 1924, - 1061, - 1924, - 1060, - 1958, - 932, - 1958 - ], - "text": "returned", - "confidence": 0.981 - }, - { - "boundingBox": [ - 1068, - 1924, - 1157, - 1924, - 1156, - 1958, - 1067, - 1958 - ], - "text": "within", - "confidence": 0.981 - }, - { - "boundingBox": [ - 1164, - 1924, - 1201, - 1924, - 1200, - 1958, - 1163, - 1958 - ], - "text": "60", - "confidence": 0.987 - }, - { - "boundingBox": [ - 1208, - 1924, - 1283, - 1924, - 1282, - 1958, - 1206, - 1958 - ], - "text": "days", - "confidence": 0.985 - }, - { - "boundingBox": [ - 1290, - 1924, - 1318, - 1924, - 1316, - 1958, - 1289, - 1958 - ], - "text": "of", - "confidence": 0.988 - }, - { - "boundingBox": [ - 1325, - 1924, - 1439, - 1924, - 1438, - 1958, - 1323, - 1958 - ], - "text": "reading", - "confidence": 0.983 - }, - { - "boundingBox": [ - 1446, - 1924, - 1510, - 1924, - 1509, - 1958, - 1445, - 1958 - ], - "text": "and", - "confidence": 0.987 - } - ] - }, - { - "boundingBox": [ - 168, - 1957, - 786, - 1958, - 786, - 1991, - 168, - 1991 - ], - "text": "offer you 25% off you next total purchase.", - "appearance": { - "style": { - "name": "other", - "confidence": 1.0 - } - }, - "words": [ - { - "boundingBox": [ - 169, - 1958, - 235, - 1958, - 236, - 1991, - 169, - 1991 - ], - "text": "offer", - "confidence": 0.985 - }, - { - "boundingBox": [ - 242, - 1958, - 299, - 1958, - 300, - 1992, - 242, - 1991 - ], - "text": "you", - "confidence": 0.987 - }, - { - "boundingBox": [ - 306, - 1958, - 374, - 1958, - 374, - 1992, - 306, - 1992 - ], - "text": "25%", - "confidence": 0.983 - }, - { - "boundingBox": [ - 380, - 1958, - 421, - 1958, - 421, - 1992, - 381, - 1992 - ], - "text": "off", - "confidence": 0.987 - }, - { - "boundingBox": [ - 427, - 1958, - 483, - 1958, - 483, - 1992, - 428, - 1992 - ], - "text": "you", - "confidence": 0.987 - }, - { - "boundingBox": [ - 489, - 1958, - 555, - 1959, - 556, - 1992, - 490, - 1992 - ], - "text": "next", - "confidence": 0.986 - }, - { - "boundingBox": [ - 562, - 1959, - 628, - 1959, - 628, - 1991, - 562, - 1992 - ], - "text": "total", - "confidence": 0.986 - }, - { - "boundingBox": [ - 634, - 1959, - 786, - 1961, - 786, - 1990, - 635, - 1991 - ], - "text": "purchase.", - "confidence": 0.967 - } - ] - } - ] - } - ], - "pageResults": [ - { - "page": 1, - "tables": [ - { - "rows": 5, - "columns": 5, - "cells": [ - { - "rowIndex": 0, - "columnIndex": 0, - "columnSpan": 2, - "text": "Details", - "boundingBox": [ - 157, - 1038, - 847, - 1037, - 847, - 1086, - 157, - 1086 - ], - "elements": [ - "#/readResults/0/lines/21/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 2, - "text": "Quantity", - "boundingBox": [ - 847, - 1037, - 1071, - 1037, - 1071, - 1086, - 847, - 1086 - ], - "elements": [ - "#/readResults/0/lines/22/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 3, - "text": "Unit Price", - "boundingBox": [ - 1071, - 1037, - 1310, - 1038, - 1310, - 1086, - 1071, - 1086 - ], - "elements": [ - "#/readResults/0/lines/23/words/0", - "#/readResults/0/lines/23/words/1" - ] - }, - { - "rowIndex": 0, - "columnIndex": 4, - "text": "Total", - "boundingBox": [ - 1310, - 1038, - 1543, - 1038, - 1543, - 1086, - 1310, - 1086 - ], - "elements": [ - "#/readResults/0/lines/24/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 0, - "columnSpan": 2, - "text": "Bindings", - "boundingBox": [ - 157, - 1086, - 847, - 1086, - 847, - 1127, - 157, - 1128 - ], - "elements": [ - "#/readResults/0/lines/25/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1086, - 1071, - 1086, - 1071, - 1127, - 847, - 1127 - ], - "elements": [ - "#/readResults/0/lines/26/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 3, - "text": "1.00", - "boundingBox": [ - 1071, - 1086, - 1310, - 1086, - 1310, - 1127, - 1071, - 1127 - ], - "elements": [ - "#/readResults/0/lines/27/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 4, - "text": "20.00", - "boundingBox": [ - 1310, - 1086, - 1543, - 1086, - 1543, - 1127, - 1310, - 1127 - ], - "elements": [ - "#/readResults/0/lines/28/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 0, - "columnSpan": 2, - "text": "Covers Small", - "boundingBox": [ - 157, - 1128, - 847, - 1127, - 847, - 1171, - 157, - 1171 - ], - "elements": [ - "#/readResults/0/lines/29/words/0", - "#/readResults/0/lines/29/words/1" - ] - }, - { - "rowIndex": 2, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1127, - 1071, - 1127, - 1071, - 1171, - 847, - 1171 - ], - "elements": [ - "#/readResults/0/lines/30/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 3, - "text": "1.00", - "boundingBox": [ - 1071, - 1127, - 1310, - 1127, - 1310, - 1171, - 1071, - 1171 - ], - "elements": [ - "#/readResults/0/lines/31/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 4, - "text": "20.00", - "boundingBox": [ - 1310, - 1127, - 1543, - 1127, - 1543, - 1171, - 1310, - 1171 - ], - "elements": [ - "#/readResults/0/lines/32/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 0, - "columnSpan": 2, - "text": "Feather Bookmark", - "boundingBox": [ - 157, - 1171, - 847, - 1171, - 847, - 1214, - 157, - 1214 - ], - "elements": [ - "#/readResults/0/lines/33/words/0", - "#/readResults/0/lines/33/words/1" - ] - }, - { - "rowIndex": 3, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1171, - 1071, - 1171, - 1071, - 1214, - 847, - 1214 - ], - "elements": [ - "#/readResults/0/lines/34/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 3, - "text": "5.00", - "boundingBox": [ - 1071, - 1171, - 1310, - 1171, - 1310, - 1214, - 1071, - 1214 - ], - "elements": [ - "#/readResults/0/lines/35/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 4, - "text": "100.00", - "boundingBox": [ - 1310, - 1171, - 1543, - 1171, - 1543, - 1215, - 1310, - 1214 - ], - "elements": [ - "#/readResults/0/lines/36/words/0" - ] - }, - { - "rowIndex": 4, - "columnIndex": 0, - "columnSpan": 2, - "text": "Copper Swirl Marker", - "boundingBox": [ - 157, - 1214, - 847, - 1214, - 847, - 1258, - 157, - 1258 - ], - "elements": [ - "#/readResults/0/lines/37/words/0", - "#/readResults/0/lines/37/words/1", - "#/readResults/0/lines/37/words/2" - ] - }, - { - "rowIndex": 4, - "columnIndex": 2, - "text": "20", - "boundingBox": [ - 847, - 1214, - 1071, - 1214, - 1071, - 1258, - 847, - 1258 - ], - "elements": [ - "#/readResults/0/lines/38/words/0" - ] - }, - { - "rowIndex": 4, - "columnIndex": 3, - "text": "5.00", - "boundingBox": [ - 1071, - 1214, - 1310, - 1214, - 1310, - 1258, - 1071, - 1258 - ], - "elements": [ - "#/readResults/0/lines/39/words/0" - ] - }, - { - "rowIndex": 4, - "columnIndex": 4, - "text": "100.00", - "boundingBox": [ - 1310, - 1214, - 1543, - 1215, - 1543, - 1260, - 1310, - 1258 - ], - "elements": [ - "#/readResults/0/lines/40/words/0" - ] - } - ], - "boundingBox": [ - 153, - 1036, - 1547, - 1037, - 1547, - 1265, - 153, - 1265 - ] - }, - { - "rows": 4, - "columns": 2, - "cells": [ - { - "rowIndex": 0, - "columnIndex": 0, - "text": "SUBTOTAL", - "boundingBox": [ - 1072, - 1564, - 1307, - 1565, - 1308, - 1609, - 1071, - 1608 - ], - "elements": [ - "#/readResults/0/lines/41/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 1, - "text": "$140.00", - "boundingBox": [ - 1307, - 1565, - 1542, - 1564, - 1543, - 1609, - 1308, - 1609 - ], - "elements": [ - "#/readResults/0/lines/42/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 0, - "text": "TAX", - "boundingBox": [ - 1071, - 1608, - 1308, - 1609, - 1308, - 1652, - 1071, - 1651 - ], - "elements": [ - "#/readResults/0/lines/43/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 1, - "text": "$4.00", - "boundingBox": [ - 1308, - 1609, - 1543, - 1609, - 1543, - 1652, - 1308, - 1652 - ], - "elements": [ - "#/readResults/0/lines/44/words/0" - ] - }, - { - "rowIndex": 2, - "columnIndex": 0, - "text": "", - "boundingBox": [ - 1071, - 1651, - 1308, - 1652, - 1308, - 1663, - 1071, - 1663 - ], - "elements": [] - }, - { - "rowIndex": 2, - "columnIndex": 1, - "text": "", - "boundingBox": [ - 1308, - 1652, - 1543, - 1652, - 1543, - 1663, - 1308, - 1663 - ], - "elements": [] - }, - { - "rowIndex": 3, - "columnIndex": 0, - "text": "TOTAL", - "boundingBox": [ - 1071, - 1663, - 1308, - 1663, - 1308, - 1707, - 1071, - 1707 - ], - "elements": [ - "#/readResults/0/lines/46/words/0" - ] - }, - { - "rowIndex": 3, - "columnIndex": 1, - "text": "$144.00", - "boundingBox": [ - 1308, - 1663, - 1543, - 1663, - 1543, - 1708, - 1308, - 1707 - ], - "elements": [ - "#/readResults/0/lines/47/words/0" - ] - } - ], - "boundingBox": [ - 1058, - 1563, - 1555, - 1563, - 1555, - 1707, - 1058, - 1707 - ] - } - ] - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "1559909134" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%en%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage.json similarity index 95% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%en%)Async.json rename to sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage.json index bcac4694df68..ebb448a61274 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%en%)Async.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage.json @@ -1,19 +1,16 @@ { "Entries": [ { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=en", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=en", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-55c289313dd41d4cb8babe7a0c5c1111-bda85bfd15aa2e4e-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "9dd5fa67ed3967f949480334a196cd6f", + "traceparent": "00-94c96d6b73196f4cba840951fe21445e-090cd3d95f657849-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "dcb397ed2669039ac757155dfee9ac7c", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -21,164 +18,149 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "apim-request-id": "501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "Content-Length": "0", - "Date": "Wed, 11 Nov 2020 20:57:10 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "Date": "Thu, 28 Jan 2021 22:19:26 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "339" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "138" }, "ResponseBody": [] }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "625a12065eb690ca84a218152a498d23", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e185aba0a15fb00d70aa8a01ff9d083d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "5298d354-96bf-4026-8e6d-86034d39e6f9", + "apim-request-id": "50a73f56-85e6-426a-a80e-27ce0f07a6b5", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:10 GMT", + "Date": "Thu, 28 Jan 2021 22:19:26 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "54" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:57:10Z", - "lastUpdatedDateTime": "2020-11-11T20:57:10Z" + "createdDateTime": "2021-01-28T22:19:26Z", + "lastUpdatedDateTime": "2021-01-28T22:19:26Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "93d906fb171fb0f52a18e0b220ccfc8d", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "e3b9d4970444abb2dc3856896c24def5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "4c689898-3524-4022-b1e6-baafa7e28400", + "apim-request-id": "ee0bc113-f71c-4fc0-9f0d-f12c43c5a381", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:11 GMT", + "Date": "Thu, 28 Jan 2021 22:19:27 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "26" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:57:10Z", - "lastUpdatedDateTime": "2020-11-11T20:57:10Z" + "createdDateTime": "2021-01-28T22:19:26Z", + "lastUpdatedDateTime": "2021-01-28T22:19:26Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "fca5a4efd7d109752f451997d5e33cff", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5ee20de8457b4c3289036cbe9c98042a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9e2c802d-4bbb-472e-832c-cd995d1e8566", + "apim-request-id": "0dcde0fd-b8eb-4ed8-85a4-ba593326251a", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:12 GMT", + "Date": "Thu, 28 Jan 2021 22:19:29 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "16" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:57:10Z", - "lastUpdatedDateTime": "2020-11-11T20:57:10Z" + "createdDateTime": "2021-01-28T22:19:26Z", + "lastUpdatedDateTime": "2021-01-28T22:19:26Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "9a39e0ba3abdee4f1da9379e7d1870b8", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "2ac6d84fc82f9b38f9d904274a83434b", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2cf02ddc-71ef-4840-81f6-49be1fbf968c", + "apim-request-id": "c6ac40bb-19fc-44ee-8e12-2f480bb03cf9", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:13 GMT", + "Date": "Thu, 28 Jan 2021 22:19:30 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "18" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:57:10Z", - "lastUpdatedDateTime": "2020-11-11T20:57:10Z" + "createdDateTime": "2021-01-28T22:19:26Z", + "lastUpdatedDateTime": "2021-01-28T22:19:26Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/6d898bbb-8280-4ea2-a2a9-5aa58620506b", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/501d33d7-5d75-4e11-b8eb-5ec62ec0b118", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "86268aa590a4245190d063dafe5dda46", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "f11995cba9ba52c1a16d5a4098f40e44", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "98f8ada1-d588-40b4-8029-7f6b0e4006c3", + "apim-request-id": "f483fb52-30df-48d1-a9c9-cbe82108c119", "Content-Length": "24403", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:14 GMT", + "Date": "Thu, 28 Jan 2021 22:19:31 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "66" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2020-11-11T20:57:10Z", - "lastUpdatedDateTime": "2020-11-11T20:57:14Z", + "createdDateTime": "2021-01-28T22:19:26Z", + "lastUpdatedDateTime": "2021-01-28T22:19:30Z", "analyzeResult": { "version": "2.1.0", "readResults": [ @@ -3730,7 +3712,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "1146283962" + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "160178443" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%en%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguageAsync.json similarity index 95% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%en%).json rename to sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguageAsync.json index 33395669912c..104596f747bb 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguage(%en%).json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithLanguageAsync.json @@ -1,19 +1,16 @@ { "Entries": [ { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=en", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=en", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-619154335da7c241b2be39657f163d11-f6296c9c2ef45c4b-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "899cd044b8113d47aa522826fbbd5cb3", + "traceparent": "00-bfbf1c0ead760a42b40731c63be5b5dd-6a9e5c52d4be5141-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "6d0f0f02481b106d4780d64e08f3ee86", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -21,164 +18,149 @@ }, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "7fb90364-3e4f-46a7-8740-f6df7ddac590", + "apim-request-id": "a40a234f-1890-480d-83da-de7e8dd39c8f", "Content-Length": "0", - "Date": "Wed, 11 Nov 2020 20:56:59 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/7fb90364-3e4f-46a7-8740-f6df7ddac590", + "Date": "Thu, 28 Jan 2021 22:19:32 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/a40a234f-1890-480d-83da-de7e8dd39c8f", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "623" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "95" }, "ResponseBody": [] }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/7fb90364-3e4f-46a7-8740-f6df7ddac590", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/a40a234f-1890-480d-83da-de7e8dd39c8f", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "7405d23b965cc0d6f3d41e41d171c3a7", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "8cabae44c3d64dc47f9476238ef2e9a3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "83096503-ed66-46bf-ab58-c7f180fc9c9e", + "apim-request-id": "8759a616-e8be-4afa-beda-a389045f2414", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:56:59 GMT", + "Date": "Thu, 28 Jan 2021 22:19:32 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "73" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:56:59Z", - "lastUpdatedDateTime": "2020-11-11T20:56:59Z" + "createdDateTime": "2021-01-28T22:19:32Z", + "lastUpdatedDateTime": "2021-01-28T22:19:32Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/7fb90364-3e4f-46a7-8740-f6df7ddac590", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/a40a234f-1890-480d-83da-de7e8dd39c8f", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "b175794d78b08e012236ec332825397e", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ca85aadd6685aed17741ddf55e0d2e27", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d58e1aac-3df3-48b2-bb67-308dcf8cecbd", + "apim-request-id": "a30e1dce-7136-40da-9c96-45e28b94b218", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:00 GMT", + "Date": "Thu, 28 Jan 2021 22:19:33 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "17" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:56:59Z", - "lastUpdatedDateTime": "2020-11-11T20:56:59Z" + "createdDateTime": "2021-01-28T22:19:32Z", + "lastUpdatedDateTime": "2021-01-28T22:19:32Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/7fb90364-3e4f-46a7-8740-f6df7ddac590", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/a40a234f-1890-480d-83da-de7e8dd39c8f", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "57e43ee85939ade9fadb963d9a056b39", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "ad23869699eb3f694ac2ee87d1498254", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2946f8d0-4e7c-4ee0-aef8-33f7de89db2b", + "apim-request-id": "07e7ed4f-b65a-4462-990d-f7e1843ebf35", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:01 GMT", + "Date": "Thu, 28 Jan 2021 22:19:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:56:59Z", - "lastUpdatedDateTime": "2020-11-11T20:56:59Z" + "createdDateTime": "2021-01-28T22:19:32Z", + "lastUpdatedDateTime": "2021-01-28T22:19:32Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/7fb90364-3e4f-46a7-8740-f6df7ddac590", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/a40a234f-1890-480d-83da-de7e8dd39c8f", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "81d9818fab47c303d0765125aaa298cd", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "5d713396236edd00ddfd1495e5cfef71", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8119020e-0d5a-40d2-9c38-77fa0019f016", + "apim-request-id": "d6bc7823-1eb1-4eeb-af6e-7a370f377090", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:02 GMT", + "Date": "Thu, 28 Jan 2021 22:19:35 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "16" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-11T20:56:59Z", - "lastUpdatedDateTime": "2020-11-11T20:56:59Z" + "createdDateTime": "2021-01-28T22:19:32Z", + "lastUpdatedDateTime": "2021-01-28T22:19:32Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/7fb90364-3e4f-46a7-8740-f6df7ddac590", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyzeResults/a40a234f-1890-480d-83da-de7e8dd39c8f", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "92599f9a6b8cf36e90c7b7d4e1c4f41d", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", + "x-ms-client-request-id": "078d4f663bce44b740467fc3784adc2e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f076752a-3da1-42fb-aecc-9c974bf208fd", + "apim-request-id": "23de1617-6440-4e55-a1b5-d06900fb1222", "Content-Length": "24403", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:57:04 GMT", + "Date": "Thu, 28 Jan 2021 22:19:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "68" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2020-11-11T20:56:59Z", - "lastUpdatedDateTime": "2020-11-11T20:57:03Z", + "createdDateTime": "2021-01-28T22:19:32Z", + "lastUpdatedDateTime": "2021-01-28T22:19:36Z", "analyzeResult": { "version": "2.1.0", "readResults": [ @@ -3730,7 +3712,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "1720756276" + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "1188501654" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguage.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguage.json index cd38d260d8c4..d15af36ad7ea 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguage.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguage.json @@ -1,18 +1,15 @@ { "Entries": [ { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=not%20language", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=not%20language", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-eb2430e019e50644b2c7832e050ec193-7184a91f8c9e5c45-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-c7e4d126b3e7854bb641021d92162314-c097d4134e20694a-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "5d75de53dbce7591367619a456191216", "x-ms-return-client-request-id": "true" }, @@ -21,12 +18,12 @@ }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "24d17189-1663-4c3e-a57d-4d53707b958d", + "apim-request-id": "b5fb0d24-3551-43da-b71c-c40424e6c3d2", "Content-Length": "121", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:58:35 GMT", + "Date": "Thu, 28 Jan 2021 22:19:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", + "x-content-type-options": "nosniff", "x-envoy-upstream-service-time": "4" }, "ResponseBody": { @@ -39,7 +36,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", "RandomSeed": "1060328887" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguageAsync.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguageAsync.json index 4a8021b24235..e7112d13c65b 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguageAsync.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeContentWithNoSupporttedLanguageAsync.json @@ -1,18 +1,15 @@ { "Entries": [ { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=not%20language", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/layout/analyze?language=not%20language", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "22", "Content-Type": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-fc93c62bc1a098478adc000978fe574e-6e6f9cc6094ea64f-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201111.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], + "traceparent": "00-ac9b9b7be37c9946b3b2fd6229a24563-cb7c9aa221efc241-00", + "User-Agent": "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1 (.NET Framework 4.8.4250.0; Microsoft Windows 10.0.19042 )", "x-ms-client-request-id": "df0aa2b9951521d1e53fe305515526f1", "x-ms-return-client-request-id": "true" }, @@ -21,13 +18,13 @@ }, "StatusCode": 400, "ResponseHeaders": { - "apim-request-id": "42f51b5f-bf5c-4153-b263-f2c0e41e1362", + "apim-request-id": "3b59b86e-610f-4c8a-9508-0f0571c633b2", "Content-Length": "121", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 11 Nov 2020 20:58:36 GMT", + "Date": "Thu, 28 Jan 2021 22:19:58 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "3" + "x-content-type-options": "nosniff", + "x-envoy-upstream-service-time": "2" }, "ResponseBody": { "error": { @@ -39,7 +36,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", "RandomSeed": "1798371418" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%).json deleted file mode 100644 index be8a7ee5f0ba..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%).json +++ /dev/null @@ -1,1513 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyze?includeTextDetails=true\u0026locale=en-US", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "76742", - "Content-Type": "image/tiff", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-c53729e5e6d63746bee7459f519f3f5d-099df4f5d0fec841-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "d2cb9a24993149d1bc5e2b1e82f2317e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "b6c51426-a0d6-43d4-a239-ab33e4c19275", - "Content-Length": "0", - "Date": "Mon, 02 Nov 2020 21:37:44 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "40" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "4be97f236f3feb70c94197e93e01c92d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d063a4ed-c9b6-4423-aa93-f7d566501187", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:44Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "77c07fa221aa2c49676caf8eac3bfdfe", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "07b117d6-d85f-41fb-9061-25e7f7c3d618", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:45 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:44Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "a0eed663f109b5e429df08ef01e70abb", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "6e1df1e0-627c-44ce-a204-a1cc793a11a8", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:44Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "027bfd95ba3202d436bce3d2c0e23f8e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "461b719d-0c82-49af-a613-f0a816cb0c2f", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "339" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:44Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "688699442913b0249b0a4eca18592a7f", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "5b3a11a2-dcc7-401b-8fed-5b33740a3a4d", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:44Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "aff9f461fbbfa9cb01eb694d0e11f547", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c0882cb3-60d1-4ce0-bac9-b479a405881b", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:44Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b6c51426-a0d6-43d4-a239-ab33e4c19275", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "68ab7aa0a2616ba7d9cb67276b09eadc", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "03aa310b-b93f-4a06-9531-e2ae4e24b18c", - "Content-Length": "9869", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-11-02T21:37:44Z", - "lastUpdatedDateTime": "2020-11-02T21:37:50Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0, - "width": 1700, - "height": 2200, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 105, - 231, - 289, - 232, - 289, - 274, - 105, - 273 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 106, - 232, - 288, - 234, - 288, - 274, - 105, - 274 - ], - "confidence": 0.985 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Address:", - "boundingBox": [ - 159, - 299, - 279, - 300, - 279, - 326, - 159, - 325 - ], - "words": [ - { - "text": "Address:", - "boundingBox": [ - 161, - 299, - 279, - 301, - 279, - 326, - 160, - 325 - ], - "confidence": 0.982 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Invoice For: Microsoft", - "boundingBox": [ - 875, - 299, - 1165, - 299, - 1165, - 326, - 875, - 326 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 876, - 300, - 963, - 299, - 964, - 327, - 877, - 326 - ], - "confidence": 0.951 - }, - { - "text": "For:", - "boundingBox": [ - 968, - 299, - 1030, - 299, - 1030, - 327, - 969, - 327 - ], - "confidence": 0.986 - }, - { - "text": "Microsoft", - "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - } - }, - { - "text": "1 Redmond way Suite", - "boundingBox": [ - 160, - 337, - 432, - 337, - 432, - 367, - 160, - 366 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 160, - 338, - 174, - 339, - 174, - 364, - 161, - 364 - ], - "confidence": 0.987 - }, - { - "text": "Redmond", - "boundingBox": [ - 179, - 339, - 301, - 339, - 301, - 367, - 179, - 365 - ], - "confidence": 0.984 - }, - { - "text": "way", - "boundingBox": [ - 306, - 339, - 361, - 338, - 361, - 368, - 306, - 367 - ], - "confidence": 0.987 - }, - { - "text": "Suite", - "boundingBox": [ - 366, - 338, - 433, - 337, - 433, - 367, - 366, - 368 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - }, - { - "text": "1020 Enterprise Way", - "boundingBox": [ - 1037, - 337, - 1312, - 338, - 1312, - 372, - 1037, - 371 - ], - "words": [ - { - "text": "1020", - "boundingBox": [ - 1038, - 338, - 1096, - 339, - 1096, - 372, - 1038, - 372 - ], - "confidence": 0.986 - }, - { - "text": "Enterprise", - "boundingBox": [ - 1102, - 339, - 1241, - 339, - 1241, - 373, - 1102, - 372 - ], - "confidence": 0.981 - }, - { - "text": "Way", - "boundingBox": [ - 1248, - 339, - 1313, - 338, - 1312, - 373, - 1248, - 373 - ], - "confidence": 0.987 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "6000 Redmond, WA", - "boundingBox": [ - 159, - 375, - 410, - 375, - 410, - 403, - 159, - 404 - ], - "words": [ - { - "text": "6000", - "boundingBox": [ - 159, - 377, - 220, - 377, - 220, - 404, - 159, - 404 - ], - "confidence": 0.986 - }, - { - "text": "Redmond,", - "boundingBox": [ - 225, - 377, - 357, - 376, - 357, - 405, - 225, - 404 - ], - "confidence": 0.98 - }, - { - "text": "WA", - "boundingBox": [ - 362, - 376, - 410, - 375, - 410, - 404, - 362, - 405 - ], - "confidence": 0.988 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Sunnayvale, CA 87659", - "boundingBox": [ - 1036, - 378, - 1334, - 377, - 1334, - 406, - 1036, - 408 - ], - "words": [ - { - "text": "Sunnayvale,", - "boundingBox": [ - 1036, - 379, - 1198, - 379, - 1198, - 408, - 1036, - 407 - ], - "confidence": 0.98 - }, - { - "text": "CA", - "boundingBox": [ - 1203, - 379, - 1246, - 378, - 1246, - 407, - 1203, - 408 - ], - "confidence": 0.988 - }, - { - "text": "87659", - "boundingBox": [ - 1252, - 378, - 1333, - 378, - 1333, - 405, - 1251, - 407 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "99243", - "boundingBox": [ - 157, - 415, - 238, - 414, - 238, - 439, - 158, - 440 - ], - "words": [ - { - "text": "99243", - "boundingBox": [ - 158, - 415, - 237, - 414, - 238, - 440, - 159, - 441 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - } - }, - { - "text": "Invoice Number", - "boundingBox": [ - 104, - 572, - 318, - 572, - 318, - 598, - 104, - 598 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 105, - 572, - 202, - 572, - 202, - 599, - 105, - 599 - ], - "confidence": 0.951 - }, - { - "text": "Number", - "boundingBox": [ - 207, - 572, - 318, - 573, - 318, - 599, - 207, - 599 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Invoice Date", - "boundingBox": [ - 385, - 572, - 552, - 572, - 552, - 597, - 385, - 597 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 386, - 573, - 484, - 572, - 484, - 598, - 386, - 598 - ], - "confidence": 0.942 - }, - { - "text": "Date", - "boundingBox": [ - 489, - 572, - 551, - 573, - 551, - 598, - 489, - 598 - ], - "confidence": 0.987 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Invoice Due Date", - "boundingBox": [ - 661, - 568, - 894, - 568, - 894, - 601, - 661, - 601 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 662, - 569, - 760, - 569, - 760, - 601, - 662, - 602 - ], - "confidence": 0.974 - }, - { - "text": "Due", - "boundingBox": [ - 767, - 569, - 819, - 569, - 819, - 601, - 767, - 601 - ], - "confidence": 0.987 - }, - { - "text": "Date", - "boundingBox": [ - 826, - 569, - 893, - 568, - 893, - 602, - 826, - 601 - ], - "confidence": 0.987 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.965 - } - } - }, - { - "text": "Charges", - "boundingBox": [ - 947, - 573, - 1061, - 574, - 1061, - 602, - 947, - 600 - ], - "words": [ - { - "text": "Charges", - "boundingBox": [ - 948, - 573, - 1060, - 574, - 1060, - 602, - 948, - 600 - ], - "confidence": 0.97 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - }, - { - "text": "VAT ID", - "boundingBox": [ - 1225, - 572, - 1320, - 572, - 1320, - 596, - 1225, - 597 - ], - "words": [ - { - "text": "VAT", - "boundingBox": [ - 1227, - 573, - 1282, - 572, - 1282, - 597, - 1227, - 598 - ], - "confidence": 0.987 - }, - { - "text": "ID", - "boundingBox": [ - 1287, - 572, - 1320, - 572, - 1320, - 597, - 1287, - 597 - ], - "confidence": 0.986 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - }, - { - "text": "34278587", - "boundingBox": [ - 105, - 679, - 230, - 679, - 230, - 705, - 105, - 705 - ], - "words": [ - { - "text": "34278587", - "boundingBox": [ - 105, - 680, - 229, - 680, - 230, - 705, - 106, - 705 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - } - }, - { - "text": "6/18/2017", - "boundingBox": [ - 386, - 680, - 510, - 679, - 510, - 704, - 386, - 705 - ], - "words": [ - { - "text": "6/18/2017", - "boundingBox": [ - 387, - 680, - 510, - 680, - 510, - 705, - 387, - 705 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "6/24/2017", - "boundingBox": [ - 667, - 679, - 792, - 679, - 792, - 704, - 667, - 705 - ], - "words": [ - { - "text": "6/24/2017", - "boundingBox": [ - 668, - 679, - 792, - 679, - 792, - 705, - 667, - 705 - ], - "confidence": 0.982 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "$56,651.49 PT", - "boundingBox": [ - 1074, - 680, - 1279, - 679, - 1280, - 704, - 1074, - 706 - ], - "words": [ - { - "text": "$56,651.49", - "boundingBox": [ - 1075, - 680, - 1224, - 680, - 1225, - 705, - 1075, - 707 - ], - "confidence": 0.967 - }, - { - "text": "PT", - "boundingBox": [ - 1240, - 679, - 1279, - 679, - 1280, - 704, - 1241, - 705 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - } - ] - } - ], - "pageResults": [ - { - "page": 1, - "tables": [ - { - "rows": 3, - "columns": 6, - "cells": [ - { - "rowIndex": 0, - "columnIndex": 0, - "text": "Invoice Number", - "boundingBox": [ - 101, - 556, - 380, - 558, - 380, - 662, - 101, - 661 - ], - "elements": [ - "#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1" - ] - }, - { - "rowIndex": 0, - "columnIndex": 1, - "text": "Invoice Date", - "boundingBox": [ - 380, - 558, - 658, - 558, - 659, - 662, - 380, - 662 - ], - "elements": [ - "#/readResults/0/lines/9/words/0", - "#/readResults/0/lines/9/words/1" - ] - }, - { - "rowIndex": 0, - "columnIndex": 2, - "text": "Invoice Due Date", - "boundingBox": [ - 658, - 558, - 941, - 558, - 941, - 662, - 659, - 662 - ], - "elements": [ - "#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1", - "#/readResults/0/lines/10/words/2" - ] - }, - { - "rowIndex": 0, - "columnIndex": 3, - "columnSpan": 2, - "text": "Charges", - "boundingBox": [ - 941, - 558, - 1220, - 558, - 1220, - 662, - 941, - 662 - ], - "elements": [ - "#/readResults/0/lines/11/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 5, - "text": "VAT ID", - "boundingBox": [ - 1220, - 558, - 1499, - 556, - 1500, - 661, - 1220, - 662 - ], - "elements": [ - "#/readResults/0/lines/12/words/0", - "#/readResults/0/lines/12/words/1" - ] - }, - { - "rowIndex": 1, - "columnIndex": 0, - "rowSpan": 2, - "text": "34278587", - "boundingBox": [ - 101, - 661, - 380, - 662, - 380, - 771, - 101, - 771 - ], - "elements": [ - "#/readResults/0/lines/13/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 1, - "rowSpan": 2, - "text": "6/18/2017", - "boundingBox": [ - 380, - 662, - 659, - 662, - 661, - 771, - 380, - 771 - ], - "elements": [ - "#/readResults/0/lines/14/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 2, - "rowSpan": 2, - "text": "6/24/2017", - "boundingBox": [ - 659, - 662, - 941, - 662, - 941, - 771, - 661, - 771 - ], - "elements": [ - "#/readResults/0/lines/15/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 3, - "rowSpan": 2, - "columnSpan": 2, - "text": "$56,651.49", - "boundingBox": [ - 941, - 662, - 1220, - 662, - 1220, - 771, - 941, - 771 - ], - "elements": [ - "#/readResults/0/lines/16/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 5, - "rowSpan": 2, - "text": "PT", - "boundingBox": [ - 1220, - 662, - 1500, - 661, - 1500, - 769, - 1220, - 771 - ], - "elements": [ - "#/readResults/0/lines/16/words/1" - ] - } - ], - "boundingBox": [ - 100, - 556, - 1499, - 556, - 1498, - 771, - 99, - 771 - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:invoice", - "pageRange": [ - 1, - 1 - ], - "fields": { - "VendorName": { - "type": "string", - "valueString": "Contoso", - "text": "Contoso", - "boundingBox": [ - 106, - 232, - 288, - 234, - 288, - 274, - 105, - 274 - ], - "page": 1, - "confidence": 0.921, - "elements": [ - "#/readResults/0/lines/0/words/0" - ] - }, - "CustomerAddressRecipient": { - "type": "string", - "valueString": "Microsoft", - "text": "Microsoft", - "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 - ], - "page": 1, - "confidence": 0.993, - "elements": [ - "#/readResults/0/lines/2/words/2" - ] - }, - "VendorAddress": { - "type": "string", - "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", - "text": "1 Redmond way Suite 6000 Redmond, WA 99243", - "boundingBox": [ - 158, - 337, - 433, - 337, - 433, - 441, - 158, - 441 - ], - "page": 1, - "confidence": 0.907, - "elements": [ - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", - "#/readResults/0/lines/3/words/3", - "#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2", - "#/readResults/0/lines/7/words/0" - ] - }, - "CustomerAddress": { - "type": "string", - "valueString": "1020 Enterprise Way Sunnayvale, CA 87659", - "text": "1020 Enterprise Way Sunnayvale, CA 87659", - "boundingBox": [ - 1036.1, - 337.1, - 1333.2, - 338.1, - 1333, - 408.4, - 1035.9, - 407.5 - ], - "page": 1, - "confidence": 0.995, - "elements": [ - "#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2", - "#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", - "#/readResults/0/lines/6/words/2" - ] - }, - "InvoiceId": { - "type": "string", - "valueString": "34278587", - "text": "34278587", - "boundingBox": [ - 105, - 680, - 229, - 680, - 230, - 705, - 106, - 705 - ], - "page": 1, - "confidence": 0.768, - "elements": [ - "#/readResults/0/lines/13/words/0" - ] - }, - "InvoiceDate": { - "type": "date", - "valueDate": "2017-06-18", - "text": "6/18/2017", - "boundingBox": [ - 387, - 680, - 510, - 680, - 510, - 705, - 387, - 705 - ], - "page": 1, - "confidence": 0.89, - "elements": [ - "#/readResults/0/lines/14/words/0" - ] - }, - "DueDate": { - "type": "date", - "valueDate": "2017-06-24", - "text": "6/24/2017", - "boundingBox": [ - 668, - 679, - 792, - 679, - 792, - 705, - 667, - 705 - ], - "page": 1, - "confidence": 0.988, - "elements": [ - "#/readResults/0/lines/15/words/0" - ] - }, - "InvoiceTotal": { - "type": "number", - "valueNumber": 56651.49, - "text": "$56,651.49", - "boundingBox": [ - 1075, - 680, - 1224, - 680, - 1225, - 705, - 1075, - 707 - ], - "page": 1, - "confidence": 0.847, - "elements": [ - "#/readResults/0/lines/16/words/0" - ] - }, - "CustomerName": { - "type": "string", - "valueString": "Microsoft", - "text": "Microsoft", - "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 - ], - "page": 1, - "confidence": 0.993, - "elements": [ - "#/readResults/0/lines/2/words/2" - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "929548033" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%)Async.json deleted file mode 100644 index 8207ab64db97..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%en-US%)Async.json +++ /dev/null @@ -1,1513 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyze?includeTextDetails=true\u0026locale=en-US", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "76742", - "Content-Type": "image/tiff", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-e52dc3b6a96a024a89be9c4e5a254b9b-ac64d01bcf76b044-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "ff91fc005dcc9e47f25bbf494cfeb980", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "Content-Length": "0", - "Date": "Mon, 02 Nov 2020 21:38:44 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "36" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "fb457d14b0f6c1eaec1be2caac6be57d", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "9bb46091-3678-4fd6-8d48-0c45a1000de5", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:44 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" - }, - "ResponseBody": { - "status": "notStarted", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:45Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "cc2d193a3bc680fe80904cda09f3768b", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d6fa6590-03c5-4d68-a937-2fc8320ee71b", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:46 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:45Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "0dc7b0cfe411501412d013b07b7df186", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c0677ca8-7c2f-4d42-a00d-f99ee33d8963", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:47 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:45Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "320f4175ecd1d9b97ec57a65630fb7f9", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "14d1bff6-62a7-443a-b9cc-c6ccf1a2603d", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:48 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:45Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "fcfb57a4d8a3566c04dcbaf6284e0502", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c0037afe-8f84-4329-a4ff-7f293106b05e", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:49 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:45Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "c864c69f44e4e2baf6ee8e4c69afec02", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "347576e0-88af-489b-a6be-d500c62d653d", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:50 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:45Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/b969dd36-84ee-46fd-8acd-b3ab04e9eaea", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "240b1918f5829de2d5b92ef432c2b130", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "c8fb9656-4877-40a4-b8a6-5d304c58463e", - "Content-Length": "9869", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:51 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-11-02T21:38:45Z", - "lastUpdatedDateTime": "2020-11-02T21:38:51Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0, - "width": 1700, - "height": 2200, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 105, - 231, - 289, - 232, - 289, - 274, - 105, - 273 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 106, - 232, - 288, - 234, - 288, - 274, - 105, - 274 - ], - "confidence": 0.985 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Address:", - "boundingBox": [ - 159, - 299, - 279, - 300, - 279, - 326, - 159, - 325 - ], - "words": [ - { - "text": "Address:", - "boundingBox": [ - 161, - 299, - 279, - 301, - 279, - 326, - 160, - 325 - ], - "confidence": 0.982 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Invoice For: Microsoft", - "boundingBox": [ - 875, - 299, - 1165, - 299, - 1165, - 326, - 875, - 326 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 876, - 300, - 963, - 299, - 964, - 327, - 877, - 326 - ], - "confidence": 0.951 - }, - { - "text": "For:", - "boundingBox": [ - 968, - 299, - 1030, - 299, - 1030, - 327, - 969, - 327 - ], - "confidence": 0.986 - }, - { - "text": "Microsoft", - "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - } - }, - { - "text": "1 Redmond way Suite", - "boundingBox": [ - 160, - 337, - 432, - 337, - 432, - 367, - 160, - 366 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 160, - 338, - 174, - 339, - 174, - 364, - 161, - 364 - ], - "confidence": 0.987 - }, - { - "text": "Redmond", - "boundingBox": [ - 179, - 339, - 301, - 339, - 301, - 367, - 179, - 365 - ], - "confidence": 0.984 - }, - { - "text": "way", - "boundingBox": [ - 306, - 339, - 361, - 338, - 361, - 368, - 306, - 367 - ], - "confidence": 0.987 - }, - { - "text": "Suite", - "boundingBox": [ - 366, - 338, - 433, - 337, - 433, - 367, - 366, - 368 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - }, - { - "text": "1020 Enterprise Way", - "boundingBox": [ - 1037, - 337, - 1312, - 338, - 1312, - 372, - 1037, - 371 - ], - "words": [ - { - "text": "1020", - "boundingBox": [ - 1038, - 338, - 1096, - 339, - 1096, - 372, - 1038, - 372 - ], - "confidence": 0.986 - }, - { - "text": "Enterprise", - "boundingBox": [ - 1102, - 339, - 1241, - 339, - 1241, - 373, - 1102, - 372 - ], - "confidence": 0.981 - }, - { - "text": "Way", - "boundingBox": [ - 1248, - 339, - 1313, - 338, - 1312, - 373, - 1248, - 373 - ], - "confidence": 0.987 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "6000 Redmond, WA", - "boundingBox": [ - 159, - 375, - 410, - 375, - 410, - 403, - 159, - 404 - ], - "words": [ - { - "text": "6000", - "boundingBox": [ - 159, - 377, - 220, - 377, - 220, - 404, - 159, - 404 - ], - "confidence": 0.986 - }, - { - "text": "Redmond,", - "boundingBox": [ - 225, - 377, - 357, - 376, - 357, - 405, - 225, - 404 - ], - "confidence": 0.98 - }, - { - "text": "WA", - "boundingBox": [ - 362, - 376, - 410, - 375, - 410, - 404, - 362, - 405 - ], - "confidence": 0.988 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Sunnayvale, CA 87659", - "boundingBox": [ - 1036, - 378, - 1334, - 377, - 1334, - 406, - 1036, - 408 - ], - "words": [ - { - "text": "Sunnayvale,", - "boundingBox": [ - 1036, - 379, - 1198, - 379, - 1198, - 408, - 1036, - 407 - ], - "confidence": 0.98 - }, - { - "text": "CA", - "boundingBox": [ - 1203, - 379, - 1246, - 378, - 1246, - 407, - 1203, - 408 - ], - "confidence": 0.988 - }, - { - "text": "87659", - "boundingBox": [ - 1252, - 378, - 1333, - 378, - 1333, - 405, - 1251, - 407 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "99243", - "boundingBox": [ - 157, - 415, - 238, - 414, - 238, - 439, - 158, - 440 - ], - "words": [ - { - "text": "99243", - "boundingBox": [ - 158, - 415, - 237, - 414, - 238, - 440, - 159, - 441 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - } - }, - { - "text": "Invoice Number", - "boundingBox": [ - 104, - 572, - 318, - 572, - 318, - 598, - 104, - 598 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 105, - 572, - 202, - 572, - 202, - 599, - 105, - 599 - ], - "confidence": 0.951 - }, - { - "text": "Number", - "boundingBox": [ - 207, - 572, - 318, - 573, - 318, - 599, - 207, - 599 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Invoice Date", - "boundingBox": [ - 385, - 572, - 552, - 572, - 552, - 597, - 385, - 597 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 386, - 573, - 484, - 572, - 484, - 598, - 386, - 598 - ], - "confidence": 0.942 - }, - { - "text": "Date", - "boundingBox": [ - 489, - 572, - 551, - 573, - 551, - 598, - 489, - 598 - ], - "confidence": 0.987 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "Invoice Due Date", - "boundingBox": [ - 661, - 568, - 894, - 568, - 894, - 601, - 661, - 601 - ], - "words": [ - { - "text": "Invoice", - "boundingBox": [ - 662, - 569, - 760, - 569, - 760, - 601, - 662, - 602 - ], - "confidence": 0.974 - }, - { - "text": "Due", - "boundingBox": [ - 767, - 569, - 819, - 569, - 819, - 601, - 767, - 601 - ], - "confidence": 0.987 - }, - { - "text": "Date", - "boundingBox": [ - 826, - 569, - 893, - 568, - 893, - 602, - 826, - 601 - ], - "confidence": 0.987 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.965 - } - } - }, - { - "text": "Charges", - "boundingBox": [ - 947, - 573, - 1061, - 574, - 1061, - 602, - 947, - 600 - ], - "words": [ - { - "text": "Charges", - "boundingBox": [ - 948, - 573, - 1060, - 574, - 1060, - 602, - 948, - 600 - ], - "confidence": 0.97 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - }, - { - "text": "VAT ID", - "boundingBox": [ - 1225, - 572, - 1320, - 572, - 1320, - 596, - 1225, - 597 - ], - "words": [ - { - "text": "VAT", - "boundingBox": [ - 1227, - 573, - 1282, - 572, - 1282, - 597, - 1227, - 598 - ], - "confidence": 0.987 - }, - { - "text": "ID", - "boundingBox": [ - 1287, - 572, - 1320, - 572, - 1320, - 597, - 1287, - 597 - ], - "confidence": 0.986 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - }, - { - "text": "34278587", - "boundingBox": [ - 105, - 679, - 230, - 679, - 230, - 705, - 105, - 705 - ], - "words": [ - { - "text": "34278587", - "boundingBox": [ - 105, - 680, - 229, - 680, - 230, - 705, - 106, - 705 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.998 - } - } - }, - { - "text": "6/18/2017", - "boundingBox": [ - 386, - 680, - 510, - 679, - 510, - 704, - 386, - 705 - ], - "words": [ - { - "text": "6/18/2017", - "boundingBox": [ - 387, - 680, - 510, - 680, - 510, - 705, - 387, - 705 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "6/24/2017", - "boundingBox": [ - 667, - 679, - 792, - 679, - 792, - 704, - 667, - 705 - ], - "words": [ - { - "text": "6/24/2017", - "boundingBox": [ - 668, - 679, - 792, - 679, - 792, - 705, - 667, - 705 - ], - "confidence": 0.982 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 0.999 - } - } - }, - { - "text": "$56,651.49 PT", - "boundingBox": [ - 1074, - 680, - 1279, - 679, - 1280, - 704, - 1074, - 706 - ], - "words": [ - { - "text": "$56,651.49", - "boundingBox": [ - 1075, - 680, - 1224, - 680, - 1225, - 705, - 1075, - 707 - ], - "confidence": 0.967 - }, - { - "text": "PT", - "boundingBox": [ - 1240, - 679, - 1279, - 679, - 1280, - 704, - 1241, - 705 - ], - "confidence": 0.983 - } - ], - "appearance": { - "style": { - "name": "other", - "confidence": 1 - } - } - } - ] - } - ], - "pageResults": [ - { - "page": 1, - "tables": [ - { - "rows": 3, - "columns": 6, - "cells": [ - { - "rowIndex": 0, - "columnIndex": 0, - "text": "Invoice Number", - "boundingBox": [ - 101, - 556, - 380, - 558, - 380, - 662, - 101, - 661 - ], - "elements": [ - "#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1" - ] - }, - { - "rowIndex": 0, - "columnIndex": 1, - "text": "Invoice Date", - "boundingBox": [ - 380, - 558, - 658, - 558, - 659, - 662, - 380, - 662 - ], - "elements": [ - "#/readResults/0/lines/9/words/0", - "#/readResults/0/lines/9/words/1" - ] - }, - { - "rowIndex": 0, - "columnIndex": 2, - "text": "Invoice Due Date", - "boundingBox": [ - 658, - 558, - 941, - 558, - 941, - 662, - 659, - 662 - ], - "elements": [ - "#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1", - "#/readResults/0/lines/10/words/2" - ] - }, - { - "rowIndex": 0, - "columnIndex": 3, - "columnSpan": 2, - "text": "Charges", - "boundingBox": [ - 941, - 558, - 1220, - 558, - 1220, - 662, - 941, - 662 - ], - "elements": [ - "#/readResults/0/lines/11/words/0" - ] - }, - { - "rowIndex": 0, - "columnIndex": 5, - "text": "VAT ID", - "boundingBox": [ - 1220, - 558, - 1499, - 556, - 1500, - 661, - 1220, - 662 - ], - "elements": [ - "#/readResults/0/lines/12/words/0", - "#/readResults/0/lines/12/words/1" - ] - }, - { - "rowIndex": 1, - "columnIndex": 0, - "rowSpan": 2, - "text": "34278587", - "boundingBox": [ - 101, - 661, - 380, - 662, - 380, - 771, - 101, - 771 - ], - "elements": [ - "#/readResults/0/lines/13/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 1, - "rowSpan": 2, - "text": "6/18/2017", - "boundingBox": [ - 380, - 662, - 659, - 662, - 661, - 771, - 380, - 771 - ], - "elements": [ - "#/readResults/0/lines/14/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 2, - "rowSpan": 2, - "text": "6/24/2017", - "boundingBox": [ - 659, - 662, - 941, - 662, - 941, - 771, - 661, - 771 - ], - "elements": [ - "#/readResults/0/lines/15/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 3, - "rowSpan": 2, - "columnSpan": 2, - "text": "$56,651.49", - "boundingBox": [ - 941, - 662, - 1220, - 662, - 1220, - 771, - 941, - 771 - ], - "elements": [ - "#/readResults/0/lines/16/words/0" - ] - }, - { - "rowIndex": 1, - "columnIndex": 5, - "rowSpan": 2, - "text": "PT", - "boundingBox": [ - 1220, - 662, - 1500, - 661, - 1500, - 769, - 1220, - 771 - ], - "elements": [ - "#/readResults/0/lines/16/words/1" - ] - } - ], - "boundingBox": [ - 100, - 556, - 1499, - 556, - 1498, - 771, - 99, - 771 - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:invoice", - "pageRange": [ - 1, - 1 - ], - "fields": { - "VendorName": { - "type": "string", - "valueString": "Contoso", - "text": "Contoso", - "boundingBox": [ - 106, - 232, - 288, - 234, - 288, - 274, - 105, - 274 - ], - "page": 1, - "confidence": 0.921, - "elements": [ - "#/readResults/0/lines/0/words/0" - ] - }, - "CustomerAddressRecipient": { - "type": "string", - "valueString": "Microsoft", - "text": "Microsoft", - "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 - ], - "page": 1, - "confidence": 0.993, - "elements": [ - "#/readResults/0/lines/2/words/2" - ] - }, - "VendorAddress": { - "type": "string", - "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", - "text": "1 Redmond way Suite 6000 Redmond, WA 99243", - "boundingBox": [ - 158, - 337, - 433, - 337, - 433, - 441, - 158, - 441 - ], - "page": 1, - "confidence": 0.907, - "elements": [ - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", - "#/readResults/0/lines/3/words/3", - "#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2", - "#/readResults/0/lines/7/words/0" - ] - }, - "CustomerAddress": { - "type": "string", - "valueString": "1020 Enterprise Way Sunnayvale, CA 87659", - "text": "1020 Enterprise Way Sunnayvale, CA 87659", - "boundingBox": [ - 1036.1, - 337.1, - 1333.2, - 338.1, - 1333, - 408.4, - 1035.9, - 407.5 - ], - "page": 1, - "confidence": 0.995, - "elements": [ - "#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2", - "#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", - "#/readResults/0/lines/6/words/2" - ] - }, - "InvoiceId": { - "type": "string", - "valueString": "34278587", - "text": "34278587", - "boundingBox": [ - 105, - 680, - 229, - 680, - 230, - 705, - 106, - 705 - ], - "page": 1, - "confidence": 0.768, - "elements": [ - "#/readResults/0/lines/13/words/0" - ] - }, - "InvoiceDate": { - "type": "date", - "valueDate": "2017-06-18", - "text": "6/18/2017", - "boundingBox": [ - 387, - 680, - 510, - 680, - 510, - 705, - 387, - 705 - ], - "page": 1, - "confidence": 0.89, - "elements": [ - "#/readResults/0/lines/14/words/0" - ] - }, - "DueDate": { - "type": "date", - "valueDate": "2017-06-24", - "text": "6/24/2017", - "boundingBox": [ - 668, - 679, - 792, - 679, - 792, - 705, - 667, - 705 - ], - "page": 1, - "confidence": 0.988, - "elements": [ - "#/readResults/0/lines/15/words/0" - ] - }, - "InvoiceTotal": { - "type": "number", - "valueNumber": 56651.49, - "text": "$56,651.49", - "boundingBox": [ - 1075, - 680, - 1224, - 680, - 1225, - 705, - 1075, - 707 - ], - "page": 1, - "confidence": 0.847, - "elements": [ - "#/readResults/0/lines/16/words/0" - ] - }, - "CustomerName": { - "type": "string", - "valueString": "Microsoft", - "text": "Microsoft", - "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 - ], - "page": 1, - "confidence": 0.993, - "elements": [ - "#/readResults/0/lines/2/words/2" - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "317579107" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale.json similarity index 86% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%%)Async.json rename to sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale.json index fc4dc0486092..4854f35abaea 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%%)Async.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale.json @@ -1,272 +1,272 @@ { "Entries": [ { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyze?includeTextDetails=true\u0026locale=", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyze?includeTextDetails=true\u0026locale=en-US", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "76742", "Content-Type": "image/tiff", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-9d29d1ae2f70bd4d9e2675f9765d5b65-1012a59e07939441-00", + "traceparent": "00-5a6ceec15a08854f823b5e600a313571-147cc6f65980b448-00", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "94e0a410ee2b3688e1c96a21e85ae6a1", + "x-ms-client-request-id": "b1c0d2e77479d47fdcf30b34487eaca9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "fd01ec73-e2b1-44c6-848e-e72398a060ac", + "apim-request-id": "8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "Content-Length": "0", - "Date": "Mon, 02 Nov 2020 21:38:51 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "Date": "Fri, 29 Jan 2021 00:11:33 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "43" + "x-envoy-upstream-service-time": "55" }, "ResponseBody": [] }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "2f80a4dc801018f569f68c7bcf7a6ba5", + "x-ms-client-request-id": "2e68bda297c251b479f60d87dbd23cd1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "68f2b5f9-f825-4b0e-a64d-b8cbbe450a45", + "apim-request-id": "780970c7-5a0c-48e4-8e1a-dc333e8bc496", "Content-Length": "109", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:52 GMT", + "Date": "Fri, 29 Jan 2021 00:11:34 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "15" }, "ResponseBody": { "status": "notStarted", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:34Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "618b9f8ab0d7cbf69eb9bde177900b49", + "x-ms-client-request-id": "5678f28bdbe24bc532a7002beab98dc3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "81fe26af-6216-4e8a-a67a-8e3ffb769549", + "apim-request-id": "a042e1af-3b86-43cd-a458-b30b1a37d85c", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:53 GMT", + "Date": "Fri, 29 Jan 2021 00:11:36 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:35Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "aa00ae60d2dc9083aec72b35610d6666", + "x-ms-client-request-id": "9ea6df308f9150381e6f378366f8f90a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "f23484f6-b9b5-4809-a02c-1b5a300c9e26", + "apim-request-id": "09856d37-6f41-45df-95e9-f9d957bb2443", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:54 GMT", + "Date": "Fri, 29 Jan 2021 00:11:37 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:35Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "4896c45d85ce2bc9aeb49157c213a0d8", + "x-ms-client-request-id": "55a939b75606c6c7f81cfb1a968866c0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2c6637a1-f134-4c36-8fa1-fc4aff525f62", + "apim-request-id": "a51f2a3c-c877-48fe-a6d6-8584785ec657", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:56 GMT", + "Date": "Fri, 29 Jan 2021 00:11:38 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "14" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:35Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "211a42ebc17ab8c91cfbb20f85c16a90", + "x-ms-client-request-id": "fb5749689d2bfb40b9283873a342e43a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "e5bc23c1-4194-4495-8e7a-a13188df97fc", + "apim-request-id": "d45b663b-eed9-4fd1-af2c-5f2221e1c314", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:57 GMT", + "Date": "Fri, 29 Jan 2021 00:11:39 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "11" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:35Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "b3845653c2fada7ae4d4fb27402bcd9a", + "x-ms-client-request-id": "b174f6ad3710d9bd18dfa675931db995", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "16dbb169-5dbe-4762-ab6d-3f5159f78092", + "apim-request-id": "4cef8471-007b-4435-85f0-58105f7f8e16", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:58 GMT", + "Date": "Fri, 29 Jan 2021 00:11:40 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "11" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:35Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "1e49522644f29becfbdd2bd3d3b9a6ec", + "x-ms-client-request-id": "1c1a7708fea019def9ae9bde1e5322b6", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "8a1164aa-f327-4101-a343-94fb513ef102", + "apim-request-id": "9e61fac9-d26c-4350-a3dd-f6b7bc2c4f96", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:38:59 GMT", + "Date": "Fri, 29 Jan 2021 00:11:41 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:38:52Z" + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:35Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/fd01ec73-e2b1-44c6-848e-e72398a060ac", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/8906ec2d-7c7e-4a9a-9b9a-c870282b50ff", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "6b03014aed8f28dec83f3ca5c5a177f0", + "x-ms-client-request-id": "9f6dc137b51331b08c7de24cf7ca679c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "58f0c47a-7c8c-4ff3-ae1b-87802a766b8e", - "Content-Length": "9869", + "apim-request-id": "ed9c75d3-d0c5-433b-9d77-d26995721bc7", + "Content-Length": "9867", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:39:00 GMT", + "Date": "Fri, 29 Jan 2021 00:11:42 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18" + "x-envoy-upstream-service-time": "21" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2020-11-02T21:38:52Z", - "lastUpdatedDateTime": "2020-11-02T21:39:00Z", + "createdDateTime": "2021-01-29T00:11:34Z", + "lastUpdatedDateTime": "2021-01-29T00:11:42Z", "analyzeResult": { "version": "2.1.0", "readResults": [ @@ -1336,24 +1336,29 @@ 1 ], "fields": { - "VendorName": { + "CustomerAddress": { "type": "string", - "valueString": "Contoso", - "text": "Contoso", + "valueString": "1020 Enterprise Way Sunnayvale, CA 87659", + "text": "1020 Enterprise Way Sunnayvale, CA 87659", "boundingBox": [ - 106, - 232, - 288, - 234, - 288, - 274, - 105, - 274 + 1036.1, + 337.1, + 1333.2, + 338.1, + 1333, + 408.4, + 1035.9, + 407.5 ], "page": 1, - "confidence": 0.921, + "confidence": 0.992, "elements": [ - "#/readResults/0/lines/0/words/0" + "#/readResults/0/lines/4/words/0", + "#/readResults/0/lines/4/words/1", + "#/readResults/0/lines/4/words/2", + "#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1", + "#/readResults/0/lines/6/words/2" ] }, "CustomerAddressRecipient": { @@ -1371,81 +1376,49 @@ 327 ], "page": 1, - "confidence": 0.993, + "confidence": 0.99, "elements": [ "#/readResults/0/lines/2/words/2" ] }, - "VendorAddress": { - "type": "string", - "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", - "text": "1 Redmond way Suite 6000 Redmond, WA 99243", - "boundingBox": [ - 158, - 337, - 433, - 337, - 433, - 441, - 158, - 441 - ], - "page": 1, - "confidence": 0.907, - "elements": [ - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", - "#/readResults/0/lines/3/words/3", - "#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2", - "#/readResults/0/lines/7/words/0" - ] - }, - "CustomerAddress": { + "CustomerName": { "type": "string", - "valueString": "1020 Enterprise Way Sunnayvale, CA 87659", - "text": "1020 Enterprise Way Sunnayvale, CA 87659", + "valueString": "Microsoft", + "text": "Microsoft", "boundingBox": [ - 1036.1, - 337.1, - 1333.2, - 338.1, - 1333, - 408.4, - 1035.9, - 407.5 + 1035, + 299, + 1164, + 300, + 1165, + 326, + 1036, + 327 ], "page": 1, - "confidence": 0.995, + "confidence": 0.99, "elements": [ - "#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2", - "#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", - "#/readResults/0/lines/6/words/2" + "#/readResults/0/lines/2/words/2" ] }, - "InvoiceId": { - "type": "string", - "valueString": "34278587", - "text": "34278587", + "DueDate": { + "type": "date", + "valueDate": "2017-06-24", + "text": "6/24/2017", "boundingBox": [ - 105, - 680, - 229, - 680, - 230, + 668, + 679, + 792, + 679, + 792, 705, - 106, + 667, 705 ], "page": 1, - "confidence": 0.768, + "confidence": 0.989, "elements": [ - "#/readResults/0/lines/13/words/0" + "#/readResults/0/lines/15/words/0" ] }, "InvoiceDate": { @@ -1463,29 +1436,29 @@ 705 ], "page": 1, - "confidence": 0.89, + "confidence": 0.926, "elements": [ "#/readResults/0/lines/14/words/0" ] }, - "DueDate": { - "type": "date", - "valueDate": "2017-06-24", - "text": "6/24/2017", + "InvoiceId": { + "type": "string", + "valueString": "34278587", + "text": "34278587", "boundingBox": [ - 668, - 679, - 792, - 679, - 792, + 105, + 680, + 229, + 680, + 230, 705, - 667, + 106, 705 ], "page": 1, - "confidence": 0.988, + "confidence": 0.795, "elements": [ - "#/readResults/0/lines/15/words/0" + "#/readResults/0/lines/13/words/0" ] }, "InvoiceTotal": { @@ -1503,29 +1476,56 @@ 707 ], "page": 1, - "confidence": 0.847, + "confidence": 0.505, "elements": [ "#/readResults/0/lines/16/words/0" ] }, - "CustomerName": { + "VendorAddress": { "type": "string", - "valueString": "Microsoft", - "text": "Microsoft", + "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", + "text": "1 Redmond way Suite 6000 Redmond, WA 99243", "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 + 158, + 337, + 433, + 337, + 433, + 441, + 158, + 441 ], "page": 1, - "confidence": 0.993, + "confidence": 0.946, "elements": [ - "#/readResults/0/lines/2/words/2" + "#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1", + "#/readResults/0/lines/3/words/2", + "#/readResults/0/lines/3/words/3", + "#/readResults/0/lines/5/words/0", + "#/readResults/0/lines/5/words/1", + "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/7/words/0" + ] + }, + "VendorName": { + "type": "string", + "valueString": "Contoso", + "text": "Contoso", + "boundingBox": [ + 106, + 232, + 288, + 234, + 288, + 274, + 105, + 274 + ], + "page": 1, + "confidence": 0.87, + "elements": [ + "#/readResults/0/lines/0/words/0" ] } } @@ -1537,7 +1537,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "1128502398" + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "1757854477" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocaleAsync.json similarity index 86% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%%).json rename to sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocaleAsync.json index dc89a42b8172..1118b599503d 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocale(%%).json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeInvoicesWithSupportedLocaleAsync.json @@ -1,242 +1,212 @@ { "Entries": [ { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyze?includeTextDetails=true\u0026locale=", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyze?includeTextDetails=true\u0026locale=en-US", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "76742", "Content-Type": "image/tiff", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-d83ac52d436f7342b92beda4ba46d667-87617faaaa1b674b-00", + "traceparent": "00-0bca4de437e8c84c9d2b3fe8b3ba3ee0-316a31be3e805a45-00", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "d09b2a9e700dc0dbfd984090eae7f123", + "x-ms-client-request-id": "4d714fa88f4734304863e4add8fa2968", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "018f73b7-e193-40f3-b616-4eaa8a02d33d", + "apim-request-id": "edae501d-5c43-41fd-8016-ad94a1284452", "Content-Length": "0", - "Date": "Mon, 02 Nov 2020 21:37:50 GMT", - "Operation-Location": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "Date": "Fri, 29 Jan 2021 00:11:11 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "86" + "x-envoy-upstream-service-time": "50" }, "ResponseBody": [] }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "a0fa73b1a5f8bdc1166af26cc899e030", + "x-ms-client-request-id": "dac731275bd9c4ff4d174aa5d013c352", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d1703bc3-cc9a-4118-b8dd-9e9f1e302f28", + "apim-request-id": "c74d78cd-966f-4072-be3d-c490aeb1312a", "Content-Length": "109", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:50 GMT", + "Date": "Fri, 29 Jan 2021 00:11:11 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { "status": "notStarted", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:51Z" + "createdDateTime": "2021-01-29T00:11:11Z", + "lastUpdatedDateTime": "2021-01-29T00:11:11Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "88834f7d9bde4d8a7a69f5f69d2df1d1", + "x-ms-client-request-id": "43a248413afbab9a784c5b32adad8cd3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "76a21030-069c-4c32-b57e-b965b1d3c5e5", + "apim-request-id": "fa2cea82-b40f-4d61-9d0d-b37c2f94566f", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:51 GMT", + "Date": "Fri, 29 Jan 2021 00:11:12 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "14" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:51Z" + "createdDateTime": "2021-01-29T00:11:11Z", + "lastUpdatedDateTime": "2021-01-29T00:11:12Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "ccab10dcddcaf96a69deb9a37d6ef764", + "x-ms-client-request-id": "808a05c66fbc4de34fadff2f458a6435", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "a2ec3faf-8822-4deb-9a43-650ec2260ce2", + "apim-request-id": "2815a303-41a8-444e-a27b-a71d8a4f2e20", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:52 GMT", + "Date": "Fri, 29 Jan 2021 00:11:13 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "14" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:51Z" + "createdDateTime": "2021-01-29T00:11:11Z", + "lastUpdatedDateTime": "2021-01-29T00:11:12Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "9b1310b869631645e8ac268eafcb1fe8", + "x-ms-client-request-id": "906c929fe658ec6d971c618d00cd17a0", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "06f36ecf-d8b3-4c20-9f19-50d634760b34", + "apim-request-id": "3f4f0282-d713-4fbd-b3b5-d9c99630f672", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:54 GMT", + "Date": "Fri, 29 Jan 2021 00:11:15 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" + "x-envoy-upstream-service-time": "15" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:51Z" + "createdDateTime": "2021-01-29T00:11:11Z", + "lastUpdatedDateTime": "2021-01-29T00:11:12Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "b890207813ed9f65e48a1effe1e7cf0b", + "x-ms-client-request-id": "cadf768b4388d1966454f34e3a6a66ed", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "d94e89c6-1031-44a2-978e-655fc4fcb17e", + "apim-request-id": "aa58134f-9c35-49a8-8ccf-a548714cfb3c", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:55 GMT", + "Date": "Fri, 29 Jan 2021 00:11:16 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "8" + "x-envoy-upstream-service-time": "12" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:51Z" + "createdDateTime": "2021-01-29T00:11:11Z", + "lastUpdatedDateTime": "2021-01-29T00:11:12Z" } }, { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/edae501d-5c43-41fd-8016-ad94a1284452", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "8d3d9172561a726dcb95e31db7dc499e", + "x-ms-client-request-id": "1a9225e7fc41df7b989de99f0e564d82", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2534d79d-885d-4322-a514-cf36d5bee3f9", - "Content-Length": "106", + "apim-request-id": "2112e655-91db-458a-9871-39a80116ddf4", + "Content-Length": "9867", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:56 GMT", + "Date": "Fri, 29 Jan 2021 00:11:17 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "9" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:51Z" - } - }, - { - "RequestUri": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/invoice/analyzeResults/018f73b7-e193-40f3-b616-4eaa8a02d33d", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201102.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "5c2ad1bf3fdea476aa73b6d94b453400", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "09670b8b-69b1-495e-a630-335085335f93", - "Content-Length": "9869", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 02 Nov 2020 21:37:57 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "16" + "x-envoy-upstream-service-time": "58" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2020-11-02T21:37:51Z", - "lastUpdatedDateTime": "2020-11-02T21:37:57Z", + "createdDateTime": "2021-01-29T00:11:11Z", + "lastUpdatedDateTime": "2021-01-29T00:11:17Z", "analyzeResult": { "version": "2.1.0", "readResults": [ @@ -1306,24 +1276,29 @@ 1 ], "fields": { - "VendorName": { + "CustomerAddress": { "type": "string", - "valueString": "Contoso", - "text": "Contoso", + "valueString": "1020 Enterprise Way Sunnayvale, CA 87659", + "text": "1020 Enterprise Way Sunnayvale, CA 87659", "boundingBox": [ - 106, - 232, - 288, - 234, - 288, - 274, - 105, - 274 + 1036.1, + 337.1, + 1333.2, + 338.1, + 1333, + 408.4, + 1035.9, + 407.5 ], "page": 1, - "confidence": 0.921, + "confidence": 0.992, "elements": [ - "#/readResults/0/lines/0/words/0" + "#/readResults/0/lines/4/words/0", + "#/readResults/0/lines/4/words/1", + "#/readResults/0/lines/4/words/2", + "#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1", + "#/readResults/0/lines/6/words/2" ] }, "CustomerAddressRecipient": { @@ -1341,81 +1316,49 @@ 327 ], "page": 1, - "confidence": 0.993, + "confidence": 0.99, "elements": [ "#/readResults/0/lines/2/words/2" ] }, - "VendorAddress": { - "type": "string", - "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", - "text": "1 Redmond way Suite 6000 Redmond, WA 99243", - "boundingBox": [ - 158, - 337, - 433, - 337, - 433, - 441, - 158, - 441 - ], - "page": 1, - "confidence": 0.907, - "elements": [ - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", - "#/readResults/0/lines/3/words/3", - "#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2", - "#/readResults/0/lines/7/words/0" - ] - }, - "CustomerAddress": { + "CustomerName": { "type": "string", - "valueString": "1020 Enterprise Way Sunnayvale, CA 87659", - "text": "1020 Enterprise Way Sunnayvale, CA 87659", + "valueString": "Microsoft", + "text": "Microsoft", "boundingBox": [ - 1036.1, - 337.1, - 1333.2, - 338.1, - 1333, - 408.4, - 1035.9, - 407.5 + 1035, + 299, + 1164, + 300, + 1165, + 326, + 1036, + 327 ], "page": 1, - "confidence": 0.995, + "confidence": 0.99, "elements": [ - "#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2", - "#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", - "#/readResults/0/lines/6/words/2" + "#/readResults/0/lines/2/words/2" ] }, - "InvoiceId": { - "type": "string", - "valueString": "34278587", - "text": "34278587", + "DueDate": { + "type": "date", + "valueDate": "2017-06-24", + "text": "6/24/2017", "boundingBox": [ - 105, - 680, - 229, - 680, - 230, + 668, + 679, + 792, + 679, + 792, 705, - 106, + 667, 705 ], "page": 1, - "confidence": 0.768, + "confidence": 0.989, "elements": [ - "#/readResults/0/lines/13/words/0" + "#/readResults/0/lines/15/words/0" ] }, "InvoiceDate": { @@ -1433,29 +1376,29 @@ 705 ], "page": 1, - "confidence": 0.89, + "confidence": 0.926, "elements": [ "#/readResults/0/lines/14/words/0" ] }, - "DueDate": { - "type": "date", - "valueDate": "2017-06-24", - "text": "6/24/2017", + "InvoiceId": { + "type": "string", + "valueString": "34278587", + "text": "34278587", "boundingBox": [ - 668, - 679, - 792, - 679, - 792, + 105, + 680, + 229, + 680, + 230, 705, - 667, + 106, 705 ], "page": 1, - "confidence": 0.988, + "confidence": 0.795, "elements": [ - "#/readResults/0/lines/15/words/0" + "#/readResults/0/lines/13/words/0" ] }, "InvoiceTotal": { @@ -1473,29 +1416,56 @@ 707 ], "page": 1, - "confidence": 0.847, + "confidence": 0.505, "elements": [ "#/readResults/0/lines/16/words/0" ] }, - "CustomerName": { + "VendorAddress": { "type": "string", - "valueString": "Microsoft", - "text": "Microsoft", + "valueString": "1 Redmond way Suite 6000 Redmond, WA 99243", + "text": "1 Redmond way Suite 6000 Redmond, WA 99243", "boundingBox": [ - 1035, - 299, - 1164, - 300, - 1165, - 326, - 1036, - 327 + 158, + 337, + 433, + 337, + 433, + 441, + 158, + 441 ], "page": 1, - "confidence": 0.993, + "confidence": 0.946, "elements": [ - "#/readResults/0/lines/2/words/2" + "#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1", + "#/readResults/0/lines/3/words/2", + "#/readResults/0/lines/3/words/3", + "#/readResults/0/lines/5/words/0", + "#/readResults/0/lines/5/words/1", + "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/7/words/0" + ] + }, + "VendorName": { + "type": "string", + "valueString": "Contoso", + "text": "Contoso", + "boundingBox": [ + 106, + 232, + 288, + 234, + 288, + 274, + 105, + 274 + ], + "page": 1, + "confidence": 0.87, + "elements": [ + "#/readResults/0/lines/0/words/0" ] } } @@ -1507,7 +1477,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://camaiaor-formrec-westcentralus.cognitiveservices.azure.com/", - "RandomSeed": "1020250434" + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "875552751" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%).json deleted file mode 100644 index b3714518bcbe..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%).json +++ /dev/null @@ -1,1315 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true\u0026locale=", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "279674", - "Content-Type": "image/jpeg", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f06f107accde634ba7aea724be725674-310524fc4575c543-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "4df6fc9bacf2a53f024b7d45f36f4bff", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "cd27edfc-9bf7-46c5-a58c-98c9aaf2182d", - "Content-Length": "0", - "Date": "Tue, 17 Nov 2020 00:33:04 GMT", - "Operation-Location": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/cd27edfc-9bf7-46c5-a58c-98c9aaf2182d", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "221" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/cd27edfc-9bf7-46c5-a58c-98c9aaf2182d", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "a84ca2803020c0776420dd88f18c7183", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d6fadf0a-890c-4707-9ac2-17f243dd9364", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:04 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "15" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-17T00:33:05Z", - "lastUpdatedDateTime": "2020-11-17T00:33:05Z" - } - }, - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/cd27edfc-9bf7-46c5-a58c-98c9aaf2182d", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "629b9b546fb65de94918604a6f92091e", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "d4f39424-f26b-496f-a09a-a10d2e83cbd1", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:06 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-17T00:33:05Z", - "lastUpdatedDateTime": "2020-11-17T00:33:05Z" - } - }, - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/cd27edfc-9bf7-46c5-a58c-98c9aaf2182d", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "3afa947a65856b708436e9d2cfb6b476", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "ffd11089-6d95-4975-a7e5-6a1823801d93", - "Content-Length": "8808", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:07 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "19" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-11-17T00:33:05Z", - "lastUpdatedDateTime": "2020-11-17T00:33:06Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0.2511, - "width": 1688, - "height": 3000, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 619, - 291, - 1051, - 284, - 1053, - 384, - 620, - 396 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 623, - 292, - 1051, - 284, - 1052, - 383, - 624, - 397 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "Contoso", - "boundingBox": [ - 322, - 591, - 501, - 601, - 498, - 654, - 319, - 644 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 328, - 591, - 500, - 602, - 498, - 654, - 325, - 644 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "123 Main Street", - "boundingBox": [ - 319, - 690, - 655, - 695, - 654, - 757, - 318, - 752 - ], - "words": [ - { - "text": "123", - "boundingBox": [ - 323, - 690, - 387, - 692, - 383, - 754, - 319, - 753 - ], - "confidence": 0.958 - }, - { - "text": "Main", - "boundingBox": [ - 399, - 692, - 502, - 694, - 498, - 756, - 395, - 754 - ], - "confidence": 0.958 - }, - { - "text": "Street", - "boundingBox": [ - 514, - 695, - 656, - 698, - 653, - 758, - 510, - 756 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "Redmond, WA 98052", - "boundingBox": [ - 317, - 795, - 751, - 795, - 752, - 859, - 317, - 860 - ], - "words": [ - { - "text": "Redmond,", - "boundingBox": [ - 321, - 795, - 523, - 795, - 520, - 861, - 317, - 858 - ], - "confidence": 0.573 - }, - { - "text": "WA", - "boundingBox": [ - 535, - 795, - 597, - 795, - 595, - 861, - 532, - 861 - ], - "confidence": 0.958 - }, - { - "text": "98052", - "boundingBox": [ - 610, - 795, - 749, - 796, - 747, - 858, - 607, - 861 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 618, - 1011, - 616, - 1068, - 305, - 1062 - ], - "words": [ - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "6/10/2019 13:59", - "boundingBox": [ - 303, - 1223, - 630, - 1225, - 629, - 1289, - 302, - 1286 - ], - "words": [ - { - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "confidence": 0.762 - }, - { - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "confidence": 0.943 - } - ] - }, - { - "text": "Sales Associate: Paul", - "boundingBox": [ - 294, - 1335, - 768, - 1335, - 768, - 1401, - 294, - 1399 - ], - "words": [ - { - "text": "Sales", - "boundingBox": [ - 302, - 1336, - 418, - 1335, - 416, - 1399, - 301, - 1399 - ], - "confidence": 0.959 - }, - { - "text": "Associate:", - "boundingBox": [ - 430, - 1335, - 649, - 1336, - 646, - 1401, - 428, - 1399 - ], - "confidence": 0.943 - }, - { - "text": "Paul", - "boundingBox": [ - 661, - 1336, - 767, - 1336, - 764, - 1402, - 659, - 1401 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "1 Surface Pro 6", - "boundingBox": [ - 336, - 1560, - 679, - 1561, - 678, - 1625, - 336, - 1623 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 337, - 1560, - 360, - 1561, - 360, - 1625, - 337, - 1625 - ], - "confidence": 0.799 - }, - { - "text": "Surface", - "boundingBox": [ - 373, - 1561, - 542, - 1562, - 542, - 1624, - 373, - 1625 - ], - "confidence": 0.958 - }, - { - "text": "Pro", - "boundingBox": [ - 555, - 1562, - 631, - 1563, - 631, - 1625, - 555, - 1624 - ], - "confidence": 0.909 - }, - { - "text": "6", - "boundingBox": [ - 644, - 1563, - 676, - 1563, - 675, - 1625, - 643, - 1625 - ], - "confidence": 0.762 - } - ] - }, - { - "text": "256GB / Intel Core i5 /", - "boundingBox": [ - 372, - 1669, - 846, - 1669, - 846, - 1743, - 372, - 1742 - ], - "words": [ - { - "text": "256GB", - "boundingBox": [ - 375, - 1670, - 506, - 1671, - 503, - 1740, - 373, - 1740 - ], - "confidence": 0.95 - }, - { - "text": "/", - "boundingBox": [ - 520, - 1671, - 533, - 1671, - 531, - 1740, - 517, - 1740 - ], - "confidence": 0.876 - }, - { - "text": "Intel", - "boundingBox": [ - 547, - 1671, - 648, - 1671, - 646, - 1741, - 545, - 1740 - ], - "confidence": 0.939 - }, - { - "text": "Core", - "boundingBox": [ - 662, - 1671, - 758, - 1670, - 756, - 1743, - 660, - 1741 - ], - "confidence": 0.942 - }, - { - "text": "i5", - "boundingBox": [ - 772, - 1670, - 808, - 1670, - 807, - 1744, - 770, - 1743 - ], - "confidence": 0.82 - }, - { - "text": "/", - "boundingBox": [ - 822, - 1670, - 847, - 1670, - 846, - 1744, - 820, - 1744 - ], - "confidence": 0.84 - } - ] - }, - { - "text": "8GB RAM (Black)", - "boundingBox": [ - 370, - 1783, - 732, - 1785, - 731, - 1853, - 370, - 1850 - ], - "words": [ - { - "text": "8GB", - "boundingBox": [ - 374, - 1783, - 451, - 1783, - 448, - 1850, - 370, - 1850 - ], - "confidence": 0.799 - }, - { - "text": "RAM", - "boundingBox": [ - 465, - 1783, - 561, - 1784, - 559, - 1851, - 461, - 1850 - ], - "confidence": 0.958 - }, - { - "text": "(Black)", - "boundingBox": [ - 575, - 1784, - 731, - 1785, - 729, - 1854, - 572, - 1852 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 999.00", - "boundingBox": [ - 937, - 1785, - 1139, - 1790, - 1137, - 1862, - 936, - 1859 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 939, - 1785, - 959, - 1785, - 958, - 1859, - 938, - 1859 - ], - "confidence": 0.895 - }, - { - "text": "999.00", - "boundingBox": [ - 974, - 1786, - 1134, - 1789, - 1133, - 1863, - 973, - 1860 - ], - "confidence": 0.873 - } - ] - }, - { - "text": "1 SurfacePen", - "boundingBox": [ - 320, - 2019, - 627, - 2013, - 629, - 2076, - 321, - 2083 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "confidence": 0.819 - }, - { - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "confidence": 0.938 - } - ] - }, - { - "text": "$ 99.99", - "boundingBox": [ - 967, - 2028, - 1128, - 2029, - 1127, - 2091, - 967, - 2091 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 969, - 2028, - 994, - 2028, - 994, - 2091, - 969, - 2091 - ], - "confidence": 0.887 - }, - { - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "confidence": 0.912 - } - ] - }, - { - "text": "Sub-Total", - "boundingBox": [ - 474, - 2242, - 697, - 2244, - 697, - 2310, - 473, - 2308 - ], - "words": [ - { - "text": "Sub-Total", - "boundingBox": [ - 476, - 2242, - 695, - 2245, - 694, - 2310, - 474, - 2308 - ], - "confidence": 0.917 - } - ] - }, - { - "text": "$ 1098.99", - "boundingBox": [ - 922, - 2259, - 1136, - 2253, - 1138, - 2318, - 924, - 2325 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 924, - 2261, - 950, - 2260, - 954, - 2326, - 928, - 2326 - ], - "confidence": 0.881 - }, - { - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "confidence": 0.941 - } - ] - }, - { - "text": "Tax", - "boundingBox": [ - 570, - 2355, - 655, - 2357, - 654, - 2415, - 568, - 2413 - ], - "words": [ - { - "text": "Tax", - "boundingBox": [ - 571, - 2355, - 654, - 2357, - 653, - 2415, - 570, - 2413 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 104.40", - "boundingBox": [ - 941, - 2368, - 1134, - 2364, - 1137, - 2433, - 942, - 2438 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 943, - 2368, - 966, - 2367, - 968, - 2437, - 944, - 2438 - ], - "confidence": 0.892 - }, - { - "text": "104.40", - "boundingBox": [ - 980, - 2367, - 1132, - 2364, - 1133, - 2434, - 982, - 2437 - ], - "confidence": 0.957 - } - ] - }, - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 672, - 2584, - 675, - 2652, - 554, - 2659 - ], - "words": [ - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 668, - 2584, - 672, - 2652, - 554, - 2659 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "$ 1203.39", - "boundingBox": [ - 918, - 2589, - 1123, - 2611, - 1116, - 2677, - 912, - 2656 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 918, - 2590, - 942, - 2592, - 936, - 2659, - 912, - 2657 - ], - "confidence": 0.886 - }, - { - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "confidence": 0.951 - } - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:receipt", - "pageRange": [ - 1, - 1 - ], - "fields": { - "ReceiptType": { - "type": "string", - "valueString": "Itemized", - "confidence": 0.663 - }, - "MerchantName": { - "type": "string", - "valueString": "Contoso Contoso", - "text": "Contoso Contoso", - "boundingBox": [ - 349.3, - 241.3, - 1058, - 284.4, - 1033.5, - 687.1, - 324.8, - 644 - ], - "page": 1, - "confidence": 0.516, - "elements": [ - "#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/1/words/0" - ] - }, - "MerchantAddress": { - "type": "string", - "valueString": "123 Main Street Redmond, WA 98052", - "text": "123 Main Street Redmond, WA 98052", - "boundingBox": [ - 319.9, - 689.9, - 750.7, - 697.5, - 747.8, - 865.6, - 317, - 858 - ], - "page": 1, - "confidence": 0.987, - "elements": [ - "#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1", - "#/readResults/0/lines/2/words/2", - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2" - ] - }, - "MerchantPhoneNumber": { - "type": "phoneNumber", - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "page": 1, - "confidence": 0.99, - "elements": [ - "#/readResults/0/lines/4/words/0" - ] - }, - "TransactionDate": { - "type": "date", - "valueDate": "2019-06-10", - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "page": 1, - "confidence": 0.986, - "elements": [ - "#/readResults/0/lines/5/words/0" - ] - }, - "TransactionTime": { - "type": "time", - "valueTime": "13:59:00", - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "page": 1, - "confidence": 0.97, - "elements": [ - "#/readResults/0/lines/5/words/1" - ] - }, - "Items": { - "type": "array", - "valueArray": [ - { - "type": "object", - "valueObject": { - "Name": { - "type": "string", - "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", - "boundingBox": [ - 370.7, - 1781.5, - 731, - 1785, - 730.3, - 1854, - 370, - 1850.6 - ], - "page": 1, - "confidence": 0.916, - "elements": [ - "#/readResults/0/lines/9/words/0", - "#/readResults/0/lines/9/words/1", - "#/readResults/0/lines/9/words/2" - ] - }, - "TotalPrice": { - "type": "number", - "valueNumber": 999, - "text": "$999.00", - "boundingBox": [ - 939, - 1784.6, - 1134.4, - 1788.3, - 1133, - 1863, - 937.6, - 1859.3 - ], - "page": 1, - "confidence": 0.559, - "elements": [ - "#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1" - ] - } - } - }, - { - "type": "object", - "valueObject": { - "Quantity": { - "type": "number", - "valueNumber": 1, - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "page": 1, - "confidence": 0.858, - "elements": [ - "#/readResults/0/lines/11/words/0" - ] - }, - "Name": { - "type": "string", - "valueString": "SurfacePen", - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "page": 1, - "confidence": 0.858, - "elements": [ - "#/readResults/0/lines/11/words/1" - ] - }, - "TotalPrice": { - "type": "number", - "valueNumber": 99.99, - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "page": 1, - "confidence": 0.386, - "elements": [ - "#/readResults/0/lines/12/words/1" - ] - } - } - } - ] - }, - "Subtotal": { - "type": "number", - "valueNumber": 1098.99, - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "page": 1, - "confidence": 0.965, - "elements": [ - "#/readResults/0/lines/14/words/1" - ] - }, - "Tax": { - "type": "number", - "valueNumber": 104.4, - "text": "$104.40", - "boundingBox": [ - 942.6, - 2367.5, - 1132, - 2363.7, - 1133.4, - 2434.2, - 944, - 2438 - ], - "page": 1, - "confidence": 0.714, - "elements": [ - "#/readResults/0/lines/16/words/0", - "#/readResults/0/lines/16/words/1" - ] - }, - "Total": { - "type": "number", - "valueNumber": 1203.39, - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "page": 1, - "confidence": 0.774, - "elements": [ - "#/readResults/0/lines/18/words/1" - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-centraluseuap.cognitiveservices.azure.com/", - "RandomSeed": "316388971" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%)Async.json deleted file mode 100644 index c9b779b6dcab..000000000000 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%)Async.json +++ /dev/null @@ -1,1315 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true\u0026locale=en-US", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Content-Length": "279674", - "Content-Type": "image/jpeg", - "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-931beb19fe2f5742b98258a4c6534dd8-1b7b0915af3e6642-00", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "75af3e2abc37deef2b33dc25f0383d5c", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "apim-request-id": "d3c52247-2c6b-4bb6-8e19-e7e2073e0cec", - "Content-Length": "0", - "Date": "Tue, 17 Nov 2020 00:34:16 GMT", - "Operation-Location": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/d3c52247-2c6b-4bb6-8e19-e7e2073e0cec", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "232" - }, - "ResponseBody": [] - }, - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/d3c52247-2c6b-4bb6-8e19-e7e2073e0cec", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "77f3e00d07648dba428d95aa622958fa", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "beb05e20-a3eb-454c-8b99-fc59c2a14096", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:34:16 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-17T00:34:17Z", - "lastUpdatedDateTime": "2020-11-17T00:34:17Z" - } - }, - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/d3c52247-2c6b-4bb6-8e19-e7e2073e0cec", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "4cfd66ccfe623bdd2414dcc55c6b0f23", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0c9068ac-8c2b-4423-bd0c-8ce42c32aae8", - "Content-Length": "106", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:34:17 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" - }, - "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-17T00:34:17Z", - "lastUpdatedDateTime": "2020-11-17T00:34:17Z" - } - }, - { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/d3c52247-2c6b-4bb6-8e19-e7e2073e0cec", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Ocp-Apim-Subscription-Key": "Sanitized", - "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" - ], - "x-ms-client-request-id": "749eb7dd88b92233842132a927447c02", - "x-ms-return-client-request-id": "true" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "apim-request-id": "0ad42697-5eea-4366-931d-1a763cc23cc6", - "Content-Length": "8808", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:34:18 GMT", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", - "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "18" - }, - "ResponseBody": { - "status": "succeeded", - "createdDateTime": "2020-11-17T00:34:17Z", - "lastUpdatedDateTime": "2020-11-17T00:34:18Z", - "analyzeResult": { - "version": "2.1.0", - "readResults": [ - { - "page": 1, - "angle": 0.2511, - "width": 1688, - "height": 3000, - "unit": "pixel", - "lines": [ - { - "text": "Contoso", - "boundingBox": [ - 619, - 291, - 1051, - 284, - 1053, - 384, - 620, - 396 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 623, - 292, - 1051, - 284, - 1052, - 383, - 624, - 397 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "Contoso", - "boundingBox": [ - 322, - 591, - 501, - 601, - 498, - 654, - 319, - 644 - ], - "words": [ - { - "text": "Contoso", - "boundingBox": [ - 328, - 591, - 500, - 602, - 498, - 654, - 325, - 644 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "123 Main Street", - "boundingBox": [ - 319, - 690, - 655, - 695, - 654, - 757, - 318, - 752 - ], - "words": [ - { - "text": "123", - "boundingBox": [ - 323, - 690, - 387, - 692, - 383, - 754, - 319, - 753 - ], - "confidence": 0.958 - }, - { - "text": "Main", - "boundingBox": [ - 399, - 692, - 502, - 694, - 498, - 756, - 395, - 754 - ], - "confidence": 0.958 - }, - { - "text": "Street", - "boundingBox": [ - 514, - 695, - 656, - 698, - 653, - 758, - 510, - 756 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "Redmond, WA 98052", - "boundingBox": [ - 317, - 795, - 751, - 795, - 752, - 859, - 317, - 860 - ], - "words": [ - { - "text": "Redmond,", - "boundingBox": [ - 321, - 795, - 523, - 795, - 520, - 861, - 317, - 858 - ], - "confidence": 0.573 - }, - { - "text": "WA", - "boundingBox": [ - 535, - 795, - 597, - 795, - 595, - 861, - 532, - 861 - ], - "confidence": 0.958 - }, - { - "text": "98052", - "boundingBox": [ - 610, - 795, - 749, - 796, - 747, - 858, - 607, - 861 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 618, - 1011, - 616, - 1068, - 305, - 1062 - ], - "words": [ - { - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "confidence": 0.937 - } - ] - }, - { - "text": "6/10/2019 13:59", - "boundingBox": [ - 303, - 1223, - 630, - 1225, - 629, - 1289, - 302, - 1286 - ], - "words": [ - { - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "confidence": 0.762 - }, - { - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "confidence": 0.943 - } - ] - }, - { - "text": "Sales Associate: Paul", - "boundingBox": [ - 294, - 1335, - 768, - 1335, - 768, - 1401, - 294, - 1399 - ], - "words": [ - { - "text": "Sales", - "boundingBox": [ - 302, - 1336, - 418, - 1335, - 416, - 1399, - 301, - 1399 - ], - "confidence": 0.959 - }, - { - "text": "Associate:", - "boundingBox": [ - 430, - 1335, - 649, - 1336, - 646, - 1401, - 428, - 1399 - ], - "confidence": 0.943 - }, - { - "text": "Paul", - "boundingBox": [ - 661, - 1336, - 767, - 1336, - 764, - 1402, - 659, - 1401 - ], - "confidence": 0.959 - } - ] - }, - { - "text": "1 Surface Pro 6", - "boundingBox": [ - 336, - 1560, - 679, - 1561, - 678, - 1625, - 336, - 1623 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 337, - 1560, - 360, - 1561, - 360, - 1625, - 337, - 1625 - ], - "confidence": 0.799 - }, - { - "text": "Surface", - "boundingBox": [ - 373, - 1561, - 542, - 1562, - 542, - 1624, - 373, - 1625 - ], - "confidence": 0.958 - }, - { - "text": "Pro", - "boundingBox": [ - 555, - 1562, - 631, - 1563, - 631, - 1625, - 555, - 1624 - ], - "confidence": 0.909 - }, - { - "text": "6", - "boundingBox": [ - 644, - 1563, - 676, - 1563, - 675, - 1625, - 643, - 1625 - ], - "confidence": 0.762 - } - ] - }, - { - "text": "256GB / Intel Core i5 /", - "boundingBox": [ - 372, - 1669, - 846, - 1669, - 846, - 1743, - 372, - 1742 - ], - "words": [ - { - "text": "256GB", - "boundingBox": [ - 375, - 1670, - 506, - 1671, - 503, - 1740, - 373, - 1740 - ], - "confidence": 0.95 - }, - { - "text": "/", - "boundingBox": [ - 520, - 1671, - 533, - 1671, - 531, - 1740, - 517, - 1740 - ], - "confidence": 0.876 - }, - { - "text": "Intel", - "boundingBox": [ - 547, - 1671, - 648, - 1671, - 646, - 1741, - 545, - 1740 - ], - "confidence": 0.939 - }, - { - "text": "Core", - "boundingBox": [ - 662, - 1671, - 758, - 1670, - 756, - 1743, - 660, - 1741 - ], - "confidence": 0.942 - }, - { - "text": "i5", - "boundingBox": [ - 772, - 1670, - 808, - 1670, - 807, - 1744, - 770, - 1743 - ], - "confidence": 0.82 - }, - { - "text": "/", - "boundingBox": [ - 822, - 1670, - 847, - 1670, - 846, - 1744, - 820, - 1744 - ], - "confidence": 0.84 - } - ] - }, - { - "text": "8GB RAM (Black)", - "boundingBox": [ - 370, - 1783, - 732, - 1785, - 731, - 1853, - 370, - 1850 - ], - "words": [ - { - "text": "8GB", - "boundingBox": [ - 374, - 1783, - 451, - 1783, - 448, - 1850, - 370, - 1850 - ], - "confidence": 0.799 - }, - { - "text": "RAM", - "boundingBox": [ - 465, - 1783, - 561, - 1784, - 559, - 1851, - 461, - 1850 - ], - "confidence": 0.958 - }, - { - "text": "(Black)", - "boundingBox": [ - 575, - 1784, - 731, - 1785, - 729, - 1854, - 572, - 1852 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 999.00", - "boundingBox": [ - 937, - 1785, - 1139, - 1790, - 1137, - 1862, - 936, - 1859 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 939, - 1785, - 959, - 1785, - 958, - 1859, - 938, - 1859 - ], - "confidence": 0.895 - }, - { - "text": "999.00", - "boundingBox": [ - 974, - 1786, - 1134, - 1789, - 1133, - 1863, - 973, - 1860 - ], - "confidence": 0.873 - } - ] - }, - { - "text": "1 SurfacePen", - "boundingBox": [ - 320, - 2019, - 627, - 2013, - 629, - 2076, - 321, - 2083 - ], - "words": [ - { - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "confidence": 0.819 - }, - { - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "confidence": 0.938 - } - ] - }, - { - "text": "$ 99.99", - "boundingBox": [ - 967, - 2028, - 1128, - 2029, - 1127, - 2091, - 967, - 2091 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 969, - 2028, - 994, - 2028, - 994, - 2091, - 969, - 2091 - ], - "confidence": 0.887 - }, - { - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "confidence": 0.912 - } - ] - }, - { - "text": "Sub-Total", - "boundingBox": [ - 474, - 2242, - 697, - 2244, - 697, - 2310, - 473, - 2308 - ], - "words": [ - { - "text": "Sub-Total", - "boundingBox": [ - 476, - 2242, - 695, - 2245, - 694, - 2310, - 474, - 2308 - ], - "confidence": 0.917 - } - ] - }, - { - "text": "$ 1098.99", - "boundingBox": [ - 922, - 2259, - 1136, - 2253, - 1138, - 2318, - 924, - 2325 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 924, - 2261, - 950, - 2260, - 954, - 2326, - 928, - 2326 - ], - "confidence": 0.881 - }, - { - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "confidence": 0.941 - } - ] - }, - { - "text": "Tax", - "boundingBox": [ - 570, - 2355, - 655, - 2357, - 654, - 2415, - 568, - 2413 - ], - "words": [ - { - "text": "Tax", - "boundingBox": [ - 571, - 2355, - 654, - 2357, - 653, - 2415, - 570, - 2413 - ], - "confidence": 0.958 - } - ] - }, - { - "text": "$ 104.40", - "boundingBox": [ - 941, - 2368, - 1134, - 2364, - 1137, - 2433, - 942, - 2438 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 943, - 2368, - 966, - 2367, - 968, - 2437, - 944, - 2438 - ], - "confidence": 0.892 - }, - { - "text": "104.40", - "boundingBox": [ - 980, - 2367, - 1132, - 2364, - 1133, - 2434, - 982, - 2437 - ], - "confidence": 0.957 - } - ] - }, - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 672, - 2584, - 675, - 2652, - 554, - 2659 - ], - "words": [ - { - "text": "Total", - "boundingBox": [ - 551, - 2591, - 668, - 2584, - 672, - 2652, - 554, - 2659 - ], - "confidence": 0.727 - } - ] - }, - { - "text": "$ 1203.39", - "boundingBox": [ - 918, - 2589, - 1123, - 2611, - 1116, - 2677, - 912, - 2656 - ], - "words": [ - { - "text": "$", - "boundingBox": [ - 918, - 2590, - 942, - 2592, - 936, - 2659, - 912, - 2657 - ], - "confidence": 0.886 - }, - { - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "confidence": 0.951 - } - ] - } - ] - } - ], - "documentResults": [ - { - "docType": "prebuilt:receipt", - "pageRange": [ - 1, - 1 - ], - "fields": { - "ReceiptType": { - "type": "string", - "valueString": "Itemized", - "confidence": 0.663 - }, - "MerchantName": { - "type": "string", - "valueString": "Contoso Contoso", - "text": "Contoso Contoso", - "boundingBox": [ - 349.3, - 241.3, - 1058, - 284.4, - 1033.5, - 687.1, - 324.8, - 644 - ], - "page": 1, - "confidence": 0.516, - "elements": [ - "#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/1/words/0" - ] - }, - "MerchantAddress": { - "type": "string", - "valueString": "123 Main Street Redmond, WA 98052", - "text": "123 Main Street Redmond, WA 98052", - "boundingBox": [ - 319.9, - 689.9, - 750.7, - 697.5, - 747.8, - 865.6, - 317, - 858 - ], - "page": 1, - "confidence": 0.987, - "elements": [ - "#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1", - "#/readResults/0/lines/2/words/2", - "#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2" - ] - }, - "MerchantPhoneNumber": { - "type": "phoneNumber", - "text": "123-456-7890", - "boundingBox": [ - 306, - 1005, - 617, - 1012, - 615, - 1069, - 305, - 1064 - ], - "page": 1, - "confidence": 0.99, - "elements": [ - "#/readResults/0/lines/4/words/0" - ] - }, - "TransactionDate": { - "type": "date", - "valueDate": "2019-06-10", - "text": "6/10/2019", - "boundingBox": [ - 304, - 1224, - 506, - 1224, - 505, - 1289, - 303, - 1288 - ], - "page": 1, - "confidence": 0.986, - "elements": [ - "#/readResults/0/lines/5/words/0" - ] - }, - "TransactionTime": { - "type": "time", - "valueTime": "13:59:00", - "text": "13:59", - "boundingBox": [ - 518, - 1225, - 629, - 1228, - 627, - 1290, - 517, - 1289 - ], - "page": 1, - "confidence": 0.97, - "elements": [ - "#/readResults/0/lines/5/words/1" - ] - }, - "Items": { - "type": "array", - "valueArray": [ - { - "type": "object", - "valueObject": { - "Name": { - "type": "string", - "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", - "boundingBox": [ - 370.7, - 1781.5, - 731, - 1785, - 730.3, - 1854, - 370, - 1850.6 - ], - "page": 1, - "confidence": 0.916, - "elements": [ - "#/readResults/0/lines/9/words/0", - "#/readResults/0/lines/9/words/1", - "#/readResults/0/lines/9/words/2" - ] - }, - "TotalPrice": { - "type": "number", - "valueNumber": 999, - "text": "$999.00", - "boundingBox": [ - 939, - 1784.6, - 1134.4, - 1788.3, - 1133, - 1863, - 937.6, - 1859.3 - ], - "page": 1, - "confidence": 0.559, - "elements": [ - "#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1" - ] - } - } - }, - { - "type": "object", - "valueObject": { - "Quantity": { - "type": "number", - "valueNumber": 1, - "text": "1", - "boundingBox": [ - 321, - 2021, - 348, - 2020, - 349, - 2084, - 322, - 2084 - ], - "page": 1, - "confidence": 0.858, - "elements": [ - "#/readResults/0/lines/11/words/0" - ] - }, - "Name": { - "type": "string", - "valueString": "SurfacePen", - "text": "SurfacePen", - "boundingBox": [ - 360, - 2020, - 626, - 2014, - 628, - 2077, - 362, - 2083 - ], - "page": 1, - "confidence": 0.858, - "elements": [ - "#/readResults/0/lines/11/words/1" - ] - }, - "TotalPrice": { - "type": "number", - "valueNumber": 99.99, - "text": "99.99", - "boundingBox": [ - 1007, - 2028, - 1127, - 2028, - 1126, - 2091, - 1007, - 2091 - ], - "page": 1, - "confidence": 0.386, - "elements": [ - "#/readResults/0/lines/12/words/1" - ] - } - } - } - ] - }, - "Subtotal": { - "type": "number", - "valueNumber": 1098.99, - "text": "1098.99", - "boundingBox": [ - 963, - 2260, - 1136, - 2254, - 1137, - 2320, - 966, - 2325 - ], - "page": 1, - "confidence": 0.965, - "elements": [ - "#/readResults/0/lines/14/words/1" - ] - }, - "Tax": { - "type": "number", - "valueNumber": 104.4, - "text": "$104.40", - "boundingBox": [ - 942.6, - 2367.5, - 1132, - 2363.7, - 1133.4, - 2434.2, - 944, - 2438 - ], - "page": 1, - "confidence": 0.714, - "elements": [ - "#/readResults/0/lines/16/words/0", - "#/readResults/0/lines/16/words/1" - ] - }, - "Total": { - "type": "number", - "valueNumber": 1203.39, - "text": "1203.39", - "boundingBox": [ - 955, - 2594, - 1124, - 2611, - 1115, - 2678, - 949, - 2661 - ], - "page": 1, - "confidence": 0.774, - "elements": [ - "#/readResults/0/lines/18/words/1" - ] - } - } - } - ] - } - } - } - ], - "Variables": { - "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-centraluseuap.cognitiveservices.azure.com/", - "RandomSeed": "612086966" - } -} \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%).json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale.json similarity index 91% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%).json rename to sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale.json index 97f1e476af8e..2161b69005bc 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%en-US%).json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale.json @@ -1,152 +1,152 @@ { "Entries": [ { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true\u0026locale=en-US", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true\u0026locale=en-US", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "279674", "Content-Type": "image/jpeg", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-81ed2758bdda6f43968df3a3a177cbdb-a59b4e511256854b-00", + "traceparent": "00-f01e737c53a1e74997a120938e1750df-a6f14a267c944d44-00", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "17ab643d28e6f2c8808fced1b2bd1690", + "x-ms-client-request-id": "665a3574c472df82502f37927c8614db", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "adf3fc22-32d2-46fd-a099-8791885666df", + "apim-request-id": "80eb033b-54d6-4b9b-a49b-c5cd8b8b0a35", "Content-Length": "0", - "Date": "Tue, 17 Nov 2020 00:33:01 GMT", - "Operation-Location": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/adf3fc22-32d2-46fd-a099-8791885666df", + "Date": "Fri, 29 Jan 2021 00:11:43 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/80eb033b-54d6-4b9b-a49b-c5cd8b8b0a35", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "239" + "x-envoy-upstream-service-time": "444" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/adf3fc22-32d2-46fd-a099-8791885666df", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/80eb033b-54d6-4b9b-a49b-c5cd8b8b0a35", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "5fd23f79a12052ec47cf208170a6619c", + "x-ms-client-request-id": "699a34dc58a32e1211639ced5b1b613e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "9a15c465-43f3-4349-9cd5-4d3dcfac921a", - "Content-Length": "106", + "apim-request-id": "c4169b0e-e529-4c71-bed7-dc1ee2c00c31", + "Content-Length": "109", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:01 GMT", + "Date": "Fri, 29 Jan 2021 00:11:43 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { - "status": "running", - "createdDateTime": "2020-11-17T00:33:01Z", - "lastUpdatedDateTime": "2020-11-17T00:33:01Z" + "status": "notStarted", + "createdDateTime": "2021-01-29T00:11:43Z", + "lastUpdatedDateTime": "2021-01-29T00:11:43Z" } }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/adf3fc22-32d2-46fd-a099-8791885666df", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/80eb033b-54d6-4b9b-a49b-c5cd8b8b0a35", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "7329a64adbd1ce4923b39e475fd352ce", + "x-ms-client-request-id": "fd65e82d8724e28ff13e8439bc18b08d", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "43a18239-90a6-4947-97f9-043dfce207ed", + "apim-request-id": "d0438052-3680-43d9-8c5d-a9aa4510e48c", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:02 GMT", + "Date": "Fri, 29 Jan 2021 00:11:44 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", "x-envoy-upstream-service-time": "11" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-17T00:33:01Z", - "lastUpdatedDateTime": "2020-11-17T00:33:01Z" + "createdDateTime": "2021-01-29T00:11:43Z", + "lastUpdatedDateTime": "2021-01-29T00:11:44Z" } }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/adf3fc22-32d2-46fd-a099-8791885666df", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/80eb033b-54d6-4b9b-a49b-c5cd8b8b0a35", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "a6c73615c1859c467858cf16074782da", + "x-ms-client-request-id": "de7fc761f29c1c71232b540f28958334", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "2aaa8781-710c-460a-8087-63fff020bf45", + "apim-request-id": "06282cbe-f754-4c7e-986d-5a213a2a442a", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:03 GMT", + "Date": "Fri, 29 Jan 2021 00:11:45 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" + "x-envoy-upstream-service-time": "12" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-17T00:33:01Z", - "lastUpdatedDateTime": "2020-11-17T00:33:01Z" + "createdDateTime": "2021-01-29T00:11:43Z", + "lastUpdatedDateTime": "2021-01-29T00:11:44Z" } }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/adf3fc22-32d2-46fd-a099-8791885666df", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/80eb033b-54d6-4b9b-a49b-c5cd8b8b0a35", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET Core 4.6.29518.01; Microsoft Windows 10.0.19042 )" ], - "x-ms-client-request-id": "0c87322da3949dbff6033b6d03a4f273", + "x-ms-client-request-id": "9464f9cd172055b6a4b77864d3d971f9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "24d0af18-879a-430b-bce5-354c13a18590", + "apim-request-id": "e1b644d8-e0f3-43a4-b92b-0d9b4a128198", "Content-Length": "8808", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:33:04 GMT", + "Date": "Fri, 29 Jan 2021 00:11:46 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "17" + "x-envoy-upstream-service-time": "23" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2020-11-17T00:33:01Z", - "lastUpdatedDateTime": "2020-11-17T00:33:04Z", + "createdDateTime": "2021-01-29T00:11:43Z", + "lastUpdatedDateTime": "2021-01-29T00:11:45Z", "analyzeResult": { "version": "2.1.0", "readResults": [ @@ -1339,7 +1339,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-centraluseuap.cognitiveservices.azure.com/", - "RandomSeed": "1679087298" + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "324843746" } } \ No newline at end of file diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%)Async.json b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocaleAsync.json similarity index 92% rename from sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%)Async.json rename to sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocaleAsync.json index 35250aa79eb1..58cb57e80dc8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocale(%%)Async.json +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeReceiptsWithSupportedLocaleAsync.json @@ -1,122 +1,122 @@ { "Entries": [ { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true\u0026locale=", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyze?includeTextDetails=true\u0026locale=en-US", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", "Content-Length": "279674", "Content-Type": "image/jpeg", "Ocp-Apim-Subscription-Key": "Sanitized", - "traceparent": "00-f6a3ef6bc687b94a9be9bb06e01f64ec-d07f9f5c6d953249-00", + "traceparent": "00-9cd3dd1d7e105749832c69ff74962fc6-af43b9af506cd44f-00", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "86f7b26afbf5b1326f3f28856a9b4e31", + "x-ms-client-request-id": "8cf8b9d79e243a7172f4256887a74ccf", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "apim-request-id": "b83863ed-03f4-4760-b43a-b7dc1bf32d5a", + "apim-request-id": "029f14b5-ef72-44de-a37f-62ee6e8d7183", "Content-Length": "0", - "Date": "Tue, 17 Nov 2020 00:34:19 GMT", - "Operation-Location": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/b83863ed-03f4-4760-b43a-b7dc1bf32d5a", + "Date": "Fri, 29 Jan 2021 00:11:18 GMT", + "Operation-Location": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/029f14b5-ef72-44de-a37f-62ee6e8d7183", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "188" + "x-envoy-upstream-service-time": "197" }, "ResponseBody": [] }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/b83863ed-03f4-4760-b43a-b7dc1bf32d5a", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/029f14b5-ef72-44de-a37f-62ee6e8d7183", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "935d5ab70d6a615759fad115cd9ad4fd", + "x-ms-client-request-id": "f8933f238f4f6645e1f830f3aca7e72e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "68ca3e93-2fe7-4ba2-9e0c-17706a782c69", + "apim-request-id": "011d80fe-bcdc-48cd-94f0-815b25370c4f", "Content-Length": "109", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:34:19 GMT", + "Date": "Fri, 29 Jan 2021 00:11:18 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "11" + "x-envoy-upstream-service-time": "13" }, "ResponseBody": { "status": "notStarted", - "createdDateTime": "2020-11-17T00:34:19Z", - "lastUpdatedDateTime": "2020-11-17T00:34:19Z" + "createdDateTime": "2021-01-29T00:11:18Z", + "lastUpdatedDateTime": "2021-01-29T00:11:18Z" } }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/b83863ed-03f4-4760-b43a-b7dc1bf32d5a", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/029f14b5-ef72-44de-a37f-62ee6e8d7183", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "f12811396f701c362c68464fbe36532d", + "x-ms-client-request-id": "04e27e53c83a289bb1aec5b309a76bd3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "74043dce-d3ab-4611-a9f5-6dc3322ac27a", + "apim-request-id": "7f45adc2-58c6-4648-b497-7160b7490277", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:34:20 GMT", + "Date": "Fri, 29 Jan 2021 00:11:19 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "10" + "x-envoy-upstream-service-time": "20" }, "ResponseBody": { "status": "running", - "createdDateTime": "2020-11-17T00:34:19Z", - "lastUpdatedDateTime": "2020-11-17T00:34:19Z" + "createdDateTime": "2021-01-29T00:11:18Z", + "lastUpdatedDateTime": "2021-01-29T00:11:19Z" } }, { - "RequestUri": "https://mariari-centraluseuap.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/b83863ed-03f4-4760-b43a-b7dc1bf32d5a", + "RequestUri": "https://mariari-canada-central.cognitiveservices.azure.com/formrecognizer/v2.1-preview.2/prebuilt/receipt/analyzeResults/029f14b5-ef72-44de-a37f-62ee6e8d7183", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", "Ocp-Apim-Subscription-Key": "Sanitized", "User-Agent": [ - "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20201116.1", - "(.NET Core 4.6.29130.01; Microsoft Windows 10.0.19042 )" + "azsdk-net-AI.FormRecognizer/3.1.0-alpha.20210128.1", + "(.NET 5.0.2; Microsoft Windows 10.0.19042)" ], - "x-ms-client-request-id": "6242bb2313c45ce45a952cfa2a1ce4d5", + "x-ms-client-request-id": "a18dd9016c7948c87492aa2c6e7e8ecb", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "apim-request-id": "29f1d518-8647-4d39-9410-8b0e1b7d5485", + "apim-request-id": "f5edbf7d-2e83-4e5a-8e85-1f9b75a27da5", "Content-Length": "8808", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 17 Nov 2020 00:34:21 GMT", + "Date": "Fri, 29 Jan 2021 00:11:20 GMT", "Strict-Transport-Security": "max-age=31536000; includeSubDomains; preload", "X-Content-Type-Options": "nosniff", - "x-envoy-upstream-service-time": "21" + "x-envoy-upstream-service-time": "18" }, "ResponseBody": { "status": "succeeded", - "createdDateTime": "2020-11-17T00:34:19Z", - "lastUpdatedDateTime": "2020-11-17T00:34:21Z", + "createdDateTime": "2021-01-29T00:11:18Z", + "lastUpdatedDateTime": "2021-01-29T00:11:20Z", "analyzeResult": { "version": "2.1.0", "readResults": [ @@ -1309,7 +1309,7 @@ ], "Variables": { "FORM_RECOGNIZER_API_KEY": "Sanitized", - "FORM_RECOGNIZER_ENDPOINT": "https://mariari-centraluseuap.cognitiveservices.azure.com/", - "RandomSeed": "1049801833" + "FORM_RECOGNIZER_ENDPOINT": "https://mariari-canada-central.cognitiveservices.azure.com/", + "RandomSeed": "1402753913" } } \ No newline at end of file