From 716469bb75cedabc3e2c353acd562190df679c59 Mon Sep 17 00:00:00 2001 From: kinelski Date: Mon, 29 Jun 2020 15:24:26 -0700 Subject: [PATCH] [FormRecognizer] Update text angle if it falls outside of the expected range (#13092) * Created workaround for angle bug (#13082) * Updated changelog --- .../Azure.AI.FormRecognizer/CHANGELOG.md | 4 + .../Azure.AI.FormRecognizer/src/FormPage.cs | 6 +- .../FormRecognizerClientLiveTests.cs | 2 +- ...houtLabelsCanParseMultipageForm(True).json | 4530 +++++++++++++++++ ...abelsCanParseMultipageForm(True)Async.json | 4434 ++++++++++++++++ 5 files changed, 8974 insertions(+), 2 deletions(-) create mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeCustomFormsWithoutLabelsCanParseMultipageForm(True).json create mode 100644 sdk/formrecognizer/Azure.AI.FormRecognizer/tests/SessionRecords/FormRecognizerClientLiveTests/StartRecognizeCustomFormsWithoutLabelsCanParseMultipageForm(True)Async.json diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md index 33f970ac0d477..63f709d56f22a 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/CHANGELOG.md @@ -15,6 +15,10 @@ - Property `CopyAuthorization.ExpiresOn` type is now `DateTimeOffset`. - `RecognizedReceipt` and `RecognizedReceiptsCollection` classes removed. Receipt field values must now be obtained from a `RecognizedForm`. +### Fixes + +- Fixed a bug in which the `FormPage.TextAngle` property sometimes fell out of the (-180, 180] range ([#13082](https://github.com/Azure/azure-sdk-for-net/issues/13082)). + ## 1.0.0-preview.3 (06-10-2020) ### Renames diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormPage.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormPage.cs index 5745865871788..c1abe4f6731f8 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormPage.cs +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/FormPage.cs @@ -15,7 +15,11 @@ internal FormPage(PageResult_internal pageResult, IReadOnlyList