diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md index 58a8f8bc81cf..1ee251fa8045 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md @@ -1,8 +1,7 @@ # Release History ## 1.0.0-beta.3 (Unreleased) - -FormTraining Client updates: +- Fix bug in FormRecognizer API's to support multipage document recognition. - Adopt the `training` namespace for Form Recognizer Training Clients - Rename parameter `fileSourceUrl` to `trainingFilesUrl` on `beginTraining` method in FormTrainingClients - Rename parameter `useLabelFile` to `useTrainingLabels` on `beginTraining` method in FormTrainingClients diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/README.md b/sdk/formrecognizer/azure-ai-formrecognizer/README.md index 80e2ecc699fe..82e39d2d08e5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/README.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/README.md @@ -23,13 +23,13 @@ from form documents. It includes the following main functionalities: com.azure azure-ai-formrecognizer - 1.0.0-beta.1 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) ### Create a Form Recognizer resource -Form Recognizer supports both [multi-service and single-service access][service_access]. Create a Cognitive Services +Form Recognizer supports both [multi-service and single-service access][service_access]. Create a Cognitive Service's resource if you plan to access multiple cognitive services under a single endpoint/key. For Form Recognizer access only, create a Form Recognizer resource. @@ -50,10 +50,10 @@ az group create --name my-resource-group --location westus2 ```bash # Create Form Recognizer az cognitiveservices account create \ - --name text-analytics-resource \ + --name form-recognizer-resource \ --resource-group my-resource-group \ - --kind TextAnalytics \ - --sku F0 \ + --kind FormRecognizer \ + --sku S0 \ --location westus2 \ --yes ``` diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/Transforms.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/Transforms.java index 9391fb276be5..34522ccddaf9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/Transforms.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/main/java/com/azure/ai/formrecognizer/Transforms.java @@ -89,7 +89,7 @@ static List toRecognizedForm(AnalyzeResult analyzeResult, boolea } } else { extractedFormList = new ArrayList<>(); - for (PageResult pageResultItem : pageResults) { + forEachWithIndex(pageResults, ((index, pageResultItem) -> { StringBuffer formType = new StringBuffer("form-"); int pageNumber = pageResultItem.getPage(); Integer clusterId = pageResultItem.getClusterId(); @@ -103,8 +103,8 @@ static List toRecognizedForm(AnalyzeResult analyzeResult, boolea extractedFieldMap, formType.toString(), new PageRange(pageNumber, pageNumber), - new IterableStream<>(Collections.singletonList(formPages.get(pageNumber - 1))))); - } + new IterableStream<>(Collections.singletonList(formPages.get(index))))); + })); } return extractedFormList; } @@ -216,24 +216,27 @@ private static Map> getUnlabeledFieldMap(DocumentResult doc List readResults, boolean includeTextDetails) { Map> extractedFieldMap = new TreeMap<>(); // add receipt fields - documentResultItem.getFields().forEach((key, fieldValue) -> { - if (fieldValue != null) { - Integer pageNumber = fieldValue.getPage(); - FieldText labelText = new FieldText(key, null, pageNumber, null); - IterableStream formContentList = null; - if (includeTextDetails) { - formContentList = setReferenceElements(fieldValue.getElements(), readResults, pageNumber); + if (!CoreUtils.isNullOrEmpty(documentResultItem.getFields())) { + documentResultItem.getFields().forEach((key, fieldValue) -> { + if (fieldValue != null) { + Integer pageNumber = fieldValue.getPage(); + FieldText labelText = new FieldText(key, null, pageNumber, null); + IterableStream formContentList = null; + if (includeTextDetails) { + formContentList = setReferenceElements(fieldValue.getElements(), readResults, pageNumber); + } + FieldText valueText = new FieldText(fieldValue.getText(), + toBoundingBox(fieldValue.getBoundingBox()), + pageNumber, formContentList); + extractedFieldMap.put(key, setFormField(labelText, key, fieldValue, valueText, pageNumber, + readResults)); + } else { + FieldText labelText = new FieldText(key, null, null, null); + extractedFieldMap.put(key, new FormField<>(DEFAULT_CONFIDENCE_VALUE, labelText, + key, null, null, null)); } - FieldText valueText = new FieldText(fieldValue.getText(), toBoundingBox(fieldValue.getBoundingBox()), - pageNumber, formContentList); - extractedFieldMap.put(key, setFormField(labelText, key, fieldValue, valueText, pageNumber, - readResults)); - } else { - FieldText labelText = new FieldText(key, null, null, null); - extractedFieldMap.put(key, new FormField<>(DEFAULT_CONFIDENCE_VALUE, labelText, - key, null, null, null)); - } - }); + }); + } return extractedFieldMap; } @@ -309,8 +312,7 @@ private static float setDefaultConfidenceValue(Float confidence) { * {@link com.azure.ai.formrecognizer.implementation.models.FieldValue#getValueObject()} * to a SDK level map of {@link FormField}. * - * @param valueObject The array of field values returned by the service in - * {@link FieldValue#getValueObject()} . + * @param valueObject The array of field values returned by the service in {@link FieldValue#getValueObject()}. * * @return The Map of {@link FormField}. */ @@ -332,8 +334,7 @@ private static Map> toFormFieldObject(Map { + contentFromDataRunner((data) -> { SyncPoller> syncPoller = client.beginRecognizeContent(toFluxByteBuffer(data), LAYOUT_FILE_LENGTH, FormContentType.IMAGE_JPEG, null).getSyncPoller(); @@ -209,29 +209,21 @@ public void recognizeLayoutData(HttpClient httpClient, FormRecognizerServiceVers */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutDataWithNullData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { - client = getFormRecognizerAsyncClient(httpClient, serviceVersion); - layoutDataRunner((data) -> { - SyncPoller> syncPoller = - client.beginRecognizeContent(toFluxByteBuffer(data), LAYOUT_FILE_LENGTH, FormContentType.IMAGE_JPEG, - null).getSyncPoller(); - syncPoller.waitForCompletion(); - - assertThrows(RuntimeException.class, () -> client.beginRecognizeContent(null, LAYOUT_FILE_LENGTH, - FormContentType.IMAGE_JPEG, null).getSyncPoller()); - }); + public void recognizeContentResultWithNullData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + assertThrows(RuntimeException.class, () -> client.beginRecognizeContent(null, LAYOUT_FILE_LENGTH, + FormContentType.IMAGE_JPEG, null).getSyncPoller()); } + /** - * Verifies layout data for a document using source as input stream data. - * And the content type is not given. The content type will be auto detected. + * Verifies content type will be auto detected when using content/layout API with input stream data overload. */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutDataWithContentTypeAutoDetection(HttpClient httpClient, + public void recognizeContentResultWithContentTypeAutoDetection(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerAsyncClient(httpClient, serviceVersion); - layoutDataRunner((data) -> { + contentFromDataRunner((data) -> { SyncPoller> syncPoller = client.beginRecognizeContent(getReplayableBufferData(LAYOUT_LOCAL_URL), LAYOUT_FILE_LENGTH, null, null).getSyncPoller(); @@ -245,9 +237,9 @@ public void recognizeLayoutDataWithContentTypeAutoDetection(HttpClient httpClien */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContentFromUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerAsyncClient(httpClient, serviceVersion); - layoutSourceUrlRunner(sourceUrl -> { + contentFromUrlRunner(sourceUrl -> { SyncPoller> syncPoller = client.beginRecognizeContentFromUrl(sourceUrl).getSyncPoller(); syncPoller.waitForCompletion(); @@ -260,7 +252,7 @@ public void recognizeLayoutSourceUrl(HttpClient httpClient, FormRecognizerServic */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContentInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerAsyncClient(httpClient, serviceVersion); invalidSourceUrlRunner((invalidSourceUrl) -> assertThrows(ErrorResponseException.class, () -> client.beginRecognizeContentFromUrl(invalidSourceUrl).getSyncPoller())); @@ -326,9 +318,9 @@ public void recognizeCustomFormLabeledDataWithNullValues(HttpClient httpClient, })); } + /** - * Verifies custom form data for a document using source as input stream data and valid labeled model Id. - * And the content type is not given. The content type will be auto detected. + * Verifies content type will be auto detected when using custom form API with input stream data overload. */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") @@ -367,4 +359,88 @@ public void recognizeCustomFormUnlabeledData(HttpClient httpClient, FormRecogniz validateRecognizedResult(syncPoller.getFinalResult(), false, false); })); } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeCustomFormMultiPageUnlabeled(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerAsyncClient(httpClient, serviceVersion); + multipageFromDataRunner(data -> beginTrainingMultipageRunner((trainingFilesUrl) -> { + SyncPoller trainingPoller = + client.getFormTrainingAsyncClient().beginTraining(trainingFilesUrl, false).getSyncPoller(); + trainingPoller.waitForCompletion(); + + SyncPoller> syncPoller = + client.beginRecognizeCustomForms(toFluxByteBuffer(data), trainingPoller.getFinalResult().getModelId(), + MULTIPAGE_INVOICE_FILE_LENGTH, FormContentType.APPLICATION_PDF).getSyncPoller(); + syncPoller.waitForCompletion(); + validateMultiPageDataUnlabeled(syncPoller.getFinalResult()); + })); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeCustomFormUrlMultiPageLabeled(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerAsyncClient(httpClient, serviceVersion); + multipageFromUrlRunner(fileUrl -> beginTrainingMultipageRunner((trainingFilesUrl) -> { + SyncPoller trainingPoller = + client.getFormTrainingAsyncClient().beginTraining(trainingFilesUrl, true).getSyncPoller(); + trainingPoller.waitForCompletion(); + + SyncPoller> syncPoller = + client.beginRecognizeCustomFormsFromUrl(fileUrl, trainingPoller.getFinalResult().getModelId()).getSyncPoller(); + syncPoller.waitForCompletion(); + validateMultiPageDataLabeled(syncPoller.getFinalResult()); + })); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeReceiptFromUrlMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerAsyncClient(httpClient, serviceVersion); + multipageFromUrlRunner(fileUrl -> { + SyncPoller> syncPoller = + client.beginRecognizeReceiptsFromUrl(fileUrl).getSyncPoller(); + syncPoller.waitForCompletion(); + validateMultipageReceiptData(syncPoller.getFinalResult()); + }); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeReceiptFromDataMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerAsyncClient(httpClient, serviceVersion); + multipageFromDataRunner(data -> { + SyncPoller> syncPoller = + client.beginRecognizeReceipts(toFluxByteBuffer(data), MULTIPAGE_INVOICE_FILE_LENGTH, + FormContentType.APPLICATION_PDF).getSyncPoller(); + syncPoller.waitForCompletion(); + validateMultipageReceiptData(syncPoller.getFinalResult()); + }); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeContentFromUrlMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerAsyncClient(httpClient, serviceVersion); + multipageFromUrlRunner((fileUrl) -> { + SyncPoller> syncPoller = + client.beginRecognizeContentFromUrl(fileUrl).getSyncPoller(); + syncPoller.waitForCompletion(); + validateLayoutDataResults(syncPoller.getFinalResult(), false); + }); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeContentFromDataMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerAsyncClient(httpClient, serviceVersion); + multipageFromDataRunner(data -> { + SyncPoller> syncPoller = + client.beginRecognizeContent(toFluxByteBuffer(data), MULTIPAGE_INVOICE_FILE_LENGTH, + FormContentType.APPLICATION_PDF).getSyncPoller(); + syncPoller.waitForCompletion(); + validateLayoutDataResults(syncPoller.getFinalResult(), false); + }); + } + } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTest.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTest.java index cea33391e408..0c7c5540628d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTest.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTest.java @@ -28,6 +28,7 @@ import static com.azure.ai.formrecognizer.TestUtils.INVALID_URL; import static com.azure.ai.formrecognizer.TestUtils.LAYOUT_FILE_LENGTH; import static com.azure.ai.formrecognizer.TestUtils.LAYOUT_LOCAL_URL; +import static com.azure.ai.formrecognizer.TestUtils.MULTIPAGE_INVOICE_FILE_LENGTH; import static com.azure.ai.formrecognizer.TestUtils.RECEIPT_FILE_LENGTH; import static com.azure.ai.formrecognizer.TestUtils.RECEIPT_LOCAL_URL; import static com.azure.ai.formrecognizer.TestUtils.getContentDetectionFileData; @@ -51,12 +52,13 @@ private FormRecognizerClient getFormRecognizerClient(HttpClient httpClient, builder.credential(credential); return builder.buildClient(); } + /** * Verifies receipt data for a document using source as file url. */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeReceiptSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeReceiptSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); receiptSourceUrlRunner((sourceUrl) -> { SyncPoller> syncPoller = @@ -72,7 +74,8 @@ public void recognizeReceiptSourceUrl(HttpClient httpClient, FormRecognizerServi */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeReceiptSourceUrlTextDetails(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeReceiptSourceUrlTextDetails(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); receiptSourceUrlRunnerTextDetails((sourceUrl, includeTextDetails) -> { SyncPoller> syncPoller = @@ -87,7 +90,7 @@ public void recognizeReceiptSourceUrlTextDetails(HttpClient httpClient, FormReco */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeReceiptData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeReceiptData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); receiptDataRunner((data) -> { SyncPoller> syncPoller = @@ -102,19 +105,20 @@ public void recognizeReceiptData(HttpClient httpClient, FormRecognizerServiceVer */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeReceiptDataTextDetailsWithNullData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeReceiptDataTextDetailsWithNullData(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); assertThrows(RuntimeException.class, () -> client.beginRecognizeReceipts(null, RECEIPT_FILE_LENGTH, FormContentType.IMAGE_JPEG, false, null)); } /** - * Verifies receipt data for a document using source as input stream data. - * And the content type is not given. The content type will be auto detected. + * Verifies content type will be auto detected when using receipt API with input stream data overload. */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeReceiptDataWithContentTypeAutoDetection(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeReceiptDataWithContentTypeAutoDetection(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); SyncPoller> syncPoller = client.beginRecognizeReceipts(getContentDetectionFileData(RECEIPT_LOCAL_URL), RECEIPT_FILE_LENGTH, @@ -123,6 +127,7 @@ public void recognizeReceiptDataWithContentTypeAutoDetection(HttpClient httpClie validateReceiptResultData(syncPoller.getFinalResult(), false); } + /** * Verifies receipt data for a document using source as as input stream data and text content when * includeTextDetails is true. @@ -147,9 +152,9 @@ public void recognizeReceiptDataWithContentTypeAutoDetection(HttpClient httpClie */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContent(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); - layoutDataRunner((data) -> { + contentFromDataRunner((data) -> { SyncPoller> syncPoller = client.beginRecognizeContent(data, LAYOUT_FILE_LENGTH, FormContentType.IMAGE_PNG, null); syncPoller.waitForCompletion(); @@ -162,24 +167,20 @@ public void recognizeLayoutData(HttpClient httpClient, FormRecognizerServiceVers */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutDataWithNullData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContentResultWithNullData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); - layoutDataRunner((data) -> { - SyncPoller> syncPoller = - client.beginRecognizeContent(data, LAYOUT_FILE_LENGTH, FormContentType.IMAGE_PNG, null); - syncPoller.waitForCompletion(); - assertThrows(RuntimeException.class, () -> - client.beginRecognizeContent(null, LAYOUT_FILE_LENGTH, FormContentType.IMAGE_JPEG, null)); - }); + assertThrows(RuntimeException.class, () -> + client.beginRecognizeContent(null, LAYOUT_FILE_LENGTH, FormContentType.IMAGE_JPEG, null)); } + /** - * Verifies layout data for a document using source as input stream data. - * And the content type is not given. The content type will be auto detected. + * Verifies content type will be auto detected when using content/layout API with input stream data overload. */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutDataWithContentTypeAutoDetection(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContentResultWithContentTypeAutoDetection(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); SyncPoller> syncPoller = client.beginRecognizeContent(getContentDetectionFileData(LAYOUT_LOCAL_URL), LAYOUT_FILE_LENGTH, null, null); @@ -189,9 +190,9 @@ public void recognizeLayoutDataWithContentTypeAutoDetection(HttpClient httpClien @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContentFromUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); - layoutSourceUrlRunner(sourceUrl -> { + contentFromUrlRunner(sourceUrl -> { SyncPoller> syncPoller = client.beginRecognizeContentFromUrl(sourceUrl); syncPoller.waitForCompletion(); @@ -204,7 +205,7 @@ public void recognizeLayoutSourceUrl(HttpClient httpClient, FormRecognizerServic */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeLayoutInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeContentInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); invalidSourceUrlRunner((invalidSourceUrl) -> assertThrows(ErrorResponseException.class, () -> client.beginRecognizeContentFromUrl(invalidSourceUrl))); @@ -215,7 +216,8 @@ public void recognizeLayoutInvalidSourceUrl(HttpClient httpClient, FormRecognize */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeCustomFormInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeCustomFormInvalidSourceUrl(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); beginTrainingLabeledRunner((trainingFilesUrl, useTrainingLabels) -> { SyncPoller syncPoller = @@ -236,7 +238,7 @@ public void recognizeCustomFormInvalidSourceUrl(HttpClient httpClient, FormRecog */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeCustomFormLabeledData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeCustomFormLabeledData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); customFormDataRunner(data -> beginTrainingLabeledRunner((trainingFilesUrl, useTrainingLabels) -> { @@ -257,7 +259,8 @@ public void recognizeCustomFormLabeledData(HttpClient httpClient, FormRecognizer */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeCustomFormLabeledDataWithNullValues(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeCustomFormLabeledDataWithNullValues(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); customFormDataRunner(data -> beginTrainingLabeledRunner((trainingFilesUrl, useTrainingLabels) -> { @@ -275,13 +278,14 @@ public void recognizeCustomFormLabeledDataWithNullValues(HttpClient httpClient, ); } + /** - * Verifies custom form data for a document using source as input stream data and valid labeled model Id. - * And the content type is not given. The content type will be auto detected. + * Verifies content type will be auto detected when using custom form API with input stream data overload. */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeCustomFormLabeledDataWithContentTypeAutoDetection(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeCustomFormLabeledDataWithContentTypeAutoDetection(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); beginTrainingLabeledRunner((trainingFilesUrl, useTrainingLabels) -> { SyncPoller trainingPoller = @@ -302,7 +306,7 @@ public void recognizeCustomFormLabeledDataWithContentTypeAutoDetection(HttpClien */ @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") - public void recognizeCustomFormUnlabeledData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + public void recognizeCustomFormUnlabeledData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { client = getFormRecognizerClient(httpClient, serviceVersion); customFormDataRunner(data -> beginTrainingUnlabeledRunner((trainingFilesUrl, useTrainingLabels) -> { @@ -317,4 +321,85 @@ public void recognizeCustomFormUnlabeledData(HttpClient httpClient, FormRecogniz validateRecognizedResult(syncPoller.getFinalResult(), false, false); })); } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeContentFromDataMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerClient(httpClient, serviceVersion); + multipageFromDataRunner(data -> { + SyncPoller> syncPoller = + client.beginRecognizeContent(data, MULTIPAGE_INVOICE_FILE_LENGTH, FormContentType.APPLICATION_PDF); + syncPoller.waitForCompletion(); + validateLayoutDataResults(syncPoller.getFinalResult(), false); + }); + } + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + void recognizeCustomFormUrlMultiPageLabeled(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerClient(httpClient, serviceVersion); + multipageFromUrlRunner(fileUrl -> beginTrainingMultipageRunner((trainingFilesUrl) -> { + SyncPoller trainingPoller = + client.getFormTrainingClient().beginTraining(trainingFilesUrl, true); + trainingPoller.waitForCompletion(); + + SyncPoller> syncPoller = + client.beginRecognizeCustomFormsFromUrl(fileUrl, trainingPoller.getFinalResult().getModelId()); + syncPoller.waitForCompletion(); + validateMultiPageDataLabeled(syncPoller.getFinalResult()); + })); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeCustomFormMultiPageUnlabeled(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerClient(httpClient, serviceVersion); + multipageFromDataRunner(data -> beginTrainingMultipageRunner((trainingFilesUrl) -> { + SyncPoller trainingPoller = + client.getFormTrainingClient().beginTraining(trainingFilesUrl, false); + trainingPoller.waitForCompletion(); + + SyncPoller> syncPoller = + client.beginRecognizeCustomForms(data, trainingPoller.getFinalResult().getModelId(), + MULTIPAGE_INVOICE_FILE_LENGTH, FormContentType.APPLICATION_PDF); + syncPoller.waitForCompletion(); + validateMultiPageDataUnlabeled(syncPoller.getFinalResult()); + })); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeReceiptFromUrlMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerClient(httpClient, serviceVersion); + multipageFromUrlRunner(fileUrl -> { + SyncPoller> syncPoller = + client.beginRecognizeReceiptsFromUrl(fileUrl); + syncPoller.waitForCompletion(); + validateMultipageReceiptData(syncPoller.getFinalResult()); + }); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeReceiptFromDataMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerClient(httpClient, serviceVersion); + multipageFromDataRunner(data -> { + SyncPoller> syncPoller = + client.beginRecognizeReceipts(data, MULTIPAGE_INVOICE_FILE_LENGTH, FormContentType.APPLICATION_PDF); + syncPoller.waitForCompletion(); + validateMultipageReceiptData(syncPoller.getFinalResult()); + }); + } + + @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) + @MethodSource("com.azure.ai.formrecognizer.TestUtils#getTestParameters") + public void recognizeContentFromUrlMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion) { + client = getFormRecognizerClient(httpClient, serviceVersion); + multipageFromUrlRunner((fileUrl) -> { + SyncPoller> syncPoller = + client.beginRecognizeContentFromUrl(fileUrl); + syncPoller.waitForCompletion(); + validateLayoutDataResults(syncPoller.getFinalResult(), false); + }); + } } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTestBase.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTestBase.java index b24e26a776a0..d56db7e54c43 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTestBase.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormRecognizerClientTestBase.java @@ -32,11 +32,9 @@ import com.azure.ai.formrecognizer.models.USReceipt; import com.azure.ai.formrecognizer.models.USReceiptItem; import com.azure.core.http.HttpClient; -import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestBase; import com.azure.core.test.models.NetworkCallRecord; import com.azure.core.util.Configuration; -import com.azure.core.util.CoreUtils; import com.azure.core.util.IterableStream; import com.azure.core.util.serializer.SerializerAdapter; import org.junit.jupiter.api.Test; @@ -53,26 +51,25 @@ import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.AZURE_FORM_RECOGNIZER_API_KEY; import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.AZURE_FORM_RECOGNIZER_ENDPOINT; -import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.FORM_RECOGNIZER_PROPERTIES; +import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.FORM_RECOGNIZER_MULTIPAGE_TRAINING_BLOB_CONTAINER_SAS_URL; import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.FORM_RECOGNIZER_TESTING_BLOB_CONTAINER_SAS_URL; import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.FORM_RECOGNIZER_TRAINING_BLOB_CONTAINER_SAS_URL; -import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.NAME; -import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.VERSION; import static com.azure.ai.formrecognizer.FormTrainingClientTestBase.deserializeRawResponse; import static com.azure.ai.formrecognizer.TestUtils.getFileData; import static com.azure.ai.formrecognizer.TestUtils.getSerializerAdapter; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; public abstract class FormRecognizerClientTestBase extends TestBase { private static final String RECEIPT_CONTOSO_JPG = "contoso-allinone.jpg"; private static final String FORM_JPG = "Form_1.jpg"; private static final String INVOICE_PDF = "Invoice_6.pdf"; + private static final String MULTIPAGE_INVOICE_PDF = "multipage_invoice1.pdf"; private static final Pattern NON_DIGIT_PATTERN = Pattern.compile("[^0-9]+"); - private final HttpLogOptions httpLogOptions = new HttpLogOptions(); - private final Map properties = CoreUtils.getProperties(FORM_RECOGNIZER_PROPERTIES); - private final String clientName = properties.getOrDefault(NAME, "UnknownName"); - private final String clientVersion = properties.getOrDefault(VERSION, "UnknownVersion"); + private static final String EXPECTED_MULTIPAGE_ADDRESS_VALUE = "123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA"; + private static final String EXPECTED_MULTIPAGE_PHONE_NUMBER_VALUE = "+15555555555"; + private static final String ITEMIZED_RECEIPT_VALUE = "Itemized"; private static void validateReferenceElementsData(List expectedElements, IterableStream actualFormContents, List readResults) { @@ -270,20 +267,21 @@ abstract void recognizeReceiptDataWithContentTypeAutoDetection(HttpClient httpCl FormRecognizerServiceVersion serviceVersion); @Test - abstract void recognizeLayoutData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + abstract void recognizeContent(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); @Test - abstract void recognizeLayoutDataWithNullData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + abstract void recognizeContentResultWithNullData(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion); @Test - abstract void recognizeLayoutDataWithContentTypeAutoDetection(HttpClient httpClient, + abstract void recognizeContentResultWithContentTypeAutoDetection(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); @Test - abstract void recognizeLayoutSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + abstract void recognizeContentFromUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); @Test - abstract void recognizeLayoutInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + abstract void recognizeContentInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); @Test abstract void recognizeCustomFormLabeledData(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); @@ -303,6 +301,23 @@ abstract void recognizeCustomFormLabeledDataWithContentTypeAutoDetection(HttpCli abstract void recognizeCustomFormInvalidSourceUrl(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + @Test + abstract void recognizeCustomFormUrlMultiPageLabeled(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion); + + @Test + abstract void recognizeCustomFormMultiPageUnlabeled(HttpClient httpClient, + FormRecognizerServiceVersion serviceVersion); + + @Test + abstract void recognizeReceiptFromUrlMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + + @Test + abstract void recognizeContentFromUrlMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + + @Test + abstract void recognizeContentFromDataMultiPage(HttpClient httpClient, FormRecognizerServiceVersion serviceVersion); + void validateUSReceiptData(USReceipt actualRecognizedReceipt, boolean includeTextDetails) { final AnalyzeResult analyzeResult = getAnalyzeRawResponse().getAnalyzeResult(); List readResults = analyzeResult.getReadResults(); @@ -382,8 +397,7 @@ void validateRecognizedResult(IterableStream actualForms, boolea if (isLabeled) { validateLabeledData(actualFormList.get(i), includeTextDetails, readResults, documentResults.get(i)); } else { - validateUnLabeledResult(actualFormList.get(i), includeTextDetails, readResults, pageResults.get(i), - pageResults); + validateUnLabeledResult(actualFormList.get(i), includeTextDetails, readResults, pageResults.get(i)); } } } @@ -416,7 +430,7 @@ void invalidSourceUrlRunner(Consumer testRunner) { testRunner.accept(TestUtils.INVALID_RECEIPT_URL); } - void layoutDataRunner(Consumer testRunner) { + void contentFromDataRunner(Consumer testRunner) { if (interceptorManager.isPlaybackMode()) { testRunner.accept(new ByteArrayInputStream("isPlaybackMode".getBytes())); } else { @@ -424,7 +438,19 @@ void layoutDataRunner(Consumer testRunner) { } } - void layoutSourceUrlRunner(Consumer testRunner) { + void multipageFromDataRunner(Consumer testRunner) { + if (interceptorManager.isPlaybackMode()) { + testRunner.accept(new ByteArrayInputStream("isPlaybackMode".getBytes())); + } else { + testRunner.accept(getFileData(getStorageTestingFileUrl(MULTIPAGE_INVOICE_PDF))); + } + } + + void multipageFromUrlRunner(Consumer testRunner) { + testRunner.accept(getStorageTestingFileUrl(MULTIPAGE_INVOICE_PDF)); + } + + void contentFromUrlRunner(Consumer testRunner) { testRunner.accept(getStorageTestingFileUrl(FORM_JPG)); } @@ -444,8 +470,12 @@ void beginTrainingLabeledRunner(BiConsumer testRunner) { testRunner.accept(getTrainingSasUri(), true); } + void beginTrainingMultipageRunner(Consumer testRunner) { + testRunner.accept(getMultipageTrainingSasUri()); + } + private void validateUnLabeledResult(RecognizedForm actualForm, boolean includeTextDetails, - List readResults, PageResult expectedPage, List pageResults) { + List readResults, PageResult expectedPage) { validatePageRangeData(expectedPage.getPage(), actualForm.getPageRange()); for (int i = 0; i < expectedPage.getKeyValuePairs().size(); i++) { final KeyValuePair expectedFormField = expectedPage.getKeyValuePairs().get(i); @@ -486,6 +516,75 @@ private void validateLabeledData(RecognizedForm actualForm, boolean includeTextD }); } + static void validateMultiPageDataLabeled(IterableStream recognizedFormResult) { + List actualRecognizedFormsList = recognizedFormResult.stream().collect(Collectors.toList()); + actualRecognizedFormsList.forEach(recognizedForm -> { + assertEquals("custom:form", recognizedForm.getFormType()); + assertEquals(1, recognizedForm.getPageRange().getStartPageNumber()); + assertEquals(3, recognizedForm.getPageRange().getEndPageNumber()); + assertEquals(3, (int) recognizedForm.getPages().stream().count()); + recognizedForm.getFields().forEach((label, formField) -> { + assertNotNull(formField.getName()); + assertNotNull(formField.getFieldValue()); + assertNotNull(formField.getValueText().getText()); + assertNotNull(formField.getLabelText().getText()); + }); + }); + } + + static void validateMultiPageDataUnlabeled(IterableStream recognizedFormResult) { + List actualRecognizedFormsList = recognizedFormResult.stream().collect(Collectors.toList()); + actualRecognizedFormsList.forEach(recognizedForm -> { + assertEquals("form-0", recognizedForm.getFormType()); + assertEquals(1, recognizedForm.getPages().stream().count()); + recognizedForm.getFields().forEach((label, formField) -> { + assertNotNull(formField.getName()); + assertNotNull(formField.getFieldValue()); + assertNotNull(formField.getValueText().getText()); + assertNotNull(formField.getLabelText().getText()); + }); + }); + } + + static void validateMultipageReceiptData(IterableStream actualReceiptResult) { + List recognizedReceipts = actualReceiptResult.stream().collect(Collectors.toList()); + assertEquals(3, recognizedReceipts.size()); + USReceipt receiptPage1 = ReceiptExtensions.asUSReceipt(recognizedReceipts.get(0)); + USReceipt receiptPage2 = ReceiptExtensions.asUSReceipt(recognizedReceipts.get(1)); + USReceipt receiptPage3 = ReceiptExtensions.asUSReceipt(recognizedReceipts.get(2)); + + assertEquals(1, receiptPage1.getRecognizedForm().getPageRange().getStartPageNumber()); + assertEquals(1, receiptPage1.getRecognizedForm().getPageRange().getEndPageNumber()); + assertEquals(EXPECTED_MULTIPAGE_ADDRESS_VALUE, receiptPage1.getMerchantAddress().getFieldValue()); + assertEquals("Bilbo Baggins", receiptPage1.getMerchantName().getFieldValue()); + assertEquals(EXPECTED_MULTIPAGE_PHONE_NUMBER_VALUE, receiptPage1.getMerchantPhoneNumber().getFieldValue()); + assertNotNull(receiptPage1.getTotal().getFieldValue()); + assertNotNull(receiptPage1.getRecognizedForm().getPages()); + assertEquals(ITEMIZED_RECEIPT_VALUE, receiptPage1.getReceiptType().getType()); + + // Assert no fields, tables and lines on second page + assertEquals(0, receiptPage2.getRecognizedForm().getFields().size()); + IterableStream receipt2Pages = receiptPage2.getRecognizedForm().getPages(); + assertEquals(1, receipt2Pages.stream().count()); + assertEquals(0, receipt2Pages.stream().findFirst().get().getTables().stream().count()); + assertEquals(0, receipt2Pages.stream().findFirst().get().getLines().stream().count()); + assertEquals(2, receiptPage2.getRecognizedForm().getPageRange().getStartPageNumber()); + assertEquals(2, receiptPage2.getRecognizedForm().getPageRange().getEndPageNumber()); + + assertEquals(3, receiptPage3.getRecognizedForm().getPageRange().getStartPageNumber()); + assertEquals(3, receiptPage3.getRecognizedForm().getPageRange().getEndPageNumber()); + assertEquals(EXPECTED_MULTIPAGE_ADDRESS_VALUE, receiptPage3.getMerchantAddress().getFieldValue()); + assertEquals("Frodo Baggins", receiptPage3.getMerchantName().getFieldValue()); + assertEquals(EXPECTED_MULTIPAGE_PHONE_NUMBER_VALUE, receiptPage3.getMerchantPhoneNumber().getFieldValue()); + assertNotNull(receiptPage3.getTotal().getFieldValue()); + // why isn't tip returned by service? + // total value 1000 returned by service but should be 4300, service bug + assertEquals(3000, receiptPage3.getSubtotal().getFieldValue()); + assertEquals(1000, receiptPage3.getTotal().getFieldValue()); + assertNotNull(receiptPage1.getRecognizedForm().getPages()); + assertEquals(ITEMIZED_RECEIPT_VALUE, receiptPage3.getReceiptType().getType()); + } + /** * Get the string of API key value based on the test running mode. * @@ -514,6 +613,20 @@ private String getTrainingSasUri() { } } + /** + * Get the training data set SAS Url value based on the test running mode. + * + * @return the training data set Url + */ + private String getMultipageTrainingSasUri() { + if (interceptorManager.isPlaybackMode()) { + return "https://isPlaybackmode"; + } else { + return Configuration.getGlobalConfiguration() + .get(FORM_RECOGNIZER_MULTIPAGE_TRAINING_BLOB_CONTAINER_SAS_URL); + } + } + /** * Get the testing data set SAS Url value based on the test running mode. * diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormTrainingClientTestBase.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormTrainingClientTestBase.java index af158c14c614..99d97d99e3ce 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormTrainingClientTestBase.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/FormTrainingClientTestBase.java @@ -13,7 +13,6 @@ import com.azure.ai.formrecognizer.models.FormRecognizerError; import com.azure.ai.formrecognizer.models.TrainingDocumentInfo; import com.azure.core.http.HttpClient; -import com.azure.core.http.policy.HttpLogOptions; import com.azure.core.test.TestBase; import com.azure.core.test.models.NetworkCallRecord; import com.azure.core.util.Configuration; @@ -40,15 +39,13 @@ public abstract class FormTrainingClientTestBase extends TestBase { "FORM_RECOGNIZER_TRAINING_BLOB_CONTAINER_SAS_URL"; static final String FORM_RECOGNIZER_TESTING_BLOB_CONTAINER_SAS_URL = "FORM_RECOGNIZER_TESTING_BLOB_CONTAINER_SAS_URL"; + static final String FORM_RECOGNIZER_MULTIPAGE_TRAINING_BLOB_CONTAINER_SAS_URL = + "FORM_RECOGNIZER_MULTIPAGE_TRAINING_BLOB_CONTAINER_SAS_URL"; static final String AZURE_FORM_RECOGNIZER_API_KEY = "AZURE_FORM_RECOGNIZER_API_KEY"; static final String NAME = "name"; static final String FORM_RECOGNIZER_PROPERTIES = "azure-ai-formrecognizer.properties"; - static final String VERSION = "version"; static final String AZURE_FORM_RECOGNIZER_ENDPOINT = "AZURE_FORM_RECOGNIZER_ENDPOINT"; - private final HttpLogOptions httpLogOptions = new HttpLogOptions(); private final Map properties = CoreUtils.getProperties(FORM_RECOGNIZER_PROPERTIES); - private final String clientName = properties.getOrDefault(NAME, "UnknownName"); - private final String clientVersion = properties.getOrDefault(VERSION, "UnknownVersion"); private static void validateTrainingDocumentsData(List expectedTrainingDocuments, List actualTrainingDocuments) { diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/TestUtils.java b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/TestUtils.java index 6862f5260a76..66a8317799c7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/TestUtils.java +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/java/com/azure/ai/formrecognizer/TestUtils.java @@ -49,13 +49,15 @@ final class TestUtils { static final String RECEIPT_LOCAL_URL = "src/test/resources/sample_files/Test/contoso-allinone.jpg"; static final String LAYOUT_LOCAL_URL = "src/test/resources/sample_files/Test/layout1.jpg"; static final String FORM_LOCAL_URL = "src/test/resources/sample_files/Test/Invoice_6.pdf"; + static final String MULTIPAGE_INVOICE_LOCAL_URL = "src/test/resources/sample_files/Test/multipage_invoice1.pdf"; static final long RECEIPT_FILE_LENGTH = new File(RECEIPT_LOCAL_URL).length(); static final long LAYOUT_FILE_LENGTH = new File(LAYOUT_LOCAL_URL).length(); static final long CUSTOM_FORM_FILE_LENGTH = new File(FORM_LOCAL_URL).length(); + static final long MULTIPAGE_INVOICE_FILE_LENGTH = new File(MULTIPAGE_INVOICE_LOCAL_URL).length(); static final String VALID_URL = "https://resources/contoso-allinone.jpg"; static final String DISPLAY_NAME_WITH_ARGUMENTS = "{displayName} with [{arguments}]"; - private static final String AZURE_TEXT_ANALYTICS_TEST_SERVICE_VERSIONS = - "AZURE_TEXT_ANALYTICS_TEST_SERVICE_VERSIONS"; + private static final String AZURE_FORM_RECOGNIZER_TEST_SERVICE_VERSIONS = + "AZURE_FORM_RECOGNIZER_TEST_SERVICE_VERSIONS"; private TestUtils() { } @@ -137,7 +139,7 @@ static Stream getTestParameters() { */ private static boolean shouldServiceVersionBeTested(FormRecognizerServiceVersion serviceVersion) { String serviceVersionFromEnv = - Configuration.getGlobalConfiguration().get(AZURE_TEXT_ANALYTICS_TEST_SERVICE_VERSIONS); + Configuration.getGlobalConfiguration().get(AZURE_FORM_RECOGNIZER_TEST_SERVICE_VERSIONS); if (CoreUtils.isNullOrEmpty(serviceVersionFromEnv)) { return FormRecognizerServiceVersion.getLatest().equals(serviceVersion); } diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/sample_files/Test/multipage_invoice1.pdf b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/sample_files/Test/multipage_invoice1.pdf new file mode 100644 index 000000000000..5ac1edf588c9 Binary files /dev/null and b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/sample_files/Test/multipage_invoice1.pdf differ diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutData.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContent.json similarity index 100% rename from sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutData.json rename to sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContent.json diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromDataMultiPage.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromDataMultiPage.json new file mode 100644 index 000000000000..413b7cee9a80 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromDataMultiPage.json @@ -0,0 +1,124 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "3e888249-142b-4640-82c2-91d9d3cf8d39", + "Content-Type" : "application/pdf" + }, + "Response" : { + "x-envoy-upstream-service-time" : "226", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "e626b136-a34b-47d6-88c1-99eb69ca8d81", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/layout/analyzeResults/e626b136-a34b-47d6-88c1-99eb69ca8d81", + "Date" : "Sun, 17 May 2020 04:44:23 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/e626b136-a34b-47d6-88c1-99eb69ca8d81", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b38c3f68-c523-49d9-b663-7f87f3ed6213" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "61", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "6c3f8c9b-268b-4e6e-acfd-0e670db77910", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-17T04:44:24Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:44:24Z\"}", + "Date" : "Sun, 17 May 2020 04:44:28 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/e626b136-a34b-47d6-88c1-99eb69ca8d81", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5c0ec7f2-61de-41d5-a6b8-765a03de18f6" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "34", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "156dd288-7840-42bf-b82e-38f599a11d7e", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-17T04:44:24Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:44:33Z\"}", + "Date" : "Sun, 17 May 2020 04:44:35 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/e626b136-a34b-47d6-88c1-99eb69ca8d81", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "403cf56d-543e-4570-87eb-f5e3c7460da5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "35", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "adf63286-308a-4202-8deb-334297d06fc4", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-17T04:44:24Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:44:33Z\"}", + "Date" : "Sun, 17 May 2020 04:44:40 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/e626b136-a34b-47d6-88c1-99eb69ca8d81", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e0c042ab-16da-4c59-bd1f-6f4c8ecfba9e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "280", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "21afa98d-defa-4a69-9dcd-ea2c87728d4f", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-17T04:44:24Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:44:43Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3783,1.1217,2.3783,1.2812,0.8861,1.2812],\"text\":\"Company A Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6696,1.1242,1.7749,1.1242,1.7749,1.2473,1.6696,1.2473],\"text\":\"A\",\"confidence\":1},{\"boundingBox\":[1.8389,1.1217,2.3783,1.1217,2.3783,1.2485,1.8389,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"text\":\"Bilbo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4503,6.3392,1.4503,6.3392,1.5649,6.0164,1.5649],\"text\":\"Bilbo\",\"confidence\":1},{\"boundingBox\":[6.3960,1.4556,6.8967,1.4556,6.8967,1.5931,6.3960,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.6320,4.8981,6.6320,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 300.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.6320,4.9042,6.6320,5.0131,6.1794,5.0131],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2022,5.1245,6.2022,5.2333,5.5034,5.2333],\"text\":\"Tax: 30.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2022,5.1245,6.2022,5.2333,5.8360,5.2333],\"text\":\"30.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.2587,5.3412,6.2587,5.481,5.5034,5.481],\"text\":\"Tip: 100.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.2587,5.3445,6.2587,5.4533,5.8110,5.4533],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.3987,5.5583,6.3987,5.6733,5.5034,5.6733],\"text\":\"Total: 430.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.3987,5.5645,6.3987,5.6733,5.9420,5.6733],\"text\":\"430.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6553,3.8342,6.6553,3.8342,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Bilbo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6553,2.4278,6.6553,2.4278,6.7981,1.7470,6.7981],\"text\":\"____Bilbo\",\"confidence\":1},{\"boundingBox\":[2.4823,6.6581,3.8342,6.6581,3.8342,6.7981,2.4823,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]},{\"page\":2,\"language\":\"en\",\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"lines\":[]},{\"page\":3,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3734,1.1217,2.3734,1.2812,0.8861,1.2812],\"text\":\"Company B Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6836,1.1248,1.7640,1.1248,1.7640,1.2469,1.6836,1.2469],\"text\":\"B\",\"confidence\":1},{\"boundingBox\":[1.8336,1.1217,2.3734,1.1217,2.3734,1.2485,1.8336,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"text\":\"Frodo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4506,6.3895,1.4506,6.3895,1.5649,6.0164,1.5649],\"text\":\"Frodo\",\"confidence\":1},{\"boundingBox\":[6.4500,1.4556,6.9506,1.4556,6.9506,1.5931,6.4500,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.7158,4.8981,6.7158,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 3000.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"text\":\"3000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2887,5.1245,6.2887,5.2333,5.5034,5.2333],\"text\":\"Tax: 300.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2887,5.1245,6.2887,5.2333,5.8360,5.2333],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.3422,5.3412,6.3422,5.481,5.5034,5.481],\"text\":\"Tip: 1000.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.3422,5.3445,6.3422,5.4533,5.8110,5.4533],\"text\":\"1000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.4825,5.5583,6.4825,5.6733,5.5034,5.6733],\"text\":\"Total: 4300.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.4825,5.5645,6.4825,5.6733,5.9420,5.6733],\"text\":\"4300.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6556,3.8842,6.6556,3.8842,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Frodo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6556,2.4778,6.6556,2.4778,6.7981,1.7470,6.7981],\"text\":\"____Frodo\",\"confidence\":1},{\"boundingBox\":[2.5325,6.6581,3.8842,6.6581,3.8842,6.7981,2.5325,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/0/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/0/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/0/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/0/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/0/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"10.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/0/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/0/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"2\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/0/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"14.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/0/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/0/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/0/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"15.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/0/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/0/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/0/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/0/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/0/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/0/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"10.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/0/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/0/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"6\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/0/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/0/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/0/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"8\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/0/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"22.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/0/lines/33/words/0\"]}]}]},{\"page\":2,\"tables\":[]},{\"page\":3,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/2/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/2/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/2/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/2/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/2/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"100.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/2/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/2/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/2/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"140.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/2/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/2/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/2/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"150.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/2/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/2/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/2/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/2/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/2/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/2/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"100.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/2/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/2/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"60\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/2/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/2/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/2/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"80\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/2/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"220.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/2/lines/33/words/0\"]}]}]}]}}", + "Date" : "Sun, 17 May 2020 04:44:45 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/e626b136-a34b-47d6-88c1-99eb69ca8d81", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "f1f3dd9a-d433-4b20-a2c0-43fb74c2ffde" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "113", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "c4204f6e-8d2c-4998-aa15-4a5816a9327f", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-17T04:44:24Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:44:43Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3783,1.1217,2.3783,1.2812,0.8861,1.2812],\"text\":\"Company A Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6696,1.1242,1.7749,1.1242,1.7749,1.2473,1.6696,1.2473],\"text\":\"A\",\"confidence\":1},{\"boundingBox\":[1.8389,1.1217,2.3783,1.1217,2.3783,1.2485,1.8389,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"text\":\"Bilbo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4503,6.3392,1.4503,6.3392,1.5649,6.0164,1.5649],\"text\":\"Bilbo\",\"confidence\":1},{\"boundingBox\":[6.3960,1.4556,6.8967,1.4556,6.8967,1.5931,6.3960,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.6320,4.8981,6.6320,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 300.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.6320,4.9042,6.6320,5.0131,6.1794,5.0131],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2022,5.1245,6.2022,5.2333,5.5034,5.2333],\"text\":\"Tax: 30.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2022,5.1245,6.2022,5.2333,5.8360,5.2333],\"text\":\"30.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.2587,5.3412,6.2587,5.481,5.5034,5.481],\"text\":\"Tip: 100.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.2587,5.3445,6.2587,5.4533,5.8110,5.4533],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.3987,5.5583,6.3987,5.6733,5.5034,5.6733],\"text\":\"Total: 430.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.3987,5.5645,6.3987,5.6733,5.9420,5.6733],\"text\":\"430.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6553,3.8342,6.6553,3.8342,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Bilbo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6553,2.4278,6.6553,2.4278,6.7981,1.7470,6.7981],\"text\":\"____Bilbo\",\"confidence\":1},{\"boundingBox\":[2.4823,6.6581,3.8342,6.6581,3.8342,6.7981,2.4823,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]},{\"page\":2,\"language\":\"en\",\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"lines\":[]},{\"page\":3,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3734,1.1217,2.3734,1.2812,0.8861,1.2812],\"text\":\"Company B Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6836,1.1248,1.7640,1.1248,1.7640,1.2469,1.6836,1.2469],\"text\":\"B\",\"confidence\":1},{\"boundingBox\":[1.8336,1.1217,2.3734,1.1217,2.3734,1.2485,1.8336,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"text\":\"Frodo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4506,6.3895,1.4506,6.3895,1.5649,6.0164,1.5649],\"text\":\"Frodo\",\"confidence\":1},{\"boundingBox\":[6.4500,1.4556,6.9506,1.4556,6.9506,1.5931,6.4500,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.7158,4.8981,6.7158,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 3000.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"text\":\"3000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2887,5.1245,6.2887,5.2333,5.5034,5.2333],\"text\":\"Tax: 300.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2887,5.1245,6.2887,5.2333,5.8360,5.2333],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.3422,5.3412,6.3422,5.481,5.5034,5.481],\"text\":\"Tip: 1000.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.3422,5.3445,6.3422,5.4533,5.8110,5.4533],\"text\":\"1000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.4825,5.5583,6.4825,5.6733,5.5034,5.6733],\"text\":\"Total: 4300.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.4825,5.5645,6.4825,5.6733,5.9420,5.6733],\"text\":\"4300.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6556,3.8842,6.6556,3.8842,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Frodo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6556,2.4778,6.6556,2.4778,6.7981,1.7470,6.7981],\"text\":\"____Frodo\",\"confidence\":1},{\"boundingBox\":[2.5325,6.6581,3.8842,6.6581,3.8842,6.7981,2.5325,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/0/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/0/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/0/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/0/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/0/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"10.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/0/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/0/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"2\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/0/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"14.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/0/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/0/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/0/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"15.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/0/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/0/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/0/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/0/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/0/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/0/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"10.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/0/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/0/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"6\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/0/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/0/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/0/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"8\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/0/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"22.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/0/lines/33/words/0\"]}]}]},{\"page\":2,\"tables\":[]},{\"page\":3,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/2/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/2/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/2/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/2/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/2/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"100.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/2/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/2/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/2/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"140.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/2/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/2/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/2/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"150.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/2/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/2/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/2/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/2/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/2/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/2/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"100.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/2/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/2/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"60\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/2/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/2/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/2/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"80\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/2/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"220.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/2/lines/33/words/0\"]}]}]}]}}", + "Date" : "Sun, 17 May 2020 04:44:45 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutSourceUrl.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromUrl.json similarity index 100% rename from sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutSourceUrl.json rename to sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromUrl.json diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromUrlMultiPage.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromUrlMultiPage.json new file mode 100644 index 000000000000..26f72f0b71ee --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentFromUrlMultiPage.json @@ -0,0 +1,84 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ae8043b2-4edf-460f-8013-be998c3e4bce", + "Content-Type" : "application/json" + }, + "Response" : { + "x-envoy-upstream-service-time" : "717", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "bd3a5f40-3991-433c-9e24-6765d408fae4", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/layout/analyzeResults/bd3a5f40-3991-433c-9e24-6765d408fae4", + "Date" : "Sat, 16 May 2020 19:38:21 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/bd3a5f40-3991-433c-9e24-6765d408fae4", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "7b327b99-2891-487b-9bf8-703328d23a98" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "72", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "fd5e1e70-ea2c-4fba-a577-eb640a9302bd", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-16T19:38:21Z\",\"lastUpdatedDateTime\":\"2020-05-16T19:38:25Z\"}", + "Date" : "Sat, 16 May 2020 19:38:26 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/bd3a5f40-3991-433c-9e24-6765d408fae4", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "46b402ba-4f8d-4763-9651-b3b17e0e7fe5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "311", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "b10a275b-0cae-402c-a2cd-e9202ddb5e0a", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-16T19:38:21Z\",\"lastUpdatedDateTime\":\"2020-05-16T19:38:30Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3783,1.1217,2.3783,1.2812,0.8861,1.2812],\"text\":\"Company A Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6696,1.1242,1.7749,1.1242,1.7749,1.2473,1.6696,1.2473],\"text\":\"A\",\"confidence\":1},{\"boundingBox\":[1.8389,1.1217,2.3783,1.1217,2.3783,1.2485,1.8389,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"text\":\"Bilbo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4503,6.3392,1.4503,6.3392,1.5649,6.0164,1.5649],\"text\":\"Bilbo\",\"confidence\":1},{\"boundingBox\":[6.3960,1.4556,6.8967,1.4556,6.8967,1.5931,6.3960,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.6320,4.8981,6.6320,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 300.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.6320,4.9042,6.6320,5.0131,6.1794,5.0131],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2022,5.1245,6.2022,5.2333,5.5034,5.2333],\"text\":\"Tax: 30.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2022,5.1245,6.2022,5.2333,5.8360,5.2333],\"text\":\"30.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.2587,5.3412,6.2587,5.481,5.5034,5.481],\"text\":\"Tip: 100.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.2587,5.3445,6.2587,5.4533,5.8110,5.4533],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.3987,5.5583,6.3987,5.6733,5.5034,5.6733],\"text\":\"Total: 430.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.3987,5.5645,6.3987,5.6733,5.9420,5.6733],\"text\":\"430.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6553,3.8342,6.6553,3.8342,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Bilbo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6553,2.4278,6.6553,2.4278,6.7981,1.7470,6.7981],\"text\":\"____Bilbo\",\"confidence\":1},{\"boundingBox\":[2.4823,6.6581,3.8342,6.6581,3.8342,6.7981,2.4823,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]},{\"page\":2,\"language\":\"en\",\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"lines\":[]},{\"page\":3,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3734,1.1217,2.3734,1.2812,0.8861,1.2812],\"text\":\"Company B Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6836,1.1248,1.7640,1.1248,1.7640,1.2469,1.6836,1.2469],\"text\":\"B\",\"confidence\":1},{\"boundingBox\":[1.8336,1.1217,2.3734,1.1217,2.3734,1.2485,1.8336,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"text\":\"Frodo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4506,6.3895,1.4506,6.3895,1.5649,6.0164,1.5649],\"text\":\"Frodo\",\"confidence\":1},{\"boundingBox\":[6.4500,1.4556,6.9506,1.4556,6.9506,1.5931,6.4500,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.7158,4.8981,6.7158,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 3000.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"text\":\"3000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2887,5.1245,6.2887,5.2333,5.5034,5.2333],\"text\":\"Tax: 300.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2887,5.1245,6.2887,5.2333,5.8360,5.2333],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.3422,5.3412,6.3422,5.481,5.5034,5.481],\"text\":\"Tip: 1000.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.3422,5.3445,6.3422,5.4533,5.8110,5.4533],\"text\":\"1000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.4825,5.5583,6.4825,5.6733,5.5034,5.6733],\"text\":\"Total: 4300.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.4825,5.5645,6.4825,5.6733,5.9420,5.6733],\"text\":\"4300.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6556,3.8842,6.6556,3.8842,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Frodo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6556,2.4778,6.6556,2.4778,6.7981,1.7470,6.7981],\"text\":\"____Frodo\",\"confidence\":1},{\"boundingBox\":[2.5325,6.6581,3.8842,6.6581,3.8842,6.7981,2.5325,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/0/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/0/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/0/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/0/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/0/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"10.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/0/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/0/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"2\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/0/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"14.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/0/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/0/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/0/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"15.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/0/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/0/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/0/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/0/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/0/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/0/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"10.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/0/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/0/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"6\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/0/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/0/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/0/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"8\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/0/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"22.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/0/lines/33/words/0\"]}]}]},{\"page\":2,\"tables\":[]},{\"page\":3,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/2/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/2/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/2/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/2/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/2/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"100.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/2/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/2/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/2/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"140.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/2/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/2/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/2/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"150.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/2/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/2/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/2/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/2/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/2/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/2/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"100.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/2/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/2/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"60\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/2/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/2/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/2/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"80\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/2/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"220.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/2/lines/33/words/0\"]}]}]}]}}", + "Date" : "Sat, 16 May 2020 19:38:32 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/bd3a5f40-3991-433c-9e24-6765d408fae4", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2abb6c75-b545-4ef3-804a-11129f8209b1" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "287", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "f7f55d5f-80f4-4a52-bf04-964822c46ce5", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-16T19:38:21Z\",\"lastUpdatedDateTime\":\"2020-05-16T19:38:30Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3783,1.1217,2.3783,1.2812,0.8861,1.2812],\"text\":\"Company A Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6696,1.1242,1.7749,1.1242,1.7749,1.2473,1.6696,1.2473],\"text\":\"A\",\"confidence\":1},{\"boundingBox\":[1.8389,1.1217,2.3783,1.1217,2.3783,1.2485,1.8389,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"text\":\"Bilbo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4503,6.3392,1.4503,6.3392,1.5649,6.0164,1.5649],\"text\":\"Bilbo\",\"confidence\":1},{\"boundingBox\":[6.3960,1.4556,6.8967,1.4556,6.8967,1.5931,6.3960,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.2116,3.3202,3.2116,3.3202,3.3176,3.2589,3.3176],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.7784,3.2108,5.7784,3.3190,5.4232,3.3190],\"text\":\"10.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.3199,3.4241,3.3199,3.5310,3.2541,3.5310],\"text\":\"2\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.7789,3.4241,5.7789,3.5323,5.4232,3.5323],\"text\":\"14.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,3.6351,3.3244,3.6351,3.3244,3.7413,3.2486,3.7413],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.7800,3.6341,5.7800,3.7423,5.4232,3.7423],\"text\":\"15.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"words\":[{\"boundingBox\":[3.2589,3.8450,3.3202,3.8450,3.3202,3.9510,3.2589,3.9510],\"text\":\"1\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.7809,3.8441,5.7809,3.9523,5.4232,3.9523],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"words\":[{\"boundingBox\":[3.2486,4.0556,3.3244,4.0556,3.3244,4.1617,3.2486,4.1617],\"text\":\"4\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.7810,4.0546,5.7810,4.1627,5.4232,4.1627],\"text\":\"10.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.3226,4.2646,3.3226,4.3727,3.2534,4.3727],\"text\":\"6\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"text\":\"12.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.3224,4.4746,3.3224,4.5827,3.2514,4.5827],\"text\":\"8\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.7810,4.4746,5.7810,4.5827,5.4184,4.5827],\"text\":\"22.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.6320,4.8981,6.6320,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 300.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.6320,4.9042,6.6320,5.0131,6.1794,5.0131],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2022,5.1245,6.2022,5.2333,5.5034,5.2333],\"text\":\"Tax: 30.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2022,5.1245,6.2022,5.2333,5.8360,5.2333],\"text\":\"30.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.2587,5.3412,6.2587,5.481,5.5034,5.481],\"text\":\"Tip: 100.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.2587,5.3445,6.2587,5.4533,5.8110,5.4533],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.3987,5.5583,6.3987,5.6733,5.5034,5.6733],\"text\":\"Total: 430.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.3987,5.5645,6.3987,5.6733,5.9420,5.6733],\"text\":\"430.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6553,3.8342,6.6553,3.8342,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Bilbo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6553,2.4278,6.6553,2.4278,6.7981,1.7470,6.7981],\"text\":\"____Bilbo\",\"confidence\":1},{\"boundingBox\":[2.4823,6.6581,3.8342,6.6581,3.8342,6.7981,2.4823,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]},{\"page\":2,\"language\":\"en\",\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"lines\":[]},{\"page\":3,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"lines\":[{\"boundingBox\":[0.8861,1.1217,2.3734,1.1217,2.3734,1.2812,0.8861,1.2812],\"text\":\"Company B Invoice\",\"words\":[{\"boundingBox\":[0.8861,1.1232,1.6203,1.1232,1.6203,1.2812,0.8861,1.2812],\"text\":\"Company\",\"confidence\":1},{\"boundingBox\":[1.6836,1.1248,1.7640,1.1248,1.7640,1.2469,1.6836,1.2469],\"text\":\"B\",\"confidence\":1},{\"boundingBox\":[1.8336,1.1217,2.3734,1.1217,2.3734,1.2485,1.8336,1.2485],\"text\":\"Invoice\",\"confidence\":1}]},{\"boundingBox\":[6.0211,1.0656,7.0357,1.0656,7.0357,1.2121,6.0211,1.2121],\"text\":\"Invoice For:\",\"words\":[{\"boundingBox\":[6.0211,1.0656,6.6362,1.0656,6.6362,1.2121,6.0211,1.2121],\"text\":\"Invoice\",\"confidence\":1},{\"boundingBox\":[6.7147,1.0691,7.0357,1.0691,7.0357,1.2121,6.7147,1.2121],\"text\":\"For:\",\"confidence\":1}]},{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"words\":[{\"boundingBox\":[0.8791,1.4825,1.5657,1.4825,1.5657,1.6155,0.8791,1.6155],\"text\":\"Address:\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"text\":\"Frodo Baggins\",\"words\":[{\"boundingBox\":[6.0164,1.4506,6.3895,1.4506,6.3895,1.5649,6.0164,1.5649],\"text\":\"Frodo\",\"confidence\":1},{\"boundingBox\":[6.4500,1.4556,6.9506,1.4556,6.9506,1.5931,6.4500,1.5931],\"text\":\"Baggins\",\"confidence\":1}]},{\"boundingBox\":[6.0165,1.6707,7.1006,1.6707,7.1006,1.7854,6.0165,1.7854],\"text\":\"123 Hobbit Lane\",\"words\":[{\"boundingBox\":[6.0165,1.6772,6.2434,1.6772,6.2434,1.7854,6.0165,1.7854],\"text\":\"123\",\"confidence\":1},{\"boundingBox\":[6.3033,1.6707,6.7463,1.6707,6.7463,1.7854,6.3033,1.7854],\"text\":\"Hobbit\",\"confidence\":1},{\"boundingBox\":[6.8030,1.6782,7.1006,1.6782,7.1006,1.7854,6.8030,1.7854],\"text\":\"Lane\",\"confidence\":1}]},{\"boundingBox\":[0.8852,1.8460,1.713,1.8460,1.713,1.9554,0.8852,1.9554],\"text\":\"567 Main St.\",\"words\":[{\"boundingBox\":[0.8852,1.8472,1.1203,1.8472,1.1203,1.9554,0.8852,1.9554],\"text\":\"567\",\"confidence\":1},{\"boundingBox\":[1.1777,1.8460,1.5022,1.8460,1.5022,1.9554,1.1777,1.9554],\"text\":\"Main\",\"confidence\":1},{\"boundingBox\":[1.5558,1.8472,1.713,1.8472,1.713,1.9554,1.5558,1.9554],\"text\":\"St.\",\"confidence\":1}]},{\"boundingBox\":[6.0164,1.8910,6.9793,1.8910,6.9793,2.0275,6.0164,2.0275],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[6.0164,1.8910,6.6861,1.8910,6.6861,2.0275,6.0164,2.0275],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[6.7408,1.8982,6.9793,1.8982,6.9793,2.0044,6.7408,2.0044],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[0.891,2.0610,1.8537,2.0610,1.8537,2.1975,0.891,2.1975],\"text\":\"Redmond, WA\",\"words\":[{\"boundingBox\":[0.891,2.0610,1.5605,2.0610,1.5605,2.1975,0.891,2.1975],\"text\":\"Redmond,\",\"confidence\":1},{\"boundingBox\":[1.6152,2.0682,1.8537,2.0682,1.8537,2.1744,1.6152,2.1744],\"text\":\"WA\",\"confidence\":1}]},{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"words\":[{\"boundingBox\":[0.8852,2.2887,1.8119,2.2887,1.8119,2.3954,0.8852,2.3954],\"text\":\"555-555-5555\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"words\":[{\"boundingBox\":[1.0943,3.0018,1.3842,3.0018,1.3842,3.1090,1.0943,3.1090],\"text\":\"Item\",\"confidence\":1}]},{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[3.2527,2.9996,3.8367,2.9996,3.8367,3.1371,3.2527,3.1371],\"text\":\"Quantity\",\"confidence\":1}]},{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"words\":[{\"boundingBox\":[5.4230,2.9996,5.7372,2.9996,5.7372,3.1090,5.4230,3.1090],\"text\":\"Price\",\"confidence\":1}]},{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"words\":[{\"boundingBox\":[1.0832,3.2118,1.174,3.2118,1.174,3.3180,1.0832,3.3180],\"text\":\"A\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.2108,3.4067,3.2108,3.4067,3.3190,3.2589,3.3190],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"words\":[{\"boundingBox\":[5.4232,3.2108,5.8617,3.2108,5.8617,3.3190,5.4232,3.3190],\"text\":\"100.99\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"words\":[{\"boundingBox\":[1.0943,3.4256,1.1637,3.4256,1.1637,3.5310,1.0943,3.5310],\"text\":\"B\",\"confidence\":1}]},{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"words\":[{\"boundingBox\":[3.2541,3.4241,3.4067,3.4241,3.4067,3.5323,3.2541,3.5323],\"text\":\"20\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"words\":[{\"boundingBox\":[5.4232,3.4241,5.8622,3.4241,5.8622,3.5323,5.4232,3.5323],\"text\":\"140.67\",\"confidence\":1}]},{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"words\":[{\"boundingBox\":[1.0882,3.6343,1.1647,3.6343,1.1647,3.7421,1.0882,3.7421],\"text\":\"C\",\"confidence\":1}]},{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,3.6341,3.4067,3.6341,3.4067,3.7423,3.2486,3.7423],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"words\":[{\"boundingBox\":[5.4232,3.6341,5.8634,3.6341,5.8634,3.7423,5.4232,3.7423],\"text\":\"150.66\",\"confidence\":1}]},{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"words\":[{\"boundingBox\":[1.0943,3.8456,1.1753,3.8456,1.1753,3.9510,1.0943,3.9510],\"text\":\"D\",\"confidence\":1}]},{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"words\":[{\"boundingBox\":[3.2589,3.8441,3.4067,3.8441,3.4067,3.9523,3.2589,3.9523],\"text\":\"10\",\"confidence\":1}]},{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,3.8441,5.8642,3.8441,5.8642,3.9523,5.4232,3.9523],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"words\":[{\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"text\":\"E\",\"confidence\":1}]},{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"words\":[{\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"text\":\"40\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"words\":[{\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"text\":\"100.00\",\"confidence\":1}]},{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"words\":[{\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"text\":\"F\",\"confidence\":1}]},{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"words\":[{\"boundingBox\":[3.2534,4.2646,3.4067,4.2646,3.4067,4.3727,3.2534,4.3727],\"text\":\"60\",\"confidence\":1}]},{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"words\":[{\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"text\":\"120.00\",\"confidence\":1}]},{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"words\":[{\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"text\":\"G\",\"confidence\":1}]},{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"words\":[{\"boundingBox\":[3.2514,4.4746,3.4067,4.4746,3.4067,4.5827,3.2514,4.5827],\"text\":\"80\",\"confidence\":1}]},{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"words\":[{\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"text\":\"220.00\",\"confidence\":1}]},{\"boundingBox\":[5.5075,4.8981,6.7158,4.8981,6.7158,5.0131,5.5075,5.0131],\"text\":\"Subtotal: 3000.00\",\"words\":[{\"boundingBox\":[5.5075,4.8981,6.1249,4.8981,6.1249,5.0131,5.5075,5.0131],\"text\":\"Subtotal:\",\"confidence\":1},{\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"text\":\"3000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.1245,6.2887,5.1245,6.2887,5.2333,5.5034,5.2333],\"text\":\"Tax: 300.00\",\"words\":[{\"boundingBox\":[5.5034,5.1263,5.7812,5.1263,5.7812,5.2333,5.5034,5.2333],\"text\":\"Tax:\",\"confidence\":1},{\"boundingBox\":[5.8360,5.1245,6.2887,5.1245,6.2887,5.2333,5.8360,5.2333],\"text\":\"300.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.3412,6.3422,5.3412,6.3422,5.481,5.5034,5.481],\"text\":\"Tip: 1000.00\",\"words\":[{\"boundingBox\":[5.5034,5.3412,5.7515,5.3412,5.7515,5.481,5.5034,5.481],\"text\":\"Tip:\",\"confidence\":1},{\"boundingBox\":[5.8110,5.3445,6.3422,5.3445,6.3422,5.4533,5.8110,5.4533],\"text\":\"1000.00\",\"confidence\":1}]},{\"boundingBox\":[5.5034,5.5583,6.4825,5.5583,6.4825,5.6733,5.5034,5.6733],\"text\":\"Total: 4300.00\",\"words\":[{\"boundingBox\":[5.5034,5.5583,5.8915,5.5583,5.8915,5.6733,5.5034,5.6733],\"text\":\"Total:\",\"confidence\":1},{\"boundingBox\":[5.9420,5.5645,6.4825,5.5645,6.4825,5.6733,5.9420,5.6733],\"text\":\"4300.00\",\"confidence\":1}]},{\"boundingBox\":[1.0055,6.6556,3.8842,6.6556,3.8842,6.7981,1.0055,6.7981],\"text\":\"Signature: ____Frodo Baggins__________\",\"words\":[{\"boundingBox\":[1.0055,6.6581,1.6987,6.6581,1.6987,6.7981,1.0055,6.7981],\"text\":\"Signature:\",\"confidence\":1},{\"boundingBox\":[1.7470,6.6556,2.4778,6.6556,2.4778,6.7981,1.7470,6.7981],\"text\":\"____Frodo\",\"confidence\":1},{\"boundingBox\":[2.5325,6.6581,3.8842,6.6581,3.8842,6.7981,2.5325,6.7981],\"text\":\"Baggins__________\",\"confidence\":1}]}]}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/0/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/0/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/0/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/0/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/0/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"10.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/0/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/0/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"2\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/0/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"14.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/0/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/0/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/0/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"15.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/0/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/0/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/0/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/0/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/0/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/0/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"10.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/0/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/0/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"6\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/0/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/0/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/0/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"8\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/0/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"22.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/0/lines/33/words/0\"]}]}]},{\"page\":2,\"tables\":[]},{\"page\":3,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543],\"elements\":[\"#/readResults/2/lines/10/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543],\"elements\":[\"#/readResults/2/lines/11/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543],\"elements\":[\"#/readResults/2/lines/12/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643],\"elements\":[\"#/readResults/2/lines/13/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643],\"elements\":[\"#/readResults/2/lines/14/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"100.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643],\"elements\":[\"#/readResults/2/lines/15/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776],\"elements\":[\"#/readResults/2/lines/16/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776],\"elements\":[\"#/readResults/2/lines/17/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"140.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776],\"elements\":[\"#/readResults/2/lines/18/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876],\"elements\":[\"#/readResults/2/lines/19/words/0\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876],\"elements\":[\"#/readResults/2/lines/20/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"150.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876],\"elements\":[\"#/readResults/2/lines/21/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976],\"elements\":[\"#/readResults/2/lines/22/words/0\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976],\"elements\":[\"#/readResults/2/lines/23/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976],\"elements\":[\"#/readResults/2/lines/24/words/0\"]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081],\"elements\":[\"#/readResults/2/lines/25/words/0\"]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081],\"elements\":[\"#/readResults/2/lines/26/words/0\"]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"100.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081],\"elements\":[\"#/readResults/2/lines/27/words/0\"]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181],\"elements\":[\"#/readResults/2/lines/28/words/0\"]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"60\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181],\"elements\":[\"#/readResults/2/lines/29/words/0\"]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181],\"elements\":[\"#/readResults/2/lines/30/words/0\"]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281],\"elements\":[\"#/readResults/2/lines/31/words/0\"]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"80\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281],\"elements\":[\"#/readResults/2/lines/32/words/0\"]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"220.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281],\"elements\":[\"#/readResults/2/lines/33/words/0\"]}]}]}]}}", + "Date" : "Sat, 16 May 2020 19:38:31 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutInvalidSourceUrl.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentInvalidSourceUrl.json similarity index 100% rename from sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutInvalidSourceUrl.json rename to sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentInvalidSourceUrl.json diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutDataWithContentTypeAutoDetection.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentResultWithContentTypeAutoDetection.json similarity index 100% rename from sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutDataWithContentTypeAutoDetection.json rename to sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentResultWithContentTypeAutoDetection.json diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentResultWithNullData.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentResultWithNullData.json new file mode 100644 index 000000000000..ba5f37f8f855 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeContentResultWithNullData.json @@ -0,0 +1,4 @@ +{ + "networkCallRecords" : [ ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeCustomFormMultiPageUnlabeled.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeCustomFormMultiPageUnlabeled.json new file mode 100644 index 000000000000..da597b2cca5e --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeCustomFormMultiPageUnlabeled.json @@ -0,0 +1,164 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a63c0427-b491-486b-9c7f-70b724689a31", + "Content-Type" : "application/json" + }, + "Response" : { + "x-envoy-upstream-service-time" : "71", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "c9d29b18-57a8-4aa4-a8d6-d53ef6202cf7", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "Date" : "Thu, 14 May 2020 18:06:07 GMT", + "Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2f0af501-858d-4970-8222-14079b9c6c05" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "51", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "c7a1dfea-c3ab-411c-9a06-a82c38d44484", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e\",\"status\":\"creating\",\"createdDateTime\":\"2020-05-14T18:06:08Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:06:08Z\"}}", + "Date" : "Thu, 14 May 2020 18:06:13 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5cdf77d4-818d-4fb7-b6b4-eed4e012367f" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "94", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "ed5e5f8d-a66b-41f0-b423-a70ce78d480c", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e\",\"status\":\"creating\",\"createdDateTime\":\"2020-05-14T18:06:08Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:06:08Z\"}}", + "Date" : "Thu, 14 May 2020 18:06:18 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "670eb9be-1e68-479b-a3bd-bda82188132d" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "35", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "33237358-7868-4e38-bb29-7f6878bdc192", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e\",\"status\":\"ready\",\"createdDateTime\":\"2020-05-14T18:06:08Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:06:20Z\"},\"keys\":{\"clusters\":{\"0\":[\"Address:\",\"Invoice For:\",\"Redmond, WA\",\"Signature:\",\"Subtotal:\",\"Tax:\",\"Tip:\",\"Total:\"]}},\"trainResult\":{\"trainingDocuments\":[{\"documentName\":\"multipage_invoice1.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice2.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice3.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice4.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice5.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"}],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:06:23 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6795f09b-bf3b-4d56-94d6-09884d04a6d5" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "36", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "7c12d9c6-83c5-4c76-93e7-88f41fa0c65e", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e\",\"status\":\"ready\",\"createdDateTime\":\"2020-05-14T18:06:08Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:06:20Z\"},\"keys\":{\"clusters\":{\"0\":[\"Address:\",\"Invoice For:\",\"Redmond, WA\",\"Signature:\",\"Subtotal:\",\"Tax:\",\"Tip:\",\"Total:\"]}},\"trainResult\":{\"trainingDocuments\":[{\"documentName\":\"multipage_invoice1.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice2.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice3.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice4.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice5.pdf\",\"pages\":3,\"errors\":[],\"status\":\"succeeded\"}],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:06:24 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e/analyze?includeTextDetails=false", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "c473871a-cdb1-4916-b840-aeb0eb4dd8a7", + "Content-Type" : "application/pdf" + }, + "Response" : { + "x-envoy-upstream-service-time" : "163", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "a1598542-f28c-434f-a0c5-0327da684bc8", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e/analyzeresults/b25f57b7-098d-48db-9bee-0cb6c54e161e", + "Date" : "Thu, 14 May 2020 18:06:25 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e/analyzeResults/b25f57b7-098d-48db-9bee-0cb6c54e161e", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "949b6b3a-f6a3-4a9d-9fd2-d7822ab0bf68" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "32", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "dd1bd1a8-71c7-4bdc-b7ac-ab32b23f45ec", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-14T18:06:25Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:06:29Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"angle\":0,\"width\":8.5,\"height\":11.0,\"unit\":\"inch\",\"lines\":[]},{\"page\":3,\"angle\":0,\"width\":8.5,\"height\":11.0,\"unit\":\"inch\",\"lines\":[]}],\"pageResults\":[{\"page\":1,\"keyValuePairs\":[{\"key\":{\"text\":\"Invoice For:\",\"boundingBox\":[6.0028,1.0431,7.0528,1.0431,7.0528,1.2667,6.0028,1.2667],\"elements\":null},\"value\":{\"text\":\"Bilbo Baggins 123 Hobbit Lane\",\"boundingBox\":[6.0028,1.4389,7.1083,1.4389,7.1083,1.8264,6.0028,1.8264],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Address:\",\"boundingBox\":[0.8764,1.4681,1.5778,1.4681,1.5778,1.6625,0.8764,1.6625],\"elements\":null},\"value\":{\"text\":\"567 Main St.\",\"boundingBox\":[0.8764,1.8292,1.725,1.8292,1.725,1.9958,0.8764,1.9958],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[6.0028,1.8792,6.9819,1.8792,6.9819,2.0458,6.0028,2.0458],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[6.0028,2.0986,6.9472,2.0986,6.9472,2.2653,6.0028,2.2653],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[0.8764,2.0486,1.8569,2.0486,1.8569,2.2153,0.8764,2.2153],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[0.8764,2.2694,1.8222,2.2694,1.8222,2.4361,0.8764,2.4361],\"elements\":null},\"confidence\":0.29},{\"key\":{\"text\":\"Subtotal:\",\"boundingBox\":[5.5028,4.8861,6.1347,4.8861,6.1347,5.0528,5.5028,5.0528],\"elements\":null},\"value\":{\"text\":\"300.00\",\"boundingBox\":[6.1722,4.8861,6.6361,4.8861,6.6361,5.0528,6.1722,5.0528],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tax:\",\"boundingBox\":[5.5028,5.1069,5.7917,5.1069,5.7917,5.2736,5.5028,5.2736],\"elements\":null},\"value\":{\"text\":\"30.00\",\"boundingBox\":[5.8292,5.1069,6.2069,5.1069,6.2069,5.2736,5.8292,5.2736],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tip:\",\"boundingBox\":[5.5028,5.3264,5.7611,5.3264,5.7611,5.4931,5.5028,5.4931],\"elements\":null},\"value\":{\"text\":\"100.00\",\"boundingBox\":[5.7986,5.3264,6.2639,5.3264,6.2639,5.4931,5.7986,5.4931],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Total:\",\"boundingBox\":[5.5028,5.5472,5.9014,5.5472,5.9014,5.7139,5.5028,5.7139],\"elements\":null},\"value\":{\"text\":\"430.00\",\"boundingBox\":[5.9389,5.5472,6.4028,5.5472,6.4028,5.7139,5.9389,5.7139],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Signature:\",\"boundingBox\":[1.0,6.6431,1.7083,6.6431,1.7083,6.8097,1.0,6.8097],\"elements\":null},\"value\":{\"text\":\"____Bilbo Baggins__________\",\"boundingBox\":[1.7472,6.6431,3.8333,6.6431,3.8333,6.8097,1.7472,6.8097],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"__Tokens__1\",\"boundingBox\":null,\"elements\":null},\"value\":{\"text\":\"Company A Invoice\",\"boundingBox\":[0.8764,1.1014,2.3875,1.1014,2.3875,1.2958,0.8764,1.2958],\"elements\":null},\"confidence\":1.0}],\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"text\":\"Item\",\"rowIndex\":0,\"columnIndex\":0,\"boundingBox\":[1.0806,2.9833,1.3958,2.9833,1.3958,3.15,1.0806,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Quantity\",\"rowIndex\":0,\"columnIndex\":1,\"boundingBox\":[3.2444,2.9833,3.8389,2.9833,3.8389,3.15,3.2444,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Price\",\"rowIndex\":0,\"columnIndex\":2,\"boundingBox\":[5.4083,2.9833,5.7458,2.9833,5.7458,3.15,5.4083,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"A\",\"rowIndex\":1,\"columnIndex\":0,\"boundingBox\":[1.0806,3.1931,1.1764,3.1931,1.1764,3.3597,1.0806,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"1\",\"rowIndex\":1,\"columnIndex\":1,\"boundingBox\":[3.2444,3.1931,3.3292,3.1931,3.3292,3.3597,3.2444,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10.99\",\"rowIndex\":1,\"columnIndex\":2,\"boundingBox\":[5.4083,3.1931,5.7875,3.1931,5.7875,3.3597,5.4083,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"B\",\"rowIndex\":2,\"columnIndex\":0,\"boundingBox\":[1.0806,3.4056,1.1708,3.4056,1.1708,3.5722,1.0806,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"2\",\"rowIndex\":2,\"columnIndex\":1,\"boundingBox\":[3.2444,3.4056,3.3292,3.4056,3.3292,3.5722,3.2444,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"14.67\",\"rowIndex\":2,\"columnIndex\":2,\"boundingBox\":[5.4083,3.4056,5.7861,3.4056,5.7861,3.5722,5.4083,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"C\",\"rowIndex\":3,\"columnIndex\":0,\"boundingBox\":[1.0806,3.6167,1.1694,3.6167,1.1694,3.7833,1.0806,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"4\",\"rowIndex\":3,\"columnIndex\":1,\"boundingBox\":[3.2444,3.6167,3.3292,3.6167,3.3292,3.7833,3.2444,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"15.66\",\"rowIndex\":3,\"columnIndex\":2,\"boundingBox\":[5.4083,3.6167,5.7861,3.6167,5.7861,3.7833,5.4083,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"D\",\"rowIndex\":4,\"columnIndex\":0,\"boundingBox\":[1.0806,3.8264,1.1833,3.8264,1.1833,3.9931,1.0806,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"1\",\"rowIndex\":4,\"columnIndex\":1,\"boundingBox\":[3.2444,3.8264,3.3292,3.8264,3.3292,3.9931,3.2444,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"12.00\",\"rowIndex\":4,\"columnIndex\":2,\"boundingBox\":[5.4083,3.8264,5.7861,3.8264,5.7861,3.9931,5.4083,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"E\",\"rowIndex\":5,\"columnIndex\":0,\"boundingBox\":[1.0806,4.0361,1.1611,4.0361,1.1611,4.2028,1.0806,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"4\",\"rowIndex\":5,\"columnIndex\":1,\"boundingBox\":[3.2444,4.0361,3.3292,4.0361,3.3292,4.2028,3.2444,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10.00\",\"rowIndex\":5,\"columnIndex\":2,\"boundingBox\":[5.4083,4.0361,5.7875,4.0361,5.7875,4.2028,5.4083,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"F\",\"rowIndex\":6,\"columnIndex\":0,\"boundingBox\":[1.0806,4.2458,1.1569,4.2458,1.1569,4.4125,1.0806,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"6\",\"rowIndex\":6,\"columnIndex\":1,\"boundingBox\":[3.2444,4.2458,3.3292,4.2458,3.3292,4.4125,3.2444,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"12.00\",\"rowIndex\":6,\"columnIndex\":2,\"boundingBox\":[5.4083,4.2458,5.7861,4.2458,5.7861,4.4125,5.4083,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"G\",\"rowIndex\":7,\"columnIndex\":0,\"boundingBox\":[1.0806,4.4569,1.1861,4.4569,1.1861,4.6236,1.0806,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"8\",\"rowIndex\":7,\"columnIndex\":1,\"boundingBox\":[3.2444,4.4569,3.3292,4.4569,3.3292,4.6236,3.2444,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"22.00\",\"rowIndex\":7,\"columnIndex\":2,\"boundingBox\":[5.4083,4.4569,5.7875,4.4569,5.7875,4.6236,5.4083,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false}]}],\"clusterId\":0},{\"page\":3,\"keyValuePairs\":[{\"key\":{\"text\":\"Invoice For:\",\"boundingBox\":[6.0028,1.0431,7.0528,1.0431,7.0528,1.2667,6.0028,1.2667],\"elements\":null},\"value\":{\"text\":\"Frodo Baggins 123 Hobbit Lane\",\"boundingBox\":[6.0028,1.4389,7.1083,1.4389,7.1083,1.8264,6.0028,1.8264],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Address:\",\"boundingBox\":[0.8764,1.4681,1.5778,1.4681,1.5778,1.6625,0.8764,1.6625],\"elements\":null},\"value\":{\"text\":\"567 Main St.\",\"boundingBox\":[0.8764,1.8292,1.725,1.8292,1.725,1.9958,0.8764,1.9958],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[6.0028,1.8792,6.9819,1.8792,6.9819,2.0458,6.0028,2.0458],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[6.0028,2.0986,6.9472,2.0986,6.9472,2.2653,6.0028,2.2653],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[0.8764,2.0486,1.8569,2.0486,1.8569,2.2153,0.8764,2.2153],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[0.8764,2.2694,1.8222,2.2694,1.8222,2.4361,0.8764,2.4361],\"elements\":null},\"confidence\":0.29},{\"key\":{\"text\":\"Subtotal:\",\"boundingBox\":[5.5028,4.8861,6.1347,4.8861,6.1347,5.0528,5.5028,5.0528],\"elements\":null},\"value\":{\"text\":\"3000.00\",\"boundingBox\":[6.1722,4.8861,6.7208,4.8861,6.7208,5.0528,6.1722,5.0528],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tax:\",\"boundingBox\":[5.5028,5.1069,5.7917,5.1069,5.7917,5.2736,5.5028,5.2736],\"elements\":null},\"value\":{\"text\":\"300.00\",\"boundingBox\":[5.8292,5.1069,6.2931,5.1069,6.2931,5.2736,5.8292,5.2736],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tip:\",\"boundingBox\":[5.5028,5.3264,5.7611,5.3264,5.7611,5.4931,5.5028,5.4931],\"elements\":null},\"value\":{\"text\":\"1000.00\",\"boundingBox\":[5.7986,5.3264,6.3472,5.3264,6.3472,5.4931,5.7986,5.4931],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Total:\",\"boundingBox\":[5.5028,5.5472,5.9014,5.5472,5.9014,5.7139,5.5028,5.7139],\"elements\":null},\"value\":{\"text\":\"4300.00\",\"boundingBox\":[5.9389,5.5472,6.4875,5.5472,6.4875,5.7139,5.9389,5.7139],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Signature:\",\"boundingBox\":[1.0,6.6431,1.7083,6.6431,1.7083,6.8097,1.0,6.8097],\"elements\":null},\"value\":{\"text\":\"____Frodo Baggins__________\",\"boundingBox\":[1.7472,6.6431,3.8833,6.6431,3.8833,6.8097,1.7472,6.8097],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"__Tokens__1\",\"boundingBox\":null,\"elements\":null},\"value\":{\"text\":\"Company B Invoice\",\"boundingBox\":[0.8764,1.1014,2.3833,1.1014,2.3833,1.2958,0.8764,1.2958],\"elements\":null},\"confidence\":1.0}],\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"text\":\"Item\",\"rowIndex\":0,\"columnIndex\":0,\"boundingBox\":[1.0806,2.9833,1.3958,2.9833,1.3958,3.15,1.0806,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Quantity\",\"rowIndex\":0,\"columnIndex\":1,\"boundingBox\":[3.2444,2.9833,3.8389,2.9833,3.8389,3.15,3.2444,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Price\",\"rowIndex\":0,\"columnIndex\":2,\"boundingBox\":[5.4083,2.9833,5.7458,2.9833,5.7458,3.15,5.4083,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"A\",\"rowIndex\":1,\"columnIndex\":0,\"boundingBox\":[1.0806,3.1931,1.1764,3.1931,1.1764,3.3597,1.0806,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10\",\"rowIndex\":1,\"columnIndex\":1,\"boundingBox\":[3.2444,3.1931,3.4125,3.1931,3.4125,3.3597,3.2444,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"100.99\",\"rowIndex\":1,\"columnIndex\":2,\"boundingBox\":[5.4083,3.1931,5.8708,3.1931,5.8708,3.3597,5.4083,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"B\",\"rowIndex\":2,\"columnIndex\":0,\"boundingBox\":[1.0806,3.4056,1.1708,3.4056,1.1708,3.5722,1.0806,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"20\",\"rowIndex\":2,\"columnIndex\":1,\"boundingBox\":[3.2444,3.4056,3.4125,3.4056,3.4125,3.5722,3.2444,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"140.67\",\"rowIndex\":2,\"columnIndex\":2,\"boundingBox\":[5.4083,3.4056,5.8694,3.4056,5.8694,3.5722,5.4083,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"C\",\"rowIndex\":3,\"columnIndex\":0,\"boundingBox\":[1.0806,3.6167,1.1694,3.6167,1.1694,3.7833,1.0806,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"40\",\"rowIndex\":3,\"columnIndex\":1,\"boundingBox\":[3.2444,3.6167,3.4125,3.6167,3.4125,3.7833,3.2444,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"150.66\",\"rowIndex\":3,\"columnIndex\":2,\"boundingBox\":[5.4083,3.6167,5.8694,3.6167,5.8694,3.7833,5.4083,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"D\",\"rowIndex\":4,\"columnIndex\":0,\"boundingBox\":[1.0806,3.8264,1.1833,3.8264,1.1833,3.9931,1.0806,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10\",\"rowIndex\":4,\"columnIndex\":1,\"boundingBox\":[3.2444,3.8264,3.4125,3.8264,3.4125,3.9931,3.2444,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"120.00\",\"rowIndex\":4,\"columnIndex\":2,\"boundingBox\":[5.4083,3.8264,5.8694,3.8264,5.8694,3.9931,5.4083,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"E\",\"rowIndex\":5,\"columnIndex\":0,\"boundingBox\":[1.0806,4.0361,1.1611,4.0361,1.1611,4.2028,1.0806,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"40\",\"rowIndex\":5,\"columnIndex\":1,\"boundingBox\":[3.2444,4.0361,3.4125,4.0361,3.4125,4.2028,3.2444,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"100.00\",\"rowIndex\":5,\"columnIndex\":2,\"boundingBox\":[5.4083,4.0361,5.8708,4.0361,5.8708,4.2028,5.4083,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"F\",\"rowIndex\":6,\"columnIndex\":0,\"boundingBox\":[1.0806,4.2458,1.1569,4.2458,1.1569,4.4125,1.0806,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"60\",\"rowIndex\":6,\"columnIndex\":1,\"boundingBox\":[3.2444,4.2458,3.4125,4.2458,3.4125,4.4125,3.2444,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"120.00\",\"rowIndex\":6,\"columnIndex\":2,\"boundingBox\":[5.4083,4.2458,5.8694,4.2458,5.8694,4.4125,5.4083,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"G\",\"rowIndex\":7,\"columnIndex\":0,\"boundingBox\":[1.0806,4.4569,1.1861,4.4569,1.1861,4.6236,1.0806,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"80\",\"rowIndex\":7,\"columnIndex\":1,\"boundingBox\":[3.2444,4.4569,3.4125,4.4569,3.4125,4.6236,3.2444,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"220.00\",\"rowIndex\":7,\"columnIndex\":2,\"boundingBox\":[5.4083,4.4569,5.8708,4.4569,5.8708,4.6236,5.4083,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false}]}],\"clusterId\":0}],\"documentResults\":[],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:06:30 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/dc5eb1c7-5cf8-4b52-9cc1-b467d127df8e/analyzeResults/b25f57b7-098d-48db-9bee-0cb6c54e161e", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "4c55357a-b1f4-41af-aee5-f88ef9ae88fb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "70", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "a4cba91e-92ad-45d4-8309-1b5bcf61f6a1", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-14T18:06:25Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:06:29Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"angle\":0,\"width\":8.5,\"height\":11.0,\"unit\":\"inch\",\"lines\":[]},{\"page\":3,\"angle\":0,\"width\":8.5,\"height\":11.0,\"unit\":\"inch\",\"lines\":[]}],\"pageResults\":[{\"page\":1,\"keyValuePairs\":[{\"key\":{\"text\":\"Invoice For:\",\"boundingBox\":[6.0028,1.0431,7.0528,1.0431,7.0528,1.2667,6.0028,1.2667],\"elements\":null},\"value\":{\"text\":\"Bilbo Baggins 123 Hobbit Lane\",\"boundingBox\":[6.0028,1.4389,7.1083,1.4389,7.1083,1.8264,6.0028,1.8264],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Address:\",\"boundingBox\":[0.8764,1.4681,1.5778,1.4681,1.5778,1.6625,0.8764,1.6625],\"elements\":null},\"value\":{\"text\":\"567 Main St.\",\"boundingBox\":[0.8764,1.8292,1.725,1.8292,1.725,1.9958,0.8764,1.9958],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[6.0028,1.8792,6.9819,1.8792,6.9819,2.0458,6.0028,2.0458],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[6.0028,2.0986,6.9472,2.0986,6.9472,2.2653,6.0028,2.2653],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[0.8764,2.0486,1.8569,2.0486,1.8569,2.2153,0.8764,2.2153],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[0.8764,2.2694,1.8222,2.2694,1.8222,2.4361,0.8764,2.4361],\"elements\":null},\"confidence\":0.29},{\"key\":{\"text\":\"Subtotal:\",\"boundingBox\":[5.5028,4.8861,6.1347,4.8861,6.1347,5.0528,5.5028,5.0528],\"elements\":null},\"value\":{\"text\":\"300.00\",\"boundingBox\":[6.1722,4.8861,6.6361,4.8861,6.6361,5.0528,6.1722,5.0528],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tax:\",\"boundingBox\":[5.5028,5.1069,5.7917,5.1069,5.7917,5.2736,5.5028,5.2736],\"elements\":null},\"value\":{\"text\":\"30.00\",\"boundingBox\":[5.8292,5.1069,6.2069,5.1069,6.2069,5.2736,5.8292,5.2736],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tip:\",\"boundingBox\":[5.5028,5.3264,5.7611,5.3264,5.7611,5.4931,5.5028,5.4931],\"elements\":null},\"value\":{\"text\":\"100.00\",\"boundingBox\":[5.7986,5.3264,6.2639,5.3264,6.2639,5.4931,5.7986,5.4931],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Total:\",\"boundingBox\":[5.5028,5.5472,5.9014,5.5472,5.9014,5.7139,5.5028,5.7139],\"elements\":null},\"value\":{\"text\":\"430.00\",\"boundingBox\":[5.9389,5.5472,6.4028,5.5472,6.4028,5.7139,5.9389,5.7139],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Signature:\",\"boundingBox\":[1.0,6.6431,1.7083,6.6431,1.7083,6.8097,1.0,6.8097],\"elements\":null},\"value\":{\"text\":\"____Bilbo Baggins__________\",\"boundingBox\":[1.7472,6.6431,3.8333,6.6431,3.8333,6.8097,1.7472,6.8097],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"__Tokens__1\",\"boundingBox\":null,\"elements\":null},\"value\":{\"text\":\"Company A Invoice\",\"boundingBox\":[0.8764,1.1014,2.3875,1.1014,2.3875,1.2958,0.8764,1.2958],\"elements\":null},\"confidence\":1.0}],\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"text\":\"Item\",\"rowIndex\":0,\"columnIndex\":0,\"boundingBox\":[1.0806,2.9833,1.3958,2.9833,1.3958,3.15,1.0806,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Quantity\",\"rowIndex\":0,\"columnIndex\":1,\"boundingBox\":[3.2444,2.9833,3.8389,2.9833,3.8389,3.15,3.2444,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Price\",\"rowIndex\":0,\"columnIndex\":2,\"boundingBox\":[5.4083,2.9833,5.7458,2.9833,5.7458,3.15,5.4083,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"A\",\"rowIndex\":1,\"columnIndex\":0,\"boundingBox\":[1.0806,3.1931,1.1764,3.1931,1.1764,3.3597,1.0806,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"1\",\"rowIndex\":1,\"columnIndex\":1,\"boundingBox\":[3.2444,3.1931,3.3292,3.1931,3.3292,3.3597,3.2444,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10.99\",\"rowIndex\":1,\"columnIndex\":2,\"boundingBox\":[5.4083,3.1931,5.7875,3.1931,5.7875,3.3597,5.4083,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"B\",\"rowIndex\":2,\"columnIndex\":0,\"boundingBox\":[1.0806,3.4056,1.1708,3.4056,1.1708,3.5722,1.0806,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"2\",\"rowIndex\":2,\"columnIndex\":1,\"boundingBox\":[3.2444,3.4056,3.3292,3.4056,3.3292,3.5722,3.2444,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"14.67\",\"rowIndex\":2,\"columnIndex\":2,\"boundingBox\":[5.4083,3.4056,5.7861,3.4056,5.7861,3.5722,5.4083,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"C\",\"rowIndex\":3,\"columnIndex\":0,\"boundingBox\":[1.0806,3.6167,1.1694,3.6167,1.1694,3.7833,1.0806,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"4\",\"rowIndex\":3,\"columnIndex\":1,\"boundingBox\":[3.2444,3.6167,3.3292,3.6167,3.3292,3.7833,3.2444,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"15.66\",\"rowIndex\":3,\"columnIndex\":2,\"boundingBox\":[5.4083,3.6167,5.7861,3.6167,5.7861,3.7833,5.4083,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"D\",\"rowIndex\":4,\"columnIndex\":0,\"boundingBox\":[1.0806,3.8264,1.1833,3.8264,1.1833,3.9931,1.0806,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"1\",\"rowIndex\":4,\"columnIndex\":1,\"boundingBox\":[3.2444,3.8264,3.3292,3.8264,3.3292,3.9931,3.2444,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"12.00\",\"rowIndex\":4,\"columnIndex\":2,\"boundingBox\":[5.4083,3.8264,5.7861,3.8264,5.7861,3.9931,5.4083,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"E\",\"rowIndex\":5,\"columnIndex\":0,\"boundingBox\":[1.0806,4.0361,1.1611,4.0361,1.1611,4.2028,1.0806,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"4\",\"rowIndex\":5,\"columnIndex\":1,\"boundingBox\":[3.2444,4.0361,3.3292,4.0361,3.3292,4.2028,3.2444,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10.00\",\"rowIndex\":5,\"columnIndex\":2,\"boundingBox\":[5.4083,4.0361,5.7875,4.0361,5.7875,4.2028,5.4083,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"F\",\"rowIndex\":6,\"columnIndex\":0,\"boundingBox\":[1.0806,4.2458,1.1569,4.2458,1.1569,4.4125,1.0806,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"6\",\"rowIndex\":6,\"columnIndex\":1,\"boundingBox\":[3.2444,4.2458,3.3292,4.2458,3.3292,4.4125,3.2444,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"12.00\",\"rowIndex\":6,\"columnIndex\":2,\"boundingBox\":[5.4083,4.2458,5.7861,4.2458,5.7861,4.4125,5.4083,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"G\",\"rowIndex\":7,\"columnIndex\":0,\"boundingBox\":[1.0806,4.4569,1.1861,4.4569,1.1861,4.6236,1.0806,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"8\",\"rowIndex\":7,\"columnIndex\":1,\"boundingBox\":[3.2444,4.4569,3.3292,4.4569,3.3292,4.6236,3.2444,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"22.00\",\"rowIndex\":7,\"columnIndex\":2,\"boundingBox\":[5.4083,4.4569,5.7875,4.4569,5.7875,4.6236,5.4083,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false}]}],\"clusterId\":0},{\"page\":3,\"keyValuePairs\":[{\"key\":{\"text\":\"Invoice For:\",\"boundingBox\":[6.0028,1.0431,7.0528,1.0431,7.0528,1.2667,6.0028,1.2667],\"elements\":null},\"value\":{\"text\":\"Frodo Baggins 123 Hobbit Lane\",\"boundingBox\":[6.0028,1.4389,7.1083,1.4389,7.1083,1.8264,6.0028,1.8264],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Address:\",\"boundingBox\":[0.8764,1.4681,1.5778,1.4681,1.5778,1.6625,0.8764,1.6625],\"elements\":null},\"value\":{\"text\":\"567 Main St.\",\"boundingBox\":[0.8764,1.8292,1.725,1.8292,1.725,1.9958,0.8764,1.9958],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[6.0028,1.8792,6.9819,1.8792,6.9819,2.0458,6.0028,2.0458],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[6.0028,2.0986,6.9472,2.0986,6.9472,2.2653,6.0028,2.2653],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Redmond, WA\",\"boundingBox\":[0.8764,2.0486,1.8569,2.0486,1.8569,2.2153,0.8764,2.2153],\"elements\":null},\"value\":{\"text\":\"555-555-5555\",\"boundingBox\":[0.8764,2.2694,1.8222,2.2694,1.8222,2.4361,0.8764,2.4361],\"elements\":null},\"confidence\":0.29},{\"key\":{\"text\":\"Subtotal:\",\"boundingBox\":[5.5028,4.8861,6.1347,4.8861,6.1347,5.0528,5.5028,5.0528],\"elements\":null},\"value\":{\"text\":\"3000.00\",\"boundingBox\":[6.1722,4.8861,6.7208,4.8861,6.7208,5.0528,6.1722,5.0528],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tax:\",\"boundingBox\":[5.5028,5.1069,5.7917,5.1069,5.7917,5.2736,5.5028,5.2736],\"elements\":null},\"value\":{\"text\":\"300.00\",\"boundingBox\":[5.8292,5.1069,6.2931,5.1069,6.2931,5.2736,5.8292,5.2736],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Tip:\",\"boundingBox\":[5.5028,5.3264,5.7611,5.3264,5.7611,5.4931,5.5028,5.4931],\"elements\":null},\"value\":{\"text\":\"1000.00\",\"boundingBox\":[5.7986,5.3264,6.3472,5.3264,6.3472,5.4931,5.7986,5.4931],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Total:\",\"boundingBox\":[5.5028,5.5472,5.9014,5.5472,5.9014,5.7139,5.5028,5.7139],\"elements\":null},\"value\":{\"text\":\"4300.00\",\"boundingBox\":[5.9389,5.5472,6.4875,5.5472,6.4875,5.7139,5.9389,5.7139],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"Signature:\",\"boundingBox\":[1.0,6.6431,1.7083,6.6431,1.7083,6.8097,1.0,6.8097],\"elements\":null},\"value\":{\"text\":\"____Frodo Baggins__________\",\"boundingBox\":[1.7472,6.6431,3.8833,6.6431,3.8833,6.8097,1.7472,6.8097],\"elements\":null},\"confidence\":1.0},{\"key\":{\"text\":\"__Tokens__1\",\"boundingBox\":null,\"elements\":null},\"value\":{\"text\":\"Company B Invoice\",\"boundingBox\":[0.8764,1.1014,2.3833,1.1014,2.3833,1.2958,0.8764,1.2958],\"elements\":null},\"confidence\":1.0}],\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"text\":\"Item\",\"rowIndex\":0,\"columnIndex\":0,\"boundingBox\":[1.0806,2.9833,1.3958,2.9833,1.3958,3.15,1.0806,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Quantity\",\"rowIndex\":0,\"columnIndex\":1,\"boundingBox\":[3.2444,2.9833,3.8389,2.9833,3.8389,3.15,3.2444,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"Price\",\"rowIndex\":0,\"columnIndex\":2,\"boundingBox\":[5.4083,2.9833,5.7458,2.9833,5.7458,3.15,5.4083,3.15],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":true,\"isFooter\":false},{\"text\":\"A\",\"rowIndex\":1,\"columnIndex\":0,\"boundingBox\":[1.0806,3.1931,1.1764,3.1931,1.1764,3.3597,1.0806,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10\",\"rowIndex\":1,\"columnIndex\":1,\"boundingBox\":[3.2444,3.1931,3.4125,3.1931,3.4125,3.3597,3.2444,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"100.99\",\"rowIndex\":1,\"columnIndex\":2,\"boundingBox\":[5.4083,3.1931,5.8708,3.1931,5.8708,3.3597,5.4083,3.3597],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"B\",\"rowIndex\":2,\"columnIndex\":0,\"boundingBox\":[1.0806,3.4056,1.1708,3.4056,1.1708,3.5722,1.0806,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"20\",\"rowIndex\":2,\"columnIndex\":1,\"boundingBox\":[3.2444,3.4056,3.4125,3.4056,3.4125,3.5722,3.2444,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"140.67\",\"rowIndex\":2,\"columnIndex\":2,\"boundingBox\":[5.4083,3.4056,5.8694,3.4056,5.8694,3.5722,5.4083,3.5722],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"C\",\"rowIndex\":3,\"columnIndex\":0,\"boundingBox\":[1.0806,3.6167,1.1694,3.6167,1.1694,3.7833,1.0806,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"40\",\"rowIndex\":3,\"columnIndex\":1,\"boundingBox\":[3.2444,3.6167,3.4125,3.6167,3.4125,3.7833,3.2444,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"150.66\",\"rowIndex\":3,\"columnIndex\":2,\"boundingBox\":[5.4083,3.6167,5.8694,3.6167,5.8694,3.7833,5.4083,3.7833],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"D\",\"rowIndex\":4,\"columnIndex\":0,\"boundingBox\":[1.0806,3.8264,1.1833,3.8264,1.1833,3.9931,1.0806,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"10\",\"rowIndex\":4,\"columnIndex\":1,\"boundingBox\":[3.2444,3.8264,3.4125,3.8264,3.4125,3.9931,3.2444,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"120.00\",\"rowIndex\":4,\"columnIndex\":2,\"boundingBox\":[5.4083,3.8264,5.8694,3.8264,5.8694,3.9931,5.4083,3.9931],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"E\",\"rowIndex\":5,\"columnIndex\":0,\"boundingBox\":[1.0806,4.0361,1.1611,4.0361,1.1611,4.2028,1.0806,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"40\",\"rowIndex\":5,\"columnIndex\":1,\"boundingBox\":[3.2444,4.0361,3.4125,4.0361,3.4125,4.2028,3.2444,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"100.00\",\"rowIndex\":5,\"columnIndex\":2,\"boundingBox\":[5.4083,4.0361,5.8708,4.0361,5.8708,4.2028,5.4083,4.2028],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"F\",\"rowIndex\":6,\"columnIndex\":0,\"boundingBox\":[1.0806,4.2458,1.1569,4.2458,1.1569,4.4125,1.0806,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"60\",\"rowIndex\":6,\"columnIndex\":1,\"boundingBox\":[3.2444,4.2458,3.4125,4.2458,3.4125,4.4125,3.2444,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"120.00\",\"rowIndex\":6,\"columnIndex\":2,\"boundingBox\":[5.4083,4.2458,5.8694,4.2458,5.8694,4.4125,5.4083,4.4125],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"G\",\"rowIndex\":7,\"columnIndex\":0,\"boundingBox\":[1.0806,4.4569,1.1861,4.4569,1.1861,4.6236,1.0806,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"80\",\"rowIndex\":7,\"columnIndex\":1,\"boundingBox\":[3.2444,4.4569,3.4125,4.4569,3.4125,4.6236,3.2444,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false},{\"text\":\"220.00\",\"rowIndex\":7,\"columnIndex\":2,\"boundingBox\":[5.4083,4.4569,5.8708,4.4569,5.8708,4.6236,5.4083,4.6236],\"confidence\":1.0,\"rowSpan\":1,\"columnSpan\":1,\"elements\":null,\"isHeader\":false,\"isFooter\":false}]}],\"clusterId\":0}],\"documentResults\":[],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:06:30 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeCustomFormUrlMultiPageLabeled.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeCustomFormUrlMultiPageLabeled.json new file mode 100644 index 000000000000..3111e8131843 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeCustomFormUrlMultiPageLabeled.json @@ -0,0 +1,244 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "2c0de2bc-337f-4472-b5ff-3902d475085a", + "Content-Type" : "application/json" + }, + "Response" : { + "x-envoy-upstream-service-time" : "59", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "ac80d0c2-fe46-4d3c-bc99-2ea13332f41e", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "201", + "Date" : "Thu, 14 May 2020 18:01:54 GMT", + "Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/custom/models/ffea8132-98d4-4c7f-8786-dcba69222321" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8e5c21d5-fbba-43ba-babb-5ccf4eba0b76" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "43", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "106c7f0f-b0a6-4ca2-bc0e-dcc4d6440034", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"ffea8132-98d4-4c7f-8786-dcba69222321\",\"status\":\"creating\",\"createdDateTime\":\"2020-05-14T18:01:55Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:01:55Z\"}}", + "Date" : "Thu, 14 May 2020 18:02:00 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ed4398ea-7444-48e7-bd40-ea3adf1d8a9a" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "81", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "1ea51c45-e843-4f99-bdd6-090ed912253f", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"ffea8132-98d4-4c7f-8786-dcba69222321\",\"status\":\"creating\",\"createdDateTime\":\"2020-05-14T18:01:55Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:01:55Z\"}}", + "Date" : "Thu, 14 May 2020 18:02:05 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5f7d8368-e89f-48f5-a8f7-2da617d96a04" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "76", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "782bab59-498d-4c7b-ae8b-c0f5165f8892", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"ffea8132-98d4-4c7f-8786-dcba69222321\",\"status\":\"ready\",\"createdDateTime\":\"2020-05-14T18:01:55Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:08Z\"},\"trainResult\":{\"averageModelAccuracy\":0.889,\"trainingDocuments\":[{\"documentName\":\"multipage_invoice1.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice2.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice3.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice4.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice5.pdf\",\"pages\":3,\"status\":\"succeeded\"}],\"fields\":[{\"fieldName\":\"Customer2\",\"accuracy\":1.0},{\"fieldName\":\"CustomerAddress\",\"accuracy\":1.0},{\"fieldName\":\"CustomerName\",\"accuracy\":1.0},{\"fieldName\":\"CustomerPhoneNumber\",\"accuracy\":1.0},{\"fieldName\":\"FirstItem\",\"accuracy\":1.0},{\"fieldName\":\"FirstPrice\",\"accuracy\":1.0},{\"fieldName\":\"FirstQuantity\",\"accuracy\":1.0},{\"fieldName\":\"Merchant\",\"accuracy\":0.0},{\"fieldName\":\"Merchant2\",\"accuracy\":0.0},{\"fieldName\":\"MerchantAddress\",\"accuracy\":1.0},{\"fieldName\":\"MerchantPhoneNumber\",\"accuracy\":1.0},{\"fieldName\":\"Signature\",\"accuracy\":1.0},{\"fieldName\":\"Signature2\",\"accuracy\":1.0},{\"fieldName\":\"Subtotal\",\"accuracy\":1.0},{\"fieldName\":\"Tax\",\"accuracy\":1.0},{\"fieldName\":\"Tip\",\"accuracy\":1.0},{\"fieldName\":\"Total\",\"accuracy\":1.0},{\"fieldName\":\"Total2\",\"accuracy\":1.0}],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:02:10 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321?includeKeys=true", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "26e9812a-90c2-4bbe-8a07-a3fbc23376f9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "32", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "84e3dfab-5540-45ba-90f5-3623c9d389e9", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"modelInfo\":{\"modelId\":\"ffea8132-98d4-4c7f-8786-dcba69222321\",\"status\":\"ready\",\"createdDateTime\":\"2020-05-14T18:01:55Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:08Z\"},\"trainResult\":{\"averageModelAccuracy\":0.889,\"trainingDocuments\":[{\"documentName\":\"multipage_invoice1.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice2.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice3.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice4.pdf\",\"pages\":3,\"status\":\"succeeded\"},{\"documentName\":\"multipage_invoice5.pdf\",\"pages\":3,\"status\":\"succeeded\"}],\"fields\":[{\"fieldName\":\"Customer2\",\"accuracy\":1.0},{\"fieldName\":\"CustomerAddress\",\"accuracy\":1.0},{\"fieldName\":\"CustomerName\",\"accuracy\":1.0},{\"fieldName\":\"CustomerPhoneNumber\",\"accuracy\":1.0},{\"fieldName\":\"FirstItem\",\"accuracy\":1.0},{\"fieldName\":\"FirstPrice\",\"accuracy\":1.0},{\"fieldName\":\"FirstQuantity\",\"accuracy\":1.0},{\"fieldName\":\"Merchant\",\"accuracy\":0.0},{\"fieldName\":\"Merchant2\",\"accuracy\":0.0},{\"fieldName\":\"MerchantAddress\",\"accuracy\":1.0},{\"fieldName\":\"MerchantPhoneNumber\",\"accuracy\":1.0},{\"fieldName\":\"Signature\",\"accuracy\":1.0},{\"fieldName\":\"Signature2\",\"accuracy\":1.0},{\"fieldName\":\"Subtotal\",\"accuracy\":1.0},{\"fieldName\":\"Tax\",\"accuracy\":1.0},{\"fieldName\":\"Tip\",\"accuracy\":1.0},{\"fieldName\":\"Total\",\"accuracy\":1.0},{\"fieldName\":\"Total2\",\"accuracy\":1.0}],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:02:10 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyze?includeTextDetails=false", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "eff5a15e-6d14-418e-b4d6-468c089b9ad2", + "Content-Type" : "application/json" + }, + "Response" : { + "x-envoy-upstream-service-time" : "82", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "c6fa3c6a-5ed8-4216-90fa-ebf8ada9485e", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeresults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Date" : "Thu, 14 May 2020 18:02:11 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeResults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b92cde82-ef41-498a-98d1-4dffa713158b" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "17", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "c559f56d-33c0-4a5e-9c3d-277f5a2f347f", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"notStarted\",\"createdDateTime\":\"2020-05-14T18:02:12Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:12Z\"}", + "Date" : "Thu, 14 May 2020 18:02:16 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeResults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "8d986a19-9b31-403f-937d-1e33e6c40746" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "19", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "54543e96-c16c-415e-a921-21489c086cd2", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"notStarted\",\"createdDateTime\":\"2020-05-14T18:02:12Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:12Z\"}", + "Date" : "Thu, 14 May 2020 18:02:21 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeResults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "6335f2eb-d13a-4dbc-a2db-824c217bb4c3" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "16", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "4e016018-dda3-4b2d-be2f-a1fbae565717", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"notStarted\",\"createdDateTime\":\"2020-05-14T18:02:12Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:12Z\"}", + "Date" : "Thu, 14 May 2020 18:02:27 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeResults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ef4bb18e-fae3-484f-af14-a52d42514784" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "179", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "1768ea1e-0e8a-4e53-82d3-1250fd8914ec", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"notStarted\",\"createdDateTime\":\"2020-05-14T18:02:12Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:12Z\"}", + "Date" : "Thu, 14 May 2020 18:02:33 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeResults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "9a2f55c4-2d02-4c4e-aae6-b6fb84f3a183" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "23", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "86980642-a4a6-40dd-985b-36bad9766195", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-14T18:02:12Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:34Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\"},{\"page\":2,\"language\":\"en\",\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\"},{\"page\":3,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\"}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"10.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"2\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"14.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"15.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"10.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"6\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"8\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"22.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281]}]}]},{\"page\":2,\"tables\":[]},{\"page\":3,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"100.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"140.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"150.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"100.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"60\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"80\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"220.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281]}]}]}],\"documentResults\":[{\"docType\":\"custom:form\",\"pageRange\":[1,3],\"fields\":{\"FirstItem\":{\"type\":\"string\",\"valueString\":\"A\",\"text\":\"A\",\"page\":1,\"boundingBox\":[1.085,3.21,1.175,3.21,1.175,3.3200000000000003,1.085,3.3200000000000003],\"confidence\":1.0},\"CustomerPhoneNumber\":{\"type\":\"string\",\"valueString\":\"555-555-5555\",\"text\":\"555-555-5555\",\"page\":1,\"boundingBox\":[6.01,2.12,6.9350000000000005,2.12,6.9350000000000005,2.225,6.01,2.225],\"confidence\":1.0},\"Merchant\":{\"type\":\"string\",\"valueString\":\"A\",\"text\":\"A\",\"page\":1,\"boundingBox\":[1.67,1.125,1.7750000000000001,1.125,1.7750000000000001,1.245,1.67,1.245],\"confidence\":1.0},\"CustomerAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane Redmond, WA\",\"text\":\"123 Hobbit Lane Redmond, WA\",\"page\":1,\"boundingBox\":[6.0150000000000006,1.67,7.1000000000000005,1.67,7.1000000000000005,2.0300000000000002,6.0150000000000006,2.0300000000000002],\"confidence\":1.0},\"Merchant2\":{\"type\":\"string\",\"valueString\":\"Company\",\"text\":\"Company\",\"page\":1,\"boundingBox\":[0.885,1.125,1.62,1.125,1.62,1.28,0.885,1.28],\"confidence\":1.0},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"567 Main St. Redmond, WA\",\"text\":\"567 Main St. Redmond, WA\",\"page\":1,\"boundingBox\":[0.885,1.845,1.855,1.845,1.855,2.2,0.885,2.2],\"confidence\":1.0},\"Signature2\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"page\":3,\"boundingBox\":[2.07,6.655,3.09,6.655,3.09,6.8,2.07,6.8],\"confidence\":0.16},\"FirstPrice\":{\"type\":\"string\",\"valueString\":\"10.99\",\"text\":\"10.99\",\"page\":1,\"boundingBox\":[5.425,3.21,5.78,3.21,5.78,3.3200000000000003,5.425,3.3200000000000003],\"confidence\":1.0},\"FirstQuantity\":{\"type\":\"string\",\"valueString\":\"1\",\"text\":\"1\",\"page\":1,\"boundingBox\":[3.2600000000000002,3.21,3.3200000000000003,3.21,3.3200000000000003,3.3200000000000003,3.2600000000000002,3.3200000000000003],\"confidence\":1.0},\"CustomerName\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"page\":1,\"boundingBox\":[6.0150000000000006,1.45,6.8950000000000005,1.45,6.8950000000000005,1.595,6.0150000000000006,1.595],\"confidence\":1.0},\"Tax\":{\"type\":\"string\",\"valueString\":\"30.00\",\"text\":\"30.00\",\"page\":1,\"boundingBox\":[5.835,5.125,6.2,5.125,6.2,5.235,5.835,5.235],\"confidence\":1.0},\"Customer2\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"page\":3,\"boundingBox\":[6.0150000000000006,1.45,6.95,1.45,6.95,1.595,6.0150000000000006,1.595],\"confidence\":1.0},\"Total2\":{\"type\":\"string\",\"valueString\":\"4300.00\",\"text\":\"4300.00\",\"page\":3,\"boundingBox\":[5.94,5.565,6.48,5.565,6.48,5.675,5.94,5.675],\"confidence\":1.0},\"Tip\":{\"type\":\"string\",\"valueString\":\"100.00\",\"text\":\"100.00\",\"page\":1,\"boundingBox\":[5.8100000000000005,5.345,6.26,5.345,6.26,5.455,5.8100000000000005,5.455],\"confidence\":1.0},\"MerchantPhoneNumber\":{\"type\":\"string\",\"valueString\":\"555-555-5555\",\"text\":\"555-555-5555\",\"page\":1,\"boundingBox\":[0.885,2.29,1.81,2.29,1.81,2.395,0.885,2.395],\"confidence\":1.0},\"Subtotal\":{\"type\":\"string\",\"valueString\":\"300.00\",\"text\":\"300.00\",\"page\":1,\"boundingBox\":[6.18,4.905,6.63,4.905,6.63,5.015,6.18,5.015],\"confidence\":1.0},\"Total\":{\"type\":\"string\",\"valueString\":\"430.00\",\"text\":\"430.00\",\"page\":1,\"boundingBox\":[5.94,5.565,6.4,5.565,6.4,5.675,5.94,5.675],\"confidence\":1.0},\"Signature\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"page\":1,\"boundingBox\":[2.05,6.655,3.04,6.655,3.04,6.8,2.05,6.8],\"confidence\":1.0}}}],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:02:38 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//custom/models/ffea8132-98d4-4c7f-8786-dcba69222321/analyzeResults/935379b6-3d1c-4d75-bdb2-698fe5bbb508", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "a6f0a5ae-2333-4747-98d1-a95edd7993e2" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "19", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "0bdfe4fe-39e5-4a53-bdaf-f42a1f8a0544", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-14T18:02:12Z\",\"lastUpdatedDateTime\":\"2020-05-14T18:02:34Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\"},{\"page\":2,\"language\":\"en\",\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\"},{\"page\":3,\"language\":\"en\",\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\"}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"10.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"2\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"14.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"15.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"1\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"4\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"10.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"6\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"12.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"8\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"22.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281]}]}]},{\"page\":2,\"tables\":[]},{\"page\":3,\"tables\":[{\"rows\":8,\"columns\":3,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Item\",\"boundingBox\":[1.0037,2.9443,3.1681,2.9443,3.1681,3.1543,1.0037,3.1543]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[3.1681,2.9443,5.3353,2.9443,5.3353,3.1543,3.1681,3.1543]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Price\",\"boundingBox\":[5.3353,2.9443,7.4997,2.9443,7.4997,3.1543,5.3353,3.1543]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"A\",\"boundingBox\":[1.0037,3.1543,3.1681,3.1543,3.1681,3.3643,1.0037,3.3643]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.1543,5.3353,3.1543,5.3353,3.3643,3.1681,3.3643]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"100.99\",\"boundingBox\":[5.3353,3.1543,7.4997,3.1543,7.4997,3.3643,5.3353,3.3643]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"B\",\"boundingBox\":[1.0037,3.3643,3.1681,3.3643,3.1681,3.5776,1.0037,3.5776]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[3.1681,3.3643,5.3353,3.3643,5.3353,3.5776,3.1681,3.5776]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"140.67\",\"boundingBox\":[5.3353,3.3643,7.4997,3.3643,7.4997,3.5776,5.3353,3.5776]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"C\",\"boundingBox\":[1.0037,3.5776,3.1681,3.5776,3.1681,3.7876,1.0037,3.7876]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.5776,5.3353,3.5776,5.3353,3.7876,3.1681,3.7876]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"150.66\",\"boundingBox\":[5.3353,3.5776,7.4997,3.5776,7.4997,3.7876,5.3353,3.7876]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"D\",\"boundingBox\":[1.0037,3.7876,3.1681,3.7876,3.1681,3.9976,1.0037,3.9976]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"10\",\"boundingBox\":[3.1681,3.7876,5.3353,3.7876,5.3353,3.9976,3.1681,3.9976]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,3.7876,7.4997,3.7876,7.4997,3.9976,5.3353,3.9976]},{\"rowIndex\":5,\"columnIndex\":0,\"text\":\"E\",\"boundingBox\":[1.0037,3.9976,3.1681,3.9976,3.1681,4.2081,1.0037,4.2081]},{\"rowIndex\":5,\"columnIndex\":1,\"text\":\"40\",\"boundingBox\":[3.1681,3.9976,5.3353,3.9976,5.3353,4.2081,3.1681,4.2081]},{\"rowIndex\":5,\"columnIndex\":2,\"text\":\"100.00\",\"boundingBox\":[5.3353,3.9976,7.4997,3.9976,7.4997,4.2081,5.3353,4.2081]},{\"rowIndex\":6,\"columnIndex\":0,\"text\":\"F\",\"boundingBox\":[1.0037,4.2081,3.1681,4.2081,3.1681,4.4181,1.0037,4.4181]},{\"rowIndex\":6,\"columnIndex\":1,\"text\":\"60\",\"boundingBox\":[3.1681,4.2081,5.3353,4.2081,5.3353,4.4181,3.1681,4.4181]},{\"rowIndex\":6,\"columnIndex\":2,\"text\":\"120.00\",\"boundingBox\":[5.3353,4.2081,7.4997,4.2081,7.4997,4.4181,5.3353,4.4181]},{\"rowIndex\":7,\"columnIndex\":0,\"text\":\"G\",\"boundingBox\":[1.0037,4.4181,3.1681,4.4181,3.1681,4.6281,1.0037,4.6281]},{\"rowIndex\":7,\"columnIndex\":1,\"text\":\"80\",\"boundingBox\":[3.1681,4.4181,5.3353,4.4181,5.3353,4.6281,3.1681,4.6281]},{\"rowIndex\":7,\"columnIndex\":2,\"text\":\"220.00\",\"boundingBox\":[5.3353,4.4181,7.4997,4.4181,7.4997,4.6281,5.3353,4.6281]}]}]}],\"documentResults\":[{\"docType\":\"custom:form\",\"pageRange\":[1,3],\"fields\":{\"FirstItem\":{\"type\":\"string\",\"valueString\":\"A\",\"text\":\"A\",\"page\":1,\"boundingBox\":[1.085,3.21,1.175,3.21,1.175,3.3200000000000003,1.085,3.3200000000000003],\"confidence\":1.0},\"CustomerPhoneNumber\":{\"type\":\"string\",\"valueString\":\"555-555-5555\",\"text\":\"555-555-5555\",\"page\":1,\"boundingBox\":[6.01,2.12,6.9350000000000005,2.12,6.9350000000000005,2.225,6.01,2.225],\"confidence\":1.0},\"Merchant\":{\"type\":\"string\",\"valueString\":\"A\",\"text\":\"A\",\"page\":1,\"boundingBox\":[1.67,1.125,1.7750000000000001,1.125,1.7750000000000001,1.245,1.67,1.245],\"confidence\":1.0},\"CustomerAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane Redmond, WA\",\"text\":\"123 Hobbit Lane Redmond, WA\",\"page\":1,\"boundingBox\":[6.0150000000000006,1.67,7.1000000000000005,1.67,7.1000000000000005,2.0300000000000002,6.0150000000000006,2.0300000000000002],\"confidence\":1.0},\"Merchant2\":{\"type\":\"string\",\"valueString\":\"Company\",\"text\":\"Company\",\"page\":1,\"boundingBox\":[0.885,1.125,1.62,1.125,1.62,1.28,0.885,1.28],\"confidence\":1.0},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"567 Main St. Redmond, WA\",\"text\":\"567 Main St. Redmond, WA\",\"page\":1,\"boundingBox\":[0.885,1.845,1.855,1.845,1.855,2.2,0.885,2.2],\"confidence\":1.0},\"Signature2\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"page\":3,\"boundingBox\":[2.07,6.655,3.09,6.655,3.09,6.8,2.07,6.8],\"confidence\":0.16},\"FirstPrice\":{\"type\":\"string\",\"valueString\":\"10.99\",\"text\":\"10.99\",\"page\":1,\"boundingBox\":[5.425,3.21,5.78,3.21,5.78,3.3200000000000003,5.425,3.3200000000000003],\"confidence\":1.0},\"FirstQuantity\":{\"type\":\"string\",\"valueString\":\"1\",\"text\":\"1\",\"page\":1,\"boundingBox\":[3.2600000000000002,3.21,3.3200000000000003,3.21,3.3200000000000003,3.3200000000000003,3.2600000000000002,3.3200000000000003],\"confidence\":1.0},\"CustomerName\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"page\":1,\"boundingBox\":[6.0150000000000006,1.45,6.8950000000000005,1.45,6.8950000000000005,1.595,6.0150000000000006,1.595],\"confidence\":1.0},\"Tax\":{\"type\":\"string\",\"valueString\":\"30.00\",\"text\":\"30.00\",\"page\":1,\"boundingBox\":[5.835,5.125,6.2,5.125,6.2,5.235,5.835,5.235],\"confidence\":1.0},\"Customer2\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"page\":3,\"boundingBox\":[6.0150000000000006,1.45,6.95,1.45,6.95,1.595,6.0150000000000006,1.595],\"confidence\":1.0},\"Total2\":{\"type\":\"string\",\"valueString\":\"4300.00\",\"text\":\"4300.00\",\"page\":3,\"boundingBox\":[5.94,5.565,6.48,5.565,6.48,5.675,5.94,5.675],\"confidence\":1.0},\"Tip\":{\"type\":\"string\",\"valueString\":\"100.00\",\"text\":\"100.00\",\"page\":1,\"boundingBox\":[5.8100000000000005,5.345,6.26,5.345,6.26,5.455,5.8100000000000005,5.455],\"confidence\":1.0},\"MerchantPhoneNumber\":{\"type\":\"string\",\"valueString\":\"555-555-5555\",\"text\":\"555-555-5555\",\"page\":1,\"boundingBox\":[0.885,2.29,1.81,2.29,1.81,2.395,0.885,2.395],\"confidence\":1.0},\"Subtotal\":{\"type\":\"string\",\"valueString\":\"300.00\",\"text\":\"300.00\",\"page\":1,\"boundingBox\":[6.18,4.905,6.63,4.905,6.63,5.015,6.18,5.015],\"confidence\":1.0},\"Total\":{\"type\":\"string\",\"valueString\":\"430.00\",\"text\":\"430.00\",\"page\":1,\"boundingBox\":[5.94,5.565,6.4,5.565,6.4,5.675,5.94,5.675],\"confidence\":1.0},\"Signature\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"page\":1,\"boundingBox\":[2.05,6.655,3.04,6.655,3.04,6.8,2.05,6.8],\"confidence\":1.0}}}],\"errors\":[]}}", + "Date" : "Thu, 14 May 2020 18:02:38 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutDataWithNullData.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutDataWithNullData.json deleted file mode 100644 index 7ad05cbc369b..000000000000 --- a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeLayoutDataWithNullData.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "networkCallRecords" : [ { - "Method" : "POST", - "Uri" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", - "Headers" : { - "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", - "x-ms-client-request-id" : "bff261c8-9c37-492e-9685-42fddd0c7973", - "Content-Type" : "image/png" - }, - "Response" : { - "x-envoy-upstream-service-time" : "152", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-content-type-options" : "nosniff", - "apim-request-id" : "bc361a29-b0ad-4990-b4e0-8b21a32b953e", - "retry-after" : "0", - "Content-Length" : "0", - "StatusCode" : "202", - "Operation-Location" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview/layout/analyzeResults/bc361a29-b0ad-4990-b4e0-8b21a32b953e", - "Date" : "Wed, 22 Apr 2020 22:29:45 GMT" - }, - "Exception" : null - }, { - "Method" : "GET", - "Uri" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyzeResults/bc361a29-b0ad-4990-b4e0-8b21a32b953e", - "Headers" : { - "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", - "x-ms-client-request-id" : "948734bd-5ba5-41f5-aec4-5fd5590ad637" - }, - "Response" : { - "Transfer-Encoding" : "chunked", - "x-envoy-upstream-service-time" : "38", - "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", - "x-content-type-options" : "nosniff", - "apim-request-id" : "036ceeae-f55c-4299-aab7-2c3f15f78ebc", - "retry-after" : "0", - "StatusCode" : "200", - "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-04-22T22:29:45Z\",\"lastUpdatedDateTime\":\"2020-04-22T22:29:47Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"language\":\"en\",\"angle\":0,\"width\":1700,\"height\":2200,\"unit\":\"pixel\",\"lines\":[{\"language\":\"en\",\"boundingBox\":[137,140,351,140,351,167,137,166],\"text\":\"Purchase Order\",\"words\":[{\"boundingBox\":[137,140,263,140,263,168,138,166],\"text\":\"Purchase\",\"confidence\":0.959},{\"boundingBox\":[271,140,351,140,351,168,272,168],\"text\":\"Order\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[620,204,1073,201,1074,264,620,266],\"text\":\"Hero Limited\",\"words\":[{\"boundingBox\":[622,207,788,204,787,266,621,266],\"text\":\"Hero\",\"confidence\":0.959},{\"boundingBox\":[811,204,1075,202,1075,266,811,266],\"text\":\"Limited\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[165,351,529,350,530,377,165,379],\"text\":\"Company Phone: 555-348-6512\",\"words\":[{\"boundingBox\":[167,352,275,351,275,379,167,379],\"text\":\"Company\",\"confidence\":0.959},{\"boundingBox\":[281,351,362,351,362,378,280,379],\"text\":\"Phone:\",\"confidence\":0.958},{\"boundingBox\":[367,351,529,352,529,374,367,378],\"text\":\"555-348-6512\",\"confidence\":0.946}]},{\"language\":\"en\",\"boundingBox\":[1114,320,1551,320,1551,370,1114,370],\"text\":\"Purchase Order\",\"words\":[{\"boundingBox\":[1115,322,1377,320,1377,371,1117,371],\"text\":\"Purchase\",\"confidence\":0.959},{\"boundingBox\":[1396,321,1550,321,1549,371,1396,371],\"text\":\"Order\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[167,392,534,392,534,419,167,418],\"text\":\"Website: www.herolimited.com\",\"words\":[{\"boundingBox\":[168,392,270,393,269,419,167,418],\"text\":\"Website:\",\"confidence\":0.957},{\"boundingBox\":[275,393,528,393,529,418,274,419],\"text\":\"www.herolimited.com\",\"confidence\":0.872}]},{\"language\":\"en\",\"boundingBox\":[164,437,236,437,236,459,164,459],\"text\":\"Email:\",\"words\":[{\"boundingBox\":[165,437,236,437,237,460,165,459],\"text\":\"Email:\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[1025,420,1317,419,1317,449,1025,449],\"text\":\"Dated As: 12/20/2020\",\"words\":[{\"boundingBox\":[1026,420,1112,421,1112,450,1025,449],\"text\":\"Dated\",\"confidence\":0.959},{\"boundingBox\":[1118,421,1163,421,1163,450,1117,450],\"text\":\"As:\",\"confidence\":0.957},{\"boundingBox\":[1169,421,1317,420,1317,450,1168,450],\"text\":\"12/20/2020\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[166,480,482,479,482,502,166,503],\"text\":\"accounts@herolimited.com\",\"words\":[{\"boundingBox\":[166,484,475,480,473,503,166,503],\"text\":\"accounts@herolimited.com\",\"confidence\":0.856}]},{\"language\":\"en\",\"boundingBox\":[1025,461,1376,461,1376,488,1025,490],\"text\":\"Purchase Order #: 948284\",\"words\":[{\"boundingBox\":[1027,463,1154,461,1153,490,1026,489],\"text\":\"Purchase\",\"confidence\":0.959},{\"boundingBox\":[1161,461,1241,461,1240,490,1160,490],\"text\":\"Order\",\"confidence\":0.959},{\"boundingBox\":[1246,461,1278,461,1277,489,1246,489],\"text\":\"#:\",\"confidence\":0.959},{\"boundingBox\":[1283,461,1377,462,1376,488,1282,489],\"text\":\"948284\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[166,546,397,546,397,594,166,594],\"text\":\"Shipped To\",\"words\":[{\"boundingBox\":[167,546,336,548,337,593,168,595],\"text\":\"Shipped\",\"confidence\":0.959},{\"boundingBox\":[346,548,396,548,397,593,347,593],\"text\":\"To\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[160,608,518,608,518,640,160,640],\"text\":\"Vendor Name: Hillary Swank\",\"words\":[{\"boundingBox\":[162,610,257,610,255,640,160,637],\"text\":\"Vendor\",\"confidence\":0.959},{\"boundingBox\":[262,610,347,610,346,641,261,640],\"text\":\"Name:\",\"confidence\":0.959},{\"boundingBox\":[352,610,434,609,433,641,351,641],\"text\":\"Hillary\",\"confidence\":0.959},{\"boundingBox\":[439,609,518,609,517,640,438,641],\"text\":\"Swank\",\"confidence\":0.954}]},{\"language\":\"en\",\"boundingBox\":[160,648,628,645,629,680,160,682],\"text\":\"Company Name: Higgly Wiggly Books\",\"words\":[{\"boundingBox\":[162,648,282,647,281,681,161,678],\"text\":\"Company\",\"confidence\":0.959},{\"boundingBox\":[288,647,373,647,372,682,287,682],\"text\":\"Name:\",\"confidence\":0.911},{\"boundingBox\":[379,647,456,647,455,682,378,682],\"text\":\"Higgly\",\"confidence\":0.959},{\"boundingBox\":[462,647,549,646,548,679,461,682],\"text\":\"Wiggly\",\"confidence\":0.959},{\"boundingBox\":[555,646,629,646,628,676,554,679],\"text\":\"Books\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[161,684,526,684,526,712,161,712],\"text\":\"Address: 938 NE Burner Road\",\"words\":[{\"boundingBox\":[162,685,271,685,271,713,162,712],\"text\":\"Address:\",\"confidence\":0.958},{\"boundingBox\":[277,685,324,685,324,713,277,713],\"text\":\"938\",\"confidence\":0.947},{\"boundingBox\":[330,685,365,685,365,713,329,713],\"text\":\"NE\",\"confidence\":0.958},{\"boundingBox\":[370,685,456,685,456,713,370,713],\"text\":\"Burner\",\"confidence\":0.958},{\"boundingBox\":[462,685,526,686,526,713,461,713],\"text\":\"Road\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[274,722,603,720,604,751,274,754],\"text\":\"Boulder City, CO 92848\",\"words\":[{\"boundingBox\":[279,723,375,721,374,754,278,754],\"text\":\"Boulder\",\"confidence\":0.959},{\"boundingBox\":[381,721,437,721,436,753,380,754],\"text\":\"City,\",\"confidence\":0.959},{\"boundingBox\":[443,721,479,721,478,753,442,753],\"text\":\"CO\",\"confidence\":0.886},{\"boundingBox\":[485,721,568,721,568,751,484,753],\"text\":\"92848\",\"confidence\":0.937}]},{\"language\":\"en\",\"boundingBox\":[612,721,884,721,884,749,612,749],\"text\":\"Phone: 938-294-2949\",\"words\":[{\"boundingBox\":[614,722,707,722,707,750,614,750],\"text\":\"Phone:\",\"confidence\":0.952},{\"boundingBox\":[713,722,884,722,884,749,713,750],\"text\":\"938-294-2949\",\"confidence\":0.956}]},{\"language\":\"en\",\"boundingBox\":[165,783,451,783,451,827,166,830],\"text\":\"Shipped From\",\"words\":[{\"boundingBox\":[167,784,336,784,335,829,166,830],\"text\":\"Shipped\",\"confidence\":0.867},{\"boundingBox\":[345,784,441,783,440,825,344,829],\"text\":\"From\",\"confidence\":0.918}]},{\"language\":\"en\",\"boundingBox\":[165,851,446,851,446,881,165,880],\"text\":\"Name: Bernie Sanders\",\"words\":[{\"boundingBox\":[166,851,252,853,251,880,165,881],\"text\":\"Name:\",\"confidence\":0.956},{\"boundingBox\":[258,853,339,854,337,880,257,880],\"text\":\"Bernie\",\"confidence\":0.958},{\"boundingBox\":[345,854,447,853,445,881,343,880],\"text\":\"Sanders\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[164,889,629,889,629,920,164,920],\"text\":\"Company Name: Jupiter Book Supply\",\"words\":[{\"boundingBox\":[167,891,287,890,287,920,166,920],\"text\":\"Company\",\"confidence\":0.958},{\"boundingBox\":[293,890,376,890,375,921,292,920],\"text\":\"Name:\",\"confidence\":0.958},{\"boundingBox\":[382,890,470,890,469,921,381,921],\"text\":\"Jupiter\",\"confidence\":0.958},{\"boundingBox\":[476,890,540,890,539,921,475,921],\"text\":\"Book\",\"confidence\":0.959},{\"boundingBox\":[546,890,629,890,629,921,545,921],\"text\":\"Supply\",\"confidence\":0.947}]},{\"language\":\"en\",\"boundingBox\":[164,926,520,926,520,953,164,953],\"text\":\"Address: 383 N Kinnick Road\",\"words\":[{\"boundingBox\":[166,927,277,927,277,953,165,954],\"text\":\"Address:\",\"confidence\":0.958},{\"boundingBox\":[283,927,330,927,329,953,282,953],\"text\":\"383\",\"confidence\":0.958},{\"boundingBox\":[335,927,353,927,352,953,334,953],\"text\":\"N\",\"confidence\":0.888},{\"boundingBox\":[362,927,452,927,451,954,361,953],\"text\":\"Kinnick\",\"confidence\":0.958},{\"boundingBox\":[457,927,521,927,521,954,457,954],\"text\":\"Road\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[280,964,516,964,516,991,280,991],\"text\":\"Seattle, WA 38383\",\"words\":[{\"boundingBox\":[284,965,381,965,380,992,283,992],\"text\":\"Seattle,\",\"confidence\":0.959},{\"boundingBox\":[386,965,432,965,431,992,385,992],\"text\":\"WA\",\"confidence\":0.944},{\"boundingBox\":[438,965,516,964,515,991,437,992],\"text\":\"38383\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[759,963,1036,963,1036,991,759,991],\"text\":\"Phone: 932-299-0292\",\"words\":[{\"boundingBox\":[761,964,854,963,852,991,760,990],\"text\":\"Phone:\",\"confidence\":0.959},{\"boundingBox\":[859,963,1034,964,1032,991,857,991],\"text\":\"932-299-0292\",\"confidence\":0.953}]},{\"language\":\"en\",\"boundingBox\":[447,1045,557,1045,557,1079,447,1079],\"text\":\"Details\",\"words\":[{\"boundingBox\":[448,1048,555,1046,556,1080,449,1079],\"text\":\"Details\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[889,1045,1030,1046,1030,1084,889,1084],\"text\":\"Quantity\",\"words\":[{\"boundingBox\":[889,1046,1029,1046,1027,1084,890,1083],\"text\":\"Quantity\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[1114,1046,1271,1047,1271,1078,1114,1077],\"text\":\"Unit Price\",\"words\":[{\"boundingBox\":[1114,1048,1184,1047,1184,1078,1114,1078],\"text\":\"Unit\",\"confidence\":0.959},{\"boundingBox\":[1190,1047,1271,1047,1271,1079,1190,1078],\"text\":\"Price\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1384,1047,1469,1046,1470,1076,1385,1077],\"text\":\"Total\",\"words\":[{\"boundingBox\":[1387,1047,1470,1046,1470,1076,1387,1077],\"text\":\"Total\",\"confidence\":0.858}]},{\"language\":\"en\",\"boundingBox\":[172,1094,280,1096,279,1124,172,1121],\"text\":\"Bindings\",\"words\":[{\"boundingBox\":[172,1094,278,1097,278,1124,172,1121],\"text\":\"Bindings\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[859,1091,894,1089,895,1118,860,1120],\"text\":\"20\",\"words\":[{\"boundingBox\":[861,1091,893,1089,895,1118,863,1120],\"text\":\"20\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1241,1095,1296,1094,1296,1118,1241,1118],\"text\":\"1.00\",\"words\":[{\"boundingBox\":[1242,1094,1295,1094,1295,1118,1242,1118],\"text\":\"1.00\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1459,1095,1531,1093,1531,1118,1459,1119],\"text\":\"20.00\",\"words\":[{\"boundingBox\":[1459,1094,1530,1093,1531,1118,1460,1119],\"text\":\"20.00\",\"confidence\":0.957}]},{\"language\":\"en\",\"boundingBox\":[169,1135,329,1134,329,1162,169,1163],\"text\":\"Covers Small\",\"words\":[{\"boundingBox\":[173,1135,257,1135,256,1163,172,1163],\"text\":\"Covers\",\"confidence\":0.959},{\"boundingBox\":[262,1135,329,1134,328,1163,262,1163],\"text\":\"Small\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[860,1137,893,1135,893,1158,861,1160],\"text\":\"20\",\"words\":[{\"boundingBox\":[862,1137,892,1135,893,1158,863,1160],\"text\":\"20\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1239,1136,1294,1135,1294,1159,1239,1159],\"text\":\"1.00\",\"words\":[{\"boundingBox\":[1243,1135,1293,1135,1293,1159,1243,1159],\"text\":\"1.00\",\"confidence\":0.908}]},{\"language\":\"en\",\"boundingBox\":[1457,1136,1532,1135,1532,1159,1457,1160],\"text\":\"20.00\",\"words\":[{\"boundingBox\":[1459,1136,1529,1135,1530,1160,1459,1160],\"text\":\"20.00\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[170,1179,400,1178,400,1205,170,1206],\"text\":\"Feather Bookmark\",\"words\":[{\"boundingBox\":[172,1180,271,1180,270,1206,171,1206],\"text\":\"Feather\",\"confidence\":0.959},{\"boundingBox\":[276,1180,401,1179,400,1206,275,1206],\"text\":\"Bookmark\",\"confidence\":0.949}]},{\"language\":\"en\",\"boundingBox\":[863,1181,893,1180,893,1202,863,1203],\"text\":\"20\",\"words\":[{\"boundingBox\":[863,1181,892,1180,892,1202,863,1203],\"text\":\"20\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1239,1179,1295,1179,1295,1202,1239,1202],\"text\":\"5,00\",\"words\":[{\"boundingBox\":[1241,1179,1294,1179,1294,1202,1241,1202],\"text\":\"5,00\",\"confidence\":0.423}]},{\"language\":\"en\",\"boundingBox\":[1443,1180,1531,1179,1532,1203,1443,1204],\"text\":\"100.00\",\"words\":[{\"boundingBox\":[1446,1181,1530,1180,1529,1203,1446,1204],\"text\":\"100.00\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[168,1222,429,1221,429,1250,168,1252],\"text\":\"Copper Swirl Marker\",\"words\":[{\"boundingBox\":[173,1223,263,1222,263,1252,172,1253],\"text\":\"Copper\",\"confidence\":0.959},{\"boundingBox\":[269,1222,332,1222,332,1251,269,1252],\"text\":\"Swirl\",\"confidence\":0.954},{\"boundingBox\":[338,1222,430,1222,430,1249,338,1251],\"text\":\"Marker\",\"confidence\":0.956}]},{\"language\":\"en\",\"boundingBox\":[861,1223,893,1222,893,1246,861,1248],\"text\":\"20\",\"words\":[{\"boundingBox\":[861,1223,892,1222,893,1246,862,1247],\"text\":\"20\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1240,1222,1295,1223,1295,1246,1240,1245],\"text\":\"5,00\",\"words\":[{\"boundingBox\":[1241,1222,1294,1223,1293,1246,1240,1245],\"text\":\"5,00\",\"confidence\":0.424}]},{\"language\":\"en\",\"boundingBox\":[1443,1222,1531,1222,1531,1247,1443,1247],\"text\":\"100.00\",\"words\":[{\"boundingBox\":[1445,1223,1529,1222,1529,1248,1444,1248],\"text\":\"100.00\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[1148,1574,1296,1574,1296,1599,1148,1599],\"text\":\"SUBTOTAL\",\"words\":[{\"boundingBox\":[1149,1574,1295,1575,1295,1600,1149,1600],\"text\":\"SUBTOTAL\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[1428,1571,1530,1570,1531,1598,1428,1599],\"text\":\"$140.00\",\"words\":[{\"boundingBox\":[1429,1572,1530,1570,1529,1599,1429,1599],\"text\":\"$140.00\",\"confidence\":0.957}]},{\"language\":\"en\",\"boundingBox\":[1238,1619,1295,1618,1295,1642,1237,1642],\"text\":\"TAX\",\"words\":[{\"boundingBox\":[1241,1618,1294,1618,1294,1641,1241,1642],\"text\":\"TAX\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1460,1616,1531,1614,1531,1641,1460,1641],\"text\":\"$4.00\",\"words\":[{\"boundingBox\":[1461,1615,1530,1614,1530,1641,1461,1642],\"text\":\"$4.00\",\"confidence\":0.939}]},{\"language\":\"en\",\"boundingBox\":[481,1670,764,1670,764,1708,481,1708],\"text\":\"Bernie Sanders\",\"words\":[{\"boundingBox\":[483,1672,603,1671,602,1707,482,1707],\"text\":\"Bernie\",\"confidence\":0.909},{\"boundingBox\":[614,1671,764,1670,763,1709,613,1708],\"text\":\"Sanders\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[1204,1672,1296,1672,1296,1699,1204,1699],\"text\":\"TOTAL\",\"words\":[{\"boundingBox\":[1207,1674,1295,1672,1296,1700,1207,1699],\"text\":\"TOTAL\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[1426,1670,1530,1669,1530,1695,1426,1697],\"text\":\"$144.00\",\"words\":[{\"boundingBox\":[1429,1671,1529,1669,1530,1696,1429,1697],\"text\":\"$144.00\",\"confidence\":0.949}]},{\"language\":\"en\",\"boundingBox\":[543,1718,716,1719,716,1743,543,1742],\"text\":\"Bernie Sanders\",\"words\":[{\"boundingBox\":[544,1719,621,1719,621,1743,544,1743],\"text\":\"Bernie\",\"confidence\":0.959},{\"boundingBox\":[626,1719,717,1720,716,1744,626,1743],\"text\":\"Sanders\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[581,1754,681,1756,680,1777,581,1776],\"text\":\"Manager\",\"words\":[{\"boundingBox\":[582,1755,681,1756,680,1778,581,1776],\"text\":\"Manager\",\"confidence\":0.957}]},{\"language\":\"en\",\"boundingBox\":[173,1796,480,1797,480,1832,173,1830],\"text\":\"Additional Notes:\",\"words\":[{\"boundingBox\":[175,1798,360,1797,360,1833,174,1830],\"text\":\"Additional\",\"confidence\":0.959},{\"boundingBox\":[366,1797,481,1800,481,1832,366,1833],\"text\":\"Notes:\",\"confidence\":0.944}]},{\"language\":\"en\",\"boundingBox\":[173,1879,705,1880,705,1912,173,1910],\"text\":\"Do not Jostle Box. Unpack carefully. Enjoy.\",\"words\":[{\"boundingBox\":[176,1883,209,1882,208,1907,174,1906],\"text\":\"Do\",\"confidence\":0.959},{\"boundingBox\":[215,1882,261,1881,260,1908,214,1907],\"text\":\"not\",\"confidence\":0.951},{\"boundingBox\":[266,1881,336,1881,335,1909,265,1908],\"text\":\"Jostle\",\"confidence\":0.958},{\"boundingBox\":[342,1881,403,1880,402,1910,341,1909],\"text\":\"Box.\",\"confidence\":0.892},{\"boundingBox\":[410,1880,504,1880,503,1912,408,1911],\"text\":\"Unpack\",\"confidence\":0.959},{\"boundingBox\":[510,1880,628,1880,627,1913,509,1912],\"text\":\"carefully.\",\"confidence\":0.958},{\"boundingBox\":[633,1880,705,1881,704,1913,632,1913],\"text\":\"Enjoy.\",\"confidence\":0.959}]},{\"language\":\"en\",\"boundingBox\":[172,1923,1508,1924,1508,1959,172,1959],\"text\":\"Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and\",\"words\":[{\"boundingBox\":[172,1925,273,1925,273,1959,172,1959],\"text\":\"Jupiter\",\"confidence\":0.955},{\"boundingBox\":[280,1924,359,1924,359,1959,280,1959],\"text\":\"Book\",\"confidence\":0.959},{\"boundingBox\":[366,1924,468,1924,467,1959,366,1959],\"text\":\"Supply\",\"confidence\":0.959},{\"boundingBox\":[474,1924,522,1924,521,1959,474,1959],\"text\":\"will\",\"confidence\":0.959},{\"boundingBox\":[529,1924,628,1924,628,1959,528,1959],\"text\":\"refund\",\"confidence\":0.958},{\"boundingBox\":[635,1924,692,1924,691,1959,634,1959],\"text\":\"you\",\"confidence\":0.958},{\"boundingBox\":[698,1924,762,1924,761,1959,698,1959],\"text\":\"50%\",\"confidence\":0.955},{\"boundingBox\":[773,1924,823,1924,822,1959,772,1959],\"text\":\"per\",\"confidence\":0.958},{\"boundingBox\":[830,1924,904,1924,903,1959,829,1959],\"text\":\"book\",\"confidence\":0.959},{\"boundingBox\":[911,1924,932,1924,931,1959,910,1959],\"text\":\"if\",\"confidence\":0.909},{\"boundingBox\":[938,1924,1065,1924,1064,1959,937,1959],\"text\":\"returned\",\"confidence\":0.959},{\"boundingBox\":[1072,1924,1160,1924,1159,1959,1071,1959],\"text\":\"within\",\"confidence\":0.959},{\"boundingBox\":[1167,1924,1208,1924,1206,1960,1166,1959],\"text\":\"60\",\"confidence\":0.929},{\"boundingBox\":[1215,1924,1287,1924,1285,1960,1213,1960],\"text\":\"days\",\"confidence\":0.959},{\"boundingBox\":[1294,1924,1323,1924,1322,1960,1292,1960],\"text\":\"of\",\"confidence\":0.958},{\"boundingBox\":[1330,1924,1443,1924,1441,1960,1328,1960],\"text\":\"reading\",\"confidence\":0.959},{\"boundingBox\":[1450,1924,1508,1924,1506,1960,1448,1960],\"text\":\"and\",\"confidence\":0.958}]},{\"language\":\"en\",\"boundingBox\":[169,1957,786,1957,786,1993,169,1993],\"text\":\"offer you 25% off you next total purchase.\",\"words\":[{\"boundingBox\":[171,1959,239,1958,238,1992,170,1991],\"text\":\"offer\",\"confidence\":0.959},{\"boundingBox\":[245,1958,302,1958,300,1993,244,1992],\"text\":\"you\",\"confidence\":0.959},{\"boundingBox\":[308,1958,371,1958,369,1994,307,1993],\"text\":\"25%\",\"confidence\":0.934},{\"boundingBox\":[385,1958,425,1958,424,1994,384,1994],\"text\":\"off\",\"confidence\":0.958},{\"boundingBox\":[431,1958,488,1958,487,1994,430,1994],\"text\":\"you\",\"confidence\":0.959},{\"boundingBox\":[494,1958,559,1958,558,1994,493,1994],\"text\":\"next\",\"confidence\":0.959},{\"boundingBox\":[565,1958,632,1959,631,1993,564,1994],\"text\":\"total\",\"confidence\":0.959},{\"boundingBox\":[638,1959,785,1960,785,1990,637,1993],\"text\":\"purchase.\",\"confidence\":0.959}]}]}],\"pageResults\":[{\"page\":1,\"tables\":[{\"rows\":4,\"columns\":3,\"cells\":[{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"SUBTOTAL\",\"boundingBox\":[1072,1566,1309,1566,1309,1610,1072,1610],\"elements\":[\"#/readResults/0/lines/41/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"$140.00\",\"boundingBox\":[1309,1566,1544,1566,1544,1610,1309,1610],\"elements\":[\"#/readResults/0/lines/42/words/0\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"TAX\",\"boundingBox\":[1072,1610,1309,1610,1309,1658,1072,1658],\"elements\":[\"#/readResults/0/lines/43/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"$4.00\",\"boundingBox\":[1309,1610,1544,1610,1544,1658,1309,1658],\"elements\":[\"#/readResults/0/lines/44/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"Bernie Sanders\",\"boundingBox\":[482,1658,1072,1658,1072,1708,482,1708],\"elements\":[\"#/readResults/0/lines/45/words/0\",\"#/readResults/0/lines/45/words/1\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"TOTAL\",\"boundingBox\":[1072,1658,1309,1658,1309,1708,1072,1708],\"elements\":[\"#/readResults/0/lines/46/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"$144.00\",\"boundingBox\":[1309,1658,1544,1658,1544,1708,1309,1708],\"elements\":[\"#/readResults/0/lines/47/words/0\"]}]},{\"rows\":6,\"columns\":4,\"cells\":[{\"rowIndex\":0,\"columnIndex\":0,\"text\":\"Details\",\"boundingBox\":[156,1038,847,1038,847,1087,156,1087],\"elements\":[\"#/readResults/0/lines/21/words/0\"]},{\"rowIndex\":0,\"columnIndex\":1,\"text\":\"Quantity\",\"boundingBox\":[847,1038,1072,1038,1072,1087,847,1087],\"elements\":[\"#/readResults/0/lines/22/words/0\"]},{\"rowIndex\":0,\"columnIndex\":2,\"text\":\"Unit Price\",\"boundingBox\":[1072,1038,1309,1038,1309,1087,1072,1087],\"elements\":[\"#/readResults/0/lines/23/words/0\",\"#/readResults/0/lines/23/words/1\"]},{\"rowIndex\":0,\"columnIndex\":3,\"text\":\"Total\",\"boundingBox\":[1309,1038,1544,1038,1544,1087,1309,1087],\"elements\":[\"#/readResults/0/lines/24/words/0\"]},{\"rowIndex\":1,\"columnIndex\":0,\"text\":\"Bindings\",\"boundingBox\":[156,1087,847,1087,847,1128,156,1128],\"elements\":[\"#/readResults/0/lines/25/words/0\"]},{\"rowIndex\":1,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[847,1087,1072,1087,1072,1128,847,1128],\"elements\":[\"#/readResults/0/lines/26/words/0\"]},{\"rowIndex\":1,\"columnIndex\":2,\"text\":\"1.00\",\"boundingBox\":[1072,1087,1309,1087,1309,1128,1072,1128],\"elements\":[\"#/readResults/0/lines/27/words/0\"]},{\"rowIndex\":1,\"columnIndex\":3,\"text\":\"20.00\",\"boundingBox\":[1309,1087,1544,1087,1544,1128,1309,1128],\"elements\":[\"#/readResults/0/lines/28/words/0\"]},{\"rowIndex\":2,\"columnIndex\":0,\"text\":\"Covers Small\",\"boundingBox\":[156,1128,847,1128,847,1172,156,1172],\"elements\":[\"#/readResults/0/lines/29/words/0\",\"#/readResults/0/lines/29/words/1\"]},{\"rowIndex\":2,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[847,1128,1072,1128,1072,1172,847,1172],\"elements\":[\"#/readResults/0/lines/30/words/0\"]},{\"rowIndex\":2,\"columnIndex\":2,\"text\":\"1.00\",\"boundingBox\":[1072,1128,1309,1128,1309,1172,1072,1172],\"elements\":[\"#/readResults/0/lines/31/words/0\"]},{\"rowIndex\":2,\"columnIndex\":3,\"text\":\"20.00\",\"boundingBox\":[1309,1128,1544,1128,1544,1172,1309,1172],\"elements\":[\"#/readResults/0/lines/32/words/0\"]},{\"rowIndex\":3,\"columnIndex\":0,\"text\":\"Feather Bookmark\",\"boundingBox\":[156,1172,847,1172,847,1216,156,1216],\"elements\":[\"#/readResults/0/lines/33/words/0\",\"#/readResults/0/lines/33/words/1\"]},{\"rowIndex\":3,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[847,1172,1072,1172,1072,1216,847,1216],\"elements\":[\"#/readResults/0/lines/34/words/0\"]},{\"rowIndex\":3,\"columnIndex\":2,\"text\":\"5,00\",\"boundingBox\":[1072,1172,1309,1172,1309,1216,1072,1216],\"elements\":[\"#/readResults/0/lines/35/words/0\"]},{\"rowIndex\":3,\"columnIndex\":3,\"text\":\"100.00\",\"boundingBox\":[1309,1172,1544,1172,1544,1216,1309,1216],\"elements\":[\"#/readResults/0/lines/36/words/0\"]},{\"rowIndex\":4,\"columnIndex\":0,\"text\":\"Copper Swirl Marker\",\"boundingBox\":[156,1216,847,1216,847,1260,156,1260],\"elements\":[\"#/readResults/0/lines/37/words/0\",\"#/readResults/0/lines/37/words/1\",\"#/readResults/0/lines/37/words/2\"]},{\"rowIndex\":4,\"columnIndex\":1,\"text\":\"20\",\"boundingBox\":[847,1216,1072,1216,1072,1260,847,1260],\"elements\":[\"#/readResults/0/lines/38/words/0\"]},{\"rowIndex\":4,\"columnIndex\":2,\"text\":\"5,00\",\"boundingBox\":[1072,1216,1309,1216,1309,1260,1072,1260],\"elements\":[\"#/readResults/0/lines/39/words/0\"]},{\"rowIndex\":4,\"columnIndex\":3,\"text\":\"100.00\",\"boundingBox\":[1309,1216,1544,1216,1544,1260,1309,1260],\"elements\":[\"#/readResults/0/lines/40/words/0\"]}]}]}]}}", - "Date" : "Wed, 22 Apr 2020 22:29:50 GMT", - "Content-Type" : "application/json; charset=utf-8" - }, - "Exception" : null - }, { - "Method" : "POST", - "Uri" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", - "Headers" : { - "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", - "x-ms-client-request-id" : "eb4223be-eec2-4a4e-bf96-50a8578c77a7", - "Content-Type" : "image/jpeg" - }, - "Response" : null, - "Exception" : { - "ClassName" : "java.lang.NullPointerException", - "ErrorMessage" : null - } - }, { - "Method" : "POST", - "Uri" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", - "Headers" : { - "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", - "x-ms-client-request-id" : "eb4223be-eec2-4a4e-bf96-50a8578c77a7", - "Content-Type" : "image/jpeg" - }, - "Response" : null, - "Exception" : { - "ClassName" : "java.lang.NullPointerException", - "ErrorMessage" : null - } - }, { - "Method" : "POST", - "Uri" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", - "Headers" : { - "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", - "x-ms-client-request-id" : "eb4223be-eec2-4a4e-bf96-50a8578c77a7", - "Content-Type" : "image/jpeg" - }, - "Response" : null, - "Exception" : { - "ClassName" : "java.lang.NullPointerException", - "ErrorMessage" : null - } - }, { - "Method" : "POST", - "Uri" : "https://javaformrecognizertestresource.cognitiveservices.azure.com/formrecognizer/v2.0-preview//layout/analyze", - "Headers" : { - "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.1 (11.0.5; Windows 10 10.0)", - "x-ms-client-request-id" : "eb4223be-eec2-4a4e-bf96-50a8578c77a7", - "Content-Type" : "image/jpeg" - }, - "Response" : null, - "Exception" : { - "ClassName" : "java.lang.NullPointerException", - "ErrorMessage" : null - } - } ], - "variables" : [ ] -} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeReceiptFromDataMultiPage.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeReceiptFromDataMultiPage.json new file mode 100644 index 000000000000..d3c33cc12631 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeReceiptFromDataMultiPage.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyze?includeTextDetails=false", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "259897c9-97a8-49a4-8b00-fc7e9d4c2c06", + "Content-Type" : "application/pdf" + }, + "Response" : { + "x-envoy-upstream-service-time" : "493", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "1979d28e-8a4a-465a-b5d1-2185e421b2e9", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/1979d28e-8a4a-465a-b5d1-2185e421b2e9", + "Date" : "Sun, 17 May 2020 04:37:45 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/1979d28e-8a4a-465a-b5d1-2185e421b2e9", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "0f39a8cb-a549-4e75-b007-5786fbf9f319" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "109", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "cb15a96b-97dc-4255-ba2d-b486740c5d38", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-17T04:37:45Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:37:46Z\"}", + "Date" : "Sun, 17 May 2020 04:37:51 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/1979d28e-8a4a-465a-b5d1-2185e421b2e9", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e32e6f5c-edcd-4934-a302-be12237647a9" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "134", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "7840a8a1-6473-416c-b380-f7a2309a2f49", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-17T04:37:45Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:37:46Z\"}", + "Date" : "Sun, 17 May 2020 04:37:56 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/1979d28e-8a4a-465a-b5d1-2185e421b2e9", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "ca6494df-e636-4948-8e9a-4615e8f4f14e" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "240", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "f1baea9d-b048-4e4f-8143-62b88e461c6a", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-17T04:37:45Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:38:01Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":2,\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":3,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"}],\"documentResults\":[{\"docType\":\"prebuilt:receipt\",\"pageRange\":[1,1],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"page\":1,\"confidence\":0.985},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":1,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":1,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":1,\"confidence\":0.965},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":12,\"text\":\"12.00\",\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"page\":1,\"confidence\":0.947}}},{\"type\":\"object\",\"valueObject\":{\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":22,\"text\":\"22.00\",\"boundingBox\":[5.4184,4.4746,5.781,4.4746,5.781,4.5827,5.4184,4.5827],\"page\":1,\"confidence\":0.936}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":300,\"text\":\"300.00\",\"boundingBox\":[6.1794,4.9042,6.632,4.9042,6.632,5.0131,6.1794,5.0131],\"page\":1,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.811,5.3445,6.2587,5.3445,6.2587,5.4533,5.811,5.4533],\"page\":1,\"confidence\":0.99}}},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[2,2]},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[3,3],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"page\":3,\"confidence\":0.98},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":3,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":3,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"E\",\"text\":\"E\",\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"page\":3,\"confidence\":0.935},\"Quantity\":{\"type\":\"number\",\"text\":\"40\",\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"page\":3,\"confidence\":0},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"page\":3,\"confidence\":0.721}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":3,\"confidence\":0.912},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":120,\"text\":\"120.00\",\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"page\":3,\"confidence\":0.967}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"G\",\"text\":\"G\",\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"page\":3,\"confidence\":0.903},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":220,\"text\":\"220.00\",\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"page\":3,\"confidence\":0.959}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":3000,\"text\":\"3000.00\",\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"page\":3,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":1000,\"text\":\"1000.00\",\"boundingBox\":[5.811,5.3445,6.3422,5.3445,6.3422,5.4533,5.811,5.4533],\"page\":3,\"confidence\":0.985}}}]}}", + "Date" : "Sun, 17 May 2020 04:38:01 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/1979d28e-8a4a-465a-b5d1-2185e421b2e9", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "dee43246-b83e-4880-a451-1b62e8f24b00" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "223", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "997fa481-e89a-4e47-9514-3cb18bba0130", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-17T04:37:45Z\",\"lastUpdatedDateTime\":\"2020-05-17T04:38:01Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":2,\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":3,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"}],\"documentResults\":[{\"docType\":\"prebuilt:receipt\",\"pageRange\":[1,1],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"page\":1,\"confidence\":0.985},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":1,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":1,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":1,\"confidence\":0.965},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":12,\"text\":\"12.00\",\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"page\":1,\"confidence\":0.947}}},{\"type\":\"object\",\"valueObject\":{\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":22,\"text\":\"22.00\",\"boundingBox\":[5.4184,4.4746,5.781,4.4746,5.781,4.5827,5.4184,4.5827],\"page\":1,\"confidence\":0.936}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":300,\"text\":\"300.00\",\"boundingBox\":[6.1794,4.9042,6.632,4.9042,6.632,5.0131,6.1794,5.0131],\"page\":1,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.811,5.3445,6.2587,5.3445,6.2587,5.4533,5.811,5.4533],\"page\":1,\"confidence\":0.99}}},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[2,2]},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[3,3],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"page\":3,\"confidence\":0.98},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":3,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":3,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"E\",\"text\":\"E\",\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"page\":3,\"confidence\":0.935},\"Quantity\":{\"type\":\"number\",\"text\":\"40\",\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"page\":3,\"confidence\":0},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"page\":3,\"confidence\":0.721}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":3,\"confidence\":0.912},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":120,\"text\":\"120.00\",\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"page\":3,\"confidence\":0.967}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"G\",\"text\":\"G\",\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"page\":3,\"confidence\":0.903},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":220,\"text\":\"220.00\",\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"page\":3,\"confidence\":0.959}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":3000,\"text\":\"3000.00\",\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"page\":3,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":1000,\"text\":\"1000.00\",\"boundingBox\":[5.811,5.3445,6.3422,5.3445,6.3422,5.4533,5.811,5.4533],\"page\":3,\"confidence\":0.985}}}]}}", + "Date" : "Sun, 17 May 2020 04:38:02 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeReceiptFromUrlMultiPage.json b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeReceiptFromUrlMultiPage.json new file mode 100644 index 000000000000..db39df131cd4 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/src/test/resources/session-records/recognizeReceiptFromUrlMultiPage.json @@ -0,0 +1,104 @@ +{ + "networkCallRecords" : [ { + "Method" : "POST", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyze?includeTextDetails=false", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "e66c0e4f-b54c-4a9a-bf27-564d60a9fc3a", + "Content-Type" : "application/json" + }, + "Response" : { + "x-envoy-upstream-service-time" : "1572", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "4b74437f-4193-4799-a01a-3fcd085e8dce", + "retry-after" : "0", + "Content-Length" : "0", + "StatusCode" : "202", + "Operation-Location" : "https://savaity-formrecognizer.cognitiveservices.azure.com/formrecognizer/v2.0-preview/prebuilt/receipt/analyzeResults/4b74437f-4193-4799-a01a-3fcd085e8dce", + "Date" : "Sat, 16 May 2020 18:38:02 GMT" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/4b74437f-4193-4799-a01a-3fcd085e8dce", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "b20fce91-5f87-4639-90f2-c7f26b32c829" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "138", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "3c3b0177-fc1d-4a67-90e9-d85e9d10c493", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-16T18:38:02Z\",\"lastUpdatedDateTime\":\"2020-05-16T18:38:03Z\"}", + "Date" : "Sat, 16 May 2020 18:38:07 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/4b74437f-4193-4799-a01a-3fcd085e8dce", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "89ad78b7-bb8b-48e0-a680-44157dd1f7b4" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "141", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "30e5adeb-c625-40a4-ab0e-a5ef8b0da0b4", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"running\",\"createdDateTime\":\"2020-05-16T18:38:02Z\",\"lastUpdatedDateTime\":\"2020-05-16T18:38:03Z\"}", + "Date" : "Sat, 16 May 2020 18:38:12 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/4b74437f-4193-4799-a01a-3fcd085e8dce", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "bd8c5e2d-0ef1-4b68-b81a-63b2c3e03ebb" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "221", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "b664fe44-cc11-4ace-a08f-e355b402ee3b", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-16T18:38:02Z\",\"lastUpdatedDateTime\":\"2020-05-16T18:38:15Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":2,\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":3,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"}],\"documentResults\":[{\"docType\":\"prebuilt:receipt\",\"pageRange\":[1,1],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"page\":1,\"confidence\":0.985},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":1,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":1,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":1,\"confidence\":0.965},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":12,\"text\":\"12.00\",\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"page\":1,\"confidence\":0.947}}},{\"type\":\"object\",\"valueObject\":{\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":22,\"text\":\"22.00\",\"boundingBox\":[5.4184,4.4746,5.781,4.4746,5.781,4.5827,5.4184,4.5827],\"page\":1,\"confidence\":0.936}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":300,\"text\":\"300.00\",\"boundingBox\":[6.1794,4.9042,6.632,4.9042,6.632,5.0131,6.1794,5.0131],\"page\":1,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.811,5.3445,6.2587,5.3445,6.2587,5.4533,5.811,5.4533],\"page\":1,\"confidence\":0.99}}},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[2,2]},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[3,3],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"page\":3,\"confidence\":0.98},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":3,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":3,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"E\",\"text\":\"E\",\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"page\":3,\"confidence\":0.935},\"Quantity\":{\"type\":\"number\",\"text\":\"40\",\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"page\":3,\"confidence\":0},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"page\":3,\"confidence\":0.721}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":3,\"confidence\":0.912},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":120,\"text\":\"120.00\",\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"page\":3,\"confidence\":0.967}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"G\",\"text\":\"G\",\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"page\":3,\"confidence\":0.903},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":220,\"text\":\"220.00\",\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"page\":3,\"confidence\":0.959}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":3000,\"text\":\"3000.00\",\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"page\":3,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":1000,\"text\":\"1000.00\",\"boundingBox\":[5.811,5.3445,6.3422,5.3445,6.3422,5.4533,5.811,5.4533],\"page\":3,\"confidence\":0.985}}}]}}", + "Date" : "Sat, 16 May 2020 18:38:18 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + }, { + "Method" : "GET", + "Uri" : "https://REDACTED.cognitiveservices.azure.com/formrecognizer/v2.0-preview//prebuilt/receipt/analyzeResults/4b74437f-4193-4799-a01a-3fcd085e8dce", + "Headers" : { + "User-Agent" : "azsdk-java-azure-ai-formrecognizer/1.0.0-beta.3 (11.0.5; Windows 10 10.0)", + "x-ms-client-request-id" : "5de74f64-e79c-43a4-924f-189518738834" + }, + "Response" : { + "Transfer-Encoding" : "chunked", + "x-envoy-upstream-service-time" : "197", + "Strict-Transport-Security" : "max-age=31536000; includeSubDomains; preload", + "x-content-type-options" : "nosniff", + "apim-request-id" : "bb332093-d9b1-441a-a3f3-e37f7f63a358", + "retry-after" : "0", + "StatusCode" : "200", + "Body" : "{\"status\":\"succeeded\",\"createdDateTime\":\"2020-05-16T18:38:02Z\",\"lastUpdatedDateTime\":\"2020-05-16T18:38:15Z\",\"analyzeResult\":{\"version\":\"2.0.0\",\"readResults\":[{\"page\":1,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":2,\"angle\":0,\"width\":8.4967,\"height\":10.9967,\"unit\":\"inch\",\"language\":\"en\"},{\"page\":3,\"angle\":0,\"width\":8.5,\"height\":11,\"unit\":\"inch\",\"language\":\"en\"}],\"documentResults\":[{\"docType\":\"prebuilt:receipt\",\"pageRange\":[1,1],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Bilbo Baggins\",\"text\":\"Bilbo Baggins\",\"boundingBox\":[6.0164,1.4503,6.8967,1.4503,6.8967,1.5931,6.0164,1.5931],\"page\":1,\"confidence\":0.985},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":1,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":1,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":1,\"confidence\":0.965},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":12,\"text\":\"12.00\",\"boundingBox\":[5.4232,4.2646,5.7809,4.2646,5.7809,4.3727,5.4232,4.3727],\"page\":1,\"confidence\":0.947}}},{\"type\":\"object\",\"valueObject\":{\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":22,\"text\":\"22.00\",\"boundingBox\":[5.4184,4.4746,5.781,4.4746,5.781,4.5827,5.4184,4.5827],\"page\":1,\"confidence\":0.936}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":300,\"text\":\"300.00\",\"boundingBox\":[6.1794,4.9042,6.632,4.9042,6.632,5.0131,6.1794,5.0131],\"page\":1,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.811,5.3445,6.2587,5.3445,6.2587,5.4533,5.811,5.4533],\"page\":1,\"confidence\":0.99}}},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[2,2]},{\"docType\":\"prebuilt:receipt\",\"pageRange\":[3,3],\"fields\":{\"ReceiptType\":{\"type\":\"string\",\"valueString\":\"Itemized\",\"confidence\":0.99},\"MerchantName\":{\"type\":\"string\",\"valueString\":\"Frodo Baggins\",\"text\":\"Frodo Baggins\",\"boundingBox\":[6.0164,1.4506,6.9506,1.4506,6.9506,1.5931,6.0164,1.5931],\"page\":3,\"confidence\":0.98},\"MerchantAddress\":{\"type\":\"string\",\"valueString\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"text\":\"123 Hobbit Lane 567 Main St. Redmond, WA Redmond, WA\",\"boundingBox\":[0.8852,1.6707,7.1006,1.6707,7.1006,2.1975,0.8852,2.1975],\"page\":3,\"confidence\":0.99},\"MerchantPhoneNumber\":{\"type\":\"phoneNumber\",\"valuePhoneNumber\":\"+15555555555\",\"text\":\"555-555-5555\",\"boundingBox\":[6.0105,2.1187,6.9371,2.1187,6.9371,2.2254,6.0105,2.2254],\"page\":3,\"confidence\":0.99},\"Items\":{\"type\":\"array\",\"valueArray\":[{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"E\",\"text\":\"E\",\"boundingBox\":[1.0943,4.0561,1.153,4.0561,1.153,4.1614,1.0943,4.1614],\"page\":3,\"confidence\":0.935},\"Quantity\":{\"type\":\"number\",\"text\":\"40\",\"boundingBox\":[3.2486,4.0546,3.4067,4.0546,3.4067,4.1627,3.2486,4.1627],\"page\":3,\"confidence\":0},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":100,\"text\":\"100.00\",\"boundingBox\":[5.4232,4.0546,5.8644,4.0546,5.8644,4.1627,5.4232,4.1627],\"page\":3,\"confidence\":0.721}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"F\",\"text\":\"F\",\"boundingBox\":[1.0943,4.2661,1.1497,4.2661,1.1497,4.3717,1.0943,4.3717],\"page\":3,\"confidence\":0.912},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":120,\"text\":\"120.00\",\"boundingBox\":[5.4232,4.2646,5.8642,4.2646,5.8642,4.3727,5.4232,4.3727],\"page\":3,\"confidence\":0.967}}},{\"type\":\"object\",\"valueObject\":{\"Name\":{\"type\":\"string\",\"valueString\":\"G\",\"text\":\"G\",\"boundingBox\":[1.0877,4.4746,1.1735,4.4746,1.1735,4.5827,1.0877,4.5827],\"page\":3,\"confidence\":0.903},\"TotalPrice\":{\"type\":\"number\",\"valueNumber\":220,\"text\":\"220.00\",\"boundingBox\":[5.4184,4.4746,5.8644,4.4746,5.8644,4.5827,5.4184,4.5827],\"page\":3,\"confidence\":0.959}}}]},\"Subtotal\":{\"type\":\"number\",\"valueNumber\":3000,\"text\":\"3000.00\",\"boundingBox\":[6.1794,4.9042,6.7158,4.9042,6.7158,5.0131,6.1794,5.0131],\"page\":3,\"confidence\":0.99},\"Total\":{\"type\":\"number\",\"valueNumber\":1000,\"text\":\"1000.00\",\"boundingBox\":[5.811,5.3445,6.3422,5.3445,6.3422,5.4533,5.811,5.4533],\"page\":3,\"confidence\":0.985}}}]}}", + "Date" : "Sat, 16 May 2020 18:38:18 GMT", + "Content-Type" : "application/json; charset=utf-8" + }, + "Exception" : null + } ], + "variables" : [ ] +} \ No newline at end of file