diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md index 21166a8d413b..29a5b4150c77 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md +++ b/sdk/formrecognizer/azure-ai-formrecognizer/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 3.0.1 (Unreleased) +## 3.1.0b1 (Unreleased) ## 3.0.0 (2020-08-20) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py index 178ba2a3c87c..aa27a6c22c46 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_api_versions.py @@ -7,9 +7,11 @@ class FormRecognizerApiVersion(str, Enum): - """Form Recognizer service API versions supported by this package""" + """Form Recognizer API versions supported by this package""" - V2_0 = "v2.0" + #: this is the default version + V2_1_PREVIEW_1 = "2.1-preview.1" + V2_0 = "2.0" def validate_api_version(api_version): diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py index fda9606d28d6..e8bcf1d942a8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_recognizer_client.py @@ -22,9 +22,8 @@ prepare_content_result, prepare_form_result ) -from ._generated.models import AnalyzeOperationResult -from ._api_versions import validate_api_version -from ._helpers import get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL +from ._api_versions import FormRecognizerApiVersion, validate_api_version +from ._helpers import _get_deserialize, get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL from ._user_agent import USER_AGENT from ._polling import AnalyzePolling if TYPE_CHECKING: @@ -72,19 +71,22 @@ def __init__(self, endpoint, credential, **kwargs): authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) - api_version = kwargs.pop('api_version', None) - validate_api_version(api_version) + self.api_version = kwargs.pop('api_version', FormRecognizerApiVersion.V2_1_PREVIEW_1) + validate_api_version(self.api_version) self._client = FormRecognizer( endpoint=endpoint, credential=credential, # type: ignore + api_version=self.api_version, sdk_moniker=USER_AGENT, authentication_policy=authentication_policy, polling_interval=polling_interval, **kwargs ) + self._deserialize = _get_deserialize() + self._generated_models = self._client.models(self.api_version) def _receipt_callback(self, raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_receipt(analyze_result) @distributed_trace @@ -123,24 +125,27 @@ def begin_recognize_receipts(self, receipt, **kwargs): :dedent: 8 :caption: Recognize US sales receipt fields. """ - + locale = kwargs.pop("locale", None) polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) continuation_token = kwargs.pop("continuation_token", None) content_type = kwargs.pop("content_type", None) + include_field_elements = kwargs.pop("include_field_elements", False) if content_type == "application/json": raise TypeError("Call begin_recognize_receipts_from_url() to analyze a receipt from a URL.") - - include_field_elements = kwargs.pop("include_field_elements", False) - + cls = kwargs.pop("cls", self._receipt_callback) + polling = LROBasePolling(timeout=polling_interval, **kwargs) if content_type is None: content_type = get_content_type(receipt) + if self.api_version == "2.1-preview.1" and locale: + kwargs.update({"locale": locale}) + return self._client.begin_analyze_receipt_async( # type: ignore file_stream=receipt, content_type=content_type, include_text_details=include_field_elements, - cls=kwargs.pop("cls", self._receipt_callback), - polling=LROBasePolling(timeout=polling_interval, **kwargs), + cls=cls, + polling=polling, error_map=error_map, continuation_token=continuation_token, **kwargs @@ -177,23 +182,26 @@ def begin_recognize_receipts_from_url(self, receipt_url, **kwargs): :dedent: 8 :caption: Recognize US sales receipt fields from a URL. """ - + locale = kwargs.pop("locale", None) polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) continuation_token = kwargs.pop("continuation_token", None) include_field_elements = kwargs.pop("include_field_elements", False) - + cls = kwargs.pop("cls", self._receipt_callback) + polling = LROBasePolling(timeout=polling_interval, **kwargs) + if self.api_version == "2.1-preview.1" and locale: + kwargs.update({"locale": locale}) return self._client.begin_analyze_receipt_async( # type: ignore file_stream={"source": receipt_url}, include_text_details=include_field_elements, - cls=kwargs.pop("cls", self._receipt_callback), - polling=LROBasePolling(timeout=polling_interval, **kwargs), + cls=cls, + polling=polling, error_map=error_map, continuation_token=continuation_token, **kwargs ) def _content_callback(self, raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_content_result(analyze_result) @distributed_trace @@ -325,7 +333,7 @@ def begin_recognize_custom_forms(self, model_id, form, **kwargs): content_type = get_content_type(form) def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_form_result(analyze_result, model_id) deserialization_callback = cls if cls else analyze_callback @@ -371,7 +379,7 @@ def begin_recognize_custom_forms_from_url(self, model_id, form_url, **kwargs): include_field_elements = kwargs.pop("include_field_elements", False) def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_form_result(analyze_result, model_id) deserialization_callback = cls if cls else analyze_callback diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py index 339e2d880c26..7ba856b0e071 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_form_training_client.py @@ -22,20 +22,20 @@ TrainRequest, TrainSourceFilter, CopyRequest, - Model, - CopyOperationResult, CopyAuthorizationResult ) -from ._helpers import error_map, get_authentication_policy, POLLING_INTERVAL, TransportWrapper +from ._helpers import ( + error_map, get_authentication_policy, POLLING_INTERVAL, TransportWrapper, _get_deserialize +) from ._models import ( CustomFormModelInfo, AccountProperties, - CustomFormModel + CustomFormModel, ) from ._polling import TrainingPolling, CopyPolling from ._user_agent import USER_AGENT from ._form_recognizer_client import FormRecognizerClient -from ._api_versions import validate_api_version +from ._api_versions import FormRecognizerApiVersion, validate_api_version if TYPE_CHECKING: from azure.core.credentials import AzureKeyCredential, TokenCredential from azure.core.pipeline import PipelineResponse @@ -85,16 +85,19 @@ def __init__(self, endpoint, credential, **kwargs): self._credential = credential authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) - api_version = kwargs.pop('api_version', None) - validate_api_version(api_version) + self.api_version = kwargs.pop('api_version', FormRecognizerApiVersion.V2_1_PREVIEW_1) + validate_api_version(self.api_version) self._client = FormRecognizer( endpoint=self._endpoint, credential=self._credential, # type: ignore + api_version=self.api_version, sdk_moniker=USER_AGENT, authentication_policy=authentication_policy, polling_interval=polling_interval, **kwargs ) + self._deserialize = _get_deserialize() + self._generated_models = self._client.models(self.api_version) @distributed_trace def begin_training(self, training_files_url, use_training_labels, **kwargs): @@ -136,42 +139,66 @@ def begin_training(self, training_files_url, use_training_labels, **kwargs): :caption: Training a model (without labels) with your custom forms. """ - def callback(raw_response): - model = self._client._deserialize(Model, raw_response) + def callback_v2_0(raw_response): + model = self._deserialize(self._generated_models.Model, raw_response) + return CustomFormModel._from_generated(model) + + def callback_v2_1(raw_response, _, headers): # pylint: disable=unused-argument + model = self._deserialize(self._generated_models.Model, raw_response) return CustomFormModel._from_generated(model) cls = kwargs.pop("cls", None) continuation_token = kwargs.pop("continuation_token", None) polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) - deserialization_callback = cls if cls else callback - - if continuation_token: - return LROPoller.from_continuation_token( - polling_method=LROBasePolling(timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs), - continuation_token=continuation_token, - client=self._client._client, - deserialization_callback=deserialization_callback + + if self.api_version == "2.0": + deserialization_callback = cls if cls else callback_v2_0 + if continuation_token: + return LROPoller.from_continuation_token( + polling_method=LROBasePolling( + timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs + ), + continuation_token=continuation_token, + client=self._client._client, + deserialization_callback=deserialization_callback + ) + + response = self._client.train_custom_model_async( # type: ignore + train_request=TrainRequest( + source=training_files_url, + use_label_file=use_training_labels, + source_filter=TrainSourceFilter( + prefix=kwargs.pop("prefix", ""), + include_sub_folders=kwargs.pop("include_subfolders", False), + ) + ), + cls=lambda pipeline_response, _, response_headers: pipeline_response, + error_map=error_map, + **kwargs + ) # type: PipelineResponseType + + return LROPoller( + self._client._client, + response, + deserialization_callback, + LROBasePolling(timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs) ) - response = self._client.train_custom_model_async( # type: ignore + deserialization_callback = cls if cls else callback_v2_1 + return self._client.begin_train_custom_model_async( # type: ignore train_request=TrainRequest( source=training_files_url, use_label_file=use_training_labels, source_filter=TrainSourceFilter( prefix=kwargs.pop("prefix", ""), include_sub_folders=kwargs.pop("include_subfolders", False), - ) + ), ), - cls=lambda pipeline_response, _, response_headers: pipeline_response, + cls=deserialization_callback, + continuation_token=continuation_token, + polling=LROBasePolling(timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs), error_map=error_map, **kwargs - ) # type: PipelineResponseType - - return LROPoller( - self._client._client, - response, - deserialization_callback, - LROBasePolling(timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs) ) @distributed_trace @@ -358,7 +385,7 @@ def begin_copy_model( continuation_token = kwargs.pop("continuation_token", None) def _copy_callback(raw_response, _, headers): # pylint: disable=unused-argument - copy_result = self._client._deserialize(CopyOperationResult, raw_response) + copy_result = self._deserialize(self._generated_models.CopyOperationResult, raw_response) return CustomFormModelInfo._from_generated(copy_result, target["modelId"]) return self._client.begin_copy_custom_model( # type: ignore @@ -395,6 +422,7 @@ def get_form_recognizer_client(self, **kwargs): endpoint=self._endpoint, credential=self._credential, pipeline=_pipeline, + api_version=self.api_version, **kwargs ) # need to share config, but can't pass as a keyword into client diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py index b0df362d6f33..d4be1e681b60 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py index e37f967c5327..5c1e01eaef07 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_configuration.py @@ -1,21 +1,20 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) -# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- - -from typing import TYPE_CHECKING +from typing import Any from azure.core.configuration import Configuration from azure.core.pipeline import policies -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - from azure.core.credentials import TokenCredential +from ._version import VERSION -VERSION = "unknown" class FormRecognizerClientConfiguration(Configuration): """Configuration for FormRecognizerClient. @@ -44,9 +43,8 @@ def __init__( self.credential = credential self.endpoint = endpoint - self.credential_scopes = ['https://cognitiveservices.azure.com/.default'] - self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) - kwargs.setdefault('sdk_moniker', 'ai-formrecognizer/{}'.format(VERSION)) + self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'azure-ai-formrecognizer/{}'.format(VERSION)) self._configure(**kwargs) def _configure( diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py index 909b6c6893de..d4c5695d3a35 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_form_recognizer_client.py @@ -1,61 +1,104 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) -# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. # -------------------------------------------------------------------------- -from typing import TYPE_CHECKING - from azure.core import PipelineClient -from msrest import Deserializer, Serializer - -if TYPE_CHECKING: - # pylint: disable=unused-import,ungrouped-imports - from typing import Any - - from azure.core.credentials import TokenCredential +from msrest import Serializer, Deserializer +from azure.profiles import KnownProfiles, ProfileDefinition +from azure.profiles.multiapiclient import MultiApiClientMixin from ._configuration import FormRecognizerClientConfiguration -from .operations import FormRecognizerClientOperationsMixin -from . import models +from ._operations_mixin import FormRecognizerClientOperationsMixin +class _SDKClient(object): + def __init__(self, *args, **kwargs): + """This is a fake class to support current implemetation of MultiApiClientMixin." + Will be removed in final version of multiapi azure-core based client + """ + pass - -class FormRecognizerClient(FormRecognizerClientOperationsMixin): +class FormRecognizerClient(FormRecognizerClientOperationsMixin, MultiApiClientMixin, _SDKClient): """Extracts information from forms and images into structured data. + This ready contains multiple API versions, to help you deal with all of the Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, it uses the latest API version available on public Azure. + For production, you should stick to a particular api-version and/or profile. + The profile sets a mapping between an operation group and its API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + :param credential: Credential needed for the client to connect to Azure. :type credential: ~azure.core.credentials.TokenCredential :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). :type endpoint: str + :param str api_version: API version to use if no profile is provided, or if + missing in profile. + :param profile: A profile definition, from KnownProfiles to dict. + :type profile: azure.profiles.KnownProfiles :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. """ + DEFAULT_API_VERSION = '2.1-preview.1' + _PROFILE_TAG = "azure.ai.formrecognizer.FormRecognizerClient" + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + None: DEFAULT_API_VERSION, + 'train_custom_model_async': '2.0', + }}, + _PROFILE_TAG + " latest" + ) + def __init__( self, credential, # type: "TokenCredential" endpoint, # type: str + api_version=None, + profile=KnownProfiles.default, **kwargs # type: Any ): - # type: (...) -> None - base_url = '{endpoint}/formrecognizer/v2.0' + if api_version == '2.0': + base_url = '{endpoint}/formrecognizer/v2.0' + elif api_version == '2.1-preview.1': + base_url = '{endpoint}/formrecognizer/v2.1-preview.1' + else: + raise ValueError("API version {} is not available".format(api_version)) self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + super(FormRecognizerClient, self).__init__( + api_version=api_version, + profile=profile + ) + + @classmethod + def _models_dict(cls, api_version): + return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._serialize.client_side_validation = False - self._deserialize = Deserializer(client_models) + @classmethod + def models(cls, api_version=DEFAULT_API_VERSION): + """Module depends on the API version: + * 2.0: :mod:`v2_0.models` + * 2.1-preview.1: :mod:`v2_1_preview_1.models` + """ + if api_version == '2.0': + from .v2_0 import models + return models + elif api_version == '2.1-preview.1': + from .v2_1_preview_1 import models + return models + raise ValueError("API version {} is not available".format(api_version)) def close(self): - # type: () -> None self._client.close() - def __enter__(self): - # type: () -> FormRecognizerClient self._client.__enter__() return self - def __exit__(self, *exc_details): - # type: (Any) -> None self._client.__exit__(*exc_details) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_operations_mixin.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_operations_mixin.py new file mode 100644 index 000000000000..b3352228bbe3 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_operations_mixin.py @@ -0,0 +1,669 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrest import Serializer, Deserializer +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.polling.base_polling import LROBasePolling + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, IO, Iterable, Optional, TypeVar, Union + + +class FormRecognizerClientOperationsMixin(object): + + def begin_analyze_business_card_async( + self, + include_text_details=False, # type: Optional[bool] + locale=None, # type: Optional[str] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + """Analyze Business Card. + + Extract field text and semantic values from a given business card document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en- + IN, en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_business_card_async') + if api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_business_card_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.begin_analyze_business_card_async(include_text_details, locale, file_stream, **kwargs) + + def begin_analyze_layout_async( + self, + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + """Analyze Layout. + + Extract text and layout information from a given document. The input document must be of one of + the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. + Alternatively, use 'application/json' type to specify the location (Uri or local path) of the + document to be analyzed. + + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_layout_async') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_layout_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.begin_analyze_layout_async(file_stream, **kwargs) + + def begin_analyze_receipt_async( + self, + include_text_details=False, # type: Optional[bool] + locale=None, # type: Optional[str] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + """Analyze Receipt. + + Extract field text and semantic values from a given receipt document. The input document must + be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, + en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_receipt_async') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_receipt_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + # FIXME: this is handwritten + if api_version == '2.0': + return mixin_instance.begin_analyze_receipt_async(include_text_details, file_stream, **kwargs) + elif api_version == '2.1-preview.1': + return mixin_instance.begin_analyze_receipt_async(include_text_details, locale, file_stream, **kwargs) + + def begin_analyze_with_custom_model( + self, + model_id, # type: str + include_text_details=False, # type: Optional[bool] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + """Analyze Form. + + Extract key-value pairs, tables, and semantic values from a given document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. + + :param model_id: Model identifier. + :type model_id: str + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_with_custom_model') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_with_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.begin_analyze_with_custom_model(model_id, include_text_details, file_stream, **kwargs) + + def begin_compose_custom_models_async( + self, + compose_request, # type: "models.ComposeRequest" + **kwargs # type: Any + ): + """Compose trained with labels models into one composed model. + + Compose request would include list of models ids. + It would validate what all models either trained with labels model or composed model. + It would validate limit of models put together. + + :param compose_request: Compose models. + :type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_compose_custom_models_async') + if api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_compose_custom_models_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.begin_compose_custom_models_async(compose_request, **kwargs) + + def begin_copy_custom_model( + self, + model_id, # type: str + copy_request, # type: "models.CopyRequest" + **kwargs # type: Any + ): + """Copy Custom Model. + + Copy custom model stored in this resource (the source) to user specified target Form Recognizer + resource. + + :param model_id: Model identifier. + :type model_id: str + :param copy_request: Copy request parameters. + :type copy_request: ~azure.ai.formrecognizer.models.CopyRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_copy_custom_model') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_copy_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.begin_copy_custom_model(model_id, copy_request, **kwargs) + + def begin_train_custom_model_async( + self, + train_request, # type: "models.TrainRequest" + **kwargs # type: Any + ): + """Train Custom Model. + + Create and train a custom model. The request must include a source parameter that is either an + externally accessible Azure storage blob container Uri (preferably a Shared Access Signature + Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, + they must follow the Linux/Unix path format and be an absolute path rooted to the input mount + configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' + then a valid source path would be '/input/contosodataset'. All data to be trained is expected + to be under the source folder or sub folders under it. Models are trained using documents that + are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. + Other type of content is ignored. + + :param train_request: Training request parameters. + :type train_request: ~azure.ai.formrecognizer.models.TrainRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_train_custom_model_async') + if api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_train_custom_model_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.begin_train_custom_model_async(train_request, **kwargs) + + def delete_custom_model( + self, + model_id, # type: str + **kwargs # type: Any + ): + """Delete Custom Model. + + Mark model for deletion. Model artifacts will be permanently removed within a predetermined + period. + + :param model_id: Model identifier. + :type model_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('delete_custom_model') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'delete_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.delete_custom_model(model_id, **kwargs) + + def generate_model_copy_authorization( + self, + **kwargs # type: Any + ): + """Generate Copy Authorization. + + Generate authorization to copy a model into the target Form Recognizer resource. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyAuthorizationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('generate_model_copy_authorization') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'generate_model_copy_authorization'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.generate_model_copy_authorization(**kwargs) + + def get_analyze_business_card_result( + self, + result_id, # type: str + **kwargs # type: Any + ): + """Get Analyze Business Card Result. + + Track the progress and obtain the result of the analyze business card operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_business_card_result') + if api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_business_card_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_analyze_business_card_result(result_id, **kwargs) + + def get_analyze_form_result( + self, + model_id, # type: str + result_id, # type: str + **kwargs # type: Any + ): + """Get Analyze Form Result. + + Obtain current status and the result of the analyze form operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_form_result') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_form_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_analyze_form_result(model_id, result_id, **kwargs) + + def get_analyze_layout_result( + self, + result_id, # type: str + **kwargs # type: Any + ): + """Get Analyze Layout Result. + + Track the progress and obtain the result of the analyze layout operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_layout_result') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_layout_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_analyze_layout_result(result_id, **kwargs) + + def get_analyze_receipt_result( + self, + result_id, # type: str + **kwargs # type: Any + ): + """Get Analyze Receipt Result. + + Track the progress and obtain the result of the analyze receipt operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_receipt_result') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_receipt_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_analyze_receipt_result(result_id, **kwargs) + + def get_custom_model( + self, + model_id, # type: str + include_keys=False, # type: Optional[bool] + **kwargs # type: Any + ): + """Get Custom Model. + + Get detailed information about a custom model. + + :param model_id: Model identifier. + :type model_id: str + :param include_keys: Include list of extracted keys in model information. + :type include_keys: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Model, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Model + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_custom_model') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_custom_model(model_id, include_keys, **kwargs) + + def get_custom_model_copy_result( + self, + model_id, # type: str + result_id, # type: str + **kwargs # type: Any + ): + """Get Custom Model Copy Result. + + Obtain current status and the result of a custom model copy operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Copy operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_custom_model_copy_result') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_custom_model_copy_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_custom_model_copy_result(model_id, result_id, **kwargs) + + def get_custom_models( + self, + **kwargs # type: Any + ): + """Get Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Models, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Models + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_custom_models') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_custom_models'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.get_custom_models(**kwargs) + + def list_custom_models( + self, + **kwargs # type: Any + ): + """List Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either Models or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.ai.formrecognizer.models.Models] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('list_custom_models') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from .v2_1_preview_1.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'list_custom_models'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.list_custom_models(**kwargs) + + def train_custom_model_async( + self, + train_request, # type: "models.TrainRequest" + **kwargs # type: Any + ): + """Train Custom Model. + + Create and train a custom model. The request must include a source parameter that is either an + externally accessible Azure storage blob container Uri (preferably a Shared Access Signature + Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, + they must follow the Linux/Unix path format and be an absolute path rooted to the input mount + configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' + then a valid source path would be '/input/contosodataset'. All data to be trained is expected + to be under the source folder or sub folders under it. Models are trained using documents that + are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. + Other type of content is ignored. + + :param train_request: Training request parameters. + :type train_request: ~azure.ai.formrecognizer.models.TrainRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('train_custom_model_async') + if api_version == '2.0': + from .v2_0.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'train_custom_model_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.train_custom_model_async(train_request, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_version.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_version.py index 9aa774407087..a30a458f8b5b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_version.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/_version.py @@ -1,7 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) -# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. # -------------------------------------------------------------------------- -VERSION = "1.0.0b3" +VERSION = "0.1.0" \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/__init__.py index 8e5a144b5cf0..69eccfa9e16e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/__init__.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/__init__.py @@ -1,8 +1,10 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._form_recognizer_client_async import FormRecognizerClient +from ._form_recognizer_client import FormRecognizerClient __all__ = ['FormRecognizerClient'] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration.py new file mode 100644 index 000000000000..f6cc9f813873 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from typing import Any + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +from .._version import VERSION + + +class FormRecognizerClientConfiguration(Configuration): + """Configuration for FormRecognizerClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + """ + + def __init__( + self, + credential, # type: "AsyncTokenCredential" + endpoint, # type: str + **kwargs # type: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if endpoint is None: + raise ValueError("Parameter 'endpoint' must not be None.") + super(FormRecognizerClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.endpoint = endpoint + self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'azure-ai-formrecognizer/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client.py new file mode 100644 index 000000000000..a8e276459202 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from azure.core import AsyncPipelineClient +from msrest import Serializer, Deserializer + +from azure.profiles import KnownProfiles, ProfileDefinition +from azure.profiles.multiapiclient import MultiApiClientMixin +from ._configuration import FormRecognizerClientConfiguration +from ._operations_mixin import FormRecognizerClientOperationsMixin +class _SDKClient(object): + def __init__(self, *args, **kwargs): + """This is a fake class to support current implemetation of MultiApiClientMixin." + Will be removed in final version of multiapi azure-core based client + """ + pass + +class FormRecognizerClient(FormRecognizerClientOperationsMixin, MultiApiClientMixin, _SDKClient): + """Extracts information from forms and images into structured data. + + This ready contains multiple API versions, to help you deal with all of the Azure clouds + (Azure Stack, Azure Government, Azure China, etc.). + By default, it uses the latest API version available on public Azure. + For production, you should stick to a particular api-version and/or profile. + The profile sets a mapping between an operation group and its API version. + The api-version parameter sets the default API version if the operation + group is not described in the profile. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + :param str api_version: API version to use if no profile is provided, or if + missing in profile. + :param profile: A profile definition, from KnownProfiles to dict. + :type profile: azure.profiles.KnownProfiles + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + DEFAULT_API_VERSION = '2.1-preview.1' + _PROFILE_TAG = "azure.ai.formrecognizer.FormRecognizerClient" + LATEST_PROFILE = ProfileDefinition({ + _PROFILE_TAG: { + None: DEFAULT_API_VERSION, + 'train_custom_model_async': '2.0', + }}, + _PROFILE_TAG + " latest" + ) + + def __init__( + self, + credential, # type: "AsyncTokenCredential" + endpoint, # type: str + api_version=None, + profile=KnownProfiles.default, + **kwargs # type: Any + ) -> None: + if api_version == '2.0': + base_url = '{endpoint}/formrecognizer/v2.0' + elif api_version == '2.1-preview.1': + base_url = '{endpoint}/formrecognizer/v2.1-preview.1' + else: + raise ValueError("API version {} is not available".format(api_version)) + self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) + self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + super(FormRecognizerClient, self).__init__( + api_version=api_version, + profile=profile + ) + + @classmethod + def _models_dict(cls, api_version): + return {k: v for k, v in cls.models(api_version).__dict__.items() if isinstance(v, type)} + + @classmethod + def models(cls, api_version=DEFAULT_API_VERSION): + """Module depends on the API version: + + * 2.0: :mod:`v2_0.models` + * 2.1-preview.1: :mod:`v2_1_preview_1.models` + """ + if api_version == '2.0': + from ..v2_0 import models + return models + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1 import models + return models + raise ValueError("API version {} is not available".format(api_version)) + + async def close(self): + await self._client.close() + async def __aenter__(self): + await self._client.__aenter__() + return self + async def __aexit__(self, *exc_details): + await self._client.__aexit__(*exc_details) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_operations_mixin.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_operations_mixin.py new file mode 100644 index 000000000000..83df251b7179 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_operations_mixin.py @@ -0,0 +1,665 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrest import Serializer, Deserializer +from typing import Any, AsyncIterable, Callable, Dict, Generic, IO, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.polling.async_base_polling import AsyncLROBasePolling + + +class FormRecognizerClientOperationsMixin(object): + + async def begin_analyze_business_card_async( + self, + include_text_details: Optional[bool] = False, + locale: Optional[str] = None, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Business Card. + + Extract field text and semantic values from a given business card document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en- + IN, en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_business_card_async') + if api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_business_card_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.begin_analyze_business_card_async(include_text_details, locale, file_stream, **kwargs) + + async def begin_analyze_layout_async( + self, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Layout. + + Extract text and layout information from a given document. The input document must be of one of + the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. + Alternatively, use 'application/json' type to specify the location (Uri or local path) of the + document to be analyzed. + + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_layout_async') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_layout_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.begin_analyze_layout_async(file_stream, **kwargs) + + async def begin_analyze_receipt_async( + self, + include_text_details: Optional[bool] = False, + locale: Optional[str] = None, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Receipt. + + Extract field text and semantic values from a given receipt document. The input document must + be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, + en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_receipt_async') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_receipt_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + # FIXME: this is handwritten + if api_version == '2.0': + return await mixin_instance.begin_analyze_receipt_async(include_text_details, file_stream, **kwargs) + elif api_version == '2.1-preview.1': + return await mixin_instance.begin_analyze_receipt_async(include_text_details, locale, file_stream, **kwargs) + + async def begin_analyze_with_custom_model( + self, + model_id: str, + include_text_details: Optional[bool] = False, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Form. + + Extract key-value pairs, tables, and semantic values from a given document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. + + :param model_id: Model identifier. + :type model_id: str + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_analyze_with_custom_model') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_analyze_with_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.begin_analyze_with_custom_model(model_id, include_text_details, file_stream, **kwargs) + + async def begin_compose_custom_models_async( + self, + compose_request: "models.ComposeRequest", + **kwargs + ) -> AsyncLROPoller[None]: + """Compose trained with labels models into one composed model. + + Compose request would include list of models ids. + It would validate what all models either trained with labels model or composed model. + It would validate limit of models put together. + + :param compose_request: Compose models. + :type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_compose_custom_models_async') + if api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_compose_custom_models_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.begin_compose_custom_models_async(compose_request, **kwargs) + + async def begin_copy_custom_model( + self, + model_id: str, + copy_request: "models.CopyRequest", + **kwargs + ) -> AsyncLROPoller[None]: + """Copy Custom Model. + + Copy custom model stored in this resource (the source) to user specified target Form Recognizer + resource. + + :param model_id: Model identifier. + :type model_id: str + :param copy_request: Copy request parameters. + :type copy_request: ~azure.ai.formrecognizer.models.CopyRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_copy_custom_model') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_copy_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.begin_copy_custom_model(model_id, copy_request, **kwargs) + + async def begin_train_custom_model_async( + self, + train_request: "models.TrainRequest", + **kwargs + ) -> AsyncLROPoller[None]: + """Train Custom Model. + + Create and train a custom model. The request must include a source parameter that is either an + externally accessible Azure storage blob container Uri (preferably a Shared Access Signature + Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, + they must follow the Linux/Unix path format and be an absolute path rooted to the input mount + configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' + then a valid source path would be '/input/contosodataset'. All data to be trained is expected + to be under the source folder or sub folders under it. Models are trained using documents that + are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. + Other type of content is ignored. + + :param train_request: Training request parameters. + :type train_request: ~azure.ai.formrecognizer.models.TrainRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + api_version = self._get_api_version('begin_train_custom_model_async') + if api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'begin_train_custom_model_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.begin_train_custom_model_async(train_request, **kwargs) + + async def delete_custom_model( + self, + model_id: str, + **kwargs + ) -> None: + """Delete Custom Model. + + Mark model for deletion. Model artifacts will be permanently removed within a predetermined + period. + + :param model_id: Model identifier. + :type model_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('delete_custom_model') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'delete_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.delete_custom_model(model_id, **kwargs) + + async def generate_model_copy_authorization( + self, + **kwargs + ) -> "models.CopyAuthorizationResult": + """Generate Copy Authorization. + + Generate authorization to copy a model into the target Form Recognizer resource. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyAuthorizationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('generate_model_copy_authorization') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'generate_model_copy_authorization'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.generate_model_copy_authorization(**kwargs) + + async def get_analyze_business_card_result( + self, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Business Card Result. + + Track the progress and obtain the result of the analyze business card operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_business_card_result') + if api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_business_card_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_analyze_business_card_result(result_id, **kwargs) + + async def get_analyze_form_result( + self, + model_id: str, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Form Result. + + Obtain current status and the result of the analyze form operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_form_result') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_form_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_analyze_form_result(model_id, result_id, **kwargs) + + async def get_analyze_layout_result( + self, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Layout Result. + + Track the progress and obtain the result of the analyze layout operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_layout_result') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_layout_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_analyze_layout_result(result_id, **kwargs) + + async def get_analyze_receipt_result( + self, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Receipt Result. + + Track the progress and obtain the result of the analyze receipt operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_analyze_receipt_result') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_analyze_receipt_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_analyze_receipt_result(result_id, **kwargs) + + async def get_custom_model( + self, + model_id: str, + include_keys: Optional[bool] = False, + **kwargs + ) -> "models.Model": + """Get Custom Model. + + Get detailed information about a custom model. + + :param model_id: Model identifier. + :type model_id: str + :param include_keys: Include list of extracted keys in model information. + :type include_keys: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Model, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Model + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_custom_model') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_custom_model'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_custom_model(model_id, include_keys, **kwargs) + + async def get_custom_model_copy_result( + self, + model_id: str, + result_id: str, + **kwargs + ) -> "models.CopyOperationResult": + """Get Custom Model Copy Result. + + Obtain current status and the result of a custom model copy operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Copy operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_custom_model_copy_result') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_custom_model_copy_result'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_custom_model_copy_result(model_id, result_id, **kwargs) + + async def get_custom_models( + self, + **kwargs + ) -> "models.Models": + """Get Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Models, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Models + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('get_custom_models') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'get_custom_models'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.get_custom_models(**kwargs) + + def list_custom_models( + self, + **kwargs + ) -> AsyncItemPaged["models.Models"]: + """List Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either Models or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.ai.formrecognizer.models.Models] + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('list_custom_models') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + elif api_version == '2.1-preview.1': + from ..v2_1_preview_1.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'list_custom_models'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return mixin_instance.list_custom_models(**kwargs) + + async def train_custom_model_async( + self, + train_request: "models.TrainRequest", + **kwargs + ) -> None: + """Train Custom Model. + + Create and train a custom model. The request must include a source parameter that is either an + externally accessible Azure storage blob container Uri (preferably a Shared Access Signature + Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, + they must follow the Linux/Unix path format and be an absolute path rooted to the input mount + configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' + then a valid source path would be '/input/contosodataset'. All data to be trained is expected + to be under the source folder or sub folders under it. Models are trained using documents that + are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. + Other type of content is ignored. + + :param train_request: Training request parameters. + :type train_request: ~azure.ai.formrecognizer.models.TrainRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + api_version = self._get_api_version('train_custom_model_async') + if api_version == '2.0': + from ..v2_0.aio.operations import FormRecognizerClientOperationsMixin as OperationClass + else: + raise ValueError("API version {} does not have operation 'train_custom_model_async'".format(api_version)) + mixin_instance = OperationClass() + mixin_instance._client = self._client + mixin_instance._config = self._config + mixin_instance._serialize = Serializer(self._models_dict(api_version)) + mixin_instance._serialize.client_side_validation = False + mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) + return await mixin_instance.train_custom_model_async(train_request, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models.py new file mode 100644 index 000000000000..474c32ef90d2 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models.py @@ -0,0 +1,8 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# -------------------------------------------------------------------------- +from .v2_0.models import * +from .v2_1_preview_1.models import * diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/__init__.py new file mode 100644 index 000000000000..d4be1e681b60 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._form_recognizer_client import FormRecognizerClient +__all__ = ['FormRecognizerClient'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_configuration.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_configuration.py new file mode 100644 index 000000000000..e835a903b4f3 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_configuration.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +VERSION = "unknown" + +class FormRecognizerClientConfiguration(Configuration): + """Configuration for FormRecognizerClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + endpoint, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if endpoint is None: + raise ValueError("Parameter 'endpoint' must not be None.") + super(FormRecognizerClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.endpoint = endpoint + self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'ai-formrecognizer/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_form_recognizer_client.py new file mode 100644 index 000000000000..557316acb16d --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_form_recognizer_client.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core import PipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +from ._configuration import FormRecognizerClientConfiguration +from .operations import FormRecognizerClientOperationsMixin +from . import models + + +class FormRecognizerClient(FormRecognizerClientOperationsMixin): + """Extracts information from forms and images into structured data. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential, # type: "TokenCredential" + endpoint, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + base_url = '{endpoint}/formrecognizer/v2.0' + self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) + self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> FormRecognizerClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_metadata.json b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_metadata.json new file mode 100644 index 000000000000..9a012d210a67 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/_metadata.json @@ -0,0 +1,276 @@ +{ + "chosen_version": "2.0", + "total_api_version_list": ["2.0"], + "client": { + "name": "FormRecognizerClient", + "filename": "_form_recognizer_client", + "description": "Extracts information from forms and images into structured data.", + "base_url": null, + "custom_base_url": "\u0027{endpoint}/formrecognizer/v2.0\u0027", + "azure_arm": false, + "has_lro_operations": true, + "client_side_validation": false + }, + "global_parameters": { + "sync_method": { + "credential": { + "method_signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "endpoint": { + "method_signature": "endpoint, # type: str", + "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).", + "docstring_type": "str", + "required": true + } + }, + "async_method": { + "credential": { + "method_signature": "credential, # type: \"AsyncTokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "endpoint": { + "method_signature": "endpoint, # type: str", + "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, endpoint" + }, + "config": { + "credential": true, + "credential_scopes": ["https://cognitiveservices.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null + }, + "operation_groups": { + }, + "operation_mixins": { + "train_custom_model_async" : { + "sync": { + "signature": "def train_custom_model_async(\n self,\n train_request, # type: \"models.TrainRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Train Custom Model.\n\nCreate and train a custom model. The request must include a source parameter that is either an\nexternally accessible Azure storage blob container Uri (preferably a Shared Access Signature\nUri) or valid path to a data folder in a locally mounted drive. When local paths are specified,\nthey must follow the Linux/Unix path format and be an absolute path rooted to the input mount\nconfiguration setting value e.g., if \u0027{Mounts:Input}\u0027 configuration setting value is \u0027/input\u0027\nthen a valid source path would be \u0027/input/contosodataset\u0027. All data to be trained is expected\nto be under the source folder or sub folders under it. Models are trained using documents that\nare of the following content type - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027, \u0027image/tiff\u0027.\nOther type of content is ignored.\n\n:param train_request: Training request parameters.\n:type train_request: ~azure.ai.formrecognizer.models.TrainRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def train_custom_model_async(\n self,\n train_request: \"models.TrainRequest\",\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"Train Custom Model.\n\nCreate and train a custom model. The request must include a source parameter that is either an\nexternally accessible Azure storage blob container Uri (preferably a Shared Access Signature\nUri) or valid path to a data folder in a locally mounted drive. When local paths are specified,\nthey must follow the Linux/Unix path format and be an absolute path rooted to the input mount\nconfiguration setting value e.g., if \u0027{Mounts:Input}\u0027 configuration setting value is \u0027/input\u0027\nthen a valid source path would be \u0027/input/contosodataset\u0027. All data to be trained is expected\nto be under the source folder or sub folders under it. Models are trained using documents that\nare of the following content type - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027, \u0027image/tiff\u0027.\nOther type of content is ignored.\n\n:param train_request: Training request parameters.\n:type train_request: ~azure.ai.formrecognizer.models.TrainRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "train_request" + }, + "get_custom_model" : { + "sync": { + "signature": "def get_custom_model(\n self,\n model_id, # type: str\n include_keys=False, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Custom Model.\n\nGet detailed information about a custom model.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_keys: Include list of extracted keys in model information.\n:type include_keys: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Model, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Model\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_custom_model(\n self,\n model_id: str,\n include_keys: Optional[bool] = False,\n **kwargs\n) -\u003e \"models.Model\":\n", + "doc": "\"\"\"Get Custom Model.\n\nGet detailed information about a custom model.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_keys: Include list of extracted keys in model information.\n:type include_keys: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Model, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Model\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, include_keys" + }, + "delete_custom_model" : { + "sync": { + "signature": "def delete_custom_model(\n self,\n model_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Delete Custom Model.\n\nMark model for deletion. Model artifacts will be permanently removed within a predetermined\nperiod.\n\n:param model_id: Model identifier.\n:type model_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def delete_custom_model(\n self,\n model_id: str,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"Delete Custom Model.\n\nMark model for deletion. Model artifacts will be permanently removed within a predetermined\nperiod.\n\n:param model_id: Model identifier.\n:type model_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id" + }, + "_analyze_with_custom_model_initial" : { + "sync": { + "signature": "def _analyze_with_custom_model_initial(\n self,\n model_id, # type: str\n include_text_details=False, # type: Optional[bool]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_with_custom_model_initial(\n self,\n model_id: str,\n include_text_details: Optional[bool] = False,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, include_text_details, file_stream" + }, + "begin_analyze_with_custom_model" : { + "sync": { + "signature": "def begin_analyze_with_custom_model(\n self,\n model_id, # type: str\n include_text_details=False, # type: Optional[bool]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Form.\n\nExtract key-value pairs, tables, and semantic values from a given document. The input document\nmust be of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri or local\npath) of the document to be analyzed.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_with_custom_model(\n self,\n model_id: str,\n include_text_details: Optional[bool] = False,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Form.\n\nExtract key-value pairs, tables, and semantic values from a given document. The input document\nmust be of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri or local\npath) of the document to be analyzed.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "model_id, include_text_details, file_stream" + }, + "get_analyze_form_result" : { + "sync": { + "signature": "def get_analyze_form_result(\n self,\n model_id, # type: str\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Form Result.\n\nObtain current status and the result of the analyze form operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_form_result(\n self,\n model_id: str,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Form Result.\n\nObtain current status and the result of the analyze form operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, result_id" + }, + "_copy_custom_model_initial" : { + "sync": { + "signature": "def _copy_custom_model_initial(\n self,\n model_id, # type: str\n copy_request, # type: \"models.CopyRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _copy_custom_model_initial(\n self,\n model_id: str,\n copy_request: \"models.CopyRequest\",\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, copy_request" + }, + "begin_copy_custom_model" : { + "sync": { + "signature": "def begin_copy_custom_model(\n self,\n model_id, # type: str\n copy_request, # type: \"models.CopyRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Copy Custom Model.\n\nCopy custom model stored in this resource (the source) to user specified target Form Recognizer\nresource.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_copy_custom_model(\n self,\n model_id: str,\n copy_request: \"models.CopyRequest\",\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Copy Custom Model.\n\nCopy custom model stored in this resource (the source) to user specified target Form Recognizer\nresource.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "model_id, copy_request" + }, + "get_custom_model_copy_result" : { + "sync": { + "signature": "def get_custom_model_copy_result(\n self,\n model_id, # type: str\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Custom Model Copy Result.\n\nObtain current status and the result of a custom model copy operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Copy operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_custom_model_copy_result(\n self,\n model_id: str,\n result_id: str,\n **kwargs\n) -\u003e \"models.CopyOperationResult\":\n", + "doc": "\"\"\"Get Custom Model Copy Result.\n\nObtain current status and the result of a custom model copy operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Copy operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, result_id" + }, + "generate_model_copy_authorization" : { + "sync": { + "signature": "def generate_model_copy_authorization(\n self,\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Generate Copy Authorization.\n\nGenerate authorization to copy a model into the target Form Recognizer resource.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyAuthorizationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def generate_model_copy_authorization(\n self,\n **kwargs\n) -\u003e \"models.CopyAuthorizationResult\":\n", + "doc": "\"\"\"Generate Copy Authorization.\n\nGenerate authorization to copy a model into the target Form Recognizer resource.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyAuthorizationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "" + }, + "_analyze_receipt_async_initial" : { + "sync": { + "signature": "def _analyze_receipt_async_initial(\n self,\n include_text_details=False, # type: Optional[bool]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_receipt_async_initial(\n self,\n include_text_details: Optional[bool] = False,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "include_text_details, file_stream" + }, + "begin_analyze_receipt_async" : { + "sync": { + "signature": "def begin_analyze_receipt_async(\n self,\n include_text_details=False, # type: Optional[bool]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Receipt.\n\nExtract field text and semantic values from a given receipt document. The input document must\nbe of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri or local\npath) of the document to be analyzed.\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_receipt_async(\n self,\n include_text_details: Optional[bool] = False,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Receipt.\n\nExtract field text and semantic values from a given receipt document. The input document must\nbe of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri or local\npath) of the document to be analyzed.\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "include_text_details, file_stream" + }, + "get_analyze_receipt_result" : { + "sync": { + "signature": "def get_analyze_receipt_result(\n self,\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Receipt Result.\n\nTrack the progress and obtain the result of the analyze receipt operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_receipt_result(\n self,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Receipt Result.\n\nTrack the progress and obtain the result of the analyze receipt operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "result_id" + }, + "_analyze_layout_async_initial" : { + "sync": { + "signature": "def _analyze_layout_async_initial(\n self,\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_layout_async_initial(\n self,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "file_stream" + }, + "begin_analyze_layout_async" : { + "sync": { + "signature": "def begin_analyze_layout_async(\n self,\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Layout.\n\nExtract text and layout information from a given document. The input document must be of one of\nthe supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or \u0027image/tiff\u0027.\nAlternatively, use \u0027application/json\u0027 type to specify the location (Uri or local path) of the\ndocument to be analyzed.\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_layout_async(\n self,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Layout.\n\nExtract text and layout information from a given document. The input document must be of one of\nthe supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or \u0027image/tiff\u0027.\nAlternatively, use \u0027application/json\u0027 type to specify the location (Uri or local path) of the\ndocument to be analyzed.\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "file_stream" + }, + "get_analyze_layout_result" : { + "sync": { + "signature": "def get_analyze_layout_result(\n self,\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Layout Result.\n\nTrack the progress and obtain the result of the analyze layout operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_layout_result(\n self,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Layout Result.\n\nTrack the progress and obtain the result of the analyze layout operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "result_id" + }, + "list_custom_models" : { + "sync": { + "signature": "def list_custom_models(\n self,\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"List Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either Models or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~azure.ai.formrecognizer.models.Models]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": false, + "signature": "def list_custom_models(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"models.Models\"]:\n", + "doc": "\"\"\"List Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either Models or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.ai.formrecognizer.models.Models]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "" + }, + "get_custom_models" : { + "sync": { + "signature": "def get_custom_models(\n self,\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Models, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Models\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_custom_models(\n self,\n **kwargs\n) -\u003e \"models.Models\":\n", + "doc": "\"\"\"Get Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Models, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Models\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "" + } + }, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.core.polling.base_polling\": [\"LROBasePolling\"], \"azure.core.paging\": [\"ItemPaged\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"IO\", \"Iterable\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.core.polling.async_base_polling\": [\"AsyncLROBasePolling\"], \"azure.core.async_paging\": [\"AsyncItemPaged\", \"AsyncList\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"AsyncIterable\", \"Callable\", \"Dict\", \"Generic\", \"IO\", \"Optional\", \"TypeVar\", \"Union\"]}}}" +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/__init__.py new file mode 100644 index 000000000000..69eccfa9e16e --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._form_recognizer_client import FormRecognizerClient +__all__ = ['FormRecognizerClient'] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/_configuration.py similarity index 89% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/_configuration.py index 076d4b740be2..7a4589348bec 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_configuration_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/_configuration.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -41,8 +43,7 @@ def __init__( self.credential = credential self.endpoint = endpoint - self.credential_scopes = ['https://cognitiveservices.azure.com/.default'] - self.credential_scopes.extend(kwargs.pop('credential_scopes', [])) + self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default']) kwargs.setdefault('sdk_moniker', 'ai-formrecognizer/{}'.format(VERSION)) self._configure(**kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/_form_recognizer_client.py similarity index 85% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/_form_recognizer_client.py index 8ef1d9a86519..74aefa561a82 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/_form_recognizer_client_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/_form_recognizer_client.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- @@ -13,8 +15,8 @@ # pylint: disable=unused-import,ungrouped-imports from azure.core.credentials_async import AsyncTokenCredential -from ._configuration_async import FormRecognizerClientConfiguration -from .operations_async import FormRecognizerClientOperationsMixin +from ._configuration import FormRecognizerClientConfiguration +from .operations import FormRecognizerClientOperationsMixin from .. import models diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/operations/__init__.py similarity index 64% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/__init__.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/operations/__init__.py index b0169450f22b..f2f858714054 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/__init__.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/operations/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/operations/_form_recognizer_client_operations.py similarity index 92% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/operations/_form_recognizer_client_operations.py index bdce33b13d8d..303314f1f8ed 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/_form_recognizer_client_operations_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/aio/operations/_form_recognizer_client_operations.py @@ -1,19 +1,19 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import Any, AsyncIterable, Callable, Dict, Generic, IO, Optional, TypeVar, Union import warnings from azure.core.async_paging import AsyncItemPaged, AsyncList -from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod from azure.core.polling.async_base_polling import AsyncLROBasePolling -from azure.core.tracing.decorator import distributed_trace -from azure.core.tracing.decorator_async import distributed_trace_async from ... import models @@ -22,7 +22,6 @@ class FormRecognizerClientOperationsMixin: - @distributed_trace_async async def train_custom_model_async( self, train_request: "models.TrainRequest", @@ -48,9 +47,12 @@ async def train_custom_model_async( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.train_custom_model_async.metadata['url'] # type: ignore @@ -65,12 +67,12 @@ async def train_custom_model_async( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(train_request, 'TrainRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -87,7 +89,6 @@ async def train_custom_model_async( train_custom_model_async.metadata = {'url': '/custom/models'} # type: ignore - @distributed_trace_async async def get_custom_model( self, model_id: str, @@ -108,8 +109,11 @@ async def get_custom_model( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Model"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_custom_model.metadata['url'] # type: ignore @@ -126,7 +130,7 @@ async def get_custom_model( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -145,7 +149,6 @@ async def get_custom_model( return deserialized get_custom_model.metadata = {'url': '/custom/models/{modelId}'} # type: ignore - @distributed_trace_async async def delete_custom_model( self, model_id: str, @@ -164,8 +167,11 @@ async def delete_custom_model( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.delete_custom_model.metadata['url'] # type: ignore @@ -180,6 +186,7 @@ async def delete_custom_model( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -203,9 +210,12 @@ async def _analyze_with_custom_model_initial( **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._analyze_with_custom_model_initial.metadata['url'] # type: ignore @@ -223,6 +233,7 @@ async def _analyze_with_custom_model_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: @@ -239,7 +250,6 @@ async def _analyze_with_custom_model_initial( "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) ) request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -256,7 +266,6 @@ async def _analyze_with_custom_model_initial( _analyze_with_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore - @distributed_trace_async async def begin_analyze_with_custom_model( self, model_id: str, @@ -276,7 +285,7 @@ async def begin_analyze_with_custom_model( :param include_text_details: Include text lines and element references in the result. :type include_text_details: bool :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. - :type file_stream: ~azure.ai.formrecognizer.models.SourcePath + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -324,7 +333,6 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_analyze_with_custom_model.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore - @distributed_trace_async async def get_analyze_form_result( self, model_id: str, @@ -345,8 +353,11 @@ async def get_analyze_form_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_analyze_form_result.metadata['url'] # type: ignore @@ -362,7 +373,7 @@ async def get_analyze_form_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -388,9 +399,12 @@ async def _copy_custom_model_initial( **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._copy_custom_model_initial.metadata['url'] # type: ignore @@ -406,12 +420,12 @@ async def _copy_custom_model_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(copy_request, 'CopyRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -428,7 +442,6 @@ async def _copy_custom_model_initial( _copy_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore - @distributed_trace_async async def begin_copy_custom_model( self, model_id: str, @@ -490,7 +503,6 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_copy_custom_model.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore - @distributed_trace_async async def get_custom_model_copy_result( self, model_id: str, @@ -511,8 +523,11 @@ async def get_custom_model_copy_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.CopyOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_custom_model_copy_result.metadata['url'] # type: ignore @@ -528,7 +543,7 @@ async def get_custom_model_copy_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -547,7 +562,6 @@ async def get_custom_model_copy_result( return deserialized get_custom_model_copy_result.metadata = {'url': '/custom/models/{modelId}/copyResults/{resultId}'} # type: ignore - @distributed_trace_async async def generate_model_copy_authorization( self, **kwargs @@ -562,8 +576,11 @@ async def generate_model_copy_authorization( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.CopyAuthorizationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.generate_model_copy_authorization.metadata['url'] # type: ignore @@ -577,7 +594,7 @@ async def generate_model_copy_authorization( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -605,9 +622,12 @@ async def _analyze_receipt_async_initial( **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._analyze_receipt_async_initial.metadata['url'] # type: ignore @@ -624,6 +644,7 @@ async def _analyze_receipt_async_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: @@ -640,7 +661,6 @@ async def _analyze_receipt_async_initial( "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) ) request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -657,7 +677,6 @@ async def _analyze_receipt_async_initial( _analyze_receipt_async_initial.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore - @distributed_trace_async async def begin_analyze_receipt_async( self, include_text_details: Optional[bool] = False, @@ -674,7 +693,7 @@ async def begin_analyze_receipt_async( :param include_text_details: Include text lines and element references in the result. :type include_text_details: bool :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. - :type file_stream: ~azure.ai.formrecognizer.models.SourcePath + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -721,7 +740,6 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_analyze_receipt_async.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore - @distributed_trace_async async def get_analyze_receipt_result( self, result_id: str, @@ -739,8 +757,11 @@ async def get_analyze_receipt_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_analyze_receipt_result.metadata['url'] # type: ignore @@ -755,7 +776,7 @@ async def get_analyze_receipt_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -780,9 +801,12 @@ async def _analyze_layout_async_initial( **kwargs ) -> None: cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._analyze_layout_async_initial.metadata['url'] # type: ignore @@ -797,6 +821,7 @@ async def _analyze_layout_async_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: @@ -813,7 +838,6 @@ async def _analyze_layout_async_initial( "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) ) request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -830,7 +854,6 @@ async def _analyze_layout_async_initial( _analyze_layout_async_initial.metadata = {'url': '/layout/analyze'} # type: ignore - @distributed_trace_async async def begin_analyze_layout_async( self, file_stream: Optional[Union[IO, "models.SourcePath"]] = None, @@ -844,7 +867,7 @@ async def begin_analyze_layout_async( document to be analyzed. :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. - :type file_stream: ~azure.ai.formrecognizer.models.SourcePath + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -890,7 +913,6 @@ def get_long_running_output(pipeline_response): return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_analyze_layout_async.metadata = {'url': '/layout/analyze'} # type: ignore - @distributed_trace_async async def get_analyze_layout_result( self, result_id: str, @@ -908,8 +930,11 @@ async def get_analyze_layout_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_analyze_layout_result.metadata['url'] # type: ignore @@ -924,7 +949,7 @@ async def get_analyze_layout_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) @@ -943,7 +968,6 @@ async def get_analyze_layout_result( return deserialized get_analyze_layout_result.metadata = {'url': '/layout/analyzeResults/{resultId}'} # type: ignore - @distributed_trace def list_custom_models( self, **kwargs @@ -958,14 +982,17 @@ def list_custom_models( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) op = "full" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1014,7 +1041,6 @@ async def get_next(next_link=None): ) list_custom_models.metadata = {'url': '/custom/models'} # type: ignore - @distributed_trace_async async def get_custom_models( self, **kwargs @@ -1029,9 +1055,12 @@ async def get_custom_models( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) op = "summary" + accept = "application/json" # Construct URL url = self.get_custom_models.metadata['url'] # type: ignore @@ -1046,7 +1075,7 @@ async def get_custom_models( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/__init__.py similarity index 94% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/__init__.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/__init__.py index 9a57f152e316..e5dd3b59841f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/__init__.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/__init__.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_form_recognizer_client_enums.py similarity index 92% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_form_recognizer_client_enums.py index da1bc59ee782..483cbee31c4f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_form_recognizer_client_enums.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_form_recognizer_client_enums.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_models.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_models.py similarity index 99% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_models.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_models.py index 1f3be66bb217..6b23382f7fb9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_models.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_models.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_models_py3.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_models_py3.py similarity index 99% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_models_py3.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_models_py3.py index 6f7110ece583..48ec2873c1c5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/models/_models_py3.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/models/_models_py3.py @@ -1,6 +1,8 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/operations/__init__.py similarity index 51% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/__init__.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/operations/__init__.py index 6711b796ba93..f2f858714054 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/aio/operations_async/__init__.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/operations/__init__.py @@ -1,10 +1,12 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- -from ._form_recognizer_client_operations_async import FormRecognizerClientOperationsMixin +from ._form_recognizer_client_operations import FormRecognizerClientOperationsMixin __all__ = [ 'FormRecognizerClientOperationsMixin', diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/operations/_form_recognizer_client_operations.py similarity index 92% rename from sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py rename to sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/operations/_form_recognizer_client_operations.py index 0f5963fedf21..26985406ac4f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/operations/_form_recognizer_client_operations.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/operations/_form_recognizer_client_operations.py @@ -1,18 +1,19 @@ # coding=utf-8 # -------------------------------------------------------------------------- -# Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.0.6282, generator: {generator}) +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # -------------------------------------------------------------------------- from typing import TYPE_CHECKING import warnings -from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineResponse from azure.core.pipeline.transport import HttpRequest, HttpResponse from azure.core.polling import LROPoller, NoPolling, PollingMethod from azure.core.polling.base_polling import LROBasePolling -from azure.core.tracing.decorator import distributed_trace from .. import models @@ -25,7 +26,6 @@ class FormRecognizerClientOperationsMixin(object): - @distributed_trace def train_custom_model_async( self, train_request, # type: "models.TrainRequest" @@ -52,9 +52,12 @@ def train_custom_model_async( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self.train_custom_model_async.metadata['url'] # type: ignore @@ -69,12 +72,12 @@ def train_custom_model_async( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(train_request, 'TrainRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -91,7 +94,6 @@ def train_custom_model_async( train_custom_model_async.metadata = {'url': '/custom/models'} # type: ignore - @distributed_trace def get_custom_model( self, model_id, # type: str @@ -113,8 +115,11 @@ def get_custom_model( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Model"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_custom_model.metadata['url'] # type: ignore @@ -131,7 +136,7 @@ def get_custom_model( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -150,7 +155,6 @@ def get_custom_model( return deserialized get_custom_model.metadata = {'url': '/custom/models/{modelId}'} # type: ignore - @distributed_trace def delete_custom_model( self, model_id, # type: str @@ -170,8 +174,11 @@ def delete_custom_model( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.delete_custom_model.metadata['url'] # type: ignore @@ -186,6 +193,7 @@ def delete_custom_model( # Construct headers header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.delete(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -210,9 +218,12 @@ def _analyze_with_custom_model_initial( ): # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._analyze_with_custom_model_initial.metadata['url'] # type: ignore @@ -230,6 +241,7 @@ def _analyze_with_custom_model_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: @@ -246,7 +258,6 @@ def _analyze_with_custom_model_initial( "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) ) request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -263,7 +274,6 @@ def _analyze_with_custom_model_initial( _analyze_with_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore - @distributed_trace def begin_analyze_with_custom_model( self, model_id, # type: str @@ -284,7 +294,7 @@ def begin_analyze_with_custom_model( :param include_text_details: Include text lines and element references in the result. :type include_text_details: bool :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. - :type file_stream: ~azure.ai.formrecognizer.models.SourcePath + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -332,7 +342,6 @@ def get_long_running_output(pipeline_response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_analyze_with_custom_model.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore - @distributed_trace def get_analyze_form_result( self, model_id, # type: str @@ -354,8 +363,11 @@ def get_analyze_form_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_analyze_form_result.metadata['url'] # type: ignore @@ -371,7 +383,7 @@ def get_analyze_form_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -398,9 +410,12 @@ def _copy_custom_model_initial( ): # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._copy_custom_model_initial.metadata['url'] # type: ignore @@ -416,12 +431,12 @@ def _copy_custom_model_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] body_content = self._serialize.body(copy_request, 'CopyRequest') body_content_kwargs['content'] = body_content request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -438,7 +453,6 @@ def _copy_custom_model_initial( _copy_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore - @distributed_trace def begin_copy_custom_model( self, model_id, # type: str @@ -501,7 +515,6 @@ def get_long_running_output(pipeline_response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_copy_custom_model.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore - @distributed_trace def get_custom_model_copy_result( self, model_id, # type: str @@ -523,8 +536,11 @@ def get_custom_model_copy_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.CopyOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_custom_model_copy_result.metadata['url'] # type: ignore @@ -540,7 +556,7 @@ def get_custom_model_copy_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -559,7 +575,6 @@ def get_custom_model_copy_result( return deserialized get_custom_model_copy_result.metadata = {'url': '/custom/models/{modelId}/copyResults/{resultId}'} # type: ignore - @distributed_trace def generate_model_copy_authorization( self, **kwargs # type: Any @@ -575,8 +590,11 @@ def generate_model_copy_authorization( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.CopyAuthorizationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.generate_model_copy_authorization.metadata['url'] # type: ignore @@ -590,7 +608,7 @@ def generate_model_copy_authorization( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.post(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -619,9 +637,12 @@ def _analyze_receipt_async_initial( ): # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._analyze_receipt_async_initial.metadata['url'] # type: ignore @@ -638,6 +659,7 @@ def _analyze_receipt_async_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: @@ -654,7 +676,6 @@ def _analyze_receipt_async_initial( "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) ) request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -671,7 +692,6 @@ def _analyze_receipt_async_initial( _analyze_receipt_async_initial.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore - @distributed_trace def begin_analyze_receipt_async( self, include_text_details=False, # type: Optional[bool] @@ -689,7 +709,7 @@ def begin_analyze_receipt_async( :param include_text_details: Include text lines and element references in the result. :type include_text_details: bool :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. - :type file_stream: ~azure.ai.formrecognizer.models.SourcePath + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -736,7 +756,6 @@ def get_long_running_output(pipeline_response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_analyze_receipt_async.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore - @distributed_trace def get_analyze_receipt_result( self, result_id, # type: str @@ -755,8 +774,11 @@ def get_analyze_receipt_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_analyze_receipt_result.metadata['url'] # type: ignore @@ -771,7 +793,7 @@ def get_analyze_receipt_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -797,9 +819,12 @@ def _analyze_layout_async_initial( ): # type: (...) -> None cls = kwargs.pop('cls', None) # type: ClsType[None] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" # Construct URL url = self._analyze_layout_async_initial.metadata['url'] # type: ignore @@ -814,6 +839,7 @@ def _analyze_layout_async_initial( # Construct headers header_parameters = {} # type: Dict[str, Any] header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') body_content_kwargs = {} # type: Dict[str, Any] if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: @@ -830,7 +856,6 @@ def _analyze_layout_async_initial( "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) ) request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) - pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) response = pipeline_response.http_response @@ -847,7 +872,6 @@ def _analyze_layout_async_initial( _analyze_layout_async_initial.metadata = {'url': '/layout/analyze'} # type: ignore - @distributed_trace def begin_analyze_layout_async( self, file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] @@ -862,7 +886,7 @@ def begin_analyze_layout_async( document to be analyzed. :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. - :type file_stream: ~azure.ai.formrecognizer.models.SourcePath + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath :keyword callable cls: A custom type or function that will be passed the direct response :keyword str continuation_token: A continuation token to restart a poller from a saved state. :keyword polling: True for ARMPolling, False for no polling, or a @@ -908,7 +932,6 @@ def get_long_running_output(pipeline_response): return LROPoller(self._client, raw_result, get_long_running_output, polling_method) begin_analyze_layout_async.metadata = {'url': '/layout/analyze'} # type: ignore - @distributed_trace def get_analyze_layout_result( self, result_id, # type: str @@ -927,8 +950,11 @@ def get_analyze_layout_result( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" # Construct URL url = self.get_analyze_layout_result.metadata['url'] # type: ignore @@ -943,7 +969,7 @@ def get_analyze_layout_result( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) @@ -962,7 +988,6 @@ def get_analyze_layout_result( return deserialized get_analyze_layout_result.metadata = {'url': '/layout/analyzeResults/{resultId}'} # type: ignore - @distributed_trace def list_custom_models( self, **kwargs # type: Any @@ -978,14 +1003,17 @@ def list_custom_models( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) op = "full" + accept = "application/json" def prepare_request(next_link=None): # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') if not next_link: # Construct URL @@ -1034,7 +1062,6 @@ def get_next(next_link=None): ) list_custom_models.metadata = {'url': '/custom/models'} # type: ignore - @distributed_trace def get_custom_models( self, **kwargs # type: Any @@ -1050,9 +1077,12 @@ def get_custom_models( :raises: ~azure.core.exceptions.HttpResponseError """ cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] - error_map = {404: ResourceNotFoundError, 409: ResourceExistsError} + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } error_map.update(kwargs.pop('error_map', {})) op = "summary" + accept = "application/json" # Construct URL url = self.get_custom_models.metadata['url'] # type: ignore @@ -1067,7 +1097,7 @@ def get_custom_models( # Construct headers header_parameters = {} # type: Dict[str, Any] - header_parameters['Accept'] = 'application/json' + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') request = self._client.get(url, query_parameters, header_parameters) pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/py.typed b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_0/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/__init__.py new file mode 100644 index 000000000000..d4be1e681b60 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/__init__.py @@ -0,0 +1,16 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._form_recognizer_client import FormRecognizerClient +__all__ = ['FormRecognizerClient'] + +try: + from ._patch import patch_sdk # type: ignore + patch_sdk() +except ImportError: + pass diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_configuration.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_configuration.py new file mode 100644 index 000000000000..e835a903b4f3 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_configuration.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +VERSION = "unknown" + +class FormRecognizerClientConfiguration(Configuration): + """Configuration for FormRecognizerClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + """ + + def __init__( + self, + credential, # type: "TokenCredential" + endpoint, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if endpoint is None: + raise ValueError("Parameter 'endpoint' must not be None.") + super(FormRecognizerClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.endpoint = endpoint + self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'ai-formrecognizer/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs # type: Any + ): + # type: (...) -> None + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_form_recognizer_client.py new file mode 100644 index 000000000000..078fc9f43a25 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_form_recognizer_client.py @@ -0,0 +1,63 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import TYPE_CHECKING + +from azure.core import PipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any + + from azure.core.credentials import TokenCredential + +from ._configuration import FormRecognizerClientConfiguration +from .operations import FormRecognizerClientOperationsMixin +from . import models + + +class FormRecognizerClient(FormRecognizerClientOperationsMixin): + """Extracts information from forms and images into structured data. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials.TokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential, # type: "TokenCredential" + endpoint, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + base_url = '{endpoint}/formrecognizer/v2.1-preview.1' + self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) + self._client = PipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + + def close(self): + # type: () -> None + self._client.close() + + def __enter__(self): + # type: () -> FormRecognizerClient + self._client.__enter__() + return self + + def __exit__(self, *exc_details): + # type: (Any) -> None + self._client.__exit__(*exc_details) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_metadata.json b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_metadata.json new file mode 100644 index 000000000000..109425eed83f --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/_metadata.json @@ -0,0 +1,348 @@ +{ + "chosen_version": "2.1-preview.1", + "total_api_version_list": ["2.1-preview.1"], + "client": { + "name": "FormRecognizerClient", + "filename": "_form_recognizer_client", + "description": "Extracts information from forms and images into structured data.", + "base_url": null, + "custom_base_url": "\u0027{endpoint}/formrecognizer/v2.1-preview.1\u0027", + "azure_arm": false, + "has_lro_operations": true, + "client_side_validation": false + }, + "global_parameters": { + "sync_method": { + "credential": { + "method_signature": "credential, # type: \"TokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials.TokenCredential", + "required": true + }, + "endpoint": { + "method_signature": "endpoint, # type: str", + "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).", + "docstring_type": "str", + "required": true + } + }, + "async_method": { + "credential": { + "method_signature": "credential, # type: \"AsyncTokenCredential\"", + "description": "Credential needed for the client to connect to Azure.", + "docstring_type": "~azure.core.credentials_async.AsyncTokenCredential", + "required": true + }, + "endpoint": { + "method_signature": "endpoint, # type: str", + "description": "Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com).", + "docstring_type": "str", + "required": true + } + }, + "constant": { + }, + "call": "credential, endpoint" + }, + "config": { + "credential": true, + "credential_scopes": ["https://cognitiveservices.azure.com/.default"], + "credential_default_policy_type": "BearerTokenCredentialPolicy", + "credential_default_policy_type_has_async_version": true, + "credential_key_header_name": null + }, + "operation_groups": { + }, + "operation_mixins": { + "_train_custom_model_async_initial" : { + "sync": { + "signature": "def _train_custom_model_async_initial(\n self,\n train_request, # type: \"models.TrainRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param train_request: Training request parameters.\n:type train_request: ~azure.ai.formrecognizer.models.TrainRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _train_custom_model_async_initial(\n self,\n train_request: \"models.TrainRequest\",\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param train_request: Training request parameters.\n:type train_request: ~azure.ai.formrecognizer.models.TrainRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "train_request" + }, + "begin_train_custom_model_async" : { + "sync": { + "signature": "def begin_train_custom_model_async(\n self,\n train_request, # type: \"models.TrainRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Train Custom Model.\n\nCreate and train a custom model. The request must include a source parameter that is either an\nexternally accessible Azure storage blob container Uri (preferably a Shared Access Signature\nUri) or valid path to a data folder in a locally mounted drive. When local paths are specified,\nthey must follow the Linux/Unix path format and be an absolute path rooted to the input mount\nconfiguration setting value e.g., if \u0027{Mounts:Input}\u0027 configuration setting value is \u0027/input\u0027\nthen a valid source path would be \u0027/input/contosodataset\u0027. All data to be trained is expected\nto be under the source folder or sub folders under it. Models are trained using documents that\nare of the following content type - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027, \u0027image/tiff\u0027.\nOther type of content is ignored.\n\n:param train_request: Training request parameters.\n:type train_request: ~azure.ai.formrecognizer.models.TrainRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_train_custom_model_async(\n self,\n train_request: \"models.TrainRequest\",\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Train Custom Model.\n\nCreate and train a custom model. The request must include a source parameter that is either an\nexternally accessible Azure storage blob container Uri (preferably a Shared Access Signature\nUri) or valid path to a data folder in a locally mounted drive. When local paths are specified,\nthey must follow the Linux/Unix path format and be an absolute path rooted to the input mount\nconfiguration setting value e.g., if \u0027{Mounts:Input}\u0027 configuration setting value is \u0027/input\u0027\nthen a valid source path would be \u0027/input/contosodataset\u0027. All data to be trained is expected\nto be under the source folder or sub folders under it. Models are trained using documents that\nare of the following content type - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027, \u0027image/tiff\u0027.\nOther type of content is ignored.\n\n:param train_request: Training request parameters.\n:type train_request: ~azure.ai.formrecognizer.models.TrainRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "train_request" + }, + "get_custom_model" : { + "sync": { + "signature": "def get_custom_model(\n self,\n model_id, # type: str\n include_keys=False, # type: Optional[bool]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Custom Model.\n\nGet detailed information about a custom model.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_keys: Include list of extracted keys in model information.\n:type include_keys: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Model, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Model\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_custom_model(\n self,\n model_id: str,\n include_keys: Optional[bool] = False,\n **kwargs\n) -\u003e \"models.Model\":\n", + "doc": "\"\"\"Get Custom Model.\n\nGet detailed information about a custom model.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_keys: Include list of extracted keys in model information.\n:type include_keys: bool\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Model, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Model\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, include_keys" + }, + "delete_custom_model" : { + "sync": { + "signature": "def delete_custom_model(\n self,\n model_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Delete Custom Model.\n\nMark model for deletion. Model artifacts will be permanently removed within a predetermined\nperiod.\n\n:param model_id: Model identifier.\n:type model_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def delete_custom_model(\n self,\n model_id: str,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"Delete Custom Model.\n\nMark model for deletion. Model artifacts will be permanently removed within a predetermined\nperiod.\n\n:param model_id: Model identifier.\n:type model_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id" + }, + "_analyze_with_custom_model_initial" : { + "sync": { + "signature": "def _analyze_with_custom_model_initial(\n self,\n model_id, # type: str\n include_text_details=False, # type: Optional[bool]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_with_custom_model_initial(\n self,\n model_id: str,\n include_text_details: Optional[bool] = False,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, include_text_details, file_stream" + }, + "begin_analyze_with_custom_model" : { + "sync": { + "signature": "def begin_analyze_with_custom_model(\n self,\n model_id, # type: str\n include_text_details=False, # type: Optional[bool]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Form.\n\nExtract key-value pairs, tables, and semantic values from a given document. The input document\nmust be of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri or local\npath) of the document to be analyzed.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_with_custom_model(\n self,\n model_id: str,\n include_text_details: Optional[bool] = False,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Form.\n\nExtract key-value pairs, tables, and semantic values from a given document. The input document\nmust be of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri or local\npath) of the document to be analyzed.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "model_id, include_text_details, file_stream" + }, + "get_analyze_form_result" : { + "sync": { + "signature": "def get_analyze_form_result(\n self,\n model_id, # type: str\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Form Result.\n\nObtain current status and the result of the analyze form operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_form_result(\n self,\n model_id: str,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Form Result.\n\nObtain current status and the result of the analyze form operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, result_id" + }, + "_copy_custom_model_initial" : { + "sync": { + "signature": "def _copy_custom_model_initial(\n self,\n model_id, # type: str\n copy_request, # type: \"models.CopyRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _copy_custom_model_initial(\n self,\n model_id: str,\n copy_request: \"models.CopyRequest\",\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, copy_request" + }, + "begin_copy_custom_model" : { + "sync": { + "signature": "def begin_copy_custom_model(\n self,\n model_id, # type: str\n copy_request, # type: \"models.CopyRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Copy Custom Model.\n\nCopy custom model stored in this resource (the source) to user specified target Form Recognizer\nresource.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_copy_custom_model(\n self,\n model_id: str,\n copy_request: \"models.CopyRequest\",\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Copy Custom Model.\n\nCopy custom model stored in this resource (the source) to user specified target Form Recognizer\nresource.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param copy_request: Copy request parameters.\n:type copy_request: ~azure.ai.formrecognizer.models.CopyRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "model_id, copy_request" + }, + "get_custom_model_copy_result" : { + "sync": { + "signature": "def get_custom_model_copy_result(\n self,\n model_id, # type: str\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Custom Model Copy Result.\n\nObtain current status and the result of a custom model copy operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Copy operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_custom_model_copy_result(\n self,\n model_id: str,\n result_id: str,\n **kwargs\n) -\u003e \"models.CopyOperationResult\":\n", + "doc": "\"\"\"Get Custom Model Copy Result.\n\nObtain current status and the result of a custom model copy operation.\n\n:param model_id: Model identifier.\n:type model_id: str\n:param result_id: Copy operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "model_id, result_id" + }, + "generate_model_copy_authorization" : { + "sync": { + "signature": "def generate_model_copy_authorization(\n self,\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Generate Copy Authorization.\n\nGenerate authorization to copy a model into the target Form Recognizer resource.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyAuthorizationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def generate_model_copy_authorization(\n self,\n **kwargs\n) -\u003e \"models.CopyAuthorizationResult\":\n", + "doc": "\"\"\"Generate Copy Authorization.\n\nGenerate authorization to copy a model into the target Form Recognizer resource.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: CopyAuthorizationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "" + }, + "_compose_custom_models_async_initial" : { + "sync": { + "signature": "def _compose_custom_models_async_initial(\n self,\n compose_request, # type: \"models.ComposeRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param compose_request: Compose models.\n:type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _compose_custom_models_async_initial(\n self,\n compose_request: \"models.ComposeRequest\",\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param compose_request: Compose models.\n:type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "compose_request" + }, + "begin_compose_custom_models_async" : { + "sync": { + "signature": "def begin_compose_custom_models_async(\n self,\n compose_request, # type: \"models.ComposeRequest\"\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Compose trained with labels models into one composed model.\n\nCompose request would include list of models ids.\nIt would validate what all models either trained with labels model or composed model.\nIt would validate limit of models put together.\n\n:param compose_request: Compose models.\n:type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_compose_custom_models_async(\n self,\n compose_request: \"models.ComposeRequest\",\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Compose trained with labels models into one composed model.\n\nCompose request would include list of models ids.\nIt would validate what all models either trained with labels model or composed model.\nIt would validate limit of models put together.\n\n:param compose_request: Compose models.\n:type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "compose_request" + }, + "_analyze_business_card_async_initial" : { + "sync": { + "signature": "def _analyze_business_card_async_initial(\n self,\n include_text_details=False, # type: Optional[bool]\n locale=None, # type: Optional[str]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-\n IN, en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_business_card_async_initial(\n self,\n include_text_details: Optional[bool] = False,\n locale: Optional[str] = None,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-\n IN, en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "include_text_details, locale, file_stream" + }, + "begin_analyze_business_card_async" : { + "sync": { + "signature": "def begin_analyze_business_card_async(\n self,\n include_text_details=False, # type: Optional[bool]\n locale=None, # type: Optional[str]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Business Card.\n\nExtract field text and semantic values from a given business card document. The input document\nmust be of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri) of the\ndocument to be analyzed.\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-\n IN, en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_business_card_async(\n self,\n include_text_details: Optional[bool] = False,\n locale: Optional[str] = None,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Business Card.\n\nExtract field text and semantic values from a given business card document. The input document\nmust be of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri) of the\ndocument to be analyzed.\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en-\n IN, en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "include_text_details, locale, file_stream" + }, + "get_analyze_business_card_result" : { + "sync": { + "signature": "def get_analyze_business_card_result(\n self,\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Business Card Result.\n\nTrack the progress and obtain the result of the analyze business card operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_business_card_result(\n self,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Business Card Result.\n\nTrack the progress and obtain the result of the analyze business card operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "result_id" + }, + "_analyze_receipt_async_initial" : { + "sync": { + "signature": "def _analyze_receipt_async_initial(\n self,\n include_text_details=False, # type: Optional[bool]\n locale=None, # type: Optional[str]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN,\n en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_receipt_async_initial(\n self,\n include_text_details: Optional[bool] = False,\n locale: Optional[str] = None,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN,\n en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "include_text_details, locale, file_stream" + }, + "begin_analyze_receipt_async" : { + "sync": { + "signature": "def begin_analyze_receipt_async(\n self,\n include_text_details=False, # type: Optional[bool]\n locale=None, # type: Optional[str]\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Receipt.\n\nExtract field text and semantic values from a given receipt document. The input document must\nbe of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri) of the\ndocument to be analyzed.\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN,\n en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_receipt_async(\n self,\n include_text_details: Optional[bool] = False,\n locale: Optional[str] = None,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Receipt.\n\nExtract field text and semantic values from a given receipt document. The input document must\nbe of one of the supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or\n\u0027image/tiff\u0027. Alternatively, use \u0027application/json\u0027 type to specify the location (Uri) of the\ndocument to be analyzed.\n\n:param include_text_details: Include text lines and element references in the result.\n:type include_text_details: bool\n:param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN,\n en-US(default).\n:type locale: str\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "include_text_details, locale, file_stream" + }, + "get_analyze_receipt_result" : { + "sync": { + "signature": "def get_analyze_receipt_result(\n self,\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Receipt Result.\n\nTrack the progress and obtain the result of the analyze receipt operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_receipt_result(\n self,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Receipt Result.\n\nTrack the progress and obtain the result of the analyze receipt operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "result_id" + }, + "_analyze_layout_async_initial" : { + "sync": { + "signature": "def _analyze_layout_async_initial(\n self,\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def _analyze_layout_async_initial(\n self,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e None:\n", + "doc": "\"\"\"\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword str content_type: Media type of the body sent to the API. Default value is \"application/json\".\n Allowed values are: \"application/pdf\", \"image/jpeg\", \"image/png\", \"image/tiff\", \"application/json\".\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: None, or the result of cls(response)\n:rtype: None\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "file_stream" + }, + "begin_analyze_layout_async" : { + "sync": { + "signature": "def begin_analyze_layout_async(\n self,\n file_stream=None, # type: Optional[Union[IO, \"models.SourcePath\"]]\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Analyze Layout.\n\nExtract text and layout information from a given document. The input document must be of one of\nthe supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or \u0027image/tiff\u0027.\nAlternatively, use \u0027application/json\u0027 type to specify the location (Uri or local path) of the\ndocument to be analyzed.\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.PollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of LROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.LROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def begin_analyze_layout_async(\n self,\n file_stream: Optional[Union[IO, \"models.SourcePath\"]] = None,\n **kwargs\n) -\u003e AsyncLROPoller[None]:\n", + "doc": "\"\"\"Analyze Layout.\n\nExtract text and layout information from a given document. The input document must be of one of\nthe supported content types - \u0027application/pdf\u0027, \u0027image/jpeg\u0027, \u0027image/png\u0027 or \u0027image/tiff\u0027.\nAlternatively, use \u0027application/json\u0027 type to specify the location (Uri or local path) of the\ndocument to be analyzed.\n\n:param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream.\n:type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath\n:keyword callable cls: A custom type or function that will be passed the direct response\n:keyword str continuation_token: A continuation token to restart a poller from a saved state.\n:keyword polling: True for ARMPolling, False for no polling, or a\n polling object for personal polling strategy\n:paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod\n:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.\n:return: An instance of AsyncLROPoller that returns either None or the result of cls(response)\n:rtype: ~azure.core.polling.AsyncLROPoller[None]\n:raises ~azure.core.exceptions.HttpResponseError:\n\"\"\"" + }, + "call": "file_stream" + }, + "get_analyze_layout_result" : { + "sync": { + "signature": "def get_analyze_layout_result(\n self,\n result_id, # type: str\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Analyze Layout Result.\n\nTrack the progress and obtain the result of the analyze layout operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_analyze_layout_result(\n self,\n result_id: str,\n **kwargs\n) -\u003e \"models.AnalyzeOperationResult\":\n", + "doc": "\"\"\"Get Analyze Layout Result.\n\nTrack the progress and obtain the result of the analyze layout operation.\n\n:param result_id: Analyze operation result identifier.\n:type result_id: str\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: AnalyzeOperationResult, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "result_id" + }, + "list_custom_models" : { + "sync": { + "signature": "def list_custom_models(\n self,\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"List Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either Models or the result of cls(response)\n:rtype: ~azure.core.paging.ItemPaged[~azure.ai.formrecognizer.models.Models]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": false, + "signature": "def list_custom_models(\n self,\n **kwargs\n) -\u003e AsyncItemPaged[\"models.Models\"]:\n", + "doc": "\"\"\"List Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: An iterator like instance of either Models or the result of cls(response)\n:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.ai.formrecognizer.models.Models]\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "" + }, + "get_custom_models" : { + "sync": { + "signature": "def get_custom_models(\n self,\n **kwargs # type: Any\n):\n", + "doc": "\"\"\"Get Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Models, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Models\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "async": { + "coroutine": true, + "signature": "async def get_custom_models(\n self,\n **kwargs\n) -\u003e \"models.Models\":\n", + "doc": "\"\"\"Get Custom Models.\n\nGet information about all custom models.\n\n:keyword callable cls: A custom type or function that will be passed the direct response\n:return: Models, or the result of cls(response)\n:rtype: ~azure.ai.formrecognizer.models.Models\n:raises: ~azure.core.exceptions.HttpResponseError\n\"\"\"" + }, + "call": "" + } + }, + "sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"], \"azure.core.polling\": [\"LROPoller\", \"NoPolling\", \"PollingMethod\"], \"azure.core.polling.base_polling\": [\"LROBasePolling\"], \"azure.core.paging\": [\"ItemPaged\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Callable\", \"Dict\", \"Generic\", \"IO\", \"Iterable\", \"Optional\", \"TypeVar\", \"Union\"]}}}", + "async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.exceptions\": [\"ClientAuthenticationError\", \"HttpResponseError\", \"ResourceExistsError\", \"ResourceNotFoundError\", \"map_error\"], \"azure.core.pipeline\": [\"PipelineResponse\"], \"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"], \"azure.core.polling\": [\"AsyncLROPoller\", \"AsyncNoPolling\", \"AsyncPollingMethod\"], \"azure.core.polling.async_base_polling\": [\"AsyncLROBasePolling\"], \"azure.core.async_paging\": [\"AsyncItemPaged\", \"AsyncList\"]}, \"stdlib\": {\"warnings\": [null]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"AsyncIterable\", \"Callable\", \"Dict\", \"Generic\", \"IO\", \"Optional\", \"TypeVar\", \"Union\"]}}}" +} \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/__init__.py new file mode 100644 index 000000000000..69eccfa9e16e --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/__init__.py @@ -0,0 +1,10 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._form_recognizer_client import FormRecognizerClient +__all__ = ['FormRecognizerClient'] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/_configuration.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/_configuration.py new file mode 100644 index 000000000000..7a4589348bec --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/_configuration.py @@ -0,0 +1,64 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, TYPE_CHECKING + +from azure.core.configuration import Configuration +from azure.core.pipeline import policies + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +VERSION = "unknown" + +class FormRecognizerClientConfiguration(Configuration): + """Configuration for FormRecognizerClient. + + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + endpoint: str, + **kwargs: Any + ) -> None: + if credential is None: + raise ValueError("Parameter 'credential' must not be None.") + if endpoint is None: + raise ValueError("Parameter 'endpoint' must not be None.") + super(FormRecognizerClientConfiguration, self).__init__(**kwargs) + + self.credential = credential + self.endpoint = endpoint + self.credential_scopes = kwargs.pop('credential_scopes', ['https://cognitiveservices.azure.com/.default']) + kwargs.setdefault('sdk_moniker', 'ai-formrecognizer/{}'.format(VERSION)) + self._configure(**kwargs) + + def _configure( + self, + **kwargs: Any + ) -> None: + self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs) + self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs) + self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs) + self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs) + self.http_logging_policy = kwargs.get('http_logging_policy') or policies.HttpLoggingPolicy(**kwargs) + self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs) + self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs) + self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs) + self.authentication_policy = kwargs.get('authentication_policy') + if self.credential and not self.authentication_policy: + self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/_form_recognizer_client.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/_form_recognizer_client.py new file mode 100644 index 000000000000..073dc7d3faae --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/_form_recognizer_client.py @@ -0,0 +1,57 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from typing import Any, TYPE_CHECKING + +from azure.core import AsyncPipelineClient +from msrest import Deserializer, Serializer + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from azure.core.credentials_async import AsyncTokenCredential + +from ._configuration import FormRecognizerClientConfiguration +from .operations import FormRecognizerClientOperationsMixin +from .. import models + + +class FormRecognizerClient(FormRecognizerClientOperationsMixin): + """Extracts information from forms and images into structured data. + + :param credential: Credential needed for the client to connect to Azure. + :type credential: ~azure.core.credentials_async.AsyncTokenCredential + :param endpoint: Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com). + :type endpoint: str + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + """ + + def __init__( + self, + credential: "AsyncTokenCredential", + endpoint: str, + **kwargs: Any + ) -> None: + base_url = '{endpoint}/formrecognizer/v2.1-preview.1' + self._config = FormRecognizerClientConfiguration(credential, endpoint, **kwargs) + self._client = AsyncPipelineClient(base_url=base_url, config=self._config, **kwargs) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._serialize.client_side_validation = False + self._deserialize = Deserializer(client_models) + + + async def close(self) -> None: + await self._client.close() + + async def __aenter__(self) -> "FormRecognizerClient": + await self._client.__aenter__() + return self + + async def __aexit__(self, *exc_details) -> None: + await self._client.__aexit__(*exc_details) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/operations/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/operations/__init__.py new file mode 100644 index 000000000000..f2f858714054 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/operations/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._form_recognizer_client_operations import FormRecognizerClientOperationsMixin + +__all__ = [ + 'FormRecognizerClientOperationsMixin', +] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/operations/_form_recognizer_client_operations.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/operations/_form_recognizer_client_operations.py new file mode 100644 index 000000000000..85a47528f4ca --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/aio/operations/_form_recognizer_client_operations.py @@ -0,0 +1,1442 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import Any, AsyncIterable, Callable, Dict, Generic, IO, Optional, TypeVar, Union +import warnings + +from azure.core.async_paging import AsyncItemPaged, AsyncList +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest +from azure.core.polling import AsyncLROPoller, AsyncNoPolling, AsyncPollingMethod +from azure.core.polling.async_base_polling import AsyncLROBasePolling + +from ... import models + +T = TypeVar('T') +ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]] + +class FormRecognizerClientOperationsMixin: + + async def _train_custom_model_async_initial( + self, + train_request: "models.TrainRequest", + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._train_custom_model_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(train_request, 'TrainRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _train_custom_model_async_initial.metadata = {'url': '/custom/models'} # type: ignore + + async def begin_train_custom_model_async( + self, + train_request: "models.TrainRequest", + **kwargs + ) -> AsyncLROPoller[None]: + """Train Custom Model. + + Create and train a custom model. The request must include a source parameter that is either an + externally accessible Azure storage blob container Uri (preferably a Shared Access Signature + Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, + they must follow the Linux/Unix path format and be an absolute path rooted to the input mount + configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' + then a valid source path would be '/input/contosodataset'. All data to be trained is expected + to be under the source folder or sub folders under it. Models are trained using documents that + are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. + Other type of content is ignored. + + :param train_request: Training request parameters. + :type train_request: ~azure.ai.formrecognizer.models.TrainRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._train_custom_model_async_initial( + train_request=train_request, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_train_custom_model_async.metadata = {'url': '/custom/models'} # type: ignore + + async def get_custom_model( + self, + model_id: str, + include_keys: Optional[bool] = False, + **kwargs + ) -> "models.Model": + """Get Custom Model. + + Get detailed information about a custom model. + + :param model_id: Model identifier. + :type model_id: str + :param include_keys: Include list of extracted keys in model information. + :type include_keys: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Model, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Model + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Model"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_custom_model.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_keys is not None: + query_parameters['includeKeys'] = self._serialize.query("include_keys", include_keys, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('Model', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_custom_model.metadata = {'url': '/custom/models/{modelId}'} # type: ignore + + async def delete_custom_model( + self, + model_id: str, + **kwargs + ) -> None: + """Delete Custom Model. + + Mark model for deletion. Model artifacts will be permanently removed within a predetermined + period. + + :param model_id: Model identifier. + :type model_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.delete_custom_model.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + if cls: + return cls(pipeline_response, None, {}) + + delete_custom_model.metadata = {'url': '/custom/models/{modelId}'} # type: ignore + + async def _analyze_with_custom_model_initial( + self, + model_id: str, + include_text_details: Optional[bool] = False, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_with_custom_model_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_text_details is not None: + query_parameters['includeTextDetails'] = self._serialize.query("include_text_details", include_text_details, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_with_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore + + async def begin_analyze_with_custom_model( + self, + model_id: str, + include_text_details: Optional[bool] = False, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Form. + + Extract key-value pairs, tables, and semantic values from a given document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. + + :param model_id: Model identifier. + :type model_id: str + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._analyze_with_custom_model_initial( + model_id=model_id, + include_text_details=include_text_details, + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_with_custom_model.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore + + async def get_analyze_form_result( + self, + model_id: str, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Form Result. + + Obtain current status and the result of the analyze form operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_form_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_form_result.metadata = {'url': '/custom/models/{modelId}/analyzeResults/{resultId}'} # type: ignore + + async def _copy_custom_model_initial( + self, + model_id: str, + copy_request: "models.CopyRequest", + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._copy_custom_model_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(copy_request, 'CopyRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _copy_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore + + async def begin_copy_custom_model( + self, + model_id: str, + copy_request: "models.CopyRequest", + **kwargs + ) -> AsyncLROPoller[None]: + """Copy Custom Model. + + Copy custom model stored in this resource (the source) to user specified target Form Recognizer + resource. + + :param model_id: Model identifier. + :type model_id: str + :param copy_request: Copy request parameters. + :type copy_request: ~azure.ai.formrecognizer.models.CopyRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._copy_custom_model_initial( + model_id=model_id, + copy_request=copy_request, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_copy_custom_model.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore + + async def get_custom_model_copy_result( + self, + model_id: str, + result_id: str, + **kwargs + ) -> "models.CopyOperationResult": + """Get Custom Model Copy Result. + + Obtain current status and the result of a custom model copy operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Copy operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.CopyOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_custom_model_copy_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('CopyOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_custom_model_copy_result.metadata = {'url': '/custom/models/{modelId}/copyResults/{resultId}'} # type: ignore + + async def generate_model_copy_authorization( + self, + **kwargs + ) -> "models.CopyAuthorizationResult": + """Generate Copy Authorization. + + Generate authorization to copy a model into the target Form Recognizer resource. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyAuthorizationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.CopyAuthorizationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.generate_model_copy_authorization.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + deserialized = self._deserialize('CopyAuthorizationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, response_headers) + + return deserialized + generate_model_copy_authorization.metadata = {'url': '/custom/models/copyAuthorization'} # type: ignore + + async def _compose_custom_models_async_initial( + self, + compose_request: "models.ComposeRequest", + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._compose_custom_models_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(compose_request, 'ComposeRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _compose_custom_models_async_initial.metadata = {'url': '/custom/models/compose'} # type: ignore + + async def begin_compose_custom_models_async( + self, + compose_request: "models.ComposeRequest", + **kwargs + ) -> AsyncLROPoller[None]: + """Compose trained with labels models into one composed model. + + Compose request would include list of models ids. + It would validate what all models either trained with labels model or composed model. + It would validate limit of models put together. + + :param compose_request: Compose models. + :type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._compose_custom_models_async_initial( + compose_request=compose_request, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_compose_custom_models_async.metadata = {'url': '/custom/models/compose'} # type: ignore + + async def _analyze_business_card_async_initial( + self, + include_text_details: Optional[bool] = False, + locale: Optional[str] = None, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_business_card_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_text_details is not None: + query_parameters['includeTextDetails'] = self._serialize.query("include_text_details", include_text_details, 'bool') + if locale is not None: + query_parameters['locale'] = self._serialize.query("locale", locale, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_business_card_async_initial.metadata = {'url': '/prebuilt/businessCard/analyze'} # type: ignore + + async def begin_analyze_business_card_async( + self, + include_text_details: Optional[bool] = False, + locale: Optional[str] = None, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Business Card. + + Extract field text and semantic values from a given business card document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en- + IN, en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._analyze_business_card_async_initial( + include_text_details=include_text_details, + locale=locale, + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_business_card_async.metadata = {'url': '/prebuilt/businessCard/analyze'} # type: ignore + + async def get_analyze_business_card_result( + self, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Business Card Result. + + Track the progress and obtain the result of the analyze business card operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_business_card_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_business_card_result.metadata = {'url': '/prebuilt/businessCard/analyzeResults/{resultId}'} # type: ignore + + async def _analyze_receipt_async_initial( + self, + include_text_details: Optional[bool] = False, + locale: Optional[str] = None, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_receipt_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_text_details is not None: + query_parameters['includeTextDetails'] = self._serialize.query("include_text_details", include_text_details, 'bool') + if locale is not None: + query_parameters['locale'] = self._serialize.query("locale", locale, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_receipt_async_initial.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore + + async def begin_analyze_receipt_async( + self, + include_text_details: Optional[bool] = False, + locale: Optional[str] = None, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Receipt. + + Extract field text and semantic values from a given receipt document. The input document must + be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, + en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._analyze_receipt_async_initial( + include_text_details=include_text_details, + locale=locale, + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_receipt_async.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore + + async def get_analyze_receipt_result( + self, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Receipt Result. + + Track the progress and obtain the result of the analyze receipt operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_receipt_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_receipt_result.metadata = {'url': '/prebuilt/receipt/analyzeResults/{resultId}'} # type: ignore + + async def _analyze_layout_async_initial( + self, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> None: + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_layout_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_layout_async_initial.metadata = {'url': '/layout/analyze'} # type: ignore + + async def begin_analyze_layout_async( + self, + file_stream: Optional[Union[IO, "models.SourcePath"]] = None, + **kwargs + ) -> AsyncLROPoller[None]: + """Analyze Layout. + + Extract text and layout information from a given document. The input document must be of one of + the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. + Alternatively, use 'application/json' type to specify the location (Uri or local path) of the + document to be analyzed. + + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.AsyncPollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of AsyncLROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.AsyncLROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, AsyncPollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = await self._analyze_layout_async_initial( + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = AsyncLROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = AsyncNoPolling() + else: polling_method = polling + if cont_token: + return AsyncLROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return AsyncLROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_layout_async.metadata = {'url': '/layout/analyze'} # type: ignore + + async def get_analyze_layout_result( + self, + result_id: str, + **kwargs + ) -> "models.AnalyzeOperationResult": + """Get Analyze Layout Result. + + Track the progress and obtain the result of the analyze layout operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_layout_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_layout_result.metadata = {'url': '/layout/analyzeResults/{resultId}'} # type: ignore + + def list_custom_models( + self, + **kwargs + ) -> AsyncIterable["models.Models"]: + """List Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either Models or the result of cls(response) + :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.ai.formrecognizer.models.Models] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + op = "full" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_custom_models.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['op'] = self._serialize.query("op", op, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + request = self._client.get(url, query_parameters, header_parameters) + return request + + async def extract_data(pipeline_response): + deserialized = self._deserialize('Models', pipeline_response) + list_of_elem = deserialized.model_list + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, AsyncList(list_of_elem) + + async def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error) + + return pipeline_response + + return AsyncItemPaged( + get_next, extract_data + ) + list_custom_models.metadata = {'url': '/custom/models'} # type: ignore + + async def get_custom_models( + self, + **kwargs + ) -> "models.Models": + """Get Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Models, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Models + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + op = "summary" + accept = "application/json" + + # Construct URL + url = self.get_custom_models.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['op'] = self._serialize.query("op", op, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('Models', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_custom_models.metadata = {'url': '/custom/models'} # type: ignore diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/__init__.py new file mode 100644 index 000000000000..296020ea8d54 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/__init__.py @@ -0,0 +1,132 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +try: + from ._models_py3 import AnalyzeOperationResult + from ._models_py3 import AnalyzeResult + from ._models_py3 import Attributes + from ._models_py3 import ComposeRequest + from ._models_py3 import CopyAuthorizationResult + from ._models_py3 import CopyOperationResult + from ._models_py3 import CopyRequest + from ._models_py3 import CopyResult + from ._models_py3 import DataTable + from ._models_py3 import DataTableCell + from ._models_py3 import DocumentResult + from ._models_py3 import ErrorInformation + from ._models_py3 import ErrorResponse + from ._models_py3 import FieldValue + from ._models_py3 import FormFieldsReport + from ._models_py3 import KeyValueElement + from ._models_py3 import KeyValuePair + from ._models_py3 import KeysResult + from ._models_py3 import Model + from ._models_py3 import ModelInfo + from ._models_py3 import Models + from ._models_py3 import ModelsSummary + from ._models_py3 import PageResult + from ._models_py3 import ReadResult + from ._models_py3 import SelectionMark + from ._models_py3 import SourcePath + from ._models_py3 import TextLine + from ._models_py3 import TextWord + from ._models_py3 import TrainRequest + from ._models_py3 import TrainResult + from ._models_py3 import TrainSourceFilter + from ._models_py3 import TrainingDocumentInfo +except (SyntaxError, ImportError): + from ._models import AnalyzeOperationResult # type: ignore + from ._models import AnalyzeResult # type: ignore + from ._models import Attributes # type: ignore + from ._models import ComposeRequest # type: ignore + from ._models import CopyAuthorizationResult # type: ignore + from ._models import CopyOperationResult # type: ignore + from ._models import CopyRequest # type: ignore + from ._models import CopyResult # type: ignore + from ._models import DataTable # type: ignore + from ._models import DataTableCell # type: ignore + from ._models import DocumentResult # type: ignore + from ._models import ErrorInformation # type: ignore + from ._models import ErrorResponse # type: ignore + from ._models import FieldValue # type: ignore + from ._models import FormFieldsReport # type: ignore + from ._models import KeyValueElement # type: ignore + from ._models import KeyValuePair # type: ignore + from ._models import KeysResult # type: ignore + from ._models import Model # type: ignore + from ._models import ModelInfo # type: ignore + from ._models import Models # type: ignore + from ._models import ModelsSummary # type: ignore + from ._models import PageResult # type: ignore + from ._models import ReadResult # type: ignore + from ._models import SelectionMark # type: ignore + from ._models import SourcePath # type: ignore + from ._models import TextLine # type: ignore + from ._models import TextWord # type: ignore + from ._models import TrainRequest # type: ignore + from ._models import TrainResult # type: ignore + from ._models import TrainSourceFilter # type: ignore + from ._models import TrainingDocumentInfo # type: ignore + +from ._form_recognizer_client_enums import ( + ContentType, + FieldValueSelectionMark, + FieldValueType, + KeyValueType, + Language, + LengthUnit, + ModelStatus, + OperationStatus, + SelectionMarkState, + TrainStatus, +) + +__all__ = [ + 'AnalyzeOperationResult', + 'AnalyzeResult', + 'Attributes', + 'ComposeRequest', + 'CopyAuthorizationResult', + 'CopyOperationResult', + 'CopyRequest', + 'CopyResult', + 'DataTable', + 'DataTableCell', + 'DocumentResult', + 'ErrorInformation', + 'ErrorResponse', + 'FieldValue', + 'FormFieldsReport', + 'KeyValueElement', + 'KeyValuePair', + 'KeysResult', + 'Model', + 'ModelInfo', + 'Models', + 'ModelsSummary', + 'PageResult', + 'ReadResult', + 'SelectionMark', + 'SourcePath', + 'TextLine', + 'TextWord', + 'TrainRequest', + 'TrainResult', + 'TrainSourceFilter', + 'TrainingDocumentInfo', + 'ContentType', + 'FieldValueSelectionMark', + 'FieldValueType', + 'KeyValueType', + 'Language', + 'LengthUnit', + 'ModelStatus', + 'OperationStatus', + 'SelectionMarkState', + 'TrainStatus', +] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_form_recognizer_client_enums.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_form_recognizer_client_enums.py new file mode 100644 index 000000000000..5438f75f8a7c --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_form_recognizer_client_enums.py @@ -0,0 +1,111 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum, EnumMeta +from six import with_metaclass + +class _CaseInsensitiveEnumMeta(EnumMeta): + def __getitem__(self, name): + return super().__getitem__(name.upper()) + + def __getattr__(cls, name): + """Return the enum member matching `name` + We use __getattr__ instead of descriptors or inserting into the enum + class' __dict__ in order to support `name` and `value` being both + properties for enum members (which live in the class' __dict__) and + enum members themselves. + """ + try: + return cls._member_map_[name.upper()] + except KeyError: + raise AttributeError(name) + + +class ContentType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Content type for upload + """ + + APPLICATION_PDF = "application/pdf" #: Content Type 'application/pdf'. + IMAGE_JPEG = "image/jpeg" #: Content Type 'image/jpeg'. + IMAGE_PNG = "image/png" #: Content Type 'image/png'. + IMAGE_TIFF = "image/tiff" #: Content Type 'image/tiff'. + +class FieldValueSelectionMark(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Selection mark value. + """ + + SELECTED = "selected" + UNSELECTED = "unselected" + +class FieldValueType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Semantic data type of the field value. + """ + + STRING = "string" + DATE = "date" + TIME = "time" + PHONE_NUMBER = "phoneNumber" + NUMBER = "number" + INTEGER = "integer" + ARRAY = "array" + OBJECT = "object" + SELECTION_MARK = "selectionMark" + +class KeyValueType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Semantic data type of the key value element. + """ + + STRING = "string" + SELECTION_MARK = "selectionMark" + +class Language(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Language code + """ + + EN = "en" + ES = "es" + +class LengthUnit(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """The unit used by the width, height and boundingBox properties. For images, the unit is "pixel". + For PDF, the unit is "inch". + """ + + PIXEL = "pixel" + INCH = "inch" + +class ModelStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Status of the model. + """ + + CREATING = "creating" + READY = "ready" + INVALID = "invalid" + +class OperationStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Status of the queued operation. + """ + + NOT_STARTED = "notStarted" + RUNNING = "running" + SUCCEEDED = "succeeded" + FAILED = "failed" + +class SelectionMarkState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """State of the selection mark. + """ + + SELECTED = "selected" + UNSELECTED = "unselected" + +class TrainStatus(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)): + """Status of the training operation. + """ + + SUCCEEDED = "succeeded" + PARTIALLY_SUCCEEDED = "partiallySucceeded" + FAILED = "failed" diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_models.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_models.py new file mode 100644 index 000000000000..15a6a40896c7 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_models.py @@ -0,0 +1,1242 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + + +class AnalyzeOperationResult(msrest.serialization.Model): + """Status and result of the queued analyze operation. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. Operation status. Possible values include: "notStarted", "running", + "succeeded", "failed". + :type status: str or ~azure.ai.formrecognizer.models.OperationStatus + :param created_date_time: Required. Date and time (UTC) when the analyze operation was + submitted. + :type created_date_time: ~datetime.datetime + :param last_updated_date_time: Required. Date and time (UTC) when the status was last updated. + :type last_updated_date_time: ~datetime.datetime + :param analyze_result: Results of the analyze operation. + :type analyze_result: ~azure.ai.formrecognizer.models.AnalyzeResult + """ + + _validation = { + 'status': {'required': True}, + 'created_date_time': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + 'analyze_result': {'key': 'analyzeResult', 'type': 'AnalyzeResult'}, + } + + def __init__( + self, + **kwargs + ): + super(AnalyzeOperationResult, self).__init__(**kwargs) + self.status = kwargs['status'] + self.created_date_time = kwargs['created_date_time'] + self.last_updated_date_time = kwargs['last_updated_date_time'] + self.analyze_result = kwargs.get('analyze_result', None) + + +class AnalyzeResult(msrest.serialization.Model): + """Analyze operation result. + + All required parameters must be populated in order to send to Azure. + + :param version: Required. Version of schema used for this result. + :type version: str + :param read_results: Required. Text extracted from the input. + :type read_results: list[~azure.ai.formrecognizer.models.ReadResult] + :param page_results: Page-level information extracted from the input. + :type page_results: list[~azure.ai.formrecognizer.models.PageResult] + :param document_results: Document-level information extracted from the input. + :type document_results: list[~azure.ai.formrecognizer.models.DocumentResult] + :param errors: List of errors reported during the analyze operation. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + """ + + _validation = { + 'version': {'required': True}, + 'read_results': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'read_results': {'key': 'readResults', 'type': '[ReadResult]'}, + 'page_results': {'key': 'pageResults', 'type': '[PageResult]'}, + 'document_results': {'key': 'documentResults', 'type': '[DocumentResult]'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + } + + def __init__( + self, + **kwargs + ): + super(AnalyzeResult, self).__init__(**kwargs) + self.version = kwargs['version'] + self.read_results = kwargs['read_results'] + self.page_results = kwargs.get('page_results', None) + self.document_results = kwargs.get('document_results', None) + self.errors = kwargs.get('errors', None) + + +class Attributes(msrest.serialization.Model): + """Optional model attributes. + + :param is_composed: Is this model composed? (default: false). + :type is_composed: bool + """ + + _attribute_map = { + 'is_composed': {'key': 'isComposed', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(Attributes, self).__init__(**kwargs) + self.is_composed = kwargs.get('is_composed', False) + + +class ComposeRequest(msrest.serialization.Model): + """Request contract for compose operation. + + All required parameters must be populated in order to send to Azure. + + :param model_ids: Required. List of model ids to compose. + :type model_ids: list[str] + :param model_name: Optional user defined model name (max length: 1024). + :type model_name: str + """ + + _validation = { + 'model_ids': {'required': True}, + } + + _attribute_map = { + 'model_ids': {'key': 'modelIds', 'type': '[str]'}, + 'model_name': {'key': 'modelName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ComposeRequest, self).__init__(**kwargs) + self.model_ids = kwargs['model_ids'] + self.model_name = kwargs.get('model_name', None) + + +class CopyAuthorizationResult(msrest.serialization.Model): + """Request parameter that contains authorization claims for copy operation. + + All required parameters must be populated in order to send to Azure. + + :param model_id: Required. Model identifier. + :type model_id: str + :param access_token: Required. Token claim used to authorize the request. + :type access_token: str + :param expiration_date_time_ticks: Required. The time when the access token expires. The date + is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time. + :type expiration_date_time_ticks: long + """ + + _validation = { + 'model_id': {'required': True}, + 'access_token': {'required': True}, + 'expiration_date_time_ticks': {'required': True}, + } + + _attribute_map = { + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'expiration_date_time_ticks': {'key': 'expirationDateTimeTicks', 'type': 'long'}, + } + + def __init__( + self, + **kwargs + ): + super(CopyAuthorizationResult, self).__init__(**kwargs) + self.model_id = kwargs['model_id'] + self.access_token = kwargs['access_token'] + self.expiration_date_time_ticks = kwargs['expiration_date_time_ticks'] + + +class CopyOperationResult(msrest.serialization.Model): + """Status and result of the queued copy operation. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. Operation status. Possible values include: "notStarted", "running", + "succeeded", "failed". + :type status: str or ~azure.ai.formrecognizer.models.OperationStatus + :param created_date_time: Required. Date and time (UTC) when the copy operation was submitted. + :type created_date_time: ~datetime.datetime + :param last_updated_date_time: Required. Date and time (UTC) when the status was last updated. + :type last_updated_date_time: ~datetime.datetime + :param copy_result: Results of the copy operation. + :type copy_result: ~azure.ai.formrecognizer.models.CopyResult + """ + + _validation = { + 'status': {'required': True}, + 'created_date_time': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + 'copy_result': {'key': 'copyResult', 'type': 'CopyResult'}, + } + + def __init__( + self, + **kwargs + ): + super(CopyOperationResult, self).__init__(**kwargs) + self.status = kwargs['status'] + self.created_date_time = kwargs['created_date_time'] + self.last_updated_date_time = kwargs['last_updated_date_time'] + self.copy_result = kwargs.get('copy_result', None) + + +class CopyRequest(msrest.serialization.Model): + """Request parameter to copy an existing custom model from the source resource to a target resource referenced by the resource ID. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. Azure Resource Id of the target Form Recognizer resource + where the model is copied to. + :type target_resource_id: str + :param target_resource_region: Required. Location of the target Azure resource. A valid Azure + region name supported by Cognitive Services. + :type target_resource_region: str + :param copy_authorization: Required. Entity that encodes claims to authorize the copy request. + :type copy_authorization: ~azure.ai.formrecognizer.models.CopyAuthorizationResult + """ + + _validation = { + 'target_resource_id': {'required': True, 'max_length': 1024, 'min_length': 0, 'pattern': r'^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.CognitiveServices/accounts/[^/]*$'}, + 'target_resource_region': {'required': True, 'max_length': 24, 'min_length': 1, 'pattern': r'^[a-z0-9]+$'}, + 'copy_authorization': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'target_resource_region': {'key': 'targetResourceRegion', 'type': 'str'}, + 'copy_authorization': {'key': 'copyAuthorization', 'type': 'CopyAuthorizationResult'}, + } + + def __init__( + self, + **kwargs + ): + super(CopyRequest, self).__init__(**kwargs) + self.target_resource_id = kwargs['target_resource_id'] + self.target_resource_region = kwargs['target_resource_region'] + self.copy_authorization = kwargs['copy_authorization'] + + +class CopyResult(msrest.serialization.Model): + """Custom model copy result. + + All required parameters must be populated in order to send to Azure. + + :param model_id: Required. Identifier of the target model. + :type model_id: str + :param errors: Errors returned during the copy operation. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + """ + + _validation = { + 'model_id': {'required': True}, + } + + _attribute_map = { + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + } + + def __init__( + self, + **kwargs + ): + super(CopyResult, self).__init__(**kwargs) + self.model_id = kwargs['model_id'] + self.errors = kwargs.get('errors', None) + + +class DataTable(msrest.serialization.Model): + """Information about the extracted table contained in a page. + + All required parameters must be populated in order to send to Azure. + + :param rows: Required. Number of rows. + :type rows: int + :param columns: Required. Number of columns. + :type columns: int + :param cells: Required. List of cells contained in the table. + :type cells: list[~azure.ai.formrecognizer.models.DataTableCell] + """ + + _validation = { + 'rows': {'required': True, 'minimum': 1}, + 'columns': {'required': True, 'minimum': 1}, + 'cells': {'required': True}, + } + + _attribute_map = { + 'rows': {'key': 'rows', 'type': 'int'}, + 'columns': {'key': 'columns', 'type': 'int'}, + 'cells': {'key': 'cells', 'type': '[DataTableCell]'}, + } + + def __init__( + self, + **kwargs + ): + super(DataTable, self).__init__(**kwargs) + self.rows = kwargs['rows'] + self.columns = kwargs['columns'] + self.cells = kwargs['cells'] + + +class DataTableCell(msrest.serialization.Model): + """Information about the extracted cell in a table. + + All required parameters must be populated in order to send to Azure. + + :param row_index: Required. Row index of the cell. + :type row_index: int + :param column_index: Required. Column index of the cell. + :type column_index: int + :param row_span: Number of rows spanned by this cell. + :type row_span: int + :param column_span: Number of columns spanned by this cell. + :type column_span: int + :param text: Required. Text content of the cell. + :type text: str + :param bounding_box: Required. Bounding box of the cell. + :type bounding_box: list[float] + :param confidence: Required. Confidence value. + :type confidence: float + :param elements: When includeTextDetails is set to true, a list of references to the text + elements constituting this table cell. + :type elements: list[str] + :param is_header: Is the current cell a header cell?. + :type is_header: bool + :param is_footer: Is the current cell a footer cell?. + :type is_footer: bool + """ + + _validation = { + 'row_index': {'required': True, 'minimum': 0}, + 'column_index': {'required': True, 'minimum': 0}, + 'row_span': {'minimum': 1}, + 'column_span': {'minimum': 1}, + 'text': {'required': True}, + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'confidence': {'required': True, 'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'row_index': {'key': 'rowIndex', 'type': 'int'}, + 'column_index': {'key': 'columnIndex', 'type': 'int'}, + 'row_span': {'key': 'rowSpan', 'type': 'int'}, + 'column_span': {'key': 'columnSpan', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + 'elements': {'key': 'elements', 'type': '[str]'}, + 'is_header': {'key': 'isHeader', 'type': 'bool'}, + 'is_footer': {'key': 'isFooter', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(DataTableCell, self).__init__(**kwargs) + self.row_index = kwargs['row_index'] + self.column_index = kwargs['column_index'] + self.row_span = kwargs.get('row_span', 1) + self.column_span = kwargs.get('column_span', 1) + self.text = kwargs['text'] + self.bounding_box = kwargs['bounding_box'] + self.confidence = kwargs['confidence'] + self.elements = kwargs.get('elements', None) + self.is_header = kwargs.get('is_header', False) + self.is_footer = kwargs.get('is_footer', False) + + +class DocumentResult(msrest.serialization.Model): + """A set of extracted fields corresponding to the input document. + + All required parameters must be populated in order to send to Azure. + + :param doc_type: Required. Document type. + :type doc_type: str + :param model_id: Model identifier. + :type model_id: str + :param page_range: Required. First and last page number where the document is found. + :type page_range: list[int] + :param doc_type_confidence: Predicted document type confidence. + :type doc_type_confidence: float + :param fields: Required. Dictionary of named field values. + :type fields: dict[str, ~azure.ai.formrecognizer.models.FieldValue] + """ + + _validation = { + 'doc_type': {'required': True}, + 'page_range': {'required': True, 'max_items': 2, 'min_items': 2}, + 'doc_type_confidence': {'maximum': 1, 'minimum': 0}, + 'fields': {'required': True}, + } + + _attribute_map = { + 'doc_type': {'key': 'docType', 'type': 'str'}, + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'page_range': {'key': 'pageRange', 'type': '[int]'}, + 'doc_type_confidence': {'key': 'docTypeConfidence', 'type': 'float'}, + 'fields': {'key': 'fields', 'type': '{FieldValue}'}, + } + + def __init__( + self, + **kwargs + ): + super(DocumentResult, self).__init__(**kwargs) + self.doc_type = kwargs['doc_type'] + self.model_id = kwargs.get('model_id', None) + self.page_range = kwargs['page_range'] + self.doc_type_confidence = kwargs.get('doc_type_confidence', None) + self.fields = kwargs['fields'] + + +class ErrorInformation(msrest.serialization.Model): + """ErrorInformation. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. + :type code: str + :param message: Required. + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorInformation, self).__init__(**kwargs) + self.code = kwargs['code'] + self.message = kwargs['message'] + + +class ErrorResponse(msrest.serialization.Model): + """ErrorResponse. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. + :type error: ~azure.ai.formrecognizer.models.ErrorInformation + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorInformation'}, + } + + def __init__( + self, + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = kwargs['error'] + + +class FieldValue(msrest.serialization.Model): + """Recognized field value. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Type of field value. Possible values include: "string", "date", "time", + "phoneNumber", "number", "integer", "array", "object", "selectionMark". + :type type: str or ~azure.ai.formrecognizer.models.FieldValueType + :param value_string: String value. + :type value_string: str + :param value_date: Date value. + :type value_date: ~datetime.date + :param value_time: Time value. + :type value_time: ~datetime.time + :param value_phone_number: Phone number value. + :type value_phone_number: str + :param value_number: Floating point value. + :type value_number: float + :param value_integer: Integer value. + :type value_integer: int + :param value_array: Array of field values. + :type value_array: list[~azure.ai.formrecognizer.models.FieldValue] + :param value_object: Dictionary of named field values. + :type value_object: dict[str, ~azure.ai.formrecognizer.models.FieldValue] + :param value_selection_mark: Selection mark value. Possible values include: "selected", + "unselected". + :type value_selection_mark: str or ~azure.ai.formrecognizer.models.FieldValueSelectionMark + :param text: Text content of the extracted field. + :type text: str + :param bounding_box: Bounding box of the field value, if appropriate. + :type bounding_box: list[float] + :param confidence: Confidence score. + :type confidence: float + :param elements: When includeTextDetails is set to true, a list of references to the text + elements constituting this field. + :type elements: list[str] + :param page: The 1-based page number in the input document. + :type page: int + """ + + _validation = { + 'type': {'required': True}, + 'bounding_box': {'max_items': 8, 'min_items': 8}, + 'confidence': {'maximum': 1, 'minimum': 0}, + 'page': {'minimum': 1}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value_string': {'key': 'valueString', 'type': 'str'}, + 'value_date': {'key': 'valueDate', 'type': 'date'}, + 'value_time': {'key': 'valueTime', 'type': 'time'}, + 'value_phone_number': {'key': 'valuePhoneNumber', 'type': 'str'}, + 'value_number': {'key': 'valueNumber', 'type': 'float'}, + 'value_integer': {'key': 'valueInteger', 'type': 'int'}, + 'value_array': {'key': 'valueArray', 'type': '[FieldValue]'}, + 'value_object': {'key': 'valueObject', 'type': '{FieldValue}'}, + 'value_selection_mark': {'key': 'valueSelectionMark', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + 'elements': {'key': 'elements', 'type': '[str]'}, + 'page': {'key': 'page', 'type': 'int'}, + } + + def __init__( + self, + **kwargs + ): + super(FieldValue, self).__init__(**kwargs) + self.type = kwargs['type'] + self.value_string = kwargs.get('value_string', None) + self.value_date = kwargs.get('value_date', None) + self.value_time = kwargs.get('value_time', None) + self.value_phone_number = kwargs.get('value_phone_number', None) + self.value_number = kwargs.get('value_number', None) + self.value_integer = kwargs.get('value_integer', None) + self.value_array = kwargs.get('value_array', None) + self.value_object = kwargs.get('value_object', None) + self.value_selection_mark = kwargs.get('value_selection_mark', None) + self.text = kwargs.get('text', None) + self.bounding_box = kwargs.get('bounding_box', None) + self.confidence = kwargs.get('confidence', None) + self.elements = kwargs.get('elements', None) + self.page = kwargs.get('page', None) + + +class FormFieldsReport(msrest.serialization.Model): + """Report for a custom model training field. + + All required parameters must be populated in order to send to Azure. + + :param field_name: Required. Training field name. + :type field_name: str + :param accuracy: Required. Estimated extraction accuracy for this field. + :type accuracy: float + """ + + _validation = { + 'field_name': {'required': True}, + 'accuracy': {'required': True}, + } + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'accuracy': {'key': 'accuracy', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(FormFieldsReport, self).__init__(**kwargs) + self.field_name = kwargs['field_name'] + self.accuracy = kwargs['accuracy'] + + +class KeysResult(msrest.serialization.Model): + """Keys extracted by the custom model. + + All required parameters must be populated in order to send to Azure. + + :param clusters: Required. Object mapping clusterIds to a list of keys. + :type clusters: dict[str, list[str]] + """ + + _validation = { + 'clusters': {'required': True}, + } + + _attribute_map = { + 'clusters': {'key': 'clusters', 'type': '{[str]}'}, + } + + def __init__( + self, + **kwargs + ): + super(KeysResult, self).__init__(**kwargs) + self.clusters = kwargs['clusters'] + + +class KeyValueElement(msrest.serialization.Model): + """Information about the extracted key or value in a key-value pair. + + All required parameters must be populated in order to send to Azure. + + :param type: Semantic data type of the key value element. Possible values include: "string", + "selectionMark". + :type type: str or ~azure.ai.formrecognizer.models.KeyValueType + :param text: Required. The text content of the key or value. + :type text: str + :param bounding_box: Bounding box of the key or value. + :type bounding_box: list[float] + :param elements: When includeTextDetails is set to true, a list of references to the text + elements constituting this key or value. + :type elements: list[str] + """ + + _validation = { + 'text': {'required': True}, + 'bounding_box': {'max_items': 8, 'min_items': 8}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'elements': {'key': 'elements', 'type': '[str]'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyValueElement, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.text = kwargs['text'] + self.bounding_box = kwargs.get('bounding_box', None) + self.elements = kwargs.get('elements', None) + + +class KeyValuePair(msrest.serialization.Model): + """Information about the extracted key-value pair. + + All required parameters must be populated in order to send to Azure. + + :param label: A user defined label for the key/value pair entry. + :type label: str + :param key: Required. Information about the extracted key in a key-value pair. + :type key: ~azure.ai.formrecognizer.models.KeyValueElement + :param value: Required. Information about the extracted value in a key-value pair. + :type value: ~azure.ai.formrecognizer.models.KeyValueElement + :param confidence: Required. Confidence value. + :type confidence: float + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + 'confidence': {'required': True, 'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'KeyValueElement'}, + 'value': {'key': 'value', 'type': 'KeyValueElement'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(KeyValuePair, self).__init__(**kwargs) + self.label = kwargs.get('label', None) + self.key = kwargs['key'] + self.value = kwargs['value'] + self.confidence = kwargs['confidence'] + + +class Model(msrest.serialization.Model): + """Response to the get custom model operation. + + All required parameters must be populated in order to send to Azure. + + :param model_info: Required. Basic custom model information. + :type model_info: ~azure.ai.formrecognizer.models.ModelInfo + :param keys: Keys extracted by the custom model. + :type keys: ~azure.ai.formrecognizer.models.KeysResult + :param train_result: Training result for custom model. + :type train_result: ~azure.ai.formrecognizer.models.TrainResult + :param composed_train_results: Training result for composed model. + :type composed_train_results: list[~azure.ai.formrecognizer.models.TrainResult] + """ + + _validation = { + 'model_info': {'required': True}, + } + + _attribute_map = { + 'model_info': {'key': 'modelInfo', 'type': 'ModelInfo'}, + 'keys': {'key': 'keys', 'type': 'KeysResult'}, + 'train_result': {'key': 'trainResult', 'type': 'TrainResult'}, + 'composed_train_results': {'key': 'composedTrainResults', 'type': '[TrainResult]'}, + } + + def __init__( + self, + **kwargs + ): + super(Model, self).__init__(**kwargs) + self.model_info = kwargs['model_info'] + self.keys = kwargs.get('keys', None) + self.train_result = kwargs.get('train_result', None) + self.composed_train_results = kwargs.get('composed_train_results', None) + + +class ModelInfo(msrest.serialization.Model): + """Basic custom model information. + + All required parameters must be populated in order to send to Azure. + + :param model_id: Required. Model identifier. + :type model_id: str + :param status: Required. Status of the model. Possible values include: "creating", "ready", + "invalid". + :type status: str or ~azure.ai.formrecognizer.models.ModelStatus + :param created_date_time: Required. Date and time (UTC) when the model was created. + :type created_date_time: ~datetime.datetime + :param last_updated_date_time: Required. Date and time (UTC) when the status was last updated. + :type last_updated_date_time: ~datetime.datetime + :param model_name: Optional user defined model name (max length: 1024). + :type model_name: str + :param attributes: Optional model attributes. + :type attributes: ~azure.ai.formrecognizer.models.Attributes + """ + + _validation = { + 'model_id': {'required': True}, + 'status': {'required': True}, + 'created_date_time': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + 'model_name': {'key': 'modelName', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'Attributes'}, + } + + def __init__( + self, + **kwargs + ): + super(ModelInfo, self).__init__(**kwargs) + self.model_id = kwargs['model_id'] + self.status = kwargs['status'] + self.created_date_time = kwargs['created_date_time'] + self.last_updated_date_time = kwargs['last_updated_date_time'] + self.model_name = kwargs.get('model_name', None) + self.attributes = kwargs.get('attributes', None) + + +class Models(msrest.serialization.Model): + """Response to the list custom models operation. + + :param summary: Summary of all trained custom models. + :type summary: ~azure.ai.formrecognizer.models.ModelsSummary + :param model_list: Collection of trained custom models. + :type model_list: list[~azure.ai.formrecognizer.models.ModelInfo] + :param next_link: Link to the next page of custom models. + :type next_link: str + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'ModelsSummary'}, + 'model_list': {'key': 'modelList', 'type': '[ModelInfo]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(Models, self).__init__(**kwargs) + self.summary = kwargs.get('summary', None) + self.model_list = kwargs.get('model_list', None) + self.next_link = kwargs.get('next_link', None) + + +class ModelsSummary(msrest.serialization.Model): + """Summary of all trained custom models. + + All required parameters must be populated in order to send to Azure. + + :param count: Required. Current count of trained custom models. + :type count: int + :param limit: Required. Max number of models that can be trained for this account. + :type limit: int + :param last_updated_date_time: Required. Date and time (UTC) when the summary was last updated. + :type last_updated_date_time: ~datetime.datetime + """ + + _validation = { + 'count': {'required': True}, + 'limit': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'int'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + **kwargs + ): + super(ModelsSummary, self).__init__(**kwargs) + self.count = kwargs['count'] + self.limit = kwargs['limit'] + self.last_updated_date_time = kwargs['last_updated_date_time'] + + +class PageResult(msrest.serialization.Model): + """Extracted information from a single page. + + All required parameters must be populated in order to send to Azure. + + :param page: Required. Page number. + :type page: int + :param cluster_id: Cluster identifier. + :type cluster_id: int + :param key_value_pairs: List of key-value pairs extracted from the page. + :type key_value_pairs: list[~azure.ai.formrecognizer.models.KeyValuePair] + :param tables: List of data tables extracted from the page. + :type tables: list[~azure.ai.formrecognizer.models.DataTable] + """ + + _validation = { + 'page': {'required': True, 'minimum': 1}, + 'cluster_id': {'minimum': 0}, + } + + _attribute_map = { + 'page': {'key': 'page', 'type': 'int'}, + 'cluster_id': {'key': 'clusterId', 'type': 'int'}, + 'key_value_pairs': {'key': 'keyValuePairs', 'type': '[KeyValuePair]'}, + 'tables': {'key': 'tables', 'type': '[DataTable]'}, + } + + def __init__( + self, + **kwargs + ): + super(PageResult, self).__init__(**kwargs) + self.page = kwargs['page'] + self.cluster_id = kwargs.get('cluster_id', None) + self.key_value_pairs = kwargs.get('key_value_pairs', None) + self.tables = kwargs.get('tables', None) + + +class ReadResult(msrest.serialization.Model): + """Text extracted from a page in the input document. + + All required parameters must be populated in order to send to Azure. + + :param page: Required. The 1-based page number in the input document. + :type page: int + :param angle: Required. The general orientation of the text in clockwise direction, measured in + degrees between (-180, 180]. + :type angle: float + :param width: Required. The width of the image/PDF in pixels/inches, respectively. + :type width: float + :param height: Required. The height of the image/PDF in pixels/inches, respectively. + :type height: float + :param unit: Required. The unit used by the width, height and boundingBox properties. For + images, the unit is "pixel". For PDF, the unit is "inch". Possible values include: "pixel", + "inch". + :type unit: str or ~azure.ai.formrecognizer.models.LengthUnit + :param language: The detected language on the page overall. Possible values include: "en", + "es". + :type language: str or ~azure.ai.formrecognizer.models.Language + :param lines: When includeTextDetails is set to true, a list of recognized text lines. The + maximum number of lines returned is 300 per page. The lines are sorted top to bottom, left to + right, although in certain cases proximity is treated with higher priority. As the sorting + order depends on the detected text, it may change across images and OCR version updates. Thus, + business logic should be built upon the actual line location instead of order. + :type lines: list[~azure.ai.formrecognizer.models.TextLine] + :param selection_marks: List of selection marks extracted from the page. + :type selection_marks: list[~azure.ai.formrecognizer.models.SelectionMark] + """ + + _validation = { + 'page': {'required': True, 'minimum': 1}, + 'angle': {'required': True, 'maximum': 180, 'minimum_ex': -180}, + 'width': {'required': True, 'minimum': 0}, + 'height': {'required': True, 'minimum': 0}, + 'unit': {'required': True}, + } + + _attribute_map = { + 'page': {'key': 'page', 'type': 'int'}, + 'angle': {'key': 'angle', 'type': 'float'}, + 'width': {'key': 'width', 'type': 'float'}, + 'height': {'key': 'height', 'type': 'float'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'lines': {'key': 'lines', 'type': '[TextLine]'}, + 'selection_marks': {'key': 'selectionMarks', 'type': '[SelectionMark]'}, + } + + def __init__( + self, + **kwargs + ): + super(ReadResult, self).__init__(**kwargs) + self.page = kwargs['page'] + self.angle = kwargs['angle'] + self.width = kwargs['width'] + self.height = kwargs['height'] + self.unit = kwargs['unit'] + self.language = kwargs.get('language', None) + self.lines = kwargs.get('lines', None) + self.selection_marks = kwargs.get('selection_marks', None) + + +class SelectionMark(msrest.serialization.Model): + """Information about the extracted selection mark. + + All required parameters must be populated in order to send to Azure. + + :param bounding_box: Required. Bounding box of the selection mark. + :type bounding_box: list[float] + :param confidence: Required. Confidence value. + :type confidence: float + :param state: Required. State of the selection mark. Possible values include: "selected", + "unselected". + :type state: str or ~azure.ai.formrecognizer.models.SelectionMarkState + """ + + _validation = { + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'confidence': {'required': True, 'maximum': 1, 'minimum': 0}, + 'state': {'required': True}, + } + + _attribute_map = { + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SelectionMark, self).__init__(**kwargs) + self.bounding_box = kwargs['bounding_box'] + self.confidence = kwargs['confidence'] + self.state = kwargs['state'] + + +class SourcePath(msrest.serialization.Model): + """Uri or local path to source data. + + :param source: File source path. + :type source: str + """ + + _validation = { + 'source': {'max_length': 2048, 'min_length': 0}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(SourcePath, self).__init__(**kwargs) + self.source = kwargs.get('source', None) + + +class TextLine(msrest.serialization.Model): + """An object representing an extracted text line. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The text content of the line. + :type text: str + :param bounding_box: Required. Bounding box of an extracted line. + :type bounding_box: list[float] + :param language: The detected language of this line, if different from the overall page + language. Possible values include: "en", "es". + :type language: str or ~azure.ai.formrecognizer.models.Language + :param words: Required. List of words in the text line. + :type words: list[~azure.ai.formrecognizer.models.TextWord] + """ + + _validation = { + 'text': {'required': True}, + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'words': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'language': {'key': 'language', 'type': 'str'}, + 'words': {'key': 'words', 'type': '[TextWord]'}, + } + + def __init__( + self, + **kwargs + ): + super(TextLine, self).__init__(**kwargs) + self.text = kwargs['text'] + self.bounding_box = kwargs['bounding_box'] + self.language = kwargs.get('language', None) + self.words = kwargs['words'] + + +class TextWord(msrest.serialization.Model): + """An object representing a word. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The text content of the word. + :type text: str + :param bounding_box: Required. Bounding box of an extracted word. + :type bounding_box: list[float] + :param confidence: Confidence value. + :type confidence: float + """ + + _validation = { + 'text': {'required': True}, + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'confidence': {'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + } + + def __init__( + self, + **kwargs + ): + super(TextWord, self).__init__(**kwargs) + self.text = kwargs['text'] + self.bounding_box = kwargs['bounding_box'] + self.confidence = kwargs.get('confidence', None) + + +class TrainingDocumentInfo(msrest.serialization.Model): + """Report for a custom model training document. + + All required parameters must be populated in order to send to Azure. + + :param document_name: Required. Training document name. + :type document_name: str + :param pages: Required. Total number of pages trained. + :type pages: int + :param errors: Required. List of errors. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + :param status: Required. Status of the training operation. Possible values include: + "succeeded", "partiallySucceeded", "failed". + :type status: str or ~azure.ai.formrecognizer.models.TrainStatus + """ + + _validation = { + 'document_name': {'required': True}, + 'pages': {'required': True}, + 'errors': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'document_name': {'key': 'documentName', 'type': 'str'}, + 'pages': {'key': 'pages', 'type': 'int'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(TrainingDocumentInfo, self).__init__(**kwargs) + self.document_name = kwargs['document_name'] + self.pages = kwargs['pages'] + self.errors = kwargs['errors'] + self.status = kwargs['status'] + + +class TrainRequest(msrest.serialization.Model): + """Request parameter to train a new custom model. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. Source path containing the training documents. + :type source: str + :param source_filter: Filter to apply to the documents in the source path for training. + :type source_filter: ~azure.ai.formrecognizer.models.TrainSourceFilter + :param use_label_file: Use label file for training a model. + :type use_label_file: bool + :param model_name: Optional user defined model name (max length: 1024). + :type model_name: str + """ + + _validation = { + 'source': {'required': True, 'max_length': 2048, 'min_length': 0}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'str'}, + 'source_filter': {'key': 'sourceFilter', 'type': 'TrainSourceFilter'}, + 'use_label_file': {'key': 'useLabelFile', 'type': 'bool'}, + 'model_name': {'key': 'modelName', 'type': 'str'}, + } + + def __init__( + self, + **kwargs + ): + super(TrainRequest, self).__init__(**kwargs) + self.source = kwargs['source'] + self.source_filter = kwargs.get('source_filter', None) + self.use_label_file = kwargs.get('use_label_file', False) + self.model_name = kwargs.get('model_name', None) + + +class TrainResult(msrest.serialization.Model): + """Custom model training result. + + All required parameters must be populated in order to send to Azure. + + :param training_documents: Required. List of the documents used to train the model and any + errors reported in each document. + :type training_documents: list[~azure.ai.formrecognizer.models.TrainingDocumentInfo] + :param fields: List of fields used to train the model and the train operation error reported by + each. + :type fields: list[~azure.ai.formrecognizer.models.FormFieldsReport] + :param average_model_accuracy: Average accuracy. + :type average_model_accuracy: float + :param model_id: Model identifier. + :type model_id: str + :param errors: Errors returned during the training operation. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + """ + + _validation = { + 'training_documents': {'required': True}, + } + + _attribute_map = { + 'training_documents': {'key': 'trainingDocuments', 'type': '[TrainingDocumentInfo]'}, + 'fields': {'key': 'fields', 'type': '[FormFieldsReport]'}, + 'average_model_accuracy': {'key': 'averageModelAccuracy', 'type': 'float'}, + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + } + + def __init__( + self, + **kwargs + ): + super(TrainResult, self).__init__(**kwargs) + self.training_documents = kwargs['training_documents'] + self.fields = kwargs.get('fields', None) + self.average_model_accuracy = kwargs.get('average_model_accuracy', None) + self.model_id = kwargs.get('model_id', None) + self.errors = kwargs.get('errors', None) + + +class TrainSourceFilter(msrest.serialization.Model): + """Filter to apply to the documents in the source path for training. + + :param prefix: A case-sensitive prefix string to filter documents in the source path for + training. For example, when using a Azure storage blob Uri, use the prefix to restrict sub + folders for training. + :type prefix: str + :param include_sub_folders: A flag to indicate if sub folders within the set of prefix folders + will also need to be included when searching for content to be preprocessed. + :type include_sub_folders: bool + """ + + _validation = { + 'prefix': {'max_length': 1024, 'min_length': 0}, + } + + _attribute_map = { + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'include_sub_folders': {'key': 'includeSubFolders', 'type': 'bool'}, + } + + def __init__( + self, + **kwargs + ): + super(TrainSourceFilter, self).__init__(**kwargs) + self.prefix = kwargs.get('prefix', None) + self.include_sub_folders = kwargs.get('include_sub_folders', False) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_models_py3.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_models_py3.py new file mode 100644 index 000000000000..0ac18786adc7 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/models/_models_py3.py @@ -0,0 +1,1404 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +import datetime +from typing import Dict, List, Optional, Union + +from azure.core.exceptions import HttpResponseError +import msrest.serialization + +from ._form_recognizer_client_enums import * + + +class AnalyzeOperationResult(msrest.serialization.Model): + """Status and result of the queued analyze operation. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. Operation status. Possible values include: "notStarted", "running", + "succeeded", "failed". + :type status: str or ~azure.ai.formrecognizer.models.OperationStatus + :param created_date_time: Required. Date and time (UTC) when the analyze operation was + submitted. + :type created_date_time: ~datetime.datetime + :param last_updated_date_time: Required. Date and time (UTC) when the status was last updated. + :type last_updated_date_time: ~datetime.datetime + :param analyze_result: Results of the analyze operation. + :type analyze_result: ~azure.ai.formrecognizer.models.AnalyzeResult + """ + + _validation = { + 'status': {'required': True}, + 'created_date_time': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + 'analyze_result': {'key': 'analyzeResult', 'type': 'AnalyzeResult'}, + } + + def __init__( + self, + *, + status: Union[str, "OperationStatus"], + created_date_time: datetime.datetime, + last_updated_date_time: datetime.datetime, + analyze_result: Optional["AnalyzeResult"] = None, + **kwargs + ): + super(AnalyzeOperationResult, self).__init__(**kwargs) + self.status = status + self.created_date_time = created_date_time + self.last_updated_date_time = last_updated_date_time + self.analyze_result = analyze_result + + +class AnalyzeResult(msrest.serialization.Model): + """Analyze operation result. + + All required parameters must be populated in order to send to Azure. + + :param version: Required. Version of schema used for this result. + :type version: str + :param read_results: Required. Text extracted from the input. + :type read_results: list[~azure.ai.formrecognizer.models.ReadResult] + :param page_results: Page-level information extracted from the input. + :type page_results: list[~azure.ai.formrecognizer.models.PageResult] + :param document_results: Document-level information extracted from the input. + :type document_results: list[~azure.ai.formrecognizer.models.DocumentResult] + :param errors: List of errors reported during the analyze operation. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + """ + + _validation = { + 'version': {'required': True}, + 'read_results': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'read_results': {'key': 'readResults', 'type': '[ReadResult]'}, + 'page_results': {'key': 'pageResults', 'type': '[PageResult]'}, + 'document_results': {'key': 'documentResults', 'type': '[DocumentResult]'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + } + + def __init__( + self, + *, + version: str, + read_results: List["ReadResult"], + page_results: Optional[List["PageResult"]] = None, + document_results: Optional[List["DocumentResult"]] = None, + errors: Optional[List["ErrorInformation"]] = None, + **kwargs + ): + super(AnalyzeResult, self).__init__(**kwargs) + self.version = version + self.read_results = read_results + self.page_results = page_results + self.document_results = document_results + self.errors = errors + + +class Attributes(msrest.serialization.Model): + """Optional model attributes. + + :param is_composed: Is this model composed? (default: false). + :type is_composed: bool + """ + + _attribute_map = { + 'is_composed': {'key': 'isComposed', 'type': 'bool'}, + } + + def __init__( + self, + *, + is_composed: Optional[bool] = False, + **kwargs + ): + super(Attributes, self).__init__(**kwargs) + self.is_composed = is_composed + + +class ComposeRequest(msrest.serialization.Model): + """Request contract for compose operation. + + All required parameters must be populated in order to send to Azure. + + :param model_ids: Required. List of model ids to compose. + :type model_ids: list[str] + :param model_name: Optional user defined model name (max length: 1024). + :type model_name: str + """ + + _validation = { + 'model_ids': {'required': True}, + } + + _attribute_map = { + 'model_ids': {'key': 'modelIds', 'type': '[str]'}, + 'model_name': {'key': 'modelName', 'type': 'str'}, + } + + def __init__( + self, + *, + model_ids: List[str], + model_name: Optional[str] = None, + **kwargs + ): + super(ComposeRequest, self).__init__(**kwargs) + self.model_ids = model_ids + self.model_name = model_name + + +class CopyAuthorizationResult(msrest.serialization.Model): + """Request parameter that contains authorization claims for copy operation. + + All required parameters must be populated in order to send to Azure. + + :param model_id: Required. Model identifier. + :type model_id: str + :param access_token: Required. Token claim used to authorize the request. + :type access_token: str + :param expiration_date_time_ticks: Required. The time when the access token expires. The date + is represented as the number of seconds from 1970-01-01T0:0:0Z UTC until the expiration time. + :type expiration_date_time_ticks: long + """ + + _validation = { + 'model_id': {'required': True}, + 'access_token': {'required': True}, + 'expiration_date_time_ticks': {'required': True}, + } + + _attribute_map = { + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'access_token': {'key': 'accessToken', 'type': 'str'}, + 'expiration_date_time_ticks': {'key': 'expirationDateTimeTicks', 'type': 'long'}, + } + + def __init__( + self, + *, + model_id: str, + access_token: str, + expiration_date_time_ticks: int, + **kwargs + ): + super(CopyAuthorizationResult, self).__init__(**kwargs) + self.model_id = model_id + self.access_token = access_token + self.expiration_date_time_ticks = expiration_date_time_ticks + + +class CopyOperationResult(msrest.serialization.Model): + """Status and result of the queued copy operation. + + All required parameters must be populated in order to send to Azure. + + :param status: Required. Operation status. Possible values include: "notStarted", "running", + "succeeded", "failed". + :type status: str or ~azure.ai.formrecognizer.models.OperationStatus + :param created_date_time: Required. Date and time (UTC) when the copy operation was submitted. + :type created_date_time: ~datetime.datetime + :param last_updated_date_time: Required. Date and time (UTC) when the status was last updated. + :type last_updated_date_time: ~datetime.datetime + :param copy_result: Results of the copy operation. + :type copy_result: ~azure.ai.formrecognizer.models.CopyResult + """ + + _validation = { + 'status': {'required': True}, + 'created_date_time': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + 'copy_result': {'key': 'copyResult', 'type': 'CopyResult'}, + } + + def __init__( + self, + *, + status: Union[str, "OperationStatus"], + created_date_time: datetime.datetime, + last_updated_date_time: datetime.datetime, + copy_result: Optional["CopyResult"] = None, + **kwargs + ): + super(CopyOperationResult, self).__init__(**kwargs) + self.status = status + self.created_date_time = created_date_time + self.last_updated_date_time = last_updated_date_time + self.copy_result = copy_result + + +class CopyRequest(msrest.serialization.Model): + """Request parameter to copy an existing custom model from the source resource to a target resource referenced by the resource ID. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_id: Required. Azure Resource Id of the target Form Recognizer resource + where the model is copied to. + :type target_resource_id: str + :param target_resource_region: Required. Location of the target Azure resource. A valid Azure + region name supported by Cognitive Services. + :type target_resource_region: str + :param copy_authorization: Required. Entity that encodes claims to authorize the copy request. + :type copy_authorization: ~azure.ai.formrecognizer.models.CopyAuthorizationResult + """ + + _validation = { + 'target_resource_id': {'required': True, 'max_length': 1024, 'min_length': 0, 'pattern': r'^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.CognitiveServices/accounts/[^/]*$'}, + 'target_resource_region': {'required': True, 'max_length': 24, 'min_length': 1, 'pattern': r'^[a-z0-9]+$'}, + 'copy_authorization': {'required': True}, + } + + _attribute_map = { + 'target_resource_id': {'key': 'targetResourceId', 'type': 'str'}, + 'target_resource_region': {'key': 'targetResourceRegion', 'type': 'str'}, + 'copy_authorization': {'key': 'copyAuthorization', 'type': 'CopyAuthorizationResult'}, + } + + def __init__( + self, + *, + target_resource_id: str, + target_resource_region: str, + copy_authorization: "CopyAuthorizationResult", + **kwargs + ): + super(CopyRequest, self).__init__(**kwargs) + self.target_resource_id = target_resource_id + self.target_resource_region = target_resource_region + self.copy_authorization = copy_authorization + + +class CopyResult(msrest.serialization.Model): + """Custom model copy result. + + All required parameters must be populated in order to send to Azure. + + :param model_id: Required. Identifier of the target model. + :type model_id: str + :param errors: Errors returned during the copy operation. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + """ + + _validation = { + 'model_id': {'required': True}, + } + + _attribute_map = { + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + } + + def __init__( + self, + *, + model_id: str, + errors: Optional[List["ErrorInformation"]] = None, + **kwargs + ): + super(CopyResult, self).__init__(**kwargs) + self.model_id = model_id + self.errors = errors + + +class DataTable(msrest.serialization.Model): + """Information about the extracted table contained in a page. + + All required parameters must be populated in order to send to Azure. + + :param rows: Required. Number of rows. + :type rows: int + :param columns: Required. Number of columns. + :type columns: int + :param cells: Required. List of cells contained in the table. + :type cells: list[~azure.ai.formrecognizer.models.DataTableCell] + """ + + _validation = { + 'rows': {'required': True, 'minimum': 1}, + 'columns': {'required': True, 'minimum': 1}, + 'cells': {'required': True}, + } + + _attribute_map = { + 'rows': {'key': 'rows', 'type': 'int'}, + 'columns': {'key': 'columns', 'type': 'int'}, + 'cells': {'key': 'cells', 'type': '[DataTableCell]'}, + } + + def __init__( + self, + *, + rows: int, + columns: int, + cells: List["DataTableCell"], + **kwargs + ): + super(DataTable, self).__init__(**kwargs) + self.rows = rows + self.columns = columns + self.cells = cells + + +class DataTableCell(msrest.serialization.Model): + """Information about the extracted cell in a table. + + All required parameters must be populated in order to send to Azure. + + :param row_index: Required. Row index of the cell. + :type row_index: int + :param column_index: Required. Column index of the cell. + :type column_index: int + :param row_span: Number of rows spanned by this cell. + :type row_span: int + :param column_span: Number of columns spanned by this cell. + :type column_span: int + :param text: Required. Text content of the cell. + :type text: str + :param bounding_box: Required. Bounding box of the cell. + :type bounding_box: list[float] + :param confidence: Required. Confidence value. + :type confidence: float + :param elements: When includeTextDetails is set to true, a list of references to the text + elements constituting this table cell. + :type elements: list[str] + :param is_header: Is the current cell a header cell?. + :type is_header: bool + :param is_footer: Is the current cell a footer cell?. + :type is_footer: bool + """ + + _validation = { + 'row_index': {'required': True, 'minimum': 0}, + 'column_index': {'required': True, 'minimum': 0}, + 'row_span': {'minimum': 1}, + 'column_span': {'minimum': 1}, + 'text': {'required': True}, + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'confidence': {'required': True, 'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'row_index': {'key': 'rowIndex', 'type': 'int'}, + 'column_index': {'key': 'columnIndex', 'type': 'int'}, + 'row_span': {'key': 'rowSpan', 'type': 'int'}, + 'column_span': {'key': 'columnSpan', 'type': 'int'}, + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + 'elements': {'key': 'elements', 'type': '[str]'}, + 'is_header': {'key': 'isHeader', 'type': 'bool'}, + 'is_footer': {'key': 'isFooter', 'type': 'bool'}, + } + + def __init__( + self, + *, + row_index: int, + column_index: int, + text: str, + bounding_box: List[float], + confidence: float, + row_span: Optional[int] = 1, + column_span: Optional[int] = 1, + elements: Optional[List[str]] = None, + is_header: Optional[bool] = False, + is_footer: Optional[bool] = False, + **kwargs + ): + super(DataTableCell, self).__init__(**kwargs) + self.row_index = row_index + self.column_index = column_index + self.row_span = row_span + self.column_span = column_span + self.text = text + self.bounding_box = bounding_box + self.confidence = confidence + self.elements = elements + self.is_header = is_header + self.is_footer = is_footer + + +class DocumentResult(msrest.serialization.Model): + """A set of extracted fields corresponding to the input document. + + All required parameters must be populated in order to send to Azure. + + :param doc_type: Required. Document type. + :type doc_type: str + :param model_id: Model identifier. + :type model_id: str + :param page_range: Required. First and last page number where the document is found. + :type page_range: list[int] + :param doc_type_confidence: Predicted document type confidence. + :type doc_type_confidence: float + :param fields: Required. Dictionary of named field values. + :type fields: dict[str, ~azure.ai.formrecognizer.models.FieldValue] + """ + + _validation = { + 'doc_type': {'required': True}, + 'page_range': {'required': True, 'max_items': 2, 'min_items': 2}, + 'doc_type_confidence': {'maximum': 1, 'minimum': 0}, + 'fields': {'required': True}, + } + + _attribute_map = { + 'doc_type': {'key': 'docType', 'type': 'str'}, + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'page_range': {'key': 'pageRange', 'type': '[int]'}, + 'doc_type_confidence': {'key': 'docTypeConfidence', 'type': 'float'}, + 'fields': {'key': 'fields', 'type': '{FieldValue}'}, + } + + def __init__( + self, + *, + doc_type: str, + page_range: List[int], + fields: Dict[str, "FieldValue"], + model_id: Optional[str] = None, + doc_type_confidence: Optional[float] = None, + **kwargs + ): + super(DocumentResult, self).__init__(**kwargs) + self.doc_type = doc_type + self.model_id = model_id + self.page_range = page_range + self.doc_type_confidence = doc_type_confidence + self.fields = fields + + +class ErrorInformation(msrest.serialization.Model): + """ErrorInformation. + + All required parameters must be populated in order to send to Azure. + + :param code: Required. + :type code: str + :param message: Required. + :type message: str + """ + + _validation = { + 'code': {'required': True}, + 'message': {'required': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__( + self, + *, + code: str, + message: str, + **kwargs + ): + super(ErrorInformation, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ErrorResponse(msrest.serialization.Model): + """ErrorResponse. + + All required parameters must be populated in order to send to Azure. + + :param error: Required. + :type error: ~azure.ai.formrecognizer.models.ErrorInformation + """ + + _validation = { + 'error': {'required': True}, + } + + _attribute_map = { + 'error': {'key': 'error', 'type': 'ErrorInformation'}, + } + + def __init__( + self, + *, + error: "ErrorInformation", + **kwargs + ): + super(ErrorResponse, self).__init__(**kwargs) + self.error = error + + +class FieldValue(msrest.serialization.Model): + """Recognized field value. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Type of field value. Possible values include: "string", "date", "time", + "phoneNumber", "number", "integer", "array", "object", "selectionMark". + :type type: str or ~azure.ai.formrecognizer.models.FieldValueType + :param value_string: String value. + :type value_string: str + :param value_date: Date value. + :type value_date: ~datetime.date + :param value_time: Time value. + :type value_time: ~datetime.time + :param value_phone_number: Phone number value. + :type value_phone_number: str + :param value_number: Floating point value. + :type value_number: float + :param value_integer: Integer value. + :type value_integer: int + :param value_array: Array of field values. + :type value_array: list[~azure.ai.formrecognizer.models.FieldValue] + :param value_object: Dictionary of named field values. + :type value_object: dict[str, ~azure.ai.formrecognizer.models.FieldValue] + :param value_selection_mark: Selection mark value. Possible values include: "selected", + "unselected". + :type value_selection_mark: str or ~azure.ai.formrecognizer.models.FieldValueSelectionMark + :param text: Text content of the extracted field. + :type text: str + :param bounding_box: Bounding box of the field value, if appropriate. + :type bounding_box: list[float] + :param confidence: Confidence score. + :type confidence: float + :param elements: When includeTextDetails is set to true, a list of references to the text + elements constituting this field. + :type elements: list[str] + :param page: The 1-based page number in the input document. + :type page: int + """ + + _validation = { + 'type': {'required': True}, + 'bounding_box': {'max_items': 8, 'min_items': 8}, + 'confidence': {'maximum': 1, 'minimum': 0}, + 'page': {'minimum': 1}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'value_string': {'key': 'valueString', 'type': 'str'}, + 'value_date': {'key': 'valueDate', 'type': 'date'}, + 'value_time': {'key': 'valueTime', 'type': 'time'}, + 'value_phone_number': {'key': 'valuePhoneNumber', 'type': 'str'}, + 'value_number': {'key': 'valueNumber', 'type': 'float'}, + 'value_integer': {'key': 'valueInteger', 'type': 'int'}, + 'value_array': {'key': 'valueArray', 'type': '[FieldValue]'}, + 'value_object': {'key': 'valueObject', 'type': '{FieldValue}'}, + 'value_selection_mark': {'key': 'valueSelectionMark', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + 'elements': {'key': 'elements', 'type': '[str]'}, + 'page': {'key': 'page', 'type': 'int'}, + } + + def __init__( + self, + *, + type: Union[str, "FieldValueType"], + value_string: Optional[str] = None, + value_date: Optional[datetime.date] = None, + value_time: Optional[datetime.time] = None, + value_phone_number: Optional[str] = None, + value_number: Optional[float] = None, + value_integer: Optional[int] = None, + value_array: Optional[List["FieldValue"]] = None, + value_object: Optional[Dict[str, "FieldValue"]] = None, + value_selection_mark: Optional[Union[str, "FieldValueSelectionMark"]] = None, + text: Optional[str] = None, + bounding_box: Optional[List[float]] = None, + confidence: Optional[float] = None, + elements: Optional[List[str]] = None, + page: Optional[int] = None, + **kwargs + ): + super(FieldValue, self).__init__(**kwargs) + self.type = type + self.value_string = value_string + self.value_date = value_date + self.value_time = value_time + self.value_phone_number = value_phone_number + self.value_number = value_number + self.value_integer = value_integer + self.value_array = value_array + self.value_object = value_object + self.value_selection_mark = value_selection_mark + self.text = text + self.bounding_box = bounding_box + self.confidence = confidence + self.elements = elements + self.page = page + + +class FormFieldsReport(msrest.serialization.Model): + """Report for a custom model training field. + + All required parameters must be populated in order to send to Azure. + + :param field_name: Required. Training field name. + :type field_name: str + :param accuracy: Required. Estimated extraction accuracy for this field. + :type accuracy: float + """ + + _validation = { + 'field_name': {'required': True}, + 'accuracy': {'required': True}, + } + + _attribute_map = { + 'field_name': {'key': 'fieldName', 'type': 'str'}, + 'accuracy': {'key': 'accuracy', 'type': 'float'}, + } + + def __init__( + self, + *, + field_name: str, + accuracy: float, + **kwargs + ): + super(FormFieldsReport, self).__init__(**kwargs) + self.field_name = field_name + self.accuracy = accuracy + + +class KeysResult(msrest.serialization.Model): + """Keys extracted by the custom model. + + All required parameters must be populated in order to send to Azure. + + :param clusters: Required. Object mapping clusterIds to a list of keys. + :type clusters: dict[str, list[str]] + """ + + _validation = { + 'clusters': {'required': True}, + } + + _attribute_map = { + 'clusters': {'key': 'clusters', 'type': '{[str]}'}, + } + + def __init__( + self, + *, + clusters: Dict[str, List[str]], + **kwargs + ): + super(KeysResult, self).__init__(**kwargs) + self.clusters = clusters + + +class KeyValueElement(msrest.serialization.Model): + """Information about the extracted key or value in a key-value pair. + + All required parameters must be populated in order to send to Azure. + + :param type: Semantic data type of the key value element. Possible values include: "string", + "selectionMark". + :type type: str or ~azure.ai.formrecognizer.models.KeyValueType + :param text: Required. The text content of the key or value. + :type text: str + :param bounding_box: Bounding box of the key or value. + :type bounding_box: list[float] + :param elements: When includeTextDetails is set to true, a list of references to the text + elements constituting this key or value. + :type elements: list[str] + """ + + _validation = { + 'text': {'required': True}, + 'bounding_box': {'max_items': 8, 'min_items': 8}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'elements': {'key': 'elements', 'type': '[str]'}, + } + + def __init__( + self, + *, + text: str, + type: Optional[Union[str, "KeyValueType"]] = None, + bounding_box: Optional[List[float]] = None, + elements: Optional[List[str]] = None, + **kwargs + ): + super(KeyValueElement, self).__init__(**kwargs) + self.type = type + self.text = text + self.bounding_box = bounding_box + self.elements = elements + + +class KeyValuePair(msrest.serialization.Model): + """Information about the extracted key-value pair. + + All required parameters must be populated in order to send to Azure. + + :param label: A user defined label for the key/value pair entry. + :type label: str + :param key: Required. Information about the extracted key in a key-value pair. + :type key: ~azure.ai.formrecognizer.models.KeyValueElement + :param value: Required. Information about the extracted value in a key-value pair. + :type value: ~azure.ai.formrecognizer.models.KeyValueElement + :param confidence: Required. Confidence value. + :type confidence: float + """ + + _validation = { + 'key': {'required': True}, + 'value': {'required': True}, + 'confidence': {'required': True, 'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'label': {'key': 'label', 'type': 'str'}, + 'key': {'key': 'key', 'type': 'KeyValueElement'}, + 'value': {'key': 'value', 'type': 'KeyValueElement'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + } + + def __init__( + self, + *, + key: "KeyValueElement", + value: "KeyValueElement", + confidence: float, + label: Optional[str] = None, + **kwargs + ): + super(KeyValuePair, self).__init__(**kwargs) + self.label = label + self.key = key + self.value = value + self.confidence = confidence + + +class Model(msrest.serialization.Model): + """Response to the get custom model operation. + + All required parameters must be populated in order to send to Azure. + + :param model_info: Required. Basic custom model information. + :type model_info: ~azure.ai.formrecognizer.models.ModelInfo + :param keys: Keys extracted by the custom model. + :type keys: ~azure.ai.formrecognizer.models.KeysResult + :param train_result: Training result for custom model. + :type train_result: ~azure.ai.formrecognizer.models.TrainResult + :param composed_train_results: Training result for composed model. + :type composed_train_results: list[~azure.ai.formrecognizer.models.TrainResult] + """ + + _validation = { + 'model_info': {'required': True}, + } + + _attribute_map = { + 'model_info': {'key': 'modelInfo', 'type': 'ModelInfo'}, + 'keys': {'key': 'keys', 'type': 'KeysResult'}, + 'train_result': {'key': 'trainResult', 'type': 'TrainResult'}, + 'composed_train_results': {'key': 'composedTrainResults', 'type': '[TrainResult]'}, + } + + def __init__( + self, + *, + model_info: "ModelInfo", + keys: Optional["KeysResult"] = None, + train_result: Optional["TrainResult"] = None, + composed_train_results: Optional[List["TrainResult"]] = None, + **kwargs + ): + super(Model, self).__init__(**kwargs) + self.model_info = model_info + self.keys = keys + self.train_result = train_result + self.composed_train_results = composed_train_results + + +class ModelInfo(msrest.serialization.Model): + """Basic custom model information. + + All required parameters must be populated in order to send to Azure. + + :param model_id: Required. Model identifier. + :type model_id: str + :param status: Required. Status of the model. Possible values include: "creating", "ready", + "invalid". + :type status: str or ~azure.ai.formrecognizer.models.ModelStatus + :param created_date_time: Required. Date and time (UTC) when the model was created. + :type created_date_time: ~datetime.datetime + :param last_updated_date_time: Required. Date and time (UTC) when the status was last updated. + :type last_updated_date_time: ~datetime.datetime + :param model_name: Optional user defined model name (max length: 1024). + :type model_name: str + :param attributes: Optional model attributes. + :type attributes: ~azure.ai.formrecognizer.models.Attributes + """ + + _validation = { + 'model_id': {'required': True}, + 'status': {'required': True}, + 'created_date_time': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + 'model_name': {'key': 'modelName', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'Attributes'}, + } + + def __init__( + self, + *, + model_id: str, + status: Union[str, "ModelStatus"], + created_date_time: datetime.datetime, + last_updated_date_time: datetime.datetime, + model_name: Optional[str] = None, + attributes: Optional["Attributes"] = None, + **kwargs + ): + super(ModelInfo, self).__init__(**kwargs) + self.model_id = model_id + self.status = status + self.created_date_time = created_date_time + self.last_updated_date_time = last_updated_date_time + self.model_name = model_name + self.attributes = attributes + + +class Models(msrest.serialization.Model): + """Response to the list custom models operation. + + :param summary: Summary of all trained custom models. + :type summary: ~azure.ai.formrecognizer.models.ModelsSummary + :param model_list: Collection of trained custom models. + :type model_list: list[~azure.ai.formrecognizer.models.ModelInfo] + :param next_link: Link to the next page of custom models. + :type next_link: str + """ + + _attribute_map = { + 'summary': {'key': 'summary', 'type': 'ModelsSummary'}, + 'model_list': {'key': 'modelList', 'type': '[ModelInfo]'}, + 'next_link': {'key': 'nextLink', 'type': 'str'}, + } + + def __init__( + self, + *, + summary: Optional["ModelsSummary"] = None, + model_list: Optional[List["ModelInfo"]] = None, + next_link: Optional[str] = None, + **kwargs + ): + super(Models, self).__init__(**kwargs) + self.summary = summary + self.model_list = model_list + self.next_link = next_link + + +class ModelsSummary(msrest.serialization.Model): + """Summary of all trained custom models. + + All required parameters must be populated in order to send to Azure. + + :param count: Required. Current count of trained custom models. + :type count: int + :param limit: Required. Max number of models that can be trained for this account. + :type limit: int + :param last_updated_date_time: Required. Date and time (UTC) when the summary was last updated. + :type last_updated_date_time: ~datetime.datetime + """ + + _validation = { + 'count': {'required': True}, + 'limit': {'required': True}, + 'last_updated_date_time': {'required': True}, + } + + _attribute_map = { + 'count': {'key': 'count', 'type': 'int'}, + 'limit': {'key': 'limit', 'type': 'int'}, + 'last_updated_date_time': {'key': 'lastUpdatedDateTime', 'type': 'iso-8601'}, + } + + def __init__( + self, + *, + count: int, + limit: int, + last_updated_date_time: datetime.datetime, + **kwargs + ): + super(ModelsSummary, self).__init__(**kwargs) + self.count = count + self.limit = limit + self.last_updated_date_time = last_updated_date_time + + +class PageResult(msrest.serialization.Model): + """Extracted information from a single page. + + All required parameters must be populated in order to send to Azure. + + :param page: Required. Page number. + :type page: int + :param cluster_id: Cluster identifier. + :type cluster_id: int + :param key_value_pairs: List of key-value pairs extracted from the page. + :type key_value_pairs: list[~azure.ai.formrecognizer.models.KeyValuePair] + :param tables: List of data tables extracted from the page. + :type tables: list[~azure.ai.formrecognizer.models.DataTable] + """ + + _validation = { + 'page': {'required': True, 'minimum': 1}, + 'cluster_id': {'minimum': 0}, + } + + _attribute_map = { + 'page': {'key': 'page', 'type': 'int'}, + 'cluster_id': {'key': 'clusterId', 'type': 'int'}, + 'key_value_pairs': {'key': 'keyValuePairs', 'type': '[KeyValuePair]'}, + 'tables': {'key': 'tables', 'type': '[DataTable]'}, + } + + def __init__( + self, + *, + page: int, + cluster_id: Optional[int] = None, + key_value_pairs: Optional[List["KeyValuePair"]] = None, + tables: Optional[List["DataTable"]] = None, + **kwargs + ): + super(PageResult, self).__init__(**kwargs) + self.page = page + self.cluster_id = cluster_id + self.key_value_pairs = key_value_pairs + self.tables = tables + + +class ReadResult(msrest.serialization.Model): + """Text extracted from a page in the input document. + + All required parameters must be populated in order to send to Azure. + + :param page: Required. The 1-based page number in the input document. + :type page: int + :param angle: Required. The general orientation of the text in clockwise direction, measured in + degrees between (-180, 180]. + :type angle: float + :param width: Required. The width of the image/PDF in pixels/inches, respectively. + :type width: float + :param height: Required. The height of the image/PDF in pixels/inches, respectively. + :type height: float + :param unit: Required. The unit used by the width, height and boundingBox properties. For + images, the unit is "pixel". For PDF, the unit is "inch". Possible values include: "pixel", + "inch". + :type unit: str or ~azure.ai.formrecognizer.models.LengthUnit + :param language: The detected language on the page overall. Possible values include: "en", + "es". + :type language: str or ~azure.ai.formrecognizer.models.Language + :param lines: When includeTextDetails is set to true, a list of recognized text lines. The + maximum number of lines returned is 300 per page. The lines are sorted top to bottom, left to + right, although in certain cases proximity is treated with higher priority. As the sorting + order depends on the detected text, it may change across images and OCR version updates. Thus, + business logic should be built upon the actual line location instead of order. + :type lines: list[~azure.ai.formrecognizer.models.TextLine] + :param selection_marks: List of selection marks extracted from the page. + :type selection_marks: list[~azure.ai.formrecognizer.models.SelectionMark] + """ + + _validation = { + 'page': {'required': True, 'minimum': 1}, + 'angle': {'required': True, 'maximum': 180, 'minimum_ex': -180}, + 'width': {'required': True, 'minimum': 0}, + 'height': {'required': True, 'minimum': 0}, + 'unit': {'required': True}, + } + + _attribute_map = { + 'page': {'key': 'page', 'type': 'int'}, + 'angle': {'key': 'angle', 'type': 'float'}, + 'width': {'key': 'width', 'type': 'float'}, + 'height': {'key': 'height', 'type': 'float'}, + 'unit': {'key': 'unit', 'type': 'str'}, + 'language': {'key': 'language', 'type': 'str'}, + 'lines': {'key': 'lines', 'type': '[TextLine]'}, + 'selection_marks': {'key': 'selectionMarks', 'type': '[SelectionMark]'}, + } + + def __init__( + self, + *, + page: int, + angle: float, + width: float, + height: float, + unit: Union[str, "LengthUnit"], + language: Optional[Union[str, "Language"]] = None, + lines: Optional[List["TextLine"]] = None, + selection_marks: Optional[List["SelectionMark"]] = None, + **kwargs + ): + super(ReadResult, self).__init__(**kwargs) + self.page = page + self.angle = angle + self.width = width + self.height = height + self.unit = unit + self.language = language + self.lines = lines + self.selection_marks = selection_marks + + +class SelectionMark(msrest.serialization.Model): + """Information about the extracted selection mark. + + All required parameters must be populated in order to send to Azure. + + :param bounding_box: Required. Bounding box of the selection mark. + :type bounding_box: list[float] + :param confidence: Required. Confidence value. + :type confidence: float + :param state: Required. State of the selection mark. Possible values include: "selected", + "unselected". + :type state: str or ~azure.ai.formrecognizer.models.SelectionMarkState + """ + + _validation = { + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'confidence': {'required': True, 'maximum': 1, 'minimum': 0}, + 'state': {'required': True}, + } + + _attribute_map = { + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + 'state': {'key': 'state', 'type': 'str'}, + } + + def __init__( + self, + *, + bounding_box: List[float], + confidence: float, + state: Union[str, "SelectionMarkState"], + **kwargs + ): + super(SelectionMark, self).__init__(**kwargs) + self.bounding_box = bounding_box + self.confidence = confidence + self.state = state + + +class SourcePath(msrest.serialization.Model): + """Uri or local path to source data. + + :param source: File source path. + :type source: str + """ + + _validation = { + 'source': {'max_length': 2048, 'min_length': 0}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'str'}, + } + + def __init__( + self, + *, + source: Optional[str] = None, + **kwargs + ): + super(SourcePath, self).__init__(**kwargs) + self.source = source + + +class TextLine(msrest.serialization.Model): + """An object representing an extracted text line. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The text content of the line. + :type text: str + :param bounding_box: Required. Bounding box of an extracted line. + :type bounding_box: list[float] + :param language: The detected language of this line, if different from the overall page + language. Possible values include: "en", "es". + :type language: str or ~azure.ai.formrecognizer.models.Language + :param words: Required. List of words in the text line. + :type words: list[~azure.ai.formrecognizer.models.TextWord] + """ + + _validation = { + 'text': {'required': True}, + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'words': {'required': True}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'language': {'key': 'language', 'type': 'str'}, + 'words': {'key': 'words', 'type': '[TextWord]'}, + } + + def __init__( + self, + *, + text: str, + bounding_box: List[float], + words: List["TextWord"], + language: Optional[Union[str, "Language"]] = None, + **kwargs + ): + super(TextLine, self).__init__(**kwargs) + self.text = text + self.bounding_box = bounding_box + self.language = language + self.words = words + + +class TextWord(msrest.serialization.Model): + """An object representing a word. + + All required parameters must be populated in order to send to Azure. + + :param text: Required. The text content of the word. + :type text: str + :param bounding_box: Required. Bounding box of an extracted word. + :type bounding_box: list[float] + :param confidence: Confidence value. + :type confidence: float + """ + + _validation = { + 'text': {'required': True}, + 'bounding_box': {'required': True, 'max_items': 8, 'min_items': 8}, + 'confidence': {'maximum': 1, 'minimum': 0}, + } + + _attribute_map = { + 'text': {'key': 'text', 'type': 'str'}, + 'bounding_box': {'key': 'boundingBox', 'type': '[float]'}, + 'confidence': {'key': 'confidence', 'type': 'float'}, + } + + def __init__( + self, + *, + text: str, + bounding_box: List[float], + confidence: Optional[float] = None, + **kwargs + ): + super(TextWord, self).__init__(**kwargs) + self.text = text + self.bounding_box = bounding_box + self.confidence = confidence + + +class TrainingDocumentInfo(msrest.serialization.Model): + """Report for a custom model training document. + + All required parameters must be populated in order to send to Azure. + + :param document_name: Required. Training document name. + :type document_name: str + :param pages: Required. Total number of pages trained. + :type pages: int + :param errors: Required. List of errors. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + :param status: Required. Status of the training operation. Possible values include: + "succeeded", "partiallySucceeded", "failed". + :type status: str or ~azure.ai.formrecognizer.models.TrainStatus + """ + + _validation = { + 'document_name': {'required': True}, + 'pages': {'required': True}, + 'errors': {'required': True}, + 'status': {'required': True}, + } + + _attribute_map = { + 'document_name': {'key': 'documentName', 'type': 'str'}, + 'pages': {'key': 'pages', 'type': 'int'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__( + self, + *, + document_name: str, + pages: int, + errors: List["ErrorInformation"], + status: Union[str, "TrainStatus"], + **kwargs + ): + super(TrainingDocumentInfo, self).__init__(**kwargs) + self.document_name = document_name + self.pages = pages + self.errors = errors + self.status = status + + +class TrainRequest(msrest.serialization.Model): + """Request parameter to train a new custom model. + + All required parameters must be populated in order to send to Azure. + + :param source: Required. Source path containing the training documents. + :type source: str + :param source_filter: Filter to apply to the documents in the source path for training. + :type source_filter: ~azure.ai.formrecognizer.models.TrainSourceFilter + :param use_label_file: Use label file for training a model. + :type use_label_file: bool + :param model_name: Optional user defined model name (max length: 1024). + :type model_name: str + """ + + _validation = { + 'source': {'required': True, 'max_length': 2048, 'min_length': 0}, + } + + _attribute_map = { + 'source': {'key': 'source', 'type': 'str'}, + 'source_filter': {'key': 'sourceFilter', 'type': 'TrainSourceFilter'}, + 'use_label_file': {'key': 'useLabelFile', 'type': 'bool'}, + 'model_name': {'key': 'modelName', 'type': 'str'}, + } + + def __init__( + self, + *, + source: str, + source_filter: Optional["TrainSourceFilter"] = None, + use_label_file: Optional[bool] = False, + model_name: Optional[str] = None, + **kwargs + ): + super(TrainRequest, self).__init__(**kwargs) + self.source = source + self.source_filter = source_filter + self.use_label_file = use_label_file + self.model_name = model_name + + +class TrainResult(msrest.serialization.Model): + """Custom model training result. + + All required parameters must be populated in order to send to Azure. + + :param training_documents: Required. List of the documents used to train the model and any + errors reported in each document. + :type training_documents: list[~azure.ai.formrecognizer.models.TrainingDocumentInfo] + :param fields: List of fields used to train the model and the train operation error reported by + each. + :type fields: list[~azure.ai.formrecognizer.models.FormFieldsReport] + :param average_model_accuracy: Average accuracy. + :type average_model_accuracy: float + :param model_id: Model identifier. + :type model_id: str + :param errors: Errors returned during the training operation. + :type errors: list[~azure.ai.formrecognizer.models.ErrorInformation] + """ + + _validation = { + 'training_documents': {'required': True}, + } + + _attribute_map = { + 'training_documents': {'key': 'trainingDocuments', 'type': '[TrainingDocumentInfo]'}, + 'fields': {'key': 'fields', 'type': '[FormFieldsReport]'}, + 'average_model_accuracy': {'key': 'averageModelAccuracy', 'type': 'float'}, + 'model_id': {'key': 'modelId', 'type': 'str'}, + 'errors': {'key': 'errors', 'type': '[ErrorInformation]'}, + } + + def __init__( + self, + *, + training_documents: List["TrainingDocumentInfo"], + fields: Optional[List["FormFieldsReport"]] = None, + average_model_accuracy: Optional[float] = None, + model_id: Optional[str] = None, + errors: Optional[List["ErrorInformation"]] = None, + **kwargs + ): + super(TrainResult, self).__init__(**kwargs) + self.training_documents = training_documents + self.fields = fields + self.average_model_accuracy = average_model_accuracy + self.model_id = model_id + self.errors = errors + + +class TrainSourceFilter(msrest.serialization.Model): + """Filter to apply to the documents in the source path for training. + + :param prefix: A case-sensitive prefix string to filter documents in the source path for + training. For example, when using a Azure storage blob Uri, use the prefix to restrict sub + folders for training. + :type prefix: str + :param include_sub_folders: A flag to indicate if sub folders within the set of prefix folders + will also need to be included when searching for content to be preprocessed. + :type include_sub_folders: bool + """ + + _validation = { + 'prefix': {'max_length': 1024, 'min_length': 0}, + } + + _attribute_map = { + 'prefix': {'key': 'prefix', 'type': 'str'}, + 'include_sub_folders': {'key': 'includeSubFolders', 'type': 'bool'}, + } + + def __init__( + self, + *, + prefix: Optional[str] = None, + include_sub_folders: Optional[bool] = False, + **kwargs + ): + super(TrainSourceFilter, self).__init__(**kwargs) + self.prefix = prefix + self.include_sub_folders = include_sub_folders diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/operations/__init__.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/operations/__init__.py new file mode 100644 index 000000000000..f2f858714054 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/operations/__init__.py @@ -0,0 +1,13 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- + +from ._form_recognizer_client_operations import FormRecognizerClientOperationsMixin + +__all__ = [ + 'FormRecognizerClientOperationsMixin', +] diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/operations/_form_recognizer_client_operations.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/operations/_form_recognizer_client_operations.py new file mode 100644 index 000000000000..ff0991adf9f7 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/operations/_form_recognizer_client_operations.py @@ -0,0 +1,1470 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is regenerated. +# -------------------------------------------------------------------------- +from typing import TYPE_CHECKING +import warnings + +from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error +from azure.core.paging import ItemPaged +from azure.core.pipeline import PipelineResponse +from azure.core.pipeline.transport import HttpRequest, HttpResponse +from azure.core.polling import LROPoller, NoPolling, PollingMethod +from azure.core.polling.base_polling import LROBasePolling + +from .. import models + +if TYPE_CHECKING: + # pylint: disable=unused-import,ungrouped-imports + from typing import Any, Callable, Dict, Generic, IO, Iterable, Optional, TypeVar, Union + + T = TypeVar('T') + ClsType = Optional[Callable[[PipelineResponse[HttpRequest, HttpResponse], T, Dict[str, Any]], Any]] + +class FormRecognizerClientOperationsMixin(object): + + def _train_custom_model_async_initial( + self, + train_request, # type: "models.TrainRequest" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._train_custom_model_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(train_request, 'TrainRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _train_custom_model_async_initial.metadata = {'url': '/custom/models'} # type: ignore + + def begin_train_custom_model_async( + self, + train_request, # type: "models.TrainRequest" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Train Custom Model. + + Create and train a custom model. The request must include a source parameter that is either an + externally accessible Azure storage blob container Uri (preferably a Shared Access Signature + Uri) or valid path to a data folder in a locally mounted drive. When local paths are specified, + they must follow the Linux/Unix path format and be an absolute path rooted to the input mount + configuration setting value e.g., if '{Mounts:Input}' configuration setting value is '/input' + then a valid source path would be '/input/contosodataset'. All data to be trained is expected + to be under the source folder or sub folders under it. Models are trained using documents that + are of the following content type - 'application/pdf', 'image/jpeg', 'image/png', 'image/tiff'. + Other type of content is ignored. + + :param train_request: Training request parameters. + :type train_request: ~azure.ai.formrecognizer.models.TrainRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._train_custom_model_async_initial( + train_request=train_request, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_train_custom_model_async.metadata = {'url': '/custom/models'} # type: ignore + + def get_custom_model( + self, + model_id, # type: str + include_keys=False, # type: Optional[bool] + **kwargs # type: Any + ): + # type: (...) -> "models.Model" + """Get Custom Model. + + Get detailed information about a custom model. + + :param model_id: Model identifier. + :type model_id: str + :param include_keys: Include list of extracted keys in model information. + :type include_keys: bool + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Model, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Model + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Model"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_custom_model.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_keys is not None: + query_parameters['includeKeys'] = self._serialize.query("include_keys", include_keys, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('Model', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_custom_model.metadata = {'url': '/custom/models/{modelId}'} # type: ignore + + def delete_custom_model( + self, + model_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> None + """Delete Custom Model. + + Mark model for deletion. Model artifacts will be permanently removed within a predetermined + period. + + :param model_id: Model identifier. + :type model_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: None, or the result of cls(response) + :rtype: None + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.delete_custom_model.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.delete(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [204]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + if cls: + return cls(pipeline_response, None, {}) + + delete_custom_model.metadata = {'url': '/custom/models/{modelId}'} # type: ignore + + def _analyze_with_custom_model_initial( + self, + model_id, # type: str + include_text_details=False, # type: Optional[bool] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_with_custom_model_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_text_details is not None: + query_parameters['includeTextDetails'] = self._serialize.query("include_text_details", include_text_details, 'bool') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_with_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore + + def begin_analyze_with_custom_model( + self, + model_id, # type: str + include_text_details=False, # type: Optional[bool] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Analyze Form. + + Extract key-value pairs, tables, and semantic values from a given document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri or local + path) of the document to be analyzed. + + :param model_id: Model identifier. + :type model_id: str + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._analyze_with_custom_model_initial( + model_id=model_id, + include_text_details=include_text_details, + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_with_custom_model.metadata = {'url': '/custom/models/{modelId}/analyze'} # type: ignore + + def get_analyze_form_result( + self, + model_id, # type: str + result_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.AnalyzeOperationResult" + """Get Analyze Form Result. + + Obtain current status and the result of the analyze form operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_form_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_form_result.metadata = {'url': '/custom/models/{modelId}/analyzeResults/{resultId}'} # type: ignore + + def _copy_custom_model_initial( + self, + model_id, # type: str + copy_request, # type: "models.CopyRequest" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._copy_custom_model_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(copy_request, 'CopyRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _copy_custom_model_initial.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore + + def begin_copy_custom_model( + self, + model_id, # type: str + copy_request, # type: "models.CopyRequest" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Copy Custom Model. + + Copy custom model stored in this resource (the source) to user specified target Form Recognizer + resource. + + :param model_id: Model identifier. + :type model_id: str + :param copy_request: Copy request parameters. + :type copy_request: ~azure.ai.formrecognizer.models.CopyRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._copy_custom_model_initial( + model_id=model_id, + copy_request=copy_request, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_copy_custom_model.metadata = {'url': '/custom/models/{modelId}/copy'} # type: ignore + + def get_custom_model_copy_result( + self, + model_id, # type: str + result_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.CopyOperationResult" + """Get Custom Model Copy Result. + + Obtain current status and the result of a custom model copy operation. + + :param model_id: Model identifier. + :type model_id: str + :param result_id: Copy operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.CopyOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_custom_model_copy_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'modelId': self._serialize.url("model_id", model_id, 'str'), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('CopyOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_custom_model_copy_result.metadata = {'url': '/custom/models/{modelId}/copyResults/{resultId}'} # type: ignore + + def generate_model_copy_authorization( + self, + **kwargs # type: Any + ): + # type: (...) -> "models.CopyAuthorizationResult" + """Generate Copy Authorization. + + Generate authorization to copy a model into the target Form Recognizer resource. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: CopyAuthorizationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.CopyAuthorizationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.CopyAuthorizationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.generate_model_copy_authorization.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.post(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + deserialized = self._deserialize('CopyAuthorizationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, response_headers) + + return deserialized + generate_model_copy_authorization.metadata = {'url': '/custom/models/copyAuthorization'} # type: ignore + + def _compose_custom_models_async_initial( + self, + compose_request, # type: "models.ComposeRequest" + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json, text/json" + + # Construct URL + url = self._compose_custom_models_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + body_content = self._serialize.body(compose_request, 'ComposeRequest') + body_content_kwargs['content'] = body_content + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [201]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Location']=self._deserialize('str', response.headers.get('Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _compose_custom_models_async_initial.metadata = {'url': '/custom/models/compose'} # type: ignore + + def begin_compose_custom_models_async( + self, + compose_request, # type: "models.ComposeRequest" + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Compose trained with labels models into one composed model. + + Compose request would include list of models ids. + It would validate what all models either trained with labels model or composed model. + It would validate limit of models put together. + + :param compose_request: Compose models. + :type compose_request: ~azure.ai.formrecognizer.models.ComposeRequest + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._compose_custom_models_async_initial( + compose_request=compose_request, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_compose_custom_models_async.metadata = {'url': '/custom/models/compose'} # type: ignore + + def _analyze_business_card_async_initial( + self, + include_text_details=False, # type: Optional[bool] + locale=None, # type: Optional[str] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_business_card_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_text_details is not None: + query_parameters['includeTextDetails'] = self._serialize.query("include_text_details", include_text_details, 'bool') + if locale is not None: + query_parameters['locale'] = self._serialize.query("locale", locale, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_business_card_async_initial.metadata = {'url': '/prebuilt/businessCard/analyze'} # type: ignore + + def begin_analyze_business_card_async( + self, + include_text_details=False, # type: Optional[bool] + locale=None, # type: Optional[str] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Analyze Business Card. + + Extract field text and semantic values from a given business card document. The input document + must be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the business card. Supported locales include: en-AU, en-CA, en-GB, en- + IN, en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._analyze_business_card_async_initial( + include_text_details=include_text_details, + locale=locale, + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_business_card_async.metadata = {'url': '/prebuilt/businessCard/analyze'} # type: ignore + + def get_analyze_business_card_result( + self, + result_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.AnalyzeOperationResult" + """Get Analyze Business Card Result. + + Track the progress and obtain the result of the analyze business card operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_business_card_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_business_card_result.metadata = {'url': '/prebuilt/businessCard/analyzeResults/{resultId}'} # type: ignore + + def _analyze_receipt_async_initial( + self, + include_text_details=False, # type: Optional[bool] + locale=None, # type: Optional[str] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_receipt_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + if include_text_details is not None: + query_parameters['includeTextDetails'] = self._serialize.query("include_text_details", include_text_details, 'bool') + if locale is not None: + query_parameters['locale'] = self._serialize.query("locale", locale, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_receipt_async_initial.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore + + def begin_analyze_receipt_async( + self, + include_text_details=False, # type: Optional[bool] + locale=None, # type: Optional[str] + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Analyze Receipt. + + Extract field text and semantic values from a given receipt document. The input document must + be of one of the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or + 'image/tiff'. Alternatively, use 'application/json' type to specify the location (Uri) of the + document to be analyzed. + + :param include_text_details: Include text lines and element references in the result. + :type include_text_details: bool + :param locale: Locale of the receipt. Supported locales include: en-AU, en-CA, en-GB, en-IN, + en-US(default). + :type locale: str + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._analyze_receipt_async_initial( + include_text_details=include_text_details, + locale=locale, + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_receipt_async.metadata = {'url': '/prebuilt/receipt/analyze'} # type: ignore + + def get_analyze_receipt_result( + self, + result_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.AnalyzeOperationResult" + """Get Analyze Receipt Result. + + Track the progress and obtain the result of the analyze receipt operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_receipt_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_receipt_result.metadata = {'url': '/prebuilt/receipt/analyzeResults/{resultId}'} # type: ignore + + def _analyze_layout_async_initial( + self, + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> None + cls = kwargs.pop('cls', None) # type: ClsType[None] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + content_type = kwargs.pop("content_type", "application/json") + accept = "application/json" + + # Construct URL + url = self._analyze_layout_async_initial.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str') + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + body_content_kwargs = {} # type: Dict[str, Any] + if header_parameters['Content-Type'].split(";")[0] in ['application/pdf', 'image/jpeg', 'image/png', 'image/tiff']: + body_content_kwargs['stream_content'] = file_stream + elif header_parameters['Content-Type'].split(";")[0] in ['application/json']: + if file_stream is not None: + body_content = self._serialize.body(file_stream, 'SourcePath') + else: + body_content = None + body_content_kwargs['content'] = body_content + else: + raise ValueError( + "The content_type '{}' is not one of the allowed values: " + "['application/pdf', 'image/jpeg', 'image/png', 'image/tiff', 'application/json']".format(header_parameters['Content-Type']) + ) + request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [202]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + response_headers = {} + response_headers['Operation-Location']=self._deserialize('str', response.headers.get('Operation-Location')) + + if cls: + return cls(pipeline_response, None, response_headers) + + _analyze_layout_async_initial.metadata = {'url': '/layout/analyze'} # type: ignore + + def begin_analyze_layout_async( + self, + file_stream=None, # type: Optional[Union[IO, "models.SourcePath"]] + **kwargs # type: Any + ): + # type: (...) -> LROPoller[None] + """Analyze Layout. + + Extract text and layout information from a given document. The input document must be of one of + the supported content types - 'application/pdf', 'image/jpeg', 'image/png' or 'image/tiff'. + Alternatively, use 'application/json' type to specify the location (Uri or local path) of the + document to be analyzed. + + :param file_stream: .json, .pdf, .jpg, .png or .tiff type file stream. + :type file_stream: IO or ~azure.ai.formrecognizer.models.SourcePath + :keyword callable cls: A custom type or function that will be passed the direct response + :keyword str continuation_token: A continuation token to restart a poller from a saved state. + :keyword polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :paramtype polling: bool or ~azure.core.polling.PollingMethod + :keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present. + :return: An instance of LROPoller that returns either None or the result of cls(response) + :rtype: ~azure.core.polling.LROPoller[None] + :raises ~azure.core.exceptions.HttpResponseError: + """ + polling = kwargs.pop('polling', False) # type: Union[bool, PollingMethod] + cls = kwargs.pop('cls', None) # type: ClsType[None] + lro_delay = kwargs.pop( + 'polling_interval', + self._config.polling_interval + ) + cont_token = kwargs.pop('continuation_token', None) # type: Optional[str] + if cont_token is None: + raw_result = self._analyze_layout_async_initial( + file_stream=file_stream, + cls=lambda x,y,z: x, + **kwargs + ) + + kwargs.pop('error_map', None) + kwargs.pop('content_type', None) + + def get_long_running_output(pipeline_response): + if cls: + return cls(pipeline_response, None, {}) + + if polling is True: polling_method = LROBasePolling(lro_delay, **kwargs) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + if cont_token: + return LROPoller.from_continuation_token( + polling_method=polling_method, + continuation_token=cont_token, + client=self._client, + deserialization_callback=get_long_running_output + ) + else: + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) + begin_analyze_layout_async.metadata = {'url': '/layout/analyze'} # type: ignore + + def get_analyze_layout_result( + self, + result_id, # type: str + **kwargs # type: Any + ): + # type: (...) -> "models.AnalyzeOperationResult" + """Get Analyze Layout Result. + + Track the progress and obtain the result of the analyze layout operation. + + :param result_id: Analyze operation result identifier. + :type result_id: str + :keyword callable cls: A custom type or function that will be passed the direct response + :return: AnalyzeOperationResult, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.AnalyzeOperationResult + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.AnalyzeOperationResult"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + accept = "application/json" + + # Construct URL + url = self.get_analyze_layout_result.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + 'resultId': self._serialize.url("result_id", result_id, 'str'), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('AnalyzeOperationResult', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_analyze_layout_result.metadata = {'url': '/layout/analyzeResults/{resultId}'} # type: ignore + + def list_custom_models( + self, + **kwargs # type: Any + ): + # type: (...) -> Iterable["models.Models"] + """List Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: An iterator like instance of either Models or the result of cls(response) + :rtype: ~azure.core.paging.ItemPaged[~azure.ai.formrecognizer.models.Models] + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + op = "full" + accept = "application/json" + + def prepare_request(next_link=None): + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + if not next_link: + # Construct URL + url = self.list_custom_models.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['op'] = self._serialize.query("op", op, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + else: + url = next_link + query_parameters = {} # type: Dict[str, Any] + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + request = self._client.get(url, query_parameters, header_parameters) + return request + + def extract_data(pipeline_response): + deserialized = self._deserialize('Models', pipeline_response) + list_of_elem = deserialized.model_list + if cls: + list_of_elem = cls(list_of_elem) + return deserialized.next_link or None, iter(list_of_elem) + + def get_next(next_link=None): + request = prepare_request(next_link) + + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + error = self._deserialize(models.ErrorResponse, response) + map_error(status_code=response.status_code, response=response, error_map=error_map) + raise HttpResponseError(response=response, model=error) + + return pipeline_response + + return ItemPaged( + get_next, extract_data + ) + list_custom_models.metadata = {'url': '/custom/models'} # type: ignore + + def get_custom_models( + self, + **kwargs # type: Any + ): + # type: (...) -> "models.Models" + """Get Custom Models. + + Get information about all custom models. + + :keyword callable cls: A custom type or function that will be passed the direct response + :return: Models, or the result of cls(response) + :rtype: ~azure.ai.formrecognizer.models.Models + :raises: ~azure.core.exceptions.HttpResponseError + """ + cls = kwargs.pop('cls', None) # type: ClsType["models.Models"] + error_map = { + 401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError + } + error_map.update(kwargs.pop('error_map', {})) + op = "summary" + accept = "application/json" + + # Construct URL + url = self.get_custom_models.metadata['url'] # type: ignore + path_format_arguments = { + 'endpoint': self._serialize.url("self._config.endpoint", self._config.endpoint, 'str', skip_quote=True), + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} # type: Dict[str, Any] + query_parameters['op'] = self._serialize.query("op", op, 'str') + + # Construct headers + header_parameters = {} # type: Dict[str, Any] + header_parameters['Accept'] = self._serialize.header("accept", accept, 'str') + + request = self._client.get(url, query_parameters, header_parameters) + pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs) + response = pipeline_response.http_response + + if response.status_code not in [200]: + map_error(status_code=response.status_code, response=response, error_map=error_map) + error = self._deserialize(models.ErrorResponse, response) + raise HttpResponseError(response=response, model=error) + + deserialized = self._deserialize('Models', pipeline_response) + + if cls: + return cls(pipeline_response, deserialized, {}) + + return deserialized + get_custom_models.metadata = {'url': '/custom/models'} # type: ignore diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/py.typed b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/py.typed new file mode 100644 index 000000000000..e5aff4f83af8 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_generated/v2_1_preview_1/py.typed @@ -0,0 +1 @@ +# Marker file for PEP 561. \ No newline at end of file diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py index 79c371bdb5a5..8dc558b46ec8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_helpers.py @@ -25,6 +25,10 @@ 401: ClientAuthenticationError } +def _get_deserialize(): + from ._generated.v2_1_preview_1 import FormRecognizerClient + return FormRecognizerClient("dummy", "dummy")._deserialize # pylint: disable=protected-access + def get_element_type(element_pointer): word_ref = re.compile(r'/readResults/\d+/lines/\d+/words/\d+') diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_version.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_version.py index c832b5bfa449..7e4a662bbd27 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_version.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/_version.py @@ -4,4 +4,4 @@ # Licensed under the MIT License. # ------------------------------------ -VERSION = "3.0.1" +VERSION = "3.1.0b1" diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py index 741bde9615ae..e1d659878a05 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py @@ -16,17 +16,16 @@ from azure.core.tracing.decorator_async import distributed_trace_async from azure.core.polling import AsyncLROPoller from azure.core.polling.async_base_polling import AsyncLROBasePolling -from .._generated.aio._form_recognizer_client_async import FormRecognizerClient as FormRecognizer +from .._generated.aio._form_recognizer_client import FormRecognizerClient as FormRecognizer from .._response_handlers import ( prepare_receipt, prepare_content_result, prepare_form_result ) -from .._generated.models import AnalyzeOperationResult -from .._helpers import get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL +from .._helpers import _get_deserialize, get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL from .._user_agent import USER_AGENT from .._polling import AnalyzePolling -from .._api_versions import validate_api_version +from .._api_versions import validate_api_version, FormRecognizerApiVersion from .._models import FormPage, RecognizedForm if TYPE_CHECKING: from azure.core.credentials import AzureKeyCredential @@ -77,19 +76,22 @@ def __init__( authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) - api_version = kwargs.pop('api_version', None) - validate_api_version(api_version) + self.api_version = kwargs.pop('api_version', FormRecognizerApiVersion.V2_1_PREVIEW_1) + validate_api_version(self.api_version) self._client = FormRecognizer( endpoint=endpoint, credential=credential, # type: ignore + api_version=self.api_version, sdk_moniker=USER_AGENT, authentication_policy=authentication_policy, polling_interval=polling_interval, **kwargs ) + self._deserialize = _get_deserialize() + self._generated_models = self._client.models(self.api_version) def _receipt_callback(self, raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_receipt(analyze_result) @distributed_trace_async @@ -131,7 +133,7 @@ async def begin_recognize_receipts( :dedent: 8 :caption: Recognize US sales receipt fields. """ - + locale = kwargs.pop("locale", None) polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) continuation_token = kwargs.pop("continuation_token", None) content_type = kwargs.pop("content_type", None) @@ -139,19 +141,23 @@ async def begin_recognize_receipts( raise TypeError("Call begin_recognize_receipts_from_url() to analyze a receipt from a URL.") include_field_elements = kwargs.pop("include_field_elements", False) - + cls = kwargs.pop("cls", self._receipt_callback) + polling = AsyncLROBasePolling( + timeout=polling_interval, + **kwargs + ) if content_type is None: content_type = get_content_type(receipt) + if self.api_version == "2.1-preview.1" and locale: + kwargs.update({"locale": locale}) + return await self._client.begin_analyze_receipt_async( # type: ignore file_stream=receipt, content_type=content_type, include_text_details=include_field_elements, - cls=kwargs.pop("cls", self._receipt_callback), - polling=AsyncLROBasePolling( - timeout=polling_interval, - **kwargs - ), + cls=cls, + polling=polling, error_map=error_map, continuation_token=continuation_token, **kwargs @@ -191,26 +197,31 @@ async def begin_recognize_receipts_from_url( :dedent: 8 :caption: Recognize US sales receipt fields from a URL. """ - + locale = kwargs.pop("locale", None) polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) continuation_token = kwargs.pop("continuation_token", None) include_field_elements = kwargs.pop("include_field_elements", False) + cls = kwargs.pop("cls", self._receipt_callback) + polling = AsyncLROBasePolling( + timeout=polling_interval, + **kwargs + ) + + if self.api_version == "2.1-preview.1" and locale: + kwargs.update({"locale": locale}) return await self._client.begin_analyze_receipt_async( # type: ignore file_stream={"source": receipt_url}, include_text_details=include_field_elements, - cls=kwargs.pop("cls", self._receipt_callback), - polling=AsyncLROBasePolling( - timeout=polling_interval, - **kwargs - ), + cls=cls, + polling=polling, error_map=error_map, continuation_token=continuation_token, **kwargs ) def _content_callback(self, raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_content_result(analyze_result) @distributed_trace_async @@ -354,7 +365,7 @@ async def begin_recognize_custom_forms( content_type = get_content_type(form) def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_form_result(analyze_result, model_id) deserialization_callback = cls if cls else analyze_callback @@ -408,7 +419,7 @@ async def begin_recognize_custom_forms_from_url( include_field_elements = kwargs.pop("include_field_elements", False) def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argument - analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = self._deserialize(self._generated_models.AnalyzeOperationResult, raw_response) return prepare_form_result(analyze_result, model_id) deserialization_callback = cls if cls else analyze_callback diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py index 4727f6032f0b..3e2942d14b9a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_training_client_async.py @@ -21,23 +21,21 @@ from azure.core.async_paging import AsyncItemPaged from ._form_recognizer_client_async import FormRecognizerClient from ._helpers_async import AsyncTransportWrapper -from .._generated.aio._form_recognizer_client_async import FormRecognizerClient as FormRecognizer +from .._generated.aio._form_recognizer_client import FormRecognizerClient as FormRecognizer from .._generated.models import ( TrainRequest, TrainSourceFilter, - Model, CopyRequest, - CopyOperationResult, CopyAuthorizationResult ) -from .._helpers import error_map, get_authentication_policy, POLLING_INTERVAL +from .._helpers import _get_deserialize, error_map, get_authentication_policy, POLLING_INTERVAL from .._models import ( CustomFormModelInfo, AccountProperties, CustomFormModel ) from .._user_agent import USER_AGENT -from .._api_versions import validate_api_version +from .._api_versions import validate_api_version, FormRecognizerApiVersion from .._polling import TrainingPolling, CopyPolling if TYPE_CHECKING: from azure.core.pipeline import PipelineResponse @@ -90,16 +88,19 @@ def __init__( self._credential = credential authentication_policy = get_authentication_policy(credential) polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL) - api_version = kwargs.pop('api_version', None) - validate_api_version(api_version) + self.api_version = kwargs.pop('api_version', FormRecognizerApiVersion.V2_1_PREVIEW_1) + validate_api_version(self.api_version) self._client = FormRecognizer( endpoint=self._endpoint, credential=self._credential, # type: ignore + api_version=self.api_version, sdk_moniker=USER_AGENT, authentication_policy=authentication_policy, polling_interval=polling_interval, **kwargs ) + self._deserialize = _get_deserialize() + self._generated_models = self._client.models(self.api_version) @distributed_trace_async async def begin_training( @@ -145,52 +146,74 @@ async def begin_training( :caption: Training a model (without labels) with your custom forms. """ - def callback(raw_response): - model = self._client._deserialize(Model, raw_response) + def callback_v2_0(raw_response): + model = self._deserialize(self._generated_models.Model, raw_response) + return CustomFormModel._from_generated(model) + + def callback_v2_1(raw_response, _, headers): # pylint: disable=unused-argument + model = self._deserialize(self._generated_models.Model, raw_response) return CustomFormModel._from_generated(model) cls = kwargs.pop("cls", None) continuation_token = kwargs.pop("continuation_token", None) polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) - deserialization_callback = cls if cls else callback - if continuation_token: - return AsyncLROPoller.from_continuation_token( - polling_method=AsyncLROBasePolling( # type: ignore + if self.api_version == "2.0": + deserialization_callback = cls if cls else callback_v2_0 + if continuation_token: + return AsyncLROPoller.from_continuation_token( + polling_method=AsyncLROBasePolling( # type: ignore + timeout=polling_interval, + lro_algorithms=[TrainingPolling()], + **kwargs + ), + continuation_token=continuation_token, + client=self._client._client, + deserialization_callback=deserialization_callback + ) + + response = await self._client.train_custom_model_async( + train_request=TrainRequest( + source=training_files_url, + use_label_file=use_training_labels, + source_filter=TrainSourceFilter( + prefix=kwargs.pop("prefix", ""), + include_sub_folders=kwargs.pop("include_subfolders", False) + ) + ), + cls=lambda pipeline_response, _, response_headers: pipeline_response, + error_map=error_map, + **kwargs + ) + + return AsyncLROPoller( + self._client._client, + response, + deserialization_callback, + AsyncLROBasePolling( # type: ignore timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs - ), - continuation_token=continuation_token, - client=self._client._client, - deserialization_callback=deserialization_callback + ) ) - response = await self._client.train_custom_model_async( + deserialization_callback = cls if cls else callback_v2_1 + return await self._client.begin_train_custom_model_async( # type: ignore train_request=TrainRequest( source=training_files_url, use_label_file=use_training_labels, source_filter=TrainSourceFilter( prefix=kwargs.pop("prefix", ""), - include_sub_folders=kwargs.pop("include_subfolders", False) - ) + include_sub_folders=kwargs.pop("include_subfolders", False), + ), ), - cls=lambda pipeline_response, _, response_headers: pipeline_response, + cls=deserialization_callback, + continuation_token=continuation_token, + polling=AsyncLROBasePolling(timeout=polling_interval, lro_algorithms=[TrainingPolling()], **kwargs), error_map=error_map, **kwargs ) - return AsyncLROPoller( - self._client._client, - response, - deserialization_callback, - AsyncLROBasePolling( # type: ignore - timeout=polling_interval, - lro_algorithms=[TrainingPolling()], - **kwargs - ) - ) - @distributed_trace_async async def delete_model(self, model_id: str, **kwargs: Any) -> None: """Mark model for deletion. Model artifacts will be permanently @@ -379,7 +402,7 @@ async def begin_copy_model( polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval) def _copy_callback(raw_response, _, headers): # pylint: disable=unused-argument - copy_result = self._client._deserialize(CopyOperationResult, raw_response) + copy_result = self._deserialize(self._generated_models.CopyOperationResult, raw_response) return CustomFormModelInfo._from_generated(copy_result, target["modelId"]) return await self._client.begin_copy_custom_model( # type: ignore @@ -418,6 +441,7 @@ def get_form_recognizer_client(self, **kwargs: Any) -> FormRecognizerClient: endpoint=self._endpoint, credential=self._credential, pipeline=_pipeline, + api_version=self.api_version, **kwargs ) # need to share config, but can't pass as a keyword into client diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/setup.py b/sdk/formrecognizer/azure-ai-formrecognizer/setup.py index 5615ab956ad2..eb0854143789 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/setup.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/setup.py @@ -59,7 +59,7 @@ author_email='azpysdkhelp@microsoft.com', url='https://github.com/Azure/azure-sdk-for-python', classifiers=[ - "Development Status :: 5 - Production/Stable", + "Development Status :: 4 - Beta", 'Programming Language :: Python', 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml index aea0dff657f1..07ded50337f0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_blank_page.yaml @@ -458,7 +458,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -468,27 +468,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - cda67980-5c58-4b06-973a-70c6b1b60c73 + - d83a214e-7c0e-43c4-a48c-dbcf2f8994f3 content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:31 GMT + - Mon, 14 Sep 2020 19:23:31 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cda67980-5c58-4b06-973a-70c6b1b60c73 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d83a214e-7c0e-43c4-a48c-dbcf2f8994f3 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '65' + - '25' status: code: 202 message: Accepted @@ -502,31 +502,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cda67980-5c58-4b06-973a-70c6b1b60c73 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d83a214e-7c0e-43c4-a48c-dbcf2f8994f3 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:32Z", - "lastUpdatedDateTime": "2020-07-10T18:39:36Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.4967, "height": 10.9967, "unit": "inch", "lines": []}], "pageResults": [{"page": - 1, "tables": []}]}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:32Z", + "lastUpdatedDateTime": "2020-09-14T19:23:36Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "tables": + []}]}}' headers: apim-request-id: - - 9d745884-2de1-439e-88d9-c1db933fdd37 + - 185ab685-add7-4a59-a6e6-5f534052b848 + content-length: + - '277' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:37 GMT + - Mon, 14 Sep 2020 19:23:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '19' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml index f99211d6fbd1..eb7273702f2b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: xx headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,30 +13,20 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 9ac66232-3878-4e31-b55a-c30fb5705bca content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:39:30 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 19:22:30 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml index fbbfd035ce01..c1de6284398b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_authentication_successful_key.yaml @@ -2589,7 +2589,7 @@ interactions: DQoxNDcwNDgNCiUlRU9GDQo= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2599,27 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 60884788-678f-46b5-b503-5f5639852af2 + - 4b8157b2-6218-48cf-82b6-c6b252b66e7c content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:31 GMT + - Mon, 14 Sep 2020 19:22:40 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/60884788-678f-46b5-b503-5f5639852af2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/4b8157b2-6218-48cf-82b6-c6b252b66e7c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '110' + - '70' status: code: 202 message: Accepted @@ -2633,31 +2633,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/60884788-678f-46b5-b503-5f5639852af2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/4b8157b2-6218-48cf-82b6-c6b252b66e7c response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:32Z", - "lastUpdatedDateTime": "2020-07-10T18:39:36Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:22:40Z", "lastUpdatedDateTime": + "2020-09-14T19:22:40Z"}' + headers: + apim-request-id: + - 9941c0ea-d44a-42fb-9547-a5bc503f5237 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:22:44 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '11' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/4b8157b2-6218-48cf-82b6-c6b252b66e7c + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:22:40Z", + "lastUpdatedDateTime": "2020-09-14T19:22:46Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2718,16 +2753,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2746,19 +2786,19 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 0aa3a7e7-0b9b-4db3-abdf-05d8ba2b02cf + - d64d6723-869e-4d8d-96e3-097f5c0e0eae + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:37 GMT + - Mon, 14 Sep 2020 19:22:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '31' + - '22' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml index e245a5ee3aa7..1cababc2f0db 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage.yaml @@ -1915,7 +1915,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -1925,27 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 17c989bc-f462-47f0-91a6-78a6769cc78e + - 315f0972-bd92-435a-b029-aec1f17a02f4 content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:38 GMT + - Mon, 14 Sep 2020 19:22:39 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/17c989bc-f462-47f0-91a6-78a6769cc78e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/315f0972-bd92-435a-b029-aec1f17a02f4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '42' status: code: 202 message: Accepted @@ -1959,70 +1959,104 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/17c989bc-f462-47f0-91a6-78a6769cc78e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/315f0972-bd92-435a-b029-aec1f17a02f4 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:38Z", - "lastUpdatedDateTime": "2020-07-10T18:39:42Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:22:39Z", "lastUpdatedDateTime": + "2020-09-14T19:22:44Z"}' + headers: + apim-request-id: + - 69627cde-8b33-4886-91de-8a9d3219de30 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:22:44 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '15' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/315f0972-bd92-435a-b029-aec1f17a02f4 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:22:39Z", + "lastUpdatedDateTime": "2020-09-14T19:22:45Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -2104,14 +2138,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -2245,10 +2285,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -2347,19 +2395,19 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - f8a8aea3-c50d-48de-b1b7-5839ae870e00 + - 5b8c9a3b-3ec6-45f5-bc24-775f25465e73 + content-length: + - '28681' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:43 GMT + - Mon, 14 Sep 2020 19:22:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '41' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml index e4e4072ad943..d5987489149d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_pdf.yaml @@ -11414,7 +11414,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -11424,27 +11424,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - d1e89e1b-f412-454e-82b1-6672f2a5ca85 + - 74587ca1-e6d7-454f-82dd-bec62637fe3f content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:39 GMT + - Mon, 14 Sep 2020 19:22:52 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/d1e89e1b-f412-454e-82b1-6672f2a5ca85 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/74587ca1-e6d7-454f-82dd-bec62637fe3f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '187' + - '128' status: code: 202 message: Accepted @@ -11458,21 +11458,56 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/d1e89e1b-f412-454e-82b1-6672f2a5ca85 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/74587ca1-e6d7-454f-82dd-bec62637fe3f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:40Z", - "lastUpdatedDateTime": "2020-07-10T18:39:45Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:22:52Z", "lastUpdatedDateTime": + "2020-09-14T19:22:52Z"}' + headers: + apim-request-id: + - 14d88705-8f90-4d39-86ed-93a44634d7c2 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:22:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '11' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/74587ca1-e6d7-454f-82dd-bec62637fe3f + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:22:52Z", + "lastUpdatedDateTime": "2020-09-14T19:22:59Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -11950,32 +11985,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -12231,14 +12265,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -12729,19 +12764,19 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - 926a8a10-c94c-4283-95ef-43186ed27431 + - 7d9bcd31-72de-4e71-8903-21827c078838 + content-length: + - '92389' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:45 GMT + - Mon, 14 Sep 2020 19:23:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '44' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml index c654098de3a5..a093f1595d69 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_table_span_transform.yaml @@ -11410,7 +11410,7 @@ interactions: U2l6ZSAzNAo+PgpzdGFydHhyZWYKNjQ5NDE0CiUlRU9GCg== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -11420,27 +11420,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 68c69373-2152-40ce-a68c-b0cbe4724a21 + - 177b01ba-e787-4f69-bce0-ed4c935d9fdd content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:40 GMT + - Mon, 14 Sep 2020 19:22:52 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/68c69373-2152-40ce-a68c-b0cbe4724a21 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/177b01ba-e787-4f69-bce0-ed4c935d9fdd strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '174' + - '160' status: code: 202 message: Accepted @@ -11454,28 +11454,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/68c69373-2152-40ce-a68c-b0cbe4724a21 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/177b01ba-e787-4f69-bce0-ed4c935d9fdd response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:39:40Z", "lastUpdatedDateTime": - "2020-07-10T18:39:45Z"}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:22:52Z", "lastUpdatedDateTime": + "2020-09-14T19:22:52Z"}' headers: apim-request-id: - - 1ead3072-e2ce-4ec4-9e5f-44d7674de2d3 + - 2ea1be41-0975-45c6-9bc1-0d35b2c00f99 + content-length: + - '106' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:45 GMT + - Mon, 14 Sep 2020 19:22:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '10' status: code: 200 message: OK @@ -11489,21 +11489,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/68c69373-2152-40ce-a68c-b0cbe4724a21 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/177b01ba-e787-4f69-bce0-ed4c935d9fdd response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:40Z", - "lastUpdatedDateTime": "2020-07-10T18:39:46Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:22:52Z", + "lastUpdatedDateTime": "2020-09-14T19:22:59Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -11981,32 +11981,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -12262,14 +12261,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -12760,19 +12760,19 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - 80a0f3ca-76d4-4f03-af74-60fefb1f74aa + - dd1368ee-6cf9-491f-ba44-db59785fb2d8 + content-length: + - '92389' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:50 GMT + - Mon, 14 Sep 2020 19:23:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '58' + - '51' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml index c142567acdd4..04c5784b9b1b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_multipage_transform.yaml @@ -1915,7 +1915,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -1925,27 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 2a0f0b26-cf06-46ce-9c23-beb3feac7acd + - c5c1784b-e8a8-4c52-a09c-c840d7ffb6a8 content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:44 GMT + - Mon, 14 Sep 2020 19:23:04 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2a0f0b26-cf06-46ce-9c23-beb3feac7acd + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c5c1784b-e8a8-4c52-a09c-c840d7ffb6a8 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '63' + - '39' status: code: 202 message: Accepted @@ -1959,70 +1959,104 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2a0f0b26-cf06-46ce-9c23-beb3feac7acd + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c5c1784b-e8a8-4c52-a09c-c840d7ffb6a8 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:44Z", - "lastUpdatedDateTime": "2020-07-10T18:39:48Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:23:05Z", "lastUpdatedDateTime": + "2020-09-14T19:23:09Z"}' + headers: + apim-request-id: + - 9dcee5d8-c1a6-4ab7-8306-7bf92e6b4106 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:23:10 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '11' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c5c1784b-e8a8-4c52-a09c-c840d7ffb6a8 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:05Z", + "lastUpdatedDateTime": "2020-09-14T19:23:10Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -2104,14 +2138,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -2245,10 +2285,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -2347,19 +2395,19 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - 6335de0f-9df5-4c6c-9ad2-35043faa9fda + - eedfaae4-880c-46d6-8c9c-f1bef5b1723b + content-length: + - '28681' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:49 GMT + - Mon, 14 Sep 2020 19:23:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '97' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml index 2563bc8597ee..b75502e27f0a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_jpg.yaml @@ -8416,7 +8416,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -8426,27 +8426,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - f55d5749-d35a-4f37-a867-962111adfbea + - f8d8564e-ff0f-4644-b5c0-b0bd64041ec9 content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:48 GMT + - Mon, 14 Sep 2020 19:23:04 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/f55d5749-d35a-4f37-a867-962111adfbea + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/f8d8564e-ff0f-4644-b5c0-b0bd64041ec9 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '226' + - '155' status: code: 202 message: Accepted @@ -8460,268 +8460,270 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/f55d5749-d35a-4f37-a867-962111adfbea + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/f8d8564e-ff0f-4644-b5c0-b0bd64041ec9 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:48Z", - "lastUpdatedDateTime": "2020-07-10T18:39:50Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:05Z", + "lastUpdatedDateTime": "2020-09-14T19:23:08Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -8757,7 +8759,7 @@ interactions: 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, + {"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"]}, @@ -8766,25 +8768,25 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: apim-request-id: - - d4da7606-6da3-42d1-8a42-f05c7a1b314d + - 2842c114-8183-4cd4-b2a5-f44b69308703 + content-length: + - '21135' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:56 GMT + - Mon, 14 Sep 2020 19:23:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '36' + - '123' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml index e9c91a7330a1..0a95947f21ee 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_pdf.yaml @@ -2589,7 +2589,7 @@ interactions: DQoxNDcwNDgNCiUlRU9GDQo= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2599,27 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 462110e8-866a-48bb-ac5b-b3b908238575 + - 5b4366ba-cab3-4ca9-b0ac-c10619703305 content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:50 GMT + - Mon, 14 Sep 2020 19:23:16 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/462110e8-866a-48bb-ac5b-b3b908238575 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/5b4366ba-cab3-4ca9-b0ac-c10619703305 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '135' + - '57' status: code: 202 message: Accepted @@ -2633,31 +2633,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/462110e8-866a-48bb-ac5b-b3b908238575 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/5b4366ba-cab3-4ca9-b0ac-c10619703305 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:50Z", - "lastUpdatedDateTime": "2020-07-10T18:39:55Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:23:16Z", "lastUpdatedDateTime": + "2020-09-14T19:23:16Z"}' + headers: + apim-request-id: + - dabc1687-9737-4ba4-88f5-2fa37fa56a62 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:23:21 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/5b4366ba-cab3-4ca9-b0ac-c10619703305 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:16Z", + "lastUpdatedDateTime": "2020-09-14T19:23:22Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2718,16 +2753,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2746,19 +2786,19 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - d5fbdcc4-8aac-4cbd-bd0a-0d728f5460f9 + - 244e6e3c-c418-42ed-b561-f6e138dd6cc9 + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:55 GMT + - Mon, 14 Sep 2020 19:23:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '19' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml index f32b2b1e2b06..f7e7c8f661a5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_jpg.yaml @@ -8412,7 +8412,7 @@ interactions: BRQAUUAFFABRQB//2Q== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -8422,27 +8422,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 583df4fc-8a06-47c5-96d6-ef500d2e4234 + - ec388c32-6945-4acb-9c37-52231c8e530e content-length: - '0' date: - - Fri, 10 Jul 2020 18:39:57 GMT + - Mon, 14 Sep 2020 19:23:12 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/583df4fc-8a06-47c5-96d6-ef500d2e4234 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/ec388c32-6945-4acb-9c37-52231c8e530e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '207' + - '142' status: code: 202 message: Accepted @@ -8456,268 +8456,270 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/583df4fc-8a06-47c5-96d6-ef500d2e4234 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/ec388c32-6945-4acb-9c37-52231c8e530e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:57Z", - "lastUpdatedDateTime": "2020-07-10T18:40:00Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:12Z", + "lastUpdatedDateTime": "2020-09-14T19:23:15Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -8753,7 +8755,7 @@ interactions: 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, + {"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"]}, @@ -8762,25 +8764,25 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: apim-request-id: - - 32d8d7b1-ffc5-43ec-a275-b9313e871b5e + - 69805407-8147-412e-9dbd-fbd88e8b07b8 + content-length: + - '21135' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:02 GMT + - Mon, 14 Sep 2020 19:23:16 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '54' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml index 30e08fcd0682..cd5d6b383927 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_content_stream_transform_pdf.yaml @@ -2589,7 +2589,7 @@ interactions: DQoxNDcwNDgNCiUlRU9GDQo= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2599,27 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 7e939460-05d5-43c1-a72a-52d276ccaf5c + - 91db0916-f96b-4bb4-bef3-29b57a02405e content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:11 GMT + - Mon, 14 Sep 2020 19:23:17 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7e939460-05d5-43c1-a72a-52d276ccaf5c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/91db0916-f96b-4bb4-bef3-29b57a02405e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20146' + - '55' status: code: 202 message: Accepted @@ -2633,31 +2633,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7e939460-05d5-43c1-a72a-52d276ccaf5c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/91db0916-f96b-4bb4-bef3-29b57a02405e response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:12Z", - "lastUpdatedDateTime": "2020-07-10T18:40:16Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:23:18Z", "lastUpdatedDateTime": + "2020-09-14T19:23:23Z"}' + headers: + apim-request-id: + - 234f33e2-638e-43b1-814d-6e8746ed3294 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:23:23 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/91db0916-f96b-4bb4-bef3-29b57a02405e + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:18Z", + "lastUpdatedDateTime": "2020-09-14T19:23:23Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2718,16 +2753,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2746,19 +2786,19 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 55aa1864-3f91-4e39-914f-df027237fc42 + - 78c3b799-a750-4a89-939f-2cf0a61d553f + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:17 GMT + - Mon, 14 Sep 2020 19:23:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '19' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml index fd46619e51e7..49c83aa60c06 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes.yaml @@ -3,7 +3,7 @@ interactions: body: '%PDFUUU' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,24 +13,24 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "InvalidImage", "message": "The input data is not a valid image or password protected."}}' headers: apim-request-id: - - 9edd8d19-97ad-4ac6-9c9c-2a170b3edd01 + - 7cca32b3-a1b9-45b2-8a2d-933f61940c66 + content-length: + - '104' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:17 GMT + - Mon, 14 Sep 2020 19:23:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml index d8718b481511..fabc0ba85385 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_damaged_file_passed_as_bytes_io.yaml @@ -8,7 +8,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -18,28 +18,28 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "InvalidImage", "message": "The input data is not a valid image or password protected."}}' headers: apim-request-id: - - b98a55a9-1c44-4f3d-8bbb-37e5671f833f + - 46e69f3f-813d-4e40-b300-7901dbec4169 + content-length: + - '104' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:39:56 GMT + - Mon, 14 Sep 2020 19:23:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3' + - '8' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml index 28041cdf97b5..13d0ea1b5154 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content.test_passing_enum_content_type.yaml @@ -2589,7 +2589,7 @@ interactions: DQoxNDcwNDgNCiUlRU9GDQo= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2599,27 +2599,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 8deabd4a-f9eb-4490-8ec8-35b10aed48e2 + - 490580f4-06b7-488d-95fc-b3fcb79acaeb content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:18 GMT + - Mon, 14 Sep 2020 19:23:27 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/8deabd4a-f9eb-4490-8ec8-35b10aed48e2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/490580f4-06b7-488d-95fc-b3fcb79acaeb strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '75' + - '66' status: code: 202 message: Accepted @@ -2633,31 +2633,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/8deabd4a-f9eb-4490-8ec8-35b10aed48e2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/490580f4-06b7-488d-95fc-b3fcb79acaeb response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:18Z", - "lastUpdatedDateTime": "2020-07-10T18:40:21Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:23:28Z", "lastUpdatedDateTime": + "2020-09-14T19:23:28Z"}' + headers: + apim-request-id: + - 5ee4e7d5-90a1-47d4-9bbd-9c39a84dc597 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:23:32 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/490580f4-06b7-488d-95fc-b3fcb79acaeb + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:23:28Z", + "lastUpdatedDateTime": "2020-09-14T19:23:35Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2718,16 +2753,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2746,19 +2786,19 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 4b1de50c-8c28-4032-9a3c-0e9fb186ea26 + - 96a626b3-0a5f-482a-91e5-988060751c18 + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:23 GMT + - Mon, 14 Sep 2020 19:23:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml index bdce05cc781c..7114cb572d56 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_blank_page.yaml @@ -453,51 +453,53 @@ interactions: OUJBMDhFRkVFNjYyMDE+XSAvUHJldiAyNDg2OC9YUmVmU3RtIDI0NTg2Pj4NCnN0YXJ0eHJlZg0K MjU0ODQNCiUlRU9G headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 7ce371c2-b941-4451-9c48-0294e2d028df + apim-request-id: 24e9be4b-a13f-48c3-88c6-a20f8e9de20c content-length: '0' - date: Fri, 10 Jul 2020 18:40:03 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7ce371c2-b941-4451-9c48-0294e2d028df + date: Mon, 14 Sep 2020 19:25:12 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/24e9be4b-a13f-48c3-88c6-a20f8e9de20c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '82' + x-envoy-upstream-service-time: '22' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7ce371c2-b941-4451-9c48-0294e2d028df + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/24e9be4b-a13f-48c3-88c6-a20f8e9de20c response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:03Z", - "lastUpdatedDateTime": "2020-07-10T18:40:07Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.4967, "height": 10.9967, "unit": "inch", "lines": []}], "pageResults": [{"page": - 1, "tables": []}]}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:12Z", + "lastUpdatedDateTime": "2020-09-14T19:25:17Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "tables": + []}]}}' headers: - apim-request-id: 356b029e-6e0f-467d-89e4-4087f6567df2 + apim-request-id: 2b077e54-b798-4371-b862-919274ecd5db + content-length: '277' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:08 GMT + date: Mon, 14 Sep 2020 19:25:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '30' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7ce371c2-b941-4451-9c48-0294e2d028df + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/24e9be4b-a13f-48c3-88c6-a20f8e9de20c version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml index 3df8414bff96..dba44c705322 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_bad_key.yaml @@ -2,27 +2,24 @@ interactions: - request: body: xxx headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: dc0c59bc-bdc9-4da7-9281-227d3d862274 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:40:24 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 19:25:12 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml index dd28d161ee11..5de1c0929d84 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_authentication_successful_key.yaml @@ -2588,56 +2588,81 @@ interactions: ZWFtDQpo3mJiZNJfwMTAwPcCSDA+AAgwABA7ArANCmVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVm DQoxNDcwNDgNCiUlRU9GDQo= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: b070572c-3828-4cb9-bd8e-2cc804eb0e56 + apim-request-id: d7cbf88e-a127-41f5-8476-15cee148b7c3 content-length: '0' - date: Fri, 10 Jul 2020 18:39:57 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/b070572c-3828-4cb9-bd8e-2cc804eb0e56 + date: Mon, 14 Sep 2020 19:25:12 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d7cbf88e-a127-41f5-8476-15cee148b7c3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '116' + x-envoy-upstream-service-time: '168' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/b070572c-3828-4cb9-bd8e-2cc804eb0e56 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d7cbf88e-a127-41f5-8476-15cee148b7c3 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:39:57Z", - "lastUpdatedDateTime": "2020-07-10T18:40:01Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:12Z", "lastUpdatedDateTime": + "2020-09-14T19:25:12Z"}' + headers: + apim-request-id: 097b1297-37d1-41d4-b631-788d75ab58df + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:17 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d7cbf88e-a127-41f5-8476-15cee148b7c3 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d7cbf88e-a127-41f5-8476-15cee148b7c3 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:12Z", + "lastUpdatedDateTime": "2020-09-14T19:25:18Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2698,16 +2723,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2725,15 +2755,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 2bc786f9-b2a5-4047-934e-4eefc91a986f + apim-request-id: b643ddd4-3d91-4bd8-9197-c0be53b44e6c + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:02 GMT + date: Mon, 14 Sep 2020 19:25:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/b070572c-3828-4cb9-bd8e-2cc804eb0e56 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d7cbf88e-a127-41f5-8476-15cee148b7c3 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml index d72fc22319ca..81f6859c5c95 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage.yaml @@ -1914,95 +1914,119 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: daf0e58d-f8e3-4948-8014-64640a07efcf + apim-request-id: 60848312-d0af-4785-bf34-3d24a3788467 content-length: '0' - date: Fri, 10 Jul 2020 18:40:03 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/daf0e58d-f8e3-4948-8014-64640a07efcf + date: Mon, 14 Sep 2020 19:25:22 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/60848312-d0af-4785-bf34-3d24a3788467 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '68' + x-envoy-upstream-service-time: '38' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/daf0e58d-f8e3-4948-8014-64640a07efcf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/60848312-d0af-4785-bf34-3d24a3788467 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:03Z", - "lastUpdatedDateTime": "2020-07-10T18:40:07Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:23Z", "lastUpdatedDateTime": + "2020-09-14T19:25:27Z"}' + headers: + apim-request-id: 0e785f8c-bd13-4178-a0da-1518795c031f + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:28 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '149' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/60848312-d0af-4785-bf34-3d24a3788467 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/60848312-d0af-4785-bf34-3d24a3788467 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:23Z", + "lastUpdatedDateTime": "2020-09-14T19:25:29Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -2084,14 +2108,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -2225,10 +2255,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -2326,15 +2364,15 @@ interactions: {"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"]}]}]}]}}' headers: - apim-request-id: d85b806e-9286-4653-b061-ec2193c75f10 + apim-request-id: 62e731eb-7114-43fd-aecf-1474fb9e5b3b + content-length: '28681' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:08 GMT + date: Mon, 14 Sep 2020 19:25:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '43' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/daf0e58d-f8e3-4948-8014-64640a07efcf + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/60848312-d0af-4785-bf34-3d24a3788467 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml index 9b258478e6db..4683b85a7897 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_pdf.yaml @@ -11409,46 +11409,71 @@ interactions: MDAwMDY0OTIxNiAwMDAwMCBuDQp0cmFpbGVyCjw8Ci9JbmZvIDMzIDAgUgovUm9vdCAxIDAgUgov U2l6ZSAzNAo+PgpzdGFydHhyZWYKNjQ5NDE0CiUlRU9GCg== headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 27a674d7-74aa-4301-a677-982ddf341914 + apim-request-id: c45ad264-20ef-41c8-adf9-54e391cb872d content-length: '0' - date: Fri, 10 Jul 2020 18:40:10 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/27a674d7-74aa-4301-a677-982ddf341914 + date: Mon, 14 Sep 2020 19:25:27 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c45ad264-20ef-41c8-adf9-54e391cb872d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '150' + x-envoy-upstream-service-time: '169' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/27a674d7-74aa-4301-a677-982ddf341914 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c45ad264-20ef-41c8-adf9-54e391cb872d response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:10Z", - "lastUpdatedDateTime": "2020-07-10T18:40:15Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:27Z", "lastUpdatedDateTime": + "2020-09-14T19:25:27Z"}' + headers: + apim-request-id: e9a5fa63-7f93-41ca-a36a-a5dc30d81b53 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c45ad264-20ef-41c8-adf9-54e391cb872d +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c45ad264-20ef-41c8-adf9-54e391cb872d + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:27Z", + "lastUpdatedDateTime": "2020-09-14T19:25:33Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -11926,32 +11951,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -12207,14 +12231,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -12704,15 +12729,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 538442d4-e63c-43ea-bdbd-07687106d97f + apim-request-id: c8dd7c8a-297f-4ed5-82af-3b782069302b + content-length: '92389' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:15 GMT + date: Mon, 14 Sep 2020 19:25:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '56' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/27a674d7-74aa-4301-a677-982ddf341914 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c45ad264-20ef-41c8-adf9-54e391cb872d version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml index 1d762919ce09..a5bdfee5bf1d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_table_span_transform.yaml @@ -11409,46 +11409,71 @@ interactions: MDAwMDY0OTIxNiAwMDAwMCBuDQp0cmFpbGVyCjw8Ci9JbmZvIDMzIDAgUgovUm9vdCAxIDAgUgov U2l6ZSAzNAo+PgpzdGFydHhyZWYKNjQ5NDE0CiUlRU9GCg== headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 7c4728b3-6eef-47fb-97ed-15d9b59800ba + apim-request-id: beec7135-f47b-4ab0-80c4-e32187a25dd9 content-length: '0' - date: Fri, 10 Jul 2020 18:40:37 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7c4728b3-6eef-47fb-97ed-15d9b59800ba + date: Mon, 14 Sep 2020 19:25:19 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/beec7135-f47b-4ab0-80c4-e32187a25dd9 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '215' + x-envoy-upstream-service-time: '159' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7c4728b3-6eef-47fb-97ed-15d9b59800ba + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/beec7135-f47b-4ab0-80c4-e32187a25dd9 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:38Z", - "lastUpdatedDateTime": "2020-07-10T18:40:42Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:20Z", "lastUpdatedDateTime": + "2020-09-14T19:25:20Z"}' + headers: + apim-request-id: f6297526-5193-4d79-acce-2e697a2261ae + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:24 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '49' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/beec7135-f47b-4ab0-80c4-e32187a25dd9 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/beec7135-f47b-4ab0-80c4-e32187a25dd9 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:20Z", + "lastUpdatedDateTime": "2020-09-14T19:25:25Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -11926,32 +11951,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -12207,14 +12231,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -12704,15 +12729,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 9abd6856-19f7-4aeb-8b64-9c7d6f5cf412 + apim-request-id: b93f1dfe-6c48-493e-9e0b-021b01357e63 + content-length: '92389' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:43 GMT + date: Mon, 14 Sep 2020 19:25:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '65' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7c4728b3-6eef-47fb-97ed-15d9b59800ba + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/beec7135-f47b-4ab0-80c4-e32187a25dd9 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml index 9cbe6726be53..c002339e7da3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_multipage_transform.yaml @@ -1914,95 +1914,119 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 21467694-a04c-4348-9c6f-057df033f2f0 + apim-request-id: 93b5938b-97e4-4238-bbd9-3b8f55c02578 content-length: '0' - date: Fri, 10 Jul 2020 18:40:08 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/21467694-a04c-4348-9c6f-057df033f2f0 + date: Mon, 14 Sep 2020 19:25:30 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/93b5938b-97e4-4238-bbd9-3b8f55c02578 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '109' + x-envoy-upstream-service-time: '45' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/21467694-a04c-4348-9c6f-057df033f2f0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/93b5938b-97e4-4238-bbd9-3b8f55c02578 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:09Z", - "lastUpdatedDateTime": "2020-07-10T18:40:13Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:31Z", "lastUpdatedDateTime": + "2020-09-14T19:25:34Z"}' + headers: + apim-request-id: 395a4ced-0d0f-41cc-88d6-3e5be79f4bdc + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:35 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '9' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/93b5938b-97e4-4238-bbd9-3b8f55c02578 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/93b5938b-97e4-4238-bbd9-3b8f55c02578 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:31Z", + "lastUpdatedDateTime": "2020-09-14T19:25:37Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -2084,14 +2108,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -2225,10 +2255,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -2326,15 +2364,15 @@ interactions: {"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"]}]}]}]}}' headers: - apim-request-id: b986b96e-2856-4039-9bdc-f3c6a9c9e180 + apim-request-id: 4c15fa80-2146-4d49-a992-d9ceb53eb905 + content-length: '28681' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:14 GMT + date: Mon, 14 Sep 2020 19:25:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '40' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/21467694-a04c-4348-9c6f-057df033f2f0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/93b5938b-97e4-4238-bbd9-3b8f55c02578 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml index 829ae13c161e..557c5f10a3fd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_jpg.yaml @@ -8411,293 +8411,297 @@ interactions: UUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFA BRQAUUAFFABRQB//2Q== headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 4b8c70ba-0dd9-4829-a838-e253355c9902 + apim-request-id: b713ef72-bb29-4894-ad82-c22c10bf0612 content-length: '0' - date: Fri, 10 Jul 2020 18:40:18 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4b8c70ba-0dd9-4829-a838-e253355c9902 + date: Mon, 14 Sep 2020 19:25:35 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b713ef72-bb29-4894-ad82-c22c10bf0612 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '175' + x-envoy-upstream-service-time: '134' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4b8c70ba-0dd9-4829-a838-e253355c9902 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b713ef72-bb29-4894-ad82-c22c10bf0612 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:18Z", - "lastUpdatedDateTime": "2020-07-10T18:40:20Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:35Z", + "lastUpdatedDateTime": "2020-09-14T19:25:38Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -8733,7 +8737,7 @@ interactions: 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, + {"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"]}, @@ -8742,20 +8746,20 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: - apim-request-id: 36b0f5ed-a103-4d1b-9eba-8eb5ebc3d758 + apim-request-id: 4d516aa9-2400-42e1-a93b-5e28b99070d4 + content-length: '21135' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:23 GMT + date: Mon, 14 Sep 2020 19:25:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4b8c70ba-0dd9-4829-a838-e253355c9902 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b713ef72-bb29-4894-ad82-c22c10bf0612 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml index f0124c1b14b0..4a56d59271c2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_pdf.yaml @@ -2588,56 +2588,81 @@ interactions: ZWFtDQpo3mJiZNJfwMTAwPcCSDA+AAgwABA7ArANCmVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVm DQoxNDcwNDgNCiUlRU9GDQo= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 01b6fe76-6aa2-4fd0-9e1e-598237951aa0 + apim-request-id: dbe0c117-8f26-4694-bc50-6757cfb83ac7 content-length: '0' - date: Fri, 10 Jul 2020 18:40:15 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/01b6fe76-6aa2-4fd0-9e1e-598237951aa0 + date: Mon, 14 Sep 2020 19:25:42 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/dbe0c117-8f26-4694-bc50-6757cfb83ac7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '97' + x-envoy-upstream-service-time: '65' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/01b6fe76-6aa2-4fd0-9e1e-598237951aa0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/dbe0c117-8f26-4694-bc50-6757cfb83ac7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:16Z", - "lastUpdatedDateTime": "2020-07-10T18:40:19Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:42Z", "lastUpdatedDateTime": + "2020-09-14T19:25:42Z"}' + headers: + apim-request-id: 53a44fba-e28b-48a9-9dc4-de952d125fb2 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:47 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/dbe0c117-8f26-4694-bc50-6757cfb83ac7 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/dbe0c117-8f26-4694-bc50-6757cfb83ac7 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:42Z", + "lastUpdatedDateTime": "2020-09-14T19:25:48Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2698,16 +2723,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2725,15 +2755,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: bc822ea0-327f-4b37-9942-feea75c4832e + apim-request-id: d434528c-bd8e-4902-8e3e-d49d4e23c201 + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:20 GMT + date: Mon, 14 Sep 2020 19:25:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/01b6fe76-6aa2-4fd0-9e1e-598237951aa0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/dbe0c117-8f26-4694-bc50-6757cfb83ac7 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml index 392b054f5a32..a57415283cb2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_jpg.yaml @@ -8411,293 +8411,297 @@ interactions: UUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFA BRQAUUAFFABRQB//2Q== headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 287f5b5b-195f-44bf-a60f-6748603f97ed + apim-request-id: 1080ced7-996a-42e0-af0c-34577d088cd9 content-length: '0' - date: Fri, 10 Jul 2020 18:40:24 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/287f5b5b-195f-44bf-a60f-6748603f97ed + date: Mon, 14 Sep 2020 19:25:42 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/1080ced7-996a-42e0-af0c-34577d088cd9 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '173' + x-envoy-upstream-service-time: '145' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/287f5b5b-195f-44bf-a60f-6748603f97ed + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/1080ced7-996a-42e0-af0c-34577d088cd9 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:24Z", - "lastUpdatedDateTime": "2020-07-10T18:40:26Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:42Z", + "lastUpdatedDateTime": "2020-09-14T19:25:45Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -8733,7 +8737,7 @@ interactions: 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, + {"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"]}, @@ -8742,20 +8746,20 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: - apim-request-id: 2659632a-424a-4c6a-9455-1abf8f12ec1c + apim-request-id: 92e0a913-313e-46e4-ab5e-ee578d296c96 + content-length: '21135' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:29 GMT + date: Mon, 14 Sep 2020 19:25:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '42' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/287f5b5b-195f-44bf-a60f-6748603f97ed + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/1080ced7-996a-42e0-af0c-34577d088cd9 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml index f6a57f649eb7..34e05903a38c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_content_stream_transform_pdf.yaml @@ -2588,56 +2588,81 @@ interactions: ZWFtDQpo3mJiZNJfwMTAwPcCSDA+AAgwABA7ArANCmVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVm DQoxNDcwNDgNCiUlRU9GDQo= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 + apim-request-id: d27869af-f4b7-4c22-b14d-0d6f724a3113 content-length: '0' - date: Fri, 10 Jul 2020 18:40:44 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 + date: Mon, 14 Sep 2020 19:25:37 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d27869af-f4b7-4c22-b14d-0d6f724a3113 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '74' + x-envoy-upstream-service-time: '174' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d27869af-f4b7-4c22-b14d-0d6f724a3113 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:44Z", - "lastUpdatedDateTime": "2020-07-10T18:40:48Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:38Z", "lastUpdatedDateTime": + "2020-09-14T19:25:38Z"}' + headers: + apim-request-id: 8ce8915e-bfd0-4784-8d83-5736bf67e780 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:43 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d27869af-f4b7-4c22-b14d-0d6f724a3113 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d27869af-f4b7-4c22-b14d-0d6f724a3113 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:38Z", + "lastUpdatedDateTime": "2020-09-14T19:25:44Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2698,16 +2723,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2725,15 +2755,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: e385fc78-5a21-476f-a4a0-71e9dd79cc22 + apim-request-id: f5a037be-5d17-4d52-a566-cfc7ac3c6bf9 + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:49 GMT + date: Mon, 14 Sep 2020 19:25:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '79' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/2b7f9c1a-ba0b-4ab4-b0f9-82ff281337d8 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d27869af-f4b7-4c22-b14d-0d6f724a3113 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml index a04034893a51..686341f1f4a1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes.yaml @@ -2,26 +2,28 @@ interactions: - request: body: '%PDFUUU' headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "InvalidImage", "message": "The input data is not a valid image or password protected."}}' headers: - apim-request-id: 8de375a7-9a05-40ab-aad9-e14a8377adae + apim-request-id: 1939b3ae-599b-4ed8-92c5-c862ea763b2d + content-length: '104' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:50 GMT + date: Mon, 14 Sep 2020 19:25:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2' + x-envoy-upstream-service-time: '3' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml index c905ee5ca592..c5061cce7da1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_damaged_file_passed_as_bytes_io.yaml @@ -7,26 +7,28 @@ interactions: - 0 - null headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "BadArgument", "message": "Bad or unrecognizable request JSON or binary file."}}' headers: - apim-request-id: 48a784bc-6bf1-4f1c-bc0d-aa3770160cfc + apim-request-id: 9858b91c-58a8-4b63-a7b2-6a7ae9076d7a + content-length: '95' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:40:21 GMT + date: Mon, 14 Sep 2020 19:25:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '7' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml index 67abd006e4ed..520717f62669 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_async.test_passing_enum_content_type.yaml @@ -2588,77 +2588,81 @@ interactions: ZWFtDQpo3mJiZNJfwMTAwPcCSDA+AAgwABA7ArANCmVuZHN0cmVhbQ1lbmRvYmoNc3RhcnR4cmVm DQoxNDcwNDgNCiUlRU9GDQo= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 9c1f0c57-ecfe-465d-aa83-106c9e983c93 + apim-request-id: 9f7c3cdc-1a89-4f84-b525-ca245d1545fb content-length: '0' - date: Fri, 10 Jul 2020 18:40:50 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 + date: Mon, 14 Sep 2020 19:25:48 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/9f7c3cdc-1a89-4f84-b525-ca245d1545fb strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '96' + x-envoy-upstream-service-time: '63' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/9f7c3cdc-1a89-4f84-b525-ca245d1545fb response: body: - string: '{"error": {"code": "Timeout", "message": "The operation was timeout."}}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:25:48Z", "lastUpdatedDateTime": + "2020-09-14T19:25:48Z"}' headers: - apim-request-id: 649d9e86-d445-49d2-b3ee-8aaf35b4811d - content-length: '75' - content-type: application/json - date: Fri, 10 Jul 2020 18:42:55 GMT + apim-request-id: 9c92bf0f-3e82-4b0d-8b92-d996c5402817 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:25:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' status: - code: 408 - message: Timeout - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/9f7c3cdc-1a89-4f84-b525-ca245d1545fb - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/9f7c3cdc-1a89-4f84-b525-ca245d1545fb response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:51Z", - "lastUpdatedDateTime": "2020-07-10T18:40:55Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:25:48Z", + "lastUpdatedDateTime": "2020-09-14T19:25:54Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -2719,16 +2723,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -2746,15 +2755,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: ded47c39-50ca-48c1-b30f-5898ca1c1cc6 + apim-request-id: 749e1cc6-3528-42dd-8565-a39dff54a16c + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:42:55 GMT + date: Mon, 14 Sep 2020 19:25:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c1f0c57-ecfe-465d-aa83-106c9e983c93 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/9f7c3cdc-1a89-4f84-b525-ca245d1545fb version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml index 45ecf6c765cc..c1654c56f37d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_bad_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://badurl.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,28 +13,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 92c30354-3870-430b-86f2-26a705b6ebcc + - 8c3c3837-8a0a-4e87-b796-2355e1c1aa9f + content-length: + - '95' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:22 GMT + - Mon, 14 Sep 2020 19:28:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '63' + - '145' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml index fb3a893a2a37..3bfe3fc412c3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_encoded_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://fakeuri.com/blank%20space"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,28 +13,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - f91ae0da-a666-4762-973b-1bf42642edd2 + - f854277e-9eac-4fb3-9808-58e1d597f616 + content-length: + - '95' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:57 GMT + - Mon, 14 Sep 2020 19:28:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '361' + - '340' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml index 920e99c573c9..0e8ec63ff852 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_pdf.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipagelayout.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 7dfe6df0-44d4-41e8-98ce-33f7c16de1e6 + - e7a629d6-118d-4c0e-866a-32202cddbf61 content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:42 GMT + - Mon, 14 Sep 2020 19:28:31 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7dfe6df0-44d4-41e8-98ce-33f7c16de1e6 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/e7a629d6-118d-4c0e-866a-32202cddbf61 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20216' + - '355' status: code: 202 message: Accepted @@ -47,21 +47,56 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/e7a629d6-118d-4c0e-866a-32202cddbf61 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:31Z", "lastUpdatedDateTime": + "2020-09-14T19:28:32Z"}' + headers: + apim-request-id: + - d4c50bde-ceb1-434f-85ed-240989124c71 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:28:36 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '11' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7dfe6df0-44d4-41e8-98ce-33f7c16de1e6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/e7a629d6-118d-4c0e-866a-32202cddbf61 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:42Z", - "lastUpdatedDateTime": "2020-07-10T18:40:47Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:31Z", + "lastUpdatedDateTime": "2020-09-14T19:28:38Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -539,32 +574,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -820,14 +854,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -1318,15 +1353,15 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - 8537e37a-8a4c-4711-80b8-fc5b4bc2d2dd + - 868d1611-725c-42e5-b586-64e912d5dae4 + content-length: + - '92389' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:48 GMT + - Mon, 14 Sep 2020 19:28:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml index c064c933c1e2..73dc58df9ed7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_table_span_transform.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipagelayout.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 7313aef4-3e48-4d30-8ed6-edd9abfc00d9 + - a1745497-e8ec-4557-90fe-0c67d3d89361 content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:37 GMT + - Mon, 14 Sep 2020 19:28:31 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7313aef4-3e48-4d30-8ed6-edd9abfc00d9 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/a1745497-e8ec-4557-90fe-0c67d3d89361 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '452' + - '290' status: code: 202 message: Accepted @@ -47,28 +47,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7313aef4-3e48-4d30-8ed6-edd9abfc00d9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/a1745497-e8ec-4557-90fe-0c67d3d89361 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:40:37Z", "lastUpdatedDateTime": - "2020-07-10T18:40:41Z"}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:32Z", "lastUpdatedDateTime": + "2020-09-14T19:28:32Z"}' headers: apim-request-id: - - d515b926-63de-4cd3-bdc5-6d36146fe387 + - 1e8fa092-6a8d-42c5-b9a4-4103edde7799 + content-length: + - '106' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:41 GMT + - Mon, 14 Sep 2020 19:28:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '10' status: code: 200 message: OK @@ -82,21 +82,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7313aef4-3e48-4d30-8ed6-edd9abfc00d9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/a1745497-e8ec-4557-90fe-0c67d3d89361 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:37Z", - "lastUpdatedDateTime": "2020-07-10T18:40:42Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:32Z", + "lastUpdatedDateTime": "2020-09-14T19:28:39Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -574,32 +574,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -855,14 +854,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -1353,19 +1353,19 @@ interactions: 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: apim-request-id: - - afbcd8b1-8657-4414-9750-9a8b45eb0329 + - c5403257-2f0e-481c-b914-17d11f767e8f + content-length: + - '92389' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:46 GMT + - Mon, 14 Sep 2020 19:28:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '50' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml index 946c60b6bb13..829ac1894167 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_transform_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - ae33bbfd-6665-4142-aeb7-462b1111b741 + - 00ee5891-57a7-41ee-b56d-b59e9abb6324 content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:57 GMT + - Mon, 14 Sep 2020 19:28:24 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ae33bbfd-6665-4142-aeb7-462b1111b741 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/00ee5891-57a7-41ee-b56d-b59e9abb6324 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '228' + - '609' status: code: 202 message: Accepted @@ -47,70 +47,104 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ae33bbfd-6665-4142-aeb7-462b1111b741 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/00ee5891-57a7-41ee-b56d-b59e9abb6324 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:57Z", - "lastUpdatedDateTime": "2020-07-10T18:43:01Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:24Z", "lastUpdatedDateTime": + "2020-09-14T19:28:29Z"}' + headers: + apim-request-id: + - 1431c93d-9bfa-457f-b23c-d53c64e0e468 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:28:29 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/00ee5891-57a7-41ee-b56d-b59e9abb6324 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:24Z", + "lastUpdatedDateTime": "2020-09-14T19:28:31Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -192,14 +226,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -333,10 +373,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -435,19 +483,19 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - 6d6f7d98-f59d-4b5b-8809-28b2e78c84af + - 4875469a-c0db-47ba-8267-7a9202f813ff + content-length: + - '28681' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:02 GMT + - Mon, 14 Sep 2020 19:28:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '145' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml index 8ed8dadce356..08ec75436e7d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_multipage_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 4de9b47e-0cdf-4f92-ad2b-53a851af9b08 + - 08ab959d-64e8-470e-91b2-33171fde4549 content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:48 GMT + - Mon, 14 Sep 2020 19:28:35 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4de9b47e-0cdf-4f92-ad2b-53a851af9b08 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/08ab959d-64e8-470e-91b2-33171fde4549 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '239' + - '207' status: code: 202 message: Accepted @@ -47,70 +47,104 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/4de9b47e-0cdf-4f92-ad2b-53a851af9b08 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/08ab959d-64e8-470e-91b2-33171fde4549 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:49Z", - "lastUpdatedDateTime": "2020-07-10T18:40:52Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:36Z", "lastUpdatedDateTime": + "2020-09-14T19:28:40Z"}' + headers: + apim-request-id: + - 45d6cdc3-86c1-4b7e-9f26-8398f319ebfc + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:28:40 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '20' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/08ab959d-64e8-470e-91b2-33171fde4549 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:36Z", + "lastUpdatedDateTime": "2020-09-14T19:28:42Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -192,14 +226,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -333,10 +373,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -435,19 +483,19 @@ interactions: 4.4181, 7.4997, 4.4181, 7.4997, 4.6281, 5.3353, 4.6281], "elements": ["#/readResults/2/lines/33/words/0"]}]}]}]}}' headers: apim-request-id: - - 18d625ed-0602-4030-b4f8-34bc9822ca54 + - e5a79d4f-1e5c-4753-b6dc-4c81d389f01e + content-length: + - '28681' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:54 GMT + - Mon, 14 Sep 2020 19:28:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '58' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml index e2b514c97041..edbef12025b2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,30 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - d28932fb-6aed-40d5-baba-370716eef7fa content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:40:48 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 19:28:42 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml index c2e4b1d126b5..bd601ae9db0e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_auth_successful_key.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 74db64b6-4abc-4994-ae9d-059ae6265b75 + - c6a56ed8-4d3d-4f10-a49a-e5c4a445dd17 content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:02 GMT + - Mon, 14 Sep 2020 19:28:42 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/74db64b6-4abc-4994-ae9d-059ae6265b75 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c6a56ed8-4d3d-4f10-a49a-e5c4a445dd17 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '162' + - '177' status: code: 202 message: Accepted @@ -47,31 +47,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c6a56ed8-4d3d-4f10-a49a-e5c4a445dd17 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:43Z", "lastUpdatedDateTime": + "2020-09-14T19:28:43Z"}' + headers: + apim-request-id: + - 336159f4-6076-458c-839c-131603d4b46a + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:28:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '76' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/74db64b6-4abc-4994-ae9d-059ae6265b75 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/c6a56ed8-4d3d-4f10-a49a-e5c4a445dd17 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:03Z", - "lastUpdatedDateTime": "2020-07-10T18:43:08Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:43Z", + "lastUpdatedDateTime": "2020-09-14T19:28:49Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -132,16 +167,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -160,15 +200,15 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 0735e0ee-f478-4dc7-9be4-8e5c3a491f21 + - 0f116cce-026c-4e91-9c29-2976b039b22c + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:08 GMT + - Mon, 14 Sep 2020 19:28:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml index 9c5a4709176c..4b8fd053c2ab 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_jpg.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - c1f93f54-b08a-4996-bfe0-1b7ae0a3d225 + - 800a0dca-0fb5-47b2-b85f-f0ab325664cb content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:48 GMT + - Mon, 14 Sep 2020 19:28:43 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/c1f93f54-b08a-4996-bfe0-1b7ae0a3d225 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/800a0dca-0fb5-47b2-b85f-f0ab325664cb strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '199' + - '287' status: code: 202 message: Accepted @@ -47,268 +47,270 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/c1f93f54-b08a-4996-bfe0-1b7ae0a3d225 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/800a0dca-0fb5-47b2-b85f-f0ab325664cb response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:48Z", - "lastUpdatedDateTime": "2020-07-10T18:40:51Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:43Z", + "lastUpdatedDateTime": "2020-09-14T19:28:46Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -344,7 +346,7 @@ interactions: 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, + {"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"]}, @@ -353,21 +355,21 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: apim-request-id: - - 3db591ab-47c2-4561-9bfa-1746227e1d41 + - 8d620db5-7a71-4249-bf6e-d73acf886202 + content-length: + - '21135' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:40:53 GMT + - Mon, 14 Sep 2020 19:28:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml index 37bcd9399deb..b056bca149b4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pass_stream.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "<_io.BufferedReader name=\''C:\\\\\\\\Users\\\\\\\\krpratic\\\\\\\\azure-sdk-for-python\\\\\\\\sdk\\\\\\\\formrecognizer\\\\\\\\azure-ai-formrecognizer\\\\\\\\tests\\\\\\\\sample_forms\\\\\\\\receipt\\\\\\\\contoso-allinone.jpg\''>"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,28 +13,28 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 9e0d6954-2961-4226-b2ee-42132b4fced1 + - 23ade35e-25c5-47bd-af4e-0a0bf74dd6d4 + content-length: + - '95' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:09 GMT + - Mon, 14 Sep 2020 19:28:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2' + - '6' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml index f4f0bb0a8b46..a33cdb12e9d7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_pdf.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - 466cf620-4b8c-460e-a082-52727711823e + - cef7cd5d-44fc-43bd-ad15-8c6163e67c15 content-length: - '0' date: - - Fri, 10 Jul 2020 18:40:55 GMT + - Mon, 14 Sep 2020 19:28:48 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/466cf620-4b8c-460e-a082-52727711823e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/cef7cd5d-44fc-43bd-ad15-8c6163e67c15 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '182' + - '165' status: code: 202 message: Accepted @@ -47,31 +47,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/cef7cd5d-44fc-43bd-ad15-8c6163e67c15 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:49Z", "lastUpdatedDateTime": + "2020-09-14T19:28:49Z"}' + headers: + apim-request-id: + - 4854c8ca-466e-47e5-946b-2f4487ad50d6 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:28:54 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '11' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/466cf620-4b8c-460e-a082-52727711823e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/cef7cd5d-44fc-43bd-ad15-8c6163e67c15 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:40:55Z", - "lastUpdatedDateTime": "2020-07-10T18:40:58Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:49Z", + "lastUpdatedDateTime": "2020-09-14T19:28:55Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -132,16 +167,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -160,19 +200,19 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - a51855b1-06fe-4e95-8d38-8b073468fef0 + - 8e4de82e-6d58-4407-8331-95e83c07e9c2 + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:41:00 GMT + - Mon, 14 Sep 2020 19:28:59 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '20' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml index 1075a03f5575..df29768d181d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_jpg.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - fb9db2d4-b06a-4db8-be2b-24d5a1e05a7b + - 55a2adf3-903b-4314-93dc-ddc0e05d44b1 content-length: - '0' date: - - Fri, 10 Jul 2020 18:41:14 GMT + - Mon, 14 Sep 2020 19:28:46 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/fb9db2d4-b06a-4db8-be2b-24d5a1e05a7b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/55a2adf3-903b-4314-93dc-ddc0e05d44b1 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20194' + - '125' status: code: 202 message: Accepted @@ -47,268 +47,270 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/fb9db2d4-b06a-4db8-be2b-24d5a1e05a7b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/55a2adf3-903b-4314-93dc-ddc0e05d44b1 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:14Z", - "lastUpdatedDateTime": "2020-07-10T18:41:17Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:47Z", + "lastUpdatedDateTime": "2020-09-14T19:28:51Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -344,7 +346,7 @@ interactions: 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, + {"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"]}, @@ -353,25 +355,25 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: apim-request-id: - - 8c92a89e-86c3-4f59-98a0-a596e88d1927 + - 295a2fac-52c1-434e-b220-38629c60ec82 + content-length: + - '21135' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:41:19 GMT + - Mon, 14 Sep 2020 19:28:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '29' + - '26' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml index 82e3c1837f5c..4812971842f6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url.test_content_url_transform_pdf.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: apim-request-id: - - bd8b42e3-7a0b-4f66-bd17-cf1c242cfe0e + - 47f66ea8-b843-4fc6-98d8-825ec9b9248b content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:10 GMT + - Mon, 14 Sep 2020 19:28:53 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/bd8b42e3-7a0b-4f66-bd17-cf1c242cfe0e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/47f66ea8-b843-4fc6-98d8-825ec9b9248b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '223' + - '265' status: code: 202 message: Accepted @@ -47,31 +47,66 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/47f66ea8-b843-4fc6-98d8-825ec9b9248b + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:28:53Z", "lastUpdatedDateTime": + "2020-09-14T19:28:53Z"}' + headers: + apim-request-id: + - b69d6bcb-5c3e-4bec-90c8-ab45fcee0b43 + content-length: + - '106' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:28:58 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '11' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/bd8b42e3-7a0b-4f66-bd17-cf1c242cfe0e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/47f66ea8-b843-4fc6-98d8-825ec9b9248b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:09Z", - "lastUpdatedDateTime": "2020-07-10T18:43:13Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:28:53Z", + "lastUpdatedDateTime": "2020-09-14T19:28:58Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -132,16 +167,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -160,19 +200,19 @@ interactions: 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: apim-request-id: - - 52b42f4d-909a-43d7-9b60-a1a8e522f2ab + - 39b79d6e-dcfc-42f7-b05d-d93bff0ec192 + content-length: + - '7988' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:15 GMT + - Mon, 14 Sep 2020 19:29:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '19' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml index b5becdbb1576..adfe8bb17eab 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_bad_url.yaml @@ -2,28 +2,30 @@ interactions: - request: body: 'b''{"source": "https://badurl.jpg"}''' headers: + Accept: + - application/json Content-Length: - '32' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: - apim-request-id: 809b4af5-38a4-45db-b5b1-3d7745b03c76 + apim-request-id: 51a1bebc-e43e-41a6-bd9a-38442f6c25e1 + content-length: '95' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:41:00 GMT + date: Mon, 14 Sep 2020 19:30:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '431' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml index 9ce7ee1efc9c..bdc177b081e1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_encoded_url.yaml @@ -2,28 +2,30 @@ interactions: - request: body: 'b''{"source": "https://fakeuri.com/blank%20space"}''' headers: + Accept: + - application/json Content-Length: - '47' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: - apim-request-id: a15aee2c-b24e-42f7-a6f8-23ae7819a5f4 + apim-request-id: 431e402e-ebd8-415f-b4f3-2aefc0c04c06 + content-length: '95' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:43:15 GMT + date: Mon, 14 Sep 2020 19:30:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '319' + x-envoy-upstream-service-time: '366' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml index d203d2d1be21..28daac5aa4d4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_pdf.yaml @@ -2,48 +2,73 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipagelayout.pdf"}''' headers: + Accept: + - application/json Content-Length: - '169' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 6fd21c32-dbfd-4353-8943-a598529b28a9 + apim-request-id: d646a406-8aa6-46e0-970c-4ddbc3c3e260 content-length: '0' - date: Fri, 10 Jul 2020 18:41:01 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/6fd21c32-dbfd-4353-8943-a598529b28a9 + date: Mon, 14 Sep 2020 19:30:43 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d646a406-8aa6-46e0-970c-4ddbc3c3e260 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '232' + x-envoy-upstream-service-time: '114' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d646a406-8aa6-46e0-970c-4ddbc3c3e260 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:30:44Z", "lastUpdatedDateTime": + "2020-09-14T19:30:44Z"}' + headers: + apim-request-id: 8db831ef-e47d-4fc1-8cc3-9b8f1a4e37c8 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:30:48 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d646a406-8aa6-46e0-970c-4ddbc3c3e260 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/6fd21c32-dbfd-4353-8943-a598529b28a9 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d646a406-8aa6-46e0-970c-4ddbc3c3e260 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:01Z", - "lastUpdatedDateTime": "2020-07-10T18:41:05Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:30:44Z", + "lastUpdatedDateTime": "2020-09-14T19:30:50Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -521,32 +546,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -802,14 +826,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -1299,15 +1324,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 387672ad-06ab-414e-8b89-b3310920da6d + apim-request-id: 86862d7d-63b1-41b0-a902-49e24e3cd5c2 + content-length: '92389' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:41:06 GMT + date: Mon, 14 Sep 2020 19:30:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '44' + x-envoy-upstream-service-time: '47' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/6fd21c32-dbfd-4353-8943-a598529b28a9 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d646a406-8aa6-46e0-970c-4ddbc3c3e260 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml index f7b71efe8fca..d0609a26e2e0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_table_span_transform.yaml @@ -2,48 +2,73 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipagelayout.pdf"}''' headers: + Accept: + - application/json Content-Length: - '169' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 69cba662-c9cb-4472-bf84-d7b1501ec59c + apim-request-id: 02de1e12-c18b-4319-b564-89c6504a612a content-length: '0' - date: Fri, 10 Jul 2020 18:41:31 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/69cba662-c9cb-4472-bf84-d7b1501ec59c + date: Mon, 14 Sep 2020 19:30:49 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/02de1e12-c18b-4319-b564-89c6504a612a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '190' + x-envoy-upstream-service-time: '205' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/02de1e12-c18b-4319-b564-89c6504a612a + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:30:50Z", "lastUpdatedDateTime": + "2020-09-14T19:30:50Z"}' + headers: + apim-request-id: 8fdca6e8-e8f3-4d37-925f-8e846dd1d577 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:30:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/02de1e12-c18b-4319-b564-89c6504a612a - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/69cba662-c9cb-4472-bf84-d7b1501ec59c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/02de1e12-c18b-4319-b564-89c6504a612a response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:31Z", - "lastUpdatedDateTime": "2020-07-10T18:41:35Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, - 3.9147, 1.6855, 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales - Update: Q3 2019", "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, - 1.8461, 1.8775, 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": - [1.9087, 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": - "Sales", "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, - 3.0984, 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:30:50Z", + "lastUpdatedDateTime": "2020-09-14T19:30:56Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [1.0119, 1.6855, 3.9147, 1.6855, + 3.9147, 1.8775, 1.0119, 1.8775], "text": "Quarterly Sales Update: Q3 2019", + "words": [{"boundingBox": [1.0119, 1.6855, 1.8461, 1.6855, 1.8461, 1.8775, + 1.0119, 1.8775], "text": "Quarterly", "confidence": 1}, {"boundingBox": [1.9087, + 1.6855, 2.3384, 1.6855, 2.3384, 1.8399, 1.9087, 1.8399], "text": "Sales", + "confidence": 1}, {"boundingBox": [2.4171, 1.6861, 3.0984, 1.6861, 3.0984, + 1.8775, 2.4171, 1.8775], "text": "Update:", "confidence": 1}, {"boundingBox": [3.1785, 1.6945, 3.4106, 1.6945, 3.4106, 1.8563, 3.1785, 1.8563], "text": "Q3", "confidence": 1}, {"boundingBox": [3.49, 1.6945, 3.9147, 1.6945, 3.9147, 1.8399, 3.49, 1.8399], "text": "2019", "confidence": 1}]}, {"boundingBox": @@ -521,32 +546,31 @@ interactions: {"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "words": [{"boundingBox": [7.4627, 9.8142, 7.7628, 9.8142, 7.7628, 9.8988, 7.4627, 9.8988], "text": "7.00%", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, - 3.3371, 1.1269], "text": "IN", "words": [{"boundingBox": [3.3371, 1.0463, - 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": "IN", "confidence": - 1}]}, {"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, - 1.136], "text": "781", "words": [{"boundingBox": [6.8227, 1.0538, 6.9997, - 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "confidence": 1}]}, - {"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], - "text": "34.20%", "words": [{"boundingBox": [7.3994, 1.0525, 7.7624, 1.0525, - 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "confidence": 1}]}, {"boundingBox": - [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", - "words": [{"boundingBox": [3.3371, 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, - 1.3036], "text": "MI", "confidence": 1}]}, {"boundingBox": [6.7639, 1.2329, - 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "words": - [{"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, - 1.3136], "text": "1114", "confidence": 1}]}, {"boundingBox": [7.4036, 1.2309, - 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "words": - [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, - 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, - 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": "OH", "words": [{"boundingBox": + 2, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": + [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, 3.3371, 1.1269], "text": + "IN", "words": [{"boundingBox": [3.3371, 1.0463, 3.4282, 1.0463, 3.4282, 1.1269, + 3.3371, 1.1269], "text": "IN", "confidence": 1}]}, {"boundingBox": [6.8227, + 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], "text": "781", "words": + [{"boundingBox": [6.8227, 1.0538, 6.9997, 1.0538, 6.9997, 1.136, 6.8227, 1.136], + "text": "781", "confidence": 1}]}, {"boundingBox": [7.3994, 1.0525, 7.7624, + 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": "34.20%", "words": [{"boundingBox": + [7.3994, 1.0525, 7.7624, 1.0525, 7.7624, 1.1371, 7.3994, 1.1371], "text": + "34.20%", "confidence": 1}]}, {"boundingBox": [3.3371, 1.223, 3.4537, 1.223, + 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "words": [{"boundingBox": [3.3371, + 1.223, 3.4537, 1.223, 3.4537, 1.3036, 3.3371, 1.3036], "text": "MI", "confidence": + 1}]}, {"boundingBox": [6.7639, 1.2329, 7.0027, 1.2329, 7.0027, 1.3136, 6.7639, + 1.3136], "text": "1114", "words": [{"boundingBox": [6.7639, 1.2329, 7.0027, + 1.2329, 7.0027, 1.3136, 6.7639, 1.3136], "text": "1114", "confidence": 1}]}, + {"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, 7.7623, 1.3155, 7.4036, 1.3155], + "text": "19.90%", "words": [{"boundingBox": [7.4036, 1.2309, 7.7623, 1.2309, + 7.7623, 1.3155, 7.4036, 1.3155], "text": "19.90%", "confidence": 1}]}, {"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, 3.3327, 1.4827], "text": - "OH", "confidence": 1}]}, {"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, - 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": [{"boundingBox": - [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": - "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, - 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": + "OH", "words": [{"boundingBox": [3.3327, 1.4004, 3.4775, 1.4004, 3.4775, 1.4827, + 3.3327, 1.4827], "text": "OH", "confidence": 1}]}, {"boundingBox": [6.7639, + 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, 1.4927], "text": "1098", "words": + [{"boundingBox": [6.7639, 1.4104, 7.0012, 1.4104, 7.0012, 1.4927, 6.7639, + 1.4927], "text": "1098", "confidence": 1}]}, {"boundingBox": [7.4, 1.4092, + 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "words": [{"boundingBox": [7.4, 1.4092, 7.7623, 1.4092, 7.7623, 1.4938, 7.4, 1.4938], "text": "27.70%", "confidence": 1}]}, {"boundingBox": [3.3304, 1.5797, 3.4599, 1.5797, 3.4599, 1.6602, 3.3304, 1.6602], "text": "WI", "words": [{"boundingBox": [3.3304, @@ -802,14 +826,15 @@ interactions: "confidence": 1}]}, {"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "words": [{"boundingBox": [7.3177, 5.1391, 7.765, 5.1391, 7.765, 5.2424, 7.3177, 5.2424], "text": "17.49%", "confidence": - 1}]}]}], "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, - "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": - [1.0042, 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": - ["#/readResults/0/lines/1/words/0"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Division", "boundingBox": [1.8517, 2.235, 3.2833, 2.235, 3.2833, 2.4117, - 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, {"rowIndex": - 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, 2.235, - 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", + 1}]}], "selectionMarks": [{"boundingBox": [3.3441, 3.3522, 3.4183, 3.3522, + 3.4183, 3.4269, 3.3441, 3.4269], "confidence": 0.553, "state": "selected"}]}], + "pageResults": [{"page": 1, "tables": [{"rows": 30, "columns": 5, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Region", "boundingBox": [1.0042, + 2.235, 1.8517, 2.235, 1.8517, 2.4117, 1.0042, 2.4117], "elements": ["#/readResults/0/lines/1/words/0"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Division", "boundingBox": [1.8517, + 2.235, 3.2833, 2.235, 3.2833, 2.4117, 1.8517, 2.4117], "elements": ["#/readResults/0/lines/2/words/0"]}, + {"rowIndex": 0, "columnIndex": 2, "text": "Sales Team", "boundingBox": [3.2833, + 2.235, 5.2292, 2.235, 5.2292, 2.4117, 3.2833, 2.4117], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Units Shipped (Thousands)", "boundingBox": [5.2292, 2.235, 7.1667, 2.235, 7.1667, 2.4117, 5.2292, 2.4117], "elements": ["#/readResults/0/lines/4/words/0", @@ -1299,15 +1324,15 @@ interactions: {"rowIndex": 23, "columnIndex": 4, "text": "17.49%", "boundingBox": [7.0817, 5.0925, 7.8425, 5.0925, 7.8425, 5.285, 7.0817, 5.285], "elements": ["#/readResults/1/lines/79/words/0"]}]}]}]}}' headers: - apim-request-id: 36279a90-2072-4cf7-aa97-73512e0074e8 + apim-request-id: e0255d09-87a2-400b-bf4b-7fb80a2b8d86 + content-length: '92389' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:41:36 GMT + date: Mon, 14 Sep 2020 19:31:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '41' + x-envoy-upstream-service-time: '39' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/69cba662-c9cb-4472-bf84-d7b1501ec59c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/02de1e12-c18b-4319-b564-89c6504a612a version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml index bb356cc94480..1aeafbbd3d62 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_transform_url.yaml @@ -2,97 +2,121 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 7982c45e-fb6e-465b-acad-f266d2211e75 + apim-request-id: 759e7eac-4d30-4d6f-a0aa-ec61f7911dcc content-length: '0' - date: Fri, 10 Jul 2020 18:43:16 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7982c45e-fb6e-465b-acad-f266d2211e75 + date: Mon, 14 Sep 2020 19:30:36 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/759e7eac-4d30-4d6f-a0aa-ec61f7911dcc strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '164' + x-envoy-upstream-service-time: '251' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7982c45e-fb6e-465b-acad-f266d2211e75 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/759e7eac-4d30-4d6f-a0aa-ec61f7911dcc response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:16Z", - "lastUpdatedDateTime": "2020-07-10T18:43:20Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:30:36Z", "lastUpdatedDateTime": + "2020-09-14T19:30:41Z"}' + headers: + apim-request-id: aac0ff3e-1b7e-487c-b056-7d5902ab98fc + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:30:41 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/759e7eac-4d30-4d6f-a0aa-ec61f7911dcc +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/759e7eac-4d30-4d6f-a0aa-ec61f7911dcc + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:30:36Z", + "lastUpdatedDateTime": "2020-09-14T19:30:42Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -174,14 +198,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -315,10 +345,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -416,15 +454,15 @@ interactions: {"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"]}]}]}]}}' headers: - apim-request-id: f8dc3a09-3e61-4eae-85a3-026dc52288d8 + apim-request-id: 8f08c4cf-c8db-4f94-befc-4738e1932f52 + content-length: '28681' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:43:21 GMT + date: Mon, 14 Sep 2020 19:30:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '42' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/7982c45e-fb6e-465b-acad-f266d2211e75 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/759e7eac-4d30-4d6f-a0aa-ec61f7911dcc version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml index fa7db38f7fde..33de4edf8733 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_multipage_url.yaml @@ -2,97 +2,121 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 38de86a0-39d4-4708-bb4d-231335a38673 + apim-request-id: b9c24a64-0e29-4897-b133-25085beec28a content-length: '0' - date: Fri, 10 Jul 2020 18:41:06 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/38de86a0-39d4-4708-bb4d-231335a38673 + date: Mon, 14 Sep 2020 19:30:46 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b9c24a64-0e29-4897-b133-25085beec28a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' + x-envoy-upstream-service-time: '226' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/38de86a0-39d4-4708-bb4d-231335a38673 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b9c24a64-0e29-4897-b133-25085beec28a response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:07Z", - "lastUpdatedDateTime": "2020-07-10T18:41:12Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "running", "createdDateTime": "2020-09-14T19:30:47Z", "lastUpdatedDateTime": + "2020-09-14T19:30:52Z"}' + headers: + apim-request-id: a1479814-5c4b-46be-b3b9-ad9abcafc6d1 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:30:52 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b9c24a64-0e29-4897-b133-25085beec28a +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b9c24a64-0e29-4897-b133-25085beec28a + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:30:47Z", + "lastUpdatedDateTime": "2020-09-14T19:30:53Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -174,14 +198,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -315,10 +345,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -416,15 +454,15 @@ interactions: {"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"]}]}]}]}}' headers: - apim-request-id: 90004cdd-df14-4247-b1cc-ca6d350e5353 + apim-request-id: 7861b0d5-7b34-442d-8e70-c62f9e31d5ad + content-length: '28681' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:41:11 GMT + date: Mon, 14 Sep 2020 19:30:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '44' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/38de86a0-39d4-4708-bb4d-231335a38673 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/b9c24a64-0e29-4897-b133-25085beec28a version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml index 4327b95ebb11..65cf40f1b7e2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_bad_key.yaml @@ -2,29 +2,26 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '163' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 3b4159b8-650e-472f-9dc1-fa7f71bc3055 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:41:36 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 19:30:54 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml index 367d2dc022c8..b05882ba766c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_auth_successful_key.yaml @@ -2,58 +2,83 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '163' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: e4fa2d84-d48a-4610-90cc-fb4035ef3010 + apim-request-id: bc11a1d1-8b60-46e2-941b-af43c2172acd content-length: '0' - date: Fri, 10 Jul 2020 18:43:22 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/e4fa2d84-d48a-4610-90cc-fb4035ef3010 + date: Mon, 14 Sep 2020 19:30:57 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bc11a1d1-8b60-46e2-941b-af43c2172acd strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '177' + x-envoy-upstream-service-time: '59' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bc11a1d1-8b60-46e2-941b-af43c2172acd + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:30:58Z", "lastUpdatedDateTime": + "2020-09-14T19:30:58Z"}' + headers: + apim-request-id: d93eab22-0cee-4548-b240-80cc84209938 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:31:03 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '12' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bc11a1d1-8b60-46e2-941b-af43c2172acd - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/e4fa2d84-d48a-4610-90cc-fb4035ef3010 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bc11a1d1-8b60-46e2-941b-af43c2172acd response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:22Z", - "lastUpdatedDateTime": "2020-07-10T18:43:26Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:30:58Z", + "lastUpdatedDateTime": "2020-09-14T19:31:03Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -114,16 +139,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -141,15 +171,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: e9c3607a-1f8b-4f3d-b481-336c536c3e3a + apim-request-id: 9b29f48f-52aa-443c-a0e0-1f109e335fd0 + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:43:27 GMT + date: Mon, 14 Sep 2020 19:31:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '70' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/e4fa2d84-d48a-4610-90cc-fb4035ef3010 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bc11a1d1-8b60-46e2-941b-af43c2172acd version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml index 1b8eabb8debe..d4abfef25c46 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_jpg.yaml @@ -2,295 +2,299 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json Content-Length: - '160' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 1de97754-8ad7-449c-9694-b46cde2c967b + apim-request-id: bf768216-cc0f-4b7a-ad74-bd1930a17083 content-length: '0' - date: Fri, 10 Jul 2020 18:41:57 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/1de97754-8ad7-449c-9694-b46cde2c967b + date: Mon, 14 Sep 2020 19:30:55 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bf768216-cc0f-4b7a-ad74-bd1930a17083 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20164' + x-envoy-upstream-service-time: '164' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/1de97754-8ad7-449c-9694-b46cde2c967b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bf768216-cc0f-4b7a-ad74-bd1930a17083 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:58Z", - "lastUpdatedDateTime": "2020-07-10T18:42:00Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:30:55Z", + "lastUpdatedDateTime": "2020-09-14T19:30:58Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -326,7 +330,7 @@ interactions: 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, + {"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"]}, @@ -335,20 +339,20 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: - apim-request-id: 5f21b1d6-0039-4cad-90cb-88a743f3626d + apim-request-id: 0e14a8c6-2aab-4067-85c9-68a0bf078b02 + content-length: '21135' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:42:02 GMT + date: Mon, 14 Sep 2020 19:31:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '28' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/1de97754-8ad7-449c-9694-b46cde2c967b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/bf768216-cc0f-4b7a-ad74-bd1930a17083 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml index 45cf2cf5e31b..d93a9dfc4724 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pass_stream.yaml @@ -2,28 +2,30 @@ interactions: - request: body: 'b''{"source": "b\''\\\\xff\\\\xd8\\\\xff\\\\xe0\''"}''' headers: + Accept: + - application/json Content-Length: - '37' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '{"error": {"code": "FailedToDownloadImage", "message": "Failed to download image from input URL."}}' headers: - apim-request-id: c755559e-24c4-4a35-9501-be6494c4a920 + apim-request-id: 98b9b9cc-7c9d-4ee0-915e-6d89b02483d8 + content-length: '95' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:43:27 GMT + date: Mon, 14 Sep 2020 19:31:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '15' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml index 661d41a150fc..afe1b0f5a05b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_pdf.yaml @@ -2,58 +2,83 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '163' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: 9c0c23ff-ffbe-46fe-abf3-29b7abc396cd + apim-request-id: d9fa42ad-514b-4b2a-befd-f72301a32d2b content-length: '0' - date: Fri, 10 Jul 2020 18:41:13 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c0c23ff-ffbe-46fe-abf3-29b7abc396cd + date: Mon, 14 Sep 2020 19:31:09 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d9fa42ad-514b-4b2a-befd-f72301a32d2b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '79' + x-envoy-upstream-service-time: '184' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d9fa42ad-514b-4b2a-befd-f72301a32d2b + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:31:09Z", "lastUpdatedDateTime": + "2020-09-14T19:31:09Z"}' + headers: + apim-request-id: 7ffe28c8-a1d2-46cb-a5cf-26d217fae2f3 + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:31:14 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d9fa42ad-514b-4b2a-befd-f72301a32d2b - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c0c23ff-ffbe-46fe-abf3-29b7abc396cd + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d9fa42ad-514b-4b2a-befd-f72301a32d2b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:41:13Z", - "lastUpdatedDateTime": "2020-07-10T18:41:17Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:31:09Z", + "lastUpdatedDateTime": "2020-09-14T19:31:14Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -114,16 +139,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -141,15 +171,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 89bc4a1b-aa74-4647-b457-feea51063f28 + apim-request-id: 9fc552ab-608e-427e-8c8e-5a78d5b49746 + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:41:18 GMT + date: Mon, 14 Sep 2020 19:31:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/9c0c23ff-ffbe-46fe-abf3-29b7abc396cd + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/d9fa42ad-514b-4b2a-befd-f72301a32d2b version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml index 0bc8cb0624e9..e169e5bd6812 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_jpg.yaml @@ -2,295 +2,299 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json Content-Length: - '160' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: cab0412e-b2ae-40dd-b056-cd0e92ecdfbd + apim-request-id: e3007326-16ce-46dd-9bef-dd9f079a034b content-length: '0' - date: Fri, 10 Jul 2020 18:42:04 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cab0412e-b2ae-40dd-b056-cd0e92ecdfbd + date: Mon, 14 Sep 2020 19:31:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/e3007326-16ce-46dd-9bef-dd9f079a034b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '334' + x-envoy-upstream-service-time: '277' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cab0412e-b2ae-40dd-b056-cd0e92ecdfbd + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/e3007326-16ce-46dd-9bef-dd9f079a034b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:03Z", - "lastUpdatedDateTime": "2020-07-10T18:42:06Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:31:01Z", + "lastUpdatedDateTime": "2020-09-14T19:31:04Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -326,7 +330,7 @@ interactions: 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, + {"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"]}, @@ -335,20 +339,20 @@ interactions: "#/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, + {"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"]}]}]}]}}' headers: - apim-request-id: b78ddca6-80ed-46e9-a34a-de90c3396e4d + apim-request-id: e870b06b-31f5-4dcd-a8f6-6dfbc11d37f4 + content-length: '21135' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:42:08 GMT + date: Mon, 14 Sep 2020 19:31:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/cab0412e-b2ae-40dd-b056-cd0e92ecdfbd + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/e3007326-16ce-46dd-9bef-dd9f079a034b version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml index 1a3f8400c5d3..69309bd7c24b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_content_from_url_async.test_content_url_transform_pdf.yaml @@ -2,58 +2,83 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Invoice_1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '163' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyze + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyze response: body: string: '' headers: - apim-request-id: ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b + apim-request-id: 468e4abd-7516-4693-9d65-3832bdf2a126 content-length: '0' - date: Fri, 10 Jul 2020 18:43:27 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b + date: Mon, 14 Sep 2020 19:31:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/468e4abd-7516-4693-9d65-3832bdf2a126 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '171' + x-envoy-upstream-service-time: '155' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/layout/analyze + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/layout/analyze +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/468e4abd-7516-4693-9d65-3832bdf2a126 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:31:01Z", "lastUpdatedDateTime": + "2020-09-14T19:31:01Z"}' + headers: + apim-request-id: ae8d2934-575d-4b34-9b01-6ae311a87eea + content-length: '106' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:31:06 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/468e4abd-7516-4693-9d65-3832bdf2a126 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/468e4abd-7516-4693-9d65-3832bdf2a126 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:28Z", - "lastUpdatedDateTime": "2020-07-10T18:43:32Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, - 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": - [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, - 1.3534], "text": "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, - 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": - [{"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, - 1.6154], "text": "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, - 1.5114, 5.8155, 1.5114, 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice - For: Microsoft", "words": [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, - 4.8234, 1.6155, 4.4033, 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": - [4.8793, 1.5143, 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": - "For:", "confidence": 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, - 5.8155, 1.6151, 5.2045, 1.6151], "text": "Microsoft", "confidence": 1}]}, - {"boundingBox": [0.8106, 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], - "text": "1 Redmond way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, - 1.708, 0.8463, 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": - [0.923, 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:31:01Z", + "lastUpdatedDateTime": "2020-09-14T19:31:06Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [0.5384, 1.1583, 1.4466, 1.1583, + 1.4466, 1.3534, 0.5384, 1.3534], "text": "Contoso", "words": [{"boundingBox": + [0.5384, 1.1583, 1.4466, 1.1583, 1.4466, 1.3534, 0.5384, 1.3534], "text": + "Contoso", "confidence": 1}]}, {"boundingBox": [0.7994, 1.5143, 1.3836, 1.5143, + 1.3836, 1.6154, 0.7994, 1.6154], "text": "Address:", "words": [{"boundingBox": + [0.7994, 1.5143, 1.3836, 1.5143, 1.3836, 1.6154, 0.7994, 1.6154], "text": + "Address:", "confidence": 1}]}, {"boundingBox": [4.4033, 1.5114, 5.8155, 1.5114, + 5.8155, 1.6155, 4.4033, 1.6155], "text": "Invoice For: Microsoft", "words": + [{"boundingBox": [4.4033, 1.5143, 4.8234, 1.5143, 4.8234, 1.6155, 4.4033, + 1.6155], "text": "Invoice", "confidence": 1}, {"boundingBox": [4.8793, 1.5143, + 5.1013, 1.5143, 5.1013, 1.6154, 4.8793, 1.6154], "text": "For:", "confidence": + 1}, {"boundingBox": [5.2045, 1.5114, 5.8155, 1.5114, 5.8155, 1.6151, 5.2045, + 1.6151], "text": "Microsoft", "confidence": 1}]}, {"boundingBox": [0.8106, + 1.7033, 2.1445, 1.7033, 2.1445, 1.8342, 0.8106, 1.8342], "text": "1 Redmond + way Suite", "words": [{"boundingBox": [0.8106, 1.708, 0.8463, 1.708, 0.8463, + 1.8053, 0.8106, 1.8053], "text": "1", "confidence": 1}, {"boundingBox": [0.923, + 1.7047, 1.5018, 1.7047, 1.5018, 1.8068, 0.923, 1.8068], "text": "Redmond", "confidence": 1}, {"boundingBox": [1.5506, 1.7309, 1.7949, 1.7309, 1.7949, 1.8342, 1.5506, 1.8342], "text": "way", "confidence": 1}, {"boundingBox": [1.8415, 1.7033, 2.1445, 1.7033, 2.1445, 1.8078, 1.8415, 1.8078], "text": @@ -114,16 +139,21 @@ interactions: 3.5321, 5.3871, 3.5321], "text": "$56,651.49", "confidence": 1}]}, {"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, 6.2285, 3.5119], "text": "PT", "words": [{"boundingBox": [6.2285, 3.4114, 6.3919, 3.4114, 6.3919, 3.5119, - 6.2285, 3.5119], "text": "PT", "confidence": 1}]}]}], "pageResults": [{"page": - 1, "tables": [{"rows": 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Invoice Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, - 1.9061, 3.3219, 0.5075, 3.3219], "elements": ["#/readResults/0/lines/8/words/0", - "#/readResults/0/lines/8/words/1"]}, {"rowIndex": 0, "columnIndex": 1, "text": - "Invoice Date", "boundingBox": [1.9061, 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, - 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1"]}, - {"rowIndex": 0, "columnIndex": 2, "text": "Invoice Due Date", "boundingBox": - [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, 3.3219, 3.3074, 3.3219], "elements": - ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, + 6.2285, 3.5119], "text": "PT", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0, 9.8562, 1.1255, 9.8562, 1.1255, 10.9934, 0, 10.9934], "confidence": 0.881, + "state": "unselected"}, {"boundingBox": [0, 10.4809, 1.854, 10.4809, 1.854, + 10.9976, 0, 10.9976], "confidence": 0.69, "state": "unselected"}, {"boundingBox": + [7.5162, 10.3545, 8.4955, 10.3545, 8.4955, 11, 7.5162, 11], "confidence": + 0.553, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 2, "columns": 6, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Invoice + Number", "boundingBox": [0.5075, 2.8088, 1.9061, 2.8088, 1.9061, 3.3219, 0.5075, + 3.3219], "elements": ["#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1"]}, + {"rowIndex": 0, "columnIndex": 1, "text": "Invoice Date", "boundingBox": [1.9061, + 2.8088, 3.3074, 2.8088, 3.3074, 3.3219, 1.9061, 3.3219], "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1"]}, {"rowIndex": 0, "columnIndex": 2, "text": + "Invoice Due Date", "boundingBox": [3.3074, 2.8088, 4.7074, 2.8088, 4.7074, + 3.3219, 3.3074, 3.3219], "elements": ["#/readResults/0/lines/10/words/0", + "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, {"rowIndex": 0, "columnIndex": 3, "text": "Charges", "boundingBox": [4.7074, 2.8088, 5.386, 2.8088, 5.386, 3.3219, 4.7074, 3.3219], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 5, "text": "VAT ID", "boundingBox": [6.1051, @@ -141,15 +171,15 @@ interactions: "PT", "boundingBox": [6.1051, 3.3219, 7.5038, 3.3219, 7.5038, 3.859, 6.1051, 3.859], "elements": ["#/readResults/0/lines/17/words/0"]}]}]}]}}' headers: - apim-request-id: 184e9b2e-e9a0-405a-949e-baec99b5e0e8 + apim-request-id: 8d08bda8-d56c-4409-a706-fa19f4169953 + content-length: '7988' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:43:32 GMT + date: Mon, 14 Sep 2020 19:31:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '38' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/layout/analyzeResults/ea0b3f6a-6acf-4cf4-8866-8914c1bbec5b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/layout/analyzeResults/468e4abd-7516-4693-9d65-3832bdf2a126 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml index 2474b9d18dd4..dc7c3f32ffdc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_authorization.yaml @@ -11,22 +11,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "89f31fa3-cdf5-4bd2-8a69-ac49becb01b6", "accessToken": - "redacted", "expirationDateTimeTicks": 1594492879}' + string: '{"modelId": "9e6788e6-0d72-477a-9db3-e1e4d2bce597", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198470}' headers: apim-request-id: - - 5269b0e6-6db5-4c49-9746-0d3a49b4763f + - 1af2d60e-9e02-46ca-8dca-edb44a3eadaf content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:41:19 GMT + - Mon, 14 Sep 2020 19:34:29 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/89f31fa3-cdf5-4bd2-8a69-ac49becb01b6 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9e6788e6-0d72-477a-9db3-e1e4d2bce597 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '366' + - '22' status: code: 201 message: Created diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_case_insensitive_region.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_case_insensitive_region.yaml index 123c9f11daa0..37eb329e117d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_case_insensitive_region.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_case_insensitive_region.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 9b28feaa-c0a7-4ea8-825a-2944db659c23 + - 5c6b1c74-a346-44d9-8f4a-85006cbc99b1 content-length: - '0' date: - - Mon, 17 Aug 2020 19:48:13 GMT + - Mon, 14 Sep 2020 20:04:57 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '57' + - '42' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8a197bb1-29ce-4e4f-8d8f-320fe3d30b47", "status": - "creating", "createdDateTime": "2020-08-17T19:48:14Z", "lastUpdatedDateTime": - "2020-08-17T19:48:14Z"}}' + string: '{"modelInfo": {"modelId": "7057d571-1c8b-45e9-9599-cb64c2992dd8", "status": + "creating", "createdDateTime": "2020-09-14T20:04:57Z", "lastUpdatedDateTime": + "2020-09-14T20:04:57Z"}}' headers: apim-request-id: - - 4acfbd78-c50f-4bdd-94e4-26d67e135956 + - 41b54ba9-ad2b-4594-ae72-96d0a9b026c9 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:18 GMT + - Mon, 14 Sep 2020 20:05:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '67' + - '18' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8a197bb1-29ce-4e4f-8d8f-320fe3d30b47", "status": - "creating", "createdDateTime": "2020-08-17T19:48:14Z", "lastUpdatedDateTime": - "2020-08-17T19:48:14Z"}}' + string: '{"modelInfo": {"modelId": "7057d571-1c8b-45e9-9599-cb64c2992dd8", "status": + "creating", "createdDateTime": "2020-09-14T20:04:57Z", "lastUpdatedDateTime": + "2020-09-14T20:04:57Z"}}' headers: apim-request-id: - - ebb830b2-ccf5-4bff-9ec1-c95140e74c6f + - 27304682-25b4-4c4b-a3ee-c63fd9c297a9 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:23 GMT + - Mon, 14 Sep 2020 20:05:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '18' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8a197bb1-29ce-4e4f-8d8f-320fe3d30b47", "status": - "ready", "createdDateTime": "2020-08-17T19:48:14Z", "lastUpdatedDateTime": - "2020-08-17T19:48:26Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "7057d571-1c8b-45e9-9599-cb64c2992dd8", "status": + "ready", "createdDateTime": "2020-09-14T20:04:57Z", "lastUpdatedDateTime": + "2020-09-14T20:05:12Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 657da126-a36e-4dd8-9548-a3f7c64c0a42 + - 94678ff9-89c9-42d7-a80d-91987ac0fa84 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:29 GMT + - Mon, 14 Sep 2020 20:05:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '17' status: code: 200 message: OK @@ -168,22 +168,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2", "accessToken": - "redacted", "expirationDateTimeTicks": 1597780109}' + string: '{"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33", "accessToken": + "redacted", "expirationDateTimeTicks": 1600200313}' headers: apim-request-id: - - a45ad479-4e19-4db3-b0b7-49e3a2e97e48 + - 93a444f8-6e3f-4e91-93ce-6b0217c866f3 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:29 GMT + - Mon, 14 Sep 2020 20:05:12 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a92321bb-383d-4002-b76f-a800af2c5ec2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c41d3cad-babf-4859-ab36-86853abb7f33 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -191,17 +191,17 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '24' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "CENTRALUSEUAP", - "copyAuthorization": {"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1597780109}}\''''' + "copyAuthorization": {"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600200313}}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -211,27 +211,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copy response: body: string: '' headers: apim-request-id: - - cafa3335-f0e0-42f4-86e7-8ac8404d4916 + - a601f4b0-de4d-4857-a877-91f951163c91 content-length: - '0' date: - - Mon, 17 Aug 2020 19:48:29 GMT + - Mon, 14 Sep 2020 20:05:13 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '34' status: code: 202 message: Accepted @@ -245,20 +245,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-08-17T19:48:30Z", - "lastUpdatedDateTime": "2020-08-17T19:48:30Z", "copyResult": {"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:05:13Z", + "lastUpdatedDateTime": "2020-09-14T20:05:13Z", "copyResult": {"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33"}}' headers: apim-request-id: - - 89972464-9fd6-4ed3-aa8f-5900c2cecbfe + - 5e63cb9a-9e5e-456b-8416-7ad4473fc493 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:34 GMT + - Mon, 14 Sep 2020 20:05:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -266,7 +266,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '13' status: code: 200 message: OK @@ -280,20 +280,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-08-17T19:48:30Z", - "lastUpdatedDateTime": "2020-08-17T19:48:30Z", "copyResult": {"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:05:13Z", + "lastUpdatedDateTime": "2020-09-14T20:05:13Z", "copyResult": {"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33"}}' headers: apim-request-id: - - 2b08d5e7-ba61-464d-8709-483a2bbec30c + - c2dcbf09-8ec1-4752-8fa1-cc1c24f5b926 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:40 GMT + - Mon, 14 Sep 2020 20:05:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -301,7 +301,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '11' status: code: 200 message: OK @@ -315,20 +315,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-08-17T19:48:30Z", - "lastUpdatedDateTime": "2020-08-17T19:48:30Z", "copyResult": {"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:05:13Z", + "lastUpdatedDateTime": "2020-09-14T20:05:13Z", "copyResult": {"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33"}}' headers: apim-request-id: - - c7a15146-730f-4b9d-91dd-22c0f2a5f268 + - cce1c30a-f347-462f-bdd7-95c4a1f21e30 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:45 GMT + - Mon, 14 Sep 2020 20:05:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -336,7 +336,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '13' status: code: 200 message: OK @@ -350,20 +350,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-08-17T19:48:30Z", - "lastUpdatedDateTime": "2020-08-17T19:48:30Z", "copyResult": {"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:05:13Z", + "lastUpdatedDateTime": "2020-09-14T20:05:13Z", "copyResult": {"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33"}}' headers: apim-request-id: - - e38bb29f-fa6c-4ddd-a8be-6ed05be2023f + - 9978bd80-8285-42fc-b973-ab8cc27b91b8 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:50 GMT + - Mon, 14 Sep 2020 20:05:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -371,7 +371,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '11' status: code: 200 message: OK @@ -385,20 +385,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-08-17T19:48:30Z", - "lastUpdatedDateTime": "2020-08-17T19:48:30Z", "copyResult": {"modelId": "a92321bb-383d-4002-b76f-a800af2c5ec2"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:05:13Z", + "lastUpdatedDateTime": "2020-09-14T20:05:13Z", "copyResult": {"modelId": "c41d3cad-babf-4859-ab36-86853abb7f33"}}' headers: apim-request-id: - - 704b8cb5-23b5-46e2-a441-6530104d6351 + - 3738f3bd-e867-4c78-8bf1-410622b492de content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:48:55 GMT + - Mon, 14 Sep 2020 20:05:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -406,7 +406,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '12' status: code: 200 message: OK @@ -420,21 +420,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8a197bb1-29ce-4e4f-8d8f-320fe3d30b47/copyresults/ded8565f-097a-4170-86b9-f8ae54550d04 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7057d571-1c8b-45e9-9599-cb64c2992dd8/copyresults/4446466d-4b3f-4856-acbe-6472207cace2 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-08-17T19:49:00.4824394Z", - "lastUpdatedDateTime": "2020-08-17T19:49:00.4824397Z", "copyResult": {"modelId": - "a92321bb-383d-4002-b76f-a800af2c5ec2"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:05:43.0427093Z", + "lastUpdatedDateTime": "2020-09-14T20:05:43.0427095Z", "copyResult": {"modelId": + "c41d3cad-babf-4859-ab36-86853abb7f33"}}' headers: apim-request-id: - - a46c0091-c438-4d83-bb88-169614c4035c + - e1413613-193d-4c16-9361-31d294078986 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 19:49:01 GMT + - Mon, 14 Sep 2020 20:05:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -442,7 +442,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '14' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml index 8cbde2d25dc4..f24da30165cd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 9f33e593-d606-40f7-804c-4f049fcb3487 + - 0f893122-5fb4-4593-a0da-ffa6b27a56cf content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:06 GMT + - Mon, 14 Sep 2020 19:35:12 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '246' + - '38' status: code: 201 message: Created @@ -48,21 +48,57 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "7bee575f-1df2-41b2-8467-626912792ffb", "status": + "creating", "createdDateTime": "2020-09-14T19:35:12Z", "lastUpdatedDateTime": + "2020-09-14T19:35:12Z"}}' + headers: + apim-request-id: + - b43507bf-e4ba-4c81-8cf5-bf35d5d1a6d1 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:35:17 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '18' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1", "status": - "creating", "createdDateTime": "2020-07-10T18:42:06Z", "lastUpdatedDateTime": - "2020-07-10T18:42:06Z"}}' + string: '{"modelInfo": {"modelId": "7bee575f-1df2-41b2-8467-626912792ffb", "status": + "creating", "createdDateTime": "2020-09-14T19:35:12Z", "lastUpdatedDateTime": + "2020-09-14T19:35:12Z"}}' headers: apim-request-id: - - 52d98433-e02e-4b11-b3f5-2d56273693a8 + - 5134dee5-5361-46f0-92af-e6fc5eaac282 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:17 GMT + - Mon, 14 Sep 2020 19:35:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5169' + - '15' status: code: 200 message: OK @@ -84,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1", "status": - "ready", "createdDateTime": "2020-07-10T18:42:06Z", "lastUpdatedDateTime": - "2020-07-10T18:42:16Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "7bee575f-1df2-41b2-8467-626912792ffb", "status": + "ready", "createdDateTime": "2020-09-14T19:35:12Z", "lastUpdatedDateTime": + "2020-09-14T19:35:26Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 3812fb0f-e53a-4981-8598-55eac7673057 + - 1e1cfb26-3d41-4ca1-accd-3d4655641abc content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:23 GMT + - Mon, 14 Sep 2020 19:35:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '927' + - '14' status: code: 200 message: OK @@ -132,22 +168,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "9a019fd3-364b-4340-96d0-638a07d16263", "accessToken": - "redacted", "expirationDateTimeTicks": 1594492943}' + string: '{"modelId": "ff677acc-7b94-43ab-b77b-8d8e01a16f3b", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198528}' headers: apim-request-id: - - b0b4ac4f-a46b-4973-98fe-ff14e5554df5 + - 0c07cbd3-0597-4e89-be29-11feed40493c content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:23 GMT + - Mon, 14 Sep 2020 19:35:28 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a019fd3-364b-4340-96d0-638a07d16263 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ff677acc-7b94-43ab-b77b-8d8e01a16f3b strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -155,17 +191,17 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '188' + - '21' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "eastus", - "copyAuthorization": {"modelId": "9a019fd3-364b-4340-96d0-638a07d16263", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594492943}}\''''' + "copyAuthorization": {"modelId": "ff677acc-7b94-43ab-b77b-8d8e01a16f3b", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600198528}}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -175,27 +211,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb/copy response: body: string: '' headers: apim-request-id: - - 9502eecd-14d5-4bd3-a6b1-2eb4bed05d40 + - bccde0d1-b512-4adc-89fb-a1c565d2469a content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:23 GMT + - Mon, 14 Sep 2020 19:35:28 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1/copyresults/a96cc40f-84f7-4c30-975d-54a1a3e8b03f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb/copyresults/e35af486-5a91-48f5-998f-abc0e90c0201 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '80' + - '30' status: code: 202 message: Accepted @@ -209,23 +245,93 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb/copyresults/e35af486-5a91-48f5-998f-abc0e90c0201 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:35:28Z", + "lastUpdatedDateTime": "2020-09-14T19:35:28Z", "copyResult": {"modelId": "ff677acc-7b94-43ab-b77b-8d8e01a16f3b"}}' + headers: + apim-request-id: + - 7a5d0562-5e01-4620-b671-e8e2359a6e78 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:35:33 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '13' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb/copyresults/e35af486-5a91-48f5-998f-abc0e90c0201 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:35:28Z", + "lastUpdatedDateTime": "2020-09-14T19:35:28Z", "copyResult": {"modelId": "ff677acc-7b94-43ab-b77b-8d8e01a16f3b"}}' + headers: + apim-request-id: + - 2c177044-28ac-4b23-acfc-716975c072ec + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:35:38 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '10' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/095e9e9e-b3fb-4c9b-8d5e-afe4f01509c1/copyresults/a96cc40f-84f7-4c30-975d-54a1a3e8b03f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7bee575f-1df2-41b2-8467-626912792ffb/copyresults/e35af486-5a91-48f5-998f-abc0e90c0201 response: body: - string: '{"status": "failed", "createdDateTime": "2020-07-10T18:42:32.1161253Z", - "lastUpdatedDateTime": "2020-07-10T18:42:32.1161256Z", "copyResult": {"modelId": - "9a019fd3-364b-4340-96d0-638a07d16263", "errors": [{"code": "AuthorizationError", + string: '{"status": "failed", "createdDateTime": "2020-09-14T19:35:39.9404576Z", + "lastUpdatedDateTime": "2020-09-14T19:35:39.9404579Z", "copyResult": {"modelId": + "ff677acc-7b94-43ab-b77b-8d8e01a16f3b", "errors": [{"code": "AuthorizationError", "message": "Could not retrieve authorization metadata. If this issue persists use a different target model to copy into."}]}}' headers: apim-request-id: - - b0780068-beb0-45ca-9058-7fb2c3673bd1 + - c6a8223c-d17f-4d32-9cd2-e5dfe9f7637d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:33 GMT + - Mon, 14 Sep 2020 19:35:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -233,7 +339,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5039' + - '15' x-ms-cs-error-code: - AuthorizationError status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail_bad_model_id.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail_bad_model_id.yaml index a26fe93514e1..20fc4858de5c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail_bad_model_id.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_fail_bad_model_id.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 6978a0e9-5dbf-408a-bd2a-b1b40f2c945f + - 245844b9-8420-4a98-a27e-4ca700fc96d9 content-length: - '0' date: - - Mon, 17 Aug 2020 18:07:54 GMT + - Mon, 14 Sep 2020 19:34:47 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e3b19ae0-3407-462d-a9ae-9b59cbfa59d5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/57aa5f11-8bf7-4511-b575-597b0a1af722 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '37' + - '41' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e3b19ae0-3407-462d-a9ae-9b59cbfa59d5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/57aa5f11-8bf7-4511-b575-597b0a1af722?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "e3b19ae0-3407-462d-a9ae-9b59cbfa59d5", "status": - "creating", "createdDateTime": "2020-08-17T18:07:54Z", "lastUpdatedDateTime": - "2020-08-17T18:07:54Z"}}' + string: '{"modelInfo": {"modelId": "57aa5f11-8bf7-4511-b575-597b0a1af722", "status": + "creating", "createdDateTime": "2020-09-14T19:34:47Z", "lastUpdatedDateTime": + "2020-09-14T19:34:47Z"}}' headers: apim-request-id: - - a58527ec-3f51-4764-b6f0-487b69d92ff9 + - 03c6ae1a-6c68-454a-8f7a-653fdfcb6b60 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:07:58 GMT + - Mon, 14 Sep 2020 19:34:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '18' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e3b19ae0-3407-462d-a9ae-9b59cbfa59d5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/57aa5f11-8bf7-4511-b575-597b0a1af722?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "e3b19ae0-3407-462d-a9ae-9b59cbfa59d5", "status": - "creating", "createdDateTime": "2020-08-17T18:07:54Z", "lastUpdatedDateTime": - "2020-08-17T18:07:54Z"}}' + string: '{"modelInfo": {"modelId": "57aa5f11-8bf7-4511-b575-597b0a1af722", "status": + "creating", "createdDateTime": "2020-09-14T19:34:47Z", "lastUpdatedDateTime": + "2020-09-14T19:34:47Z"}}' headers: apim-request-id: - - 5c44850e-a4c0-4747-9f7b-e58b8d1828a7 + - 635773fd-1c0c-4df9-a368-f06901e4c5b7 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:08:03 GMT + - Mon, 14 Sep 2020 19:34:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '14' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e3b19ae0-3407-462d-a9ae-9b59cbfa59d5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/57aa5f11-8bf7-4511-b575-597b0a1af722?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "e3b19ae0-3407-462d-a9ae-9b59cbfa59d5", "status": - "ready", "createdDateTime": "2020-08-17T18:07:54Z", "lastUpdatedDateTime": - "2020-08-17T18:08:06Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "57aa5f11-8bf7-4511-b575-597b0a1af722", "status": + "ready", "createdDateTime": "2020-09-14T19:34:47Z", "lastUpdatedDateTime": + "2020-09-14T19:34:59Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - ee3f212e-a142-47c5-9d7c-78c7c396390d + - 04ce11f9-9e78-4055-9455-8fb7f37f6165 content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:08:12 GMT + - Mon, 14 Sep 2020 19:35:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '31' status: code: 200 message: OK @@ -168,22 +168,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "1492ba3b-187c-4b9b-8e02-df2e0da5bcb9", "accessToken": - "redacted", "expirationDateTimeTicks": 1597774092}' + string: '{"modelId": "f641500b-8690-4bfb-9d13-b3756cc577e6", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198503}' headers: apim-request-id: - - 09db1b3e-7aa8-4882-bc77-9cefc704acdf + - 812112ec-dd72-492c-8de7-cd0de3d2e07b content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:08:12 GMT + - Mon, 14 Sep 2020 19:35:02 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1492ba3b-187c-4b9b-8e02-df2e0da5bcb9 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f641500b-8690-4bfb-9d13-b3756cc577e6 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -191,17 +191,17 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '25' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "1492ba3b-187c-4b9b-8e02-df2e0da5bcb9", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1597774092}}\''''' + "copyAuthorization": {"modelId": "f641500b-8690-4bfb-9d13-b3756cc577e6", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600198503}}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -211,20 +211,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/00000000-0000-0000-0000-000000000000/copy response: body: string: '{"error": {"code": "1022", "message": "Model with ''id=00000000-0000-0000-0000-000000000000'' not found."}}' headers: apim-request-id: - - e0ae0076-070f-4213-b1ea-54c51068a121 + - 23476a2c-80a6-474c-9fbf-7d169f0c5c7c content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:08:12 GMT + - Mon, 14 Sep 2020 19:35:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -232,7 +232,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '11' status: code: 404 message: Not Found diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml index b51f0bd0bb51..1ccef698ce41 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_successful.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - daf44634-ed27-49da-aa9f-56069693bcc8 + - e689df45-2018-489a-8e5a-daa1d7e9ee2a content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:35 GMT + - Mon, 14 Sep 2020 19:34:30 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '834' + - '40' status: code: 201 message: Created @@ -48,21 +48,93 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c4d84e03-d617-4950-a07b-906014547e1e", "status": + "creating", "createdDateTime": "2020-09-14T19:34:30Z", "lastUpdatedDateTime": + "2020-09-14T19:34:30Z"}}' + headers: + apim-request-id: + - 7396a57f-617b-435e-8687-516b03e8d57d + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:34:35 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c4d84e03-d617-4950-a07b-906014547e1e", "status": + "creating", "createdDateTime": "2020-09-14T19:34:30Z", "lastUpdatedDateTime": + "2020-09-14T19:34:30Z"}}' + headers: + apim-request-id: + - 1ae42d71-e808-4d5f-b752-538d9e3633bb + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:34:40 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '14' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a6329d07-e95c-44fc-aed9-0d9847cb7965", "status": - "creating", "createdDateTime": "2020-07-10T18:42:35Z", "lastUpdatedDateTime": - "2020-07-10T18:42:35Z"}}' + string: '{"modelInfo": {"modelId": "c4d84e03-d617-4950-a07b-906014547e1e", "status": + "creating", "createdDateTime": "2020-09-14T19:34:30Z", "lastUpdatedDateTime": + "2020-09-14T19:34:30Z"}}' headers: apim-request-id: - - c24ce9c9-0cde-4171-a1ae-0d47fcc67620 + - 2c1a27d1-cb83-402a-ad15-5ebf0e895df9 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:40 GMT + - Mon, 14 Sep 2020 19:34:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '197' + - '17' status: code: 200 message: OK @@ -84,31 +156,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a6329d07-e95c-44fc-aed9-0d9847cb7965", "status": - "ready", "createdDateTime": "2020-07-10T18:42:35Z", "lastUpdatedDateTime": - "2020-07-10T18:42:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "c4d84e03-d617-4950-a07b-906014547e1e", "status": + "ready", "createdDateTime": "2020-09-14T19:34:30Z", "lastUpdatedDateTime": + "2020-09-14T19:34:46Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - ee650c76-e46b-4c09-90a0-bbe1413d21e7 + - 9d34d2ca-a233-4121-be75-d0ca23632216 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:45 GMT + - Mon, 14 Sep 2020 19:34:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,7 +188,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '217' + - '18' status: code: 200 message: OK @@ -132,22 +204,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c", "accessToken": - "redacted", "expirationDateTimeTicks": 1594492965}' + string: '{"modelId": "a043482d-d7d5-40bc-9005-0c6941216c47", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198491}' headers: apim-request-id: - - 11fe3970-a3b7-4d27-bfb5-c5cc197c3948 + - f3a3f0fe-9cf1-4dcb-b6e8-738fdf866d8d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:45 GMT + - Mon, 14 Sep 2020 19:34:51 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b206c1b-3975-44f9-92dd-9ca8efed488c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a043482d-d7d5-40bc-9005-0c6941216c47 strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -155,17 +227,17 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '24' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594492965}}\''''' + "copyAuthorization": {"modelId": "a043482d-d7d5-40bc-9005-0c6941216c47", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600198491}}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -175,27 +247,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e/copy response: body: string: '' headers: apim-request-id: - - f0f693bb-7703-45eb-a825-87dc4a7883ad + - f53bbad4-aeb1-4db4-ae7a-f53788c1fd56 content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:45 GMT + - Mon, 14 Sep 2020 19:34:51 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e/copyresults/49b3da8f-cd8e-4b5d-a13a-349cc5c24ecb strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '61' + - '32' status: code: 202 message: Accepted @@ -209,20 +281,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e/copyresults/49b3da8f-cd8e-4b5d-a13a-349cc5c24ecb response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", - "lastUpdatedDateTime": "2020-07-10T18:42:46Z", "copyResult": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:34:51Z", + "lastUpdatedDateTime": "2020-09-14T19:34:51Z", "copyResult": {"modelId": "a043482d-d7d5-40bc-9005-0c6941216c47"}}' headers: apim-request-id: - - 88ace49f-66bf-4f50-b1c6-c5ec7364d9c0 + - 593f8f8d-b56f-43d2-aa32-142497b9654f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:50 GMT + - Mon, 14 Sep 2020 19:34:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -230,7 +302,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '11' status: code: 200 message: OK @@ -244,20 +316,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e/copyresults/49b3da8f-cd8e-4b5d-a13a-349cc5c24ecb response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", - "lastUpdatedDateTime": "2020-07-10T18:42:46Z", "copyResult": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:34:51Z", + "lastUpdatedDateTime": "2020-09-14T19:34:51Z", "copyResult": {"modelId": "a043482d-d7d5-40bc-9005-0c6941216c47"}}' headers: apim-request-id: - - 58d12f1d-105b-40f5-895f-204d5766b83e + - c20ed5e7-2f78-4cfb-83c5-f9642b8c33d3 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:55 GMT + - Mon, 14 Sep 2020 19:35:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -265,7 +337,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '12' + - '14' status: code: 200 message: OK @@ -279,20 +351,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e/copyresults/49b3da8f-cd8e-4b5d-a13a-349cc5c24ecb response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", - "lastUpdatedDateTime": "2020-07-10T18:42:46Z", "copyResult": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:34:51Z", + "lastUpdatedDateTime": "2020-09-14T19:34:51Z", "copyResult": {"modelId": "a043482d-d7d5-40bc-9005-0c6941216c47"}}' headers: apim-request-id: - - 686f0b16-f9d2-4a9a-8aa0-b2ae65edfedc + - 6dd8cf94-8e11-4b2b-81a4-3bdf5dad3b9c content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:01 GMT + - Mon, 14 Sep 2020 19:35:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -300,7 +372,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '12' status: code: 200 message: OK @@ -314,21 +386,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a6329d07-e95c-44fc-aed9-0d9847cb7965/copyresults/ac89fd4f-81a8-4fef-bf22-e17feb441e05 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c4d84e03-d617-4950-a07b-906014547e1e/copyresults/49b3da8f-cd8e-4b5d-a13a-349cc5c24ecb response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:02.1969188Z", - "lastUpdatedDateTime": "2020-07-10T18:43:02.1969191Z", "copyResult": {"modelId": - "8b206c1b-3975-44f9-92dd-9ca8efed488c"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:35:09.7641123Z", + "lastUpdatedDateTime": "2020-09-14T19:35:09.7641125Z", "copyResult": {"modelId": + "a043482d-d7d5-40bc-9005-0c6941216c47"}}' headers: apim-request-id: - - 1473826d-b0d6-4e57-86a2-26ed0cf9912e + - 817f1a07-fd4c-4080-97d4-260142e62d14 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:06 GMT + - Mon, 14 Sep 2020 19:35:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -336,7 +408,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '10' status: code: 200 message: OK @@ -350,31 +422,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b206c1b-3975-44f9-92dd-9ca8efed488c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a043482d-d7d5-40bc-9005-0c6941216c47?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8b206c1b-3975-44f9-92dd-9ca8efed488c", "status": - "ready", "createdDateTime": "2020-07-10T18:42:35Z", "lastUpdatedDateTime": - "2020-07-10T18:42:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "a043482d-d7d5-40bc-9005-0c6941216c47", "status": + "ready", "createdDateTime": "2020-09-14T19:34:30Z", "lastUpdatedDateTime": + "2020-09-14T19:34:46Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - ac2e135f-c68a-42ed-8e5e-71e61ea03331 + - 3aff9d3f-2883-4fa8-ae42-31fa287a27f5 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:06 GMT + - Mon, 14 Sep 2020 19:35:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -382,7 +454,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml index 94df702ab29c..90fb1d906de0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model.test_copy_model_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 95acf55c-336b-48b8-80cc-ee587b3b201a + - 788ac0a8-9307-40fe-9a74-836aabdba0ad content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:07 GMT + - Mon, 14 Sep 2020 19:35:13 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '130' + - '41' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bc0ad1de-d97e-498f-8afd-74b5047956ad", "status": - "creating", "createdDateTime": "2020-07-10T18:43:07Z", "lastUpdatedDateTime": - "2020-07-10T18:43:07Z"}}' + string: '{"modelInfo": {"modelId": "1cc4c82b-8ff6-4dd8-8f87-67efced1dba3", "status": + "creating", "createdDateTime": "2020-09-14T19:35:13Z", "lastUpdatedDateTime": + "2020-09-14T19:35:13Z"}}' headers: apim-request-id: - - 6222f5cb-d823-4eee-b3cf-feef97eccfa3 + - baf7b8eb-02d0-4eb4-b4e7-4318161f789d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:13 GMT + - Mon, 14 Sep 2020 19:35:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '150' + - '35' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bc0ad1de-d97e-498f-8afd-74b5047956ad", "status": - "creating", "createdDateTime": "2020-07-10T18:43:07Z", "lastUpdatedDateTime": - "2020-07-10T18:43:07Z"}}' + string: '{"modelInfo": {"modelId": "1cc4c82b-8ff6-4dd8-8f87-67efced1dba3", "status": + "creating", "createdDateTime": "2020-09-14T19:35:13Z", "lastUpdatedDateTime": + "2020-09-14T19:35:13Z"}}' headers: apim-request-id: - - e06ab76f-0d18-418e-b493-ee94f2c09175 + - c2d2074c-c081-4136-823b-6f7dd0e0e0bb content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:17 GMT + - Mon, 14 Sep 2020 19:35:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '235' + - '16' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bc0ad1de-d97e-498f-8afd-74b5047956ad", "status": - "ready", "createdDateTime": "2020-07-10T18:43:07Z", "lastUpdatedDateTime": - "2020-07-10T18:43:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "1cc4c82b-8ff6-4dd8-8f87-67efced1dba3", "status": + "ready", "createdDateTime": "2020-09-14T19:35:13Z", "lastUpdatedDateTime": + "2020-09-14T19:35:26Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 3519faf3-4594-4ec6-8b9b-e9173273313c + - cce1c167-5d57-43ff-a63f-be94062d942d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:23 GMT + - Mon, 14 Sep 2020 19:35:28 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '164' + - '18' status: code: 200 message: OK @@ -168,22 +168,22 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "11b94f5d-5a46-48c8-8210-815c3b9236ee", "accessToken": - "redacted", "expirationDateTimeTicks": 1594493003}' + string: '{"modelId": "63e7de56-bedf-441b-a226-a932bf62815a", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198528}' headers: apim-request-id: - - fd8afbe8-35e6-4f38-bc4b-88e27ca0eeac + - a51d20be-f3ab-451f-a318-bcea28bc917d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:23 GMT + - Mon, 14 Sep 2020 19:35:28 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/11b94f5d-5a46-48c8-8210-815c3b9236ee + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/63e7de56-bedf-441b-a226-a932bf62815a strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -191,17 +191,17 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '176' + - '25' status: code: 201 message: Created - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "11b94f5d-5a46-48c8-8210-815c3b9236ee", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493003}}\''''' + "copyAuthorization": {"modelId": "63e7de56-bedf-441b-a226-a932bf62815a", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600198528}}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -211,27 +211,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3/copy response: body: string: '' headers: apim-request-id: - - c0473af5-dd90-4a5c-8820-c1e14495d762 + - 9d4403d2-4ac3-4c27-98d2-d2f2e1958c0e content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:25 GMT + - Mon, 14 Sep 2020 19:35:28 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3/copyresults/b53fdd41-cbab-45b8-bb9d-e84c4959ecfe strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1726' + - '51' status: code: 202 message: Accepted @@ -245,20 +245,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3/copyresults/b53fdd41-cbab-45b8-bb9d-e84c4959ecfe response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:25Z", - "lastUpdatedDateTime": "2020-07-10T18:43:25Z", "copyResult": {"modelId": "11b94f5d-5a46-48c8-8210-815c3b9236ee"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:35:29Z", + "lastUpdatedDateTime": "2020-09-14T19:35:29Z", "copyResult": {"modelId": "63e7de56-bedf-441b-a226-a932bf62815a"}}' headers: apim-request-id: - - ca708013-347e-47bf-8f46-13058c56d85b + - dc0be1af-c759-417d-9ede-5125fe60541d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:30 GMT + - Mon, 14 Sep 2020 19:35:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -266,7 +266,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '11' status: code: 200 message: OK @@ -280,21 +280,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3/copyresults/b53fdd41-cbab-45b8-bb9d-e84c4959ecfe response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:43:35.2196634Z", - "lastUpdatedDateTime": "2020-07-10T18:43:35.2196635Z", "copyResult": {"modelId": - "11b94f5d-5a46-48c8-8210-815c3b9236ee"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:35:29Z", + "lastUpdatedDateTime": "2020-09-14T19:35:29Z", "copyResult": {"modelId": "63e7de56-bedf-441b-a226-a932bf62815a"}}' headers: apim-request-id: - - 324dfd8b-012c-447e-bb9d-24554d494de9 + - bc8337b4-d170-4188-a049-0bcccb499b2b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:37 GMT + - Mon, 14 Sep 2020 19:35:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -302,7 +301,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '782' + - '11' status: code: 200 message: OK @@ -316,21 +315,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc0ad1de-d97e-498f-8afd-74b5047956ad/copyresults/633ae67a-4935-4215-90f0-b61d0af0d27f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1cc4c82b-8ff6-4dd8-8f87-67efced1dba3/copyresults/b53fdd41-cbab-45b8-bb9d-e84c4959ecfe response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:38.2857868Z", - "lastUpdatedDateTime": "2020-07-10T18:43:38.2857871Z", "copyResult": {"modelId": - "11b94f5d-5a46-48c8-8210-815c3b9236ee"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:35:40.0669223Z", + "lastUpdatedDateTime": "2020-09-14T19:35:40.0669225Z", "copyResult": {"modelId": + "63e7de56-bedf-441b-a226-a932bf62815a"}}' headers: apim-request-id: - - 3f50c053-c11d-41e3-8b67-1f1ac2b0a002 + - 75e2c890-03d2-42f6-99f8-72d2bf352591 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:41 GMT + - Mon, 14 Sep 2020 19:35:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -338,7 +337,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '11' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml index f7400ba652aa..cae58cdeb17a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_authorization.yaml @@ -5,24 +5,24 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "aa4d8281-27f9-439c-aa34-96be37f2c766", "accessToken": - "redacted", "expirationDateTimeTicks": 1594493022}' + string: '{"modelId": "02f5108a-9a08-49ab-9661-3f7ca40b7d19", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198949}' headers: - apim-request-id: e37dc7fa-e5a2-4d9f-9209-88f2f663d36d + apim-request-id: a8bc9ebf-3e92-4fc8-803b-1e9472254a3f content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:43:41 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa4d8281-27f9-439c-aa34-96be37f2c766 + date: Mon, 14 Sep 2020 19:42:28 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/02f5108a-9a08-49ab-9661-3f7ca40b7d19 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '26' + x-envoy-upstream-service-time: '51' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/copyAuthorization version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_case_insensitive_region.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_case_insensitive_region.yaml index 6bf228d0d53a..76b8983db6f4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_case_insensitive_region.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_case_insensitive_region.yaml @@ -3,210 +3,237 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: a5b902a1-c5d5-4189-b8d0-3b234fe95d1f + apim-request-id: 883837af-cc29-4040-bb00-58205a264dba content-length: '0' - date: Mon, 17 Aug 2020 20:16:12 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb + date: Mon, 14 Sep 2020 20:10:46 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '36' + x-envoy-upstream-service-time: '38' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bc915e6c-4412-4437-9582-59fb0237a9bb", "status": - "creating", "createdDateTime": "2020-08-17T20:16:12Z", "lastUpdatedDateTime": - "2020-08-17T20:16:12Z"}}' + string: '{"modelInfo": {"modelId": "535b7c03-d2ab-4520-9a6c-9cc683604c00", "status": + "creating", "createdDateTime": "2020-09-14T20:10:46Z", "lastUpdatedDateTime": + "2020-09-14T20:10:46Z"}}' headers: - apim-request-id: a8338d7f-7833-42e1-ab06-6f42b9f7f670 + apim-request-id: 15309a70-70ec-42ed-8064-d424f6bfe3d9 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 20:16:17 GMT + date: Mon, 14 Sep 2020 20:10:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '69' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bc915e6c-4412-4437-9582-59fb0237a9bb", "status": - "creating", "createdDateTime": "2020-08-17T20:16:12Z", "lastUpdatedDateTime": - "2020-08-17T20:16:12Z"}}' + string: '{"modelInfo": {"modelId": "535b7c03-d2ab-4520-9a6c-9cc683604c00", "status": + "creating", "createdDateTime": "2020-09-14T20:10:46Z", "lastUpdatedDateTime": + "2020-09-14T20:10:46Z"}}' headers: - apim-request-id: 0b26abf0-3c17-47a8-baac-c79f347abc1c + apim-request-id: 3f9445db-6000-48f7-9fda-9ee4534bbd98 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 20:16:23 GMT + date: Mon, 14 Sep 2020 20:10:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '81' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bc915e6c-4412-4437-9582-59fb0237a9bb", "status": - "ready", "createdDateTime": "2020-08-17T20:16:12Z", "lastUpdatedDateTime": - "2020-08-17T20:16:23Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "535b7c03-d2ab-4520-9a6c-9cc683604c00", "status": + "ready", "createdDateTime": "2020-09-14T20:10:46Z", "lastUpdatedDateTime": + "2020-09-14T20:10:59Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 025c724d-d154-4b40-85d2-adde237b6c5b + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 07db2d9a-2b82-45fb-8c40-6a4eb4cf1439 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 20:16:27 GMT + date: Mon, 14 Sep 2020 20:11:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '34' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "f6c7dc66-691f-40e7-8a53-25eb778e2005", "accessToken": - "redacted", "expirationDateTimeTicks": 1597781788}' + string: '{"modelId": "aa2e8276-4920-45db-94e4-d17b820a7600", "accessToken": + "redacted", "expirationDateTimeTicks": 1600200662}' headers: - apim-request-id: d7e5c8f6-1f3a-4445-a7c4-ca2e0c75053c + apim-request-id: 35aa08f1-c32a-465c-ad52-f9e462921696 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 20:16:27 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f6c7dc66-691f-40e7-8a53-25eb778e2005 + date: Mon, 14 Sep 2020 20:11:02 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aa2e8276-4920-45db-94e4-d17b820a7600 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '24' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "CENTRALUSEUAP", - "copyAuthorization": {"modelId": "f6c7dc66-691f-40e7-8a53-25eb778e2005", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1597781788}}\''''' + "copyAuthorization": {"modelId": "aa2e8276-4920-45db-94e4-d17b820a7600", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600200662}}\''''' headers: + Accept: + - application/json Content-Length: - '447' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copy response: body: string: '' headers: - apim-request-id: c2699924-d130-4485-86c1-837be6cdcaa9 + apim-request-id: 7b3eed04-bad6-4ab2-9eea-40081db94a03 content-length: '0' - date: Mon, 17 Aug 2020 20:16:27 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copyresults/fd944221-cf69-4253-8f42-5abbe7fe5ba5 + date: Mon, 14 Sep 2020 20:11:02 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '58' + x-envoy-upstream-service-time: '60' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copy + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copy +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:11:02Z", + "lastUpdatedDateTime": "2020-09-14T20:11:02Z", "copyResult": {"modelId": "aa2e8276-4920-45db-94e4-d17b820a7600"}}' + headers: + apim-request-id: 6bd3a558-6d93-4512-997e-fa85a1179e0c + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:11:07 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copyresults/fd944221-cf69-4253-8f42-5abbe7fe5ba5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-08-17T20:16:28Z", - "lastUpdatedDateTime": "2020-08-17T20:16:28Z", "copyResult": {"modelId": "f6c7dc66-691f-40e7-8a53-25eb778e2005"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:11:02Z", + "lastUpdatedDateTime": "2020-09-14T20:11:02Z", "copyResult": {"modelId": "aa2e8276-4920-45db-94e4-d17b820a7600"}}' headers: - apim-request-id: a7bbe2f3-d0be-46f8-a149-54c5e6565f28 + apim-request-id: ecc8a731-0d1e-4d3b-a2b6-0977e7be0695 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 20:16:33 GMT + date: Mon, 14 Sep 2020 20:11:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copyresults/fd944221-cf69-4253-8f42-5abbe7fe5ba5 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copyresults/fd944221-cf69-4253-8f42-5abbe7fe5ba5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-08-17T20:16:37.4186032Z", - "lastUpdatedDateTime": "2020-08-17T20:16:37.4186034Z", "copyResult": {"modelId": - "f6c7dc66-691f-40e7-8a53-25eb778e2005"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:11:13.7353305Z", + "lastUpdatedDateTime": "2020-09-14T20:11:13.7353308Z", "copyResult": {"modelId": + "aa2e8276-4920-45db-94e4-d17b820a7600"}}' headers: - apim-request-id: 4cdb4042-37c7-456c-aa0d-6014fd77c107 + apim-request-id: b5d904fb-ad00-4e78-b1cf-e039492991cf content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 20:16:38 GMT + date: Mon, 14 Sep 2020 20:11:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '10' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bc915e6c-4412-4437-9582-59fb0237a9bb/copyresults/fd944221-cf69-4253-8f42-5abbe7fe5ba5 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/535b7c03-d2ab-4520-9a6c-9cc683604c00/copyresults/57e5d882-9cb9-4f25-8610-e807a01ed2e3 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml index b2456db61409..c0852e1affb2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail.yaml @@ -3,213 +3,217 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: cb8ada02-6f06-4e95-b870-7767facf92c4 + apim-request-id: d13124ae-29c6-4830-83fa-dc1e8a1ce2d8 content-length: '0' - date: Fri, 10 Jul 2020 18:44:15 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37 + date: Mon, 14 Sep 2020 19:43:20 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '251' + x-envoy-upstream-service-time: '42' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a1d4e626-ba18-45f7-8241-52627b90ab37", "status": - "creating", "createdDateTime": "2020-07-10T18:44:16Z", "lastUpdatedDateTime": - "2020-07-10T18:44:16Z"}}' + string: '{"modelInfo": {"modelId": "91eae37c-aa3d-4cd9-8321-bcff4289012a", "status": + "creating", "createdDateTime": "2020-09-14T19:43:20Z", "lastUpdatedDateTime": + "2020-09-14T19:43:20Z"}}' headers: - apim-request-id: d7006e41-56a0-439d-8f33-5a0fcd26d380 + apim-request-id: 72ff2277-23eb-4cbe-8fca-2b81e2334621 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:21 GMT + date: Mon, 14 Sep 2020 19:43:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '163' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a1d4e626-ba18-45f7-8241-52627b90ab37", "status": - "creating", "createdDateTime": "2020-07-10T18:44:16Z", "lastUpdatedDateTime": - "2020-07-10T18:44:16Z"}}' + string: '{"modelInfo": {"modelId": "91eae37c-aa3d-4cd9-8321-bcff4289012a", "status": + "creating", "createdDateTime": "2020-09-14T19:43:20Z", "lastUpdatedDateTime": + "2020-09-14T19:43:20Z"}}' headers: - apim-request-id: 990f37fe-d385-4f8f-96a2-469bd229d88b + apim-request-id: 040bf7cc-662d-4606-ad3f-001e72d0253f content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:26 GMT + date: Mon, 14 Sep 2020 19:43:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a1d4e626-ba18-45f7-8241-52627b90ab37", "status": - "ready", "createdDateTime": "2020-07-10T18:44:16Z", "lastUpdatedDateTime": - "2020-07-10T18:44:26Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "91eae37c-aa3d-4cd9-8321-bcff4289012a", "status": + "ready", "createdDateTime": "2020-09-14T19:43:20Z", "lastUpdatedDateTime": + "2020-09-14T19:43:35Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 033d7b54-f7d5-40e2-b64a-6a4a12745a2d + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 4b219d23-8b58-46b8-8266-a4962f5ef4e7 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:31 GMT + date: Mon, 14 Sep 2020 19:43:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "368dc3e3-e790-4c35-8ed0-e930eb83c095", "accessToken": - "redacted", "expirationDateTimeTicks": 1594493071}' + string: '{"modelId": "60577160-c49a-40a1-aa84-282799feb7c8", "accessToken": + "redacted", "expirationDateTimeTicks": 1600199016}' headers: - apim-request-id: 68736396-eb8d-4008-9f0b-be2f406ac124 + apim-request-id: 3b819d0a-0573-4a03-be5b-a7d61928f15a content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:31 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/368dc3e3-e790-4c35-8ed0-e930eb83c095 + date: Mon, 14 Sep 2020 19:43:35 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/60577160-c49a-40a1-aa84-282799feb7c8 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '29' + x-envoy-upstream-service-time: '25' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "eastus", - "copyAuthorization": {"modelId": "368dc3e3-e790-4c35-8ed0-e930eb83c095", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493071}}\''''' + "copyAuthorization": {"modelId": "60577160-c49a-40a1-aa84-282799feb7c8", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600199016}}\''''' headers: + Accept: + - application/json Content-Length: - '440' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copy response: body: string: '' headers: - apim-request-id: 436a5ef3-37fe-4d11-a106-3c2f580176fc + apim-request-id: 1b6ee651-abb1-4625-8eff-3619ec9247d2 content-length: '0' - date: Fri, 10 Jul 2020 18:44:31 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 + date: Mon, 14 Sep 2020 19:43:35 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copyresults/e56e3bea-b9e0-45af-9def-03b610da8b1d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '31' + x-envoy-upstream-service-time: '38' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copy + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copy - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copyresults/e56e3bea-b9e0-45af-9def-03b610da8b1d response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:32Z", - "lastUpdatedDateTime": "2020-07-10T18:44:32Z", "copyResult": {"modelId": "368dc3e3-e790-4c35-8ed0-e930eb83c095"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:43:36Z", + "lastUpdatedDateTime": "2020-09-14T19:43:36Z", "copyResult": {"modelId": "60577160-c49a-40a1-aa84-282799feb7c8"}}' headers: - apim-request-id: dc24be99-ebe4-4536-aedb-366d73badc31 + apim-request-id: 251caa82-3d98-4da0-ae41-759e3501937d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:37 GMT + date: Mon, 14 Sep 2020 19:43:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '33' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copyresults/e56e3bea-b9e0-45af-9def-03b610da8b1d - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copyresults/e56e3bea-b9e0-45af-9def-03b610da8b1d response: body: - string: '{"status": "failed", "createdDateTime": "2020-07-10T18:44:38.4604736Z", - "lastUpdatedDateTime": "2020-07-10T18:44:38.4604739Z", "copyResult": {"modelId": - "368dc3e3-e790-4c35-8ed0-e930eb83c095", "errors": [{"code": "AuthorizationError", + string: '{"status": "failed", "createdDateTime": "2020-09-14T19:43:41.5688493Z", + "lastUpdatedDateTime": "2020-09-14T19:43:41.5688496Z", "copyResult": {"modelId": + "60577160-c49a-40a1-aa84-282799feb7c8", "errors": [{"code": "AuthorizationError", "message": "Could not retrieve authorization metadata. If this issue persists use a different target model to copy into."}]}}' headers: - apim-request-id: 37f59d0b-23cc-40c2-b0fe-99b4cee0e59e + apim-request-id: 7e70d0bf-879a-4952-8008-c7c868014460 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:42 GMT + date: Mon, 14 Sep 2020 19:43:46 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' + x-envoy-upstream-service-time: '14' x-ms-cs-error-code: AuthorizationError status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a1d4e626-ba18-45f7-8241-52627b90ab37/copyresults/85bf159e-651f-4b13-8ec0-48e38d653c48 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/91eae37c-aa3d-4cd9-8321-bcff4289012a/copyresults/e56e3bea-b9e0-45af-9def-03b610da8b1d version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail_bad_model_id.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail_bad_model_id.yaml index 713a903863b4..32e6e17c4c21 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail_bad_model_id.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_fail_bad_model_id.yaml @@ -3,140 +3,168 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 2b5498b8-579a-4692-b71d-c06c613101e8 + apim-request-id: 4b6c8bc8-05a0-41cf-af2b-cdb74b1fb70f content-length: '0' - date: Mon, 17 Aug 2020 18:10:21 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2eeb69ca-0fe8-4323-9f29-a41043c798b5 + date: Mon, 14 Sep 2020 19:42:45 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '63' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2eeb69ca-0fe8-4323-9f29-a41043c798b5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2eeb69ca-0fe8-4323-9f29-a41043c798b5", "status": - "creating", "createdDateTime": "2020-08-17T18:10:21Z", "lastUpdatedDateTime": - "2020-08-17T18:10:21Z"}}' + string: '{"modelInfo": {"modelId": "2a49b5a8-2049-416a-88b4-5e6d2e9f57c9", "status": + "creating", "createdDateTime": "2020-09-14T19:42:46Z", "lastUpdatedDateTime": + "2020-09-14T19:42:46Z"}}' headers: - apim-request-id: 4514ecba-7f80-4bed-82e0-52b1bba0522c + apim-request-id: 92381390-9e27-40a6-a047-93c7d1a1406f content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:10:26 GMT + date: Mon, 14 Sep 2020 19:42:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2eeb69ca-0fe8-4323-9f29-a41043c798b5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2eeb69ca-0fe8-4323-9f29-a41043c798b5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2eeb69ca-0fe8-4323-9f29-a41043c798b5", "status": - "ready", "createdDateTime": "2020-08-17T18:10:21Z", "lastUpdatedDateTime": - "2020-08-17T18:10:30Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "2a49b5a8-2049-416a-88b4-5e6d2e9f57c9", "status": + "creating", "createdDateTime": "2020-09-14T19:42:46Z", "lastUpdatedDateTime": + "2020-09-14T19:42:46Z"}}' + headers: + apim-request-id: dbc40c6f-db63-474a-9835-70c3662c49eb + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:42:56 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "2a49b5a8-2049-416a-88b4-5e6d2e9f57c9", "status": + "ready", "createdDateTime": "2020-09-14T19:42:46Z", "lastUpdatedDateTime": + "2020-09-14T19:42:59Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 387707cd-19f0-4155-95de-68f6766338ea + apim-request-id: e3cd19c8-6da3-4f73-bd2d-6e394eda7bbd content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:10:31 GMT + date: Mon, 14 Sep 2020 19:43:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2eeb69ca-0fe8-4323-9f29-a41043c798b5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2a49b5a8-2049-416a-88b4-5e6d2e9f57c9?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "939ad63b-85cc-41a0-8da5-0cc4a0c63cee", "accessToken": - "redacted", "expirationDateTimeTicks": 1597774231}' + string: '{"modelId": "b6be8a80-093e-4df6-8ce5-4502f2620a8e", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198982}' headers: - apim-request-id: a6df3e4f-b9e6-4fed-a00f-9e399d2efba7 + apim-request-id: 2f3676ab-5734-4ca4-8fd4-b789035f9281 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:10:31 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/939ad63b-85cc-41a0-8da5-0cc4a0c63cee + date: Mon, 14 Sep 2020 19:43:02 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b6be8a80-093e-4df6-8ce5-4502f2620a8e strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '26' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "939ad63b-85cc-41a0-8da5-0cc4a0c63cee", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1597774231}}\''''' + "copyAuthorization": {"modelId": "b6be8a80-093e-4df6-8ce5-4502f2620a8e", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600198982}}\''''' headers: + Accept: + - application/json Content-Length: - '447' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/00000000-0000-0000-0000-000000000000/copy response: body: string: '{"error": {"code": "1022", "message": "Model with ''id=00000000-0000-0000-0000-000000000000'' not found."}}' headers: - apim-request-id: 0a899fc9-fa7b-4e49-8ca9-8ba2f7323857 + apim-request-id: 3bf69878-105a-4137-8216-c2e5cff0077d content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:10:31 GMT + date: Mon, 14 Sep 2020 19:43:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '20' status: code: 404 message: Not Found - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/copy + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/00000000-0000-0000-0000-000000000000/copy version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml index 7fd4c4d5ab79..5ccfed8a13cf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_successful.yaml @@ -3,204 +3,276 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 06435be2-1329-4aab-b2b7-7dbe63e2e041 + apim-request-id: 415540b3-c384-4618-8b78-0d6222ba1772 content-length: '0' - date: Fri, 10 Jul 2020 18:44:42 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df + date: Mon, 14 Sep 2020 19:42:29 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '73' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cfccdc29-a189-4470-bd1f-8bc31a58b1df", "status": - "creating", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": - "2020-07-10T18:44:42Z"}}' + string: '{"modelInfo": {"modelId": "34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362", "status": + "creating", "createdDateTime": "2020-09-14T19:42:29Z", "lastUpdatedDateTime": + "2020-09-14T19:42:29Z"}}' headers: - apim-request-id: 90b558e2-1f31-4e9d-b89a-a000351de8de + apim-request-id: e27d93ee-176e-4224-ab35-b1622f1101b4 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:47 GMT + date: Mon, 14 Sep 2020 19:42:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cfccdc29-a189-4470-bd1f-8bc31a58b1df", "status": - "creating", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": - "2020-07-10T18:44:42Z"}}' + string: '{"modelInfo": {"modelId": "34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362", "status": + "creating", "createdDateTime": "2020-09-14T19:42:29Z", "lastUpdatedDateTime": + "2020-09-14T19:42:29Z"}}' headers: - apim-request-id: a87ed7b6-6075-4bba-999a-32b078d7d091 + apim-request-id: 7adfc58d-3293-4a52-b941-e658bfbbf31d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:52 GMT + date: Mon, 14 Sep 2020 19:42:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '40' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cfccdc29-a189-4470-bd1f-8bc31a58b1df", "status": - "ready", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": - "2020-07-10T18:44:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362", "status": + "ready", "createdDateTime": "2020-09-14T19:42:29Z", "lastUpdatedDateTime": + "2020-09-14T19:42:42Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: e0415357-08e3-4979-b7a0-8df50324d966 + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 420c7924-bc91-45e0-8bdf-95e9dfbe6a2e content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:58 GMT + date: Mon, 14 Sep 2020 19:42:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5", "accessToken": - "redacted", "expirationDateTimeTicks": 1594493098}' + string: '{"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5", "accessToken": + "redacted", "expirationDateTimeTicks": 1600198965}' headers: - apim-request-id: 721ad26d-2e6b-41aa-b1d8-84a641822665 + apim-request-id: 1805e9d6-f849-4936-9cc4-ae244c9cd204 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:44:58 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b77cd47f-bc9e-4a64-bc90-928de19461c5 + date: Mon, 14 Sep 2020 19:42:44 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/0cdc8f3d-2c1c-498a-b9c3-56edc64031b5 strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '47' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493098}}\''''' + "copyAuthorization": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600198965}}\''''' headers: + Accept: + - application/json Content-Length: - '447' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copy response: body: string: '' headers: - apim-request-id: 087be649-1926-441e-b2e8-4f6bc7a48772 + apim-request-id: 1100a5c9-c264-45dd-aed0-eda97723a19d content-length: '0' - date: Fri, 10 Jul 2020 18:44:58 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 + date: Mon, 14 Sep 2020 19:42:45 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '197' + x-envoy-upstream-service-time: '39' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copy + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copy - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:58Z", - "lastUpdatedDateTime": "2020-07-10T18:44:58Z", "copyResult": {"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:42:45Z", + "lastUpdatedDateTime": "2020-09-14T19:42:45Z", "copyResult": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5"}}' headers: - apim-request-id: b2148cb5-04ca-4fb7-ad2d-28052abc9108 + apim-request-id: 0e98c7dd-e36f-4796-a88c-4529a563d335 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:03 GMT + date: Mon, 14 Sep 2020 19:42:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:42:45Z", + "lastUpdatedDateTime": "2020-09-14T19:42:45Z", "copyResult": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5"}}' + headers: + apim-request-id: 8d45de09-7db1-4aec-b8a8-c7f0c4032dc5 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:42:54 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:42:45Z", + "lastUpdatedDateTime": "2020-09-14T19:42:45Z", "copyResult": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5"}}' + headers: + apim-request-id: 25b642f2-d749-4c44-9648-f76708af687c + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:42:59 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '11' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:08.5389575Z", - "lastUpdatedDateTime": "2020-07-10T18:45:08.5389579Z", "copyResult": {"modelId": - "b77cd47f-bc9e-4a64-bc90-928de19461c5"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:42:45Z", + "lastUpdatedDateTime": "2020-09-14T19:42:45Z", "copyResult": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5"}}' headers: - apim-request-id: 9d20126e-ac8e-4f2d-8b26-4e3b036d2f3e + apim-request-id: 2e276a16-5fd6-45ab-97a2-2e097f574e2e content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:08 GMT + date: Mon, 14 Sep 2020 19:43:05 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:42:45Z", + "lastUpdatedDateTime": "2020-09-14T19:42:45Z", "copyResult": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5"}}' + headers: + apim-request-id: 7bedafed-d6de-451f-a9d4-e1ab62d9991f + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:43:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -208,41 +280,65 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cfccdc29-a189-4470-bd1f-8bc31a58b1df/copyresults/9c693e86-eaec-41b2-abff-482ef397cf58 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:43:11.2787931Z", + "lastUpdatedDateTime": "2020-09-14T19:43:11.2787933Z", "copyResult": {"modelId": + "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5"}}' + headers: + apim-request-id: 152d8eb8-bab6-4f01-97bb-c63d04898de2 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:43:15 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '10' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34a140bf-5eae-4c4f-a4f8-0f8bbb4a0362/copyresults/ccbd8c3d-27e9-4d39-8036-b9a4ce6f30c8 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b77cd47f-bc9e-4a64-bc90-928de19461c5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/0cdc8f3d-2c1c-498a-b9c3-56edc64031b5?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b77cd47f-bc9e-4a64-bc90-928de19461c5", "status": - "ready", "createdDateTime": "2020-07-10T18:44:42Z", "lastUpdatedDateTime": - "2020-07-10T18:44:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "0cdc8f3d-2c1c-498a-b9c3-56edc64031b5", "status": + "ready", "createdDateTime": "2020-09-14T19:42:29Z", "lastUpdatedDateTime": + "2020-09-14T19:42:42Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 0bbfc592-9665-4a0b-97c2-fbef80c7a48f + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 4285e388-cd19-4c2f-9dcb-23e607f55c7b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:08 GMT + date: Mon, 14 Sep 2020 19:43:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/b77cd47f-bc9e-4a64-bc90-928de19461c5?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/0cdc8f3d-2c1c-498a-b9c3-56edc64031b5?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml index ba4d69c24c89..c8fef17028fb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_copy_model_async.test_copy_model_transform.yaml @@ -3,79 +3,105 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: ac31a063-5bf8-4f11-806a-d2a4df9ca109 + apim-request-id: 22dc4411-e1ee-4d45-a145-c504253e204c content-length: '0' - date: Fri, 10 Jul 2020 18:45:08 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70 + date: Mon, 14 Sep 2020 19:43:16 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '44' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca944d89-3922-444e-a26f-624593d4cb70", "status": - "creating", "createdDateTime": "2020-07-10T18:45:09Z", "lastUpdatedDateTime": - "2020-07-10T18:45:09Z"}}' + string: '{"modelInfo": {"modelId": "121f481c-77c4-4f47-849d-68cc5b5a1789", "status": + "creating", "createdDateTime": "2020-09-14T19:43:16Z", "lastUpdatedDateTime": + "2020-09-14T19:43:16Z"}}' headers: - apim-request-id: 30e3ddba-4979-4a22-b267-56d31025b90c + apim-request-id: a13fb8a6-dc80-4e16-8856-61bf644c3bc8 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:14 GMT + date: Mon, 14 Sep 2020 19:43:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca944d89-3922-444e-a26f-624593d4cb70", "status": - "ready", "createdDateTime": "2020-07-10T18:45:09Z", "lastUpdatedDateTime": - "2020-07-10T18:45:19Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "121f481c-77c4-4f47-849d-68cc5b5a1789", "status": + "creating", "createdDateTime": "2020-09-14T19:43:16Z", "lastUpdatedDateTime": + "2020-09-14T19:43:16Z"}}' + headers: + apim-request-id: 5c635389-0ff5-4e9c-952d-04c4bbe026ab + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:43:25 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "121f481c-77c4-4f47-849d-68cc5b5a1789", "status": + "ready", "createdDateTime": "2020-09-14T19:43:16Z", "lastUpdatedDateTime": + "2020-09-14T19:43:30Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: c4d48a5e-03e6-4688-b885-37af8194ec5e + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 369af8cf-76da-4354-85a7-8d97e0d01b99 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:19 GMT + date: Mon, 14 Sep 2020 19:43:31 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -83,152 +109,108 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/copyAuthorization + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/copyAuthorization response: body: - string: '{"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea", "accessToken": - "redacted", "expirationDateTimeTicks": 1594493119}' + string: '{"modelId": "11540bea-6c26-4d11-aa0b-af846218d3af", "accessToken": + "redacted", "expirationDateTimeTicks": 1600199011}' headers: - apim-request-id: 5a963284-520e-4ad1-a6cd-9ef0092a1597 + apim-request-id: 7cb8823b-ceec-4375-b609-938bf20d07ec content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:19 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6a65b203-2fa5-42ae-9977-8f9f71acfaea + date: Mon, 14 Sep 2020 19:43:31 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/11540bea-6c26-4d11-aa0b-af846218d3af strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '25' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/copyAuthorization + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/copyAuthorization - request: body: 'b''b\''{"targetResourceId": "resource_id", "targetResourceRegion": "centraluseuap", - "copyAuthorization": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea", "accessToken": - 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1594493119}}\''''' + "copyAuthorization": {"modelId": "11540bea-6c26-4d11-aa0b-af846218d3af", "accessToken": + 00000000-0000-0000-0000-000000000000, "expirationDateTimeTicks": 1600199011}}\''''' headers: + Accept: + - application/json Content-Length: - '447' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copy + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copy response: body: string: '' headers: - apim-request-id: 5e89121f-56d7-49cd-960a-51640859ee2f + apim-request-id: c1a6b8f9-301b-4968-9683-71e519bdf46e content-length: '0' - date: Fri, 10 Jul 2020 18:45:20 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + date: Mon, 14 Sep 2020 19:43:31 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copyresults/195e6324-7075-46e2-9f95-0ba86a2ef0e7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1444' + x-envoy-upstream-service-time: '36' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copy -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:20Z", - "lastUpdatedDateTime": "2020-07-10T18:45:20Z", "copyResult": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' - headers: - apim-request-id: 16bac132-3089-42d0-b7ca-f68d9c33dff4 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:26 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copy - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copyresults/195e6324-7075-46e2-9f95-0ba86a2ef0e7 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:20Z", - "lastUpdatedDateTime": "2020-07-10T18:45:20Z", "copyResult": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:43:32Z", + "lastUpdatedDateTime": "2020-09-14T19:43:32Z", "copyResult": {"modelId": "11540bea-6c26-4d11-aa0b-af846218d3af"}}' headers: - apim-request-id: 561386ed-3d8e-4573-a90f-fb386c900d3d + apim-request-id: 921dd8e3-3fa3-433f-b3d8-c7d44d58f54d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:31 GMT + date: Mon, 14 Sep 2020 19:43:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copyresults/195e6324-7075-46e2-9f95-0ba86a2ef0e7 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copyresults/195e6324-7075-46e2-9f95-0ba86a2ef0e7 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:20Z", - "lastUpdatedDateTime": "2020-07-10T18:45:20Z", "copyResult": {"modelId": "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:43:41.3871659Z", + "lastUpdatedDateTime": "2020-09-14T19:43:41.3871662Z", "copyResult": {"modelId": + "11540bea-6c26-4d11-aa0b-af846218d3af"}}' headers: - apim-request-id: 56f94153-18db-48ce-b15e-7871c6694aa8 + apim-request-id: d6db3136-53ce-4899-adb1-5c12b09d7c57 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:36 GMT + date: Mon, 14 Sep 2020 19:43:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '11' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:38.6223767Z", - "lastUpdatedDateTime": "2020-07-10T18:45:38.6223769Z", "copyResult": {"modelId": - "6a65b203-2fa5-42ae-9977-8f9f71acfaea"}}' - headers: - apim-request-id: b72c0640-bd5d-4e95-b970-c63f004f829e - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:45:41 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '9' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca944d89-3922-444e-a26f-624593d4cb70/copyresults/5efb3738-585d-4a94-8889-e94edc4e2bb5 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/121f481c-77c4-4f47-849d-68cc5b5a1789/copyresults/195e6324-7075-46e2-9f95-0ba86a2ef0e7 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml index 9ffa05f64e0f..c72e67390030 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_authentication_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: xx headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,30 +13,20 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 2f76ee2a-5f45-4dc3-ba8f-712ce7818a0e content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:45:42 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 19:45:29 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml index c66cc368646e..2f0d9fd7a20b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_damaged_file.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 0434ba73-f8bb-4aee-aad7-7d2c59662f4f + - 6d81a86e-b2ae-4fee-bd7f-ab910d0dc6c4 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:17 GMT + - Mon, 14 Sep 2020 19:45:46 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '37' status: code: 201 message: Created @@ -48,93 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:18Z"}}' - headers: - apim-request-id: - - 1d1c9e7e-68ed-4ff9-83b9-f9157fd15375 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:22 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '51' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:18Z"}}' - headers: - apim-request-id: - - 73be471f-5204-400a-90d7-f741e320337c - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:28 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:18Z"}}' + string: '{"modelInfo": {"modelId": "d7ffbe39-7738-425d-9727-b216d827d3ac", "status": + "creating", "createdDateTime": "2020-09-14T19:45:47Z", "lastUpdatedDateTime": + "2020-09-14T19:45:47Z"}}' headers: apim-request-id: - - b476325b-ebad-46de-a950-3a39fba9972a + - 7b81b0ee-4d3e-4fdf-aaf4-bf4c8c9ba4ed content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:33 GMT + - Mon, 14 Sep 2020 19:45:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,43 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:18Z"}}' - headers: - apim-request-id: - - e8705275-f01f-4583-b2e1-5b02c62314b3 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:38 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '50' + - '17' status: code: 200 message: OK @@ -192,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:18Z"}}' + string: '{"modelInfo": {"modelId": "d7ffbe39-7738-425d-9727-b216d827d3ac", "status": + "creating", "createdDateTime": "2020-09-14T19:45:47Z", "lastUpdatedDateTime": + "2020-09-14T19:45:47Z"}}' headers: apim-request-id: - - b93efeae-6ff1-4b2e-a14e-b9c4d8bbc886 + - bfff42c2-ca97-4ce7-94c8-0cf836a87687 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:43 GMT + - Mon, 14 Sep 2020 19:45:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -214,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '15' status: code: 200 message: OK @@ -228,21 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "creating", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:18Z"}}' + string: '{"modelInfo": {"modelId": "d7ffbe39-7738-425d-9727-b216d827d3ac", "status": + "creating", "createdDateTime": "2020-09-14T19:45:47Z", "lastUpdatedDateTime": + "2020-09-14T19:45:47Z"}}' headers: apim-request-id: - - 5ba7e2f0-80b2-4a22-899b-6899a1039f04 + - 27dd59ef-f9ca-4c4b-adee-04cb0bb7f829 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:49 GMT + - Mon, 14 Sep 2020 19:46:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -250,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '14' status: code: 200 message: OK @@ -264,31 +156,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c64f76a9-d947-4825-ad57-4636927d9e5d", "status": - "ready", "createdDateTime": "2020-07-10T18:46:18Z", "lastUpdatedDateTime": - "2020-07-10T18:46:51Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "d7ffbe39-7738-425d-9727-b216d827d3ac", "status": + "ready", "createdDateTime": "2020-09-14T19:45:47Z", "lastUpdatedDateTime": + "2020-09-14T19:46:03Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 2c39391d-cb91-4907-a8d9-d1242d3f29bf + - 61ecdb3a-35f5-4d89-8ea4-97a04467e43f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:54 GMT + - Mon, 14 Sep 2020 19:46:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -296,7 +188,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '16' status: code: 200 message: OK @@ -304,7 +196,7 @@ interactions: body: '%PDFUUU' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -314,21 +206,21 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 3835f527-578b-4898-baa4-a0caea668a4d + - fc30fce2-10fe-47a5-b5e9-402a745a3945 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:54 GMT + - Mon, 14 Sep 2020 19:46:08 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d/analyzeresults/1b95d6ab-4000-4702-909f-fe607e78bdd4 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac/analyzeresults/7e9a0b99-c181-48ed-88b0-aef98fbada29 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: @@ -348,30 +240,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c64f76a9-d947-4825-ad57-4636927d9e5d/analyzeresults/1b95d6ab-4000-4702-909f-fe607e78bdd4 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d7ffbe39-7738-425d-9727-b216d827d3ac/analyzeresults/7e9a0b99-c181-48ed-88b0-aef98fbada29 response: body: - string: '{"status": "failed", "createdDateTime": "2020-07-10T18:46:54Z", "lastUpdatedDateTime": - "2020-07-10T18:46:56Z", "analyzeResult": {"version": "2.0.0", "readResults": + string: '{"status": "failed", "createdDateTime": "2020-09-14T19:46:08Z", "lastUpdatedDateTime": + "2020-09-14T19:46:08Z", "analyzeResult": {"version": "2.1.0", "readResults": [], "pageResults": [], "documentResults": [], "errors": [{"code": "2005", "message": "Unable to read file."}]}}' headers: apim-request-id: - - 58b0d45b-79d6-4fe9-b157-da648e800df9 + - a1a81067-270a-4572-aa49-5b3c1f0b4c81 content-length: - '275' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:58 GMT + - Mon, 14 Sep 2020 19:46:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '14' x-ms-cs-error-code: - '2005' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml index 3fb2c877aa7c..6d2ad0d9ee9b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 48487ef8-fcf2-4ddf-9abf-63089ba7f15e + - 947031d4-2a42-489f-85e7-806f886cf038 content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:09 GMT + - Mon, 14 Sep 2020 19:45:29 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7613eee5-0acf-450b-8dd4-74a605f72706 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '431' + - '44' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7613eee5-0acf-450b-8dd4-74a605f72706?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", "status": - "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": - "2020-07-10T18:42:13Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "7613eee5-0acf-450b-8dd4-74a605f72706", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:45:29Z", + "lastUpdatedDateTime": "2020-09-14T19:45:32Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - f81040b7-2151-4edb-b833-ef34d2f3f039 + - 48834b5f-a618-405c-936a-13c394a10b7b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:15 GMT + - Mon, 14 Sep 2020 19:45:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '16' status: code: 200 message: OK @@ -8501,7 +8501,7 @@ interactions: BRQAUUAFFABRQB//2Q== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -8511,27 +8511,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7613eee5-0acf-450b-8dd4-74a605f72706/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - bf28b862-eec2-40ed-be86-068bc50e08fe + - b8fb3806-20cb-4d3f-8b81-2aca120c66ee content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:15 GMT + - Mon, 14 Sep 2020 19:45:36 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf/analyzeresults/c4c089d5-46d1-4c7a-be0e-dd26b584aee7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7613eee5-0acf-450b-8dd4-74a605f72706/analyzeresults/5b2ac53c-b8ca-4a04-a76b-c4f13bd4090c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '128' + - '55' status: code: 202 message: Accepted @@ -8545,111 +8545,149 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7613eee5-0acf-450b-8dd4-74a605f72706/analyzeresults/5b2ac53c-b8ca-4a04-a76b-c4f13bd4090c + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:45:36Z", + "lastUpdatedDateTime": "2020-09-14T19:45:40Z"}' + headers: + apim-request-id: + - 0b2242c1-995c-4e3b-ba21-80c7377fbd8e + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:45:41 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '37' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/67f42e15-4d6e-4a01-b92d-a0cb9b0414cf/analyzeresults/c4c089d5-46d1-4c7a-be0e-dd26b584aee7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7613eee5-0acf-450b-8dd4-74a605f72706/analyzeresults/5b2ac53c-b8ca-4a04-a76b-c4f13bd4090c response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:16Z", - "lastUpdatedDateTime": "2020-07-10T18:42:21Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": - [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": - "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, 1309, 1610, 1072, 1610]}, - {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", "boundingBox": [1309, - 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": 2, "columnIndex": - 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, 1309, 1658, 1072, - 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", "boundingBox": - [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Bernie Sanders", "boundingBox": [482, 1658, 1072, 1658, 1072, - 1708, 482, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": "TOTAL", "boundingBox": - [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, {"rowIndex": 3, "columnIndex": - 2, "text": "$144.00", "boundingBox": [1309, 1658, 1544, 1658, 1544, 1708, - 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Details", "boundingBox": [156, 1038, 847, 1038, 847, 1087, 156, - 1087]}, {"rowIndex": 0, "columnIndex": 1, "text": "Quantity", "boundingBox": - [847, 1038, 1072, 1038, 1072, 1087, 847, 1087]}, {"rowIndex": 0, "columnIndex": - 2, "text": "Unit Price", "boundingBox": [1072, 1038, 1309, 1038, 1309, 1087, - 1072, 1087]}, {"rowIndex": 0, "columnIndex": 3, "text": "Total", "boundingBox": - [1309, 1038, 1544, 1038, 1544, 1087, 1309, 1087]}, {"rowIndex": 1, "columnIndex": - 0, "text": "Bindings", "boundingBox": [156, 1087, 847, 1087, 847, 1128, 156, - 1128]}, {"rowIndex": 1, "columnIndex": 1, "text": "20", "boundingBox": [847, - 1087, 1072, 1087, 1072, 1128, 847, 1128]}, {"rowIndex": 1, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1087, 1309, 1087, 1309, 1128, 1072, - 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, {"rowIndex": 2, "columnIndex": - 0, "text": "Covers Small", "boundingBox": [156, 1128, 847, 1128, 847, 1172, - 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, {"rowIndex": 2, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1128, 1309, 1128, 1309, 1172, 1072, - 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Feather Bookmark", "boundingBox": [156, 1172, 847, 1172, 847, - 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, {"rowIndex": 3, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1172, 1309, 1172, 1309, 1216, 1072, - 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, {"rowIndex": 4, "columnIndex": - 0, "text": "Copper Swirl Marker", "boundingBox": [156, 1216, 847, 1216, 847, - 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, {"rowIndex": 4, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, - 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"DatedAs": {"type": - "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": - [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": - 1.0}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", - "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, - 1429.0, 1697.0], "confidence": 1.0}, "Website": {"type": "string", "valueString": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:45:36Z", + "lastUpdatedDateTime": "2020-09-14T19:45:43Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "selectionMarks": [{"boundingBox": [2, 2060, 195, 2060, + 195, 2200, 2, 2200], "confidence": 0.881, "state": "unselected"}]}], "pageResults": + [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, + "columnIndex": 1, "text": "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, + 1309, 1610, 1072, 1610]}, {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", + "boundingBox": [1309, 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": + 2, "columnIndex": 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, + 1309, 1658, 1072, 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", + "boundingBox": [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": + 3, "columnIndex": 0, "text": "Bernie Sanders", "boundingBox": [489, 1658, + 1072, 1658, 1072, 1708, 489, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": + "TOTAL", "boundingBox": [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, + {"rowIndex": 3, "columnIndex": 2, "text": "$144.00", "boundingBox": [1309, + 1658, 1544, 1658, 1544, 1708, 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Details", "boundingBox": [156, + 1038, 847, 1038, 847, 1087, 156, 1087]}, {"rowIndex": 0, "columnIndex": 1, + "text": "Quantity", "boundingBox": [847, 1038, 1072, 1038, 1072, 1087, 847, + 1087]}, {"rowIndex": 0, "columnIndex": 2, "text": "Unit Price", "boundingBox": + [1072, 1038, 1309, 1038, 1309, 1087, 1072, 1087]}, {"rowIndex": 0, "columnIndex": + 3, "text": "Total", "boundingBox": [1309, 1038, 1544, 1038, 1544, 1087, 1309, + 1087]}, {"rowIndex": 1, "columnIndex": 0, "text": "Bindings", "boundingBox": + [156, 1087, 847, 1087, 847, 1128, 156, 1128]}, {"rowIndex": 1, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1087, 1072, 1087, 1072, 1128, 847, 1128]}, + {"rowIndex": 1, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1087, + 1309, 1087, 1309, 1128, 1072, 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, + {"rowIndex": 2, "columnIndex": 0, "text": "Covers Small", "boundingBox": [156, + 1128, 847, 1128, 847, 1172, 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, + "text": "20", "boundingBox": [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, + {"rowIndex": 2, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1128, + 1309, 1128, 1309, 1172, 1072, 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, + {"rowIndex": 3, "columnIndex": 0, "text": "Feather Bookmark", "boundingBox": + [156, 1172, 847, 1172, 847, 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, + {"rowIndex": 3, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1172, + 1309, 1172, 1309, 1216, 1072, 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, + {"rowIndex": 4, "columnIndex": 0, "text": "Copper Swirl Marker", "boundingBox": + [156, 1216, 847, 1216, 847, 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, + {"rowIndex": 4, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1216, + 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], + "documentResults": [{"docType": "custom:7613eee5-0acf-450b-8dd4-74a605f72706", + "modelId": "7613eee5-0acf-450b-8dd4-74a605f72706", "pageRange": [1, 1], "fields": + {"PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1277.0, 461.0, 1376.0, 461.0, 1376.0, + 489.0, 1277.0, 489.0], "confidence": 0.94}, "Merchant": {"type": "string", + "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": + [620.0, 205.0, 1075.0, 205.0, 1075.0, 266.0, 620.0, 266.0], "confidence": + 0.97}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", + "page": 1, "boundingBox": [1427.0, 1669.0, 1529.0, 1669.0, 1529.0, 1698.0, + 1427.0, 1698.0], "confidence": 0.991}, "Quantity": {"type": "number", "text": + "20", "page": 1, "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, 1119.0, + 861.0, 1119.0], "confidence": 0.962}, "Website": {"type": "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": 1, "boundingBox": - [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": - "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, - 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "VendorName": - {"type": "string", "valueString": "Hillary Swank", "text": "Hillary Swank", - "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, - 641.0], "confidence": 1.0}, "Quantity": {"type": "number", "text": "20", "page": - 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], - "confidence": 1.0}, "Signature": {"type": "string", "valueString": "Bernie - Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, - 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, "CompanyName": - {"type": "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly - Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, - 378.0, 682.0], "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": - "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, - 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0}, "Email": {"type": + [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0], "confidence": 0.95}, + "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, + 1643.0], "confidence": 0.994}, "Subtotal": {"type": "string", "valueString": + "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1426.0, 1572.0, 1531.0, + 1572.0, 1531.0, 1599.0, 1426.0, 1599.0], "confidence": 0.984}, "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": - "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, - 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0}, "CompanyAddress": {"type": "string", "valueString": - "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder - City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, - 754.0, 277.0, 754.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", - "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": - [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}}}], + "page": 1, "boundingBox": [164.0, 479.0, 478.0, 479.0, 478.0, 503.0, 164.0, + 503.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", "valueString": + "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": [364.0, + 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "confidence": 0.89}, "VendorName": + {"type": "string", "valueString": "Hillary Swank", "text": "Hillary Swank", + "page": 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, 639.0, 349.0, + 639.0], "confidence": 0.93}, "CompanyPhoneNumber": {"type": "string", "valueString": + "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": [708.0, + 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0], "confidence": 1.0}, "DatedAs": + {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": + 1, "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], + "confidence": 0.99}, "Signature": {"type": "string", "valueString": "Bernie + Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [489.0, 1670.0, + 765.0, 1670.0, 765.0, 1708.0, 489.0, 1708.0], "confidence": 0.998}, "CompanyAddress": + {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", + "text": "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": + [273.0, 685.0, 565.0, 685.0, 565.0, 751.0, 273.0, 751.0], "confidence": 1.0}, + "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": + "Higgly Wiggly Books", "page": 1, "boundingBox": [375.0, 646.0, 629.0, 646.0, + 629.0, 679.0, 375.0, 679.0], "confidence": 0.95}}, "docTypeConfidence": 1.0}], "errors": []}}' headers: apim-request-id: - - b69c45fe-4ac6-43a5-8332-98a1b3c899ef + - a702fbe4-4402-4221-9c1e-8ff48842ff88 content-length: - - '5839' + - '6054' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:21 GMT + - Mon, 14 Sep 2020 19:45:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml index 9aaf3c99e58c..d551e0300b58 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_blank_page.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 89faca35-cace-435c-85dc-3182369b743e + - 4ab0a9f3-ba77-4979-8581-2e58da8feaae content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:21 GMT + - Mon, 14 Sep 2020 19:45:46 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c45814d4-85a1-4002-b860-328444e31512 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '189' + - '62' status: code: 201 message: Created @@ -48,71 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "3433e426-015e-421a-b794-58fe389a707b", "status": - "creating", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": - "2020-07-10T18:42:22Z"}}' - headers: - apim-request-id: - - 7f5d97f3-ad30-411f-8191-6594dbb7422c - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:42:26 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '156' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c45814d4-85a1-4002-b860-328444e31512?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3433e426-015e-421a-b794-58fe389a707b", "status": - "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": - "2020-07-10T18:42:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "c45814d4-85a1-4002-b860-328444e31512", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:45:47Z", + "lastUpdatedDateTime": "2020-09-14T19:45:49Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - da2a1cb7-3316-4f8a-aa42-374dfc2ecad0 + - ecebc6af-9895-4d32-a475-d888e6c0a689 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:33 GMT + - Mon, 14 Sep 2020 19:45:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -120,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '213' + - '20' status: code: 200 message: OK @@ -579,7 +543,7 @@ interactions: MjU0ODQNCiUlRU9G headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -589,27 +553,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c45814d4-85a1-4002-b860-328444e31512/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - c1b0b63a-6fbd-4571-bfa3-c0eb314e0250 + - 5d540827-b669-45dd-8719-b9fc7f186adc content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:33 GMT + - Mon, 14 Sep 2020 19:45:51 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b/analyzeresults/114ee9b4-0ffd-487d-8460-c7374bc1eddf + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c45814d4-85a1-4002-b860-328444e31512/analyzeresults/72afe993-65ee-44f5-a7f0-4e18acb16624 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '344' + - '60' status: code: 202 message: Accepted @@ -623,36 +587,71 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c45814d4-85a1-4002-b860-328444e31512/analyzeresults/72afe993-65ee-44f5-a7f0-4e18acb16624 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:45:52Z", + "lastUpdatedDateTime": "2020-09-14T19:45:56Z"}' + headers: + apim-request-id: + - 5d71ee4f-1b89-40d3-8029-75f7e5c60356 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:45:57 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '14' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3433e426-015e-421a-b794-58fe389a707b/analyzeresults/114ee9b4-0ffd-487d-8460-c7374bc1eddf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c45814d4-85a1-4002-b860-328444e31512/analyzeresults/72afe993-65ee-44f5-a7f0-4e18acb16624 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:33Z", - "lastUpdatedDateTime": "2020-07-10T18:42:37Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.4967, "height": 10.9967, "unit": "inch"}], "pageResults": [{"page": 1, "tables": - []}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], - "fields": {"CompanyAddress": null, "CompanyName": null, "CompanyPhoneNumber": - null, "DatedAs": null, "Email": null, "Merchant": null, "PhoneNumber": null, - "PurchaseOrderNumber": null, "Quantity": null, "Signature": null, "Subtotal": - null, "Tax": null, "Total": null, "VendorName": null, "Website": null}}], - "errors": []}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:45:52Z", + "lastUpdatedDateTime": "2020-09-14T19:45:59Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch"}], "pageResults": [{"page": 1, "tables": []}], "documentResults": + [{"docType": "custom:c45814d4-85a1-4002-b860-328444e31512", "modelId": "c45814d4-85a1-4002-b860-328444e31512", + "pageRange": [1, 1], "fields": {"CompanyAddress": null, "CompanyName": null, + "CompanyPhoneNumber": null, "DatedAs": null, "Email": null, "Merchant": null, + "PhoneNumber": null, "PurchaseOrderNumber": null, "Quantity": null, "Signature": + null, "Subtotal": null, "Tax": null, "Total": null, "VendorName": null, "Website": + null}, "docTypeConfidence": 1.0}], "errors": []}}' headers: apim-request-id: - - b77706de-7972-4d74-93d4-8713e62ddbc3 + - 1752be73-c7a3-486d-a367-6312d9a81460 content-length: - - '632' + - '721' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:38 GMT + - Mon, 14 Sep 2020 19:46:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1055' + - '14' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml index 44b36049304b..a92741cbad10 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_labeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 4a393869-cb7a-480f-a2c1-64ac3ec087dc + - 67e2bc55-05e1-41ab-8274-02cc5ea535c4 content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:40 GMT + - Mon, 14 Sep 2020 19:46:02 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/07d16ae8-7098-4ef3-bae9-ac8153311aca strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '96' + - '40' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/07d16ae8-7098-4ef3-bae9-ac8153311aca?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", "status": - "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": - "2020-07-10T18:42:43Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "07d16ae8-7098-4ef3-bae9-ac8153311aca", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:46:03Z", + "lastUpdatedDateTime": "2020-09-14T19:46:05Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 51039e0b-205b-4590-b651-2761c96422ae + - 79925fee-34da-45d4-b067-5cbc79078d0a content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:44 GMT + - Mon, 14 Sep 2020 19:46:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '17' status: code: 200 message: OK @@ -8501,7 +8501,7 @@ interactions: BRQAUUAFFABRQB//2Q== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -8511,27 +8511,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/07d16ae8-7098-4ef3-bae9-ac8153311aca/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 9052ef3e-e2cc-4ceb-b5b5-9f44361c5637 + - 97b4c4c7-99a8-4426-aff9-ebc06182c592 content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:46 GMT + - Mon, 14 Sep 2020 19:46:08 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyzeresults/10a6fedf-b37d-4a93-9fee-ebf907ae6b83 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/07d16ae8-7098-4ef3-bae9-ac8153311aca/analyzeresults/2a9b3da6-4418-49d7-94e3-53c58784b9c8 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '176' + - '59' status: code: 202 message: Accepted @@ -8545,303 +8545,270 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyzeresults/10a6fedf-b37d-4a93-9fee-ebf907ae6b83 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/07d16ae8-7098-4ef3-bae9-ac8153311aca/analyzeresults/2a9b3da6-4418-49d7-94e3-53c58784b9c8 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:42:46Z", - "lastUpdatedDateTime": "2020-07-10T18:42:47Z"}' - headers: - apim-request-id: - - 46f54a84-af97-449b-b46c-a6654369f676 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:42:52 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '52' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/98be755b-7bb2-49bc-addb-82ba80fc3007/analyzeresults/10a6fedf-b37d-4a93-9fee-ebf907ae6b83 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:42:46Z", - "lastUpdatedDateTime": "2020-07-10T18:42:56Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:46:09Z", + "lastUpdatedDateTime": "2020-09-14T19:46:12Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.983}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -8877,7 +8844,7 @@ interactions: 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, + {"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"]}, @@ -8886,80 +8853,79 @@ interactions: "#/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, + {"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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": + "documentResults": [{"docType": "custom:07d16ae8-7098-4ef3-bae9-ac8153311aca", + "modelId": "07d16ae8-7098-4ef3-bae9-ac8153311aca", "pageRange": [1, 1], "fields": {"Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", - "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, - 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, + "page": 1, "boundingBox": [1426.0, 1572.0, 1531.0, 1572.0, 1531.0, 1599.0, + 1426.0, 1599.0], "confidence": 0.984, "elements": ["#/readResults/0/lines/42/words/0"]}, "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Email": {"type": "string", - "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, + Swank", "page": 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, 639.0, + 349.0, 639.0], "confidence": 0.93, "elements": ["#/readResults/0/lines/10/words/2", + "#/readResults/0/lines/10/words/3"]}, "Website": {"type": "string", "valueString": + "www.herolimited.com", "text": "www.herolimited.com", "page": 1, "boundingBox": + [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0], "confidence": 0.95, + "elements": ["#/readResults/0/lines/4/words/1"]}, "DatedAs": {"type": "string", + "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], "confidence": + 0.99, "elements": ["#/readResults/0/lines/6/words/2"]}, "Quantity": {"type": + "number", "text": "20", "page": 1, "boundingBox": [861.0, 1094.0, 892.0, 1094.0, + 892.0, 1119.0, 861.0, 1119.0], "confidence": 0.962, "elements": ["#/readResults/0/lines/26/words/0"]}, + "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie + Sanders", "page": 1, "boundingBox": [489.0, 1670.0, 765.0, 1670.0, 765.0, + 1708.0, 489.0, 1708.0], "confidence": 0.998, "elements": ["#/readResults/0/lines/45/words/0", + "#/readResults/0/lines/45/words/1"]}, "PurchaseOrderNumber": {"type": "string", + "valueString": "948284", "text": "948284", "page": 1, "boundingBox": [1277.0, + 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "confidence": 0.94, "elements": + ["#/readResults/0/lines/8/words/3"]}, "Email": {"type": "string", "valueString": + "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, + "boundingBox": [164.0, 479.0, 478.0, 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": + 1.0, "elements": ["#/readResults/0/lines/7/words/0"]}, "CompanyAddress": {"type": + "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": + "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [273.0, + 685.0, 565.0, 685.0, 565.0, 751.0, 273.0, 751.0], "confidence": 1.0, "elements": + ["#/readResults/0/lines/12/words/1", "#/readResults/0/lines/12/words/2", "#/readResults/0/lines/12/words/3", + "#/readResults/0/lines/12/words/4", "#/readResults/0/lines/13/words/0", "#/readResults/0/lines/13/words/1", + "#/readResults/0/lines/13/words/2", "#/readResults/0/lines/13/words/3"]}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, + 378.0], "confidence": 0.89, "elements": ["#/readResults/0/lines/3/words/2"]}, "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": - "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, - 750.0, 713.0, 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, - "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", - "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, - 450.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, - "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder - City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": - 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/12/words/1", - "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", - "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", - "#/analyzeResult/readResults/0/lines/13/words/1", "#/analyzeResult/readResults/0/lines/13/words/2", - "#/analyzeResult/readResults/0/lines/13/words/3"]}, "Website": {"type": "string", - "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": - 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, + "938-294-2949", "page": 1, "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, + 749.0, 708.0, 749.0], "confidence": 1.0, "elements": ["#/readResults/0/lines/14/words/1"]}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": - 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, - 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, - "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie - Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, - 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "CompanyName": {"type": - "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", - "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, - 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, + 1, "boundingBox": [1427.0, 1669.0, 1529.0, 1669.0, 1529.0, 1698.0, 1427.0, + 1698.0], "confidence": 0.991, "elements": ["#/readResults/0/lines/47/words/0"]}, "Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero - Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, - 266.0, 621.0, 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", - "#/analyzeResult/readResults/0/lines/1/words/1"]}, "Quantity": {"type": "number", - "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, - 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/26/words/0"]}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, - "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}}}], - "errors": []}}' + Limited", "page": 1, "boundingBox": [620.0, 205.0, 1075.0, 205.0, 1075.0, + 266.0, 620.0, 266.0], "confidence": 0.97, "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "CompanyName": {"type": "string", "valueString": + "Higgly Wiggly Books", "text": "Higgly Wiggly Books", "page": 1, "boundingBox": + [375.0, 646.0, 629.0, 646.0, 629.0, 679.0, 375.0, 679.0], "confidence": 0.95, + "elements": ["#/readResults/0/lines/11/words/2", "#/readResults/0/lines/11/words/3", + "#/readResults/0/lines/11/words/4"]}, "Tax": {"type": "string", "valueString": + "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1458.0, 1615.0, 1529.0, + 1615.0, 1529.0, 1643.0, 1458.0, 1643.0], "confidence": 0.994, "elements": + ["#/readResults/0/lines/44/words/0"]}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: apim-request-id: - - 0a74a555-893c-47de-9f84-b5cd4009a871 + - 0632ea9c-8e1d-4433-89e4-ce8c260d5e82 content-length: - - '25282' + - '25118' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:42:57 GMT + - Mon, 14 Sep 2020 19:46:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '20' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml index aa1927b411fe..b1bed1daa5f9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - afc5acc7-f13d-4801-8a8f-1def94bf716e + - 04b5fa8c-009e-45a7-9ba8-4d5b5b445890 content-length: - '0' date: - - Fri, 10 Jul 2020 18:42:57 GMT + - Mon, 14 Sep 2020 19:46:03 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '186' + - '40' status: code: 201 message: Created @@ -48,37 +48,38 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", "status": - "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": - "2020-07-10T18:42:59Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:46:03Z", + "lastUpdatedDateTime": "2020-09-14T19:46:05Z"}, "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": []}}' headers: apim-request-id: - - 9976e2c7-2e9f-4626-b92f-7f95ff860604 + - 129b6a80-ac0f-48da-b03d-b79bb5472953 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:03 GMT + - Mon, 14 Sep 2020 19:46:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '17' status: code: 200 message: OK @@ -2006,7 +2007,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2016,27 +2017,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - a4cfaa5b-ee3a-4afe-afdf-863667c126b3 + - 03b49050-0038-45ae-a8d3-f7beb5e0bbeb content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:04 GMT + - Mon, 14 Sep 2020 19:46:08 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7/analyzeresults/1c0c3cbb-cbfb-4ad7-8c52-73e788bab495 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '982' + - '47' status: code: 202 message: Accepted @@ -2050,98 +2051,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:03Z", - "lastUpdatedDateTime": "2020-07-10T18:43:03Z"}' - headers: - apim-request-id: - - 24744cf4-8624-487b-af99-58cf96f6e8a5 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:43:09 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '47' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:03Z", - "lastUpdatedDateTime": "2020-07-10T18:43:13Z"}' - headers: - apim-request-id: - - 6bc9d4ed-2321-4c8a-9957-cd1b892e4359 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:43:17 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '2438' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7/analyzeresults/1c0c3cbb-cbfb-4ad7-8c52-73e788bab495 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:03Z", - "lastUpdatedDateTime": "2020-07-10T18:43:13Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:46:09Z", + "lastUpdatedDateTime": "2020-09-14T19:46:12Z"}' headers: apim-request-id: - - befabb4b-3c72-438d-aace-9de146c9bc00 + - fc26ccaf-d765-4e63-8ab7-101b655476f5 content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:22 GMT + - Mon, 14 Sep 2020 19:46:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '14' status: code: 200 message: OK @@ -2155,162 +2086,172 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e8f38257-82e1-4044-959c-6025c55088a5/analyzeresults/9719bdaf-608c-4591-91b1-502769afd253 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7/analyzeresults/1c0c3cbb-cbfb-4ad7-8c52-73e788bab495 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:03Z", - "lastUpdatedDateTime": "2020-07-10T18:43:22Z", "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": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:46:09Z", + "lastUpdatedDateTime": "2020-09-14T19:46:16Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, + 1.1035, 10.9943, 0, 10.9943], "confidence": 0.881, "state": "unselected"}, + {"boundingBox": [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], + "confidence": 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, + 0.0263, 1.0499, 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, + {"boundingBox": [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "selectionMarks": [{"boundingBox": [0, + 9.877, 1.1039, 9.877, 1.1039, 10.9946, 0, 10.9946], "confidence": 0.881, "state": + "unselected"}, {"boundingBox": [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, + 0, 10.9975], "confidence": 0.833, "state": "unselected"}, {"boundingBox": + [0, 0.0268, 1.048, 0.0268, 1.048, 1.0107, 0, 1.0107], "confidence": 0.6, "state": + "unselected"}, {"boundingBox": [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, + 11, 6.8221, 11], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5061, 9.9417, 8.4988, 9.9417, 8.4988, 11, 7.5061, 11], "confidence": 0.553, + "state": "unselected"}]}], "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": {"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}, "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}, "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}, "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}, "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}, "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": + "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:cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7", "modelId": "cccd3ff5-30e5-4c3a-a7bf-b3f24dd818c7", + "pageRange": [1, 3], "fields": {"CustomerAddress": {"type": "string", "valueString": + "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": + 1, "boundingBox": [6.015, 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, 2.03], "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}, "Merchant2": {"type": "string", "valueString": "Company", + "text": "Company", "page": 3, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, + 1.28, 0.885, 1.28], "confidence": 1.0}, "FirstPrice": {"type": "string", "valueString": + "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, + 5.78, 3.32, 5.425, 3.32], "confidence": 1.0}, "CustomerPhoneNumber": {"type": + "string", "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, + "boundingBox": [6.01, 2.12, 6.935, 2.12, 6.935, 2.225, 6.01, 2.225], "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}, "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}, "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}, "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}, "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}, - "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}, "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}, "Customer2": {"type": "string", "valueString": - "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, - 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}, - "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "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}, "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.015000000000001, 1.67, 7.1000000000000005, - 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], - "confidence": 1.0}}}], "errors": []}}' + 1.845, 1.855, 1.845, 1.855, 2.2, 0.885, 2.2], "confidence": 1.0}, "Merchant": + {"type": "string", "valueString": "B", "text": "B", "page": 3, "boundingBox": + [1.685, 1.125, 1.765, 1.125, 1.765, 1.245, 1.685, 1.245], "confidence": 0.5}, + "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.676}, "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}, "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}, "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}, "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": + "Frodo Baggins", "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, + 1.595, 6.015, 1.595], "confidence": 0.971}, "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": 0.952}, "Tip": + {"type": "string", "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": + [5.81, 5.345, 6.26, 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": 1.0}, + "FirstItem": {"type": "string", "valueString": "A", "text": "A", "page": 1, + "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.32, 1.085, 3.32], "confidence": + 1.0}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015, 1.45, 6.895, 1.45, 6.895, + 1.595, 6.015, 1.595], "confidence": 0.971}, "FirstQuantity": {"type": "string", + "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.26, 3.21, 3.32, + 3.21, 3.32, 3.32, 3.26, 3.32], "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}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: apim-request-id: - - 97c31639-1eac-49fd-982e-44eb9f417af8 + - 08db7e65-f21d-4e43-9b0c-02b08d88a3b8 content-length: - - '9504' + - '10168' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:27 GMT + - Mon, 14 Sep 2020 19:46:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '42' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml index c1054f06bfb8..73f2d5773ef6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_labeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 28d0e4c5-5f48-4130-ba50-7efdae8b0392 + - 5375a0b6-9c95-4299-97a3-5c2b2eafde9b content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:27 GMT + - Mon, 14 Sep 2020 19:46:14 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b63f69fc-c41a-44c1-87ee-25e850787cd2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '44' status: code: 201 message: Created @@ -48,73 +48,38 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", "status": - "creating", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": - "2020-07-10T18:43:28Z"}}' - headers: - apim-request-id: - - 6e9418db-a692-4a4a-a0b6-13d5c50b1d37 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:43:32 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '152' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b63f69fc-c41a-44c1-87ee-25e850787cd2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", "status": - "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": - "2020-07-10T18:43:35Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "b63f69fc-c41a-44c1-87ee-25e850787cd2", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:46:14Z", + "lastUpdatedDateTime": "2020-09-14T19:46:15Z"}, "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": []}}' headers: apim-request-id: - - 583e7081-3c18-48b3-abb6-91bc37eb7a5b + - 6739300b-e799-4c4a-8247-2eabab72421f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:37 GMT + - Mon, 14 Sep 2020 19:46:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -122,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '172' + - '14' status: code: 200 message: OK @@ -2042,7 +2007,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2052,27 +2017,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b63f69fc-c41a-44c1-87ee-25e850787cd2/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 4c450e99-d339-4f7a-92aa-d5002aa8f581 + - 7b4b47c1-19c3-4dfe-b76d-7dda35dc1e42 content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:39 GMT + - Mon, 14 Sep 2020 19:46:18 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1/analyzeresults/4d73b3c9-4ff2-4dd1-b8e6-9151a9619f76 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b63f69fc-c41a-44c1-87ee-25e850787cd2/analyzeresults/6f616695-0a07-4d8d-9c62-833c79fb3c10 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '256' + - '51' status: code: 202 message: Accepted @@ -2086,70 +2051,104 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1/analyzeresults/4d73b3c9-4ff2-4dd1-b8e6-9151a9619f76 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b63f69fc-c41a-44c1-87ee-25e850787cd2/analyzeresults/6f616695-0a07-4d8d-9c62-833c79fb3c10 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:39Z", - "lastUpdatedDateTime": "2020-07-10T18:43:47Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:46:19Z", + "lastUpdatedDateTime": "2020-09-14T19:46:23Z"}' + headers: + apim-request-id: + - 3ec8fcc5-8690-4f47-b1d4-04d49a66fc6b + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:46:24 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '14' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b63f69fc-c41a-44c1-87ee-25e850787cd2/analyzeresults/6f616695-0a07-4d8d-9c62-833c79fb3c10 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:46:19Z", + "lastUpdatedDateTime": "2020-09-14T19:46:26Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -2231,14 +2230,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -2372,10 +2377,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -2472,88 +2485,80 @@ interactions: 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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"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, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/8/words/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, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, "Customer2": - {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", - "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, 6.95, 1.595, - 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, - "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, + "documentResults": [{"docType": "custom:b63f69fc-c41a-44c1-87ee-25e850787cd2", + "modelId": "b63f69fc-c41a-44c1-87ee-25e850787cd2", "pageRange": [1, 3], "fields": + {"CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, + WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015, + 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, 2.03], "confidence": 1.0, "elements": ["#/readResults/0/lines/4/words/0", + "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "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.676, "elements": + ["#/readResults/2/lines/38/words/1", "#/readResults/2/lines/38/words/2"]}, + "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, "elements": ["#/readResults/2/lines/37/words/1"]}, "Merchant": + {"type": "string", "valueString": "B", "text": "B", "page": 3, "boundingBox": + [1.685, 1.125, 1.765, 1.125, 1.765, 1.245, 1.685, 1.245], "confidence": 0.5, + "elements": ["#/readResults/2/lines/0/words/1"]}, "Tip": {"type": "string", + "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": [5.81, + 5.345, 6.26, 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": 1.0, "elements": + ["#/readResults/0/lines/36/words/1"]}, "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, "elements": ["#/readResults/0/lines/37/words/1"]}, + "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": + "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.935, 2.12, 6.935, + 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/readResults/0/lines/8/words/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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/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, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, + "page": 3, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], + "confidence": 1.0, "elements": ["#/readResults/2/lines/0/words/0"]}, "FirstItem": + {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": + [1.085, 3.21, 1.175, 3.21, 1.175, 3.32, 1.085, 3.32], "confidence": 1.0, "elements": + ["#/readResults/0/lines/13/words/0"]}, "FirstQuantity": {"type": "string", + "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.26, 3.21, 3.32, + 3.21, 3.32, 3.32, 3.26, 3.32], "confidence": 1.0, "elements": ["#/readResults/0/lines/14/words/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, "elements": ["#/analyzeResult/readResults/0/lines/38/words/1", - "#/analyzeResult/readResults/0/lines/38/words/2"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, "CustomerAddress": - {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 - Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, - 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, - 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", - "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", - "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, - "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, "elements": - ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", - "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", - "#/analyzeResult/readResults/0/lines/7/words/1"]}, "MerchantPhoneNumber": + 2.05, 6.8], "confidence": 0.952, "elements": ["#/readResults/0/lines/38/words/1", + "#/readResults/0/lines/38/words/2"]}, "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, "elements": ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", + "#/readResults/0/lines/5/words/2", "#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, + "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, + 6.015, 1.595], "confidence": 0.971, "elements": ["#/readResults/2/lines/3/words/0", + "#/readResults/2/lines/3/words/1"]}, "CustomerName": {"type": "string", "valueString": + "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015, + 1.45, 6.895, 1.45, 6.895, 1.595, 6.015, 1.595], "confidence": 0.971, "elements": + ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, "FirstPrice": + {"type": "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.32, 5.425, 3.32], "confidence": 1.0, "elements": + ["#/readResults/0/lines/15/words/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, "elements": ["#/readResults/0/lines/35/words/1"]}, + "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, "elements": ["#/readResults/0/lines/34/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/9/words/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, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}}}], "errors": - []}}' + "confidence": 1.0, "elements": ["#/readResults/0/lines/9/words/0"]}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: apim-request-id: - - 05f9a31b-4136-4166-85e8-357a1cb5bc5e + - e38e12b6-8c12-418e-a1f0-a5aa7b199c16 content-length: - - '32675' + - '32919' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:50 GMT + - Mon, 14 Sep 2020 19:46:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5985' + - '22' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml index 6a114fe1107e..83f4a14d9637 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 44cd59d2-dd11-48cd-bdf0-d4ba2a5b1d17 + - d6c1d377-3f8a-484c-bdc3-85a20051e099 content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:51 GMT + - Mon, 14 Sep 2020 19:46:14 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1457' + - '46' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", "status": - "creating", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:43:51Z"}}' + string: '{"modelInfo": {"modelId": "ccfbd645-3a47-43ec-8a77-19c6600abb63", "status": + "creating", "createdDateTime": "2020-09-14T19:46:14Z", "lastUpdatedDateTime": + "2020-09-14T19:46:14Z"}}' headers: apim-request-id: - - 5cf641db-9a76-4604-a41a-ba1ec5587a3b + - d51d88b0-1f83-4150-b942-84a04bfad422 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:00 GMT + - Mon, 14 Sep 2020 19:46:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3652' + - '15' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", "status": - "creating", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:43:51Z"}}' + string: '{"modelInfo": {"modelId": "ccfbd645-3a47-43ec-8a77-19c6600abb63", "status": + "creating", "createdDateTime": "2020-09-14T19:46:14Z", "lastUpdatedDateTime": + "2020-09-14T19:46:14Z"}}' headers: apim-request-id: - - fd5f28b3-aaf1-4b3d-b27f-1d9256f0b4ae + - 5125cc55-6078-4659-91ff-1b301441a52f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:05 GMT + - Mon, 14 Sep 2020 19:46:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '59' + - '15' status: code: 200 message: OK @@ -120,14 +120,86 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", "status": - "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:44:08Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "ccfbd645-3a47-43ec-8a77-19c6600abb63", "status": + "creating", "createdDateTime": "2020-09-14T19:46:14Z", "lastUpdatedDateTime": + "2020-09-14T19:46:14Z"}}' + headers: + apim-request-id: + - a37b89c9-499c-44cd-bb54-cb5ef6973d66 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:46:29 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '14' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ccfbd645-3a47-43ec-8a77-19c6600abb63", "status": + "creating", "createdDateTime": "2020-09-14T19:46:14Z", "lastUpdatedDateTime": + "2020-09-14T19:46:14Z"}}' + headers: + apim-request-id: + - e94a55d8-ff99-4006-97e6-7f337542051a + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:46:34 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '15' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "ccfbd645-3a47-43ec-8a77-19c6600abb63", "status": + "ready", "createdDateTime": "2020-09-14T19:46:14Z", "lastUpdatedDateTime": + "2020-09-14T19:46:40Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -138,11 +210,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 7bd126a3-cc04-4a60-a4ec-6bf53f335148 + - 144e29f3-c52a-4cb3-a108-4b46b8950888 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:11 GMT + - Mon, 14 Sep 2020 19:46:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -150,7 +222,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '16' status: code: 200 message: OK @@ -2074,7 +2146,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2084,27 +2156,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 17b0e3cb-2a87-4d7a-a9aa-181269d708e1 + - 88194ac1-edf3-4740-947e-beb8587cbeb9 content-length: - '0' date: - - Fri, 10 Jul 2020 18:44:12 GMT + - Mon, 14 Sep 2020 19:46:40 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyzeresults/35de8749-1641-4adb-9c95-897df931afcf + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63/analyzeresults/5f71cf1d-1630-4448-b453-9f7b46966780 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '174' + - '44' status: code: 202 message: Accepted @@ -2118,28 +2190,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63/analyzeresults/5f71cf1d-1630-4448-b453-9f7b46966780 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:46:41Z", "lastUpdatedDateTime": + "2020-09-14T19:46:41Z", "analyzeResult": null}' + headers: + apim-request-id: + - c2f9e22d-0cf1-42ac-9612-756cdc2ffe9b + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:46:45 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '12' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyzeresults/35de8749-1641-4adb-9c95-897df931afcf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63/analyzeresults/5f71cf1d-1630-4448-b453-9f7b46966780 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:12Z", "lastUpdatedDateTime": - "2020-07-10T18:44:13Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:46:41Z", "lastUpdatedDateTime": + "2020-09-14T19:46:41Z", "analyzeResult": null}' headers: apim-request-id: - - 2ef2d605-b993-439b-9dee-7e7d9927dcc2 + - 3a039fec-c88f-4ff0-a13b-adb31502eb76 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:16 GMT + - Mon, 14 Sep 2020 19:46:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '15' status: code: 200 message: OK @@ -2153,250 +2260,246 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/30998e09-3dc8-4816-bad2-4d3318719b0c/analyzeresults/35de8749-1641-4adb-9c95-897df931afcf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ccfbd645-3a47-43ec-8a77-19c6600abb63/analyzeresults/5f71cf1d-1630-4448-b453-9f7b46966780 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:44:12Z", - "lastUpdatedDateTime": "2020-07-10T18:44:18Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:46:41Z", + "lastUpdatedDateTime": "2020-09-14T19:46:52Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "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": + "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Bilbo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "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], + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "100.00", + "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, + 5.5646, 6.3986, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, + 6.7983, 1.7472, 6.7983], "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": 2, "keyValuePairs": [], "tables": [], - "clusterId": null}, {"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], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, + 3.3177, 3.2597, 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "2", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, + 3.3194, 3.5309, 3.2542, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "14.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, + 5.7792, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, + 3.3236, 3.7413, 3.2486, 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "15.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, + 5.7792, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, + 3.3208, 3.951, 3.2597, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, + 5.7806, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "6", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, + 3.3222, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, + 5.7806, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "8", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "22.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, + 5.7806, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"page": + 3, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, + 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "1000.00", + "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, + 5.5646, 6.4833, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, + 6.7983, 1.7472, 6.7983], "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": []}}' + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, + 3.3191, 3.2597, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, + 3.4069, 3.5323, 3.2542, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "140.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, + 3.4069, 3.7424, 3.2486, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "150.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, + 3.4069, 3.9524, 3.2597, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, + 5.8639, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, + 3.4069, 4.1628, 3.2486, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, + 5.8639, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "60", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, + 3.4069, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, + 5.8639, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "80", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, + 3.4069, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "220.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, + 5.8639, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 0e16d24f-0ff4-4def-9935-616ceed14a87 + - 6a27bf9c-8243-4bea-a371-4283ffc983b6 content-length: - - '17652' + - '17142' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:22 GMT + - Mon, 14 Sep 2020 19:46:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '29' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml index 4c40052887fc..cdf60941c857 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_unlabeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 1d6b118c-02d7-4890-bf17-fb85fc731143 + - f8ed35ae-369a-437c-a5fe-ca91a8e76baa content-length: - '0' date: - - Fri, 10 Jul 2020 18:44:22 GMT + - Mon, 14 Sep 2020 19:46:20 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '97' + - '74' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": - "creating", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:23Z"}}' + string: '{"modelInfo": {"modelId": "723144f4-7bfc-4eca-8de8-d70886319da2", "status": + "creating", "createdDateTime": "2020-09-14T19:46:20Z", "lastUpdatedDateTime": + "2020-09-14T19:46:20Z"}}' headers: apim-request-id: - - 9a73c33a-a008-490a-bd28-6eab4ef50e88 + - 54852535-9c87-4d56-9c0c-ffba3f4bb564 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:27 GMT + - Mon, 14 Sep 2020 19:46:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '19' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": - "creating", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:23Z"}}' + string: '{"modelInfo": {"modelId": "723144f4-7bfc-4eca-8de8-d70886319da2", "status": + "creating", "createdDateTime": "2020-09-14T19:46:20Z", "lastUpdatedDateTime": + "2020-09-14T19:46:20Z"}}' headers: apim-request-id: - - 6f6eed8d-cc58-47ff-ba74-190f7abc4be4 + - 9807ffc8-998a-4b38-bdf4-97230f303a49 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:32 GMT + - Mon, 14 Sep 2020 19:46:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '14' status: code: 200 message: OK @@ -120,21 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": - "creating", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:23Z"}}' + string: '{"modelInfo": {"modelId": "723144f4-7bfc-4eca-8de8-d70886319da2", "status": + "creating", "createdDateTime": "2020-09-14T19:46:20Z", "lastUpdatedDateTime": + "2020-09-14T19:46:20Z"}}' headers: apim-request-id: - - cf54568c-c69f-47dd-aaff-1290ad83f5e6 + - 17cf8eed-1a11-4f9f-bfad-9b9316c41695 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:38 GMT + - Mon, 14 Sep 2020 19:46:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -156,14 +156,50 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", "status": - "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:39Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "723144f4-7bfc-4eca-8de8-d70886319da2", "status": + "creating", "createdDateTime": "2020-09-14T19:46:20Z", "lastUpdatedDateTime": + "2020-09-14T19:46:20Z"}}' + headers: + apim-request-id: + - c971c334-158e-48a1-8799-33fc1f21b3a8 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:46:40 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '13' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "723144f4-7bfc-4eca-8de8-d70886319da2", "status": + "ready", "createdDateTime": "2020-09-14T19:46:20Z", "lastUpdatedDateTime": + "2020-09-14T19:46:44Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -174,11 +210,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 84f83eef-fa2d-47d2-bb74-f7b1f3e0d48c + - 8ae88f7f-1e81-4f21-b9d8-8580afd8e968 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:43 GMT + - Mon, 14 Sep 2020 19:46:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -186,7 +222,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '14' status: code: 200 message: OK @@ -2106,7 +2142,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2116,27 +2152,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 0162ad09-51c3-4712-afce-73d320527ce3 + - b36dd5a6-6cc9-4ac3-9760-dcab0344f772 content-length: - '0' date: - - Fri, 10 Jul 2020 18:44:43 GMT + - Mon, 14 Sep 2020 19:46:45 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyzeresults/7f309d42-81e1-47a3-8a0e-517546d52852 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2/analyzeresults/ae022532-df17-4451-9716-add5224bdce5 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '297' + - '47' status: code: 202 message: Accepted @@ -2150,28 +2186,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2/analyzeresults/ae022532-df17-4451-9716-add5224bdce5 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:46:46Z", "lastUpdatedDateTime": + "2020-09-14T19:46:46Z", "analyzeResult": null}' + headers: + apim-request-id: + - cddccf0d-8e48-427d-9774-d8b755c6f2f1 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:46:51 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '13' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyzeresults/7f309d42-81e1-47a3-8a0e-517546d52852 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2/analyzeresults/ae022532-df17-4451-9716-add5224bdce5 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:44Z", "lastUpdatedDateTime": - "2020-07-10T18:44:45Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:46:46Z", "lastUpdatedDateTime": + "2020-09-14T19:46:46Z", "analyzeResult": null}' headers: apim-request-id: - - 99f5176f-2c7a-4e63-ac17-c59d93410fc0 + - 0fd6c486-6197-413d-aee5-da560dbe661d content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:49 GMT + - Mon, 14 Sep 2020 19:46:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '715' + - '13' status: code: 200 message: OK @@ -2185,539 +2256,529 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8b51591f-21ca-41f8-abe6-4febf08b1e52/analyzeresults/7f309d42-81e1-47a3-8a0e-517546d52852 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/723144f4-7bfc-4eca-8de8-d70886319da2/analyzeresults/ae022532-df17-4451-9716-add5224bdce5 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:44:44Z", - "lastUpdatedDateTime": "2020-07-10T18:44:51Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": - "Company", "boundingBox": [0.8764, 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, - 0.8764, 1.2958]}, {"text": "A", "boundingBox": [1.6667, 1.1014, 1.7778, 1.1014, - 1.7778, 1.2958, 1.6667, 1.2958]}, {"text": "Invoice", "boundingBox": [1.8222, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 1.8222, 1.2958]}]}, {"text": "Invoice - For:", "boundingBox": [6.0028, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, - 1.2667], "words": [{"text": "Invoice", "boundingBox": [6.0028, 1.0431, 6.6472, - 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, {"text": "For:", "boundingBox": - [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.6958, 1.2667]}]}, {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": [0.8764, 1.4681, - 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": "Bilbo Baggins", - "boundingBox": [6.0028, 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.0028, 1.6056], - "words": [{"text": "Bilbo", "boundingBox": [6.0028, 1.4389, 6.3472, 1.4389, - 6.3472, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": [6.3819, - 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.3819, 1.6056]}]}, {"text": "123 - Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, 1.6597, - 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", "boundingBox": - [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, {"text": - "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, 6.7889, - 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, - 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, 3.3292, 3.3597, 3.2444, - 3.3597], "words": [{"text": "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, - 3.3292, 3.3597, 3.2444, 3.3597]}]}, {"text": "10.99", "boundingBox": [5.4083, - 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, 3.3597], "words": [{"text": - "10.99", "boundingBox": [5.4083, 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, - 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, 1.1708, 3.4056, - 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": [1.0806, - 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": "2", - "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, 3.5722, 3.2444, 3.5722], - "words": [{"text": "2", "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, - 3.5722, 3.2444, 3.5722]}]}, {"text": "14.67", "boundingBox": [5.4083, 3.4056, - 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722], "words": [{"text": "14.67", - "boundingBox": [5.4083, 3.4056, 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722]}]}, - {"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, - 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, - 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": "4", "boundingBox": [3.2444, - 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, 3.7833], "words": [{"text": - "4", "boundingBox": [3.2444, 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, - 3.7833]}]}, {"text": "15.66", "boundingBox": [5.4083, 3.6167, 5.7861, 3.6167, - 5.7861, 3.7833, 5.4083, 3.7833], "words": [{"text": "15.66", "boundingBox": - [5.4083, 3.6167, 5.7861, 3.6167, 5.7861, 3.7833, 5.4083, 3.7833]}]}, {"text": - "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, - 3.9931], "words": [{"text": "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, - 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": "1", "boundingBox": [3.2444, - 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, 3.9931], "words": [{"text": - "1", "boundingBox": [3.2444, 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, - 3.9931]}]}, {"text": "12.00", "boundingBox": [5.4083, 3.8264, 5.7861, 3.8264, - 5.7861, 3.9931, 5.4083, 3.9931], "words": [{"text": "12.00", "boundingBox": - [5.4083, 3.8264, 5.7861, 3.8264, 5.7861, 3.9931, 5.4083, 3.9931]}]}, {"text": - "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, - 4.2028], "words": [{"text": "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, - 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": "4", "boundingBox": [3.2444, - 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, 4.2028], "words": [{"text": - "4", "boundingBox": [3.2444, 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, - 4.2028]}]}, {"text": "10.00", "boundingBox": [5.4083, 4.0361, 5.7875, 4.0361, - 5.7875, 4.2028, 5.4083, 4.2028], "words": [{"text": "10.00", "boundingBox": - [5.4083, 4.0361, 5.7875, 4.0361, 5.7875, 4.2028, 5.4083, 4.2028]}]}, {"text": - "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, - 4.4125], "words": [{"text": "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, - 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": "6", "boundingBox": [3.2444, - 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, 4.4125], "words": [{"text": - "6", "boundingBox": [3.2444, 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, - 4.4125]}]}, {"text": "12.00", "boundingBox": [5.4083, 4.2458, 5.7861, 4.2458, - 5.7861, 4.4125, 5.4083, 4.4125], "words": [{"text": "12.00", "boundingBox": - [5.4083, 4.2458, 5.7861, 4.2458, 5.7861, 4.4125, 5.4083, 4.4125]}]}, {"text": - "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, - 4.6236], "words": [{"text": "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, - 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": "8", "boundingBox": [3.2444, - 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, 4.6236], "words": [{"text": - "8", "boundingBox": [3.2444, 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, - 4.6236]}]}, {"text": "22.00", "boundingBox": [5.4083, 4.4569, 5.7875, 4.4569, - 5.7875, 4.6236, 5.4083, 4.6236], "words": [{"text": "22.00", "boundingBox": - [5.4083, 4.4569, 5.7875, 4.4569, 5.7875, 4.6236, 5.4083, 4.6236]}]}, {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "words": [{"text": "Subtotal:", "boundingBox": [5.5028, 4.8861, - 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528]}]}, {"text": "300.00", "boundingBox": - [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, 5.0528, 6.1722, 5.0528], "words": - [{"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "words": [{"text": "Tax:", - "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, - {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, 6.2069, - 5.2736, 5.8292, 5.2736], "words": [{"text": "30.00", "boundingBox": [5.8292, - 5.1069, 6.2069, 5.1069, 6.2069, 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], - "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, - 5.7611, 5.4931, 5.5028, 5.4931]}]}, {"text": "100.00", "boundingBox": [5.7986, - 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, 5.7986, 5.4931], "words": [{"text": - "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, - 5.7986, 5.4931]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, - 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "words": [{"text": "Total:", "boundingBox": - [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": - "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, 6.4028, 5.7139, - 5.9389, 5.7139], "words": [{"text": "430.00", "boundingBox": [5.9389, 5.5472, - 6.4028, 5.5472, 6.4028, 5.7139, 5.9389, 5.7139]}]}, {"text": "Signature:", - "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], - "words": [{"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, - 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Bilbo Baggins__________", "boundingBox": - [1.7472, 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "words": - [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6431, 2.4333, 6.6431, 2.4333, - 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", "boundingBox": [2.4708, - 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 2.4708, 6.8097]}]}]}, {"page": 2, - "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": - 3, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": - "Company B Invoice", "boundingBox": [0.8764, 1.1014, 2.3833, 1.1014, 2.3833, - 1.2958, 0.8764, 1.2958], "words": [{"text": "Company", "boundingBox": [0.8764, - 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, 0.8764, 1.2958]}, {"text": "B", "boundingBox": - [1.6667, 1.1014, 1.7722, 1.1014, 1.7722, 1.2958, 1.6667, 1.2958]}, {"text": - "Invoice", "boundingBox": [1.8167, 1.1014, 2.3833, 1.1014, 2.3833, 1.2958, - 1.8167, 1.2958]}]}, {"text": "Invoice For:", "boundingBox": [6.0028, 1.0431, - 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, 1.2667], "words": [{"text": "Invoice", - "boundingBox": [6.0028, 1.0431, 6.6472, 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, - {"text": "For:", "boundingBox": [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, - 6.6958, 1.2667]}]}, {"text": "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, - 1.4681, 1.5778, 1.6625, 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": - [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": - "Frodo Baggins", "boundingBox": [6.0028, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, - 6.0028, 1.6056], "words": [{"text": "Frodo", "boundingBox": [6.0028, 1.4389, - 6.3972, 1.4389, 6.3972, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": - [6.4361, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, 6.4361, 1.6056]}]}, {"text": - "123 Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, - 1.8264, 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, - 1.6597, 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", - "boundingBox": [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, - {"text": "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.7889, 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, - 1.725, 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "10", "boundingBox": [3.2444, 3.1931, 3.4125, 3.1931, 3.4125, 3.3597, 3.2444, - 3.3597], "words": [{"text": "10", "boundingBox": [3.2444, 3.1931, 3.4125, - 3.1931, 3.4125, 3.3597, 3.2444, 3.3597]}]}, {"text": "100.99", "boundingBox": - [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, 3.3597, 5.4083, 3.3597], "words": - [{"text": "100.99", "boundingBox": [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, - 3.3597, 5.4083, 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, - 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": - [1.0806, 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": - "20", "boundingBox": [3.2444, 3.4056, 3.4125, 3.4056, 3.4125, 3.5722, 3.2444, - 3.5722], "words": [{"text": "20", "boundingBox": [3.2444, 3.4056, 3.4125, - 3.4056, 3.4125, 3.5722, 3.2444, 3.5722]}]}, {"text": "140.67", "boundingBox": - [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, 3.5722, 5.4083, 3.5722], "words": - [{"text": "140.67", "boundingBox": [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, - 3.5722, 5.4083, 3.5722]}]}, {"text": "C", "boundingBox": [1.0806, 3.6167, - 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": - [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": - "40", "boundingBox": [3.2444, 3.6167, 3.4125, 3.6167, 3.4125, 3.7833, 3.2444, - 3.7833], "words": [{"text": "40", "boundingBox": [3.2444, 3.6167, 3.4125, - 3.6167, 3.4125, 3.7833, 3.2444, 3.7833]}]}, {"text": "150.66", "boundingBox": - [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, 3.7833, 5.4083, 3.7833], "words": - [{"text": "150.66", "boundingBox": [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, - 3.7833, 5.4083, 3.7833]}]}, {"text": "D", "boundingBox": [1.0806, 3.8264, - 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931], "words": [{"text": "D", "boundingBox": - [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": - "10", "boundingBox": [3.2444, 3.8264, 3.4125, 3.8264, 3.4125, 3.9931, 3.2444, - 3.9931], "words": [{"text": "10", "boundingBox": [3.2444, 3.8264, 3.4125, - 3.8264, 3.4125, 3.9931, 3.2444, 3.9931]}]}, {"text": "120.00", "boundingBox": - [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, 3.9931, 5.4083, 3.9931], "words": - [{"text": "120.00", "boundingBox": [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, - 3.9931, 5.4083, 3.9931]}]}, {"text": "E", "boundingBox": [1.0806, 4.0361, - 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028], "words": [{"text": "E", "boundingBox": - [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": - "40", "boundingBox": [3.2444, 4.0361, 3.4125, 4.0361, 3.4125, 4.2028, 3.2444, - 4.2028], "words": [{"text": "40", "boundingBox": [3.2444, 4.0361, 3.4125, - 4.0361, 3.4125, 4.2028, 3.2444, 4.2028]}]}, {"text": "100.00", "boundingBox": - [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, 4.2028, 5.4083, 4.2028], "words": - [{"text": "100.00", "boundingBox": [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, - 4.2028, 5.4083, 4.2028]}]}, {"text": "F", "boundingBox": [1.0806, 4.2458, - 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125], "words": [{"text": "F", "boundingBox": - [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": - "60", "boundingBox": [3.2444, 4.2458, 3.4125, 4.2458, 3.4125, 4.4125, 3.2444, - 4.4125], "words": [{"text": "60", "boundingBox": [3.2444, 4.2458, 3.4125, - 4.2458, 3.4125, 4.4125, 3.2444, 4.4125]}]}, {"text": "120.00", "boundingBox": - [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, 4.4125, 5.4083, 4.4125], "words": - [{"text": "120.00", "boundingBox": [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, - 4.4125, 5.4083, 4.4125]}]}, {"text": "G", "boundingBox": [1.0806, 4.4569, - 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236], "words": [{"text": "G", "boundingBox": - [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": - "80", "boundingBox": [3.2444, 4.4569, 3.4125, 4.4569, 3.4125, 4.6236, 3.2444, - 4.6236], "words": [{"text": "80", "boundingBox": [3.2444, 4.4569, 3.4125, - 4.4569, 3.4125, 4.6236, 3.2444, 4.6236]}]}, {"text": "220.00", "boundingBox": - [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, 4.6236, 5.4083, 4.6236], "words": - [{"text": "220.00", "boundingBox": [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, - 4.6236, 5.4083, 4.6236]}]}, {"text": "Subtotal:", "boundingBox": [5.5028, - 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528], "words": [{"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528]}]}, {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, - 4.8861, 6.7208, 5.0528, 6.1722, 5.0528], "words": [{"text": "3000.00", "boundingBox": - [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, 5.0528, 6.1722, 5.0528]}]}, {"text": - "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, - 5.2736], "words": [{"text": "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, - 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, {"text": "300.00", "boundingBox": - [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, 5.2736, 5.8292, 5.2736], "words": - [{"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, - 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "words": [{"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931]}]}, - {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, 6.3472, - 5.4931, 5.7986, 5.4931], "words": [{"text": "1000.00", "boundingBox": [5.7986, - 5.3264, 6.3472, 5.3264, 6.3472, 5.4931, 5.7986, 5.4931]}]}, {"text": "Total:", - "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], - "words": [{"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, - 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": "4300.00", "boundingBox": [5.9389, - 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, 5.9389, 5.7139], "words": [{"text": - "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, - 5.9389, 5.7139]}]}, {"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, - 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "words": [{"text": "Signature:", "boundingBox": - [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Frodo - Baggins__________", "boundingBox": [1.7472, 6.6431, 3.8833, 6.6431, 3.8833, - 6.8097, 1.7472, 6.8097], "words": [{"text": "____Frodo", "boundingBox": [1.7472, - 6.6431, 2.4833, 6.6431, 2.4833, 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", - "boundingBox": [2.5208, 6.6431, 3.8833, 6.6431, 3.8833, 6.8097, 2.5208, 6.8097]}]}]}], - "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": ["#/readResults/0/lines/1/words/0", "#/readResults/0/lines/1/words/1"]}, - "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": ["#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/0/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2"]}, "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": ["#/readResults/0/lines/6/words/0", "#/readResults/0/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/0/lines/8/words/0"]}, - "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": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": - ["#/readResults/0/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/0/lines/34/words/0"]}, "value": - {"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/0/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/0/lines/36/words/0"]}, - "value": {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, - 6.2069, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/0/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/0/lines/38/words/0"]}, - "value": {"text": "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, - 6.2639, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/0/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/0/lines/40/words/0"]}, - "value": {"text": "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, - 6.4028, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/0/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/0/lines/42/words/0"]}, - "value": {"text": "____Bilbo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/0/lines/43/words/0", - "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1", - "#/readResults/0/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:46:46Z", + "lastUpdatedDateTime": "2020-09-14T19:46:58Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1226, 2.3778, 1.1226, 2.3778, 1.263, 0.8861, 1.263], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, + 0.8861, 1.2812]}, {"text": "A", "boundingBox": [1.6694, 1.1243, 1.775, 1.1243, + 1.775, 1.2472, 1.6694, 1.2472]}, {"text": "Invoice", "boundingBox": [1.8389, + 1.1215, 2.3778, 1.1215, 2.3778, 1.2486, 1.8389, 1.2486]}]}, {"text": "Invoice + For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, + 1.2122], "words": [{"text": "Invoice", "boundingBox": [6.0208, 1.0656, 6.6361, + 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, {"text": "For:", "boundingBox": + [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, 6.7139, 1.2122]}]}, {"text": + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": "Bilbo Baggins", + "boundingBox": [6.0167, 1.4532, 6.8972, 1.4532, 6.8972, 1.5801, 6.0167, 1.5801], + "words": [{"text": "Bilbo", "boundingBox": [6.0167, 1.4503, 6.3389, 1.4503, + 6.3389, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": [6.3958, + 1.4556, 6.8972, 1.4556, 6.8972, 1.5931, 6.3958, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "1", "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, + 3.3208, 3.3177, 3.2597, 3.3177], "words": [{"text": "1", "boundingBox": [3.2597, + 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, 3.3177]}]}, {"text": "10.99", + "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, 3.3191], + "words": [{"text": "10.99", "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "2", "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, + 3.5309, 3.2542, 3.5309], "words": [{"text": "2", "boundingBox": [3.2542, 3.424, + 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309]}]}, {"text": "14.67", "boundingBox": + [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], "words": [{"text": + "14.67", "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, + 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742]}]}, {"text": "4", "boundingBox": + [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, 3.7413], "words": + [{"text": "4", "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, + 3.2486, 3.7413]}]}, {"text": "15.66", "boundingBox": [5.4236, 3.634, 5.7792, + 3.634, 5.7792, 3.7424, 5.4236, 3.7424], "words": [{"text": "15.66", "boundingBox": + [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424]}]}, {"text": + "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, + 3.951], "words": [{"text": "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951]}]}, {"text": "1", "boundingBox": [3.2597, 3.8451, + 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951], "words": [{"text": "1", "boundingBox": + [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951]}]}, {"text": + "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "words": [{"text": "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, + 3.8441, 5.7806, 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, + 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": + "E", "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615]}]}, {"text": "4", "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "words": [{"text": "4", "boundingBox": [3.2486, + 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, 4.1618]}]}, {"text": "10.00", + "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, 4.1628], + "words": [{"text": "10.00", "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, + 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", + "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, + {"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, + 3.2528, 4.3726], "words": [{"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, + 4.2646, 3.3222, 4.3726, 3.2528, 4.3726]}]}, {"text": "12.00", "boundingBox": + [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, 4.3726], "words": + [{"text": "12.00", "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, + 4.3726, 5.4236, 4.3726]}]}, {"text": "G", "boundingBox": [1.0875, 4.4747, + 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": + [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": + "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "words": [{"text": "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826]}]}, {"text": "22.00", "boundingBox": [5.4181, + 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, 4.5826], "words": [{"text": + "22.00", "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826]}]}, {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, + 6.125, 5.0132, 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": + [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "words": [{"text": "300.00", "boundingBox": [6.1792, 4.9042, + 6.6319, 4.9042, 6.6319, 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": + [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": + [{"text": "Tax:", "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, + 5.2333, 5.5028, 5.2333]}]}, {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "words": [{"text": "30.00", + "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333]}]}, + {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, + 5.5028, 5.4809], "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "100.00", "boundingBox": + [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "words": + [{"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, + 5.4535, 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", + "boundingBox": [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, + {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, 6.3986, + 5.6733, 5.9417, 5.6733], "words": [{"text": "430.00", "boundingBox": [5.9417, + 5.5646, 6.3986, 5.5646, 6.3986, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Bilbo Baggins", "boundingBox": + [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6552, 2.4278, 6.6552, 2.4278, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.4819, 6.658, + 3.0389, 6.658, 3.0389, 6.7983, 2.4819, 6.7983]}]}]}, {"page": 2, "angle": + 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, + "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1226, 2.3736, 1.1226, 2.3736, + 1.2629, 0.8861, 1.2629], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, 0.8861, 1.2812]}, {"text": "B", "boundingBox": + [1.6833, 1.1247, 1.7639, 1.1247, 1.7639, 1.2469, 1.6833, 1.2469]}, {"text": + "Invoice", "boundingBox": [1.8333, 1.1215, 2.3736, 1.1215, 2.3736, 1.2486, + 1.8333, 1.2486]}]}, {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, + 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "words": [{"text": "Invoice", + "boundingBox": [6.0208, 1.0656, 6.6361, 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, + {"text": "For:", "boundingBox": [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, + 6.7139, 1.2122]}]}, {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": + [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": + "Frodo Baggins", "boundingBox": [6.0167, 1.4533, 6.95, 1.4533, 6.95, 1.5801, + 6.0167, 1.5801], "words": [{"text": "Frodo", "boundingBox": [6.0167, 1.4507, + 6.3903, 1.4507, 6.3903, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.95, 1.4556, 6.95, 1.5931, 6.45, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "10", "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, + 3.4069, 3.3191, 3.2597, 3.3191], "words": [{"text": "10", "boundingBox": [3.2597, + 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, 3.3191]}]}, {"text": "100.99", + "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, 3.3191], + "words": [{"text": "100.99", "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "20", "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, + 3.5323, 3.2542, 3.5323], "words": [{"text": "20", "boundingBox": [3.2542, + 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323]}]}, {"text": "140.67", + "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "words": [{"text": "140.67", "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": + "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742]}]}, {"text": "40", "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, + 3.7424, 3.2486, 3.7424], "words": [{"text": "40", "boundingBox": [3.2486, + 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424]}]}, {"text": "150.66", + "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "words": [{"text": "150.66", "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424]}]}, {"text": "D", "boundingBox": [1.0944, + 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], "words": [{"text": "D", + "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951]}]}, + {"text": "10", "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, + 3.2597, 3.9524], "words": [{"text": "10", "boundingBox": [3.2597, 3.8441, + 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, 3.9524]}]}, {"text": "120.00", "boundingBox": + [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, 3.9524], "words": + [{"text": "120.00", "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, + 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, 4.0563, + 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": "E", "boundingBox": + [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615]}]}, {"text": + "40", "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "words": [{"text": "40", "boundingBox": [3.2486, 4.0545, 3.4069, + 4.0545, 3.4069, 4.1628, 3.2486, 4.1628]}]}, {"text": "100.00", "boundingBox": + [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, 4.1628], "words": + [{"text": "100.00", "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, + 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, 4.266, 1.15, + 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", "boundingBox": + [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, {"text": "60", + "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, 4.3726], + "words": [{"text": "60", "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, + 4.3726, 3.2528, 4.3726]}]}, {"text": "120.00", "boundingBox": [5.4236, 4.2646, + 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726], "words": [{"text": "120.00", + "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726]}]}, + {"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, + 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, + 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": "80", "boundingBox": + [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, 4.5826], "words": + [{"text": "80", "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, + 3.2514, 4.5826]}]}, {"text": "220.00", "boundingBox": [5.4181, 4.4747, 5.8639, + 4.4747, 5.8639, 4.5826, 5.4181, 4.5826], "words": [{"text": "220.00", "boundingBox": + [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, 4.5826]}]}, {"text": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, + 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": "3000.00", "boundingBox": + [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, 6.1792, 5.0132], "words": + [{"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": [{"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333]}]}, + {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, 6.2889, + 5.2333, 5.8361, 5.2333], "words": [{"text": "300.00", "boundingBox": [5.8361, + 5.1247, 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333]}]}, {"text": "Tip:", + "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], + "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "1000.00", "boundingBox": [5.8111, + 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "words": [{"text": + "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, + 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, 5.8917, + 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", "boundingBox": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, {"text": + "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, 6.4833, 5.6733, + 5.9417, 5.6733], "words": [{"text": "4300.00", "boundingBox": [5.9417, 5.5646, + 6.4833, 5.5646, 6.4833, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Frodo Baggins", "boundingBox": + [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Frodo", "boundingBox": [1.7472, 6.6556, 2.4778, 6.6556, 2.4778, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.5319, 6.658, + 3.0889, 6.658, 3.0889, 6.7983, 2.5319, 6.7983]}]}]}], "pageResults": [{"page": + 1, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "value": {"text": "Bilbo Baggins 123 + Hobbit Lane", "boundingBox": [6.0167, 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, + 1.7854], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", + "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": ["#/readResults/0/lines/2/words/0"]}, + "value": {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/0/lines/5/words/0", + "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2"]}, "confidence": + 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, + 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "elements": ["#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Redmond, WA", "boundingBox": [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, + 0.8917, 2.1918], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/0/lines/9/words/0"]}, + "confidence": 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, + 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": ["#/readResults/0/lines/34/words/0"]}, + "value": {"text": "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, + 6.6319, 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/0/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/0/lines/36/words/0"]}, + "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, + 6.2028, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/0/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/0/lines/38/words/0"]}, + "value": {"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, + 6.2583, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/0/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/0/lines/40/words/0"]}, + "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, + 6.3986, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/0/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/0/lines/42/words/0"]}, + "value": {"text": "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, + 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/0/lines/43/words/0", + "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/10/words/0"], "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": - ["#/readResults/0/lines/11/words/0"], "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": ["#/readResults/0/lines/12/words/0"], "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": ["#/readResults/0/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "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": ["#/readResults/0/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, + 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/14/words/0"], "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": ["#/readResults/0/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0"], "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": ["#/readResults/0/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "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": ["#/readResults/0/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/17/words/0"], "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": ["#/readResults/0/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/18/words/0"], "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": ["#/readResults/0/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/19/words/0"], "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": ["#/readResults/0/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, + 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0"], "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": ["#/readResults/0/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0"], "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": ["#/readResults/0/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "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": ["#/readResults/0/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, + 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/23/words/0"], "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": ["#/readResults/0/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/24/words/0"], "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": ["#/readResults/0/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/25/words/0"], "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": ["#/readResults/0/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, + 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0"], "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": ["#/readResults/0/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0"], "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": ["#/readResults/0/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "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": ["#/readResults/0/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/29/words/0"], "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": ["#/readResults/0/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/30/words/0"], "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": ["#/readResults/0/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/31/words/0"], "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": ["#/readResults/0/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0"], "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": ["#/readResults/0/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"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": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, - "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": ["#/readResults/2/lines/3/words/0", + {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, + 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": ["#/readResults/2/lines/3/words/0", "#/readResults/2/lines/3/words/1", "#/readResults/2/lines/4/words/0", "#/readResults/2/lines/4/words/1", "#/readResults/2/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": + {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, + 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", "#/readResults/2/lines/5/words/2"]}, "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": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/2/lines/8/words/0"]}, - "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": ["#/readResults/2/lines/7/words/0", + "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, + 6.0167, 2.0233], "elements": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, + 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": ["#/readResults/2/lines/8/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [0.8917, + 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": ["#/readResults/2/lines/7/words/0", "#/readResults/2/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/2/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": - {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/2/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/2/lines/36/words/0"]}, - "value": {"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, - 6.2931, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/2/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/2/lines/38/words/0"]}, - "value": {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, - 6.3472, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/2/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/2/lines/40/words/0"]}, - "value": {"text": "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, - 6.4875, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/2/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/2/lines/42/words/0"]}, - "value": {"text": "____Frodo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8833, 6.6431, 3.8833, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/2/lines/43/words/0", - "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/0/words/0", "#/readResults/2/lines/0/words/1", - "#/readResults/2/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": + {"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/2/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/2/lines/36/words/0"]}, + "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, + 6.2889, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/2/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/2/lines/38/words/0"]}, + "value": {"text": "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, + 6.3417, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/2/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/2/lines/40/words/0"]}, + "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, + 6.4833, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/2/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/2/lines/42/words/0"]}, + "value": {"text": "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, + 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/2/lines/43/words/0", + "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/10/words/0"], "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": - ["#/readResults/2/lines/11/words/0"], "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": ["#/readResults/2/lines/12/words/0"], "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": ["#/readResults/2/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/2/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/13/words/0"], "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": ["#/readResults/2/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/14/words/0"], "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": ["#/readResults/2/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/15/words/0"], "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": ["#/readResults/2/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/16/words/0"], "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": ["#/readResults/2/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/17/words/0"], "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": ["#/readResults/2/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/18/words/0"], "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": ["#/readResults/2/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/19/words/0"], "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": ["#/readResults/2/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/20/words/0"], "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": ["#/readResults/2/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/21/words/0"], "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": ["#/readResults/2/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/22/words/0"], "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": ["#/readResults/2/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/23/words/0"], "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": ["#/readResults/2/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/24/words/0"], "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": ["#/readResults/2/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/25/words/0"], "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": ["#/readResults/2/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/26/words/0"], "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": ["#/readResults/2/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/27/words/0"], "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": ["#/readResults/2/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/28/words/0"], "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": ["#/readResults/2/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/29/words/0"], "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": ["#/readResults/2/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/30/words/0"], "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": ["#/readResults/2/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/31/words/0"], "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": ["#/readResults/2/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/32/words/0"], "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": ["#/readResults/2/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - a7fbd4d4-81c0-47bb-a174-00aedd732b72 + - 110a8973-55d5-4d5c-8b2c-fc3b3467c59f content-length: - - '42016' + - '41192' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:55 GMT + - Mon, 14 Sep 2020 19:47:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '25' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml index 6623e71ae480..b489283de3fc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 540ed02a-881f-4153-8564-ed650c75f1a0 + - 4a69bef9-cbb8-41c0-aca0-cbe31cf8d723 content-length: - '0' date: - - Fri, 10 Jul 2020 18:44:56 GMT + - Mon, 14 Sep 2020 19:46:30 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '992' + - '42' status: code: 201 message: Created @@ -48,30 +48,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", "status": - "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": - "2020-07-10T18:45:00Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": - [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": - "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", - "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": - 2, "status": "succeeded"}, {"documentName": "multi5.pdf", "pages": 2, "status": - "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": 1.0}, {"fieldName": - "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", "accuracy": 1.0}, - {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", "accuracy": - 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", "accuracy": - 1.0}], "errors": []}}' + string: '{"modelInfo": {"modelId": "a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:46:30Z", + "lastUpdatedDateTime": "2020-09-14T19:46:32Z"}, "trainResult": {"averageModelAccuracy": + 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": + "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, + {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": + "multi4.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi5.pdf", + "pages": 2, "status": "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": + 1.0}, {"fieldName": "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", + "accuracy": 1.0}, {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", + "accuracy": 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 31461afa-9ce5-4c99-9dd2-62b87848c33b + - bad24e1a-9125-458a-991a-40cb386648ea content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:01 GMT + - Mon, 14 Sep 2020 19:46:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -79,7 +79,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '13' status: code: 200 message: OK @@ -12572,7 +12572,7 @@ interactions: dHhyZWYKNzEwNTI1CiUlRU9GCg== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -12582,27 +12582,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - b99a422c-db85-4078-bcb7-ad540ff59226 + - 3c43c3ed-31aa-4aa1-a4dc-367369a54bde content-length: - '0' date: - - Fri, 10 Jul 2020 18:45:04 GMT + - Mon, 14 Sep 2020 19:46:36 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyzeresults/623c90ca-2a22-45b8-978d-2cf3387c7be7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d/analyzeresults/abb4fc3b-8bae-445b-883b-e8f10efd8456 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '908' + - '124' status: code: 202 message: Accepted @@ -12616,28 +12616,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyzeresults/623c90ca-2a22-45b8-978d-2cf3387c7be7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d/analyzeresults/abb4fc3b-8bae-445b-883b-e8f10efd8456 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:04Z", - "lastUpdatedDateTime": "2020-07-10T18:45:09Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:46:37Z", + "lastUpdatedDateTime": "2020-09-14T19:46:42Z"}' headers: apim-request-id: - - a813745d-f618-4ccc-99b5-b9862953190e + - 531922bc-4c45-4fbe-8220-d21cf86de1ad content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:09 GMT + - Mon, 14 Sep 2020 19:46:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '15' status: code: 200 message: OK @@ -12651,50 +12651,50 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/dbb717aa-4021-4dc1-a621-7662115dcd67/analyzeresults/623c90ca-2a22-45b8-978d-2cf3387c7be7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d/analyzeresults/abb4fc3b-8bae-445b-883b-e8f10efd8456 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:04Z", - "lastUpdatedDateTime": "2020-07-10T18:45:14Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, - 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": - [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, - 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, - 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": - 1}]}, {"boundingBox": [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, - 2.005], "text": "Vendor Registration", "words": [{"boundingBox": [2.2268, - 1.5733, 3.703, 1.5733, 3.703, 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": - 1}, {"boundingBox": [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, - 2.005], "text": "Registration", "confidence": 1}]}, {"boundingBox": [1.0078, - 2.5846, 7.0776, 2.5846, 7.0776, 2.7293, 1.0078, 2.7293], "text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "words": [{"boundingBox": [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, - 1.0078, 2.7013], "text": "Contoso", "confidence": 1}, {"boundingBox": [1.6125, - 2.5856, 1.843, 2.5856, 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": - 1}, {"boundingBox": [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, - 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [2.7122, - 2.5852, 2.9307, 2.5852, 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": - 1}, {"boundingBox": [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, - 2.7013], "text": "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, - 3.4704, 2.5852, 3.4704, 2.7013, 3.1987, 2.7013], "text": "held", "confidence": - 1}, {"boundingBox": [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], - "text": "on", "confidence": 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, - 4.0422, 2.7293, 3.7498, 2.7293], "text": "May", "confidence": 1}, {"boundingBox": - [4.0877, 2.5914, 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": - "28-29,", "confidence": 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, - 4.884, 2.7017, 4.5586, 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": - [4.9351, 2.6014, 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": - "at", "confidence": 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, - 2.7013, 5.1033, 2.7013], "text": "the", "confidence": 1}, {"boundingBox": - [5.3787, 2.5852, 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": - "Elm", "confidence": 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, - 6.4263, 2.7013, 5.6624, 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": - [6.4796, 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": - "Center", "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, - 7.0776, 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:46:37Z", + "lastUpdatedDateTime": "2020-09-14T19:46:45Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, + 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": + [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": + "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, + 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": + [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, 2.005], "text": "Vendor + Registration", "words": [{"boundingBox": [2.2268, 1.5733, 3.703, 1.5733, 3.703, + 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": 1}, {"boundingBox": + [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, 2.005], "text": "Registration", + "confidence": 1}]}, {"boundingBox": [1.0078, 2.5846, 7.0776, 2.5846, 7.0776, + 2.7293, 1.0078, 2.7293], "text": "Contoso Ltd. Conference will be held on + May 28-29, 2020 at the Elm Conference Center in", "words": [{"boundingBox": + [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, 1.0078, 2.7013], "text": + "Contoso", "confidence": 1}, {"boundingBox": [1.6125, 2.5856, 1.843, 2.5856, + 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": 1}, {"boundingBox": + [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, 2.7013], "text": + "Conference", "confidence": 1}, {"boundingBox": [2.7122, 2.5852, 2.9307, 2.5852, + 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": 1}, {"boundingBox": + [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, 2.7013], "text": + "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, 3.4704, 2.5852, 3.4704, + 2.7013, 3.1987, 2.7013], "text": "held", "confidence": 1}, {"boundingBox": + [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], "text": "on", "confidence": + 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, 4.0422, 2.7293, 3.7498, + 2.7293], "text": "May", "confidence": 1}, {"boundingBox": [4.0877, 2.5914, + 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": "28-29,", "confidence": + 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, 4.884, 2.7017, 4.5586, + 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": [4.9351, 2.6014, + 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": "at", "confidence": + 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, 2.7013, 5.1033, + 2.7013], "text": "the", "confidence": 1}, {"boundingBox": [5.3787, 2.5852, + 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": "Elm", "confidence": + 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, 6.4263, 2.7013, 5.6624, + 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [6.4796, + 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": "Center", + "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, 7.0776, + 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": [1.014, 2.8029, 7.3457, 2.8029, 7.3457, 2.9478, 1.014, 2.9478], "text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "words": [{"boundingBox": [1.014, 2.8036, 1.4242, 2.8036, 1.4242, @@ -12980,35 +12980,39 @@ interactions: 8.6811], "text": "guide", "confidence": 1}]}, {"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, 3.2075, 8.8563], "text": "advertisements", "words": [{"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, - 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, - 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": [6.1276, - 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": "Vendor", - "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, 7.4833, - 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": - [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, 2.3315], "text": "Vendor - Details:", "words": [{"boundingBox": [1.0044, 2.1778, 1.6496, 2.1778, 1.6496, - 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": 1}, {"boundingBox": - [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], "text": "Details:", - "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, 2.7686, 3.3477, - 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge Video", "words": - [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, 1.0065, 2.9126], - "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, 2.7764, 2.1376, - 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": 1}, - {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, 2.9128], - "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, 2.7689, 3.3477, - 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", "confidence": 1}]}, - {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, 3.2428, 1.0065, 3.2428], - "text": "Contact: Jamie@southridgevideo.com", "words": [{"boundingBox": [1.0065, - 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], "text": "Contact:", - "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, 3.0986, 3.5766, - 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", "confidence": - 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, 3.5744, 1.0115, - 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": [1.0115, - 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": "Preferred", - "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, 2.2978, - 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": + 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}], "selectionMarks": + [{"boundingBox": [0, 10.2725, 1.0372, 10.2725, 1.0372, 10.9925, 0, 10.9925], + "confidence": 0.69, "state": "unselected"}, {"boundingBox": [0, 10.6019, 1.5095, + 10.6019, 1.5095, 10.9983, 0, 10.9983], "confidence": 0.69, "state": "unselected"}, + {"boundingBox": [2.9381, 6.9634, 3.0388, 6.9634, 3.0388, 7.0736, 2.9381, 7.0736], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, + 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": + [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, + 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, + 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": + 1}]}, {"boundingBox": [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, + 2.3315], "text": "Vendor Details:", "words": [{"boundingBox": [1.0044, 2.1778, + 1.6496, 2.1778, 1.6496, 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": + 1}, {"boundingBox": [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], + "text": "Details:", "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, + 2.7686, 3.3477, 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge + Video", "words": [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, + 1.0065, 2.9126], "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, + 2.7764, 2.1376, 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": + 1}, {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, + 2.9128], "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, + 2.7689, 3.3477, 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", + "confidence": 1}]}, {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, + 3.2428, 1.0065, 3.2428], "text": "Contact: Jamie@southridgevideo.com", "words": + [{"boundingBox": [1.0065, 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], + "text": "Contact:", "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, + 3.0986, 3.5766, 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", + "confidence": 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, + 3.5744, 1.0115, 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": + [1.0115, 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": + "Preferred", "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, + 2.2978, 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": [2.3557, 3.4302, 2.6542, 3.4302, 2.6542, 3.5463, 2.3557, 3.5463], "text": "Gold", "confidence": 1}]}, {"boundingBox": [1.0052, 3.7537, 2.4783, 3.7537, 2.4783, 3.9043, 1.0052, 3.9043], "text": "Special Requests: N/a", "words": @@ -13016,12 +13020,17 @@ interactions: "text": "Special", "confidence": 1}, {"boundingBox": [1.5342, 3.7684, 2.1899, 3.7684, 2.1899, 3.9043, 1.5342, 3.9043], "text": "Requests:", "confidence": 1}, {"boundingBox": [2.254, 3.7537, 2.4783, 3.7537, 2.4783, 3.8976, 2.254, - 3.8976], "text": "N/a", "confidence": 1}]}]}], "pageResults": [{"page": 1, - "tables": [{"rows": 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Package", "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, - 4.8617, 1.0033, 4.8617], "elements": ["#/readResults/0/lines/10/words/0"]}, - {"rowIndex": 0, "columnIndex": 1, "text": "Included", "boundingBox": [2.625, - 4.6517, 5.75, 4.6517, 5.75, 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, + 3.8976], "text": "N/a", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0.0024, 9.869, 1.0826, 9.869, 1.0826, 10.9955, 0.0024, 10.9955], "confidence": + 0.833, "state": "unselected"}, {"boundingBox": [7.6562, 1.0157, 8.5, 1.0157, + 8.5, 2.8293, 7.6562, 2.8293], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [0.0008, 10.4758, 1.8164, 10.4758, 1.8164, 10.9978, 0.0008, 10.9978], "confidence": + 0.6, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Package", + "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, 4.8617, 1.0033, 4.8617], + "elements": ["#/readResults/0/lines/10/words/0"]}, {"rowIndex": 0, "columnIndex": + 1, "text": "Included", "boundingBox": [2.625, 4.6517, 5.75, 4.6517, 5.75, + 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 2, "text": "Price", "boundingBox": [5.75, 4.6517, 7.4967, 4.6517, 7.4967, 4.8617, 5.75, 4.8617], "elements": ["#/readResults/0/lines/12/words/0"]}, {"rowIndex": 1, "columnIndex": 0, "text": "Gold Sponsor", "boundingBox": [1.0033, @@ -13110,44 +13119,44 @@ interactions: "#/readResults/0/lines/55/words/3", "#/readResults/0/lines/55/words/4"]}, {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, - {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"CompanyName": {"type": "string", "valueString": - "Southridge Video", "text": "Southridge Video", "page": 2, "boundingBox": - [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}, - "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", - "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, - 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, - "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": - 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, - "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": - 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, + {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d", + "modelId": "a4e0a97a-c367-4fc0-b9cb-06583a8b4e8d", "pageRange": [1, 2], "fields": + {"Full": {"type": "string", "valueString": "$600", "text": "$600", "page": + 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": + 1.0, "elements": ["#/readResults/0/lines/46/words/0"]}, "Silver": {"type": + "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": + [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], "confidence": 1.0, + "elements": ["#/readResults/0/lines/27/words/0"]}, "CompanyName": {"type": + "string", "valueString": "Southridge Video", "text": "Southridge Video", "page": + 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": + 1.0, "elements": ["#/readResults/1/lines/2/words/2", "#/readResults/1/lines/2/words/3"]}, "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Half": - {"type": "string", "valueString": "$350", "text": "$350", "page": 1, "boundingBox": - [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "Full": {"type": "string", - "valueString": "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, - 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}}}], - "errors": []}}' + 1.0, "elements": ["#/readResults/0/lines/16/words/0"]}, "Bronze": {"type": + "string", "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": + [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, + "elements": ["#/readResults/0/lines/37/words/0"]}, "Half": {"type": "string", + "valueString": "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, + 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": ["#/readResults/0/lines/53/words/0"]}, + "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", + "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, + 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/readResults/1/lines/3/words/1"]}}, + "docTypeConfidence": 1.0}], "errors": []}}' headers: apim-request-id: - - 65d156a4-9ed3-44e1-bd2f-ad8821672ad3 + - a3d488a3-1b01-4871-a3a6-1d1aa31e097a content-length: - - '34159' + - '34822' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:14 GMT + - Mon, 14 Sep 2020 19:46:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 5d6036b9f4e7..e004f2463d64 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - dacededf-b0d3-4eed-a265-9b903a7743cb + - fee2d0c7-b88d-4a18-8886-17b16897b98e content-length: - '0' date: - - Fri, 10 Jul 2020 18:45:15 GMT + - Mon, 14 Sep 2020 19:46:56 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '66' + - '344' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", "status": - "creating", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:15Z"}}' + string: '{"modelInfo": {"modelId": "c35ac888-c3d6-4259-807b-d24f2b063daf", "status": + "creating", "createdDateTime": "2020-09-14T19:46:57Z", "lastUpdatedDateTime": + "2020-09-14T19:46:57Z"}}' headers: apim-request-id: - - 6aac84cb-a7d2-4797-99ca-5af9f5ce1e3d + - b4f58e3f-9c10-4035-828b-33c2b6462187 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:21 GMT + - Mon, 14 Sep 2020 19:47:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '17' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", "status": - "creating", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:15Z"}}' + string: '{"modelInfo": {"modelId": "c35ac888-c3d6-4259-807b-d24f2b063daf", "status": + "creating", "createdDateTime": "2020-09-14T19:46:57Z", "lastUpdatedDateTime": + "2020-09-14T19:46:57Z"}}' headers: apim-request-id: - - c0877810-7481-47bf-bfc2-2e54639010fd + - 23810cee-73d3-4c3d-8e5c-e40a0e10aeaf content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:26 GMT + - Mon, 14 Sep 2020 19:47:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '16' status: code: 200 message: OK @@ -120,14 +120,86 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", "status": - "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:28Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "c35ac888-c3d6-4259-807b-d24f2b063daf", "status": + "creating", "createdDateTime": "2020-09-14T19:46:57Z", "lastUpdatedDateTime": + "2020-09-14T19:46:57Z"}}' + headers: + apim-request-id: + - dcce6a96-b94e-42db-a78b-99c64e88ceea + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:47:13 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c35ac888-c3d6-4259-807b-d24f2b063daf", "status": + "creating", "createdDateTime": "2020-09-14T19:46:57Z", "lastUpdatedDateTime": + "2020-09-14T19:46:57Z"}}' + headers: + apim-request-id: + - 7866afc9-7910-415a-aaee-ddd2e3e51ee8 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:47:18 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '15' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c35ac888-c3d6-4259-807b-d24f2b063daf", "status": + "ready", "createdDateTime": "2020-09-14T19:46:57Z", "lastUpdatedDateTime": + "2020-09-14T19:47:21Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -143,11 +215,11 @@ interactions: []}}' headers: apim-request-id: - - faf233f8-8bf8-45dd-80d1-adee1521dd3c + - 2a54cd8e-eb54-4b13-b158-c48a55a8e189 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:31 GMT + - Mon, 14 Sep 2020 19:47:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -155,7 +227,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '19' status: code: 200 message: OK @@ -12648,7 +12720,7 @@ interactions: dHhyZWYKNzEwNTI1CiUlRU9GCg== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -12658,27 +12730,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 57c40dee-8d13-4ed4-99f1-40905615e915 + - 11b8027e-66c1-4dad-ad48-1f2e6bc27caf content-length: - '0' date: - - Fri, 10 Jul 2020 18:45:32 GMT + - Mon, 14 Sep 2020 19:47:24 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyzeresults/389f1fd0-829b-416c-bfb1-0d3d5fcb49c2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf/analyzeresults/c9f3ed4e-cca5-4244-aa9f-15c7d0834e2f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '134' + - '55' status: code: 202 message: Accepted @@ -12692,28 +12764,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf/analyzeresults/c9f3ed4e-cca5-4244-aa9f-15c7d0834e2f + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:47:24Z", "lastUpdatedDateTime": + "2020-09-14T19:47:25Z", "analyzeResult": null}' + headers: + apim-request-id: + - 1e069880-0506-4009-a67d-fd8c0fd0d0dc + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:47:29 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '18' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyzeresults/389f1fd0-829b-416c-bfb1-0d3d5fcb49c2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf/analyzeresults/c9f3ed4e-cca5-4244-aa9f-15c7d0834e2f response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:45:32Z", "lastUpdatedDateTime": - "2020-07-10T18:45:33Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:47:24Z", "lastUpdatedDateTime": + "2020-09-14T19:47:25Z", "analyzeResult": null}' headers: apim-request-id: - - b496eae2-f898-4254-aefb-a573ab296349 + - d92e6080-45cd-4bfb-b784-c337c849861d content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:37 GMT + - Mon, 14 Sep 2020 19:47:34 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '16' status: code: 200 message: OK @@ -12727,476 +12834,439 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9137242f-1f19-40e6-b9ec-59c0cb5c65bc/analyzeresults/389f1fd0-829b-416c-bfb1-0d3d5fcb49c2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c35ac888-c3d6-4259-807b-d24f2b063daf/analyzeresults/c9f3ed4e-cca5-4244-aa9f-15c7d0834e2f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:32Z", - "lastUpdatedDateTime": "2020-07-10T18:45:37Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, - 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", - "boundingBox": [6.1236, 1.0014, 6.8694, 1.0014, 6.8694, 1.3056, 6.1236, 1.3056]}, - {"text": "#:", "boundingBox": [6.9264, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.9264, 1.3056]}]}, {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, - 1.0014, 7.4958, 1.3056, 7.1167, 1.3056], "words": [{"text": "121", "boundingBox": - [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, 1.3056, 7.1167, 1.3056]}]}, {"text": - "Vendor Registration", "boundingBox": [2.2181, 1.4417, 6.2736, 1.4417, 6.2736, - 2.05, 2.2181, 2.05], "words": [{"text": "Vendor", "boundingBox": [2.2181, - 1.4417, 3.7111, 1.4417, 3.7111, 2.05, 2.2181, 2.05]}, {"text": "Registration", - "boundingBox": [3.8236, 1.4417, 6.2736, 1.4417, 6.2736, 2.05, 3.8236, 2.05]}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:47:24Z", + "lastUpdatedDateTime": "2020-09-14T19:47:36Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, + 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": "Vendor", + "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, 6.1278, 1.2403]}, + {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, 7.1514, 1.2392, + 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, 1.076, 7.4833, + 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392]}]}, {"text": + "Vendor Registration", "boundingBox": [2.2264, 1.5827, 6.2375, 1.5827, 6.2375, + 1.9739, 2.2264, 1.9739], "words": [{"text": "Vendor", "boundingBox": [2.2264, + 1.5733, 3.7028, 1.5733, 3.7028, 1.9208, 2.2264, 1.9208]}, {"text": "Registration", + "boundingBox": [3.8667, 1.5882, 6.2375, 1.5882, 6.2375, 2.0049, 3.8667, 2.0049]}]}, {"text": "Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm - Conference Center in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, - 2.7444, 1.0, 2.7444], "words": [{"text": "Contoso", "boundingBox": [1.0, 2.5417, - 1.5625, 2.5417, 1.5625, 2.7444, 1.0, 2.7444]}, {"text": "Ltd.", "boundingBox": - [1.5986, 2.5417, 1.8556, 2.5417, 1.8556, 2.7444, 1.5986, 2.7444]}, {"text": - "Conference", "boundingBox": [1.8917, 2.5417, 2.6708, 2.5417, 2.6708, 2.7444, - 1.8917, 2.7444]}, {"text": "will", "boundingBox": [2.7083, 2.5417, 2.9431, - 2.5417, 2.9431, 2.7444, 2.7083, 2.7444]}, {"text": "be", "boundingBox": [2.9792, - 2.5417, 3.15, 2.5417, 3.15, 2.7444, 2.9792, 2.7444]}, {"text": "held", "boundingBox": - [3.1861, 2.5417, 3.4833, 2.5417, 3.4833, 2.7444, 3.1861, 2.7444]}, {"text": - "on", "boundingBox": [3.5222, 2.5417, 3.6972, 2.5417, 3.6972, 2.7444, 3.5222, - 2.7444]}, {"text": "May", "boundingBox": [3.7389, 2.5417, 4.0444, 2.5417, - 4.0444, 2.7444, 3.7389, 2.7444]}, {"text": "28-29,", "boundingBox": [4.0806, - 2.5417, 4.5125, 2.5417, 4.5125, 2.7444, 4.0806, 2.7444]}, {"text": "2020", - "boundingBox": [4.5514, 2.5417, 4.8889, 2.5417, 4.8889, 2.7444, 4.5514, 2.7444]}, - {"text": "at", "boundingBox": [4.9278, 2.5417, 5.0625, 2.5417, 5.0625, 2.7444, - 4.9278, 2.7444]}, {"text": "the", "boundingBox": [5.1, 2.5417, 5.3278, 2.5417, - 5.3278, 2.7444, 5.1, 2.7444]}, {"text": "Elm", "boundingBox": [5.3653, 2.5417, - 5.6167, 2.5417, 5.6167, 2.7444, 5.3653, 2.7444]}, {"text": "Conference", "boundingBox": - [5.6542, 2.5417, 6.4347, 2.5417, 6.4347, 2.7444, 5.6542, 2.7444]}, {"text": - "Center", "boundingBox": [6.4722, 2.5417, 6.9264, 2.5417, 6.9264, 2.7444, - 6.4722, 2.7444]}, {"text": "in", "boundingBox": [6.9653, 2.5417, 7.0903, 2.5417, - 7.0903, 2.7444, 6.9653, 2.7444]}]}, {"text": "Maple City, Massachusetts. The + Conference Center in", "boundingBox": [1.0069, 2.5894, 7.0778, 2.5894, 7.0778, + 2.7043, 1.0069, 2.7043], "words": [{"text": "Contoso", "boundingBox": [1.0069, + 2.592, 1.5556, 2.592, 1.5556, 2.7014, 1.0069, 2.7014]}, {"text": "Ltd.", "boundingBox": + [1.6125, 2.5858, 1.8431, 2.5858, 1.8431, 2.7014, 1.6125, 2.7014]}, {"text": + "Conference", "boundingBox": [1.9, 2.5847, 2.6639, 2.5847, 2.6639, 2.7014, + 1.9, 2.7014]}, {"text": "will", "boundingBox": [2.7125, 2.5851, 2.9306, 2.5851, + 2.9306, 2.7003, 2.7125, 2.7003]}, {"text": "be", "boundingBox": [2.9917, 2.5851, + 3.1417, 2.5851, 3.1417, 2.7014, 2.9917, 2.7014]}, {"text": "held", "boundingBox": + [3.1986, 2.5851, 3.4708, 2.5851, 3.4708, 2.7014, 3.1986, 2.7014]}, {"text": + "on", "boundingBox": [3.5306, 2.6201, 3.6847, 2.6201, 3.6847, 2.7014, 3.5306, + 2.7014]}, {"text": "May", "boundingBox": [3.75, 2.5934, 4.0431, 2.5934, 4.0431, + 2.7292, 3.75, 2.7292]}, {"text": "28-29,", "boundingBox": [4.0875, 2.5913, + 4.5042, 2.5913, 4.5042, 2.7236, 4.0875, 2.7236]}, {"text": "2020", "boundingBox": + [4.5583, 2.5913, 4.8833, 2.5913, 4.8833, 2.7017, 4.5583, 2.7017]}, {"text": + "at", "boundingBox": [4.9347, 2.6014, 5.0569, 2.6014, 5.0569, 2.7014, 4.9347, + 2.7014]}, {"text": "the", "boundingBox": [5.1028, 2.5851, 5.3208, 2.5851, + 5.3208, 2.7014, 5.1028, 2.7014]}, {"text": "Elm", "boundingBox": [5.3792, + 2.5851, 5.6056, 2.5851, 5.6056, 2.7003, 5.3792, 2.7003]}, {"text": "Conference", + "boundingBox": [5.6625, 2.5847, 6.4264, 2.5847, 6.4264, 2.7014, 5.6625, 2.7014]}, + {"text": "Center", "boundingBox": [6.4792, 2.592, 6.9236, 2.592, 6.9236, 2.7014, + 6.4792, 2.7014]}, {"text": "in", "boundingBox": [6.9764, 2.5906, 7.0778, 2.5906, + 7.0778, 2.7003, 6.9764, 2.7003]}]}, {"text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "boundingBox": - [1.0, 2.7597, 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "words": [{"text": - "Maple", "boundingBox": [1.0, 2.7597, 1.4319, 2.7597, 1.4319, 2.9625, 1.0, - 2.9625]}, {"text": "City,", "boundingBox": [1.4681, 2.7597, 1.7694, 2.7597, - 1.7694, 2.9625, 1.4681, 2.9625]}, {"text": "Massachusetts.", "boundingBox": - [1.8056, 2.7597, 2.85, 2.7597, 2.85, 2.9625, 1.8056, 2.9625]}, {"text": "The", - "boundingBox": [2.8875, 2.7597, 3.1403, 2.7597, 3.1403, 2.9625, 2.8875, 2.9625]}, - {"text": "conference", "boundingBox": [3.1764, 2.7597, 3.9375, 2.7597, 3.9375, - 2.9625, 3.1764, 2.9625]}, {"text": "has", "boundingBox": [3.975, 2.7597, 4.2083, - 2.7597, 4.2083, 2.9625, 3.975, 2.9625]}, {"text": "sold", "boundingBox": [4.2458, - 2.7597, 4.5222, 2.7597, 4.5222, 2.9625, 4.2458, 2.9625]}, {"text": "out", - "boundingBox": [4.5625, 2.7597, 4.7917, 2.7597, 4.7917, 2.9625, 4.5625, 2.9625]}, - {"text": "of", "boundingBox": [4.8306, 2.7597, 4.9681, 2.7597, 4.9681, 2.9625, - 4.8306, 2.9625]}, {"text": "its", "boundingBox": [5.0056, 2.7597, 5.1667, - 2.7597, 5.1667, 2.9625, 5.0056, 2.9625]}, {"text": "1,500", "boundingBox": - [5.2028, 2.7597, 5.5819, 2.7597, 5.5819, 2.9625, 5.2028, 2.9625]}, {"text": - "tickets,", "boundingBox": [5.6194, 2.7597, 6.1042, 2.7597, 6.1042, 2.9625, - 5.6194, 2.9625]}, {"text": "with", "boundingBox": [6.1417, 2.7597, 6.4431, - 2.7597, 6.4431, 2.9625, 6.1417, 2.9625]}, {"text": "a", "boundingBox": [6.4806, - 2.7597, 6.5597, 2.7597, 6.5597, 2.9625, 6.4806, 2.9625]}, {"text": "400", - "boundingBox": [6.5972, 2.7597, 6.85, 2.7597, 6.85, 2.9625, 6.5972, 2.9625]}, - {"text": "person", "boundingBox": [6.8875, 2.7597, 7.3583, 2.7597, 7.3583, - 2.9625, 6.8875, 2.9625]}]}, {"text": "waitlist. Vendor applications are being - accepted through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, - 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "words": [{"text": "waitlist.", - "boundingBox": [1.0, 2.9806, 1.5319, 2.9806, 1.5319, 3.1833, 1.0, 3.1833]}, - {"text": "Vendor", "boundingBox": [1.5708, 2.9806, 2.0681, 2.9806, 2.0681, - 3.1833, 1.5708, 3.1833]}, {"text": "applications", "boundingBox": [2.1056, - 2.9806, 2.9208, 2.9806, 2.9208, 3.1833, 2.1056, 3.1833]}, {"text": "are", - "boundingBox": [2.9597, 2.9806, 3.1806, 2.9806, 3.1806, 3.1833, 2.9597, 3.1833]}, - {"text": "being", "boundingBox": [3.2181, 2.9806, 3.5931, 2.9806, 3.5931, - 3.1833, 3.2181, 3.1833]}, {"text": "accepted", "boundingBox": [3.6319, 2.9806, - 4.2458, 2.9806, 4.2458, 3.1833, 3.6319, 3.1833]}, {"text": "through", "boundingBox": - [4.2833, 2.9806, 4.825, 2.9806, 4.825, 3.1833, 4.2833, 3.1833]}, {"text": - "Feb", "boundingBox": [4.8694, 2.9806, 5.1194, 2.9806, 5.1194, 3.1833, 4.8694, - 3.1833]}, {"text": "28,", "boundingBox": [5.1556, 2.9806, 5.3694, 2.9806, - 5.3694, 3.1833, 5.1556, 3.1833]}, {"text": "2020.", "boundingBox": [5.4056, - 2.9806, 5.7875, 2.9806, 5.7875, 3.1833, 5.4056, 3.1833]}, {"text": "Please", - "boundingBox": [5.8264, 2.9806, 6.2611, 2.9806, 6.2611, 3.1833, 5.8264, 3.1833]}, - {"text": "fill", "boundingBox": [6.2986, 2.9806, 6.4667, 2.9806, 6.4667, 3.1833, - 6.2986, 3.1833]}, {"text": "in", "boundingBox": [6.5028, 2.9806, 6.6278, 2.9806, - 6.6278, 3.1833, 6.5028, 3.1833]}, {"text": "the", "boundingBox": [6.6653, - 2.9806, 6.8917, 2.9806, 6.8917, 3.1833, 6.6653, 3.1833]}, {"text": "form", - "boundingBox": [6.9292, 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 6.9292, 3.1833]}]}, - {"text": "below, and attach a check made out to:", "boundingBox": [1.0, 3.2, - 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "words": [{"text": "below,", "boundingBox": - [1.0, 3.2, 1.4569, 3.2, 1.4569, 3.4028, 1.0, 3.4028]}, {"text": "and", "boundingBox": - [1.4944, 3.2, 1.75, 3.2, 1.75, 3.4028, 1.4944, 3.4028]}, {"text": "attach", - "boundingBox": [1.7889, 3.2, 2.2167, 3.2, 2.2167, 3.4028, 1.7889, 3.4028]}, - {"text": "a", "boundingBox": [2.2542, 3.2, 2.3347, 3.2, 2.3347, 3.4028, 2.2542, - 3.4028]}, {"text": "check", "boundingBox": [2.3722, 3.2, 2.7556, 3.2, 2.7556, - 3.4028, 2.3722, 3.4028]}, {"text": "made", "boundingBox": [2.7958, 3.2, 3.1778, - 3.2, 3.1778, 3.4028, 2.7958, 3.4028]}, {"text": "out", "boundingBox": [3.2181, - 3.2, 3.4472, 3.2, 3.4472, 3.4028, 3.2181, 3.4028]}, {"text": "to:", "boundingBox": - [3.4847, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 3.4847, 3.4028]}]}, {"text": "Contoso - Ltd.", "boundingBox": [1.0, 3.5306, 1.8556, 3.5306, 1.8556, 3.7333, 1.0, 3.7333], - "words": [{"text": "Contoso", "boundingBox": [1.0, 3.5306, 1.5625, 3.5306, - 1.5625, 3.7333, 1.0, 3.7333]}, {"text": "Ltd.", "boundingBox": [1.5986, 3.5306, - 1.8556, 3.5306, 1.8556, 3.7333, 1.5986, 3.7333]}]}, {"text": "2345 Dogwood - Lane", "boundingBox": [1.0, 3.75, 2.3847, 3.75, 2.3847, 3.9528, 1.0, 3.9528], - "words": [{"text": "2345", "boundingBox": [1.0, 3.75, 1.3389, 3.75, 1.3389, - 3.9528, 1.0, 3.9528]}, {"text": "Dogwood", "boundingBox": [1.3764, 3.75, 2.0278, - 3.75, 2.0278, 3.9528, 1.3764, 3.9528]}, {"text": "Lane", "boundingBox": [2.0653, - 3.75, 2.3847, 3.75, 2.3847, 3.9528, 2.0653, 3.9528]}]}, {"text": "Birch, Kansas - 98123", "boundingBox": [1.0, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.0, - 4.1722], "words": [{"text": "Birch,", "boundingBox": [1.0, 3.9694, 1.3861, - 3.9694, 1.3861, 4.1722, 1.0, 4.1722]}, {"text": "Kansas", "boundingBox": [1.4236, - 3.9694, 1.8889, 3.9694, 1.8889, 4.1722, 1.4236, 4.1722]}, {"text": "98123", - "boundingBox": [1.925, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.925, 4.1722]}]}, - {"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, - 1.0, 4.6264], "words": [{"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, - 4.3556, 1.5486, 4.6264, 1.0, 4.6264]}]}, {"text": "Package", "boundingBox": - [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, 4.8583], "words": - [{"text": "Package", "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, - 4.8583, 1.0778, 4.8583]}]}, {"text": "Included", "boundingBox": [2.6986, 4.6556, - 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583], "words": [{"text": "Included", - "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583]}]}, - {"text": "Price", "boundingBox": [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, - 4.8583, 5.8236, 4.8583], "words": [{"text": "Price", "boundingBox": [5.8236, - 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583]}]}, {"text": "Gold - Sponsor", "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, - 1.0778, 5.0681], "words": [{"text": "Gold", "boundingBox": [1.0778, 4.8653, - 1.3958, 4.8653, 1.3958, 5.0681, 1.0778, 5.0681]}, {"text": "Sponsor", "boundingBox": - [1.4361, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, 1.4361, 5.0681]}]}, {"text": - "Full booth", "boundingBox": [3.2, 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, - 3.2, 5.0764], "words": [{"text": "Full", "boundingBox": [3.2, 4.8736, 3.4417, - 4.8736, 3.4417, 5.0764, 3.2, 5.0764]}, {"text": "booth", "boundingBox": [3.4792, - 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, 3.4792, 5.0764]}]}, {"text": "$1,500", - "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], - "words": [{"text": "$1,500", "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, - 6.2889, 5.0681, 5.825, 5.0681]}]}, {"text": "Pre-keynote thank you", "boundingBox": - [3.2, 5.0861, 4.7389, 5.0861, 4.7389, 5.2889, 3.2, 5.2889], "words": [{"text": - "Pre-keynote", "boundingBox": [3.2, 5.0861, 4.0264, 5.0861, 4.0264, 5.2889, - 3.2, 5.2889]}, {"text": "thank", "boundingBox": [4.0639, 5.0861, 4.45, 5.0861, - 4.45, 5.2889, 4.0639, 5.2889]}, {"text": "you", "boundingBox": [4.4875, 5.0861, - 4.7389, 5.0861, 4.7389, 5.2889, 4.4875, 5.2889]}]}, {"text": "Logo on poster", - "boundingBox": [3.2, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.2, 5.5014], - "words": [{"text": "Logo", "boundingBox": [3.2, 5.2986, 3.5236, 5.2986, 3.5236, - 5.5014, 3.2, 5.5014]}, {"text": "on", "boundingBox": [3.5611, 5.2986, 3.7361, - 5.2986, 3.7361, 5.5014, 3.5611, 5.5014]}, {"text": "poster", "boundingBox": - [3.7764, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.7764, 5.5014]}]}, {"text": - "Full page ad in program guide", "boundingBox": [3.2, 5.5111, 5.2083, 5.5111, - 5.2083, 5.7139, 3.2, 5.7139], "words": [{"text": "Full", "boundingBox": [3.2, - 5.5111, 3.4417, 5.5111, 3.4417, 5.7139, 3.2, 5.7139]}, {"text": "page", "boundingBox": - [3.4792, 5.5111, 3.8069, 5.5111, 3.8069, 5.7139, 3.4792, 5.7139]}, {"text": - "ad", "boundingBox": [3.8444, 5.5111, 4.0111, 5.5111, 4.0111, 5.7139, 3.8444, - 5.7139]}, {"text": "in", "boundingBox": [4.0486, 5.5111, 4.175, 5.5111, 4.175, - 5.7139, 4.0486, 5.7139]}, {"text": "program", "boundingBox": [4.2125, 5.5111, - 4.7958, 5.5111, 4.7958, 5.7139, 4.2125, 5.7139]}, {"text": "guide", "boundingBox": - [4.8319, 5.5111, 5.2083, 5.5111, 5.2083, 5.7139, 4.8319, 5.7139]}]}, {"text": - "Silver Sponsor", "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "words": [{"text": "Silver", "boundingBox": [1.0778, - 5.9347, 1.4472, 5.9347, 1.4472, 6.1375, 1.0778, 6.1375]}, {"text": "Sponsor", - "boundingBox": [1.4847, 5.9347, 2.0361, 5.9347, 2.0361, 6.1375, 1.4847, 6.1375]}]}, - {"text": "Full booth", "boundingBox": [3.2, 5.9431, 3.8847, 5.9431, 3.8847, - 6.1458, 3.2, 6.1458], "words": [{"text": "Full", "boundingBox": [3.2, 5.9431, - 3.4417, 5.9431, 3.4417, 6.1458, 3.2, 6.1458]}, {"text": "booth", "boundingBox": - [3.4792, 5.9431, 3.8847, 5.9431, 3.8847, 6.1458, 3.4792, 6.1458]}]}, {"text": - "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, - 6.1375], "words": [{"text": "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, - 5.9347, 6.2889, 6.1375, 5.825, 6.1375]}]}, {"text": "Post-keynote thank you", - "boundingBox": [3.2, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 3.2, 6.3583], - "words": [{"text": "Post-keynote", "boundingBox": [3.2, 6.1556, 4.0958, 6.1556, - 4.0958, 6.3583, 3.2, 6.3583]}, {"text": "thank", "boundingBox": [4.1319, 6.1556, - 4.5194, 6.1556, 4.5194, 6.3583, 4.1319, 6.3583]}, {"text": "you", "boundingBox": - [4.5556, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 4.5556, 6.3583]}]}, {"text": - "Logo on poster", "boundingBox": [3.2, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, - 3.2, 6.5694], "words": [{"text": "Logo", "boundingBox": [3.2, 6.3667, 3.5236, - 6.3667, 3.5236, 6.5694, 3.2, 6.5694]}, {"text": "on", "boundingBox": [3.5611, - 6.3667, 3.7361, 6.3667, 3.7361, 6.5694, 3.5611, 6.5694]}, {"text": "poster", - "boundingBox": [3.7764, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, 3.7764, 6.5694]}]}, - {"text": "Half page ad in program guide", "boundingBox": [3.2, 6.5806, 5.2389, - 6.5806, 5.2389, 6.7833, 3.2, 6.7833], "words": [{"text": "Half", "boundingBox": - [3.2, 6.5806, 3.4722, 6.5806, 3.4722, 6.7833, 3.2, 6.7833]}, {"text": "page", - "boundingBox": [3.5097, 6.5806, 3.8403, 6.5806, 3.8403, 6.7833, 3.5097, 6.7833]}, - {"text": "ad", "boundingBox": [3.8764, 6.5806, 4.0444, 6.5806, 4.0444, 6.7833, - 3.8764, 6.7833]}, {"text": "in", "boundingBox": [4.0819, 6.5806, 4.2069, 6.5806, - 4.2069, 6.7833, 4.0819, 6.7833]}, {"text": "program", "boundingBox": [4.2444, - 6.5806, 4.8264, 6.5806, 4.8264, 6.7833, 4.2444, 6.7833]}, {"text": "guide", - "boundingBox": [4.8653, 6.5806, 5.2389, 6.5806, 5.2389, 6.7833, 4.8653, 6.7833]}]}, - {"text": "Bronze Sponsor", "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, - 2.1389, 6.9931, 1.0778, 6.9931], "words": [{"text": "Bronze", "boundingBox": - [1.0778, 6.7903, 1.5528, 6.7903, 1.5528, 6.9931, 1.0778, 6.9931]}, {"text": - "Sponsor", "boundingBox": [1.5889, 6.7903, 2.1389, 6.7903, 2.1389, 6.9931, - 1.5889, 6.9931]}]}, {"text": "Full booth", "boundingBox": [3.2, 6.7986, 3.8847, - 6.7986, 3.8847, 7.0014, 3.2, 7.0014], "words": [{"text": "Full", "boundingBox": - [3.2, 6.7986, 3.4417, 6.7986, 3.4417, 7.0014, 3.2, 7.0014]}, {"text": "booth", - "boundingBox": [3.4792, 6.7986, 3.8847, 6.7986, 3.8847, 7.0014, 3.4792, 7.0014]}]}, - {"text": "$1,000", "boundingBox": [5.825, 6.7903, 6.2889, 6.7903, 6.2889, - 6.9931, 5.825, 6.9931], "words": [{"text": "$1,000", "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931]}]}, {"text": "Logo - on poster", "boundingBox": [3.2, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.2, - 7.2139], "words": [{"text": "Logo", "boundingBox": [3.2, 7.0111, 3.5236, 7.0111, - 3.5236, 7.2139, 3.2, 7.2139]}, {"text": "on", "boundingBox": [3.5611, 7.0111, - 3.7361, 7.0111, 3.7361, 7.2139, 3.5611, 7.2139]}, {"text": "poster", "boundingBox": - [3.7764, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.7764, 7.2139]}]}, {"text": - "50% discount on program guide", "boundingBox": [3.2, 7.2236, 5.35, 7.2236, - 5.35, 7.4264, 3.2, 7.4264], "words": [{"text": "50%", "boundingBox": [3.2, - 7.2236, 3.4875, 7.2236, 3.4875, 7.4264, 3.2, 7.4264]}, {"text": "discount", - "boundingBox": [3.525, 7.2236, 4.1069, 7.2236, 4.1069, 7.4264, 3.525, 7.4264]}, - {"text": "on", "boundingBox": [4.1444, 7.2236, 4.3194, 7.2236, 4.3194, 7.4264, - 4.1444, 7.4264]}, {"text": "program", "boundingBox": [4.3556, 7.2236, 4.9375, - 7.2236, 4.9375, 7.4264, 4.3556, 7.4264]}, {"text": "guide", "boundingBox": - [4.9764, 7.2236, 5.35, 7.2236, 5.35, 7.4264, 4.9764, 7.4264]}]}, {"text": - "advertisements", "boundingBox": [3.2, 7.4264, 4.25, 7.4264, 4.25, 7.6292, - 3.2, 7.6292], "words": [{"text": "advertisements", "boundingBox": [3.2, 7.4264, - 4.25, 7.4264, 4.25, 7.6292, 3.2, 7.6292]}]}, {"text": "Full Booth", "boundingBox": - [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, 7.8417, 1.0778, 7.8417], "words": - [{"text": "Full", "boundingBox": [1.0778, 7.6389, 1.3208, 7.6389, 1.3208, - 7.8417, 1.0778, 7.8417]}, {"text": "Booth", "boundingBox": [1.3583, 7.6389, - 1.7653, 7.6389, 1.7653, 7.8417, 1.3583, 7.8417]}]}, {"text": "Full booth", - "boundingBox": [3.2, 7.6472, 3.8847, 7.6472, 3.8847, 7.85, 3.2, 7.85], "words": - [{"text": "Full", "boundingBox": [3.2, 7.6472, 3.4417, 7.6472, 3.4417, 7.85, - 3.2, 7.85]}, {"text": "booth", "boundingBox": [3.4792, 7.6472, 3.8847, 7.6472, - 3.8847, 7.85, 3.4792, 7.85]}]}, {"text": "$600", "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "words": [{"text": "$600", - "boundingBox": [5.825, 7.6389, 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417]}]}, - {"text": "50% discount on program guide", "boundingBox": [3.2, 7.8583, 5.35, - 7.8583, 5.35, 8.0611, 3.2, 8.0611], "words": [{"text": "50%", "boundingBox": - [3.2, 7.8583, 3.4875, 7.8583, 3.4875, 8.0611, 3.2, 8.0611]}, {"text": "discount", - "boundingBox": [3.525, 7.8583, 4.1069, 7.8583, 4.1069, 8.0611, 3.525, 8.0611]}, - {"text": "on", "boundingBox": [4.1444, 7.8583, 4.3194, 7.8583, 4.3194, 8.0611, - 4.1444, 8.0611]}, {"text": "program", "boundingBox": [4.3556, 7.8583, 4.9375, - 7.8583, 4.9375, 8.0611, 4.3556, 8.0611]}, {"text": "guide", "boundingBox": - [4.9764, 7.8583, 5.35, 7.8583, 5.35, 8.0611, 4.9764, 8.0611]}]}, {"text": - "advertisements", "boundingBox": [3.2, 8.0611, 4.25, 8.0611, 4.25, 8.2639, - 3.2, 8.2639], "words": [{"text": "advertisements", "boundingBox": [3.2, 8.0611, - 4.25, 8.0611, 4.25, 8.2639, 3.2, 8.2639]}]}, {"text": "Half Booth", "boundingBox": - [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, 8.4764], "words": - [{"text": "Half", "boundingBox": [1.0778, 8.2736, 1.35, 8.2736, 1.35, 8.4764, - 1.0778, 8.4764]}, {"text": "Booth", "boundingBox": [1.3889, 8.2736, 1.7972, - 8.2736, 1.7972, 8.4764, 1.3889, 8.4764]}]}, {"text": "Full booth", "boundingBox": - [3.2, 8.2819, 3.8847, 8.2819, 3.8847, 8.4847, 3.2, 8.4847], "words": [{"text": - "Full", "boundingBox": [3.2, 8.2819, 3.4417, 8.2819, 3.4417, 8.4847, 3.2, - 8.4847]}, {"text": "booth", "boundingBox": [3.4792, 8.2819, 3.8847, 8.2819, - 3.8847, 8.4847, 3.4792, 8.4847]}]}, {"text": "$350", "boundingBox": [5.825, - 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "words": [{"text": - "$350", "boundingBox": [5.825, 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, - 8.4764]}]}, {"text": "25% discount on program guide", "boundingBox": [3.2, - 8.4931, 5.35, 8.4931, 5.35, 8.6958, 3.2, 8.6958], "words": [{"text": "25%", - "boundingBox": [3.2, 8.4931, 3.4875, 8.4931, 3.4875, 8.6958, 3.2, 8.6958]}, - {"text": "discount", "boundingBox": [3.525, 8.4931, 4.1069, 8.4931, 4.1069, - 8.6958, 3.525, 8.6958]}, {"text": "on", "boundingBox": [4.1444, 8.4931, 4.3194, - 8.4931, 4.3194, 8.6958, 4.1444, 8.6958]}, {"text": "program", "boundingBox": - [4.3556, 8.4931, 4.9375, 8.4931, 4.9375, 8.6958, 4.3556, 8.6958]}, {"text": - "guide", "boundingBox": [4.9764, 8.4931, 5.35, 8.4931, 5.35, 8.6958, 4.9764, - 8.6958]}]}, {"text": "advertisements", "boundingBox": [3.2, 8.6972, 4.25, - 8.6972, 4.25, 8.9, 3.2, 8.9], "words": [{"text": "advertisements", "boundingBox": - [3.2, 8.6972, 4.25, 8.6972, 4.25, 8.9, 3.2, 8.9]}]}]}, {"page": 2, "angle": - 359.96, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor - #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.1389, - 1.2708], "words": [{"text": "Vendor", "boundingBox": [6.1389, 1.0556, 6.8917, - 1.0556, 6.8917, 1.2708, 6.1389, 1.2708]}, {"text": "#:", "boundingBox": [6.9333, - 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.9333, 1.2708]}]}, {"text": "121", - "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], - "words": [{"text": "121", "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, - 7.5167, 1.2708, 7.1667, 1.2708]}]}, {"text": "Vendor Details:", "boundingBox": - [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, 2.3722], "words": [{"text": - "Vendor", "boundingBox": [1.0111, 2.1736, 1.6736, 2.1736, 1.6736, 2.3722, - 1.0111, 2.3722]}, {"text": "Details:", "boundingBox": [1.7111, 2.1736, 2.375, - 2.1736, 2.375, 2.3722, 1.7111, 2.3722]}]}, {"text": "Company Name:", "boundingBox": - [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, 1.0028, 2.9278], "words": - [{"text": "Company", "boundingBox": [1.0028, 2.7611, 1.6639, 2.7611, 1.6639, - 2.9278, 1.0028, 2.9278]}, {"text": "Name:", "boundingBox": [1.6944, 2.7611, - 2.1556, 2.7611, 2.1556, 2.9278, 1.6944, 2.9278]}]}, {"text": "Southridge Video", - "boundingBox": [2.1917, 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], - "words": [{"text": "Southridge", "boundingBox": [2.1917, 2.7611, 2.9444, 2.7611, - 2.9444, 2.9278, 2.1917, 2.9278]}, {"text": "Video", "boundingBox": [2.975, - 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.975, 2.9278]}]}, {"text": "Contact:", - "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, 1.0069, 3.2472], - "words": [{"text": "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, - 1.5903, 3.2472, 1.0069, 3.2472]}]}, {"text": "Jamie@southridgevideo.com", - "boundingBox": [1.6222, 3.0903, 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], - "words": [{"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, - 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472]}]}, {"text": "Preferred Package:", - "boundingBox": [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], - "words": [{"text": "Preferred", "boundingBox": [1.0028, 3.4236, 1.6667, 3.4236, - 1.6667, 3.5806, 1.0028, 3.5806]}, {"text": "Package:", "boundingBox": [1.6972, - 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.6972, 3.5806]}]}, {"text": "Gold", - "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, 2.35, 3.5806], - "words": [{"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, - 3.5806, 2.35, 3.5806]}]}, {"text": "Special Requests:", "boundingBox": [1.0167, - 3.7611, 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "words": [{"text": - "Special", "boundingBox": [1.0167, 3.7611, 1.4972, 3.7611, 1.4972, 3.9139, - 1.0167, 3.9139]}, {"text": "Requests:", "boundingBox": [1.5278, 3.7611, 2.2194, - 3.7611, 2.2194, 3.9139, 1.5278, 3.9139]}]}, {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "words": [{"text": - "N/a", "boundingBox": [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, - 3.9139]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": - "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.1236, 1.3056], "elements": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1"]}, - "value": {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, - 1.3056, 7.1167, 1.3056], "elements": ["#/readResults/0/lines/1/words/0"]}, - "confidence": 1.0}, {"key": {"text": "__Address__1", "boundingBox": null, - "elements": null}, "value": {"text": "Contoso Ltd. 2345 Dogwood Lane Birch, - Kansas 98123", "boundingBox": [1.0, 3.5306, 2.3847, 3.5306, 2.3847, 4.1722, - 1.0, 4.1722], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1", - "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", "#/readResults/0/lines/8/words/2", - "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": - null}, "value": {"text": "Vendor Registration", "boundingBox": [2.2181, 1.4417, - 6.2736, 1.4417, 6.2736, 2.05, 2.2181, 2.05], "elements": ["#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, 2.7444, 1.0, 2.7444], - "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", "#/readResults/0/lines/3/words/3", "#/readResults/0/lines/3/words/4", - "#/readResults/0/lines/3/words/5", "#/readResults/0/lines/3/words/6", "#/readResults/0/lines/3/words/7", - "#/readResults/0/lines/3/words/8", "#/readResults/0/lines/3/words/9", "#/readResults/0/lines/3/words/10", - "#/readResults/0/lines/3/words/11", "#/readResults/0/lines/3/words/12", "#/readResults/0/lines/3/words/13", - "#/readResults/0/lines/3/words/14", "#/readResults/0/lines/3/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Maple City, Massachusetts. The conference has sold - out of its 1,500 tickets, with a 400 person", "boundingBox": [1.0, 2.7597, - 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "elements": ["#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/4/words/3", - "#/readResults/0/lines/4/words/4", "#/readResults/0/lines/4/words/5", "#/readResults/0/lines/4/words/6", - "#/readResults/0/lines/4/words/7", "#/readResults/0/lines/4/words/8", "#/readResults/0/lines/4/words/9", - "#/readResults/0/lines/4/words/10", "#/readResults/0/lines/4/words/11", "#/readResults/0/lines/4/words/12", - "#/readResults/0/lines/4/words/13", "#/readResults/0/lines/4/words/14", "#/readResults/0/lines/4/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "waitlist. Vendor applications are being accepted - through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, 2.9806, - 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "elements": ["#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", "#/readResults/0/lines/5/words/3", - "#/readResults/0/lines/5/words/4", "#/readResults/0/lines/5/words/5", "#/readResults/0/lines/5/words/6", - "#/readResults/0/lines/5/words/7", "#/readResults/0/lines/5/words/8", "#/readResults/0/lines/5/words/9", - "#/readResults/0/lines/5/words/10", "#/readResults/0/lines/5/words/11", "#/readResults/0/lines/5/words/12", - "#/readResults/0/lines/5/words/13", "#/readResults/0/lines/5/words/14"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "below, and attach a check made out to:", "boundingBox": - [1.0, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "elements": ["#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", "#/readResults/0/lines/6/words/2", "#/readResults/0/lines/6/words/3", - "#/readResults/0/lines/6/words/4", "#/readResults/0/lines/6/words/5", "#/readResults/0/lines/6/words/6", - "#/readResults/0/lines/6/words/7"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Rates:", - "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, 1.0, 4.6264], - "elements": ["#/readResults/0/lines/10/words/0"]}, "confidence": 1.0}], "tables": - [{"rows": 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": - 0, "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, - 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], + [1.0139, 2.8083, 7.3458, 2.8083, 7.3458, 2.9286, 1.0139, 2.9286], "words": + [{"text": "Maple", "boundingBox": [1.0139, 2.8035, 1.4236, 2.8035, 1.4236, + 2.9479, 1.0139, 2.9479]}, {"text": "City,", "boundingBox": [1.4764, 2.809, + 1.7569, 2.809, 1.7569, 2.9479, 1.4764, 2.9479]}, {"text": "Massachusetts.", + "boundingBox": [1.8194, 2.8035, 2.8375, 2.8035, 2.8375, 2.9198, 1.8194, 2.9198]}, + {"text": "The", "boundingBox": [2.8875, 2.8035, 3.1333, 2.8035, 3.1333, 2.9198, + 2.8875, 2.9198]}, {"text": "conference", "boundingBox": [3.1833, 2.8028, 3.9306, + 2.8028, 3.9306, 2.9198, 3.1833, 2.9198]}, {"text": "has", "boundingBox": [3.9875, + 2.8035, 4.2014, 2.8035, 4.2014, 2.9198, 3.9875, 2.9198]}, {"text": "sold", + "boundingBox": [4.2528, 2.8035, 4.5111, 2.8035, 4.5111, 2.9198, 4.2528, 2.9198]}, + {"text": "out", "boundingBox": [4.5708, 2.8198, 4.7875, 2.8198, 4.7875, 2.9198, + 4.5708, 2.9198]}, {"text": "of", "boundingBox": [4.8375, 2.8028, 4.9708, 2.8028, + 4.9708, 2.9198, 4.8375, 2.9198]}, {"text": "its", "boundingBox": [5.0167, + 2.809, 5.1597, 2.809, 5.1597, 2.9198, 5.0167, 2.9198]}, {"text": "1,500", + "boundingBox": [5.2167, 2.8101, 5.5764, 2.8101, 5.5764, 2.9417, 5.2167, 2.9417]}, + {"text": "tickets,", "boundingBox": [5.6222, 2.8035, 6.0931, 2.8035, 6.0931, + 2.9417, 5.6222, 2.9417]}, {"text": "with", "boundingBox": [6.1458, 2.8035, + 6.4306, 2.8035, 6.4306, 2.9194, 6.1458, 2.9194]}, {"text": "a", "boundingBox": + [6.4875, 2.8382, 6.5472, 2.8382, 6.5472, 2.9198, 6.4875, 2.9198]}, {"text": + "400", "boundingBox": [6.6014, 2.8101, 6.8444, 2.8101, 6.8444, 2.9198, 6.6014, + 2.9198]}, {"text": "person", "boundingBox": [6.9, 2.8382, 7.3458, 2.8382, + 7.3458, 2.9479, 6.9, 2.9479]}]}, {"text": "waitlist. Vendor applications are + being accepted through Feb 28, 2020. Please fill in the form", "boundingBox": + [1.0042, 3.0259, 7.2486, 3.0259, 7.2486, 3.1513, 1.0042, 3.1513], "words": + [{"text": "waitlist.", "boundingBox": [1.0042, 3.0236, 1.5194, 3.0236, 1.5194, + 3.1396, 1.0042, 3.1396]}, {"text": "Vendor", "boundingBox": [1.5736, 3.024, + 2.0653, 3.024, 2.0653, 3.1396, 1.5736, 3.1396]}, {"text": "applications", + "boundingBox": [2.1139, 3.0236, 2.9139, 3.0236, 2.9139, 3.1677, 2.1139, 3.1677]}, + {"text": "are", "boundingBox": [2.9681, 3.0583, 3.1722, 3.0583, 3.1722, 3.1396, + 2.9681, 3.1396]}, {"text": "being", "boundingBox": [3.2306, 3.0236, 3.5889, + 3.0236, 3.5889, 3.1677, 3.2306, 3.1677]}, {"text": "accepted", "boundingBox": + [3.6389, 3.024, 4.2333, 3.024, 4.2333, 3.1677, 3.6389, 3.1677]}, {"text": + "through", "boundingBox": [4.2861, 3.0236, 4.8125, 3.0236, 4.8125, 3.1677, + 4.2861, 3.1677]}, {"text": "Feb", "boundingBox": [4.8819, 3.0236, 5.1125, + 3.0236, 5.1125, 3.1399, 4.8819, 3.1399]}, {"text": "28,", "boundingBox": [5.1625, + 3.0299, 5.3611, 3.0299, 5.3611, 3.1622, 5.1625, 3.1622]}, {"text": "2020.", + "boundingBox": [5.4125, 3.0299, 5.7778, 3.0299, 5.7778, 3.1399, 5.4125, 3.1399]}, + {"text": "Please", "boundingBox": [5.8403, 3.0236, 6.2542, 3.0236, 6.2542, + 3.1396, 5.8403, 3.1396]}, {"text": "fill", "boundingBox": [6.3028, 3.0229, + 6.4542, 3.0229, 6.4542, 3.1385, 6.3028, 3.1385]}, {"text": "in", "boundingBox": + [6.5125, 3.0288, 6.6167, 3.0288, 6.6167, 3.1385, 6.5125, 3.1385]}, {"text": + "the", "boundingBox": [6.6681, 3.0236, 6.8833, 3.0236, 6.8833, 3.1396, 6.6681, + 3.1396]}, {"text": "form", "boundingBox": [6.9319, 3.0229, 7.2486, 3.0229, + 7.2486, 3.1396, 6.9319, 3.1396]}]}, {"text": "below, and attach a check made + out to:", "boundingBox": [1.0125, 3.2485, 3.6597, 3.2485, 3.6597, 3.3638, + 1.0125, 3.3638], "words": [{"text": "below,", "boundingBox": [1.0125, 3.2437, + 1.4458, 3.2437, 1.4458, 3.3819, 1.0125, 3.3819]}, {"text": "and", "boundingBox": + [1.5028, 3.2437, 1.7375, 3.2437, 1.7375, 3.3597, 1.5028, 3.3597]}, {"text": + "attach", "boundingBox": [1.7972, 3.2437, 2.2056, 3.2437, 2.2056, 3.3597, + 1.7972, 3.3597]}, {"text": "a", "boundingBox": [2.2611, 3.2785, 2.3222, 3.2785, + 2.3222, 3.3597, 2.2611, 3.3597]}, {"text": "check", "boundingBox": [2.3792, + 3.2437, 2.7528, 3.2437, 2.7528, 3.3597, 2.3792, 3.3597]}, {"text": "made", + "boundingBox": [2.8083, 3.2437, 3.1694, 3.2437, 3.1694, 3.3597, 2.8083, 3.3597]}, + {"text": "out", "boundingBox": [3.225, 3.2597, 3.4417, 3.2597, 3.4417, 3.3597, + 3.225, 3.3597]}, {"text": "to:", "boundingBox": [3.4875, 3.2597, 3.6597, 3.2597, + 3.6597, 3.3597, 3.4875, 3.3597]}]}, {"text": "Contoso Ltd.", "boundingBox": + [1.0069, 3.5781, 1.8431, 3.5781, 1.8431, 3.6896, 1.0069, 3.6896], "words": + [{"text": "Contoso", "boundingBox": [1.0069, 3.5802, 1.5556, 3.5802, 1.5556, + 3.6896, 1.0069, 3.6896]}, {"text": "Ltd.", "boundingBox": [1.6125, 3.574, + 1.8431, 3.574, 1.8431, 3.6896, 1.6125, 3.6896]}]}, {"text": "2345 Dogwood + Lane", "boundingBox": [1.0097, 3.7973, 2.3764, 3.7973, 2.3764, 3.923, 1.0097, + 3.923], "words": [{"text": "2345", "boundingBox": [1.0097, 3.8, 1.3306, 3.8, + 1.3306, 3.9097, 1.0097, 3.9097]}, {"text": "Dogwood", "boundingBox": [1.3903, + 3.7938, 2.0153, 3.7938, 2.0153, 3.9378, 1.3903, 3.9378]}, {"text": "Lane", + "boundingBox": [2.0792, 3.801, 2.3764, 3.801, 2.3764, 3.9097, 2.0792, 3.9097]}]}, + {"text": "Birch, Kansas 98123", "boundingBox": [1.0139, 4.0181, 2.3375, 4.0181, + 2.3375, 4.1379, 1.0139, 4.1379], "words": [{"text": "Birch,", "boundingBox": + [1.0139, 4.0135, 1.375, 4.0135, 1.375, 4.1517, 1.0139, 4.1517]}, {"text": + "Kansas", "boundingBox": [1.4375, 4.0212, 1.8819, 4.0212, 1.8819, 4.1299, + 1.4375, 4.1299]}, {"text": "98123", "boundingBox": [1.9319, 4.0201, 2.3375, + 4.0201, 2.3375, 4.1299, 1.9319, 4.1299]}]}, {"text": "Rates:", "boundingBox": + [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, 4.5681, 1.0208, 4.5681], "words": + [{"text": "Rates:", "boundingBox": [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, + 4.5681, 1.0208, 4.5681]}]}, {"text": "Package", "boundingBox": [1.0931, 4.6986, + 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427], "words": [{"text": "Package", + "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427]}]}, + {"text": "Included", "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "words": [{"text": "Included", "boundingBox": [2.7125, + 4.6986, 3.2708, 4.6986, 3.2708, 4.8146, 2.7125, 4.8146]}]}, {"text": "Price", + "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], + "words": [{"text": "Price", "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, + 6.1514, 4.8146, 5.8375, 4.8146]}]}, {"text": "Gold Sponsor", "boundingBox": + [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, 5.042, 1.0861, 5.042], "words": [{"text": + "Gold", "boundingBox": [1.0861, 4.9087, 1.3847, 4.9087, 1.3847, 5.0247, 1.0861, + 5.0247]}, {"text": "Sponsor", "boundingBox": [1.4417, 4.9149, 1.9833, 4.9149, + 1.9833, 5.0528, 1.4417, 5.0528]}]}, {"text": "Full booth", "boundingBox": + [3.2139, 4.917, 3.8722, 4.917, 3.8722, 5.033, 3.2139, 5.033], "words": [{"text": + "Full", "boundingBox": [3.2139, 4.917, 3.4292, 4.917, 3.4292, 5.033, 3.2139, + 5.033]}, {"text": "booth", "boundingBox": [3.4917, 4.917, 3.8722, 4.917, 3.8722, + 5.033, 3.4917, 5.033]}]}, {"text": "$1,500", "boundingBox": [5.8319, 4.8976, + 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "words": [{"text": "$1,500", + "boundingBox": [5.8319, 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469]}]}, + {"text": "Pre-keynote thank you", "boundingBox": [3.2139, 5.1352, 4.7264, + 5.1352, 4.7264, 5.2663, 3.2139, 5.2663], "words": [{"text": "Pre-keynote", + "boundingBox": [3.2139, 5.1302, 4.0181, 5.1302, 4.0181, 5.2743, 3.2139, 5.2743]}, + {"text": "thank", "boundingBox": [4.0667, 5.1302, 4.4472, 5.1302, 4.4472, + 5.2462, 4.0667, 5.2462]}, {"text": "you", "boundingBox": [4.4903, 5.1649, + 4.7264, 5.1649, 4.7264, 5.2743, 4.4903, 5.2743]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 5.359, 4.2097, 5.359, 4.2097, 5.4801, 3.2139, 5.4801], + "words": [{"text": "Logo", "boundingBox": [3.2139, 5.3497, 3.5167, 5.3497, + 3.5167, 5.4861, 3.2139, 5.4861]}, {"text": "on", "boundingBox": [3.5681, 5.3767, + 3.7236, 5.3767, 3.7236, 5.458, 3.5681, 5.458]}, {"text": "poster", "boundingBox": + [3.7889, 5.358, 4.2097, 5.358, 4.2097, 5.4861, 3.7889, 5.4861]}]}, {"text": + "Full page ad in program guide", "boundingBox": [3.2139, 5.5714, 5.2014, 5.5714, + 5.2014, 5.6885, 3.2139, 5.6885], "words": [{"text": "Full", "boundingBox": + [3.2139, 5.5552, 3.4292, 5.5552, 3.4292, 5.6712, 3.2139, 5.6712]}, {"text": + "page", "boundingBox": [3.4917, 5.5899, 3.7986, 5.5899, 3.7986, 5.6993, 3.4917, + 5.6993]}, {"text": "ad", "boundingBox": [3.8514, 5.5556, 3.9986, 5.5556, 3.9986, + 5.6712, 3.8514, 5.6712]}, {"text": "in", "boundingBox": [4.0597, 5.5604, 4.1625, + 5.5604, 4.1625, 5.6701, 4.0597, 5.6701]}, {"text": "program", "boundingBox": + [4.225, 5.5899, 4.7833, 5.5899, 4.7833, 5.6993, 4.225, 5.6993]}, {"text": + "guide", "boundingBox": [4.8361, 5.5556, 5.2014, 5.5556, 5.2014, 5.6993, 4.8361, + 5.6993]}]}, {"text": "Silver Sponsor", "boundingBox": [1.0833, 5.982, 2.0333, + 5.982, 2.0333, 6.1098, 1.0833, 6.1098], "words": [{"text": "Silver", "boundingBox": + [1.0833, 5.9785, 1.4444, 5.9785, 1.4444, 6.0948, 1.0833, 6.0948]}, {"text": + "Sponsor", "boundingBox": [1.4903, 5.9851, 2.0333, 5.9851, 2.0333, 6.1229, + 1.4903, 6.1229]}]}, {"text": "Full booth", "boundingBox": [3.2139, 5.9868, + 3.8722, 5.9868, 3.8722, 6.1031, 3.2139, 6.1031], "words": [{"text": "Full", + "boundingBox": [3.2139, 5.9868, 3.4292, 5.9868, 3.4292, 6.1031, 3.2139, 6.1031]}, + {"text": "booth", "boundingBox": [3.4917, 5.9868, 3.8722, 5.9868, 3.8722, + 6.1031, 3.4917, 6.1031]}]}, {"text": "$1,200", "boundingBox": [5.8319, 5.9677, + 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "words": [{"text": "$1,200", + "boundingBox": [5.8319, 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167]}]}, + {"text": "Post-keynote thank you", "boundingBox": [3.2139, 6.2033, 4.7931, + 6.2033, 4.7931, 6.335, 3.2139, 6.335], "words": [{"text": "Post-keynote", + "boundingBox": [3.2139, 6.1986, 4.0875, 6.1986, 4.0875, 6.3427, 3.2139, 6.3427]}, + {"text": "thank", "boundingBox": [4.1347, 6.1986, 4.5153, 6.1986, 4.5153, + 6.3146, 4.1347, 6.3146]}, {"text": "you", "boundingBox": [4.5583, 6.2333, + 4.7931, 6.2333, 4.7931, 6.3427, 4.5583, 6.3427]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 6.4274, 4.2097, 6.4274, 4.2097, 6.5485, 3.2139, 6.5485], + "words": [{"text": "Logo", "boundingBox": [3.2139, 6.4181, 3.5167, 6.4181, + 3.5167, 6.5545, 3.2139, 6.5545]}, {"text": "on", "boundingBox": [3.5681, 6.4451, + 3.7236, 6.4451, 3.7236, 6.5264, 3.5681, 6.5264]}, {"text": "poster", "boundingBox": + [3.7889, 6.4264, 4.2097, 6.4264, 4.2097, 6.5545, 3.7889, 6.5545]}]}, {"text": + "Half page ad in program guide", "boundingBox": [3.2139, 6.6397, 5.2306, 6.6397, + 5.2306, 6.7569, 3.2139, 6.7569], "words": [{"text": "Half", "boundingBox": + [3.2139, 6.6229, 3.4736, 6.6229, 3.4736, 6.7396, 3.2139, 6.7396]}, {"text": + "page", "boundingBox": [3.5222, 6.6583, 3.8319, 6.6583, 3.8319, 6.7677, 3.5222, + 6.7677]}, {"text": "ad", "boundingBox": [3.8847, 6.624, 4.0319, 6.624, 4.0319, + 6.7396, 3.8847, 6.7396]}, {"text": "in", "boundingBox": [4.0917, 6.6288, 4.1958, + 6.6288, 4.1958, 6.7385, 4.0917, 6.7385]}, {"text": "program", "boundingBox": + [4.2556, 6.6583, 4.8153, 6.6583, 4.8153, 6.7677, 4.2556, 6.7677]}, {"text": + "guide", "boundingBox": [4.8694, 6.624, 5.2306, 6.624, 5.2306, 6.7677, 4.8694, + 6.7677]}]}, {"text": "Bronze Sponsor", "boundingBox": [1.0931, 6.8407, 2.1361, + 6.8407, 2.1361, 6.9647, 1.0931, 6.9647], "words": [{"text": "Bronze", "boundingBox": + [1.0931, 6.8417, 1.5444, 6.8417, 1.5444, 6.9497, 1.0931, 6.9497]}, {"text": + "Sponsor", "boundingBox": [1.5944, 6.8399, 2.1361, 6.8399, 2.1361, 6.9778, + 1.5944, 6.9778]}]}, {"text": "Full booth", "boundingBox": [3.2139, 6.842, + 3.8722, 6.842, 3.8722, 6.958, 3.2139, 6.958], "words": [{"text": "Full", "boundingBox": + [3.2139, 6.842, 3.4292, 6.842, 3.4292, 6.958, 3.2139, 6.958]}, {"text": "booth", + "boundingBox": [3.4917, 6.842, 3.8722, 6.842, 3.8722, 6.958, 3.4917, 6.958]}]}, + {"text": "$1,000", "boundingBox": [5.8319, 6.8226, 6.2833, 6.8226, 6.2833, + 6.9719, 5.8319, 6.9719], "words": [{"text": "$1,000", "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719]}]}, {"text": "Logo + on poster", "boundingBox": [3.2139, 7.0724, 4.2097, 7.0724, 4.2097, 7.1933, + 3.2139, 7.1933], "words": [{"text": "Logo", "boundingBox": [3.2139, 7.0628, + 3.5167, 7.0628, 3.5167, 7.1993, 3.2139, 7.1993]}, {"text": "on", "boundingBox": + [3.5681, 7.0899, 3.7236, 7.0899, 3.7236, 7.1712, 3.5681, 7.1712]}, {"text": + "poster", "boundingBox": [3.7889, 7.0715, 4.2097, 7.0715, 4.2097, 7.1993, + 3.7889, 7.1993]}]}, {"text": "50% discount on program guide", "boundingBox": + [3.2083, 7.281, 5.3417, 7.281, 5.3417, 7.3958, 3.2083, 7.3958], "words": [{"text": + "50%", "boundingBox": [3.2083, 7.2715, 3.4819, 7.2715, 3.4819, 7.3844, 3.2083, + 7.3844]}, {"text": "discount", "boundingBox": [3.5333, 7.2674, 4.1014, 7.2674, + 4.1014, 7.383, 3.5333, 7.383]}, {"text": "on", "boundingBox": [4.1514, 7.3017, + 4.3069, 7.3017, 4.3069, 7.383, 4.1514, 7.383]}, {"text": "program", "boundingBox": + [4.3681, 7.3017, 4.925, 7.3017, 4.925, 7.4111, 4.3681, 7.4111]}, {"text": + "guide", "boundingBox": [4.9806, 7.2674, 5.3417, 7.2674, 5.3417, 7.4111, 4.9806, + 7.4111]}]}, {"text": "advertisements", "boundingBox": [3.2069, 7.4705, 4.2431, + 7.4705, 4.2431, 7.5865, 3.2069, 7.5865], "words": [{"text": "advertisements", + "boundingBox": [3.2069, 7.4705, 4.2431, 7.4705, 4.2431, 7.5865, 3.2069, 7.5865]}]}, + {"text": "Full Booth", "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "words": [{"text": "Full", "boundingBox": [1.0931, + 7.6819, 1.3083, 7.6819, 1.3083, 7.7979, 1.0931, 7.7979]}, {"text": "Booth", + "boundingBox": [1.3722, 7.6819, 1.7542, 7.6819, 1.7542, 7.7979, 1.3722, 7.7979]}]}, + {"text": "Full booth", "boundingBox": [3.2139, 7.6903, 3.8722, 7.6903, 3.8722, + 7.8063, 3.2139, 7.8063], "words": [{"text": "Full", "boundingBox": [3.2139, + 7.6903, 3.4292, 7.6903, 3.4292, 7.8062, 3.2139, 7.8062]}, {"text": "booth", + "boundingBox": [3.4917, 7.6903, 3.8722, 7.6903, 3.8722, 7.8062, 3.4917, 7.8062]}]}, + {"text": "$600", "boundingBox": [5.8319, 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, + 5.8319, 7.8167], "words": [{"text": "$600", "boundingBox": [5.8319, 7.6712, + 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167]}]}, {"text": "50% discount + on program guide", "boundingBox": [3.2083, 7.9159, 5.3417, 7.9159, 5.3417, + 8.0309, 3.2083, 8.0309], "words": [{"text": "50%", "boundingBox": [3.2083, + 7.9066, 3.4819, 7.9066, 3.4819, 8.0194, 3.2083, 8.0194]}, {"text": "discount", + "boundingBox": [3.5333, 7.9021, 4.1014, 7.9021, 4.1014, 8.0181, 3.5333, 8.0181]}, + {"text": "on", "boundingBox": [4.1514, 7.9368, 4.3069, 7.9368, 4.3069, 8.0181, + 4.1514, 8.0181]}, {"text": "program", "boundingBox": [4.3681, 7.9368, 4.925, + 7.9368, 4.925, 8.0462, 4.3681, 8.0462]}, {"text": "guide", "boundingBox": + [4.9806, 7.9021, 5.3417, 7.9021, 5.3417, 8.0462, 4.9806, 8.0462]}]}, {"text": + "advertisements", "boundingBox": [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, + 8.2212, 3.2069, 8.2212], "words": [{"text": "advertisements", "boundingBox": + [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, 8.2212, 3.2069, 8.2212]}]}, {"text": + "Half Booth", "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, 8.433, + 1.0931, 8.433], "words": [{"text": "Half", "boundingBox": [1.0931, 8.3163, + 1.3514, 8.3163, 1.3514, 8.433, 1.0931, 8.433]}, {"text": "Booth", "boundingBox": + [1.4028, 8.317, 1.7861, 8.317, 1.7861, 8.433, 1.4028, 8.433]}]}, {"text": + "Full booth", "boundingBox": [3.2139, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, + 3.2139, 8.4413], "words": [{"text": "Full", "boundingBox": [3.2139, 8.3253, + 3.4292, 8.3253, 3.4292, 8.4413, 3.2139, 8.4413]}, {"text": "booth", "boundingBox": + [3.4917, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, 3.4917, 8.4413]}]}, {"text": + "$350", "boundingBox": [5.8319, 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, + 8.4514], "words": [{"text": "$350", "boundingBox": [5.8319, 8.3062, 6.1583, + 8.3062, 6.1583, 8.4514, 5.8319, 8.4514]}]}, {"text": "25% discount on program + guide", "boundingBox": [3.2097, 8.5508, 5.3417, 8.5508, 5.3417, 8.6659, 3.2097, + 8.6659], "words": [{"text": "25%", "boundingBox": [3.2097, 8.5417, 3.4819, + 8.5417, 3.4819, 8.6545, 3.2097, 8.6545]}, {"text": "discount", "boundingBox": + [3.5333, 8.5372, 4.1014, 8.5372, 4.1014, 8.6531, 3.5333, 8.6531]}, {"text": + "on", "boundingBox": [4.1514, 8.5715, 4.3069, 8.5715, 4.3069, 8.6531, 4.1514, + 8.6531]}, {"text": "program", "boundingBox": [4.3681, 8.5715, 4.925, 8.5715, + 4.925, 8.6812, 4.3681, 8.6812]}, {"text": "guide", "boundingBox": [4.9806, + 8.5372, 5.3417, 8.5372, 5.3417, 8.6812, 4.9806, 8.6812]}]}, {"text": "advertisements", + "boundingBox": [3.2069, 8.7406, 4.2431, 8.7406, 4.2431, 8.8563, 3.2069, 8.8563], + "words": [{"text": "advertisements", "boundingBox": [3.2069, 8.7406, 4.2431, + 8.7406, 4.2431, 8.8562, 3.2069, 8.8562]}]}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": + [6.1278, 1.0688, 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": + "Vendor", "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, + 6.1278, 1.2403]}, {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, + 7.1514, 1.2392, 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, + 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": + "121", "boundingBox": [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, + 1.2392]}]}, {"text": "Vendor Details:", "boundingBox": [1.0042, 2.1774, 2.35, + 2.1774, 2.35, 2.3316, 1.0042, 2.3316], "words": [{"text": "Vendor", "boundingBox": + [1.0042, 2.1778, 1.65, 2.1778, 1.65, 2.3316, 1.0042, 2.3316]}, {"text": "Details:", + "boundingBox": [1.7236, 2.1771, 2.35, 2.1771, 2.35, 2.3316, 1.7236, 2.3316]}]}, + {"text": "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, + 2.1375, 2.9019, 1.0069, 2.9019], "words": [{"text": "Company", "boundingBox": + [1.0069, 2.775, 1.6514, 2.775, 1.6514, 2.9125, 1.0069, 2.9125]}, {"text": + "Name:", "boundingBox": [1.7014, 2.7764, 2.1375, 2.7764, 2.1375, 2.8851, 1.7014, + 2.8851]}]}, {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "words": [{"text": "Southridge", + "boundingBox": [2.1917, 2.7688, 2.9181, 2.7688, 2.9181, 2.9128, 2.1917, 2.9128]}, + {"text": "Video", "boundingBox": [2.9694, 2.7688, 3.3472, 2.7688, 3.3472, + 2.8847, 2.9694, 2.8847]}]}, {"text": "Contact:", "boundingBox": [1.0069, 3.1049, + 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149], "words": [{"text": "Contact:", + "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149]}]}, + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "words": [{"text": "Jamie@southridgevideo.com", + "boundingBox": [1.6208, 3.0986, 3.5764, 3.0986, 3.5764, 3.2427, 1.6208, 3.2427]}]}, + {"text": "Preferred Package:", "boundingBox": [1.0111, 3.4298, 2.2972, 3.4298, + 2.2972, 3.5589, 1.0111, 3.5589], "words": [{"text": "Preferred", "boundingBox": + [1.0111, 3.4295, 1.65, 3.4295, 1.65, 3.5465, 1.0111, 3.5465]}, {"text": "Package:", + "boundingBox": [1.7083, 3.4302, 2.2972, 3.4302, 2.2972, 3.5743, 1.7083, 3.5743]}]}, + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "words": [{"text": "Gold", "boundingBox": [2.3556, 3.4302, + 2.6542, 3.4302, 2.6542, 3.5462, 2.3556, 3.5462]}]}, {"text": "Special Requests:", + "boundingBox": [1.0056, 3.7645, 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], + "words": [{"text": "Special", "boundingBox": [1.0056, 3.7601, 1.475, 3.7601, + 1.475, 3.9042, 1.0056, 3.9042]}, {"text": "Requests:", "boundingBox": [1.5347, + 3.7684, 2.1903, 3.7684, 2.1903, 3.9042, 1.5347, 3.9042]}]}, {"text": "N/a", + "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], + "words": [{"text": "N/a", "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, + 2.4778, 3.8976, 2.2542, 3.8976]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/0/lines/0/words/0", + "#/readResults/0/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": + ["#/readResults/0/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": + "__Address__1", "boundingBox": null, "elements": null}, "value": {"text": + "Contoso Ltd. 2345 Dogwood Lane Birch, Kansas 98123", "boundingBox": [1.0069, + 3.5781, 2.3764, 3.5781, 2.3764, 4.1379, 1.0069, 4.1379], "elements": ["#/readResults/0/lines/7/words/0", + "#/readResults/0/lines/7/words/1", "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", + "#/readResults/0/lines/8/words/2", "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", + "#/readResults/0/lines/9/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": + 0, "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, + 4.8427], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": false}, {"text": "Included", "rowIndex": 0, - "columnIndex": 1, "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, - 4.8583, 2.6986, 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 1, "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], "isHeader": true, "isFooter": false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583], "confidence": + [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "isHeader": true, "isFooter": false}, {"text": "Gold Sponsor", "rowIndex": - 1, "columnIndex": 0, "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, - 5.0681, 1.0778, 5.0681], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, - "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], + 1, "columnIndex": 0, "boundingBox": [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, + 5.042, 1.0861, 5.042], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Pre-keynote thank you Logo on poster Full page ad in program guide", "rowIndex": 1, "columnIndex": - 1, "boundingBox": [3.2, 4.8736, 5.2083, 4.8736, 5.2083, 5.7139, 3.2, 5.7139], + 1, "boundingBox": [3.2139, 4.917, 5.2014, 4.917, 5.2014, 5.6885, 3.2139, 5.6885], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1", "#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2", "#/readResults/0/lines/18/words/0", "#/readResults/0/lines/18/words/1", "#/readResults/0/lines/18/words/2", "#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/19/words/4", "#/readResults/0/lines/19/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.825, - 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], "confidence": 1.0, + {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.8319, + 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "isHeader": false, "isFooter": false}, {"text": "Silver Sponsor", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [1.0833, 5.982, 2.0333, 5.982, 2.0333, + 6.1098, 1.0833, 6.1098], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Post-keynote thank you Logo on poster Half page ad in program guide", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [3.2, 5.9431, 5.2389, 5.9431, 5.2389, 6.7833, 3.2, 6.7833], - "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", + 1, "boundingBox": [3.2139, 5.9868, 5.2306, 5.9868, 5.2306, 6.7569, 3.2139, + 6.7569], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", "#/readResults/0/lines/21/words/1", "#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1", "#/readResults/0/lines/23/words/2", "#/readResults/0/lines/24/words/0", "#/readResults/0/lines/24/words/1", "#/readResults/0/lines/24/words/2", "#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1", "#/readResults/0/lines/25/words/2", "#/readResults/0/lines/25/words/3", "#/readResults/0/lines/25/words/4", "#/readResults/0/lines/25/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.825, - 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, 6.1375], "confidence": 1.0, + {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.8319, + 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "isHeader": false, "isFooter": false}, {"text": "Bronze Sponsor", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, 2.1389, - 6.9931, 1.0778, 6.9931], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [1.0931, 6.8407, 2.1361, 6.8407, 2.1361, + 6.9647, 1.0931, 6.9647], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Logo on poster 50% discount on program guide advertisements", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [3.2, 6.7986, 5.35, 6.7986, 5.35, 7.6292, 3.2, 7.6292], + 1, "boundingBox": [3.2069, 6.842, 5.3417, 6.842, 5.3417, 7.5865, 3.2069, 7.5865], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2", "#/readResults/0/lines/30/words/3", "#/readResults/0/lines/30/words/4", "#/readResults/0/lines/31/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931], "confidence": 1.0, + {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "isHeader": false, "isFooter": false}, {"text": "Full Booth", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, - 7.8417, 1.0778, 7.8417], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0", "#/readResults/0/lines/32/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth 50% discount on program guide advertisements", "rowIndex": 4, "columnIndex": 1, "boundingBox": - [3.2, 7.6472, 5.35, 7.6472, 5.35, 8.2639, 3.2, 8.2639], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", + [3.2069, 7.6903, 5.3417, 7.6903, 5.3417, 8.2212, 3.2069, 8.2212], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", "#/readResults/0/lines/33/words/1", "#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1", "#/readResults/0/lines/35/words/2", "#/readResults/0/lines/35/words/3", "#/readResults/0/lines/35/words/4", "#/readResults/0/lines/36/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": - false, "isFooter": false}, {"text": "Half Booth", "rowIndex": 5, "columnIndex": - 0, "boundingBox": [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, - 8.4764], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0", - "#/readResults/0/lines/37/words/1"], "isHeader": false, "isFooter": false}, - {"text": "Full booth 25% discount on program guide advertisements", "rowIndex": - 5, "columnIndex": 1, "boundingBox": [3.2, 8.2819, 5.35, 8.2819, 5.35, 8.9, - 3.2, 8.9], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", + {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.8319, + 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], + "isHeader": false, "isFooter": false}, {"text": "Half Booth", "rowIndex": + 5, "columnIndex": 0, "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, + 8.433, 1.0931, 8.433], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/37/words/0", "#/readResults/0/lines/37/words/1"], + "isHeader": false, "isFooter": false}, {"text": "Full booth 25% discount on + program guide advertisements", "rowIndex": 5, "columnIndex": 1, "boundingBox": + [3.2069, 8.3253, 5.3417, 8.3253, 5.3417, 8.8563, 3.2069, 8.8563], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", "#/readResults/0/lines/38/words/1", "#/readResults/0/lines/40/words/0", "#/readResults/0/lines/40/words/1", "#/readResults/0/lines/40/words/2", "#/readResults/0/lines/40/words/3", "#/readResults/0/lines/40/words/4", "#/readResults/0/lines/41/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.825, 8.2736, - 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": - false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": - [{"key": {"text": "Vendor #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, - 7.1667, 1.2708, 6.1389, 1.2708], "elements": ["#/readResults/1/lines/0/words/0", + {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.8319, + 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, 8.4514], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/1/lines/0/words/0", "#/readResults/1/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": - [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], "elements": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": ["#/readResults/1/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Company Name:", "boundingBox": [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, - 1.0028, 2.9278], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, - "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7611, 3.3542, - 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], "elements": ["#/readResults/1/lines/4/words/0", + "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, 2.1375, 2.9019, + 1.0069, 2.9019], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, + "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "elements": ["#/readResults/1/lines/4/words/0", "#/readResults/1/lines/4/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, - 1.0069, 3.2472], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": - {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, 3.5667, - 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], "elements": ["#/readResults/1/lines/6/words/0"]}, + "Contact:", "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, + 1.0069, 3.2149], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "elements": ["#/readResults/1/lines/6/words/0"]}, "confidence": 0.53}, {"key": {"text": "Preferred Package:", "boundingBox": - [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], "elements": + [1.0111, 3.4298, 2.2972, 3.4298, 2.2972, 3.5589, 1.0111, 3.5589], "elements": ["#/readResults/1/lines/7/words/0", "#/readResults/1/lines/7/words/1"]}, "value": - {"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, - 2.35, 3.5806], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": - 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0167, 3.7611, - 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "elements": ["#/readResults/1/lines/9/words/0", + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": + 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0056, 3.7645, + 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], "elements": ["#/readResults/1/lines/9/words/0", "#/readResults/1/lines/9/words/1"]}, "value": {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "elements": - ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}, {"key": {"text": - "__Tokens__1", "boundingBox": null, "elements": null}, "value": {"text": "Vendor - Details:", "boundingBox": [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, - 2.3722], "elements": ["#/readResults/1/lines/2/words/0", "#/readResults/1/lines/2/words/1"]}, - "confidence": 1.0}], "tables": [], "clusterId": 1}], "documentResults": [], - "errors": []}}' + [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], "elements": + ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}], "tables": [], + "clusterId": 1}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 062db645-a298-43d1-a983-4b75a93a6a50 + - 45d7dfc4-2efe-4009-8ab6-17a3effacf7c content-length: - - '36398' + - '32950' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:42 GMT + - Mon, 14 Sep 2020 19:47:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '26' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml index 41865f8add22..05db4ab53ce7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - a46e4d35-3035-4dab-b364-139e6c984764 + - f8878176-2293-4ce9-beb1-27c8714b3259 content-length: - '0' date: - - Fri, 10 Jul 2020 18:45:43 GMT + - Mon, 14 Sep 2020 19:46:47 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '43' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", "status": - "creating", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:43Z"}}' + string: '{"modelInfo": {"modelId": "7ef01311-e33c-45e8-a676-c8215b7810a2", "status": + "creating", "createdDateTime": "2020-09-14T19:46:48Z", "lastUpdatedDateTime": + "2020-09-14T19:46:48Z"}}' headers: apim-request-id: - - a59884b9-c6e3-494c-a23a-f3bc41ec1c34 + - cdf6a238-fa6f-4cb9-b198-abab569b8cf3 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:48 GMT + - Mon, 14 Sep 2020 19:46:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '14' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", "status": - "creating", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:43Z"}}' + string: '{"modelInfo": {"modelId": "7ef01311-e33c-45e8-a676-c8215b7810a2", "status": + "creating", "createdDateTime": "2020-09-14T19:46:48Z", "lastUpdatedDateTime": + "2020-09-14T19:46:48Z"}}' headers: apim-request-id: - - 28eb82a7-0d10-4b3b-8e2a-4aa04971b761 + - c9b0885d-6e1c-4ed7-a121-ad27c9b87964 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:54 GMT + - Mon, 14 Sep 2020 19:46:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '701' + - '16' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", "status": - "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "7ef01311-e33c-45e8-a676-c8215b7810a2", "status": + "ready", "createdDateTime": "2020-09-14T19:46:48Z", "lastUpdatedDateTime": + "2020-09-14T19:47:03Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 3b1b5ae3-a8a6-4c10-9c35-83c9177675fc + - 05f97b09-bd02-449a-9c66-129556a9212a content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:59 GMT + - Mon, 14 Sep 2020 19:47:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '14' status: code: 200 message: OK @@ -8573,7 +8573,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -8583,27 +8583,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - ab92b967-9617-437b-b801-2aa2fe643984 + - df9432dc-ce1e-461b-888f-20bfcce596a7 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:00 GMT + - Mon, 14 Sep 2020 19:47:05 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyzeresults/6660ec86-8ceb-4c25-866a-f58c4dcf14f7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2/analyzeresults/639e413d-d407-43ed-a813-2ce562c545c4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '70' + - '54' status: code: 202 message: Accepted @@ -8617,28 +8617,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyzeresults/6660ec86-8ceb-4c25-866a-f58c4dcf14f7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2/analyzeresults/639e413d-d407-43ed-a813-2ce562c545c4 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:46:01Z", "lastUpdatedDateTime": - "2020-07-10T18:46:03Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:47:05Z", "lastUpdatedDateTime": + "2020-09-14T19:47:05Z", "analyzeResult": null}' headers: apim-request-id: - - 94410a81-14a2-4b97-b061-d52a2b9c202e + - a8bf80d1-ad65-4d4a-9a64-b345867890ed content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:05 GMT + - Mon, 14 Sep 2020 19:47:10 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '13' status: code: 200 message: OK @@ -8652,175 +8652,154 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ac5c99f9-b31b-46db-add6-5d149c844a13/analyzeresults/6660ec86-8ceb-4c25-866a-f58c4dcf14f7 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7ef01311-e33c-45e8-a676-c8215b7810a2/analyzeresults/639e413d-d407-43ed-a813-2ce562c545c4 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:46:01Z", - "lastUpdatedDateTime": "2020-07-10T18:46:06Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:47:05Z", + "lastUpdatedDateTime": "2020-09-14T19:47:11Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": null}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - null}, "value": {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, - 351.0, 528.0, 381.0, 371.0, 381.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, - 420.0, 167.0, 420.0], "elements": null}, "value": {"text": "www.herolimited.com", - "boundingBox": [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0], "elements": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": null}, "value": {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, + 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": null}, "value": + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "elements": null}, "confidence": 1.0}, {"key": + {"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0], "elements": null}, "value": {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": null}, "value": - {"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, - 451.0, 1168.0, 451.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": null}, "value": {"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, - 460.0, 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": null}, "value": - {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, - 1282.0, 491.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Vendor - Name:", "boundingBox": [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], - "elements": null}, "value": {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": null}, "confidence": - 0.7}, {"key": {"text": "Company Name:", "boundingBox": [162.0, 646.0, 373.0, - 646.0, 373.0, 678.0, 162.0, 678.0], "elements": null}, "value": {"text": "Higgly - Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, 628.0, 678.0, 379.0, - 678.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", - "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": - null}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [615.0, 723.0, - 707.0, 723.0, 707.0, 752.0, 615.0, 752.0], "elements": null}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", - "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, 166.0, 881.0], "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, - 852.0, 445.0, 881.0, 258.0, 881.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, - 378.0, 919.0, 169.0, 919.0], "elements": null}, "value": {"text": "Jupiter - Book Supply", "boundingBox": [385.0, 888.0, 624.0, 888.0, 624.0, 919.0, 385.0, + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": null}, "value": + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "elements": null}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": null}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": + [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "elements": null}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": null}, "confidence": 0.7}, {"key": + {"text": "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, + 677.0, 160.0, 677.0], "elements": null}, "value": {"text": "Higgly Wiggly + Books", "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], + "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": null}, + "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": null}, + "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [613.0, 722.0, + 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "elements": null}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", + "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "elements": + null}, "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "elements": null}, "confidence": 0.53}, + {"key": {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, + 374.0, 919.0, 164.0, 919.0], "elements": null}, "value": {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, 919.0], "elements": null}, "confidence": 0.53}, {"key": {"text": "Address:", - "boundingBox": [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": null}, "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": - [283.0, 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": null}, + [279.0, 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": null}, "value": {"text": - "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, - 857.0, 992.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", - "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], - "elements": null}, "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, - 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, - 1293.0, 1643.0, 1242.0, 1643.0], "elements": null}, "value": {"text": "$4.00", - "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0], + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": null}, "value": {"text": + "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, + 855.0, 990.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", + "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], + "elements": null}, "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, + 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, + 1296.0, 1643.0, 1238.0, 1643.0], "elements": null}, "value": {"text": "$4.00", + "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": - [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": - null}, "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, - 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, 1797.0, - 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": null}, "value": + [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": + null}, "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, + 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, 1796.0, + 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": null}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer - you 25% off you next total purchase.", "boundingBox": [170.0, 1880.0, 1511.0, - 1880.0, 1511.0, 1992.0, 170.0, 1992.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": null}, "value": - {"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 141.0, 168.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__3", - "boundingBox": null, "elements": null}, "value": {"text": "Shipped To", "boundingBox": - [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped From", "boundingBox": [169.0, 784.0, 445.0, - 784.0, 445.0, 831.0, 169.0, 831.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": null}, "value": - {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, - 1708.0, 485.0, 1708.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__7", - "boundingBox": null, "elements": null}, "value": {"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": - null}, "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": - [{"text": "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + you 25% off you next total purchase.", "boundingBox": [169.0, 1880.0, 1511.0, + 1880.0, 1511.0, 1992.0, 169.0, 1992.0], "elements": null}, "confidence": 0.53}], + "tables": [{"rows": 5, "columns": 4, "cells": [{"text": "Details", "rowIndex": + 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, + 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Quantity", + "rowIndex": 0, "columnIndex": 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, + 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "Unit + Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, + 1047.0, 1269.0, 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, + "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": + "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": [1383.0, 1047.0, + 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, - {"text": "Quantity", "rowIndex": 0, "columnIndex": 1, "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Unit Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": - [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, - 1098.0, 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": [172.0, + 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1243.0, - 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "confidence": 1.0, + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": + 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, + {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1241.0, + 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": 3, "boundingBox": - [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "confidence": + [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": 2, "columnIndex": 0, "boundingBox": - [172.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 172.0, 1162.0], "confidence": + [170.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [862.0, - 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [861.0, + 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": 3, "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0], "confidence": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": 3, "columnIndex": 0, "boundingBox": - [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 172.0, 1205.0], "confidence": + [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": 1, "boundingBox": [863.0, - 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], "confidence": 1.0, "rowSpan": + 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": 3, "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0], "confidence": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": 4, "columnIndex": 0, "boundingBox": - [171.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 171.0, 1248.0], "confidence": + [170.0, 1222.0, 429.0, 1222.0, 429.0, 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, - 1221.0, 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, + 1223.0, 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1242.0, - 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1239.0, + 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": 3, "boundingBox": - [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "confidence": + [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - e98b8319-f8ef-4272-83e9-fff173450bcf + - 7550f126-8ef6-495f-a006-d4a617d5c53a content-length: - - '11800' + - '10045' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:11 GMT + - Mon, 14 Sep 2020 19:47:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '43' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml index de270b3ebdf6..6d2570899f55 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_blank_page.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 74a753de-7115-455c-a11a-5eee7235e6a1 + - b78e97fb-1a4a-4858-b943-0d0221b47cc0 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:11 GMT + - Mon, 14 Sep 2020 19:47:15 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '41' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", "status": - "creating", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:12Z"}}' + string: '{"modelInfo": {"modelId": "f5443422-fbe8-4e39-9565-2f9faa432a3d", "status": + "creating", "createdDateTime": "2020-09-14T19:47:16Z", "lastUpdatedDateTime": + "2020-09-14T19:47:16Z"}}' headers: apim-request-id: - - b35b25bc-a1c6-45dc-bed2-c22b577869d6 + - 67f94cc1-2fb0-4062-a100-e8d44432a7ba content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:17 GMT + - Mon, 14 Sep 2020 19:47:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '17' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", "status": - "creating", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:12Z"}}' + string: '{"modelInfo": {"modelId": "f5443422-fbe8-4e39-9565-2f9faa432a3d", "status": + "creating", "createdDateTime": "2020-09-14T19:47:16Z", "lastUpdatedDateTime": + "2020-09-14T19:47:16Z"}}' headers: apim-request-id: - - ff74bb91-a56f-4bbd-9b55-ad6601221ec6 + - 436759e4-17bf-4f91-ad30-5a2f3f36a590 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:22 GMT + - Mon, 14 Sep 2020 19:47:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '15' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", "status": - "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:22Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "f5443422-fbe8-4e39-9565-2f9faa432a3d", "status": + "ready", "createdDateTime": "2020-09-14T19:47:16Z", "lastUpdatedDateTime": + "2020-09-14T19:47:28Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 2a8a94e1-2650-4d33-9e63-2bcd1ed47616 + - b3df6c62-9a45-4bec-a709-1fbce6096c5b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:27 GMT + - Mon, 14 Sep 2020 19:47:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '17' status: code: 200 message: OK @@ -611,7 +611,7 @@ interactions: MjU0ODQNCiUlRU9G headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -621,27 +621,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 46e7498a-e787-4741-bbc3-fc9eab97ff9f + - 0be27518-024a-4ff6-8b4c-af46ef4da204 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:27 GMT + - Mon, 14 Sep 2020 19:47:31 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff/analyzeresults/a4720e41-eec8-4247-b0b5-8b20d0bbeffe + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d/analyzeresults/c1efa692-1cef-4abb-9486-f307ed47b33b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '86' + - '46' status: code: 202 message: Accepted @@ -655,31 +655,101 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d/analyzeresults/c1efa692-1cef-4abb-9486-f307ed47b33b + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:47:31Z", "lastUpdatedDateTime": + "2020-09-14T19:47:32Z", "analyzeResult": null}' + headers: + apim-request-id: + - 11e9a780-e8ce-49b7-8312-c1f8a2cdb018 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:47:36 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '14' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d/analyzeresults/c1efa692-1cef-4abb-9486-f307ed47b33b + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:47:31Z", "lastUpdatedDateTime": + "2020-09-14T19:47:32Z", "analyzeResult": null}' + headers: + apim-request-id: + - 42b9215d-94fe-4084-811c-6851c8c579e2 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:47:41 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/6f4f1583-8f73-4be8-9337-ccc105f1fdff/analyzeresults/a4720e41-eec8-4247-b0b5-8b20d0bbeffe + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f5443422-fbe8-4e39-9565-2f9faa432a3d/analyzeresults/c1efa692-1cef-4abb-9486-f307ed47b33b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:46:27Z", - "lastUpdatedDateTime": "2020-07-10T18:46:32Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:47:31Z", + "lastUpdatedDateTime": "2020-09-14T19:47:42Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [], "tables": [], "clusterId": null}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 8704c87b-2995-4b63-bdf7-d6e8986e205d + - 94291c17-33e5-4125-a145-0d2621be618e content-length: - '374' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:32 GMT + - Mon, 14 Sep 2020 19:47:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '20' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml index 67cef12bf873..9023a1f1a618 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms.test_custom_form_unlabeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - c0e98b07-316f-44af-a577-b0ad561586d1 + - 1f0c4523-2f88-46c6-a3d6-49a5c3519829 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:32 GMT + - Mon, 14 Sep 2020 19:47:40 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '39' + - '42' status: code: 201 message: Created @@ -48,21 +48,57 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "cbc30515-b2f0-460e-983e-1281bcfa0a93", "status": + "creating", "createdDateTime": "2020-09-14T19:47:41Z", "lastUpdatedDateTime": + "2020-09-14T19:47:41Z"}}' + headers: + apim-request-id: + - 0cd0e034-6a5d-4638-a6dd-20cd0fe907ea + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:47:46 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '17' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", "status": - "creating", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": - "2020-07-10T18:46:33Z"}}' + string: '{"modelInfo": {"modelId": "cbc30515-b2f0-460e-983e-1281bcfa0a93", "status": + "creating", "createdDateTime": "2020-09-14T19:47:41Z", "lastUpdatedDateTime": + "2020-09-14T19:47:41Z"}}' headers: apim-request-id: - - fe8cd7af-a38f-4af2-b0e0-1251e7553606 + - de870ca8-a238-451d-9684-8e01c8874076 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:38 GMT + - Mon, 14 Sep 2020 19:47:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '17' status: code: 200 message: OK @@ -84,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", "status": - "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": - "2020-07-10T18:46:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "cbc30515-b2f0-460e-983e-1281bcfa0a93", "status": + "ready", "createdDateTime": "2020-09-14T19:47:41Z", "lastUpdatedDateTime": + "2020-09-14T19:47:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - d0f01cab-1b1b-43c9-881c-41ec3d374869 + - 1ffbee43-7316-49d8-ae15-c086e505faf5 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:43 GMT + - Mon, 14 Sep 2020 19:47:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '14' status: code: 200 message: OK @@ -8533,7 +8569,7 @@ interactions: BRQAUUAFFABRQB//2Q== headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -8543,27 +8579,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 9c593f2e-9e55-4dad-a7b0-b914462b35f9 + - 56ac76f0-2034-4b41-b0a6-40e838d37821 content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:45 GMT + - Mon, 14 Sep 2020 19:47:56 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27/analyzeresults/98f24849-3b7b-47c5-a2f5-92ef67e00d7e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93/analyzeresults/3e393ae3-db7e-4cc8-8892-edfb1c761cfd strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '91' + - '64' status: code: 202 message: Accepted @@ -8577,359 +8613,389 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93/analyzeresults/3e393ae3-db7e-4cc8-8892-edfb1c761cfd + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:47:57Z", "lastUpdatedDateTime": + "2020-09-14T19:47:57Z", "analyzeResult": null}' + headers: + apim-request-id: + - b03e44c5-f60b-4469-b9af-12a0006cf9cd + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 19:48:01 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '15' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7569400-70ff-4115-9dcb-5ae3b85f6c27/analyzeresults/98f24849-3b7b-47c5-a2f5-92ef67e00d7e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cbc30515-b2f0-460e-983e-1281bcfa0a93/analyzeresults/3e393ae3-db7e-4cc8-8892-edfb1c761cfd response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:46:45Z", - "lastUpdatedDateTime": "2020-07-10T18:46:49Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:47:57Z", + "lastUpdatedDateTime": "2020-09-14T19:48:03Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": - [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": - "Purchase", "boundingBox": [141.0, 140.0, 267.0, 140.0, 267.0, 168.0, 141.0, - 168.0]}, {"text": "Order", "boundingBox": [273.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 273.0, 168.0]}]}, {"text": "Hero Limited", "boundingBox": [620.0, 203.0, - 1078.0, 203.0, 1078.0, 271.0, 620.0, 271.0], "words": [{"text": "Hero", "boundingBox": - [620.0, 203.0, 793.0, 203.0, 793.0, 271.0, 620.0, 271.0]}, {"text": "Limited", - "boundingBox": [811.0, 203.0, 1078.0, 203.0, 1078.0, 271.0, 811.0, 271.0]}]}, - {"text": "Purchase Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, - 372.0, 1117.0, 372.0], "words": [{"text": "Purchase", "boundingBox": [1117.0, - 319.0, 1380.0, 319.0, 1380.0, 372.0, 1117.0, 372.0]}, {"text": "Order", "boundingBox": - [1397.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1397.0, 372.0]}]}, {"text": - "Company Phone:", "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, - 167.0, 381.0], "words": [{"text": "Company", "boundingBox": [167.0, 351.0, - 276.0, 351.0, 276.0, 381.0, 167.0, 381.0]}, {"text": "Phone:", "boundingBox": - [283.0, 351.0, 365.0, 351.0, 365.0, 381.0, 283.0, 381.0]}]}, {"text": "555-348-6512", - "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, 381.0, 371.0, 381.0], "words": - [{"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0]}]}, {"text": "Website:", "boundingBox": [167.0, 392.0, - 271.0, 392.0, 271.0, 420.0, 167.0, 420.0], "words": [{"text": "Website:", - "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, 420.0, 167.0, 420.0]}]}, - {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, 392.0, - 530.0, 420.0, 277.0, 420.0], "words": [{"text": "www.herolimited.com", "boundingBox": - [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0]}]}, {"text": "Dated - As:", "boundingBox": [1025.0, 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, - 451.0], "words": [{"text": "Dated", "boundingBox": [1025.0, 418.0, 1111.0, - 418.0, 1111.0, 451.0, 1025.0, 451.0]}, {"text": "As:", "boundingBox": [1117.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1117.0, 451.0]}]}, {"text": "12/20/2020", - "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], - "words": [{"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, - 1319.0, 451.0, 1168.0, 451.0]}]}, {"text": "Email:", "boundingBox": [167.0, - 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0], "words": [{"text": "Email:", - "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0]}]}, - {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, 1275.0, 460.0, - 1275.0, 491.0, 1027.0, 491.0], "words": [{"text": "Purchase", "boundingBox": - [1027.0, 460.0, 1153.0, 460.0, 1153.0, 491.0, 1027.0, 491.0]}, {"text": "Order", - "boundingBox": [1160.0, 460.0, 1241.0, 460.0, 1241.0, 491.0, 1160.0, 491.0]}, - {"text": "#:", "boundingBox": [1248.0, 460.0, 1275.0, 460.0, 1275.0, 491.0, - 1248.0, 491.0]}]}, {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, - 460.0, 1376.0, 491.0, 1282.0, 491.0], "words": [{"text": "948284", "boundingBox": - [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, 1282.0, 491.0]}]}, {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "words": [{"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0]}]}, {"text": "Shipped - To", "boundingBox": [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], - "words": [{"text": "Shipped", "boundingBox": [170.0, 546.0, 343.0, 546.0, - 343.0, 592.0, 170.0, 592.0]}, {"text": "To", "boundingBox": [352.0, 546.0, - 398.0, 546.0, 398.0, 592.0, 352.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": - [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "words": [{"text": - "Vendor", "boundingBox": [162.0, 610.0, 256.0, 610.0, 256.0, 640.0, 162.0, - 640.0]}, {"text": "Name:", "boundingBox": [262.0, 610.0, 346.0, 610.0, 346.0, - 640.0, 262.0, 640.0]}]}, {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "words": [{"text": "Hillary", - "boundingBox": [352.0, 610.0, 435.0, 610.0, 435.0, 640.0, 352.0, 640.0]}, - {"text": "Swank", "boundingBox": [441.0, 610.0, 519.0, 610.0, 519.0, 640.0, - 441.0, 640.0]}]}, {"text": "Company Name:", "boundingBox": [162.0, 646.0, - 373.0, 646.0, 373.0, 678.0, 162.0, 678.0], "words": [{"text": "Company", "boundingBox": - [162.0, 646.0, 283.0, 646.0, 283.0, 678.0, 162.0, 678.0]}, {"text": "Name:", - "boundingBox": [289.0, 646.0, 373.0, 646.0, 373.0, 678.0, 289.0, 678.0]}]}, - {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, - 628.0, 678.0, 379.0, 678.0], "words": [{"text": "Higgly", "boundingBox": [379.0, - 646.0, 457.0, 646.0, 457.0, 678.0, 379.0, 678.0]}, {"text": "Wiggly", "boundingBox": - [463.0, 646.0, 549.0, 646.0, 549.0, 678.0, 463.0, 678.0]}, {"text": "Books", - "boundingBox": [555.0, 646.0, 628.0, 646.0, 628.0, 678.0, 555.0, 678.0]}]}, - {"text": "Address:", "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, - 162.0, 715.0], "words": [{"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0]}]}, {"text": "938 NE Burner Road", - "boundingBox": [279.0, 684.0, 526.0, 684.0, 526.0, 715.0, 279.0, 715.0], "words": - [{"text": "938", "boundingBox": [279.0, 684.0, 326.0, 684.0, 326.0, 715.0, - 279.0, 715.0]}, {"text": "NE", "boundingBox": [332.0, 684.0, 366.0, 684.0, - 366.0, 715.0, 332.0, 715.0]}, {"text": "Burner", "boundingBox": [372.0, 684.0, - 458.0, 684.0, 458.0, 715.0, 372.0, 715.0]}, {"text": "Road", "boundingBox": - [464.0, 684.0, 526.0, 684.0, 526.0, 715.0, 464.0, 715.0]}]}, {"text": "Boulder - City, CO 92848", "boundingBox": [283.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 283.0, 752.0], "words": [{"text": "Boulder", "boundingBox": [283.0, 720.0, - 377.0, 720.0, 377.0, 752.0, 283.0, 752.0]}, {"text": "City,", "boundingBox": - [384.0, 720.0, 437.0, 720.0, 437.0, 752.0, 384.0, 752.0]}, {"text": "CO", - "boundingBox": [443.0, 720.0, 482.0, 720.0, 482.0, 752.0, 443.0, 752.0]}, - {"text": "92848", "boundingBox": [489.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 489.0, 752.0]}]}, {"text": "Phone:", "boundingBox": [615.0, 723.0, 707.0, - 723.0, 707.0, 752.0, 615.0, 752.0], "words": [{"text": "Phone:", "boundingBox": - [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, 752.0]}]}, {"text": "938-294-2949", - "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, 713.0, 752.0], "words": - [{"text": "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, - 752.0, 713.0, 752.0]}]}, {"text": "Shipped From", "boundingBox": [169.0, 784.0, - 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], "words": [{"text": "Shipped", "boundingBox": - [169.0, 784.0, 335.0, 784.0, 335.0, 831.0, 169.0, 831.0]}, {"text": "From", - "boundingBox": [345.0, 784.0, 445.0, 784.0, 445.0, 831.0, 345.0, 831.0]}]}, - {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, - 166.0, 881.0], "words": [{"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, - 852.0, 253.0, 881.0, 166.0, 881.0]}]}, {"text": "Bernie Sanders", "boundingBox": - [258.0, 852.0, 445.0, 852.0, 445.0, 881.0, 258.0, 881.0], "words": [{"text": - "Bernie", "boundingBox": [258.0, 852.0, 341.0, 852.0, 341.0, 881.0, 258.0, - 881.0]}, {"text": "Sanders", "boundingBox": [347.0, 852.0, 445.0, 852.0, 445.0, - 881.0, 347.0, 881.0]}]}, {"text": "Company Name:", "boundingBox": [169.0, - 888.0, 378.0, 888.0, 378.0, 919.0, 169.0, 919.0], "words": [{"text": "Company", - "boundingBox": [169.0, 888.0, 286.0, 888.0, 286.0, 919.0, 169.0, 919.0]}, - {"text": "Name:", "boundingBox": [292.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 292.0, 919.0]}]}, {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, - 624.0, 888.0, 624.0, 919.0, 385.0, 919.0], "words": [{"text": "Jupiter", "boundingBox": - [385.0, 888.0, 470.0, 888.0, 470.0, 919.0, 385.0, 919.0]}, {"text": "Book", - "boundingBox": [477.0, 888.0, 541.0, 888.0, 541.0, 919.0, 477.0, 919.0]}, - {"text": "Supply", "boundingBox": [547.0, 888.0, 624.0, 888.0, 624.0, 919.0, - 547.0, 919.0]}]}, {"text": "Address:", "boundingBox": [168.0, 924.0, 276.0, - 924.0, 276.0, 954.0, 168.0, 954.0], "words": [{"text": "Address:", "boundingBox": - [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0]}]}, {"text": "383 - N Kinnick Road", "boundingBox": [283.0, 924.0, 524.0, 924.0, 524.0, 954.0, - 283.0, 954.0], "words": [{"text": "383", "boundingBox": [283.0, 924.0, 328.0, - 924.0, 328.0, 954.0, 283.0, 954.0]}, {"text": "N", "boundingBox": [335.0, - 924.0, 355.0, 924.0, 355.0, 954.0, 335.0, 954.0]}, {"text": "Kinnick", "boundingBox": - [362.0, 924.0, 451.0, 924.0, 451.0, 954.0, 362.0, 954.0]}, {"text": "Road", - "boundingBox": [457.0, 924.0, 524.0, 924.0, 524.0, 954.0, 457.0, 954.0]}]}, - {"text": "Seattle, WA 38383", "boundingBox": [285.0, 962.0, 515.0, 962.0, - 515.0, 992.0, 285.0, 992.0], "words": [{"text": "Seattle,", "boundingBox": - [285.0, 962.0, 380.0, 962.0, 380.0, 992.0, 285.0, 992.0]}, {"text": "WA", - "boundingBox": [386.0, 962.0, 432.0, 962.0, 432.0, 992.0, 386.0, 992.0]}, - {"text": "38383", "boundingBox": [438.0, 962.0, 515.0, 962.0, 515.0, 992.0, - 438.0, 992.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, 852.0, - 964.0, 852.0, 992.0, 760.0, 992.0], "words": [{"text": "Phone:", "boundingBox": - [760.0, 964.0, 852.0, 964.0, 852.0, 992.0, 760.0, 992.0]}]}, {"text": "932-299-0292", - "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, 857.0, 992.0], - "words": [{"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0]}]}, {"text": "Details", "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "words": [{"text": "Details", - "boundingBox": [447.0, 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0]}]}, - {"text": "Quantity", "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, - 1080.0, 890.0, 1080.0], "words": [{"text": "Quantity", "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0]}]}, {"text": "Unit - Price", "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, - 1080.0], "words": [{"text": "Unit", "boundingBox": [1113.0, 1045.0, 1184.0, - 1045.0, 1184.0, 1080.0, 1113.0, 1080.0]}, {"text": "Price", "boundingBox": - [1191.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1191.0, 1080.0]}]}, {"text": - "Total", "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "words": [{"text": "Total", "boundingBox": [1389.0, 1046.0, 1466.0, - 1046.0, 1466.0, 1080.0, 1389.0, 1080.0]}]}, {"text": "Bindings", "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "words": [{"text": - "Bindings", "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, - 1122.0]}]}, {"text": "20", "boundingBox": [863.0, 1098.0, 889.0, 1098.0, 889.0, - 1122.0, 863.0, 1122.0], "words": [{"text": "20", "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0]}]}, {"text": "1.00", "boundingBox": - [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "words": - [{"text": "1.00", "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, - 1122.0, 1243.0, 1122.0]}]}, {"text": "20.00", "boundingBox": [1466.0, 1098.0, - 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "words": [{"text": "20.00", - "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0]}]}, - {"text": "Covers Small", "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "words": [{"text": "Covers", "boundingBox": [172.0, - 1136.0, 257.0, 1136.0, 257.0, 1162.0, 172.0, 1162.0]}, {"text": "Small", "boundingBox": - [262.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 262.0, 1162.0]}]}, {"text": - "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, - 1162.0], "words": [{"text": "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, - 889.0, 1162.0, 862.0, 1162.0]}]}, {"text": "1.00", "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "words": [{"text": - "1.00", "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0]}]}, {"text": "20.00", "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, - 1531.0, 1162.0, 1464.0, 1162.0], "words": [{"text": "20.00", "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0]}]}, {"text": - "Feather Bookmark", "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, - 172.0, 1205.0], "words": [{"text": "Feather", "boundingBox": [172.0, 1179.0, - 271.0, 1179.0, 271.0, 1205.0, 172.0, 1205.0]}, {"text": "Bookmark", "boundingBox": - [276.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 276.0, 1205.0]}]}, {"text": - "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, - 1199.0], "words": [{"text": "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, - 888.0, 1199.0, 863.0, 1199.0]}]}, {"text": "5.00", "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "words": [{"text": - "5.00", "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0]}]}, {"text": "100.00", "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, - 1530.0, 1205.0, 1448.0, 1205.0], "words": [{"text": "100.00", "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0]}]}, {"text": - "Copper Swirl Marker", "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "words": [{"text": "Copper", "boundingBox": [171.0, - 1224.0, 265.0, 1224.0, 265.0, 1248.0, 171.0, 1248.0]}, {"text": "Swirl", "boundingBox": - [270.0, 1224.0, 334.0, 1224.0, 334.0, 1248.0, 270.0, 1248.0]}, {"text": "Marker", - "boundingBox": [339.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 339.0, 1248.0]}]}, - {"text": "20", "boundingBox": [864.0, 1221.0, 887.0, 1221.0, 887.0, 1244.0, - 864.0, 1244.0], "words": [{"text": "20", "boundingBox": [864.0, 1221.0, 887.0, - 1221.0, 887.0, 1244.0, 864.0, 1244.0]}]}, {"text": "5.00", "boundingBox": - [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "words": - [{"text": "5.00", "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, - 1248.0, 1242.0, 1248.0]}]}, {"text": "100.00", "boundingBox": [1449.0, 1225.0, - 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "words": [{"text": "100.00", - "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0]}]}, - {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, - 1599.0, 1156.0, 1599.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1156.0, - 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0]}]}, {"text": "$140.00", - "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], - "words": [{"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1242.0, - 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "words": [{"text": - "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, - 1643.0]}]}, {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "words": [{"text": "$4.00", "boundingBox": - [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0]}]}, {"text": - "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, - 485.0, 1708.0], "words": [{"text": "Bernie", "boundingBox": [485.0, 1669.0, - 605.0, 1669.0, 605.0, 1708.0, 485.0, 1708.0]}, {"text": "Sanders", "boundingBox": - [613.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, 613.0, 1708.0]}]}, {"text": - "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, - 1700.0], "words": [{"text": "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, - 1674.0, 1298.0, 1700.0, 1206.0, 1700.0]}]}, {"text": "$144.00", "boundingBox": - [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "words": - [{"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, - 1697.0, 1434.0, 1697.0]}]}, {"text": "Bernie Sanders", "boundingBox": [544.0, - 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, 1743.0], "words": [{"text": "Bernie", - "boundingBox": [544.0, 1717.0, 622.0, 1717.0, 622.0, 1743.0, 544.0, 1743.0]}, - {"text": "Sanders", "boundingBox": [627.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, - 627.0, 1743.0]}]}, {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "words": [{"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0]}]}, {"text": - "Additional Notes:", "boundingBox": [175.0, 1797.0, 479.0, 1797.0, 479.0, - 1834.0, 175.0, 1834.0], "words": [{"text": "Additional", "boundingBox": [175.0, - 1797.0, 358.0, 1797.0, 358.0, 1834.0, 175.0, 1834.0]}, {"text": "Notes:", - "boundingBox": [366.0, 1797.0, 479.0, 1797.0, 479.0, 1834.0, 366.0, 1834.0]}]}, - {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [176.0, - 1880.0, 707.0, 1880.0, 707.0, 1910.0, 176.0, 1910.0], "words": [{"text": "Do", - "boundingBox": [176.0, 1880.0, 208.0, 1880.0, 208.0, 1910.0, 176.0, 1910.0]}, - {"text": "not", "boundingBox": [213.0, 1880.0, 258.0, 1880.0, 258.0, 1910.0, - 213.0, 1910.0]}, {"text": "Jostle", "boundingBox": [264.0, 1880.0, 338.0, - 1880.0, 338.0, 1910.0, 264.0, 1910.0]}, {"text": "Box.", "boundingBox": [343.0, - 1880.0, 404.0, 1880.0, 404.0, 1910.0, 343.0, 1910.0]}, {"text": "Unpack", - "boundingBox": [410.0, 1880.0, 503.0, 1880.0, 503.0, 1910.0, 410.0, 1910.0]}, - {"text": "carefully.", "boundingBox": [509.0, 1880.0, 628.0, 1880.0, 628.0, - 1910.0, 509.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [633.0, 1880.0, - 707.0, 1880.0, 707.0, 1910.0, 633.0, 1910.0]}]}, {"text": "Jupiter Book Supply + [137.0, 140.0, 351.0, 140.0, 351.0, 167.0, 137.0, 167.0], "words": [{"text": + "Purchase", "boundingBox": [137.0, 140.0, 264.0, 140.0, 264.0, 167.0, 137.0, + 167.0]}, {"text": "Order", "boundingBox": [269.0, 139.0, 351.0, 139.0, 351.0, + 167.0, 269.0, 167.0]}]}, {"text": "Hero Limited", "boundingBox": [621.0, 206.0, + 1075.0, 206.0, 1075.0, 266.0, 621.0, 266.0], "words": [{"text": "Hero", "boundingBox": + [621.0, 208.0, 794.0, 208.0, 794.0, 266.0, 621.0, 266.0]}, {"text": "Limited", + "boundingBox": [806.0, 205.0, 1075.0, 205.0, 1075.0, 266.0, 806.0, 266.0]}]}, + {"text": "Purchase Order", "boundingBox": [1113.0, 322.0, 1554.0, 322.0, 1554.0, + 369.0, 1113.0, 369.0], "words": [{"text": "Purchase", "boundingBox": [1113.0, + 322.0, 1381.0, 322.0, 1381.0, 368.0, 1113.0, 368.0]}, {"text": "Order", "boundingBox": + [1390.0, 321.0, 1554.0, 321.0, 1554.0, 370.0, 1390.0, 370.0]}]}, {"text": + "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, 359.0, 378.0, + 163.0, 378.0], "words": [{"text": "Company", "boundingBox": [163.0, 353.0, + 274.0, 353.0, 274.0, 378.0, 163.0, 378.0]}, {"text": "Phone:", "boundingBox": + [279.0, 351.0, 359.0, 351.0, 359.0, 378.0, 279.0, 378.0]}]}, {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "words": + [{"text": "555-348-6512", "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, + 378.0, 364.0, 378.0]}]}, {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "words": [{"text": "Website:", + "boundingBox": [167.0, 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0]}]}, + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "words": [{"text": "www.herolimited.com", "boundingBox": + [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0]}]}, {"text": "Email:", + "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "words": + [{"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0]}]}, {"text": "Dated As:", "boundingBox": [1025.0, 421.0, 1160.0, + 421.0, 1160.0, 448.0, 1025.0, 448.0], "words": [{"text": "Dated", "boundingBox": + [1025.0, 421.0, 1108.0, 421.0, 1108.0, 448.0, 1025.0, 448.0]}, {"text": "As:", + "boundingBox": [1114.0, 420.0, 1160.0, 420.0, 1160.0, 448.0, 1114.0, 448.0]}]}, + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "words": [{"text": "12/20/2020", "boundingBox": [1165.0, + 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0]}]}, {"text": "Purchase + Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, 488.0, 1023.0, + 488.0], "words": [{"text": "Purchase", "boundingBox": [1023.0, 461.0, 1152.0, + 461.0, 1152.0, 488.0, 1023.0, 488.0]}, {"text": "Order", "boundingBox": [1157.0, + 461.0, 1238.0, 461.0, 1238.0, 489.0, 1157.0, 489.0]}, {"text": "#:", "boundingBox": + [1244.0, 461.0, 1272.0, 461.0, 1272.0, 489.0, 1244.0, 489.0]}]}, {"text": + "948284", "boundingBox": [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, + 489.0], "words": [{"text": "948284", "boundingBox": [1277.0, 461.0, 1376.0, + 461.0, 1376.0, 489.0, 1277.0, 489.0]}]}, {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "words": + [{"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, 479.0, + 481.0, 479.0, 503.0, 164.0, 503.0]}]}, {"text": "Shipped To", "boundingBox": + [167.0, 547.0, 397.0, 547.0, 397.0, 592.0, 167.0, 592.0], "words": [{"text": + "Shipped", "boundingBox": [167.0, 547.0, 333.0, 547.0, 333.0, 592.0, 167.0, + 592.0]}, {"text": "To", "boundingBox": [342.0, 547.0, 397.0, 547.0, 397.0, + 592.0, 342.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": [160.0, 611.0, + 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "words": [{"text": "Vendor", "boundingBox": + [160.0, 611.0, 254.0, 611.0, 254.0, 637.0, 160.0, 637.0]}, {"text": "Name:", + "boundingBox": [259.0, 610.0, 344.0, 610.0, 344.0, 638.0, 259.0, 638.0]}]}, + {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, 521.0, + 639.0, 350.0, 639.0], "words": [{"text": "Hillary", "boundingBox": [350.0, + 609.0, 430.0, 609.0, 430.0, 639.0, 350.0, 639.0]}, {"text": "Swank", "boundingBox": + [435.0, 609.0, 521.0, 609.0, 521.0, 639.0, 435.0, 639.0]}]}, {"text": "Company + Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, 160.0, 677.0], + "words": [{"text": "Company", "boundingBox": [160.0, 649.0, 280.0, 649.0, + 280.0, 676.0, 160.0, 676.0]}, {"text": "Name:", "boundingBox": [286.0, 647.0, + 370.0, 647.0, 370.0, 678.0, 286.0, 678.0]}]}, {"text": "Higgly Wiggly Books", + "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], "words": + [{"text": "Higgly", "boundingBox": [375.0, 647.0, 455.0, 647.0, 455.0, 679.0, + 375.0, 679.0]}, {"text": "Wiggly", "boundingBox": [461.0, 646.0, 546.0, 646.0, + 546.0, 679.0, 461.0, 679.0]}, {"text": "Books", "boundingBox": [552.0, 646.0, + 630.0, 646.0, 630.0, 678.0, 552.0, 678.0]}]}, {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "words": [{"text": + "Address:", "boundingBox": [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, + 711.0]}]}, {"text": "938 NE Burner Road", "boundingBox": [274.0, 685.0, 527.0, + 685.0, 527.0, 713.0, 274.0, 713.0], "words": [{"text": "938", "boundingBox": + [274.0, 685.0, 323.0, 685.0, 323.0, 712.0, 274.0, 712.0]}, {"text": "NE", + "boundingBox": [329.0, 685.0, 364.0, 685.0, 364.0, 713.0, 329.0, 713.0]}, + {"text": "Burner", "boundingBox": [370.0, 685.0, 455.0, 685.0, 455.0, 713.0, + 370.0, 713.0]}, {"text": "Road", "boundingBox": [460.0, 685.0, 527.0, 685.0, + 527.0, 713.0, 460.0, 713.0]}]}, {"text": "Boulder City, CO 92848", "boundingBox": + [279.0, 722.0, 565.0, 722.0, 565.0, 751.0, 279.0, 751.0], "words": [{"text": + "Boulder", "boundingBox": [279.0, 722.0, 371.0, 722.0, 371.0, 750.0, 279.0, + 750.0]}, {"text": "City,", "boundingBox": [377.0, 722.0, 433.0, 722.0, 433.0, + 751.0, 377.0, 751.0]}, {"text": "CO", "boundingBox": [439.0, 722.0, 477.0, + 722.0, 477.0, 751.0, 439.0, 751.0]}, {"text": "92848", "boundingBox": [482.0, + 722.0, 565.0, 722.0, 565.0, 751.0, 482.0, 751.0]}]}, {"text": "Phone:", "boundingBox": + [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "words": [{"text": + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0]}]}, {"text": "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, + 885.0, 749.0, 708.0, 749.0], "words": [{"text": "938-294-2949", "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0]}]}, {"text": "Shipped + From", "boundingBox": [167.0, 784.0, 448.0, 784.0, 448.0, 830.0, 167.0, 830.0], + "words": [{"text": "Shipped", "boundingBox": [167.0, 784.0, 327.0, 784.0, + 327.0, 830.0, 167.0, 830.0]}, {"text": "From", "boundingBox": [336.0, 785.0, + 448.0, 785.0, 448.0, 830.0, 336.0, 830.0]}]}, {"text": "Name:", "boundingBox": + [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "words": [{"text": + "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, + 879.0]}]}, {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "words": [{"text": "Bernie", "boundingBox": + [255.0, 852.0, 336.0, 852.0, 336.0, 879.0, 255.0, 879.0]}, {"text": "Sanders", + "boundingBox": [341.0, 852.0, 446.0, 852.0, 446.0, 880.0, 341.0, 880.0]}]}, + {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, + 919.0, 164.0, 919.0], "words": [{"text": "Company", "boundingBox": [164.0, + 890.0, 282.0, 890.0, 282.0, 919.0, 164.0, 919.0]}, {"text": "Name:", "boundingBox": + [288.0, 890.0, 374.0, 890.0, 374.0, 919.0, 288.0, 919.0]}]}, {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, + 919.0], "words": [{"text": "Jupiter", "boundingBox": [380.0, 889.0, 467.0, + 889.0, 467.0, 919.0, 380.0, 919.0]}, {"text": "Book", "boundingBox": [473.0, + 889.0, 536.0, 889.0, 536.0, 919.0, 473.0, 919.0]}, {"text": "Supply", "boundingBox": + [542.0, 889.0, 629.0, 889.0, 629.0, 920.0, 542.0, 920.0]}]}, {"text": "Address:", + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "words": + [{"text": "Address:", "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, + 166.0, 953.0]}]}, {"text": "383 N Kinnick Road", "boundingBox": [279.0, 926.0, + 521.0, 926.0, 521.0, 953.0, 279.0, 953.0], "words": [{"text": "383", "boundingBox": + [279.0, 925.0, 327.0, 925.0, 327.0, 953.0, 279.0, 953.0]}, {"text": "N", "boundingBox": + [332.0, 926.0, 353.0, 926.0, 353.0, 953.0, 332.0, 953.0]}, {"text": "Kinnick", + "boundingBox": [358.0, 926.0, 448.0, 926.0, 448.0, 953.0, 358.0, 953.0]}, + {"text": "Road", "boundingBox": [453.0, 926.0, 521.0, 926.0, 521.0, 954.0, + 453.0, 954.0]}]}, {"text": "Seattle, WA 38383", "boundingBox": [281.0, 965.0, + 514.0, 965.0, 514.0, 991.0, 281.0, 991.0], "words": [{"text": "Seattle,", + "boundingBox": [281.0, 965.0, 377.0, 965.0, 377.0, 991.0, 281.0, 991.0]}, + {"text": "WA", "boundingBox": [382.0, 964.0, 429.0, 964.0, 429.0, 991.0, 382.0, + 991.0]}, {"text": "38383", "boundingBox": [434.0, 964.0, 514.0, 964.0, 514.0, + 991.0, 434.0, 991.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "words": [{"text": "Phone:", "boundingBox": + [760.0, 964.0, 849.0, 964.0, 849.0, 990.0, 760.0, 990.0]}]}, {"text": "932-299-0292", + "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, 855.0, 990.0], + "words": [{"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0]}]}, {"text": "Details", "boundingBox": [447.0, + 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "words": [{"text": "Details", + "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0]}]}, + {"text": "Quantity", "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, + 1084.0, 886.0, 1084.0], "words": [{"text": "Quantity", "boundingBox": [886.0, + 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0]}]}, {"text": "Unit + Price", "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1111.0, + 1078.0], "words": [{"text": "Unit", "boundingBox": [1111.0, 1047.0, 1181.0, + 1047.0, 1181.0, 1078.0, 1111.0, 1078.0]}, {"text": "Price", "boundingBox": + [1187.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1187.0, 1078.0]}]}, {"text": + "Total", "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "words": [{"text": "Total", "boundingBox": [1383.0, 1047.0, 1467.0, + 1047.0, 1467.0, 1077.0, 1383.0, 1077.0]}]}, {"text": "Bindings", "boundingBox": + [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "words": [{"text": + "Bindings", "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, + 1122.0]}]}, {"text": "20", "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, + 1119.0, 861.0, 1119.0], "words": [{"text": "20", "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0]}]}, {"text": "1.00", "boundingBox": + [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "words": + [{"text": "1.00", "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, + 1118.0, 1241.0, 1118.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1096.0, + 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "words": [{"text": "20.00", + "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0]}]}, + {"text": "Covers Small", "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "words": [{"text": "Covers", "boundingBox": [170.0, + 1136.0, 254.0, 1136.0, 254.0, 1161.0, 170.0, 1161.0]}, {"text": "Small", "boundingBox": + [259.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 259.0, 1161.0]}]}, {"text": + "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, + 1160.0], "words": [{"text": "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, + 892.0, 1160.0, 861.0, 1160.0]}]}, {"text": "1.00", "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "words": [{"text": + "1.00", "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, + 1529.0, 1160.0, 1458.0, 1160.0], "words": [{"text": "20.00", "boundingBox": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0]}]}, {"text": + "Feather Bookmark", "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, + 173.0, 1206.0], "words": [{"text": "Feather", "boundingBox": [173.0, 1180.0, + 266.0, 1180.0, 266.0, 1206.0, 173.0, 1206.0]}, {"text": "Bookmark", "boundingBox": + [271.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 271.0, 1206.0]}]}, {"text": + "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, + 1204.0], "words": [{"text": "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, + 892.0, 1204.0, 863.0, 1204.0]}]}, {"text": "5.00", "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "words": [{"text": + "5.00", "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0]}]}, {"text": "100.00", "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, + 1529.0, 1205.0, 1443.0, 1205.0], "words": [{"text": "100.00", "boundingBox": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0]}]}, {"text": + "Copper Swirl Marker", "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "words": [{"text": "Copper", "boundingBox": [170.0, + 1223.0, 259.0, 1223.0, 259.0, 1253.0, 170.0, 1253.0]}, {"text": "Swirl", "boundingBox": + [265.0, 1222.0, 328.0, 1222.0, 328.0, 1252.0, 265.0, 1252.0]}, {"text": "Marker", + "boundingBox": [334.0, 1222.0, 429.0, 1222.0, 429.0, 1251.0, 334.0, 1251.0]}]}, + {"text": "20", "boundingBox": [860.0, 1223.0, 892.0, 1223.0, 892.0, 1247.0, + 860.0, 1247.0], "words": [{"text": "20", "boundingBox": [860.0, 1223.0, 892.0, + 1223.0, 892.0, 1247.0, 860.0, 1247.0]}]}, {"text": "5.00", "boundingBox": + [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "words": + [{"text": "5.00", "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, + 1247.0, 1239.0, 1247.0]}]}, {"text": "100.00", "boundingBox": [1444.0, 1224.0, + 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "words": [{"text": "100.00", + "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0]}]}, + {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, + 1600.0, 1147.0, 1600.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1147.0, + 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0]}]}, {"text": "$140.00", + "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], + "words": [{"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1238.0, + 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "words": [{"text": + "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, + 1643.0]}]}, {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "words": [{"text": "$4.00", "boundingBox": + [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0]}]}, {"text": + "Bernie Sanders", "boundingBox": [489.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, + 489.0, 1706.0], "words": [{"text": "Bernie", "boundingBox": [489.0, 1671.0, + 609.0, 1671.0, 609.0, 1706.0, 489.0, 1706.0]}, {"text": "Sanders", "boundingBox": + [616.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, 616.0, 1706.0]}]}, {"text": + "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, + 1699.0], "words": [{"text": "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, + 1674.0, 1297.0, 1699.0, 1204.0, 1699.0]}]}, {"text": "$144.00", "boundingBox": + [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "words": + [{"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, + 1698.0, 1427.0, 1698.0]}]}, {"text": "Bernie Sanders", "boundingBox": [542.0, + 1719.0, 717.0, 1719.0, 717.0, 1742.0, 542.0, 1742.0], "words": [{"text": "Bernie", + "boundingBox": [542.0, 1719.0, 617.0, 1719.0, 617.0, 1742.0, 542.0, 1742.0]}, + {"text": "Sanders", "boundingBox": [621.0, 1719.0, 717.0, 1719.0, 717.0, 1742.0, + 621.0, 1742.0]}]}, {"text": "Manager", "boundingBox": [577.0, 1754.0, 681.0, + 1754.0, 681.0, 1776.0, 577.0, 1776.0], "words": [{"text": "Manager", "boundingBox": + [577.0, 1754.0, 681.0, 1754.0, 681.0, 1776.0, 577.0, 1776.0]}]}, {"text": + "Additional Notes:", "boundingBox": [173.0, 1796.0, 479.0, 1796.0, 479.0, + 1831.0, 173.0, 1831.0], "words": [{"text": "Additional", "boundingBox": [173.0, + 1796.0, 355.0, 1796.0, 355.0, 1831.0, 173.0, 1831.0]}, {"text": "Notes:", + "boundingBox": [361.0, 1796.0, 479.0, 1796.0, 479.0, 1832.0, 361.0, 1832.0]}]}, + {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [175.0, + 1880.0, 707.0, 1880.0, 707.0, 1909.0, 175.0, 1909.0], "words": [{"text": "Do", + "boundingBox": [175.0, 1881.0, 205.0, 1881.0, 205.0, 1907.0, 175.0, 1907.0]}, + {"text": "not", "boundingBox": [210.0, 1881.0, 256.0, 1881.0, 256.0, 1907.0, + 210.0, 1907.0]}, {"text": "Jostle", "boundingBox": [261.0, 1880.0, 335.0, + 1880.0, 335.0, 1908.0, 261.0, 1908.0]}, {"text": "Box.", "boundingBox": [340.0, + 1880.0, 401.0, 1880.0, 401.0, 1909.0, 340.0, 1909.0]}, {"text": "Unpack", + "boundingBox": [406.0, 1880.0, 500.0, 1880.0, 500.0, 1909.0, 406.0, 1909.0]}, + {"text": "carefully.", "boundingBox": [505.0, 1880.0, 623.0, 1880.0, 623.0, + 1910.0, 505.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [628.0, 1880.0, + 707.0, 1880.0, 707.0, 1911.0, 628.0, 1911.0]}]}, {"text": "Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and", "boundingBox": - [173.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 173.0, 1959.0], "words": [{"text": - "Jupiter", "boundingBox": [173.0, 1925.0, 274.0, 1925.0, 274.0, 1959.0, 173.0, - 1959.0]}, {"text": "Book", "boundingBox": [280.0, 1925.0, 361.0, 1925.0, 361.0, - 1959.0, 280.0, 1959.0]}, {"text": "Supply", "boundingBox": [367.0, 1925.0, - 470.0, 1925.0, 470.0, 1959.0, 367.0, 1959.0]}, {"text": "will", "boundingBox": - [477.0, 1925.0, 523.0, 1925.0, 523.0, 1959.0, 477.0, 1959.0]}, {"text": "refund", - "boundingBox": [530.0, 1925.0, 628.0, 1925.0, 628.0, 1959.0, 530.0, 1959.0]}, - {"text": "you", "boundingBox": [635.0, 1925.0, 693.0, 1925.0, 693.0, 1959.0, - 635.0, 1959.0]}, {"text": "50%", "boundingBox": [699.0, 1925.0, 766.0, 1925.0, - 766.0, 1959.0, 699.0, 1959.0]}, {"text": "per", "boundingBox": [773.0, 1925.0, - 827.0, 1925.0, 827.0, 1959.0, 773.0, 1959.0]}, {"text": "book", "boundingBox": - [833.0, 1925.0, 907.0, 1925.0, 907.0, 1959.0, 833.0, 1959.0]}, {"text": "if", - "boundingBox": [913.0, 1925.0, 934.0, 1925.0, 934.0, 1959.0, 913.0, 1959.0]}, - {"text": "returned", "boundingBox": [940.0, 1925.0, 1067.0, 1925.0, 1067.0, - 1959.0, 940.0, 1959.0]}, {"text": "within", "boundingBox": [1074.0, 1925.0, - 1161.0, 1925.0, 1161.0, 1959.0, 1074.0, 1959.0]}, {"text": "60", "boundingBox": - [1168.0, 1925.0, 1210.0, 1925.0, 1210.0, 1959.0, 1168.0, 1959.0]}, {"text": - "days", "boundingBox": [1219.0, 1925.0, 1288.0, 1925.0, 1288.0, 1959.0, 1219.0, - 1959.0]}, {"text": "of", "boundingBox": [1295.0, 1925.0, 1324.0, 1925.0, 1324.0, - 1959.0, 1295.0, 1959.0]}, {"text": "reading", "boundingBox": [1330.0, 1925.0, - 1446.0, 1925.0, 1446.0, 1959.0, 1330.0, 1959.0]}, {"text": "and", "boundingBox": - [1453.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 1453.0, 1959.0]}]}, {"text": - "offer you 25% off you next total purchase.", "boundingBox": [170.0, 1959.0, - 782.0, 1959.0, 782.0, 1992.0, 170.0, 1992.0], "words": [{"text": "offer", - "boundingBox": [170.0, 1959.0, 239.0, 1959.0, 239.0, 1992.0, 170.0, 1992.0]}, - {"text": "you", "boundingBox": [246.0, 1959.0, 304.0, 1959.0, 304.0, 1992.0, - 246.0, 1992.0]}, {"text": "25%", "boundingBox": [310.0, 1959.0, 379.0, 1959.0, - 379.0, 1992.0, 310.0, 1992.0]}, {"text": "off", "boundingBox": [386.0, 1959.0, - 425.0, 1959.0, 425.0, 1992.0, 386.0, 1992.0]}, {"text": "you", "boundingBox": - [432.0, 1959.0, 490.0, 1959.0, 490.0, 1992.0, 432.0, 1992.0]}, {"text": "next", - "boundingBox": [496.0, 1959.0, 561.0, 1959.0, 561.0, 1992.0, 496.0, 1992.0]}, - {"text": "total", "boundingBox": [567.0, 1959.0, 634.0, 1959.0, 634.0, 1992.0, - 567.0, 1992.0]}, {"text": "purchase.", "boundingBox": [641.0, 1959.0, 782.0, - 1959.0, 782.0, 1992.0, 641.0, 1992.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": ["#/readResults/0/lines/1/words/0", - "#/readResults/0/lines/1/words/1"]}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, "value": - {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0], "elements": ["#/readResults/0/lines/4/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, - 271.0, 420.0, 167.0, 420.0], "elements": ["#/readResults/0/lines/5/words/0"]}, - "value": {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, - 392.0, 530.0, 420.0, 277.0, 420.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + [169.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 169.0, 1958.0], "words": [{"text": + "Jupiter", "boundingBox": [169.0, 1924.0, 270.0, 1924.0, 270.0, 1959.0, 169.0, + 1959.0]}, {"text": "Book", "boundingBox": [277.0, 1924.0, 355.0, 1924.0, 355.0, + 1959.0, 277.0, 1959.0]}, {"text": "Supply", "boundingBox": [361.0, 1924.0, + 465.0, 1924.0, 465.0, 1958.0, 361.0, 1958.0]}, {"text": "will", "boundingBox": + [472.0, 1924.0, 517.0, 1924.0, 517.0, 1958.0, 472.0, 1958.0]}, {"text": "refund", + "boundingBox": [524.0, 1924.0, 625.0, 1924.0, 625.0, 1958.0, 524.0, 1958.0]}, + {"text": "you", "boundingBox": [632.0, 1924.0, 687.0, 1924.0, 687.0, 1958.0, + 632.0, 1958.0]}, {"text": "50%", "boundingBox": [694.0, 1924.0, 763.0, 1924.0, + 763.0, 1958.0, 694.0, 1958.0]}, {"text": "per", "boundingBox": [770.0, 1924.0, + 820.0, 1924.0, 820.0, 1958.0, 770.0, 1958.0]}, {"text": "book", "boundingBox": + [827.0, 1924.0, 900.0, 1924.0, 900.0, 1958.0, 827.0, 1958.0]}, {"text": "if", + "boundingBox": [907.0, 1924.0, 928.0, 1924.0, 928.0, 1958.0, 907.0, 1958.0]}, + {"text": "returned", "boundingBox": [935.0, 1924.0, 1063.0, 1924.0, 1063.0, + 1958.0, 935.0, 1958.0]}, {"text": "within", "boundingBox": [1070.0, 1924.0, + 1157.0, 1924.0, 1157.0, 1958.0, 1070.0, 1958.0]}, {"text": "60", "boundingBox": + [1164.0, 1924.0, 1203.0, 1924.0, 1203.0, 1958.0, 1164.0, 1958.0]}, {"text": + "days", "boundingBox": [1210.0, 1924.0, 1284.0, 1924.0, 1284.0, 1958.0, 1210.0, + 1958.0]}, {"text": "of", "boundingBox": [1290.0, 1924.0, 1318.0, 1924.0, 1318.0, + 1958.0, 1290.0, 1958.0]}, {"text": "reading", "boundingBox": [1325.0, 1924.0, + 1439.0, 1924.0, 1439.0, 1958.0, 1325.0, 1958.0]}, {"text": "and", "boundingBox": + [1446.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 1446.0, 1958.0]}]}, {"text": + "offer you 25% off you next total purchase.", "boundingBox": [169.0, 1958.0, + 786.0, 1958.0, 786.0, 1992.0, 169.0, 1992.0], "words": [{"text": "offer", + "boundingBox": [169.0, 1958.0, 235.0, 1958.0, 235.0, 1991.0, 169.0, 1991.0]}, + {"text": "you", "boundingBox": [242.0, 1958.0, 299.0, 1958.0, 299.0, 1991.0, + 242.0, 1991.0]}, {"text": "25%", "boundingBox": [306.0, 1958.0, 374.0, 1958.0, + 374.0, 1992.0, 306.0, 1992.0]}, {"text": "off", "boundingBox": [380.0, 1958.0, + 421.0, 1958.0, 421.0, 1992.0, 380.0, 1992.0]}, {"text": "you", "boundingBox": + [427.0, 1958.0, 483.0, 1958.0, 483.0, 1992.0, 427.0, 1992.0]}, {"text": "next", + "boundingBox": [489.0, 1958.0, 556.0, 1958.0, 556.0, 1992.0, 489.0, 1992.0]}, + {"text": "total", "boundingBox": [562.0, 1959.0, 628.0, 1959.0, 628.0, 1992.0, + 562.0, 1992.0]}, {"text": "purchase.", "boundingBox": [635.0, 1959.0, 786.0, + 1959.0, 786.0, 1991.0, 635.0, 1991.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": ["#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1"]}, "value": {"text": "555-348-6512", "boundingBox": + [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": ["#/readResults/0/lines/4/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": ["#/readResults/0/lines/5/words/0"]}, + "value": {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, + 393.0, 531.0, 418.0, 273.0, 418.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Email:", "boundingBox": [165.0, 435.0, + 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "elements": ["#/readResults/0/lines/7/words/0"]}, + "value": {"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, + 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": - [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], "elements": - ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": ["#/readResults/0/lines/9/words/0"]}, "value": {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, - 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": ["#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, - "value": {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, - 1376.0, 491.0, 1282.0, 491.0], "elements": ["#/readResults/0/lines/11/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": [162.0, - 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "elements": ["#/readResults/0/lines/14/words/0", - "#/readResults/0/lines/14/words/1"]}, "value": {"text": "Hillary Swank", "boundingBox": - [352.0, 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": ["#/readResults/0/lines/15/words/0", + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": ["#/readResults/0/lines/8/words/0", + "#/readResults/0/lines/8/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0], "elements": + ["#/readResults/0/lines/9/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", + "#/readResults/0/lines/10/words/2"]}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + ["#/readResults/0/lines/11/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Vendor Name:", "boundingBox": [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, + 160.0, 637.0], "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"]}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1"]}, "confidence": 0.7}, {"key": {"text": - "Company Name:", "boundingBox": [162.0, 646.0, 373.0, 646.0, 373.0, 678.0, - 162.0, 678.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "value": {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, - 646.0, 628.0, 678.0, 379.0, 678.0], "elements": ["#/readResults/0/lines/17/words/0", + "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, + 160.0, 677.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, + "value": {"text": "Higgly Wiggly Books", "boundingBox": [375.0, 646.0, 630.0, + 646.0, 630.0, 679.0, 375.0, 679.0], "elements": ["#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2"]}, - "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": ["#/readResults/0/lines/18/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [161.0, 685.0, + 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": ["#/readResults/0/lines/18/words/0"]}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": ["#/readResults/0/lines/19/words/0", + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": ["#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1", "#/readResults/0/lines/20/words/2", "#/readResults/0/lines/20/words/3"]}, "confidence": 1.0}, {"key": {"text": - "Phone:", "boundingBox": [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, - 752.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, - 253.0, 881.0, 166.0, 881.0], "elements": ["#/readResults/0/lines/24/words/0"]}, - "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, 852.0, - 445.0, 881.0, 258.0, 881.0], "elements": ["#/readResults/0/lines/25/words/0", + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": + 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, + 250.0, 879.0, 166.0, 879.0], "elements": ["#/readResults/0/lines/24/words/0"]}, + "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, 852.0, + 446.0, 880.0, 255.0, 880.0], "elements": ["#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 169.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, - "value": {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, 624.0, - 888.0, 624.0, 919.0, 385.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", + "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, 919.0, + 164.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, + "value": {"text": "Jupiter Book Supply", "boundingBox": [380.0, 889.0, 629.0, + 889.0, 629.0, 919.0, 380.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/27/words/2"]}, - "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [168.0, 924.0, - 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": ["#/readResults/0/lines/28/words/0"]}, - "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [283.0, - 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": ["#/readResults/0/lines/29/words/0", + "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [166.0, 926.0, + 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": ["#/readResults/0/lines/28/words/0"]}, + "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [279.0, + 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": ["#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/29/words/3", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2"]}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": ["#/readResults/0/lines/31/words/0"]}, - "value": {"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0], "elements": ["#/readResults/0/lines/32/words/0"]}, - "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, - 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], "elements": ["#/readResults/0/lines/53/words/0"]}, - "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, - 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, - "value": {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "elements": ["#/readResults/0/lines/56/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1206.0, 1674.0, - 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": ["#/readResults/0/lines/58/words/0"]}, - "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, - 1531.0, 1697.0, 1434.0, 1697.0], "elements": ["#/readResults/0/lines/59/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, - 1797.0, 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": ["#/readResults/0/lines/62/words/0", + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": ["#/readResults/0/lines/31/words/0"]}, + "value": {"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0], "elements": ["#/readResults/0/lines/32/words/0"]}, + "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, + 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], "elements": ["#/readResults/0/lines/53/words/0"]}, + "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, + 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, + "value": {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "elements": ["#/readResults/0/lines/56/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1204.0, 1674.0, + 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": ["#/readResults/0/lines/58/words/0"]}, + "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, + 1529.0, 1698.0, 1427.0, 1698.0], "elements": ["#/readResults/0/lines/59/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, + 1796.0, 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": ["#/readResults/0/lines/62/words/0", "#/readResults/0/lines/62/words/1"]}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer you 25% off you next total - purchase.", "boundingBox": [170.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, - 170.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", + purchase.", "boundingBox": [169.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, + 169.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", "#/readResults/0/lines/63/words/2", "#/readResults/0/lines/63/words/3", "#/readResults/0/lines/63/words/4", "#/readResults/0/lines/63/words/5", "#/readResults/0/lines/63/words/6", "#/readResults/0/lines/64/words/0", "#/readResults/0/lines/64/words/1", "#/readResults/0/lines/64/words/2", "#/readResults/0/lines/64/words/3", @@ -8941,114 +9007,90 @@ interactions: "#/readResults/0/lines/64/words/16", "#/readResults/0/lines/65/words/0", "#/readResults/0/lines/65/words/1", "#/readResults/0/lines/65/words/2", "#/readResults/0/lines/65/words/3", "#/readResults/0/lines/65/words/4", "#/readResults/0/lines/65/words/5", "#/readResults/0/lines/65/words/6", "#/readResults/0/lines/65/words/7"]}, - "confidence": 0.53}, {"key": {"text": "__Tokens__1", "boundingBox": null, - "elements": null}, "value": {"text": "Purchase Order", "boundingBox": [141.0, - 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "elements": ["#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/0/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": ["#/readResults/0/lines/2/words/0", "#/readResults/0/lines/2/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped To", "boundingBox": [170.0, 546.0, 398.0, - 546.0, 398.0, 592.0, 170.0, 592.0], "elements": ["#/readResults/0/lines/13/words/0", - "#/readResults/0/lines/13/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__4", "boundingBox": null, "elements": null}, "value": {"text": "Shipped - From", "boundingBox": [169.0, 784.0, 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], - "elements": ["#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, - 766.0, 1669.0, 766.0, 1708.0, 485.0, 1708.0], "elements": ["#/readResults/0/lines/57/words/0", - "#/readResults/0/lines/57/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": ["#/readResults/0/lines/60/words/0", "#/readResults/0/lines/60/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__7", "boundingBox": null, "elements": - null}, "value": {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": ["#/readResults/0/lines/61/words/0"]}, - "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": - "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1047.0, - 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + "confidence": 0.53}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": + "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, + 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, "columnIndex": - 1, "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], + 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": true, "isFooter": false}, {"text": "Unit Price", "rowIndex": 0, - "columnIndex": 2, "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, - 1080.0, 1113.0, 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, + 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1"], "isHeader": true, "isFooter": false}, {"text": "Total", "rowIndex": 0, "columnIndex": - 3, "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], + 3, "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], "isHeader": true, "isFooter": false}, {"text": "Bindings", "rowIndex": 1, - "columnIndex": 0, "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, - 173.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + "columnIndex": 0, "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, + 172.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 1, "columnIndex": - 2, "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + 2, "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, + 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": - 3, "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], + 3, "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, + 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/41/words/0", "#/readResults/0/lines/41/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], + 1, "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/42/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 2, "columnIndex": - 2, "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], + 2, "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": - 3, "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], + 3, "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, - 1205.0, 172.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, + 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/45/words/0", "#/readResults/0/lines/45/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], + 1, "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/46/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 3, "columnIndex": - 2, "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], + 2, "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": - 3, "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, + 3, "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/48/words/0"], "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/49/words/0", "#/readResults/0/lines/49/words/1", "#/readResults/0/lines/49/words/2"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, 1221.0, - 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, 1223.0, + 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/50/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 4, "columnIndex": - 2, "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, - 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], + 2, "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, + 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": - 3, "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, + 3, "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/52/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 37df03c8-5ecc-49f7-8442-8a27d9052fb3 + - adcbe47d-fb8f-4636-ad72-08d02d970e47 content-length: - - '36450' + - '34193' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:50 GMT + - Mon, 14 Sep 2020 19:48:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1033' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml index 1e2d2ff3263e..1f152ce5c3a7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_authentication_bad_key.yaml @@ -2,27 +2,24 @@ interactions: - request: body: xx headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 169506a4-49cd-4c5d-8e7c-c6842ade9914 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:46:52 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 19:50:26 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml index 3a402a1be80e..901510cd67b9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_damaged_file.yaml @@ -3,389 +3,187 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 0c69e821-40d1-4790-9f5c-3958f30d3e40 + apim-request-id: 0d5c870a-32e6-49f0-bfc2-baa9addca72e content-length: '0' - date: Fri, 10 Jul 2020 18:47:28 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4 + date: Mon, 14 Sep 2020 19:50:27 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '69' + x-envoy-upstream-service-time: '68' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", "status": - "creating", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:29Z"}}' + string: '{"modelInfo": {"modelId": "53008695-7c34-41c1-a39a-f19fbfc388ec", "status": + "creating", "createdDateTime": "2020-09-14T19:50:28Z", "lastUpdatedDateTime": + "2020-09-14T19:50:28Z"}}' headers: - apim-request-id: 8308487f-3cfc-4ceb-b0fb-ac5d71b6b927 + apim-request-id: 93543188-b293-4a1b-aa6b-34f259713304 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:34 GMT + date: Mon, 14 Sep 2020 19:50:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '83' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", "status": - "creating", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:29Z"}}' + string: '{"modelInfo": {"modelId": "53008695-7c34-41c1-a39a-f19fbfc388ec", "status": + "creating", "createdDateTime": "2020-09-14T19:50:28Z", "lastUpdatedDateTime": + "2020-09-14T19:50:28Z"}}' headers: - apim-request-id: 555652b0-8248-4fd0-80c3-0ee874dc338b + apim-request-id: 6959006f-9ad4-4f33-9cec-606e3a8680a7 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:40 GMT + date: Mon, 14 Sep 2020 19:50:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", "status": - "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 9b19ee64-4cbc-4021-b35f-c4b0489807b7 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:45 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4?includeKeys=true -- request: - body: '%PDFUUU' - headers: - Content-Type: - - application/pdf - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyze?includeTextDetails=false - response: - body: - string: '' - headers: - apim-request-id: ae76a0ea-8215-40ea-8bb6-76eea8f82cb6 - content-length: '0' - date: Fri, 10 Jul 2020 18:47:45 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '768' - status: - code: 202 - message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyze?includeTextDetails=false -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 3be94f87-2525-41f1-97e3-dcbbb7dc1d1a - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:51 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 329505bd-5fc9-486b-9ce9-55bcfe9bef5d - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:55 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + string: '{"modelInfo": {"modelId": "53008695-7c34-41c1-a39a-f19fbfc388ec", "status": + "creating", "createdDateTime": "2020-09-14T19:50:28Z", "lastUpdatedDateTime": + "2020-09-14T19:50:28Z"}}' headers: - apim-request-id: c0c4b2ba-1b20-420b-a659-a886d89451be - content-length: '109' + apim-request-id: 5bf67c5c-9a4b-4c16-a6a9-8648be7eea91 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:01 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 112f3660-3805-4cdc-ba02-3720893b5ccc - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:07 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '663' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: c7fef9d5-7618-4454-bb89-841196d10bc2 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:11 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 362cd4fc-5e12-4c17-9e83-8687ff9b45c7 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 9ef3f2ce-e4c7-4d30-9aec-4086d9149231 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 8e853b63-bd31-442f-bb6d-0fda7d606d81 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:27 GMT + date: Mon, 14 Sep 2020 19:50:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '75' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' - headers: - apim-request-id: 3c74ac52-5726-41d6-951e-a12f90c3ee1c - content-length: '109' + string: '{"modelInfo": {"modelId": "53008695-7c34-41c1-a39a-f19fbfc388ec", "status": + "ready", "createdDateTime": "2020-09-14T19:50:28Z", "lastUpdatedDateTime": + "2020-09-14T19:50:45Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 386f5592-e81b-4563-8383-43270208ce08 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:32 GMT + date: Mon, 14 Sep 2020 19:50:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '73' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec?includeKeys=true - request: - body: null + body: '%PDFUUU' headers: + Accept: + - application/json + Content-Type: + - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec/analyze?includeTextDetails=false response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:45Z", - "lastUpdatedDateTime": "2020-07-10T18:47:45Z"}' + string: '' headers: - apim-request-id: 00538319-615c-4ea1-b621-97e36c84934a - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:37 GMT + apim-request-id: afe0db50-a938-4449-ac40-801ab6330444 + content-length: '0' + date: Mon, 14 Sep 2020 19:50:48 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec/analyzeresults/8ed1e349-f8a8-40e8-a5d3-836631083265 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '97' status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + code: 202 + message: Accepted + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec/analyzeresults/8ed1e349-f8a8-40e8-a5d3-836631083265 response: body: - string: '{"status": "failed", "createdDateTime": "2020-07-10T18:47:45Z", "lastUpdatedDateTime": - "2020-07-10T18:48:40Z", "analyzeResult": {"version": "2.0.0", "readResults": + string: '{"status": "failed", "createdDateTime": "2020-09-14T19:50:49Z", "lastUpdatedDateTime": + "2020-09-14T19:50:50Z", "analyzeResult": {"version": "2.1.0", "readResults": [], "pageResults": [], "documentResults": [], "errors": [{"code": "2005", "message": "Unable to read file."}]}}' headers: - apim-request-id: b872c012-2e49-4be0-a314-d39043987bc9 + apim-request-id: fdacdabd-d4a0-4097-97a7-6c43d2f8463b content-length: '275' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:44 GMT + date: Mon, 14 Sep 2020 19:50:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1706' + x-envoy-upstream-service-time: '13' x-ms-cs-error-code: '2005' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f4135245-a217-4d73-aafe-5b1d517012f4/analyzeresults/49e08b4e-ce78-4599-ba53-0ae55c3f6842 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/53008695-7c34-41c1-a39a-f19fbfc388ec/analyzeresults/8ed1e349-f8a8-40e8-a5d3-836631083265 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml index bff658b0bd20..6b298720c634 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled.yaml @@ -3,67 +3,69 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: bf229dfe-aa94-4948-b083-0dd3b44569ad + apim-request-id: a6eeb21b-3382-4bba-b83c-63bf31e2a842 content-length: '0' - date: Fri, 10 Jul 2020 18:48:44 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d + date: Mon, 14 Sep 2020 19:50:22 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '186' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", "status": - "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": - "2020-07-10T18:48:48Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "2c5bc7ae-9ed2-451a-b6a7-9170f8196f91", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:50:22Z", + "lastUpdatedDateTime": "2020-09-14T19:50:24Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 4963ef95-74db-49a3-a40d-27df810878e7 + apim-request-id: 86271ed1-60de-4584-b430-ec96291de505 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:50 GMT + date: Mon, 14 Sep 2020 19:50:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8476,154 +8478,136 @@ interactions: UUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFA BRQAUUAFFABRQB//2Q== headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 712bb28e-d4fb-4cf8-9e64-96110e62605c + apim-request-id: 662bba78-4078-45cd-8e6c-8556a202c8d1 content-length: '0' - date: Fri, 10 Jul 2020 18:48:52 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 + date: Mon, 14 Sep 2020 19:50:27 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91/analyzeresults/1da2c8a6-0ba3-4758-9b25-70346f208926 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '944' + x-envoy-upstream-service-time: '60' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyze?includeTextDetails=false -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:48:52Z", - "lastUpdatedDateTime": "2020-07-10T18:48:54Z"}' - headers: - apim-request-id: 7779d10c-3bf9-420d-abc8-6e085e5fa509 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:57 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91/analyzeresults/1da2c8a6-0ba3-4758-9b25-70346f208926 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:48:52Z", - "lastUpdatedDateTime": "2020-07-10T18:48:58Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": - [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": - "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, 1309, 1610, 1072, 1610]}, - {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", "boundingBox": [1309, - 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": 2, "columnIndex": - 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, 1309, 1658, 1072, - 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", "boundingBox": - [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Bernie Sanders", "boundingBox": [482, 1658, 1072, 1658, 1072, - 1708, 482, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": "TOTAL", "boundingBox": - [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, {"rowIndex": 3, "columnIndex": - 2, "text": "$144.00", "boundingBox": [1309, 1658, 1544, 1658, 1544, 1708, - 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Details", "boundingBox": [156, 1038, 847, 1038, 847, 1087, 156, - 1087]}, {"rowIndex": 0, "columnIndex": 1, "text": "Quantity", "boundingBox": - [847, 1038, 1072, 1038, 1072, 1087, 847, 1087]}, {"rowIndex": 0, "columnIndex": - 2, "text": "Unit Price", "boundingBox": [1072, 1038, 1309, 1038, 1309, 1087, - 1072, 1087]}, {"rowIndex": 0, "columnIndex": 3, "text": "Total", "boundingBox": - [1309, 1038, 1544, 1038, 1544, 1087, 1309, 1087]}, {"rowIndex": 1, "columnIndex": - 0, "text": "Bindings", "boundingBox": [156, 1087, 847, 1087, 847, 1128, 156, - 1128]}, {"rowIndex": 1, "columnIndex": 1, "text": "20", "boundingBox": [847, - 1087, 1072, 1087, 1072, 1128, 847, 1128]}, {"rowIndex": 1, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1087, 1309, 1087, 1309, 1128, 1072, - 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, {"rowIndex": 2, "columnIndex": - 0, "text": "Covers Small", "boundingBox": [156, 1128, 847, 1128, 847, 1172, - 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, {"rowIndex": 2, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1128, 1309, 1128, 1309, 1172, 1072, - 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Feather Bookmark", "boundingBox": [156, 1172, 847, 1172, 847, - 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, {"rowIndex": 3, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1172, 1309, 1172, 1309, 1216, 1072, - 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, {"rowIndex": 4, "columnIndex": - 0, "text": "Copper Swirl Marker", "boundingBox": [156, 1216, 847, 1216, 847, - 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, {"rowIndex": 4, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, - 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"DatedAs": {"type": - "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": - [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": - 1.0}, "Merchant": {"type": "string", "valueString": "Hero Limited", "text": - "Hero Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, - 266.0, 621.0, 266.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", - "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": - [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}, - "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder - City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": - 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], - "confidence": 1.0}, "CompanyPhoneNumber": {"type": "string", "valueString": - "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": [713.0, - 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, 750.0], "confidence": 1.0}, "Email": - {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0}, "PurchaseOrderNumber": {"type": "string", "valueString": - "948284", "text": "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, - 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": 1.0}, "Quantity": {"type": - "number", "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, - 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0}, "VendorName": {"type": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:50:28Z", + "lastUpdatedDateTime": "2020-09-14T19:50:32Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "selectionMarks": [{"boundingBox": [2, 2060, 195, 2060, + 195, 2200, 2, 2200], "confidence": 0.881, "state": "unselected"}]}], "pageResults": + [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, + "columnIndex": 1, "text": "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, + 1309, 1610, 1072, 1610]}, {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", + "boundingBox": [1309, 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": + 2, "columnIndex": 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, + 1309, 1658, 1072, 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", + "boundingBox": [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": + 3, "columnIndex": 0, "text": "Bernie Sanders", "boundingBox": [489, 1658, + 1072, 1658, 1072, 1708, 489, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": + "TOTAL", "boundingBox": [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, + {"rowIndex": 3, "columnIndex": 2, "text": "$144.00", "boundingBox": [1309, + 1658, 1544, 1658, 1544, 1708, 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Details", "boundingBox": [156, + 1038, 847, 1038, 847, 1087, 156, 1087]}, {"rowIndex": 0, "columnIndex": 1, + "text": "Quantity", "boundingBox": [847, 1038, 1072, 1038, 1072, 1087, 847, + 1087]}, {"rowIndex": 0, "columnIndex": 2, "text": "Unit Price", "boundingBox": + [1072, 1038, 1309, 1038, 1309, 1087, 1072, 1087]}, {"rowIndex": 0, "columnIndex": + 3, "text": "Total", "boundingBox": [1309, 1038, 1544, 1038, 1544, 1087, 1309, + 1087]}, {"rowIndex": 1, "columnIndex": 0, "text": "Bindings", "boundingBox": + [156, 1087, 847, 1087, 847, 1128, 156, 1128]}, {"rowIndex": 1, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1087, 1072, 1087, 1072, 1128, 847, 1128]}, + {"rowIndex": 1, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1087, + 1309, 1087, 1309, 1128, 1072, 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, + {"rowIndex": 2, "columnIndex": 0, "text": "Covers Small", "boundingBox": [156, + 1128, 847, 1128, 847, 1172, 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, + "text": "20", "boundingBox": [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, + {"rowIndex": 2, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1128, + 1309, 1128, 1309, 1172, 1072, 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, + {"rowIndex": 3, "columnIndex": 0, "text": "Feather Bookmark", "boundingBox": + [156, 1172, 847, 1172, 847, 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, + {"rowIndex": 3, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1172, + 1309, 1172, 1309, 1216, 1072, 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, + {"rowIndex": 4, "columnIndex": 0, "text": "Copper Swirl Marker", "boundingBox": + [156, 1216, 847, 1216, 847, 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, + {"rowIndex": 4, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1216, + 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], + "documentResults": [{"docType": "custom:2c5bc7ae-9ed2-451a-b6a7-9170f8196f91", + "modelId": "2c5bc7ae-9ed2-451a-b6a7-9170f8196f91", "pageRange": [1, 1], "fields": + {"Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, + 1643.0], "confidence": 0.994}, "CompanyAddress": {"type": "string", "valueString": + "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder + City, CO 92848", "page": 1, "boundingBox": [273.0, 685.0, 565.0, 685.0, 565.0, + 751.0, 273.0, 751.0], "confidence": 1.0}, "CompanyPhoneNumber": {"type": "string", + "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0], "confidence": 1.0}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, + 378.0], "confidence": 0.89}, "Signature": {"type": "string", "valueString": + "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [489.0, + 1670.0, 765.0, 1670.0, 765.0, 1708.0, 489.0, 1708.0], "confidence": 0.998}, + "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": + "accounts@herolimited.com", "page": 1, "boundingBox": [164.0, 479.0, 478.0, + 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": 1.0}, "Subtotal": {"type": + "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": + [1426.0, 1572.0, 1531.0, 1572.0, 1531.0, 1599.0, 1426.0, 1599.0], "confidence": + 0.984}, "PurchaseOrderNumber": {"type": "string", "valueString": "948284", + "text": "948284", "page": 1, "boundingBox": [1277.0, 461.0, 1376.0, 461.0, + 1376.0, 489.0, 1277.0, 489.0], "confidence": 0.94}, "Website": {"type": "string", + "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": + 1, "boundingBox": [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0], + "confidence": 0.95}, "Quantity": {"type": "number", "text": "20", "page": + 1, "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], + "confidence": 0.962}, "Total": {"type": "string", "valueString": "$144.00", + "text": "$144.00", "page": 1, "boundingBox": [1427.0, 1669.0, 1529.0, 1669.0, + 1529.0, 1698.0, 1427.0, 1698.0], "confidence": 0.991}, "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": - 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], - "confidence": 1.0}, "CompanyName": {"type": "string", "valueString": "Higgly - Wiggly Books", "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, - 646.0, 629.0, 646.0, 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "Website": - {"type": "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", - "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, - 419.0], "confidence": 1.0}, "Signature": {"type": "string", "valueString": - "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, - 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, - "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", - "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, - 1429.0, 1599.0], "confidence": 1.0}, "Total": {"type": "string", "valueString": - "$144.00", "text": "$144.00", "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, - 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], "confidence": 1.0}, "Tax": {"type": - "string", "valueString": "$4.00", "text": "$4.00", "page": 1, "boundingBox": - [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": - 1.0}}}], "errors": []}}' + 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, 639.0, 349.0, 639.0], + "confidence": 0.93}, "Merchant": {"type": "string", "valueString": "Hero Limited", + "text": "Hero Limited", "page": 1, "boundingBox": [620.0, 205.0, 1075.0, 205.0, + 1075.0, 266.0, 620.0, 266.0], "confidence": 0.97}, "DatedAs": {"type": "string", + "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], "confidence": + 0.99}, "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", + "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [375.0, 646.0, 629.0, + 646.0, 629.0, 679.0, 375.0, 679.0], "confidence": 0.95}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: - apim-request-id: 42a844f5-b1a4-449b-be18-5da9f70432e4 - content-length: '5839' + apim-request-id: 920f126d-6f57-4134-a32c-9bf33ac5ffe4 + content-length: '6054' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:02 GMT + date: Mon, 14 Sep 2020 19:50:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '36' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a971b699-69e3-4397-a985-b3d48cf3ca3d/analyzeresults/0f1309ed-3361-4b5f-8744-caf01b71bb59 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c5bc7ae-9ed2-451a-b6a7-9170f8196f91/analyzeresults/1da2c8a6-0ba3-4758-9b25-70346f208926 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml index d8db6cc2e990..c7d8eb08439a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_labeled_blank_page.yaml @@ -3,91 +3,69 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 0a3cd333-decd-4dfa-9f6b-a0fc27867dbb + apim-request-id: 53c251fd-533e-48c7-93e9-fb595c281e8e content-length: '0' - date: Fri, 10 Jul 2020 18:49:02 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95 + date: Mon, 14 Sep 2020 19:50:34 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '37' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", "status": - "creating", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": - "2020-07-10T18:49:03Z"}}' + string: '{"modelInfo": {"modelId": "d667110c-8e75-4d67-aa0e-ba39ab851a24", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:50:34Z", + "lastUpdatedDateTime": "2020-09-14T19:50:37Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: f3092d2c-dd31-4ceb-9908-c30aa860474d + apim-request-id: 587c6dcf-4867-4f33-84be-b8ea326c6c29 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:07 GMT + date: Mon, 14 Sep 2020 19:50:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", "status": - "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": - "2020-07-10T18:49:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' - headers: - apim-request-id: df8acdfd-dc79-4c68-871e-59a6e2bd1e8d - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:13 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -542,79 +520,81 @@ interactions: OUJBMDhFRkVFNjYyMDE+XSAvUHJldiAyNDg2OC9YUmVmU3RtIDI0NTg2Pj4NCnN0YXJ0eHJlZg0K MjU0ODQNCiUlRU9G headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: cfed12b8-e0f4-41fe-9849-80bb449ef755 + apim-request-id: 0a3e106b-fbe8-4401-8aae-cc9e4d1389fd content-length: '0' - date: Fri, 10 Jul 2020 18:49:14 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e + date: Mon, 14 Sep 2020 19:50:39 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyzeresults/c8a05ce7-b29e-4d7c-b722-91f41d0fafda strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '958' + x-envoy-upstream-service-time: '47' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyzeresults/c8a05ce7-b29e-4d7c-b722-91f41d0fafda response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:14Z", - "lastUpdatedDateTime": "2020-07-10T18:49:17Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:50:39Z", + "lastUpdatedDateTime": "2020-09-14T19:50:43Z"}' headers: - apim-request-id: e0f72c84-cec7-4ee1-af35-b64dc3bf9ea4 + apim-request-id: e9b85be2-464c-4c55-8403-5b0912df1c7f content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:19 GMT + date: Mon, 14 Sep 2020 19:50:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyzeresults/c8a05ce7-b29e-4d7c-b722-91f41d0fafda - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyzeresults/c8a05ce7-b29e-4d7c-b722-91f41d0fafda response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:14Z", - "lastUpdatedDateTime": "2020-07-10T18:49:20Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.4967, "height": 10.9967, "unit": "inch"}], "pageResults": [{"page": 1, "tables": - []}], "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], - "fields": {"CompanyAddress": null, "CompanyName": null, "CompanyPhoneNumber": - null, "DatedAs": null, "Email": null, "Merchant": null, "PhoneNumber": null, - "PurchaseOrderNumber": null, "Quantity": null, "Signature": null, "Subtotal": - null, "Tax": null, "Total": null, "VendorName": null, "Website": null}}], - "errors": []}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:50:39Z", + "lastUpdatedDateTime": "2020-09-14T19:50:49Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch"}], "pageResults": [{"page": 1, "tables": []}], "documentResults": + [{"docType": "custom:d667110c-8e75-4d67-aa0e-ba39ab851a24", "modelId": "d667110c-8e75-4d67-aa0e-ba39ab851a24", + "pageRange": [1, 1], "fields": {"CompanyAddress": null, "CompanyName": null, + "CompanyPhoneNumber": null, "DatedAs": null, "Email": null, "Merchant": null, + "PhoneNumber": null, "PurchaseOrderNumber": null, "Quantity": null, "Signature": + null, "Subtotal": null, "Tax": null, "Total": null, "VendorName": null, "Website": + null}, "docTypeConfidence": 1.0}], "errors": []}}' headers: - apim-request-id: fde38e92-e37b-4216-9c3d-0deaf194d0cc - content-length: '632' + apim-request-id: 54b78f75-083a-4de0-a175-42dcb28f95ba + content-length: '721' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:25 GMT + date: Mon, 14 Sep 2020 19:50:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '166' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/68df8c7a-51dc-4124-9374-b7f966788c95/analyzeresults/c000c408-44bb-45cd-a807-4ee0b99afa4e + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d667110c-8e75-4d67-aa0e-ba39ab851a24/analyzeresults/c8a05ce7-b29e-4d7c-b722-91f41d0fafda version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml index b9e9d515de91..b57d2b7053e5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_labeled.yaml @@ -3,93 +3,72 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 6debd19d-9984-4a94-bcf1-3f436c4e0437 + apim-request-id: d9188751-3c85-43f9-81af-10be9d4e3d43 content-length: '0' - date: Fri, 10 Jul 2020 18:47:00 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908 + date: Mon, 14 Sep 2020 19:51:06 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '118' + x-envoy-upstream-service-time: '40' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "352ce435-42d7-4ccc-b4d6-b1f516502908", "status": - "creating", "createdDateTime": "2020-07-10T18:47:00Z", "lastUpdatedDateTime": - "2020-07-10T18:47:00Z"}}' + string: '{"modelInfo": {"modelId": "cdfd1210-f638-4097-9270-5ed07448c954", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:51:06Z", + "lastUpdatedDateTime": "2020-09-14T19:51: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": []}}' headers: - apim-request-id: 57654de7-0de2-49ca-9dca-ab16daedd9ff + apim-request-id: 6c38a1ea-2f31-42c8-ab78-afe7617680bc content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:05 GMT + date: Mon, 14 Sep 2020 19:51:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '148' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "352ce435-42d7-4ccc-b4d6-b1f516502908", "status": - "ready", "createdDateTime": "2020-07-10T18:47:00Z", "lastUpdatedDateTime": - "2020-07-10T18:47:07Z"}, "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": []}}' - headers: - apim-request-id: 06bb9101-0028-429b-b77f-d64eb2686ffe - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:10 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -2005,205 +1984,218 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: d03848a4-d408-4801-9d59-0700eca9d65a + apim-request-id: b7505124-f531-4e02-a307-bc9c5cd49fd2 content-length: '0' - date: Fri, 10 Jul 2020 18:47:11 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 + date: Mon, 14 Sep 2020 19:51:11 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyzeresults/a76acdd2-606a-47f0-96c9-0b3146cca965 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '225' + x-envoy-upstream-service-time: '48' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyzeresults/a76acdd2-606a-47f0-96c9-0b3146cca965 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:47:11Z", - "lastUpdatedDateTime": "2020-07-10T18:47:12Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:51:12Z", + "lastUpdatedDateTime": "2020-09-14T19:51:15Z"}' headers: - apim-request-id: 7c726d92-8eef-4131-81ec-78a692c5dd94 + apim-request-id: 714c40b3-04ed-4958-b236-16419fea6713 content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:16 GMT + date: Mon, 14 Sep 2020 19:51:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyzeresults/a76acdd2-606a-47f0-96c9-0b3146cca965 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyzeresults/a76acdd2-606a-47f0-96c9-0b3146cca965 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:11Z", - "lastUpdatedDateTime": "2020-07-10T18:47:19Z", "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": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:51:12Z", + "lastUpdatedDateTime": "2020-09-14T19:51:22Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, + 1.1035, 10.9943, 0, 10.9943], "confidence": 0.881, "state": "unselected"}, + {"boundingBox": [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], + "confidence": 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, + 0.0263, 1.0499, 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, + {"boundingBox": [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "selectionMarks": [{"boundingBox": [0, + 9.877, 1.1039, 9.877, 1.1039, 10.9946, 0, 10.9946], "confidence": 0.881, "state": + "unselected"}, {"boundingBox": [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, + 0, 10.9975], "confidence": 0.833, "state": "unselected"}, {"boundingBox": + [0, 0.0268, 1.048, 0.0268, 1.048, 1.0107, 0, 1.0107], "confidence": 0.6, "state": + "unselected"}, {"boundingBox": [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, + 11, 6.8221, 11], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5061, 9.9417, 8.4988, 9.9417, 8.4988, 11, 7.5061, 11], "confidence": 0.553, + "state": "unselected"}]}], "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": {"CustomerName": {"type": "string", "valueString": - "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, - 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, 1.595, 6.015000000000001, - 1.595], "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}, "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}, "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}, "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}, "FirstItem": {"type": "string", "valueString": + "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:cdfd1210-f638-4097-9270-5ed07448c954", "modelId": "cdfd1210-f638-4097-9270-5ed07448c954", + "pageRange": [1, 3], "fields": {"Merchant": {"type": "string", "valueString": + "B", "text": "B", "page": 3, "boundingBox": [1.685, 1.125, 1.765, 1.125, 1.765, + 1.245, 1.685, 1.245], "confidence": 0.5}, "Tip": {"type": "string", "valueString": + "100.00", "text": "100.00", "page": 1, "boundingBox": [5.81, 5.345, 6.26, + 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": 1.0}, "FirstQuantity": {"type": + "string", "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.26, + 3.21, 3.32, 3.21, 3.32, 3.32, 3.26, 3.32], "confidence": 1.0}, "CustomerName": + {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", + "page": 1, "boundingBox": [6.015, 1.45, 6.895, 1.45, 6.895, 1.595, 6.015, + 1.595], "confidence": 0.971}, "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}, "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": 0.952}, "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}, "CustomerPhoneNumber": {"type": "string", + "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": + [6.01, 2.12, 6.935, 2.12, 6.935, 2.225, 6.01, 2.225], "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}, "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}, "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}, "CustomerAddress": - {"type": "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 - Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, - 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, - 2.0300000000000002], "confidence": 1.0}, "FirstPrice": {"type": "string", + 3.32, 1.085, 3.32], "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}, "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}, "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}, "Merchant2": - {"type": "string", "valueString": "Company", "text": "Company", "page": 1, + 3.21, 5.78, 3.21, 5.78, 3.32, 5.425, 3.32], "confidence": 1.0}, "Customer2": + {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", + "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, 6.015, 1.595], + "confidence": 0.971}, "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}, "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane + Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": + [6.015, 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, 2.03], "confidence": 1.0}, "Merchant2": + {"type": "string", "valueString": "Company", "text": "Company", "page": 3, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "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}, "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}, "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}, - "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}, "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}, "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}, "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}, "Customer2": {"type": "string", "valueString": - "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, - 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0}}}], - "errors": []}}' + 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.676}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: - apim-request-id: d2297ffb-1b44-4c5a-b0ea-cfef00d22909 - content-length: '9504' + apim-request-id: 5a82a75f-1ada-4cc2-9c64-335e80f8bb03 + content-length: '10168' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:21 GMT + date: Mon, 14 Sep 2020 19:51:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/352ce435-42d7-4ccc-b4d6-b1f516502908/analyzeresults/d89875a5-3d3c-4b41-b08b-d0c9249d3bf0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/cdfd1210-f638-4097-9270-5ed07448c954/analyzeresults/a76acdd2-606a-47f0-96c9-0b3146cca965 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml index bb134a1fbe7f..a3e7cd87b197 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_unlabeled.yaml @@ -3,45 +3,47 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '301' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 12c63e4d-c932-4621-b80d-ff2c6b52a975 + apim-request-id: 5cb01fd3-afac-4fd2-b1ba-da9841724375 content-length: '0' - date: Fri, 10 Jul 2020 18:47:26 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958 + date: Mon, 14 Sep 2020 19:50:55 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '5068' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1889bc8c-fbf9-4d1e-92af-67e2f1abb958", "status": - "creating", "createdDateTime": "2020-07-10T18:47:21Z", "lastUpdatedDateTime": - "2020-07-10T18:47:21Z"}}' + string: '{"modelInfo": {"modelId": "a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b", "status": + "creating", "createdDateTime": "2020-09-14T19:50:55Z", "lastUpdatedDateTime": + "2020-09-14T19:50:55Z"}}' headers: - apim-request-id: 371902fe-5962-43ea-9e1b-e2c472bbcb33 + apim-request-id: 097c1bc4-f3b1-4470-8fb9-85d4c444585c content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:31 GMT + date: Mon, 14 Sep 2020 19:50:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -49,43 +51,115 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1889bc8c-fbf9-4d1e-92af-67e2f1abb958", "status": - "creating", "createdDateTime": "2020-07-10T18:47:21Z", "lastUpdatedDateTime": - "2020-07-10T18:47:21Z"}}' + string: '{"modelInfo": {"modelId": "a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b", "status": + "creating", "createdDateTime": "2020-09-14T19:50:55Z", "lastUpdatedDateTime": + "2020-09-14T19:50:55Z"}}' headers: - apim-request-id: a360ed09-9bd4-4adb-9773-9ab03eec6ef3 + apim-request-id: de9ba8be-db30-4155-b1e6-4e5a109a664e content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:37 GMT + date: Mon, 14 Sep 2020 19:51:05 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '83' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1889bc8c-fbf9-4d1e-92af-67e2f1abb958", "status": - "ready", "createdDateTime": "2020-07-10T18:47:21Z", "lastUpdatedDateTime": - "2020-07-10T18:47:41Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b", "status": + "creating", "createdDateTime": "2020-09-14T19:50:55Z", "lastUpdatedDateTime": + "2020-09-14T19:50:55Z"}}' + headers: + apim-request-id: 1258d0cb-30e9-43af-a2fc-023f69f18183 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:09 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b", "status": + "creating", "createdDateTime": "2020-09-14T19:50:55Z", "lastUpdatedDateTime": + "2020-09-14T19:50:55Z"}}' + headers: + apim-request-id: 5b80a10f-702a-4e93-bd43-584aa4b9e8fc + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:15 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b", "status": + "creating", "createdDateTime": "2020-09-14T19:50:55Z", "lastUpdatedDateTime": + "2020-09-14T19:50:55Z"}}' + headers: + apim-request-id: e437f53d-e51d-416b-9860-32237afd89ca + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:20 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b", "status": + "ready", "createdDateTime": "2020-09-14T19:50:55Z", "lastUpdatedDateTime": + "2020-09-14T19:51:21Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -95,17 +169,17 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: e4050f03-61b2-4bc7-9077-38b78fc8d82b + apim-request-id: 5d297e6d-906e-43a2-8d79-2c9b0069e388 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:43 GMT + date: Mon, 14 Sep 2020 19:51:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2208' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -2021,293 +2095,314 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 5c1dcb4f-88c4-4181-ae39-8d58660af3ae + apim-request-id: 0eaf6d9f-c5e0-4159-8b35-203d1194f718 content-length: '0' - date: Fri, 10 Jul 2020 18:47:46 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 + date: Mon, 14 Sep 2020 19:51:25 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1558' + x-envoy-upstream-service-time: '50' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:51:26Z", "lastUpdatedDateTime": + "2020-09-14T19:51:26Z", "analyzeResult": null}' + headers: + apim-request-id: 8e0f3f43-b79c-4b10-ba43-75cd9aa36d6f + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:31 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '18' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:47:46Z", "lastUpdatedDateTime": - "2020-07-10T18:47:48Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:51:26Z", "lastUpdatedDateTime": + "2020-09-14T19:51:26Z", "analyzeResult": null}' headers: - apim-request-id: 8efbdbd6-8a9d-4b24-92de-983020892362 + apim-request-id: 77159ad5-51d8-49c8-8034-ae26002ac70c content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:51 GMT + date: Mon, 14 Sep 2020 19:51:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:46Z", - "lastUpdatedDateTime": "2020-07-10T18:47:53Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:51:26Z", + "lastUpdatedDateTime": "2020-09-14T19:51:38Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "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": + "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Bilbo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "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], + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "100.00", + "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, + 5.5646, 6.3986, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, + 6.7983, 1.7472, 6.7983], "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": 2, "keyValuePairs": [], "tables": [], - "clusterId": null}, {"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], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, + 3.3177, 3.2597, 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "2", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, + 3.3194, 3.5309, 3.2542, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "14.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, + 5.7792, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, + 3.3236, 3.7413, 3.2486, 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "15.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, + 5.7792, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, + 3.3208, 3.951, 3.2597, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, + 5.7806, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "6", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, + 3.3222, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, + 5.7806, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "8", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "22.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, + 5.7806, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"page": + 3, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, + 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "1000.00", + "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, + 5.5646, 6.4833, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, + 6.7983, 1.7472, 6.7983], "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": []}}' + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, + 3.3191, 3.2597, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, + 3.4069, 3.5323, 3.2542, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "140.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, + 3.4069, 3.7424, 3.2486, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "150.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, + 3.4069, 3.9524, 3.2597, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, + 5.8639, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, + 3.4069, 4.1628, 3.2486, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, + 5.8639, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "60", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, + 3.4069, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, + 5.8639, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "80", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, + 3.4069, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "220.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, + 5.8639, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 828f4bf2-a72a-49a8-825a-0014a7a32126 - content-length: '17652' + apim-request-id: 114185a3-8fd3-4162-9cd1-5865e929ebb9 + content-length: '17142' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:47:55 GMT + date: Mon, 14 Sep 2020 19:51:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1889bc8c-fbf9-4d1e-92af-67e2f1abb958/analyzeresults/a959f008-095e-4534-9c5e-8f5e45d109c6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0ca5c18-e01e-425d-bfda-e67eb5ca8e9b/analyzeresults/9884f99a-b305-4ef5-bf54-80cc8ba79737 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml index 7a611b70441a..df3a02aa0958 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -3,326 +3,64 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '299' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 601cc006-64c3-4a2c-bfb8-46d7b9601590 + apim-request-id: 771068bf-29c5-4436-a9da-6f065df2abf7 content-length: '0' - date: Fri, 10 Jul 2020 18:47:56 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f + date: Mon, 14 Sep 2020 19:50:50 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '37' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 5aa18d0c-aee0-4c2f-a9ee-125e55bc58cd - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:02 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 7fae0f89-9fc9-4fe5-8696-4b212868fb5e - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:07 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 4c98cf71-aac7-4bd0-82b7-a74752482651 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:11 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 79443883-d6cf-4d21-a56e-83d61bb6f5b4 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 0a0526f0-6b9c-4977-aaee-72006b700002 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:22 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 04a2e453-c5bf-4b50-90b5-9517e7b6fd9e - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:27 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 54064477-936a-4f83-a4a9-2126a4df85d0 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:32 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: 39e2715e-4a16-4fc3-9dcb-e59a9cd88f2d - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:37 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: f7df3ba7-bd5b-47a7-9d64-84b2ccd7d6a7 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:42 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' - headers: - apim-request-id: b5f71559-9a72-423f-9c68-3db8f336ae35 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:53 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '5195' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "creating", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:47:57Z"}}' + string: '{"modelInfo": {"modelId": "b346ec91-cf61-4071-a972-00934509cb3a", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:50:50Z", + "lastUpdatedDateTime": "2020-09-14T19:50:53Z"}, "trainResult": {"averageModelAccuracy": + 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": + "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, + {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": + "multi4.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi5.pdf", + "pages": 2, "status": "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": + 1.0}, {"fieldName": "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", + "accuracy": 1.0}, {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", + "accuracy": 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 9a5bf0a7-de13-43fd-a0b7-9e1c1a7d0035 + apim-request-id: ed63d8ed-83bb-4807-a5cb-722bbd94e995 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:48:58 GMT + date: Mon, 14 Sep 2020 19:50:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '151' + x-envoy-upstream-service-time: '36' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "e017ea25-7d33-4da1-9ee6-847ce315bc2f", "status": - "ready", "createdDateTime": "2020-07-10T18:47:57Z", "lastUpdatedDateTime": - "2020-07-10T18:48:58Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": - [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": - "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", - "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": - 2, "status": "succeeded"}, {"documentName": "multi5.pdf", "pages": 2, "status": - "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": 1.0}, {"fieldName": - "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", "accuracy": 1.0}, - {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", "accuracy": - 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", "accuracy": - 1.0}], "errors": []}}' - headers: - apim-request-id: 4c1dceea-b718-487c-a67b-a63a60d336b6 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:03 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a?includeKeys=true - request: body: !!binary | JVBERi0xLjcKCjQgMCBvYmoKKElkZW50aXR5KQplbmRvYmoKNSAwIG9iagooQWRvYmUpCmVuZG9i @@ -12811,98 +12549,123 @@ interactions: MCBuDQp0cmFpbGVyCjw8Ci9JbmZvIDQ5IDAgUgovUm9vdCAxIDAgUgovU2l6ZSA1MAo+PgpzdGFy dHhyZWYKNzEwNTI1CiUlRU9GCg== headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: b047b3a5-b111-469b-8ac4-1bd2a46158db + apim-request-id: d6293e29-4958-49af-9575-b91f57b1298e content-length: '0' - date: Fri, 10 Jul 2020 18:49:05 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f + date: Mon, 14 Sep 2020 19:50:57 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '246' + x-envoy-upstream-service-time: '88' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:05Z", - "lastUpdatedDateTime": "2020-07-10T18:49:09Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:50:57Z", + "lastUpdatedDateTime": "2020-09-14T19:51:01Z"}' headers: - apim-request-id: d19c4d1a-77c6-44df-98da-2dc26d8c70d3 + apim-request-id: 7482c030-5c90-42b6-a8cf-f72fcbaf8d3a content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:10 GMT + date: Mon, 14 Sep 2020 19:51:02 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '44' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:05Z", - "lastUpdatedDateTime": "2020-07-10T18:49:14Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, - 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": - [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, - 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, - 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": - 1}]}, {"boundingBox": [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, - 2.005], "text": "Vendor Registration", "words": [{"boundingBox": [2.2268, - 1.5733, 3.703, 1.5733, 3.703, 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": - 1}, {"boundingBox": [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, - 2.005], "text": "Registration", "confidence": 1}]}, {"boundingBox": [1.0078, - 2.5846, 7.0776, 2.5846, 7.0776, 2.7293, 1.0078, 2.7293], "text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "words": [{"boundingBox": [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, - 1.0078, 2.7013], "text": "Contoso", "confidence": 1}, {"boundingBox": [1.6125, - 2.5856, 1.843, 2.5856, 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": - 1}, {"boundingBox": [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, - 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [2.7122, - 2.5852, 2.9307, 2.5852, 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": - 1}, {"boundingBox": [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, - 2.7013], "text": "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, - 3.4704, 2.5852, 3.4704, 2.7013, 3.1987, 2.7013], "text": "held", "confidence": - 1}, {"boundingBox": [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], - "text": "on", "confidence": 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, - 4.0422, 2.7293, 3.7498, 2.7293], "text": "May", "confidence": 1}, {"boundingBox": - [4.0877, 2.5914, 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": - "28-29,", "confidence": 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, - 4.884, 2.7017, 4.5586, 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": - [4.9351, 2.6014, 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": - "at", "confidence": 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, - 2.7013, 5.1033, 2.7013], "text": "the", "confidence": 1}, {"boundingBox": - [5.3787, 2.5852, 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": - "Elm", "confidence": 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, - 6.4263, 2.7013, 5.6624, 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": - [6.4796, 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": - "Center", "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, - 7.0776, 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:50:57Z", + "lastUpdatedDateTime": "2020-09-14T19:51:04Z"}' + headers: + apim-request-id: 13940765-3711-44d1-ba07-9bb13fabb7c4 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:06 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:50:57Z", + "lastUpdatedDateTime": "2020-09-14T19:51:07Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, + 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": + [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": + "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, + 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": + [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, 2.005], "text": "Vendor + Registration", "words": [{"boundingBox": [2.2268, 1.5733, 3.703, 1.5733, 3.703, + 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": 1}, {"boundingBox": + [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, 2.005], "text": "Registration", + "confidence": 1}]}, {"boundingBox": [1.0078, 2.5846, 7.0776, 2.5846, 7.0776, + 2.7293, 1.0078, 2.7293], "text": "Contoso Ltd. Conference will be held on + May 28-29, 2020 at the Elm Conference Center in", "words": [{"boundingBox": + [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, 1.0078, 2.7013], "text": + "Contoso", "confidence": 1}, {"boundingBox": [1.6125, 2.5856, 1.843, 2.5856, + 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": 1}, {"boundingBox": + [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, 2.7013], "text": + "Conference", "confidence": 1}, {"boundingBox": [2.7122, 2.5852, 2.9307, 2.5852, + 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": 1}, {"boundingBox": + [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, 2.7013], "text": + "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, 3.4704, 2.5852, 3.4704, + 2.7013, 3.1987, 2.7013], "text": "held", "confidence": 1}, {"boundingBox": + [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], "text": "on", "confidence": + 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, 4.0422, 2.7293, 3.7498, + 2.7293], "text": "May", "confidence": 1}, {"boundingBox": [4.0877, 2.5914, + 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": "28-29,", "confidence": + 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, 4.884, 2.7017, 4.5586, + 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": [4.9351, 2.6014, + 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": "at", "confidence": + 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, 2.7013, 5.1033, + 2.7013], "text": "the", "confidence": 1}, {"boundingBox": [5.3787, 2.5852, + 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": "Elm", "confidence": + 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, 6.4263, 2.7013, 5.6624, + 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [6.4796, + 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": "Center", + "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, 7.0776, + 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": [1.014, 2.8029, 7.3457, 2.8029, 7.3457, 2.9478, 1.014, 2.9478], "text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "words": [{"boundingBox": [1.014, 2.8036, 1.4242, 2.8036, 1.4242, @@ -13188,35 +12951,39 @@ interactions: 8.6811], "text": "guide", "confidence": 1}]}, {"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, 3.2075, 8.8563], "text": "advertisements", "words": [{"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, - 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, - 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": [6.1276, - 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": "Vendor", - "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, 7.4833, - 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": - [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, 2.3315], "text": "Vendor - Details:", "words": [{"boundingBox": [1.0044, 2.1778, 1.6496, 2.1778, 1.6496, - 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": 1}, {"boundingBox": - [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], "text": "Details:", - "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, 2.7686, 3.3477, - 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge Video", "words": - [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, 1.0065, 2.9126], - "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, 2.7764, 2.1376, - 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": 1}, - {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, 2.9128], - "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, 2.7689, 3.3477, - 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", "confidence": 1}]}, - {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, 3.2428, 1.0065, 3.2428], - "text": "Contact: Jamie@southridgevideo.com", "words": [{"boundingBox": [1.0065, - 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], "text": "Contact:", - "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, 3.0986, 3.5766, - 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", "confidence": - 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, 3.5744, 1.0115, - 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": [1.0115, - 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": "Preferred", - "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, 2.2978, - 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": + 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}], "selectionMarks": + [{"boundingBox": [0, 10.2725, 1.0372, 10.2725, 1.0372, 10.9925, 0, 10.9925], + "confidence": 0.69, "state": "unselected"}, {"boundingBox": [0, 10.6019, 1.5095, + 10.6019, 1.5095, 10.9983, 0, 10.9983], "confidence": 0.69, "state": "unselected"}, + {"boundingBox": [2.9381, 6.9634, 3.0388, 6.9634, 3.0388, 7.0736, 2.9381, 7.0736], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, + 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": + [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, + 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, + 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": + 1}]}, {"boundingBox": [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, + 2.3315], "text": "Vendor Details:", "words": [{"boundingBox": [1.0044, 2.1778, + 1.6496, 2.1778, 1.6496, 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": + 1}, {"boundingBox": [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], + "text": "Details:", "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, + 2.7686, 3.3477, 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge + Video", "words": [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, + 1.0065, 2.9126], "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, + 2.7764, 2.1376, 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": + 1}, {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, + 2.9128], "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, + 2.7689, 3.3477, 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", + "confidence": 1}]}, {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, + 3.2428, 1.0065, 3.2428], "text": "Contact: Jamie@southridgevideo.com", "words": + [{"boundingBox": [1.0065, 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], + "text": "Contact:", "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, + 3.0986, 3.5766, 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", + "confidence": 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, + 3.5744, 1.0115, 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": + [1.0115, 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": + "Preferred", "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, + 2.2978, 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": [2.3557, 3.4302, 2.6542, 3.4302, 2.6542, 3.5463, 2.3557, 3.5463], "text": "Gold", "confidence": 1}]}, {"boundingBox": [1.0052, 3.7537, 2.4783, 3.7537, 2.4783, 3.9043, 1.0052, 3.9043], "text": "Special Requests: N/a", "words": @@ -13224,12 +12991,17 @@ interactions: "text": "Special", "confidence": 1}, {"boundingBox": [1.5342, 3.7684, 2.1899, 3.7684, 2.1899, 3.9043, 1.5342, 3.9043], "text": "Requests:", "confidence": 1}, {"boundingBox": [2.254, 3.7537, 2.4783, 3.7537, 2.4783, 3.8976, 2.254, - 3.8976], "text": "N/a", "confidence": 1}]}]}], "pageResults": [{"page": 1, - "tables": [{"rows": 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Package", "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, - 4.8617, 1.0033, 4.8617], "elements": ["#/readResults/0/lines/10/words/0"]}, - {"rowIndex": 0, "columnIndex": 1, "text": "Included", "boundingBox": [2.625, - 4.6517, 5.75, 4.6517, 5.75, 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, + 3.8976], "text": "N/a", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0.0024, 9.869, 1.0826, 9.869, 1.0826, 10.9955, 0.0024, 10.9955], "confidence": + 0.833, "state": "unselected"}, {"boundingBox": [7.6562, 1.0157, 8.5, 1.0157, + 8.5, 2.8293, 7.6562, 2.8293], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [0.0008, 10.4758, 1.8164, 10.4758, 1.8164, 10.9978, 0.0008, 10.9978], "confidence": + 0.6, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Package", + "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, 4.8617, 1.0033, 4.8617], + "elements": ["#/readResults/0/lines/10/words/0"]}, {"rowIndex": 0, "columnIndex": + 1, "text": "Included", "boundingBox": [2.625, 4.6517, 5.75, 4.6517, 5.75, + 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 2, "text": "Price", "boundingBox": [5.75, 4.6517, 7.4967, 4.6517, 7.4967, 4.8617, 5.75, 4.8617], "elements": ["#/readResults/0/lines/12/words/0"]}, {"rowIndex": 1, "columnIndex": 0, "text": "Gold Sponsor", "boundingBox": [1.0033, @@ -13318,39 +13090,39 @@ interactions: "#/readResults/0/lines/55/words/3", "#/readResults/0/lines/55/words/4"]}, {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, - {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"Full": {"type": "string", "valueString": - "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, - 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}, + {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:b346ec91-cf61-4071-a972-00934509cb3a", + "modelId": "b346ec91-cf61-4071-a972-00934509cb3a", "pageRange": [1, 2], "fields": + {"CompanyName": {"type": "string", "valueString": "Southridge Video", "text": + "Southridge Video", "page": 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, + 2.915, 2.19, 2.915], "confidence": 1.0, "elements": ["#/readResults/1/lines/2/words/2", + "#/readResults/1/lines/2/words/3"]}, "Half": {"type": "string", "valueString": + "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, 6.16, 8.305, + 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": ["#/readResults/0/lines/53/words/0"]}, "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, - "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": - 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, - "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", - "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, - 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, + "confidence": 1.0, "elements": ["#/readResults/0/lines/27/words/0"]}, "Contact": + {"type": "string", "valueString": "Jamie@southridgevideo.com", "text": "Jamie@southridgevideo.com", + "page": 2, "boundingBox": [1.62, 3.1, 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], + "confidence": 1.0, "elements": ["#/readResults/1/lines/3/words/1"]}, "Bronze": + {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": + [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, + "elements": ["#/readResults/0/lines/37/words/0"]}, "Full": {"type": "string", + "valueString": "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, + 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/readResults/0/lines/46/words/0"]}, "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Half": - {"type": "string", "valueString": "$350", "text": "$350", "page": 1, "boundingBox": - [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "CompanyName": {"type": - "string", "valueString": "Southridge Video", "text": "Southridge Video", "page": - 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}}}], - "errors": []}}' + 1.0, "elements": ["#/readResults/0/lines/16/words/0"]}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: - apim-request-id: d240057d-ca8d-4b96-8ebf-df5c7c98e70a - content-length: '34159' + apim-request-id: 5757d001-8861-4835-a07d-7d9d5a2a6794 + content-length: '34822' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:16 GMT + date: Mon, 14 Sep 2020 19:51:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '920' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/e017ea25-7d33-4da1-9ee6-847ce315bc2f/analyzeresults/5566e00e-0a09-449d-a735-7f8597edf23f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b346ec91-cf61-4071-a972-00934509cb3a/analyzeresults/9a11b363-83b8-4c31-95fd-16efff9be8d8 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index affc73c7c72d..5e7080ac8eba 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -3,89 +3,139 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 2b063f1c-1a9b-4f96-aeb7-f7fefa97fccc + apim-request-id: 5b9e3ad8-eb10-4283-8df9-02168dea3c4d content-length: '0' - date: Fri, 10 Jul 2020 18:49:17 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94 + date: Mon, 14 Sep 2020 19:51:12 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '72' + x-envoy-upstream-service-time: '41' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "75e0875a-d75b-421e-b113-a5c2b536ca94", "status": - "creating", "createdDateTime": "2020-07-10T18:49:17Z", "lastUpdatedDateTime": - "2020-07-10T18:49:17Z"}}' + string: '{"modelInfo": {"modelId": "208757b6-34ba-4e01-98dd-4624ae384e16", "status": + "creating", "createdDateTime": "2020-09-14T19:51:13Z", "lastUpdatedDateTime": + "2020-09-14T19:51:13Z"}}' headers: - apim-request-id: 2fb3282b-0206-4321-988d-3604257e5dda + apim-request-id: 173be977-4e33-49ea-936e-0c79f884e1dc content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:22 GMT + date: Mon, 14 Sep 2020 19:51:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "75e0875a-d75b-421e-b113-a5c2b536ca94", "status": - "creating", "createdDateTime": "2020-07-10T18:49:17Z", "lastUpdatedDateTime": - "2020-07-10T18:49:17Z"}}' + string: '{"modelInfo": {"modelId": "208757b6-34ba-4e01-98dd-4624ae384e16", "status": + "creating", "createdDateTime": "2020-09-14T19:51:13Z", "lastUpdatedDateTime": + "2020-09-14T19:51:13Z"}}' headers: - apim-request-id: 7757fc72-a81c-4d5d-a78f-abdaa6cb3a0e + apim-request-id: 8b53368a-425c-4ddf-ab0a-eb928795dcae content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:27 GMT + date: Mon, 14 Sep 2020 19:51:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "75e0875a-d75b-421e-b113-a5c2b536ca94", "status": - "ready", "createdDateTime": "2020-07-10T18:49:17Z", "lastUpdatedDateTime": - "2020-07-10T18:49:31Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "208757b6-34ba-4e01-98dd-4624ae384e16", "status": + "creating", "createdDateTime": "2020-09-14T19:51:13Z", "lastUpdatedDateTime": + "2020-09-14T19:51:13Z"}}' + headers: + apim-request-id: 0fff8d49-2090-4672-9945-9603f1fcf118 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:27 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '15' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "208757b6-34ba-4e01-98dd-4624ae384e16", "status": + "creating", "createdDateTime": "2020-09-14T19:51:13Z", "lastUpdatedDateTime": + "2020-09-14T19:51:13Z"}}' + headers: + apim-request-id: 31e0d596-8f53-46fb-ae89-68bbafeed478 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:33 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '23' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "208757b6-34ba-4e01-98dd-4624ae384e16", "status": + "ready", "createdDateTime": "2020-09-14T19:51:13Z", "lastUpdatedDateTime": + "2020-09-14T19:51:38Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -100,17 +150,17 @@ interactions: "multi5.pdf", "pages": 2, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 7346a4a4-9248-46a7-bb23-c666718d21fb + apim-request-id: 0dd94499-5c2b-4cc3-bf3d-2fd158d20a77 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:32 GMT + date: Mon, 14 Sep 2020 19:51:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16?includeKeys=true - request: body: !!binary | JVBERi0xLjcKCjQgMCBvYmoKKElkZW50aXR5KQplbmRvYmoKNSAwIG9iagooQWRvYmUpCmVuZG9i @@ -12599,519 +12649,507 @@ interactions: MCBuDQp0cmFpbGVyCjw8Ci9JbmZvIDQ5IDAgUgovUm9vdCAxIDAgUgovU2l6ZSA1MAo+PgpzdGFy dHhyZWYKNzEwNTI1CiUlRU9GCg== headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: c99b1600-0cbb-49aa-8ab1-b858b52b0218 + apim-request-id: 68b4318d-9274-4306-8c4d-27e2578119ed content-length: '0' - date: Fri, 10 Jul 2020 18:49:35 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 + date: Mon, 14 Sep 2020 19:51:40 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1100' + x-envoy-upstream-service-time: '58' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:49:35Z", "lastUpdatedDateTime": - "2020-07-10T18:49:39Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:51:40Z", "lastUpdatedDateTime": + "2020-09-14T19:51:41Z", "analyzeResult": null}' headers: - apim-request-id: 3d941b09-eb30-41a3-bb46-150df1a8ea3e + apim-request-id: 0411e4af-1aac-49c6-ac52-5da16b4f4a74 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:40 GMT + date: Mon, 14 Sep 2020 19:51:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '14' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:51:40Z", "lastUpdatedDateTime": + "2020-09-14T19:51:41Z", "analyzeResult": null}' + headers: + apim-request-id: a5c49a11-d8e0-4b0a-9cfc-b6ca5536df31 + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:50 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:35Z", - "lastUpdatedDateTime": "2020-07-10T18:49:43Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, - 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", - "boundingBox": [6.1236, 1.0014, 6.8694, 1.0014, 6.8694, 1.3056, 6.1236, 1.3056]}, - {"text": "#:", "boundingBox": [6.9264, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.9264, 1.3056]}]}, {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, - 1.0014, 7.4958, 1.3056, 7.1167, 1.3056], "words": [{"text": "121", "boundingBox": - [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, 1.3056, 7.1167, 1.3056]}]}, {"text": - "Vendor Registration", "boundingBox": [2.2181, 1.4417, 6.2736, 1.4417, 6.2736, - 2.05, 2.2181, 2.05], "words": [{"text": "Vendor", "boundingBox": [2.2181, - 1.4417, 3.7111, 1.4417, 3.7111, 2.05, 2.2181, 2.05]}, {"text": "Registration", - "boundingBox": [3.8236, 1.4417, 6.2736, 1.4417, 6.2736, 2.05, 3.8236, 2.05]}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:51:40Z", + "lastUpdatedDateTime": "2020-09-14T19:51:52Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, + 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": "Vendor", + "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, 6.1278, 1.2403]}, + {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, 7.1514, 1.2392, + 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, 1.076, 7.4833, + 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392]}]}, {"text": + "Vendor Registration", "boundingBox": [2.2264, 1.5827, 6.2375, 1.5827, 6.2375, + 1.9739, 2.2264, 1.9739], "words": [{"text": "Vendor", "boundingBox": [2.2264, + 1.5733, 3.7028, 1.5733, 3.7028, 1.9208, 2.2264, 1.9208]}, {"text": "Registration", + "boundingBox": [3.8667, 1.5882, 6.2375, 1.5882, 6.2375, 2.0049, 3.8667, 2.0049]}]}, {"text": "Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm - Conference Center in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, - 2.7444, 1.0, 2.7444], "words": [{"text": "Contoso", "boundingBox": [1.0, 2.5417, - 1.5625, 2.5417, 1.5625, 2.7444, 1.0, 2.7444]}, {"text": "Ltd.", "boundingBox": - [1.5986, 2.5417, 1.8556, 2.5417, 1.8556, 2.7444, 1.5986, 2.7444]}, {"text": - "Conference", "boundingBox": [1.8917, 2.5417, 2.6708, 2.5417, 2.6708, 2.7444, - 1.8917, 2.7444]}, {"text": "will", "boundingBox": [2.7083, 2.5417, 2.9431, - 2.5417, 2.9431, 2.7444, 2.7083, 2.7444]}, {"text": "be", "boundingBox": [2.9792, - 2.5417, 3.15, 2.5417, 3.15, 2.7444, 2.9792, 2.7444]}, {"text": "held", "boundingBox": - [3.1861, 2.5417, 3.4833, 2.5417, 3.4833, 2.7444, 3.1861, 2.7444]}, {"text": - "on", "boundingBox": [3.5222, 2.5417, 3.6972, 2.5417, 3.6972, 2.7444, 3.5222, - 2.7444]}, {"text": "May", "boundingBox": [3.7389, 2.5417, 4.0444, 2.5417, - 4.0444, 2.7444, 3.7389, 2.7444]}, {"text": "28-29,", "boundingBox": [4.0806, - 2.5417, 4.5125, 2.5417, 4.5125, 2.7444, 4.0806, 2.7444]}, {"text": "2020", - "boundingBox": [4.5514, 2.5417, 4.8889, 2.5417, 4.8889, 2.7444, 4.5514, 2.7444]}, - {"text": "at", "boundingBox": [4.9278, 2.5417, 5.0625, 2.5417, 5.0625, 2.7444, - 4.9278, 2.7444]}, {"text": "the", "boundingBox": [5.1, 2.5417, 5.3278, 2.5417, - 5.3278, 2.7444, 5.1, 2.7444]}, {"text": "Elm", "boundingBox": [5.3653, 2.5417, - 5.6167, 2.5417, 5.6167, 2.7444, 5.3653, 2.7444]}, {"text": "Conference", "boundingBox": - [5.6542, 2.5417, 6.4347, 2.5417, 6.4347, 2.7444, 5.6542, 2.7444]}, {"text": - "Center", "boundingBox": [6.4722, 2.5417, 6.9264, 2.5417, 6.9264, 2.7444, - 6.4722, 2.7444]}, {"text": "in", "boundingBox": [6.9653, 2.5417, 7.0903, 2.5417, - 7.0903, 2.7444, 6.9653, 2.7444]}]}, {"text": "Maple City, Massachusetts. The + Conference Center in", "boundingBox": [1.0069, 2.5894, 7.0778, 2.5894, 7.0778, + 2.7043, 1.0069, 2.7043], "words": [{"text": "Contoso", "boundingBox": [1.0069, + 2.592, 1.5556, 2.592, 1.5556, 2.7014, 1.0069, 2.7014]}, {"text": "Ltd.", "boundingBox": + [1.6125, 2.5858, 1.8431, 2.5858, 1.8431, 2.7014, 1.6125, 2.7014]}, {"text": + "Conference", "boundingBox": [1.9, 2.5847, 2.6639, 2.5847, 2.6639, 2.7014, + 1.9, 2.7014]}, {"text": "will", "boundingBox": [2.7125, 2.5851, 2.9306, 2.5851, + 2.9306, 2.7003, 2.7125, 2.7003]}, {"text": "be", "boundingBox": [2.9917, 2.5851, + 3.1417, 2.5851, 3.1417, 2.7014, 2.9917, 2.7014]}, {"text": "held", "boundingBox": + [3.1986, 2.5851, 3.4708, 2.5851, 3.4708, 2.7014, 3.1986, 2.7014]}, {"text": + "on", "boundingBox": [3.5306, 2.6201, 3.6847, 2.6201, 3.6847, 2.7014, 3.5306, + 2.7014]}, {"text": "May", "boundingBox": [3.75, 2.5934, 4.0431, 2.5934, 4.0431, + 2.7292, 3.75, 2.7292]}, {"text": "28-29,", "boundingBox": [4.0875, 2.5913, + 4.5042, 2.5913, 4.5042, 2.7236, 4.0875, 2.7236]}, {"text": "2020", "boundingBox": + [4.5583, 2.5913, 4.8833, 2.5913, 4.8833, 2.7017, 4.5583, 2.7017]}, {"text": + "at", "boundingBox": [4.9347, 2.6014, 5.0569, 2.6014, 5.0569, 2.7014, 4.9347, + 2.7014]}, {"text": "the", "boundingBox": [5.1028, 2.5851, 5.3208, 2.5851, + 5.3208, 2.7014, 5.1028, 2.7014]}, {"text": "Elm", "boundingBox": [5.3792, + 2.5851, 5.6056, 2.5851, 5.6056, 2.7003, 5.3792, 2.7003]}, {"text": "Conference", + "boundingBox": [5.6625, 2.5847, 6.4264, 2.5847, 6.4264, 2.7014, 5.6625, 2.7014]}, + {"text": "Center", "boundingBox": [6.4792, 2.592, 6.9236, 2.592, 6.9236, 2.7014, + 6.4792, 2.7014]}, {"text": "in", "boundingBox": [6.9764, 2.5906, 7.0778, 2.5906, + 7.0778, 2.7003, 6.9764, 2.7003]}]}, {"text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "boundingBox": - [1.0, 2.7597, 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "words": [{"text": - "Maple", "boundingBox": [1.0, 2.7597, 1.4319, 2.7597, 1.4319, 2.9625, 1.0, - 2.9625]}, {"text": "City,", "boundingBox": [1.4681, 2.7597, 1.7694, 2.7597, - 1.7694, 2.9625, 1.4681, 2.9625]}, {"text": "Massachusetts.", "boundingBox": - [1.8056, 2.7597, 2.85, 2.7597, 2.85, 2.9625, 1.8056, 2.9625]}, {"text": "The", - "boundingBox": [2.8875, 2.7597, 3.1403, 2.7597, 3.1403, 2.9625, 2.8875, 2.9625]}, - {"text": "conference", "boundingBox": [3.1764, 2.7597, 3.9375, 2.7597, 3.9375, - 2.9625, 3.1764, 2.9625]}, {"text": "has", "boundingBox": [3.975, 2.7597, 4.2083, - 2.7597, 4.2083, 2.9625, 3.975, 2.9625]}, {"text": "sold", "boundingBox": [4.2458, - 2.7597, 4.5222, 2.7597, 4.5222, 2.9625, 4.2458, 2.9625]}, {"text": "out", - "boundingBox": [4.5625, 2.7597, 4.7917, 2.7597, 4.7917, 2.9625, 4.5625, 2.9625]}, - {"text": "of", "boundingBox": [4.8306, 2.7597, 4.9681, 2.7597, 4.9681, 2.9625, - 4.8306, 2.9625]}, {"text": "its", "boundingBox": [5.0056, 2.7597, 5.1667, - 2.7597, 5.1667, 2.9625, 5.0056, 2.9625]}, {"text": "1,500", "boundingBox": - [5.2028, 2.7597, 5.5819, 2.7597, 5.5819, 2.9625, 5.2028, 2.9625]}, {"text": - "tickets,", "boundingBox": [5.6194, 2.7597, 6.1042, 2.7597, 6.1042, 2.9625, - 5.6194, 2.9625]}, {"text": "with", "boundingBox": [6.1417, 2.7597, 6.4431, - 2.7597, 6.4431, 2.9625, 6.1417, 2.9625]}, {"text": "a", "boundingBox": [6.4806, - 2.7597, 6.5597, 2.7597, 6.5597, 2.9625, 6.4806, 2.9625]}, {"text": "400", - "boundingBox": [6.5972, 2.7597, 6.85, 2.7597, 6.85, 2.9625, 6.5972, 2.9625]}, - {"text": "person", "boundingBox": [6.8875, 2.7597, 7.3583, 2.7597, 7.3583, - 2.9625, 6.8875, 2.9625]}]}, {"text": "waitlist. Vendor applications are being - accepted through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, - 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "words": [{"text": "waitlist.", - "boundingBox": [1.0, 2.9806, 1.5319, 2.9806, 1.5319, 3.1833, 1.0, 3.1833]}, - {"text": "Vendor", "boundingBox": [1.5708, 2.9806, 2.0681, 2.9806, 2.0681, - 3.1833, 1.5708, 3.1833]}, {"text": "applications", "boundingBox": [2.1056, - 2.9806, 2.9208, 2.9806, 2.9208, 3.1833, 2.1056, 3.1833]}, {"text": "are", - "boundingBox": [2.9597, 2.9806, 3.1806, 2.9806, 3.1806, 3.1833, 2.9597, 3.1833]}, - {"text": "being", "boundingBox": [3.2181, 2.9806, 3.5931, 2.9806, 3.5931, - 3.1833, 3.2181, 3.1833]}, {"text": "accepted", "boundingBox": [3.6319, 2.9806, - 4.2458, 2.9806, 4.2458, 3.1833, 3.6319, 3.1833]}, {"text": "through", "boundingBox": - [4.2833, 2.9806, 4.825, 2.9806, 4.825, 3.1833, 4.2833, 3.1833]}, {"text": - "Feb", "boundingBox": [4.8694, 2.9806, 5.1194, 2.9806, 5.1194, 3.1833, 4.8694, - 3.1833]}, {"text": "28,", "boundingBox": [5.1556, 2.9806, 5.3694, 2.9806, - 5.3694, 3.1833, 5.1556, 3.1833]}, {"text": "2020.", "boundingBox": [5.4056, - 2.9806, 5.7875, 2.9806, 5.7875, 3.1833, 5.4056, 3.1833]}, {"text": "Please", - "boundingBox": [5.8264, 2.9806, 6.2611, 2.9806, 6.2611, 3.1833, 5.8264, 3.1833]}, - {"text": "fill", "boundingBox": [6.2986, 2.9806, 6.4667, 2.9806, 6.4667, 3.1833, - 6.2986, 3.1833]}, {"text": "in", "boundingBox": [6.5028, 2.9806, 6.6278, 2.9806, - 6.6278, 3.1833, 6.5028, 3.1833]}, {"text": "the", "boundingBox": [6.6653, - 2.9806, 6.8917, 2.9806, 6.8917, 3.1833, 6.6653, 3.1833]}, {"text": "form", - "boundingBox": [6.9292, 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 6.9292, 3.1833]}]}, - {"text": "below, and attach a check made out to:", "boundingBox": [1.0, 3.2, - 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "words": [{"text": "below,", "boundingBox": - [1.0, 3.2, 1.4569, 3.2, 1.4569, 3.4028, 1.0, 3.4028]}, {"text": "and", "boundingBox": - [1.4944, 3.2, 1.75, 3.2, 1.75, 3.4028, 1.4944, 3.4028]}, {"text": "attach", - "boundingBox": [1.7889, 3.2, 2.2167, 3.2, 2.2167, 3.4028, 1.7889, 3.4028]}, - {"text": "a", "boundingBox": [2.2542, 3.2, 2.3347, 3.2, 2.3347, 3.4028, 2.2542, - 3.4028]}, {"text": "check", "boundingBox": [2.3722, 3.2, 2.7556, 3.2, 2.7556, - 3.4028, 2.3722, 3.4028]}, {"text": "made", "boundingBox": [2.7958, 3.2, 3.1778, - 3.2, 3.1778, 3.4028, 2.7958, 3.4028]}, {"text": "out", "boundingBox": [3.2181, - 3.2, 3.4472, 3.2, 3.4472, 3.4028, 3.2181, 3.4028]}, {"text": "to:", "boundingBox": - [3.4847, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 3.4847, 3.4028]}]}, {"text": "Contoso - Ltd.", "boundingBox": [1.0, 3.5306, 1.8556, 3.5306, 1.8556, 3.7333, 1.0, 3.7333], - "words": [{"text": "Contoso", "boundingBox": [1.0, 3.5306, 1.5625, 3.5306, - 1.5625, 3.7333, 1.0, 3.7333]}, {"text": "Ltd.", "boundingBox": [1.5986, 3.5306, - 1.8556, 3.5306, 1.8556, 3.7333, 1.5986, 3.7333]}]}, {"text": "2345 Dogwood - Lane", "boundingBox": [1.0, 3.75, 2.3847, 3.75, 2.3847, 3.9528, 1.0, 3.9528], - "words": [{"text": "2345", "boundingBox": [1.0, 3.75, 1.3389, 3.75, 1.3389, - 3.9528, 1.0, 3.9528]}, {"text": "Dogwood", "boundingBox": [1.3764, 3.75, 2.0278, - 3.75, 2.0278, 3.9528, 1.3764, 3.9528]}, {"text": "Lane", "boundingBox": [2.0653, - 3.75, 2.3847, 3.75, 2.3847, 3.9528, 2.0653, 3.9528]}]}, {"text": "Birch, Kansas - 98123", "boundingBox": [1.0, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.0, - 4.1722], "words": [{"text": "Birch,", "boundingBox": [1.0, 3.9694, 1.3861, - 3.9694, 1.3861, 4.1722, 1.0, 4.1722]}, {"text": "Kansas", "boundingBox": [1.4236, - 3.9694, 1.8889, 3.9694, 1.8889, 4.1722, 1.4236, 4.1722]}, {"text": "98123", - "boundingBox": [1.925, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.925, 4.1722]}]}, - {"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, - 1.0, 4.6264], "words": [{"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, - 4.3556, 1.5486, 4.6264, 1.0, 4.6264]}]}, {"text": "Package", "boundingBox": - [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, 4.8583], "words": - [{"text": "Package", "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, - 4.8583, 1.0778, 4.8583]}]}, {"text": "Included", "boundingBox": [2.6986, 4.6556, - 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583], "words": [{"text": "Included", - "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583]}]}, - {"text": "Price", "boundingBox": [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, - 4.8583, 5.8236, 4.8583], "words": [{"text": "Price", "boundingBox": [5.8236, - 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583]}]}, {"text": "Gold - Sponsor", "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, - 1.0778, 5.0681], "words": [{"text": "Gold", "boundingBox": [1.0778, 4.8653, - 1.3958, 4.8653, 1.3958, 5.0681, 1.0778, 5.0681]}, {"text": "Sponsor", "boundingBox": - [1.4361, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, 1.4361, 5.0681]}]}, {"text": - "Full booth", "boundingBox": [3.2, 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, - 3.2, 5.0764], "words": [{"text": "Full", "boundingBox": [3.2, 4.8736, 3.4417, - 4.8736, 3.4417, 5.0764, 3.2, 5.0764]}, {"text": "booth", "boundingBox": [3.4792, - 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, 3.4792, 5.0764]}]}, {"text": "$1,500", - "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], - "words": [{"text": "$1,500", "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, - 6.2889, 5.0681, 5.825, 5.0681]}]}, {"text": "Pre-keynote thank you", "boundingBox": - [3.2, 5.0861, 4.7389, 5.0861, 4.7389, 5.2889, 3.2, 5.2889], "words": [{"text": - "Pre-keynote", "boundingBox": [3.2, 5.0861, 4.0264, 5.0861, 4.0264, 5.2889, - 3.2, 5.2889]}, {"text": "thank", "boundingBox": [4.0639, 5.0861, 4.45, 5.0861, - 4.45, 5.2889, 4.0639, 5.2889]}, {"text": "you", "boundingBox": [4.4875, 5.0861, - 4.7389, 5.0861, 4.7389, 5.2889, 4.4875, 5.2889]}]}, {"text": "Logo on poster", - "boundingBox": [3.2, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.2, 5.5014], - "words": [{"text": "Logo", "boundingBox": [3.2, 5.2986, 3.5236, 5.2986, 3.5236, - 5.5014, 3.2, 5.5014]}, {"text": "on", "boundingBox": [3.5611, 5.2986, 3.7361, - 5.2986, 3.7361, 5.5014, 3.5611, 5.5014]}, {"text": "poster", "boundingBox": - [3.7764, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.7764, 5.5014]}]}, {"text": - "Full page ad in program guide", "boundingBox": [3.2, 5.5111, 5.2083, 5.5111, - 5.2083, 5.7139, 3.2, 5.7139], "words": [{"text": "Full", "boundingBox": [3.2, - 5.5111, 3.4417, 5.5111, 3.4417, 5.7139, 3.2, 5.7139]}, {"text": "page", "boundingBox": - [3.4792, 5.5111, 3.8069, 5.5111, 3.8069, 5.7139, 3.4792, 5.7139]}, {"text": - "ad", "boundingBox": [3.8444, 5.5111, 4.0111, 5.5111, 4.0111, 5.7139, 3.8444, - 5.7139]}, {"text": "in", "boundingBox": [4.0486, 5.5111, 4.175, 5.5111, 4.175, - 5.7139, 4.0486, 5.7139]}, {"text": "program", "boundingBox": [4.2125, 5.5111, - 4.7958, 5.5111, 4.7958, 5.7139, 4.2125, 5.7139]}, {"text": "guide", "boundingBox": - [4.8319, 5.5111, 5.2083, 5.5111, 5.2083, 5.7139, 4.8319, 5.7139]}]}, {"text": - "Silver Sponsor", "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "words": [{"text": "Silver", "boundingBox": [1.0778, - 5.9347, 1.4472, 5.9347, 1.4472, 6.1375, 1.0778, 6.1375]}, {"text": "Sponsor", - "boundingBox": [1.4847, 5.9347, 2.0361, 5.9347, 2.0361, 6.1375, 1.4847, 6.1375]}]}, - {"text": "Full booth", "boundingBox": [3.2, 5.9431, 3.8847, 5.9431, 3.8847, - 6.1458, 3.2, 6.1458], "words": [{"text": "Full", "boundingBox": [3.2, 5.9431, - 3.4417, 5.9431, 3.4417, 6.1458, 3.2, 6.1458]}, {"text": "booth", "boundingBox": - [3.4792, 5.9431, 3.8847, 5.9431, 3.8847, 6.1458, 3.4792, 6.1458]}]}, {"text": - "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, - 6.1375], "words": [{"text": "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, - 5.9347, 6.2889, 6.1375, 5.825, 6.1375]}]}, {"text": "Post-keynote thank you", - "boundingBox": [3.2, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 3.2, 6.3583], - "words": [{"text": "Post-keynote", "boundingBox": [3.2, 6.1556, 4.0958, 6.1556, - 4.0958, 6.3583, 3.2, 6.3583]}, {"text": "thank", "boundingBox": [4.1319, 6.1556, - 4.5194, 6.1556, 4.5194, 6.3583, 4.1319, 6.3583]}, {"text": "you", "boundingBox": - [4.5556, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 4.5556, 6.3583]}]}, {"text": - "Logo on poster", "boundingBox": [3.2, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, - 3.2, 6.5694], "words": [{"text": "Logo", "boundingBox": [3.2, 6.3667, 3.5236, - 6.3667, 3.5236, 6.5694, 3.2, 6.5694]}, {"text": "on", "boundingBox": [3.5611, - 6.3667, 3.7361, 6.3667, 3.7361, 6.5694, 3.5611, 6.5694]}, {"text": "poster", - "boundingBox": [3.7764, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, 3.7764, 6.5694]}]}, - {"text": "Half page ad in program guide", "boundingBox": [3.2, 6.5806, 5.2389, - 6.5806, 5.2389, 6.7833, 3.2, 6.7833], "words": [{"text": "Half", "boundingBox": - [3.2, 6.5806, 3.4722, 6.5806, 3.4722, 6.7833, 3.2, 6.7833]}, {"text": "page", - "boundingBox": [3.5097, 6.5806, 3.8403, 6.5806, 3.8403, 6.7833, 3.5097, 6.7833]}, - {"text": "ad", "boundingBox": [3.8764, 6.5806, 4.0444, 6.5806, 4.0444, 6.7833, - 3.8764, 6.7833]}, {"text": "in", "boundingBox": [4.0819, 6.5806, 4.2069, 6.5806, - 4.2069, 6.7833, 4.0819, 6.7833]}, {"text": "program", "boundingBox": [4.2444, - 6.5806, 4.8264, 6.5806, 4.8264, 6.7833, 4.2444, 6.7833]}, {"text": "guide", - "boundingBox": [4.8653, 6.5806, 5.2389, 6.5806, 5.2389, 6.7833, 4.8653, 6.7833]}]}, - {"text": "Bronze Sponsor", "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, - 2.1389, 6.9931, 1.0778, 6.9931], "words": [{"text": "Bronze", "boundingBox": - [1.0778, 6.7903, 1.5528, 6.7903, 1.5528, 6.9931, 1.0778, 6.9931]}, {"text": - "Sponsor", "boundingBox": [1.5889, 6.7903, 2.1389, 6.7903, 2.1389, 6.9931, - 1.5889, 6.9931]}]}, {"text": "Full booth", "boundingBox": [3.2, 6.7986, 3.8847, - 6.7986, 3.8847, 7.0014, 3.2, 7.0014], "words": [{"text": "Full", "boundingBox": - [3.2, 6.7986, 3.4417, 6.7986, 3.4417, 7.0014, 3.2, 7.0014]}, {"text": "booth", - "boundingBox": [3.4792, 6.7986, 3.8847, 6.7986, 3.8847, 7.0014, 3.4792, 7.0014]}]}, - {"text": "$1,000", "boundingBox": [5.825, 6.7903, 6.2889, 6.7903, 6.2889, - 6.9931, 5.825, 6.9931], "words": [{"text": "$1,000", "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931]}]}, {"text": "Logo - on poster", "boundingBox": [3.2, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.2, - 7.2139], "words": [{"text": "Logo", "boundingBox": [3.2, 7.0111, 3.5236, 7.0111, - 3.5236, 7.2139, 3.2, 7.2139]}, {"text": "on", "boundingBox": [3.5611, 7.0111, - 3.7361, 7.0111, 3.7361, 7.2139, 3.5611, 7.2139]}, {"text": "poster", "boundingBox": - [3.7764, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.7764, 7.2139]}]}, {"text": - "50% discount on program guide", "boundingBox": [3.2, 7.2236, 5.35, 7.2236, - 5.35, 7.4264, 3.2, 7.4264], "words": [{"text": "50%", "boundingBox": [3.2, - 7.2236, 3.4875, 7.2236, 3.4875, 7.4264, 3.2, 7.4264]}, {"text": "discount", - "boundingBox": [3.525, 7.2236, 4.1069, 7.2236, 4.1069, 7.4264, 3.525, 7.4264]}, - {"text": "on", "boundingBox": [4.1444, 7.2236, 4.3194, 7.2236, 4.3194, 7.4264, - 4.1444, 7.4264]}, {"text": "program", "boundingBox": [4.3556, 7.2236, 4.9375, - 7.2236, 4.9375, 7.4264, 4.3556, 7.4264]}, {"text": "guide", "boundingBox": - [4.9764, 7.2236, 5.35, 7.2236, 5.35, 7.4264, 4.9764, 7.4264]}]}, {"text": - "advertisements", "boundingBox": [3.2, 7.4264, 4.25, 7.4264, 4.25, 7.6292, - 3.2, 7.6292], "words": [{"text": "advertisements", "boundingBox": [3.2, 7.4264, - 4.25, 7.4264, 4.25, 7.6292, 3.2, 7.6292]}]}, {"text": "Full Booth", "boundingBox": - [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, 7.8417, 1.0778, 7.8417], "words": - [{"text": "Full", "boundingBox": [1.0778, 7.6389, 1.3208, 7.6389, 1.3208, - 7.8417, 1.0778, 7.8417]}, {"text": "Booth", "boundingBox": [1.3583, 7.6389, - 1.7653, 7.6389, 1.7653, 7.8417, 1.3583, 7.8417]}]}, {"text": "Full booth", - "boundingBox": [3.2, 7.6472, 3.8847, 7.6472, 3.8847, 7.85, 3.2, 7.85], "words": - [{"text": "Full", "boundingBox": [3.2, 7.6472, 3.4417, 7.6472, 3.4417, 7.85, - 3.2, 7.85]}, {"text": "booth", "boundingBox": [3.4792, 7.6472, 3.8847, 7.6472, - 3.8847, 7.85, 3.4792, 7.85]}]}, {"text": "$600", "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "words": [{"text": "$600", - "boundingBox": [5.825, 7.6389, 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417]}]}, - {"text": "50% discount on program guide", "boundingBox": [3.2, 7.8583, 5.35, - 7.8583, 5.35, 8.0611, 3.2, 8.0611], "words": [{"text": "50%", "boundingBox": - [3.2, 7.8583, 3.4875, 7.8583, 3.4875, 8.0611, 3.2, 8.0611]}, {"text": "discount", - "boundingBox": [3.525, 7.8583, 4.1069, 7.8583, 4.1069, 8.0611, 3.525, 8.0611]}, - {"text": "on", "boundingBox": [4.1444, 7.8583, 4.3194, 7.8583, 4.3194, 8.0611, - 4.1444, 8.0611]}, {"text": "program", "boundingBox": [4.3556, 7.8583, 4.9375, - 7.8583, 4.9375, 8.0611, 4.3556, 8.0611]}, {"text": "guide", "boundingBox": - [4.9764, 7.8583, 5.35, 7.8583, 5.35, 8.0611, 4.9764, 8.0611]}]}, {"text": - "advertisements", "boundingBox": [3.2, 8.0611, 4.25, 8.0611, 4.25, 8.2639, - 3.2, 8.2639], "words": [{"text": "advertisements", "boundingBox": [3.2, 8.0611, - 4.25, 8.0611, 4.25, 8.2639, 3.2, 8.2639]}]}, {"text": "Half Booth", "boundingBox": - [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, 8.4764], "words": - [{"text": "Half", "boundingBox": [1.0778, 8.2736, 1.35, 8.2736, 1.35, 8.4764, - 1.0778, 8.4764]}, {"text": "Booth", "boundingBox": [1.3889, 8.2736, 1.7972, - 8.2736, 1.7972, 8.4764, 1.3889, 8.4764]}]}, {"text": "Full booth", "boundingBox": - [3.2, 8.2819, 3.8847, 8.2819, 3.8847, 8.4847, 3.2, 8.4847], "words": [{"text": - "Full", "boundingBox": [3.2, 8.2819, 3.4417, 8.2819, 3.4417, 8.4847, 3.2, - 8.4847]}, {"text": "booth", "boundingBox": [3.4792, 8.2819, 3.8847, 8.2819, - 3.8847, 8.4847, 3.4792, 8.4847]}]}, {"text": "$350", "boundingBox": [5.825, - 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "words": [{"text": - "$350", "boundingBox": [5.825, 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, - 8.4764]}]}, {"text": "25% discount on program guide", "boundingBox": [3.2, - 8.4931, 5.35, 8.4931, 5.35, 8.6958, 3.2, 8.6958], "words": [{"text": "25%", - "boundingBox": [3.2, 8.4931, 3.4875, 8.4931, 3.4875, 8.6958, 3.2, 8.6958]}, - {"text": "discount", "boundingBox": [3.525, 8.4931, 4.1069, 8.4931, 4.1069, - 8.6958, 3.525, 8.6958]}, {"text": "on", "boundingBox": [4.1444, 8.4931, 4.3194, - 8.4931, 4.3194, 8.6958, 4.1444, 8.6958]}, {"text": "program", "boundingBox": - [4.3556, 8.4931, 4.9375, 8.4931, 4.9375, 8.6958, 4.3556, 8.6958]}, {"text": - "guide", "boundingBox": [4.9764, 8.4931, 5.35, 8.4931, 5.35, 8.6958, 4.9764, - 8.6958]}]}, {"text": "advertisements", "boundingBox": [3.2, 8.6972, 4.25, - 8.6972, 4.25, 8.9, 3.2, 8.9], "words": [{"text": "advertisements", "boundingBox": - [3.2, 8.6972, 4.25, 8.6972, 4.25, 8.9, 3.2, 8.9]}]}]}, {"page": 2, "angle": - 359.96, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor - #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.1389, - 1.2708], "words": [{"text": "Vendor", "boundingBox": [6.1389, 1.0556, 6.8917, - 1.0556, 6.8917, 1.2708, 6.1389, 1.2708]}, {"text": "#:", "boundingBox": [6.9333, - 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.9333, 1.2708]}]}, {"text": "121", - "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], - "words": [{"text": "121", "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, - 7.5167, 1.2708, 7.1667, 1.2708]}]}, {"text": "Vendor Details:", "boundingBox": - [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, 2.3722], "words": [{"text": - "Vendor", "boundingBox": [1.0111, 2.1736, 1.6736, 2.1736, 1.6736, 2.3722, - 1.0111, 2.3722]}, {"text": "Details:", "boundingBox": [1.7111, 2.1736, 2.375, - 2.1736, 2.375, 2.3722, 1.7111, 2.3722]}]}, {"text": "Company Name:", "boundingBox": - [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, 1.0028, 2.9278], "words": - [{"text": "Company", "boundingBox": [1.0028, 2.7611, 1.6639, 2.7611, 1.6639, - 2.9278, 1.0028, 2.9278]}, {"text": "Name:", "boundingBox": [1.6944, 2.7611, - 2.1556, 2.7611, 2.1556, 2.9278, 1.6944, 2.9278]}]}, {"text": "Southridge Video", - "boundingBox": [2.1917, 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], - "words": [{"text": "Southridge", "boundingBox": [2.1917, 2.7611, 2.9444, 2.7611, - 2.9444, 2.9278, 2.1917, 2.9278]}, {"text": "Video", "boundingBox": [2.975, - 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.975, 2.9278]}]}, {"text": "Contact:", - "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, 1.0069, 3.2472], - "words": [{"text": "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, - 1.5903, 3.2472, 1.0069, 3.2472]}]}, {"text": "Jamie@southridgevideo.com", - "boundingBox": [1.6222, 3.0903, 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], - "words": [{"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, - 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472]}]}, {"text": "Preferred Package:", - "boundingBox": [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], - "words": [{"text": "Preferred", "boundingBox": [1.0028, 3.4236, 1.6667, 3.4236, - 1.6667, 3.5806, 1.0028, 3.5806]}, {"text": "Package:", "boundingBox": [1.6972, - 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.6972, 3.5806]}]}, {"text": "Gold", - "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, 2.35, 3.5806], - "words": [{"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, - 3.5806, 2.35, 3.5806]}]}, {"text": "Special Requests:", "boundingBox": [1.0167, - 3.7611, 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "words": [{"text": - "Special", "boundingBox": [1.0167, 3.7611, 1.4972, 3.7611, 1.4972, 3.9139, - 1.0167, 3.9139]}, {"text": "Requests:", "boundingBox": [1.5278, 3.7611, 2.2194, - 3.7611, 2.2194, 3.9139, 1.5278, 3.9139]}]}, {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "words": [{"text": - "N/a", "boundingBox": [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, - 3.9139]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": - "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.1236, 1.3056], "elements": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1"]}, - "value": {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, - 1.3056, 7.1167, 1.3056], "elements": ["#/readResults/0/lines/1/words/0"]}, - "confidence": 1.0}, {"key": {"text": "__Address__1", "boundingBox": null, - "elements": null}, "value": {"text": "Contoso Ltd. 2345 Dogwood Lane Birch, - Kansas 98123", "boundingBox": [1.0, 3.5306, 2.3847, 3.5306, 2.3847, 4.1722, - 1.0, 4.1722], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1", - "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", "#/readResults/0/lines/8/words/2", - "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": - null}, "value": {"text": "Vendor Registration", "boundingBox": [2.2181, 1.4417, - 6.2736, 1.4417, 6.2736, 2.05, 2.2181, 2.05], "elements": ["#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, 2.7444, 1.0, 2.7444], - "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", "#/readResults/0/lines/3/words/3", "#/readResults/0/lines/3/words/4", - "#/readResults/0/lines/3/words/5", "#/readResults/0/lines/3/words/6", "#/readResults/0/lines/3/words/7", - "#/readResults/0/lines/3/words/8", "#/readResults/0/lines/3/words/9", "#/readResults/0/lines/3/words/10", - "#/readResults/0/lines/3/words/11", "#/readResults/0/lines/3/words/12", "#/readResults/0/lines/3/words/13", - "#/readResults/0/lines/3/words/14", "#/readResults/0/lines/3/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Maple City, Massachusetts. The conference has sold - out of its 1,500 tickets, with a 400 person", "boundingBox": [1.0, 2.7597, - 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "elements": ["#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/4/words/3", - "#/readResults/0/lines/4/words/4", "#/readResults/0/lines/4/words/5", "#/readResults/0/lines/4/words/6", - "#/readResults/0/lines/4/words/7", "#/readResults/0/lines/4/words/8", "#/readResults/0/lines/4/words/9", - "#/readResults/0/lines/4/words/10", "#/readResults/0/lines/4/words/11", "#/readResults/0/lines/4/words/12", - "#/readResults/0/lines/4/words/13", "#/readResults/0/lines/4/words/14", "#/readResults/0/lines/4/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "waitlist. Vendor applications are being accepted - through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, 2.9806, - 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "elements": ["#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", "#/readResults/0/lines/5/words/3", - "#/readResults/0/lines/5/words/4", "#/readResults/0/lines/5/words/5", "#/readResults/0/lines/5/words/6", - "#/readResults/0/lines/5/words/7", "#/readResults/0/lines/5/words/8", "#/readResults/0/lines/5/words/9", - "#/readResults/0/lines/5/words/10", "#/readResults/0/lines/5/words/11", "#/readResults/0/lines/5/words/12", - "#/readResults/0/lines/5/words/13", "#/readResults/0/lines/5/words/14"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "below, and attach a check made out to:", "boundingBox": - [1.0, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "elements": ["#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", "#/readResults/0/lines/6/words/2", "#/readResults/0/lines/6/words/3", - "#/readResults/0/lines/6/words/4", "#/readResults/0/lines/6/words/5", "#/readResults/0/lines/6/words/6", - "#/readResults/0/lines/6/words/7"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Rates:", - "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, 1.0, 4.6264], - "elements": ["#/readResults/0/lines/10/words/0"]}, "confidence": 1.0}], "tables": - [{"rows": 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": - 0, "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, - 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], + [1.0139, 2.8083, 7.3458, 2.8083, 7.3458, 2.9286, 1.0139, 2.9286], "words": + [{"text": "Maple", "boundingBox": [1.0139, 2.8035, 1.4236, 2.8035, 1.4236, + 2.9479, 1.0139, 2.9479]}, {"text": "City,", "boundingBox": [1.4764, 2.809, + 1.7569, 2.809, 1.7569, 2.9479, 1.4764, 2.9479]}, {"text": "Massachusetts.", + "boundingBox": [1.8194, 2.8035, 2.8375, 2.8035, 2.8375, 2.9198, 1.8194, 2.9198]}, + {"text": "The", "boundingBox": [2.8875, 2.8035, 3.1333, 2.8035, 3.1333, 2.9198, + 2.8875, 2.9198]}, {"text": "conference", "boundingBox": [3.1833, 2.8028, 3.9306, + 2.8028, 3.9306, 2.9198, 3.1833, 2.9198]}, {"text": "has", "boundingBox": [3.9875, + 2.8035, 4.2014, 2.8035, 4.2014, 2.9198, 3.9875, 2.9198]}, {"text": "sold", + "boundingBox": [4.2528, 2.8035, 4.5111, 2.8035, 4.5111, 2.9198, 4.2528, 2.9198]}, + {"text": "out", "boundingBox": [4.5708, 2.8198, 4.7875, 2.8198, 4.7875, 2.9198, + 4.5708, 2.9198]}, {"text": "of", "boundingBox": [4.8375, 2.8028, 4.9708, 2.8028, + 4.9708, 2.9198, 4.8375, 2.9198]}, {"text": "its", "boundingBox": [5.0167, + 2.809, 5.1597, 2.809, 5.1597, 2.9198, 5.0167, 2.9198]}, {"text": "1,500", + "boundingBox": [5.2167, 2.8101, 5.5764, 2.8101, 5.5764, 2.9417, 5.2167, 2.9417]}, + {"text": "tickets,", "boundingBox": [5.6222, 2.8035, 6.0931, 2.8035, 6.0931, + 2.9417, 5.6222, 2.9417]}, {"text": "with", "boundingBox": [6.1458, 2.8035, + 6.4306, 2.8035, 6.4306, 2.9194, 6.1458, 2.9194]}, {"text": "a", "boundingBox": + [6.4875, 2.8382, 6.5472, 2.8382, 6.5472, 2.9198, 6.4875, 2.9198]}, {"text": + "400", "boundingBox": [6.6014, 2.8101, 6.8444, 2.8101, 6.8444, 2.9198, 6.6014, + 2.9198]}, {"text": "person", "boundingBox": [6.9, 2.8382, 7.3458, 2.8382, + 7.3458, 2.9479, 6.9, 2.9479]}]}, {"text": "waitlist. Vendor applications are + being accepted through Feb 28, 2020. Please fill in the form", "boundingBox": + [1.0042, 3.0259, 7.2486, 3.0259, 7.2486, 3.1513, 1.0042, 3.1513], "words": + [{"text": "waitlist.", "boundingBox": [1.0042, 3.0236, 1.5194, 3.0236, 1.5194, + 3.1396, 1.0042, 3.1396]}, {"text": "Vendor", "boundingBox": [1.5736, 3.024, + 2.0653, 3.024, 2.0653, 3.1396, 1.5736, 3.1396]}, {"text": "applications", + "boundingBox": [2.1139, 3.0236, 2.9139, 3.0236, 2.9139, 3.1677, 2.1139, 3.1677]}, + {"text": "are", "boundingBox": [2.9681, 3.0583, 3.1722, 3.0583, 3.1722, 3.1396, + 2.9681, 3.1396]}, {"text": "being", "boundingBox": [3.2306, 3.0236, 3.5889, + 3.0236, 3.5889, 3.1677, 3.2306, 3.1677]}, {"text": "accepted", "boundingBox": + [3.6389, 3.024, 4.2333, 3.024, 4.2333, 3.1677, 3.6389, 3.1677]}, {"text": + "through", "boundingBox": [4.2861, 3.0236, 4.8125, 3.0236, 4.8125, 3.1677, + 4.2861, 3.1677]}, {"text": "Feb", "boundingBox": [4.8819, 3.0236, 5.1125, + 3.0236, 5.1125, 3.1399, 4.8819, 3.1399]}, {"text": "28,", "boundingBox": [5.1625, + 3.0299, 5.3611, 3.0299, 5.3611, 3.1622, 5.1625, 3.1622]}, {"text": "2020.", + "boundingBox": [5.4125, 3.0299, 5.7778, 3.0299, 5.7778, 3.1399, 5.4125, 3.1399]}, + {"text": "Please", "boundingBox": [5.8403, 3.0236, 6.2542, 3.0236, 6.2542, + 3.1396, 5.8403, 3.1396]}, {"text": "fill", "boundingBox": [6.3028, 3.0229, + 6.4542, 3.0229, 6.4542, 3.1385, 6.3028, 3.1385]}, {"text": "in", "boundingBox": + [6.5125, 3.0288, 6.6167, 3.0288, 6.6167, 3.1385, 6.5125, 3.1385]}, {"text": + "the", "boundingBox": [6.6681, 3.0236, 6.8833, 3.0236, 6.8833, 3.1396, 6.6681, + 3.1396]}, {"text": "form", "boundingBox": [6.9319, 3.0229, 7.2486, 3.0229, + 7.2486, 3.1396, 6.9319, 3.1396]}]}, {"text": "below, and attach a check made + out to:", "boundingBox": [1.0125, 3.2485, 3.6597, 3.2485, 3.6597, 3.3638, + 1.0125, 3.3638], "words": [{"text": "below,", "boundingBox": [1.0125, 3.2437, + 1.4458, 3.2437, 1.4458, 3.3819, 1.0125, 3.3819]}, {"text": "and", "boundingBox": + [1.5028, 3.2437, 1.7375, 3.2437, 1.7375, 3.3597, 1.5028, 3.3597]}, {"text": + "attach", "boundingBox": [1.7972, 3.2437, 2.2056, 3.2437, 2.2056, 3.3597, + 1.7972, 3.3597]}, {"text": "a", "boundingBox": [2.2611, 3.2785, 2.3222, 3.2785, + 2.3222, 3.3597, 2.2611, 3.3597]}, {"text": "check", "boundingBox": [2.3792, + 3.2437, 2.7528, 3.2437, 2.7528, 3.3597, 2.3792, 3.3597]}, {"text": "made", + "boundingBox": [2.8083, 3.2437, 3.1694, 3.2437, 3.1694, 3.3597, 2.8083, 3.3597]}, + {"text": "out", "boundingBox": [3.225, 3.2597, 3.4417, 3.2597, 3.4417, 3.3597, + 3.225, 3.3597]}, {"text": "to:", "boundingBox": [3.4875, 3.2597, 3.6597, 3.2597, + 3.6597, 3.3597, 3.4875, 3.3597]}]}, {"text": "Contoso Ltd.", "boundingBox": + [1.0069, 3.5781, 1.8431, 3.5781, 1.8431, 3.6896, 1.0069, 3.6896], "words": + [{"text": "Contoso", "boundingBox": [1.0069, 3.5802, 1.5556, 3.5802, 1.5556, + 3.6896, 1.0069, 3.6896]}, {"text": "Ltd.", "boundingBox": [1.6125, 3.574, + 1.8431, 3.574, 1.8431, 3.6896, 1.6125, 3.6896]}]}, {"text": "2345 Dogwood + Lane", "boundingBox": [1.0097, 3.7973, 2.3764, 3.7973, 2.3764, 3.923, 1.0097, + 3.923], "words": [{"text": "2345", "boundingBox": [1.0097, 3.8, 1.3306, 3.8, + 1.3306, 3.9097, 1.0097, 3.9097]}, {"text": "Dogwood", "boundingBox": [1.3903, + 3.7938, 2.0153, 3.7938, 2.0153, 3.9378, 1.3903, 3.9378]}, {"text": "Lane", + "boundingBox": [2.0792, 3.801, 2.3764, 3.801, 2.3764, 3.9097, 2.0792, 3.9097]}]}, + {"text": "Birch, Kansas 98123", "boundingBox": [1.0139, 4.0181, 2.3375, 4.0181, + 2.3375, 4.1379, 1.0139, 4.1379], "words": [{"text": "Birch,", "boundingBox": + [1.0139, 4.0135, 1.375, 4.0135, 1.375, 4.1517, 1.0139, 4.1517]}, {"text": + "Kansas", "boundingBox": [1.4375, 4.0212, 1.8819, 4.0212, 1.8819, 4.1299, + 1.4375, 4.1299]}, {"text": "98123", "boundingBox": [1.9319, 4.0201, 2.3375, + 4.0201, 2.3375, 4.1299, 1.9319, 4.1299]}]}, {"text": "Rates:", "boundingBox": + [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, 4.5681, 1.0208, 4.5681], "words": + [{"text": "Rates:", "boundingBox": [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, + 4.5681, 1.0208, 4.5681]}]}, {"text": "Package", "boundingBox": [1.0931, 4.6986, + 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427], "words": [{"text": "Package", + "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427]}]}, + {"text": "Included", "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "words": [{"text": "Included", "boundingBox": [2.7125, + 4.6986, 3.2708, 4.6986, 3.2708, 4.8146, 2.7125, 4.8146]}]}, {"text": "Price", + "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], + "words": [{"text": "Price", "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, + 6.1514, 4.8146, 5.8375, 4.8146]}]}, {"text": "Gold Sponsor", "boundingBox": + [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, 5.042, 1.0861, 5.042], "words": [{"text": + "Gold", "boundingBox": [1.0861, 4.9087, 1.3847, 4.9087, 1.3847, 5.0247, 1.0861, + 5.0247]}, {"text": "Sponsor", "boundingBox": [1.4417, 4.9149, 1.9833, 4.9149, + 1.9833, 5.0528, 1.4417, 5.0528]}]}, {"text": "Full booth", "boundingBox": + [3.2139, 4.917, 3.8722, 4.917, 3.8722, 5.033, 3.2139, 5.033], "words": [{"text": + "Full", "boundingBox": [3.2139, 4.917, 3.4292, 4.917, 3.4292, 5.033, 3.2139, + 5.033]}, {"text": "booth", "boundingBox": [3.4917, 4.917, 3.8722, 4.917, 3.8722, + 5.033, 3.4917, 5.033]}]}, {"text": "$1,500", "boundingBox": [5.8319, 4.8976, + 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "words": [{"text": "$1,500", + "boundingBox": [5.8319, 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469]}]}, + {"text": "Pre-keynote thank you", "boundingBox": [3.2139, 5.1352, 4.7264, + 5.1352, 4.7264, 5.2663, 3.2139, 5.2663], "words": [{"text": "Pre-keynote", + "boundingBox": [3.2139, 5.1302, 4.0181, 5.1302, 4.0181, 5.2743, 3.2139, 5.2743]}, + {"text": "thank", "boundingBox": [4.0667, 5.1302, 4.4472, 5.1302, 4.4472, + 5.2462, 4.0667, 5.2462]}, {"text": "you", "boundingBox": [4.4903, 5.1649, + 4.7264, 5.1649, 4.7264, 5.2743, 4.4903, 5.2743]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 5.359, 4.2097, 5.359, 4.2097, 5.4801, 3.2139, 5.4801], + "words": [{"text": "Logo", "boundingBox": [3.2139, 5.3497, 3.5167, 5.3497, + 3.5167, 5.4861, 3.2139, 5.4861]}, {"text": "on", "boundingBox": [3.5681, 5.3767, + 3.7236, 5.3767, 3.7236, 5.458, 3.5681, 5.458]}, {"text": "poster", "boundingBox": + [3.7889, 5.358, 4.2097, 5.358, 4.2097, 5.4861, 3.7889, 5.4861]}]}, {"text": + "Full page ad in program guide", "boundingBox": [3.2139, 5.5714, 5.2014, 5.5714, + 5.2014, 5.6885, 3.2139, 5.6885], "words": [{"text": "Full", "boundingBox": + [3.2139, 5.5552, 3.4292, 5.5552, 3.4292, 5.6712, 3.2139, 5.6712]}, {"text": + "page", "boundingBox": [3.4917, 5.5899, 3.7986, 5.5899, 3.7986, 5.6993, 3.4917, + 5.6993]}, {"text": "ad", "boundingBox": [3.8514, 5.5556, 3.9986, 5.5556, 3.9986, + 5.6712, 3.8514, 5.6712]}, {"text": "in", "boundingBox": [4.0597, 5.5604, 4.1625, + 5.5604, 4.1625, 5.6701, 4.0597, 5.6701]}, {"text": "program", "boundingBox": + [4.225, 5.5899, 4.7833, 5.5899, 4.7833, 5.6993, 4.225, 5.6993]}, {"text": + "guide", "boundingBox": [4.8361, 5.5556, 5.2014, 5.5556, 5.2014, 5.6993, 4.8361, + 5.6993]}]}, {"text": "Silver Sponsor", "boundingBox": [1.0833, 5.982, 2.0333, + 5.982, 2.0333, 6.1098, 1.0833, 6.1098], "words": [{"text": "Silver", "boundingBox": + [1.0833, 5.9785, 1.4444, 5.9785, 1.4444, 6.0948, 1.0833, 6.0948]}, {"text": + "Sponsor", "boundingBox": [1.4903, 5.9851, 2.0333, 5.9851, 2.0333, 6.1229, + 1.4903, 6.1229]}]}, {"text": "Full booth", "boundingBox": [3.2139, 5.9868, + 3.8722, 5.9868, 3.8722, 6.1031, 3.2139, 6.1031], "words": [{"text": "Full", + "boundingBox": [3.2139, 5.9868, 3.4292, 5.9868, 3.4292, 6.1031, 3.2139, 6.1031]}, + {"text": "booth", "boundingBox": [3.4917, 5.9868, 3.8722, 5.9868, 3.8722, + 6.1031, 3.4917, 6.1031]}]}, {"text": "$1,200", "boundingBox": [5.8319, 5.9677, + 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "words": [{"text": "$1,200", + "boundingBox": [5.8319, 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167]}]}, + {"text": "Post-keynote thank you", "boundingBox": [3.2139, 6.2033, 4.7931, + 6.2033, 4.7931, 6.335, 3.2139, 6.335], "words": [{"text": "Post-keynote", + "boundingBox": [3.2139, 6.1986, 4.0875, 6.1986, 4.0875, 6.3427, 3.2139, 6.3427]}, + {"text": "thank", "boundingBox": [4.1347, 6.1986, 4.5153, 6.1986, 4.5153, + 6.3146, 4.1347, 6.3146]}, {"text": "you", "boundingBox": [4.5583, 6.2333, + 4.7931, 6.2333, 4.7931, 6.3427, 4.5583, 6.3427]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 6.4274, 4.2097, 6.4274, 4.2097, 6.5485, 3.2139, 6.5485], + "words": [{"text": "Logo", "boundingBox": [3.2139, 6.4181, 3.5167, 6.4181, + 3.5167, 6.5545, 3.2139, 6.5545]}, {"text": "on", "boundingBox": [3.5681, 6.4451, + 3.7236, 6.4451, 3.7236, 6.5264, 3.5681, 6.5264]}, {"text": "poster", "boundingBox": + [3.7889, 6.4264, 4.2097, 6.4264, 4.2097, 6.5545, 3.7889, 6.5545]}]}, {"text": + "Half page ad in program guide", "boundingBox": [3.2139, 6.6397, 5.2306, 6.6397, + 5.2306, 6.7569, 3.2139, 6.7569], "words": [{"text": "Half", "boundingBox": + [3.2139, 6.6229, 3.4736, 6.6229, 3.4736, 6.7396, 3.2139, 6.7396]}, {"text": + "page", "boundingBox": [3.5222, 6.6583, 3.8319, 6.6583, 3.8319, 6.7677, 3.5222, + 6.7677]}, {"text": "ad", "boundingBox": [3.8847, 6.624, 4.0319, 6.624, 4.0319, + 6.7396, 3.8847, 6.7396]}, {"text": "in", "boundingBox": [4.0917, 6.6288, 4.1958, + 6.6288, 4.1958, 6.7385, 4.0917, 6.7385]}, {"text": "program", "boundingBox": + [4.2556, 6.6583, 4.8153, 6.6583, 4.8153, 6.7677, 4.2556, 6.7677]}, {"text": + "guide", "boundingBox": [4.8694, 6.624, 5.2306, 6.624, 5.2306, 6.7677, 4.8694, + 6.7677]}]}, {"text": "Bronze Sponsor", "boundingBox": [1.0931, 6.8407, 2.1361, + 6.8407, 2.1361, 6.9647, 1.0931, 6.9647], "words": [{"text": "Bronze", "boundingBox": + [1.0931, 6.8417, 1.5444, 6.8417, 1.5444, 6.9497, 1.0931, 6.9497]}, {"text": + "Sponsor", "boundingBox": [1.5944, 6.8399, 2.1361, 6.8399, 2.1361, 6.9778, + 1.5944, 6.9778]}]}, {"text": "Full booth", "boundingBox": [3.2139, 6.842, + 3.8722, 6.842, 3.8722, 6.958, 3.2139, 6.958], "words": [{"text": "Full", "boundingBox": + [3.2139, 6.842, 3.4292, 6.842, 3.4292, 6.958, 3.2139, 6.958]}, {"text": "booth", + "boundingBox": [3.4917, 6.842, 3.8722, 6.842, 3.8722, 6.958, 3.4917, 6.958]}]}, + {"text": "$1,000", "boundingBox": [5.8319, 6.8226, 6.2833, 6.8226, 6.2833, + 6.9719, 5.8319, 6.9719], "words": [{"text": "$1,000", "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719]}]}, {"text": "Logo + on poster", "boundingBox": [3.2139, 7.0724, 4.2097, 7.0724, 4.2097, 7.1933, + 3.2139, 7.1933], "words": [{"text": "Logo", "boundingBox": [3.2139, 7.0628, + 3.5167, 7.0628, 3.5167, 7.1993, 3.2139, 7.1993]}, {"text": "on", "boundingBox": + [3.5681, 7.0899, 3.7236, 7.0899, 3.7236, 7.1712, 3.5681, 7.1712]}, {"text": + "poster", "boundingBox": [3.7889, 7.0715, 4.2097, 7.0715, 4.2097, 7.1993, + 3.7889, 7.1993]}]}, {"text": "50% discount on program guide", "boundingBox": + [3.2083, 7.281, 5.3417, 7.281, 5.3417, 7.3958, 3.2083, 7.3958], "words": [{"text": + "50%", "boundingBox": [3.2083, 7.2715, 3.4819, 7.2715, 3.4819, 7.3844, 3.2083, + 7.3844]}, {"text": "discount", "boundingBox": [3.5333, 7.2674, 4.1014, 7.2674, + 4.1014, 7.383, 3.5333, 7.383]}, {"text": "on", "boundingBox": [4.1514, 7.3017, + 4.3069, 7.3017, 4.3069, 7.383, 4.1514, 7.383]}, {"text": "program", "boundingBox": + [4.3681, 7.3017, 4.925, 7.3017, 4.925, 7.4111, 4.3681, 7.4111]}, {"text": + "guide", "boundingBox": [4.9806, 7.2674, 5.3417, 7.2674, 5.3417, 7.4111, 4.9806, + 7.4111]}]}, {"text": "advertisements", "boundingBox": [3.2069, 7.4705, 4.2431, + 7.4705, 4.2431, 7.5865, 3.2069, 7.5865], "words": [{"text": "advertisements", + "boundingBox": [3.2069, 7.4705, 4.2431, 7.4705, 4.2431, 7.5865, 3.2069, 7.5865]}]}, + {"text": "Full Booth", "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "words": [{"text": "Full", "boundingBox": [1.0931, + 7.6819, 1.3083, 7.6819, 1.3083, 7.7979, 1.0931, 7.7979]}, {"text": "Booth", + "boundingBox": [1.3722, 7.6819, 1.7542, 7.6819, 1.7542, 7.7979, 1.3722, 7.7979]}]}, + {"text": "Full booth", "boundingBox": [3.2139, 7.6903, 3.8722, 7.6903, 3.8722, + 7.8063, 3.2139, 7.8063], "words": [{"text": "Full", "boundingBox": [3.2139, + 7.6903, 3.4292, 7.6903, 3.4292, 7.8062, 3.2139, 7.8062]}, {"text": "booth", + "boundingBox": [3.4917, 7.6903, 3.8722, 7.6903, 3.8722, 7.8062, 3.4917, 7.8062]}]}, + {"text": "$600", "boundingBox": [5.8319, 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, + 5.8319, 7.8167], "words": [{"text": "$600", "boundingBox": [5.8319, 7.6712, + 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167]}]}, {"text": "50% discount + on program guide", "boundingBox": [3.2083, 7.9159, 5.3417, 7.9159, 5.3417, + 8.0309, 3.2083, 8.0309], "words": [{"text": "50%", "boundingBox": [3.2083, + 7.9066, 3.4819, 7.9066, 3.4819, 8.0194, 3.2083, 8.0194]}, {"text": "discount", + "boundingBox": [3.5333, 7.9021, 4.1014, 7.9021, 4.1014, 8.0181, 3.5333, 8.0181]}, + {"text": "on", "boundingBox": [4.1514, 7.9368, 4.3069, 7.9368, 4.3069, 8.0181, + 4.1514, 8.0181]}, {"text": "program", "boundingBox": [4.3681, 7.9368, 4.925, + 7.9368, 4.925, 8.0462, 4.3681, 8.0462]}, {"text": "guide", "boundingBox": + [4.9806, 7.9021, 5.3417, 7.9021, 5.3417, 8.0462, 4.9806, 8.0462]}]}, {"text": + "advertisements", "boundingBox": [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, + 8.2212, 3.2069, 8.2212], "words": [{"text": "advertisements", "boundingBox": + [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, 8.2212, 3.2069, 8.2212]}]}, {"text": + "Half Booth", "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, 8.433, + 1.0931, 8.433], "words": [{"text": "Half", "boundingBox": [1.0931, 8.3163, + 1.3514, 8.3163, 1.3514, 8.433, 1.0931, 8.433]}, {"text": "Booth", "boundingBox": + [1.4028, 8.317, 1.7861, 8.317, 1.7861, 8.433, 1.4028, 8.433]}]}, {"text": + "Full booth", "boundingBox": [3.2139, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, + 3.2139, 8.4413], "words": [{"text": "Full", "boundingBox": [3.2139, 8.3253, + 3.4292, 8.3253, 3.4292, 8.4413, 3.2139, 8.4413]}, {"text": "booth", "boundingBox": + [3.4917, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, 3.4917, 8.4413]}]}, {"text": + "$350", "boundingBox": [5.8319, 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, + 8.4514], "words": [{"text": "$350", "boundingBox": [5.8319, 8.3062, 6.1583, + 8.3062, 6.1583, 8.4514, 5.8319, 8.4514]}]}, {"text": "25% discount on program + guide", "boundingBox": [3.2097, 8.5508, 5.3417, 8.5508, 5.3417, 8.6659, 3.2097, + 8.6659], "words": [{"text": "25%", "boundingBox": [3.2097, 8.5417, 3.4819, + 8.5417, 3.4819, 8.6545, 3.2097, 8.6545]}, {"text": "discount", "boundingBox": + [3.5333, 8.5372, 4.1014, 8.5372, 4.1014, 8.6531, 3.5333, 8.6531]}, {"text": + "on", "boundingBox": [4.1514, 8.5715, 4.3069, 8.5715, 4.3069, 8.6531, 4.1514, + 8.6531]}, {"text": "program", "boundingBox": [4.3681, 8.5715, 4.925, 8.5715, + 4.925, 8.6812, 4.3681, 8.6812]}, {"text": "guide", "boundingBox": [4.9806, + 8.5372, 5.3417, 8.5372, 5.3417, 8.6812, 4.9806, 8.6812]}]}, {"text": "advertisements", + "boundingBox": [3.2069, 8.7406, 4.2431, 8.7406, 4.2431, 8.8563, 3.2069, 8.8563], + "words": [{"text": "advertisements", "boundingBox": [3.2069, 8.7406, 4.2431, + 8.7406, 4.2431, 8.8562, 3.2069, 8.8562]}]}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": + [6.1278, 1.0688, 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": + "Vendor", "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, + 6.1278, 1.2403]}, {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, + 7.1514, 1.2392, 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, + 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": + "121", "boundingBox": [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, + 1.2392]}]}, {"text": "Vendor Details:", "boundingBox": [1.0042, 2.1774, 2.35, + 2.1774, 2.35, 2.3316, 1.0042, 2.3316], "words": [{"text": "Vendor", "boundingBox": + [1.0042, 2.1778, 1.65, 2.1778, 1.65, 2.3316, 1.0042, 2.3316]}, {"text": "Details:", + "boundingBox": [1.7236, 2.1771, 2.35, 2.1771, 2.35, 2.3316, 1.7236, 2.3316]}]}, + {"text": "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, + 2.1375, 2.9019, 1.0069, 2.9019], "words": [{"text": "Company", "boundingBox": + [1.0069, 2.775, 1.6514, 2.775, 1.6514, 2.9125, 1.0069, 2.9125]}, {"text": + "Name:", "boundingBox": [1.7014, 2.7764, 2.1375, 2.7764, 2.1375, 2.8851, 1.7014, + 2.8851]}]}, {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "words": [{"text": "Southridge", + "boundingBox": [2.1917, 2.7688, 2.9181, 2.7688, 2.9181, 2.9128, 2.1917, 2.9128]}, + {"text": "Video", "boundingBox": [2.9694, 2.7688, 3.3472, 2.7688, 3.3472, + 2.8847, 2.9694, 2.8847]}]}, {"text": "Contact:", "boundingBox": [1.0069, 3.1049, + 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149], "words": [{"text": "Contact:", + "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149]}]}, + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "words": [{"text": "Jamie@southridgevideo.com", + "boundingBox": [1.6208, 3.0986, 3.5764, 3.0986, 3.5764, 3.2427, 1.6208, 3.2427]}]}, + {"text": "Preferred Package:", "boundingBox": [1.0111, 3.4298, 2.2972, 3.4298, + 2.2972, 3.5589, 1.0111, 3.5589], "words": [{"text": "Preferred", "boundingBox": + [1.0111, 3.4295, 1.65, 3.4295, 1.65, 3.5465, 1.0111, 3.5465]}, {"text": "Package:", + "boundingBox": [1.7083, 3.4302, 2.2972, 3.4302, 2.2972, 3.5743, 1.7083, 3.5743]}]}, + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "words": [{"text": "Gold", "boundingBox": [2.3556, 3.4302, + 2.6542, 3.4302, 2.6542, 3.5462, 2.3556, 3.5462]}]}, {"text": "Special Requests:", + "boundingBox": [1.0056, 3.7645, 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], + "words": [{"text": "Special", "boundingBox": [1.0056, 3.7601, 1.475, 3.7601, + 1.475, 3.9042, 1.0056, 3.9042]}, {"text": "Requests:", "boundingBox": [1.5347, + 3.7684, 2.1903, 3.7684, 2.1903, 3.9042, 1.5347, 3.9042]}]}, {"text": "N/a", + "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], + "words": [{"text": "N/a", "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, + 2.4778, 3.8976, 2.2542, 3.8976]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/0/lines/0/words/0", + "#/readResults/0/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": + ["#/readResults/0/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": + "__Address__1", "boundingBox": null, "elements": null}, "value": {"text": + "Contoso Ltd. 2345 Dogwood Lane Birch, Kansas 98123", "boundingBox": [1.0069, + 3.5781, 2.3764, 3.5781, 2.3764, 4.1379, 1.0069, 4.1379], "elements": ["#/readResults/0/lines/7/words/0", + "#/readResults/0/lines/7/words/1", "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", + "#/readResults/0/lines/8/words/2", "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", + "#/readResults/0/lines/9/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": + 0, "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, + 4.8427], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": false}, {"text": "Included", "rowIndex": 0, - "columnIndex": 1, "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, - 4.8583, 2.6986, 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 1, "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], "isHeader": true, "isFooter": false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583], "confidence": + [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "isHeader": true, "isFooter": false}, {"text": "Gold Sponsor", "rowIndex": - 1, "columnIndex": 0, "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, - 5.0681, 1.0778, 5.0681], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, - "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], + 1, "columnIndex": 0, "boundingBox": [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, + 5.042, 1.0861, 5.042], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Pre-keynote thank you Logo on poster Full page ad in program guide", "rowIndex": 1, "columnIndex": - 1, "boundingBox": [3.2, 4.8736, 5.2083, 4.8736, 5.2083, 5.7139, 3.2, 5.7139], + 1, "boundingBox": [3.2139, 4.917, 5.2014, 4.917, 5.2014, 5.6885, 3.2139, 5.6885], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1", "#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2", "#/readResults/0/lines/18/words/0", "#/readResults/0/lines/18/words/1", "#/readResults/0/lines/18/words/2", "#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/19/words/4", "#/readResults/0/lines/19/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.825, - 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], "confidence": 1.0, + {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.8319, + 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "isHeader": false, "isFooter": false}, {"text": "Silver Sponsor", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [1.0833, 5.982, 2.0333, 5.982, 2.0333, + 6.1098, 1.0833, 6.1098], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Post-keynote thank you Logo on poster Half page ad in program guide", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [3.2, 5.9431, 5.2389, 5.9431, 5.2389, 6.7833, 3.2, 6.7833], - "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", + 1, "boundingBox": [3.2139, 5.9868, 5.2306, 5.9868, 5.2306, 6.7569, 3.2139, + 6.7569], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", "#/readResults/0/lines/21/words/1", "#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1", "#/readResults/0/lines/23/words/2", "#/readResults/0/lines/24/words/0", "#/readResults/0/lines/24/words/1", "#/readResults/0/lines/24/words/2", "#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1", "#/readResults/0/lines/25/words/2", "#/readResults/0/lines/25/words/3", "#/readResults/0/lines/25/words/4", "#/readResults/0/lines/25/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.825, - 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, 6.1375], "confidence": 1.0, + {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.8319, + 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "isHeader": false, "isFooter": false}, {"text": "Bronze Sponsor", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, 2.1389, - 6.9931, 1.0778, 6.9931], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [1.0931, 6.8407, 2.1361, 6.8407, 2.1361, + 6.9647, 1.0931, 6.9647], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Logo on poster 50% discount on program guide advertisements", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [3.2, 6.7986, 5.35, 6.7986, 5.35, 7.6292, 3.2, 7.6292], + 1, "boundingBox": [3.2069, 6.842, 5.3417, 6.842, 5.3417, 7.5865, 3.2069, 7.5865], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2", "#/readResults/0/lines/30/words/3", "#/readResults/0/lines/30/words/4", "#/readResults/0/lines/31/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931], "confidence": 1.0, + {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "isHeader": false, "isFooter": false}, {"text": "Full Booth", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, - 7.8417, 1.0778, 7.8417], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0", "#/readResults/0/lines/32/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth 50% discount on program guide advertisements", "rowIndex": 4, "columnIndex": 1, "boundingBox": - [3.2, 7.6472, 5.35, 7.6472, 5.35, 8.2639, 3.2, 8.2639], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", + [3.2069, 7.6903, 5.3417, 7.6903, 5.3417, 8.2212, 3.2069, 8.2212], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", "#/readResults/0/lines/33/words/1", "#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1", "#/readResults/0/lines/35/words/2", "#/readResults/0/lines/35/words/3", "#/readResults/0/lines/35/words/4", "#/readResults/0/lines/36/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": - false, "isFooter": false}, {"text": "Half Booth", "rowIndex": 5, "columnIndex": - 0, "boundingBox": [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, - 8.4764], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0", - "#/readResults/0/lines/37/words/1"], "isHeader": false, "isFooter": false}, - {"text": "Full booth 25% discount on program guide advertisements", "rowIndex": - 5, "columnIndex": 1, "boundingBox": [3.2, 8.2819, 5.35, 8.2819, 5.35, 8.9, - 3.2, 8.9], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", + {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.8319, + 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], + "isHeader": false, "isFooter": false}, {"text": "Half Booth", "rowIndex": + 5, "columnIndex": 0, "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, + 8.433, 1.0931, 8.433], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/37/words/0", "#/readResults/0/lines/37/words/1"], + "isHeader": false, "isFooter": false}, {"text": "Full booth 25% discount on + program guide advertisements", "rowIndex": 5, "columnIndex": 1, "boundingBox": + [3.2069, 8.3253, 5.3417, 8.3253, 5.3417, 8.8563, 3.2069, 8.8563], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", "#/readResults/0/lines/38/words/1", "#/readResults/0/lines/40/words/0", "#/readResults/0/lines/40/words/1", "#/readResults/0/lines/40/words/2", "#/readResults/0/lines/40/words/3", "#/readResults/0/lines/40/words/4", "#/readResults/0/lines/41/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.825, 8.2736, - 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": - false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": - [{"key": {"text": "Vendor #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, - 7.1667, 1.2708, 6.1389, 1.2708], "elements": ["#/readResults/1/lines/0/words/0", + {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.8319, + 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, 8.4514], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/1/lines/0/words/0", "#/readResults/1/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": - [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], "elements": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": ["#/readResults/1/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Company Name:", "boundingBox": [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, - 1.0028, 2.9278], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, - "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7611, 3.3542, - 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], "elements": ["#/readResults/1/lines/4/words/0", + "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, 2.1375, 2.9019, + 1.0069, 2.9019], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, + "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "elements": ["#/readResults/1/lines/4/words/0", "#/readResults/1/lines/4/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, - 1.0069, 3.2472], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": - {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, 3.5667, - 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], "elements": ["#/readResults/1/lines/6/words/0"]}, + "Contact:", "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, + 1.0069, 3.2149], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "elements": ["#/readResults/1/lines/6/words/0"]}, "confidence": 0.53}, {"key": {"text": "Preferred Package:", "boundingBox": - [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], "elements": + [1.0111, 3.4298, 2.2972, 3.4298, 2.2972, 3.5589, 1.0111, 3.5589], "elements": ["#/readResults/1/lines/7/words/0", "#/readResults/1/lines/7/words/1"]}, "value": - {"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, - 2.35, 3.5806], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": - 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0167, 3.7611, - 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "elements": ["#/readResults/1/lines/9/words/0", + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": + 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0056, 3.7645, + 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], "elements": ["#/readResults/1/lines/9/words/0", "#/readResults/1/lines/9/words/1"]}, "value": {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "elements": - ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}, {"key": {"text": - "__Tokens__1", "boundingBox": null, "elements": null}, "value": {"text": "Vendor - Details:", "boundingBox": [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, - 2.3722], "elements": ["#/readResults/1/lines/2/words/0", "#/readResults/1/lines/2/words/1"]}, - "confidence": 1.0}], "tables": [], "clusterId": 1}], "documentResults": [], - "errors": []}}' + [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], "elements": + ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}], "tables": [], + "clusterId": 1}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 3d5fde7e-6e4e-45ef-a0e5-148e86cd46bb - content-length: '36398' + apim-request-id: c37c6d0f-1baf-4a94-9c53-5e65d6a2ee0a + content-length: '32950' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:45 GMT + date: Mon, 14 Sep 2020 19:51:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/75e0875a-d75b-421e-b113-a5c2b536ca94/analyzeresults/e5844861-52af-46e0-8ab6-052847331534 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/208757b6-34ba-4e01-98dd-4624ae384e16/analyzeresults/d7cda754-0efb-4a12-b555-2c4047d11cf7 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml index fd05a0a1e4c9..80db132a4282 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled.yaml @@ -3,111 +3,113 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: fc9969c1-7ec5-441c-93ca-4d0cf08cc18e + apim-request-id: 693fa5d9-dfd2-4fff-9fdc-3407841eb2b0 content-length: '0' - date: Fri, 10 Jul 2020 18:49:46 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833 + date: Mon, 14 Sep 2020 19:51:22 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '39' + x-envoy-upstream-service-time: '64' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "08d7a88d-444f-4d4f-b534-a547d97f5833", "status": - "creating", "createdDateTime": "2020-07-10T18:49:46Z", "lastUpdatedDateTime": - "2020-07-10T18:49:46Z"}}' + string: '{"modelInfo": {"modelId": "55d7bca8-1b6e-4992-a6f4-226c7214fd65", "status": + "creating", "createdDateTime": "2020-09-14T19:51:22Z", "lastUpdatedDateTime": + "2020-09-14T19:51:22Z"}}' headers: - apim-request-id: 1be3d5af-1835-4813-868b-4a9bed17808c + apim-request-id: 305b1cbd-a1bc-4200-aa43-45516b7185c7 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:51 GMT + date: Mon, 14 Sep 2020 19:51:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "08d7a88d-444f-4d4f-b534-a547d97f5833", "status": - "creating", "createdDateTime": "2020-07-10T18:49:46Z", "lastUpdatedDateTime": - "2020-07-10T18:49:46Z"}}' + string: '{"modelInfo": {"modelId": "55d7bca8-1b6e-4992-a6f4-226c7214fd65", "status": + "creating", "createdDateTime": "2020-09-14T19:51:22Z", "lastUpdatedDateTime": + "2020-09-14T19:51:22Z"}}' headers: - apim-request-id: 64e4e3de-5707-46fe-b0a6-c60da9b5a85b + apim-request-id: 017c5596-754f-4c64-b47c-c26a3cfd7ce9 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:56 GMT + date: Mon, 14 Sep 2020 19:51:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "08d7a88d-444f-4d4f-b534-a547d97f5833", "status": - "ready", "createdDateTime": "2020-07-10T18:49:46Z", "lastUpdatedDateTime": - "2020-07-10T18:49:58Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "55d7bca8-1b6e-4992-a6f4-226c7214fd65", "status": + "ready", "createdDateTime": "2020-09-14T19:51:22Z", "lastUpdatedDateTime": + "2020-09-14T19:51:35Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 87872a77-423e-4c5a-b44e-537636d0ec04 + apim-request-id: 652eca16-9dc8-471e-bc04-729ab627bb7d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:02 GMT + date: Mon, 14 Sep 2020 19:51:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8520,195 +8522,199 @@ interactions: UUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFA BRQAUUAFFABRQB//2Q== headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: d7add912-bebc-46d9-b434-981d332eed3c + apim-request-id: 5ff6650e-66e8-4657-9867-5a80db39fab7 content-length: '0' - date: Fri, 10 Jul 2020 18:50:03 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyzeresults/bb6ed2c5-79f9-405f-8fc3-eb390f79a22a + date: Mon, 14 Sep 2020 19:51:39 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyzeresults/d4020053-8c3a-4859-ab04-e0cfaf83fa32 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1113' + x-envoy-upstream-service-time: '54' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyzeresults/d4020053-8c3a-4859-ab04-e0cfaf83fa32 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:51:40Z", "lastUpdatedDateTime": + "2020-09-14T19:51:41Z", "analyzeResult": null}' + headers: + apim-request-id: df78aa7a-2edc-41dd-a548-16badb47c4a4 + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:45 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '23' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyzeresults/d4020053-8c3a-4859-ab04-e0cfaf83fa32 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyzeresults/bb6ed2c5-79f9-405f-8fc3-eb390f79a22a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyzeresults/d4020053-8c3a-4859-ab04-e0cfaf83fa32 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:04Z", - "lastUpdatedDateTime": "2020-07-10T18:50:08Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:51:40Z", + "lastUpdatedDateTime": "2020-09-14T19:51:47Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": null}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - null}, "value": {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, - 351.0, 528.0, 381.0, 371.0, 381.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, - 420.0, 167.0, 420.0], "elements": null}, "value": {"text": "www.herolimited.com", - "boundingBox": [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0], "elements": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": null}, "value": {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, + 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": null}, "value": + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "elements": null}, "confidence": 1.0}, {"key": + {"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0], "elements": null}, "value": {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": null}, "value": - {"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, - 451.0, 1168.0, 451.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": null}, "value": {"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, - 460.0, 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": null}, "value": - {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, - 1282.0, 491.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Vendor - Name:", "boundingBox": [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], - "elements": null}, "value": {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": null}, "confidence": - 0.7}, {"key": {"text": "Company Name:", "boundingBox": [162.0, 646.0, 373.0, - 646.0, 373.0, 678.0, 162.0, 678.0], "elements": null}, "value": {"text": "Higgly - Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, 628.0, 678.0, 379.0, - 678.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", - "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": - null}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [615.0, 723.0, - 707.0, 723.0, 707.0, 752.0, 615.0, 752.0], "elements": null}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", - "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, 166.0, 881.0], "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, - 852.0, 445.0, 881.0, 258.0, 881.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, - 378.0, 919.0, 169.0, 919.0], "elements": null}, "value": {"text": "Jupiter - Book Supply", "boundingBox": [385.0, 888.0, 624.0, 888.0, 624.0, 919.0, 385.0, + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": null}, "value": + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "elements": null}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": null}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": + [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "elements": null}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": null}, "confidence": 0.7}, {"key": + {"text": "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, + 677.0, 160.0, 677.0], "elements": null}, "value": {"text": "Higgly Wiggly + Books", "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], + "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": null}, + "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": null}, + "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [613.0, 722.0, + 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "elements": null}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", + "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "elements": + null}, "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "elements": null}, "confidence": 0.53}, + {"key": {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, + 374.0, 919.0, 164.0, 919.0], "elements": null}, "value": {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, 919.0], "elements": null}, "confidence": 0.53}, {"key": {"text": "Address:", - "boundingBox": [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": null}, "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": - [283.0, 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": null}, + [279.0, 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": null}, "value": {"text": - "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, - 857.0, 992.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", - "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], - "elements": null}, "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, - 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, - 1293.0, 1643.0, 1242.0, 1643.0], "elements": null}, "value": {"text": "$4.00", - "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0], + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": null}, "value": {"text": + "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, + 855.0, 990.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", + "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], + "elements": null}, "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, + 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, + 1296.0, 1643.0, 1238.0, 1643.0], "elements": null}, "value": {"text": "$4.00", + "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": - [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": - null}, "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, - 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, 1797.0, - 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": null}, "value": + [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": + null}, "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, + 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, 1796.0, + 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": null}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer - you 25% off you next total purchase.", "boundingBox": [170.0, 1880.0, 1511.0, - 1880.0, 1511.0, 1992.0, 170.0, 1992.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": null}, "value": - {"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 141.0, 168.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__3", - "boundingBox": null, "elements": null}, "value": {"text": "Shipped To", "boundingBox": - [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped From", "boundingBox": [169.0, 784.0, 445.0, - 784.0, 445.0, 831.0, 169.0, 831.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": null}, "value": - {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, - 1708.0, 485.0, 1708.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__7", - "boundingBox": null, "elements": null}, "value": {"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": - null}, "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": - [{"text": "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + you 25% off you next total purchase.", "boundingBox": [169.0, 1880.0, 1511.0, + 1880.0, 1511.0, 1992.0, 169.0, 1992.0], "elements": null}, "confidence": 0.53}], + "tables": [{"rows": 5, "columns": 4, "cells": [{"text": "Details", "rowIndex": + 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, + 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Quantity", + "rowIndex": 0, "columnIndex": 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, + 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "Unit + Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, + 1047.0, 1269.0, 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, + "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": + "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": [1383.0, 1047.0, + 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, - {"text": "Quantity", "rowIndex": 0, "columnIndex": 1, "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Unit Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": - [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, - 1098.0, 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": [172.0, + 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "confidence": 1.0, "rowSpan": + 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1243.0, - 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1241.0, + 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": 3, "boundingBox": - [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "confidence": + [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": 2, "columnIndex": 0, "boundingBox": - [172.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 172.0, 1162.0], "confidence": + [170.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [862.0, - 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [861.0, + 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": 3, "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0], "confidence": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": 3, "columnIndex": 0, "boundingBox": - [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 172.0, 1205.0], "confidence": + [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": 1, "boundingBox": [863.0, - 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], "confidence": 1.0, "rowSpan": + 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": 3, "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0], "confidence": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": 4, "columnIndex": 0, "boundingBox": - [171.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 171.0, 1248.0], "confidence": + [170.0, 1222.0, 429.0, 1222.0, 429.0, 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, - 1221.0, 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, + 1223.0, 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1242.0, - 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1239.0, + 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": 3, "boundingBox": - [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "confidence": + [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: bd7ddc81-1a9e-41a7-9300-f2d0dc94036a - content-length: '11800' + apim-request-id: 55bd4335-ef23-4b20-ac51-25e35da40d26 + content-length: '10045' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:09 GMT + date: Mon, 14 Sep 2020 19:51:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '957' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/08d7a88d-444f-4d4f-b534-a547d97f5833/analyzeresults/bb6ed2c5-79f9-405f-8fc3-eb390f79a22a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/55d7bca8-1b6e-4992-a6f4-226c7214fd65/analyzeresults/d4020053-8c3a-4859-ab04-e0cfaf83fa32 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml index cc1d3663d2b0..7449d94283be 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_form_unlabeled_blank_page.yaml @@ -3,87 +3,113 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 22a77677-e522-43b1-a8b4-ccbf7f840d02 + apim-request-id: 5cbce8c7-a6b3-4a2a-94e7-bfdaf5a880d4 content-length: '0' - date: Fri, 10 Jul 2020 18:50:09 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355 + date: Mon, 14 Sep 2020 19:51:56 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '200' + x-envoy-upstream-service-time: '38' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "71ff37d8-5478-4205-b18e-19c8d9062855", "status": + "creating", "createdDateTime": "2020-09-14T19:51:56Z", "lastUpdatedDateTime": + "2020-09-14T19:51:56Z"}}' + headers: + apim-request-id: 2631371b-d48f-412f-943f-1238bbc5a67c + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:52:01 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '15' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca9e400e-d970-41a7-9824-2652f4d3b355", "status": - "creating", "createdDateTime": "2020-07-10T18:50:10Z", "lastUpdatedDateTime": - "2020-07-10T18:50:10Z"}}' + string: '{"modelInfo": {"modelId": "71ff37d8-5478-4205-b18e-19c8d9062855", "status": + "creating", "createdDateTime": "2020-09-14T19:51:56Z", "lastUpdatedDateTime": + "2020-09-14T19:51:56Z"}}' headers: - apim-request-id: 9a01d98b-fc15-44d6-b719-b76cecad6937 + apim-request-id: fd25dc76-663d-4968-9fb0-110619159d6e content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:15 GMT + date: Mon, 14 Sep 2020 19:52:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca9e400e-d970-41a7-9824-2652f4d3b355", "status": - "ready", "createdDateTime": "2020-07-10T18:50:10Z", "lastUpdatedDateTime": - "2020-07-10T18:50:20Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "71ff37d8-5478-4205-b18e-19c8d9062855", "status": + "ready", "createdDateTime": "2020-09-14T19:51:56Z", "lastUpdatedDateTime": + "2020-09-14T19:52:11Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 23d3b323-f13b-479d-8bf4-239ea4dc7503 + apim-request-id: 2febd503-8dfd-4817-871c-5db6acfea3c6 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:20 GMT + date: Mon, 14 Sep 2020 19:52:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -538,51 +564,76 @@ interactions: OUJBMDhFRkVFNjYyMDE+XSAvUHJldiAyNDg2OC9YUmVmU3RtIDI0NTg2Pj4NCnN0YXJ0eHJlZg0K MjU0ODQNCiUlRU9G headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 3f1c4fee-6c4e-43a8-a262-d73285f933b1 + apim-request-id: 5ead8e5c-627a-4e5e-aede-a1a88eff9b14 content-length: '0' - date: Fri, 10 Jul 2020 18:50:20 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyzeresults/19fa2e64-dfed-4a0d-b8e3-3293539da2c1 + date: Mon, 14 Sep 2020 19:52:12 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyzeresults/d7ac8ccd-138a-4fe6-8635-a9430ab47b33 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '73' + x-envoy-upstream-service-time: '43' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyzeresults/d7ac8ccd-138a-4fe6-8635-a9430ab47b33 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:52:12Z", "lastUpdatedDateTime": + "2020-09-14T19:52:12Z", "analyzeResult": null}' + headers: + apim-request-id: f1dec4e7-286b-4578-b849-288b30f28713 + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:52:17 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyzeresults/d7ac8ccd-138a-4fe6-8635-a9430ab47b33 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyzeresults/19fa2e64-dfed-4a0d-b8e3-3293539da2c1 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyzeresults/d7ac8ccd-138a-4fe6-8635-a9430ab47b33 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:21Z", - "lastUpdatedDateTime": "2020-07-10T18:50:25Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:52:12Z", + "lastUpdatedDateTime": "2020-09-14T19:52:22Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": [], "tables": [], "clusterId": null}], "documentResults": [], "errors": []}}' headers: - apim-request-id: b1201e5c-dea1-4108-8a2e-23ffafbfaffb + apim-request-id: b36c294b-4d9d-4853-808c-b7f9ef48fa34 content-length: '374' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:25 GMT + date: Mon, 14 Sep 2020 19:52:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca9e400e-d970-41a7-9824-2652f4d3b355/analyzeresults/19fa2e64-dfed-4a0d-b8e3-3293539da2c1 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/71ff37d8-5478-4205-b18e-19c8d9062855/analyzeresults/d7ac8ccd-138a-4fe6-8635-a9430ab47b33 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml index abbb369b3036..69a699369791 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_labeled_transform.yaml @@ -3,69 +3,72 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 799877aa-c773-4f0d-805b-b012a72c4cc3 + apim-request-id: c73b50cd-92a2-4d77-bd19-c4d2c4b00423 content-length: '0' - date: Fri, 10 Jul 2020 18:50:27 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f + date: Mon, 14 Sep 2020 19:51:50 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '126' + x-envoy-upstream-service-time: '41' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8eb31681-0af3-449d-9214-38a249546b3f", "status": - "ready", "createdDateTime": "2020-07-10T18:50:26Z", "lastUpdatedDateTime": - "2020-07-10T18:50:28Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "f94c4cf2-4ee9-42d9-aefe-36d82cf689d3", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:51:51Z", + "lastUpdatedDateTime": "2020-09-14T19:51:53Z"}, "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": []}}' headers: - apim-request-id: 93c6d5a8-e3e8-44cb-b33c-972077625fad + apim-request-id: f572a096-71aa-484e-8f24-ce7b87e06756 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:32 GMT + date: Mon, 14 Sep 2020 19:51:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -1981,141 +1984,119 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 7677d9af-8e92-4eef-8ea8-fe848e76effa + apim-request-id: 2f833f33-c52f-45b8-a680-755e384eb19f content-length: '0' - date: Fri, 10 Jul 2020 18:50:32 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a + date: Mon, 14 Sep 2020 19:51:55 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyzeresults/dd51a0ba-275d-475b-a32b-b28f088e6a96 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '82' + x-envoy-upstream-service-time: '52' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyze?includeTextDetails=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:50:32Z", - "lastUpdatedDateTime": "2020-07-10T18:50:32Z"}' - headers: - apim-request-id: ea24d12b-593e-458e-8747-f6603947523a - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:37 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyzeresults/dd51a0ba-275d-475b-a32b-b28f088e6a96 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:50:32Z", - "lastUpdatedDateTime": "2020-07-10T18:50:41Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T19:51:56Z", + "lastUpdatedDateTime": "2020-09-14T19:51:59Z"}' headers: - apim-request-id: 357cca02-3b8b-4abf-8f37-bd69512f3f29 + apim-request-id: 3353ada6-ac99-4643-aeeb-0ed00ed0edd9 content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:42 GMT + date: Mon, 14 Sep 2020 19:52:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyzeresults/dd51a0ba-275d-475b-a32b-b28f088e6a96 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyzeresults/dd51a0ba-275d-475b-a32b-b28f088e6a96 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:32Z", - "lastUpdatedDateTime": "2020-07-10T18:50:45Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:51:56Z", + "lastUpdatedDateTime": "2020-09-14T19:52:06Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -2197,14 +2178,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -2338,10 +2325,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -2438,82 +2433,75 @@ interactions: 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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"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, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}, "CustomerAddress": {"type": - "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit - Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, - 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", - "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", - "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, + "documentResults": [{"docType": "custom:f94c4cf2-4ee9-42d9-aefe-36d82cf689d3", + "modelId": "f94c4cf2-4ee9-42d9-aefe-36d82cf689d3", "pageRange": [1, 3], "fields": + {"Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, + 6.015, 1.595], "confidence": 0.971, "elements": ["#/readResults/2/lines/3/words/0", + "#/readResults/2/lines/3/words/1"]}, "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, "elements": ["#/readResults/0/lines/37/words/1"]}, "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, "elements": - ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", - "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", - "#/analyzeResult/readResults/0/lines/7/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/14/words/0"]}, - "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "CustomerName": {"type": - "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", "page": - 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, 1.45, 6.8950000000000005, - 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", - "#/analyzeResult/readResults/0/lines/3/words/1"]}, "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, "elements": - ["#/analyzeResult/readResults/0/lines/38/words/1", "#/analyzeResult/readResults/0/lines/38/words/2"]}, - "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, "elements": - ["#/analyzeResult/readResults/0/lines/8/words/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, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/15/words/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, "elements": ["#/analyzeResult/readResults/0/lines/9/words/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, "elements": ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "Merchant2": - {"type": "string", "valueString": "Company", "text": "Company", "page": 1, + ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, "FirstItem": + {"type": "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": + [1.085, 3.21, 1.175, 3.21, 1.175, 3.32, 1.085, 3.32], "confidence": 1.0, "elements": + ["#/readResults/0/lines/13/words/0"]}, "FirstQuantity": {"type": "string", + "valueString": "1", "text": "1", "page": 1, "boundingBox": [3.26, 3.21, 3.32, + 3.21, 3.32, 3.32, 3.26, 3.32], "confidence": 1.0, "elements": ["#/readResults/0/lines/14/words/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, "elements": ["#/readResults/2/lines/37/words/1"]}, "Merchant2": + {"type": "string", "valueString": "Company", "text": "Company", "page": 3, "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/0/words/0"]}}}], "errors": - []}}' + 1.0, "elements": ["#/readResults/2/lines/0/words/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, "elements": + ["#/readResults/0/lines/35/words/1"]}, "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, "elements": ["#/readResults/0/lines/34/words/1"]}, + "Tip": {"type": "string", "valueString": "100.00", "text": "100.00", "page": + 1, "boundingBox": [5.81, 5.345, 6.26, 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": + 1.0, "elements": ["#/readResults/0/lines/36/words/1"]}, "FirstPrice": {"type": + "string", "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": + [5.425, 3.21, 5.78, 3.21, 5.78, 3.32, 5.425, 3.32], "confidence": 1.0, "elements": + ["#/readResults/0/lines/15/words/0"]}, "Merchant": {"type": "string", "valueString": + "B", "text": "B", "page": 3, "boundingBox": [1.685, 1.125, 1.765, 1.125, 1.765, + 1.245, 1.685, 1.245], "confidence": 0.5, "elements": ["#/readResults/2/lines/0/words/1"]}, + "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.676, "elements": ["#/readResults/2/lines/38/words/1", + "#/readResults/2/lines/38/words/2"]}, "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": 0.952, "elements": + ["#/readResults/0/lines/38/words/1", "#/readResults/0/lines/38/words/2"]}, + "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": + "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.935, 2.12, 6.935, + 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/readResults/0/lines/8/words/0"]}, + "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, + WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015, + 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, 2.03], "confidence": 1.0, "elements": ["#/readResults/0/lines/4/words/0", + "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "CustomerName": {"type": "string", "valueString": + "Bilbo Baggins", "text": "Bilbo Baggins", "page": 1, "boundingBox": [6.015, + 1.45, 6.895, 1.45, 6.895, 1.595, 6.015, 1.595], "confidence": 0.971, "elements": + ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, "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, "elements": ["#/readResults/0/lines/9/words/0"]}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: - apim-request-id: ffd0715b-3270-4f2c-b84d-76be945f9dc1 - content-length: '32675' + apim-request-id: 44fe7c7d-3150-491d-b103-ea320187cb16 + content-length: '32919' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:47 GMT + date: Mon, 14 Sep 2020 19:52:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '24' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8eb31681-0af3-449d-9214-38a249546b3f/analyzeresults/a808e68f-fefd-43c8-916c-2e9a3d472d4a + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f94c4cf2-4ee9-42d9-aefe-36d82cf689d3/analyzeresults/dd51a0ba-275d-475b-a32b-b28f088e6a96 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml index 0dbb19315bb6..4d82f6474048 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_custom_forms_multipage_unlabeled_transform.yaml @@ -3,89 +3,139 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '301' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 9003433f-dcfc-43ed-ac8f-710c6aa30c6b + apim-request-id: d8c93253-8455-41f4-9497-c66e06abacdc content-length: '0' - date: Fri, 10 Jul 2020 18:50:53 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637 + date: Mon, 14 Sep 2020 19:51:42 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '5233' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c3b52a90-19ca-4e4c-8709-4e98ec7f4443", "status": + "creating", "createdDateTime": "2020-09-14T19:51:42Z", "lastUpdatedDateTime": + "2020-09-14T19:51:42Z"}}' + headers: + apim-request-id: a81f033c-1c3b-4da3-8f04-bb3338f02b4d + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:51:46 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '15' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "47f5bb1d-265c-462a-a9df-88bf831af637", "status": - "creating", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": - "2020-07-10T18:50:53Z"}}' + string: '{"modelInfo": {"modelId": "c3b52a90-19ca-4e4c-8709-4e98ec7f4443", "status": + "creating", "createdDateTime": "2020-09-14T19:51:42Z", "lastUpdatedDateTime": + "2020-09-14T19:51:42Z"}}' headers: - apim-request-id: 7b55d044-412b-49d9-9952-59c117b28b06 + apim-request-id: 3552a33e-a7f5-4a8a-b968-dfa26f158380 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:59 GMT + date: Mon, 14 Sep 2020 19:51:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "47f5bb1d-265c-462a-a9df-88bf831af637", "status": - "creating", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": - "2020-07-10T18:50:53Z"}}' + string: '{"modelInfo": {"modelId": "c3b52a90-19ca-4e4c-8709-4e98ec7f4443", "status": + "creating", "createdDateTime": "2020-09-14T19:51:42Z", "lastUpdatedDateTime": + "2020-09-14T19:51:42Z"}}' headers: - apim-request-id: 84f74e21-f615-49df-9703-11ad17f904cf + apim-request-id: 789ce522-cddc-4a3d-99d2-2638427ed2ad content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:04 GMT + date: Mon, 14 Sep 2020 19:51:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "47f5bb1d-265c-462a-a9df-88bf831af637", "status": - "ready", "createdDateTime": "2020-07-10T18:50:53Z", "lastUpdatedDateTime": - "2020-07-10T18:51:07Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "c3b52a90-19ca-4e4c-8709-4e98ec7f4443", "status": + "creating", "createdDateTime": "2020-09-14T19:51:42Z", "lastUpdatedDateTime": + "2020-09-14T19:51:42Z"}}' + headers: + apim-request-id: f7c3f15c-8c03-4629-97b1-77a7eb425b1f + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:52:02 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c3b52a90-19ca-4e4c-8709-4e98ec7f4443", "status": + "ready", "createdDateTime": "2020-09-14T19:51:42Z", "lastUpdatedDateTime": + "2020-09-14T19:52:06Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -95,17 +145,17 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 549a1ac2-cbc1-4936-8ef0-4e411074e7f9 + apim-request-id: d197b43e-9cf6-4082-98de-33ee3dfbb272 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:09 GMT + date: Mon, 14 Sep 2020 19:52:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443?includeKeys=true - request: body: !!binary | JVBERi0xLjcNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu @@ -2021,582 +2071,597 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 1eb76018-7df2-4a57-803b-4345c353ae9e + apim-request-id: 2e928fa8-69ec-4d07-84d5-a61314b5285e content-length: '0' - date: Fri, 10 Jul 2020 18:51:09 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 + date: Mon, 14 Sep 2020 19:52:07 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '159' + x-envoy-upstream-service-time: '44' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyze?includeTextDetails=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T19:52:08Z", "lastUpdatedDateTime": + "2020-09-14T19:52:08Z", "analyzeResult": null}' + headers: + apim-request-id: 52b87c29-b95c-4616-b5dd-dc20a9bcbf88 + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 19:52:13 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '15' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:51:09Z", "lastUpdatedDateTime": - "2020-07-10T18:51:11Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:52:08Z", "lastUpdatedDateTime": + "2020-09-14T19:52:08Z", "analyzeResult": null}' headers: - apim-request-id: 3aec667b-26bf-4bfe-bf13-d76fd4ddbd56 + apim-request-id: d5f0fc39-0697-4a39-aec1-4f1e7b137a18 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:14 GMT + date: Mon, 14 Sep 2020 19:52:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:09Z", - "lastUpdatedDateTime": "2020-07-10T18:51:16Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": - "Company", "boundingBox": [0.8764, 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, - 0.8764, 1.2958]}, {"text": "A", "boundingBox": [1.6667, 1.1014, 1.7778, 1.1014, - 1.7778, 1.2958, 1.6667, 1.2958]}, {"text": "Invoice", "boundingBox": [1.8222, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 1.8222, 1.2958]}]}, {"text": "Invoice - For:", "boundingBox": [6.0028, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, - 1.2667], "words": [{"text": "Invoice", "boundingBox": [6.0028, 1.0431, 6.6472, - 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, {"text": "For:", "boundingBox": - [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.6958, 1.2667]}]}, {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": [0.8764, 1.4681, - 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": "Bilbo Baggins", - "boundingBox": [6.0028, 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.0028, 1.6056], - "words": [{"text": "Bilbo", "boundingBox": [6.0028, 1.4389, 6.3472, 1.4389, - 6.3472, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": [6.3819, - 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.3819, 1.6056]}]}, {"text": "123 - Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, 1.6597, - 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", "boundingBox": - [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, {"text": - "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, 6.7889, - 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, - 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, 3.3292, 3.3597, 3.2444, - 3.3597], "words": [{"text": "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, - 3.3292, 3.3597, 3.2444, 3.3597]}]}, {"text": "10.99", "boundingBox": [5.4083, - 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, 3.3597], "words": [{"text": - "10.99", "boundingBox": [5.4083, 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, - 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, 1.1708, 3.4056, - 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": [1.0806, - 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": "2", - "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, 3.5722, 3.2444, 3.5722], - "words": [{"text": "2", "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, - 3.5722, 3.2444, 3.5722]}]}, {"text": "14.67", "boundingBox": [5.4083, 3.4056, - 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722], "words": [{"text": "14.67", - "boundingBox": [5.4083, 3.4056, 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722]}]}, - {"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, - 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, - 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": "4", "boundingBox": [3.2444, - 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, 3.7833], "words": [{"text": - "4", "boundingBox": [3.2444, 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, - 3.7833]}]}, {"text": "15.66", "boundingBox": [5.4083, 3.6167, 5.7861, 3.6167, - 5.7861, 3.7833, 5.4083, 3.7833], "words": [{"text": "15.66", "boundingBox": - [5.4083, 3.6167, 5.7861, 3.6167, 5.7861, 3.7833, 5.4083, 3.7833]}]}, {"text": - "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, - 3.9931], "words": [{"text": "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, - 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": "1", "boundingBox": [3.2444, - 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, 3.9931], "words": [{"text": - "1", "boundingBox": [3.2444, 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, - 3.9931]}]}, {"text": "12.00", "boundingBox": [5.4083, 3.8264, 5.7861, 3.8264, - 5.7861, 3.9931, 5.4083, 3.9931], "words": [{"text": "12.00", "boundingBox": - [5.4083, 3.8264, 5.7861, 3.8264, 5.7861, 3.9931, 5.4083, 3.9931]}]}, {"text": - "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, - 4.2028], "words": [{"text": "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, - 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": "4", "boundingBox": [3.2444, - 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, 4.2028], "words": [{"text": - "4", "boundingBox": [3.2444, 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, - 4.2028]}]}, {"text": "10.00", "boundingBox": [5.4083, 4.0361, 5.7875, 4.0361, - 5.7875, 4.2028, 5.4083, 4.2028], "words": [{"text": "10.00", "boundingBox": - [5.4083, 4.0361, 5.7875, 4.0361, 5.7875, 4.2028, 5.4083, 4.2028]}]}, {"text": - "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, - 4.4125], "words": [{"text": "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, - 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": "6", "boundingBox": [3.2444, - 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, 4.4125], "words": [{"text": - "6", "boundingBox": [3.2444, 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, - 4.4125]}]}, {"text": "12.00", "boundingBox": [5.4083, 4.2458, 5.7861, 4.2458, - 5.7861, 4.4125, 5.4083, 4.4125], "words": [{"text": "12.00", "boundingBox": - [5.4083, 4.2458, 5.7861, 4.2458, 5.7861, 4.4125, 5.4083, 4.4125]}]}, {"text": - "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, - 4.6236], "words": [{"text": "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, - 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": "8", "boundingBox": [3.2444, - 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, 4.6236], "words": [{"text": - "8", "boundingBox": [3.2444, 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, - 4.6236]}]}, {"text": "22.00", "boundingBox": [5.4083, 4.4569, 5.7875, 4.4569, - 5.7875, 4.6236, 5.4083, 4.6236], "words": [{"text": "22.00", "boundingBox": - [5.4083, 4.4569, 5.7875, 4.4569, 5.7875, 4.6236, 5.4083, 4.6236]}]}, {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "words": [{"text": "Subtotal:", "boundingBox": [5.5028, 4.8861, - 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528]}]}, {"text": "300.00", "boundingBox": - [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, 5.0528, 6.1722, 5.0528], "words": - [{"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "words": [{"text": "Tax:", - "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, - {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, 6.2069, - 5.2736, 5.8292, 5.2736], "words": [{"text": "30.00", "boundingBox": [5.8292, - 5.1069, 6.2069, 5.1069, 6.2069, 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], - "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, - 5.7611, 5.4931, 5.5028, 5.4931]}]}, {"text": "100.00", "boundingBox": [5.7986, - 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, 5.7986, 5.4931], "words": [{"text": - "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, - 5.7986, 5.4931]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, - 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "words": [{"text": "Total:", "boundingBox": - [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": - "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, 6.4028, 5.7139, - 5.9389, 5.7139], "words": [{"text": "430.00", "boundingBox": [5.9389, 5.5472, - 6.4028, 5.5472, 6.4028, 5.7139, 5.9389, 5.7139]}]}, {"text": "Signature:", - "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], - "words": [{"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, - 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Bilbo Baggins__________", "boundingBox": - [1.7472, 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "words": - [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6431, 2.4333, 6.6431, 2.4333, - 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", "boundingBox": [2.4708, - 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 2.4708, 6.8097]}]}]}, {"page": 2, - "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": - 3, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": - "Company B Invoice", "boundingBox": [0.8764, 1.1014, 2.3833, 1.1014, 2.3833, - 1.2958, 0.8764, 1.2958], "words": [{"text": "Company", "boundingBox": [0.8764, - 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, 0.8764, 1.2958]}, {"text": "B", "boundingBox": - [1.6667, 1.1014, 1.7722, 1.1014, 1.7722, 1.2958, 1.6667, 1.2958]}, {"text": - "Invoice", "boundingBox": [1.8167, 1.1014, 2.3833, 1.1014, 2.3833, 1.2958, - 1.8167, 1.2958]}]}, {"text": "Invoice For:", "boundingBox": [6.0028, 1.0431, - 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, 1.2667], "words": [{"text": "Invoice", - "boundingBox": [6.0028, 1.0431, 6.6472, 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, - {"text": "For:", "boundingBox": [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, - 6.6958, 1.2667]}]}, {"text": "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, - 1.4681, 1.5778, 1.6625, 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": - [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": - "Frodo Baggins", "boundingBox": [6.0028, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, - 6.0028, 1.6056], "words": [{"text": "Frodo", "boundingBox": [6.0028, 1.4389, - 6.3972, 1.4389, 6.3972, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": - [6.4361, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, 6.4361, 1.6056]}]}, {"text": - "123 Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, - 1.8264, 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, - 1.6597, 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", - "boundingBox": [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, - {"text": "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.7889, 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, - 1.725, 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "10", "boundingBox": [3.2444, 3.1931, 3.4125, 3.1931, 3.4125, 3.3597, 3.2444, - 3.3597], "words": [{"text": "10", "boundingBox": [3.2444, 3.1931, 3.4125, - 3.1931, 3.4125, 3.3597, 3.2444, 3.3597]}]}, {"text": "100.99", "boundingBox": - [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, 3.3597, 5.4083, 3.3597], "words": - [{"text": "100.99", "boundingBox": [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, - 3.3597, 5.4083, 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, - 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": - [1.0806, 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": - "20", "boundingBox": [3.2444, 3.4056, 3.4125, 3.4056, 3.4125, 3.5722, 3.2444, - 3.5722], "words": [{"text": "20", "boundingBox": [3.2444, 3.4056, 3.4125, - 3.4056, 3.4125, 3.5722, 3.2444, 3.5722]}]}, {"text": "140.67", "boundingBox": - [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, 3.5722, 5.4083, 3.5722], "words": - [{"text": "140.67", "boundingBox": [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, - 3.5722, 5.4083, 3.5722]}]}, {"text": "C", "boundingBox": [1.0806, 3.6167, - 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": - [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": - "40", "boundingBox": [3.2444, 3.6167, 3.4125, 3.6167, 3.4125, 3.7833, 3.2444, - 3.7833], "words": [{"text": "40", "boundingBox": [3.2444, 3.6167, 3.4125, - 3.6167, 3.4125, 3.7833, 3.2444, 3.7833]}]}, {"text": "150.66", "boundingBox": - [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, 3.7833, 5.4083, 3.7833], "words": - [{"text": "150.66", "boundingBox": [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, - 3.7833, 5.4083, 3.7833]}]}, {"text": "D", "boundingBox": [1.0806, 3.8264, - 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931], "words": [{"text": "D", "boundingBox": - [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": - "10", "boundingBox": [3.2444, 3.8264, 3.4125, 3.8264, 3.4125, 3.9931, 3.2444, - 3.9931], "words": [{"text": "10", "boundingBox": [3.2444, 3.8264, 3.4125, - 3.8264, 3.4125, 3.9931, 3.2444, 3.9931]}]}, {"text": "120.00", "boundingBox": - [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, 3.9931, 5.4083, 3.9931], "words": - [{"text": "120.00", "boundingBox": [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, - 3.9931, 5.4083, 3.9931]}]}, {"text": "E", "boundingBox": [1.0806, 4.0361, - 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028], "words": [{"text": "E", "boundingBox": - [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": - "40", "boundingBox": [3.2444, 4.0361, 3.4125, 4.0361, 3.4125, 4.2028, 3.2444, - 4.2028], "words": [{"text": "40", "boundingBox": [3.2444, 4.0361, 3.4125, - 4.0361, 3.4125, 4.2028, 3.2444, 4.2028]}]}, {"text": "100.00", "boundingBox": - [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, 4.2028, 5.4083, 4.2028], "words": - [{"text": "100.00", "boundingBox": [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, - 4.2028, 5.4083, 4.2028]}]}, {"text": "F", "boundingBox": [1.0806, 4.2458, - 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125], "words": [{"text": "F", "boundingBox": - [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": - "60", "boundingBox": [3.2444, 4.2458, 3.4125, 4.2458, 3.4125, 4.4125, 3.2444, - 4.4125], "words": [{"text": "60", "boundingBox": [3.2444, 4.2458, 3.4125, - 4.2458, 3.4125, 4.4125, 3.2444, 4.4125]}]}, {"text": "120.00", "boundingBox": - [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, 4.4125, 5.4083, 4.4125], "words": - [{"text": "120.00", "boundingBox": [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, - 4.4125, 5.4083, 4.4125]}]}, {"text": "G", "boundingBox": [1.0806, 4.4569, - 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236], "words": [{"text": "G", "boundingBox": - [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": - "80", "boundingBox": [3.2444, 4.4569, 3.4125, 4.4569, 3.4125, 4.6236, 3.2444, - 4.6236], "words": [{"text": "80", "boundingBox": [3.2444, 4.4569, 3.4125, - 4.4569, 3.4125, 4.6236, 3.2444, 4.6236]}]}, {"text": "220.00", "boundingBox": - [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, 4.6236, 5.4083, 4.6236], "words": - [{"text": "220.00", "boundingBox": [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, - 4.6236, 5.4083, 4.6236]}]}, {"text": "Subtotal:", "boundingBox": [5.5028, - 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528], "words": [{"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528]}]}, {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, - 4.8861, 6.7208, 5.0528, 6.1722, 5.0528], "words": [{"text": "3000.00", "boundingBox": - [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, 5.0528, 6.1722, 5.0528]}]}, {"text": - "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, - 5.2736], "words": [{"text": "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, - 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, {"text": "300.00", "boundingBox": - [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, 5.2736, 5.8292, 5.2736], "words": - [{"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, - 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "words": [{"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931]}]}, - {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, 6.3472, - 5.4931, 5.7986, 5.4931], "words": [{"text": "1000.00", "boundingBox": [5.7986, - 5.3264, 6.3472, 5.3264, 6.3472, 5.4931, 5.7986, 5.4931]}]}, {"text": "Total:", - "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], - "words": [{"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, - 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": "4300.00", "boundingBox": [5.9389, - 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, 5.9389, 5.7139], "words": [{"text": - "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, - 5.9389, 5.7139]}]}, {"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, - 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "words": [{"text": "Signature:", "boundingBox": - [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Frodo - Baggins__________", "boundingBox": [1.7472, 6.6431, 3.8833, 6.6431, 3.8833, - 6.8097, 1.7472, 6.8097], "words": [{"text": "____Frodo", "boundingBox": [1.7472, - 6.6431, 2.4833, 6.6431, 2.4833, 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", - "boundingBox": [2.5208, 6.6431, 3.8833, 6.6431, 3.8833, 6.8097, 2.5208, 6.8097]}]}]}], - "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": ["#/readResults/0/lines/1/words/0", "#/readResults/0/lines/1/words/1"]}, - "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": ["#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/0/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2"]}, "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": ["#/readResults/0/lines/6/words/0", "#/readResults/0/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/0/lines/8/words/0"]}, - "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": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": - ["#/readResults/0/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/0/lines/34/words/0"]}, "value": - {"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/0/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/0/lines/36/words/0"]}, - "value": {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, - 6.2069, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/0/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/0/lines/38/words/0"]}, - "value": {"text": "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, - 6.2639, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/0/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/0/lines/40/words/0"]}, - "value": {"text": "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, - 6.4028, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/0/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/0/lines/42/words/0"]}, - "value": {"text": "____Bilbo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/0/lines/43/words/0", - "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1", - "#/readResults/0/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:52:08Z", + "lastUpdatedDateTime": "2020-09-14T19:52:19Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1226, 2.3778, 1.1226, 2.3778, 1.263, 0.8861, 1.263], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, + 0.8861, 1.2812]}, {"text": "A", "boundingBox": [1.6694, 1.1243, 1.775, 1.1243, + 1.775, 1.2472, 1.6694, 1.2472]}, {"text": "Invoice", "boundingBox": [1.8389, + 1.1215, 2.3778, 1.1215, 2.3778, 1.2486, 1.8389, 1.2486]}]}, {"text": "Invoice + For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, + 1.2122], "words": [{"text": "Invoice", "boundingBox": [6.0208, 1.0656, 6.6361, + 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, {"text": "For:", "boundingBox": + [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, 6.7139, 1.2122]}]}, {"text": + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": "Bilbo Baggins", + "boundingBox": [6.0167, 1.4532, 6.8972, 1.4532, 6.8972, 1.5801, 6.0167, 1.5801], + "words": [{"text": "Bilbo", "boundingBox": [6.0167, 1.4503, 6.3389, 1.4503, + 6.3389, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": [6.3958, + 1.4556, 6.8972, 1.4556, 6.8972, 1.5931, 6.3958, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "1", "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, + 3.3208, 3.3177, 3.2597, 3.3177], "words": [{"text": "1", "boundingBox": [3.2597, + 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, 3.3177]}]}, {"text": "10.99", + "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, 3.3191], + "words": [{"text": "10.99", "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "2", "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, + 3.5309, 3.2542, 3.5309], "words": [{"text": "2", "boundingBox": [3.2542, 3.424, + 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309]}]}, {"text": "14.67", "boundingBox": + [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], "words": [{"text": + "14.67", "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, + 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742]}]}, {"text": "4", "boundingBox": + [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, 3.7413], "words": + [{"text": "4", "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, + 3.2486, 3.7413]}]}, {"text": "15.66", "boundingBox": [5.4236, 3.634, 5.7792, + 3.634, 5.7792, 3.7424, 5.4236, 3.7424], "words": [{"text": "15.66", "boundingBox": + [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424]}]}, {"text": + "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, + 3.951], "words": [{"text": "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951]}]}, {"text": "1", "boundingBox": [3.2597, 3.8451, + 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951], "words": [{"text": "1", "boundingBox": + [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951]}]}, {"text": + "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "words": [{"text": "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, + 3.8441, 5.7806, 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, + 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": + "E", "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615]}]}, {"text": "4", "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "words": [{"text": "4", "boundingBox": [3.2486, + 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, 4.1618]}]}, {"text": "10.00", + "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, 4.1628], + "words": [{"text": "10.00", "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, + 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", + "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, + {"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, + 3.2528, 4.3726], "words": [{"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, + 4.2646, 3.3222, 4.3726, 3.2528, 4.3726]}]}, {"text": "12.00", "boundingBox": + [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, 4.3726], "words": + [{"text": "12.00", "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, + 4.3726, 5.4236, 4.3726]}]}, {"text": "G", "boundingBox": [1.0875, 4.4747, + 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": + [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": + "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "words": [{"text": "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826]}]}, {"text": "22.00", "boundingBox": [5.4181, + 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, 4.5826], "words": [{"text": + "22.00", "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826]}]}, {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, + 6.125, 5.0132, 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": + [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "words": [{"text": "300.00", "boundingBox": [6.1792, 4.9042, + 6.6319, 4.9042, 6.6319, 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": + [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": + [{"text": "Tax:", "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, + 5.2333, 5.5028, 5.2333]}]}, {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "words": [{"text": "30.00", + "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333]}]}, + {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, + 5.5028, 5.4809], "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "100.00", "boundingBox": + [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "words": + [{"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, + 5.4535, 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", + "boundingBox": [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, + {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, 6.3986, + 5.6733, 5.9417, 5.6733], "words": [{"text": "430.00", "boundingBox": [5.9417, + 5.5646, 6.3986, 5.5646, 6.3986, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Bilbo Baggins", "boundingBox": + [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6552, 2.4278, 6.6552, 2.4278, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.4819, 6.658, + 3.0389, 6.658, 3.0389, 6.7983, 2.4819, 6.7983]}]}]}, {"page": 2, "angle": + 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, + "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1226, 2.3736, 1.1226, 2.3736, + 1.2629, 0.8861, 1.2629], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, 0.8861, 1.2812]}, {"text": "B", "boundingBox": + [1.6833, 1.1247, 1.7639, 1.1247, 1.7639, 1.2469, 1.6833, 1.2469]}, {"text": + "Invoice", "boundingBox": [1.8333, 1.1215, 2.3736, 1.1215, 2.3736, 1.2486, + 1.8333, 1.2486]}]}, {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, + 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "words": [{"text": "Invoice", + "boundingBox": [6.0208, 1.0656, 6.6361, 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, + {"text": "For:", "boundingBox": [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, + 6.7139, 1.2122]}]}, {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": + [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": + "Frodo Baggins", "boundingBox": [6.0167, 1.4533, 6.95, 1.4533, 6.95, 1.5801, + 6.0167, 1.5801], "words": [{"text": "Frodo", "boundingBox": [6.0167, 1.4507, + 6.3903, 1.4507, 6.3903, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.95, 1.4556, 6.95, 1.5931, 6.45, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "10", "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, + 3.4069, 3.3191, 3.2597, 3.3191], "words": [{"text": "10", "boundingBox": [3.2597, + 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, 3.3191]}]}, {"text": "100.99", + "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, 3.3191], + "words": [{"text": "100.99", "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "20", "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, + 3.5323, 3.2542, 3.5323], "words": [{"text": "20", "boundingBox": [3.2542, + 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323]}]}, {"text": "140.67", + "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "words": [{"text": "140.67", "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": + "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742]}]}, {"text": "40", "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, + 3.7424, 3.2486, 3.7424], "words": [{"text": "40", "boundingBox": [3.2486, + 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424]}]}, {"text": "150.66", + "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "words": [{"text": "150.66", "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424]}]}, {"text": "D", "boundingBox": [1.0944, + 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], "words": [{"text": "D", + "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951]}]}, + {"text": "10", "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, + 3.2597, 3.9524], "words": [{"text": "10", "boundingBox": [3.2597, 3.8441, + 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, 3.9524]}]}, {"text": "120.00", "boundingBox": + [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, 3.9524], "words": + [{"text": "120.00", "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, + 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, 4.0563, + 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": "E", "boundingBox": + [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615]}]}, {"text": + "40", "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "words": [{"text": "40", "boundingBox": [3.2486, 4.0545, 3.4069, + 4.0545, 3.4069, 4.1628, 3.2486, 4.1628]}]}, {"text": "100.00", "boundingBox": + [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, 4.1628], "words": + [{"text": "100.00", "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, + 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, 4.266, 1.15, + 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", "boundingBox": + [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, {"text": "60", + "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, 4.3726], + "words": [{"text": "60", "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, + 4.3726, 3.2528, 4.3726]}]}, {"text": "120.00", "boundingBox": [5.4236, 4.2646, + 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726], "words": [{"text": "120.00", + "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726]}]}, + {"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, + 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, + 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": "80", "boundingBox": + [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, 4.5826], "words": + [{"text": "80", "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, + 3.2514, 4.5826]}]}, {"text": "220.00", "boundingBox": [5.4181, 4.4747, 5.8639, + 4.4747, 5.8639, 4.5826, 5.4181, 4.5826], "words": [{"text": "220.00", "boundingBox": + [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, 4.5826]}]}, {"text": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, + 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": "3000.00", "boundingBox": + [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, 6.1792, 5.0132], "words": + [{"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": [{"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333]}]}, + {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, 6.2889, + 5.2333, 5.8361, 5.2333], "words": [{"text": "300.00", "boundingBox": [5.8361, + 5.1247, 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333]}]}, {"text": "Tip:", + "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], + "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "1000.00", "boundingBox": [5.8111, + 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "words": [{"text": + "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, + 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, 5.8917, + 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", "boundingBox": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, {"text": + "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, 6.4833, 5.6733, + 5.9417, 5.6733], "words": [{"text": "4300.00", "boundingBox": [5.9417, 5.5646, + 6.4833, 5.5646, 6.4833, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Frodo Baggins", "boundingBox": + [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Frodo", "boundingBox": [1.7472, 6.6556, 2.4778, 6.6556, 2.4778, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.5319, 6.658, + 3.0889, 6.658, 3.0889, 6.7983, 2.5319, 6.7983]}]}]}], "pageResults": [{"page": + 1, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "value": {"text": "Bilbo Baggins 123 + Hobbit Lane", "boundingBox": [6.0167, 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, + 1.7854], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", + "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": ["#/readResults/0/lines/2/words/0"]}, + "value": {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/0/lines/5/words/0", + "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2"]}, "confidence": + 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, + 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "elements": ["#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Redmond, WA", "boundingBox": [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, + 0.8917, 2.1918], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/0/lines/9/words/0"]}, + "confidence": 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, + 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": ["#/readResults/0/lines/34/words/0"]}, + "value": {"text": "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, + 6.6319, 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/0/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/0/lines/36/words/0"]}, + "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, + 6.2028, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/0/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/0/lines/38/words/0"]}, + "value": {"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, + 6.2583, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/0/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/0/lines/40/words/0"]}, + "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, + 6.3986, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/0/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/0/lines/42/words/0"]}, + "value": {"text": "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, + 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/0/lines/43/words/0", + "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/10/words/0"], "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": - ["#/readResults/0/lines/11/words/0"], "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": ["#/readResults/0/lines/12/words/0"], "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": ["#/readResults/0/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "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": ["#/readResults/0/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, + 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/14/words/0"], "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": ["#/readResults/0/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0"], "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": ["#/readResults/0/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "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": ["#/readResults/0/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/17/words/0"], "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": ["#/readResults/0/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/18/words/0"], "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": ["#/readResults/0/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/19/words/0"], "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": ["#/readResults/0/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, + 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0"], "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": ["#/readResults/0/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0"], "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": ["#/readResults/0/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "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": ["#/readResults/0/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, + 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/23/words/0"], "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": ["#/readResults/0/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/24/words/0"], "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": ["#/readResults/0/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/25/words/0"], "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": ["#/readResults/0/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, + 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0"], "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": ["#/readResults/0/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0"], "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": ["#/readResults/0/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "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": ["#/readResults/0/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/29/words/0"], "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": ["#/readResults/0/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/30/words/0"], "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": ["#/readResults/0/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/31/words/0"], "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": ["#/readResults/0/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0"], "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": ["#/readResults/0/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"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": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, - "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": ["#/readResults/2/lines/3/words/0", + {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, + 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": ["#/readResults/2/lines/3/words/0", "#/readResults/2/lines/3/words/1", "#/readResults/2/lines/4/words/0", "#/readResults/2/lines/4/words/1", "#/readResults/2/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": + {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, + 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", "#/readResults/2/lines/5/words/2"]}, "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": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/2/lines/8/words/0"]}, - "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": ["#/readResults/2/lines/7/words/0", + "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, + 6.0167, 2.0233], "elements": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, + 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": ["#/readResults/2/lines/8/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [0.8917, + 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": ["#/readResults/2/lines/7/words/0", "#/readResults/2/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/2/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": - {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/2/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/2/lines/36/words/0"]}, - "value": {"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, - 6.2931, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/2/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/2/lines/38/words/0"]}, - "value": {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, - 6.3472, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/2/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/2/lines/40/words/0"]}, - "value": {"text": "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, - 6.4875, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/2/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/2/lines/42/words/0"]}, - "value": {"text": "____Frodo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8833, 6.6431, 3.8833, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/2/lines/43/words/0", - "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/0/words/0", "#/readResults/2/lines/0/words/1", - "#/readResults/2/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": + {"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/2/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/2/lines/36/words/0"]}, + "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, + 6.2889, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/2/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/2/lines/38/words/0"]}, + "value": {"text": "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, + 6.3417, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/2/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/2/lines/40/words/0"]}, + "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, + 6.4833, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/2/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/2/lines/42/words/0"]}, + "value": {"text": "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, + 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/2/lines/43/words/0", + "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/10/words/0"], "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": - ["#/readResults/2/lines/11/words/0"], "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": ["#/readResults/2/lines/12/words/0"], "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": ["#/readResults/2/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/2/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/13/words/0"], "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": ["#/readResults/2/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/14/words/0"], "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": ["#/readResults/2/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/15/words/0"], "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": ["#/readResults/2/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/16/words/0"], "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": ["#/readResults/2/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/17/words/0"], "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": ["#/readResults/2/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/18/words/0"], "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": ["#/readResults/2/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/19/words/0"], "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": ["#/readResults/2/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/20/words/0"], "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": ["#/readResults/2/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/21/words/0"], "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": ["#/readResults/2/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/22/words/0"], "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": ["#/readResults/2/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/23/words/0"], "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": ["#/readResults/2/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/24/words/0"], "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": ["#/readResults/2/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/25/words/0"], "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": ["#/readResults/2/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/26/words/0"], "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": ["#/readResults/2/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/27/words/0"], "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": ["#/readResults/2/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/28/words/0"], "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": ["#/readResults/2/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/29/words/0"], "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": ["#/readResults/2/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/30/words/0"], "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": ["#/readResults/2/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/31/words/0"], "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": ["#/readResults/2/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/32/words/0"], "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": ["#/readResults/2/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 290cd364-5777-4c48-bc06-2eb224ac78c1 - content-length: '42016' + apim-request-id: d8731b35-5ede-409a-836e-36051648cb67 + content-length: '41192' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:19 GMT + date: Mon, 14 Sep 2020 19:52:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/47f5bb1d-265c-462a-a9df-88bf831af637/analyzeresults/a1a52c6f-d782-4cd1-b663-4f599cf03776 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c3b52a90-19ca-4e4c-8709-4e98ec7f4443/analyzeresults/381d10dd-deb8-4269-a07a-af319833d407 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml index fa90c39b2c1c..3ca17f531e0d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_labeled_transform.yaml @@ -3,67 +3,69 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 3f62c2bd-c479-403f-bcb3-5e57a62b0053 + apim-request-id: 04883fbb-3959-4944-a8a5-262ad9e85bcc content-length: '0' - date: Fri, 10 Jul 2020 18:51:19 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853 + date: Mon, 14 Sep 2020 19:52:24 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '91' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4408815d-b870-4b15-86b0-fb1ea69f9853", "status": - "ready", "createdDateTime": "2020-07-10T18:51:20Z", "lastUpdatedDateTime": - "2020-07-10T18:51:22Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "4fb80849-8f01-40c4-b45b-66909cda512c", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T19:52:24Z", + "lastUpdatedDateTime": "2020-09-14T19:52:25Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 459ea57e-a586-4857-86ca-851c4e895304 + apim-request-id: 8cf337f0-fc16-4eed-b8b3-daa9e995a48b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:25 GMT + date: Mon, 14 Sep 2020 19:52:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8476,316 +8478,297 @@ interactions: UUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFA BRQAUUAFFABRQB//2Q== headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: d5c4fba2-d670-4a35-9a9f-5df3d152e065 + apim-request-id: 30407a85-000d-4d8d-96f6-da62d3c1e8c5 content-length: '0' - date: Fri, 10 Jul 2020 18:51:31 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b + date: Mon, 14 Sep 2020 19:52:29 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c/analyzeresults/e1d4e3cc-07e8-42c8-84d1-1d28080beeb7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '5226' + x-envoy-upstream-service-time: '61' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyze?includeTextDetails=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:51:32Z", - "lastUpdatedDateTime": "2020-07-10T18:51:32Z"}' - headers: - apim-request-id: 415200cc-4123-4c23-8cc1-14b439ae5ff9 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:37 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '32' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c/analyzeresults/e1d4e3cc-07e8-42c8-84d1-1d28080beeb7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:32Z", - "lastUpdatedDateTime": "2020-07-10T18:51:42Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:52:30Z", + "lastUpdatedDateTime": "2020-09-14T19:52:34Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -8821,7 +8804,7 @@ interactions: 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, + {"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"]}, @@ -8830,75 +8813,74 @@ interactions: "#/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, + {"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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": - "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, - 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, - "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "PurchaseOrderNumber": - {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": - [1282.0, 461.0, 1377.0, 461.0, 1377.0, 489.0, 1282.0, 489.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, "DatedAs": - {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": - 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, + "documentResults": [{"docType": "custom:4fb80849-8f01-40c4-b45b-66909cda512c", + "modelId": "4fb80849-8f01-40c4-b45b-66909cda512c", "pageRange": [1, 1], "fields": + {"Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero + Limited", "page": 1, "boundingBox": [620.0, 205.0, 1075.0, 205.0, 1075.0, + 266.0, 620.0, 266.0], "confidence": 0.97, "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "VendorName": {"type": "string", "valueString": + "Hillary Swank", "text": "Hillary Swank", "page": 1, "boundingBox": [349.0, + 609.0, 521.0, 609.0, 521.0, 639.0, 349.0, 639.0], "confidence": 0.93, "elements": + ["#/readResults/0/lines/10/words/2", "#/readResults/0/lines/10/words/3"]}, + "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder + City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": + 1, "boundingBox": [273.0, 685.0, 565.0, 685.0, 565.0, 751.0, 273.0, 751.0], + "confidence": 1.0, "elements": ["#/readResults/0/lines/12/words/1", "#/readResults/0/lines/12/words/2", + "#/readResults/0/lines/12/words/3", "#/readResults/0/lines/12/words/4", "#/readResults/0/lines/13/words/0", + "#/readResults/0/lines/13/words/1", "#/readResults/0/lines/13/words/2", "#/readResults/0/lines/13/words/3"]}, + "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": + "948284", "page": 1, "boundingBox": [1277.0, 461.0, 1376.0, 461.0, 1376.0, + 489.0, 1277.0, 489.0], "confidence": 0.94, "elements": ["#/readResults/0/lines/8/words/3"]}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, + 378.0], "confidence": 0.89, "elements": ["#/readResults/0/lines/3/words/2"]}, "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, - "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", - "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, - 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, - "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, - "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": - 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, - 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, - "Website": {"type": "string", "valueString": "www.herolimited.com", "text": - "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, - 529.0, 419.0, 274.0, 419.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, - "Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero - Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, - 266.0, 621.0, 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", - "#/analyzeResult/readResults/0/lines/1/words/1"]}, "PhoneNumber": {"type": - "string", "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, - "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, "Email": - {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, + 1, "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, + 1643.0], "confidence": 0.994, "elements": ["#/readResults/0/lines/44/words/0"]}, "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie - Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, - 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "CompanyAddress": {"type": - "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": - "938 NE Burner Road Boulder City, CO 92848", "page": 1, "boundingBox": [277.0, - 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/12/words/1", "#/analyzeResult/readResults/0/lines/12/words/2", - "#/analyzeResult/readResults/0/lines/12/words/3", "#/analyzeResult/readResults/0/lines/12/words/4", - "#/analyzeResult/readResults/0/lines/13/words/0", "#/analyzeResult/readResults/0/lines/13/words/1", - "#/analyzeResult/readResults/0/lines/13/words/2", "#/analyzeResult/readResults/0/lines/13/words/3"]}}}], - "errors": []}}' + Sanders", "page": 1, "boundingBox": [489.0, 1670.0, 765.0, 1670.0, 765.0, + 1708.0, 489.0, 1708.0], "confidence": 0.998, "elements": ["#/readResults/0/lines/45/words/0", + "#/readResults/0/lines/45/words/1"]}, "Subtotal": {"type": "string", "valueString": + "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1426.0, 1572.0, 1531.0, + 1572.0, 1531.0, 1599.0, 1426.0, 1599.0], "confidence": 0.984, "elements": + ["#/readResults/0/lines/42/words/0"]}, "Email": {"type": "string", "valueString": + "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, + "boundingBox": [164.0, 479.0, 478.0, 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": + 1.0, "elements": ["#/readResults/0/lines/7/words/0"]}, "DatedAs": {"type": + "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], "confidence": + 0.99, "elements": ["#/readResults/0/lines/6/words/2"]}, "Total": {"type": + "string", "valueString": "$144.00", "text": "$144.00", "page": 1, "boundingBox": + [1427.0, 1669.0, 1529.0, 1669.0, 1529.0, 1698.0, 1427.0, 1698.0], "confidence": + 0.991, "elements": ["#/readResults/0/lines/47/words/0"]}, "CompanyName": {"type": + "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", + "page": 1, "boundingBox": [375.0, 646.0, 629.0, 646.0, 629.0, 679.0, 375.0, + 679.0], "confidence": 0.95, "elements": ["#/readResults/0/lines/11/words/2", + "#/readResults/0/lines/11/words/3", "#/readResults/0/lines/11/words/4"]}, + "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, + 1094.0, 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 0.962, + "elements": ["#/readResults/0/lines/26/words/0"]}, "CompanyPhoneNumber": {"type": + "string", "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, + "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0], "confidence": + 1.0, "elements": ["#/readResults/0/lines/14/words/1"]}, "Website": {"type": + "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", + "page": 1, "boundingBox": [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, + 418.0], "confidence": 0.95, "elements": ["#/readResults/0/lines/4/words/1"]}}, + "docTypeConfidence": 1.0}], "errors": []}}' headers: - apim-request-id: dcd8da14-4d7e-4de7-8a2b-67c748edb973 - content-length: '25282' + apim-request-id: 93b75769-e2d7-438c-bdfc-ff1a8cb30362 + content-length: '25118' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:42 GMT + date: Mon, 14 Sep 2020 19:52:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '323' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4408815d-b870-4b15-86b0-fb1ea69f9853/analyzeresults/2d4ae765-a709-452c-8217-526c9610e77b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4fb80849-8f01-40c4-b45b-66909cda512c/analyzeresults/e1d4e3cc-07e8-42c8-84d1-1d28080beeb7 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml index 9a6b6f4cf9f6..0b777cd751d9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_async.test_form_unlabeled_transform.yaml @@ -3,111 +3,113 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 8a47e31a-4228-4888-94f3-1c0ef4226150 + apim-request-id: e973b460-8e10-48d0-8c22-d649e010e776 content-length: '0' - date: Fri, 10 Jul 2020 18:51:43 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8 + date: Mon, 14 Sep 2020 19:52:06 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '852' + x-envoy-upstream-service-time: '41' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2ad5b44d-30ba-4deb-974e-f4fc138dd3c8", "status": - "creating", "createdDateTime": "2020-07-10T18:51:43Z", "lastUpdatedDateTime": - "2020-07-10T18:51:43Z"}}' + string: '{"modelInfo": {"modelId": "bdc18352-b825-4d6b-8e00-8bac430bd6f1", "status": + "creating", "createdDateTime": "2020-09-14T19:52:07Z", "lastUpdatedDateTime": + "2020-09-14T19:52:07Z"}}' headers: - apim-request-id: 46c123da-b1fe-4fe9-9061-b8250f41381a + apim-request-id: d0ab230f-f667-451c-bbf1-66ee1ed05966 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:49 GMT + date: Mon, 14 Sep 2020 19:52:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '807' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2ad5b44d-30ba-4deb-974e-f4fc138dd3c8", "status": - "creating", "createdDateTime": "2020-07-10T18:51:43Z", "lastUpdatedDateTime": - "2020-07-10T18:51:43Z"}}' + string: '{"modelInfo": {"modelId": "bdc18352-b825-4d6b-8e00-8bac430bd6f1", "status": + "creating", "createdDateTime": "2020-09-14T19:52:07Z", "lastUpdatedDateTime": + "2020-09-14T19:52:07Z"}}' headers: - apim-request-id: 06011ecb-8db6-4380-b8b6-993f0533934c + apim-request-id: 57b33884-275d-4784-bac8-fb170b298cf1 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:54 GMT + date: Mon, 14 Sep 2020 19:52:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "2ad5b44d-30ba-4deb-974e-f4fc138dd3c8", "status": - "ready", "createdDateTime": "2020-07-10T18:51:43Z", "lastUpdatedDateTime": - "2020-07-10T18:51:54Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "bdc18352-b825-4d6b-8e00-8bac430bd6f1", "status": + "ready", "createdDateTime": "2020-09-14T19:52:07Z", "lastUpdatedDateTime": + "2020-09-14T19:52:20Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: bbbbb38f-1b60-4aea-ad22-be725e65a869 + apim-request-id: 1cd6ade1-b183-49f1-b2c6-85e10ec9502c content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:59 GMT + date: Mon, 14 Sep 2020 19:52:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '22' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1?includeKeys=true - request: body: !!binary | /9j/4AAQSkZJRgABAQEAyADIAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUA @@ -8520,407 +8522,404 @@ interactions: UUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFABRQAUUAFFA BRQAUUAFFABRQB//2Q== headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: a9ea18f0-79a0-41ff-9ec7-de60910fba35 + apim-request-id: ea96bbb5-5151-403d-a842-3d76d4ee6e5c content-length: '0' - date: Fri, 10 Jul 2020 18:52:02 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c + date: Mon, 14 Sep 2020 19:52:22 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyzeresults/7643087f-ef5f-4b4d-b9ef-e31760c61d89 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1873' + x-envoy-upstream-service-time: '61' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyzeresults/7643087f-ef5f-4b4d-b9ef-e31760c61d89 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:52:01Z", "lastUpdatedDateTime": - "2020-07-10T18:52:05Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T19:52:23Z", "lastUpdatedDateTime": + "2020-09-14T19:52:24Z", "analyzeResult": null}' headers: - apim-request-id: 53c88577-e154-478b-b18e-2b531d0a3989 + apim-request-id: 4b9a4d7e-18d3-4ad6-9887-10d3e6d542b0 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:07 GMT + date: Mon, 14 Sep 2020 19:52:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyzeresults/7643087f-ef5f-4b4d-b9ef-e31760c61d89 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyzeresults/7643087f-ef5f-4b4d-b9ef-e31760c61d89 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:01Z", - "lastUpdatedDateTime": "2020-07-10T18:52:09Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T19:52:23Z", + "lastUpdatedDateTime": "2020-09-14T19:52:29Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": - [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": - "Purchase", "boundingBox": [141.0, 140.0, 267.0, 140.0, 267.0, 168.0, 141.0, - 168.0]}, {"text": "Order", "boundingBox": [273.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 273.0, 168.0]}]}, {"text": "Hero Limited", "boundingBox": [620.0, 203.0, - 1078.0, 203.0, 1078.0, 271.0, 620.0, 271.0], "words": [{"text": "Hero", "boundingBox": - [620.0, 203.0, 793.0, 203.0, 793.0, 271.0, 620.0, 271.0]}, {"text": "Limited", - "boundingBox": [811.0, 203.0, 1078.0, 203.0, 1078.0, 271.0, 811.0, 271.0]}]}, - {"text": "Purchase Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, - 372.0, 1117.0, 372.0], "words": [{"text": "Purchase", "boundingBox": [1117.0, - 319.0, 1380.0, 319.0, 1380.0, 372.0, 1117.0, 372.0]}, {"text": "Order", "boundingBox": - [1397.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1397.0, 372.0]}]}, {"text": - "Company Phone:", "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, - 167.0, 381.0], "words": [{"text": "Company", "boundingBox": [167.0, 351.0, - 276.0, 351.0, 276.0, 381.0, 167.0, 381.0]}, {"text": "Phone:", "boundingBox": - [283.0, 351.0, 365.0, 351.0, 365.0, 381.0, 283.0, 381.0]}]}, {"text": "555-348-6512", - "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, 381.0, 371.0, 381.0], "words": - [{"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0]}]}, {"text": "Website:", "boundingBox": [167.0, 392.0, - 271.0, 392.0, 271.0, 420.0, 167.0, 420.0], "words": [{"text": "Website:", - "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, 420.0, 167.0, 420.0]}]}, - {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, 392.0, - 530.0, 420.0, 277.0, 420.0], "words": [{"text": "www.herolimited.com", "boundingBox": - [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0]}]}, {"text": "Dated - As:", "boundingBox": [1025.0, 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, - 451.0], "words": [{"text": "Dated", "boundingBox": [1025.0, 418.0, 1111.0, - 418.0, 1111.0, 451.0, 1025.0, 451.0]}, {"text": "As:", "boundingBox": [1117.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1117.0, 451.0]}]}, {"text": "12/20/2020", - "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], - "words": [{"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, - 1319.0, 451.0, 1168.0, 451.0]}]}, {"text": "Email:", "boundingBox": [167.0, - 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0], "words": [{"text": "Email:", - "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0]}]}, - {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, 1275.0, 460.0, - 1275.0, 491.0, 1027.0, 491.0], "words": [{"text": "Purchase", "boundingBox": - [1027.0, 460.0, 1153.0, 460.0, 1153.0, 491.0, 1027.0, 491.0]}, {"text": "Order", - "boundingBox": [1160.0, 460.0, 1241.0, 460.0, 1241.0, 491.0, 1160.0, 491.0]}, - {"text": "#:", "boundingBox": [1248.0, 460.0, 1275.0, 460.0, 1275.0, 491.0, - 1248.0, 491.0]}]}, {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, - 460.0, 1376.0, 491.0, 1282.0, 491.0], "words": [{"text": "948284", "boundingBox": - [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, 1282.0, 491.0]}]}, {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "words": [{"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0]}]}, {"text": "Shipped - To", "boundingBox": [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], - "words": [{"text": "Shipped", "boundingBox": [170.0, 546.0, 343.0, 546.0, - 343.0, 592.0, 170.0, 592.0]}, {"text": "To", "boundingBox": [352.0, 546.0, - 398.0, 546.0, 398.0, 592.0, 352.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": - [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "words": [{"text": - "Vendor", "boundingBox": [162.0, 610.0, 256.0, 610.0, 256.0, 640.0, 162.0, - 640.0]}, {"text": "Name:", "boundingBox": [262.0, 610.0, 346.0, 610.0, 346.0, - 640.0, 262.0, 640.0]}]}, {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "words": [{"text": "Hillary", - "boundingBox": [352.0, 610.0, 435.0, 610.0, 435.0, 640.0, 352.0, 640.0]}, - {"text": "Swank", "boundingBox": [441.0, 610.0, 519.0, 610.0, 519.0, 640.0, - 441.0, 640.0]}]}, {"text": "Company Name:", "boundingBox": [162.0, 646.0, - 373.0, 646.0, 373.0, 678.0, 162.0, 678.0], "words": [{"text": "Company", "boundingBox": - [162.0, 646.0, 283.0, 646.0, 283.0, 678.0, 162.0, 678.0]}, {"text": "Name:", - "boundingBox": [289.0, 646.0, 373.0, 646.0, 373.0, 678.0, 289.0, 678.0]}]}, - {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, - 628.0, 678.0, 379.0, 678.0], "words": [{"text": "Higgly", "boundingBox": [379.0, - 646.0, 457.0, 646.0, 457.0, 678.0, 379.0, 678.0]}, {"text": "Wiggly", "boundingBox": - [463.0, 646.0, 549.0, 646.0, 549.0, 678.0, 463.0, 678.0]}, {"text": "Books", - "boundingBox": [555.0, 646.0, 628.0, 646.0, 628.0, 678.0, 555.0, 678.0]}]}, - {"text": "Address:", "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, - 162.0, 715.0], "words": [{"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0]}]}, {"text": "938 NE Burner Road", - "boundingBox": [279.0, 684.0, 526.0, 684.0, 526.0, 715.0, 279.0, 715.0], "words": - [{"text": "938", "boundingBox": [279.0, 684.0, 326.0, 684.0, 326.0, 715.0, - 279.0, 715.0]}, {"text": "NE", "boundingBox": [332.0, 684.0, 366.0, 684.0, - 366.0, 715.0, 332.0, 715.0]}, {"text": "Burner", "boundingBox": [372.0, 684.0, - 458.0, 684.0, 458.0, 715.0, 372.0, 715.0]}, {"text": "Road", "boundingBox": - [464.0, 684.0, 526.0, 684.0, 526.0, 715.0, 464.0, 715.0]}]}, {"text": "Boulder - City, CO 92848", "boundingBox": [283.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 283.0, 752.0], "words": [{"text": "Boulder", "boundingBox": [283.0, 720.0, - 377.0, 720.0, 377.0, 752.0, 283.0, 752.0]}, {"text": "City,", "boundingBox": - [384.0, 720.0, 437.0, 720.0, 437.0, 752.0, 384.0, 752.0]}, {"text": "CO", - "boundingBox": [443.0, 720.0, 482.0, 720.0, 482.0, 752.0, 443.0, 752.0]}, - {"text": "92848", "boundingBox": [489.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 489.0, 752.0]}]}, {"text": "Phone:", "boundingBox": [615.0, 723.0, 707.0, - 723.0, 707.0, 752.0, 615.0, 752.0], "words": [{"text": "Phone:", "boundingBox": - [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, 752.0]}]}, {"text": "938-294-2949", - "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, 713.0, 752.0], "words": - [{"text": "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, - 752.0, 713.0, 752.0]}]}, {"text": "Shipped From", "boundingBox": [169.0, 784.0, - 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], "words": [{"text": "Shipped", "boundingBox": - [169.0, 784.0, 335.0, 784.0, 335.0, 831.0, 169.0, 831.0]}, {"text": "From", - "boundingBox": [345.0, 784.0, 445.0, 784.0, 445.0, 831.0, 345.0, 831.0]}]}, - {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, - 166.0, 881.0], "words": [{"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, - 852.0, 253.0, 881.0, 166.0, 881.0]}]}, {"text": "Bernie Sanders", "boundingBox": - [258.0, 852.0, 445.0, 852.0, 445.0, 881.0, 258.0, 881.0], "words": [{"text": - "Bernie", "boundingBox": [258.0, 852.0, 341.0, 852.0, 341.0, 881.0, 258.0, - 881.0]}, {"text": "Sanders", "boundingBox": [347.0, 852.0, 445.0, 852.0, 445.0, - 881.0, 347.0, 881.0]}]}, {"text": "Company Name:", "boundingBox": [169.0, - 888.0, 378.0, 888.0, 378.0, 919.0, 169.0, 919.0], "words": [{"text": "Company", - "boundingBox": [169.0, 888.0, 286.0, 888.0, 286.0, 919.0, 169.0, 919.0]}, - {"text": "Name:", "boundingBox": [292.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 292.0, 919.0]}]}, {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, - 624.0, 888.0, 624.0, 919.0, 385.0, 919.0], "words": [{"text": "Jupiter", "boundingBox": - [385.0, 888.0, 470.0, 888.0, 470.0, 919.0, 385.0, 919.0]}, {"text": "Book", - "boundingBox": [477.0, 888.0, 541.0, 888.0, 541.0, 919.0, 477.0, 919.0]}, - {"text": "Supply", "boundingBox": [547.0, 888.0, 624.0, 888.0, 624.0, 919.0, - 547.0, 919.0]}]}, {"text": "Address:", "boundingBox": [168.0, 924.0, 276.0, - 924.0, 276.0, 954.0, 168.0, 954.0], "words": [{"text": "Address:", "boundingBox": - [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0]}]}, {"text": "383 - N Kinnick Road", "boundingBox": [283.0, 924.0, 524.0, 924.0, 524.0, 954.0, - 283.0, 954.0], "words": [{"text": "383", "boundingBox": [283.0, 924.0, 328.0, - 924.0, 328.0, 954.0, 283.0, 954.0]}, {"text": "N", "boundingBox": [335.0, - 924.0, 355.0, 924.0, 355.0, 954.0, 335.0, 954.0]}, {"text": "Kinnick", "boundingBox": - [362.0, 924.0, 451.0, 924.0, 451.0, 954.0, 362.0, 954.0]}, {"text": "Road", - "boundingBox": [457.0, 924.0, 524.0, 924.0, 524.0, 954.0, 457.0, 954.0]}]}, - {"text": "Seattle, WA 38383", "boundingBox": [285.0, 962.0, 515.0, 962.0, - 515.0, 992.0, 285.0, 992.0], "words": [{"text": "Seattle,", "boundingBox": - [285.0, 962.0, 380.0, 962.0, 380.0, 992.0, 285.0, 992.0]}, {"text": "WA", - "boundingBox": [386.0, 962.0, 432.0, 962.0, 432.0, 992.0, 386.0, 992.0]}, - {"text": "38383", "boundingBox": [438.0, 962.0, 515.0, 962.0, 515.0, 992.0, - 438.0, 992.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, 852.0, - 964.0, 852.0, 992.0, 760.0, 992.0], "words": [{"text": "Phone:", "boundingBox": - [760.0, 964.0, 852.0, 964.0, 852.0, 992.0, 760.0, 992.0]}]}, {"text": "932-299-0292", - "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, 857.0, 992.0], - "words": [{"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0]}]}, {"text": "Details", "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "words": [{"text": "Details", - "boundingBox": [447.0, 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0]}]}, - {"text": "Quantity", "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, - 1080.0, 890.0, 1080.0], "words": [{"text": "Quantity", "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0]}]}, {"text": "Unit - Price", "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, - 1080.0], "words": [{"text": "Unit", "boundingBox": [1113.0, 1045.0, 1184.0, - 1045.0, 1184.0, 1080.0, 1113.0, 1080.0]}, {"text": "Price", "boundingBox": - [1191.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1191.0, 1080.0]}]}, {"text": - "Total", "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "words": [{"text": "Total", "boundingBox": [1389.0, 1046.0, 1466.0, - 1046.0, 1466.0, 1080.0, 1389.0, 1080.0]}]}, {"text": "Bindings", "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "words": [{"text": - "Bindings", "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, - 1122.0]}]}, {"text": "20", "boundingBox": [863.0, 1098.0, 889.0, 1098.0, 889.0, - 1122.0, 863.0, 1122.0], "words": [{"text": "20", "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0]}]}, {"text": "1.00", "boundingBox": - [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "words": - [{"text": "1.00", "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, - 1122.0, 1243.0, 1122.0]}]}, {"text": "20.00", "boundingBox": [1466.0, 1098.0, - 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "words": [{"text": "20.00", - "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0]}]}, - {"text": "Covers Small", "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "words": [{"text": "Covers", "boundingBox": [172.0, - 1136.0, 257.0, 1136.0, 257.0, 1162.0, 172.0, 1162.0]}, {"text": "Small", "boundingBox": - [262.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 262.0, 1162.0]}]}, {"text": - "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, - 1162.0], "words": [{"text": "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, - 889.0, 1162.0, 862.0, 1162.0]}]}, {"text": "1.00", "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "words": [{"text": - "1.00", "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0]}]}, {"text": "20.00", "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, - 1531.0, 1162.0, 1464.0, 1162.0], "words": [{"text": "20.00", "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0]}]}, {"text": - "Feather Bookmark", "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, - 172.0, 1205.0], "words": [{"text": "Feather", "boundingBox": [172.0, 1179.0, - 271.0, 1179.0, 271.0, 1205.0, 172.0, 1205.0]}, {"text": "Bookmark", "boundingBox": - [276.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 276.0, 1205.0]}]}, {"text": - "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, - 1199.0], "words": [{"text": "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, - 888.0, 1199.0, 863.0, 1199.0]}]}, {"text": "5.00", "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "words": [{"text": - "5.00", "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0]}]}, {"text": "100.00", "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, - 1530.0, 1205.0, 1448.0, 1205.0], "words": [{"text": "100.00", "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0]}]}, {"text": - "Copper Swirl Marker", "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "words": [{"text": "Copper", "boundingBox": [171.0, - 1224.0, 265.0, 1224.0, 265.0, 1248.0, 171.0, 1248.0]}, {"text": "Swirl", "boundingBox": - [270.0, 1224.0, 334.0, 1224.0, 334.0, 1248.0, 270.0, 1248.0]}, {"text": "Marker", - "boundingBox": [339.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 339.0, 1248.0]}]}, - {"text": "20", "boundingBox": [864.0, 1221.0, 887.0, 1221.0, 887.0, 1244.0, - 864.0, 1244.0], "words": [{"text": "20", "boundingBox": [864.0, 1221.0, 887.0, - 1221.0, 887.0, 1244.0, 864.0, 1244.0]}]}, {"text": "5.00", "boundingBox": - [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "words": - [{"text": "5.00", "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, - 1248.0, 1242.0, 1248.0]}]}, {"text": "100.00", "boundingBox": [1449.0, 1225.0, - 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "words": [{"text": "100.00", - "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0]}]}, - {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, - 1599.0, 1156.0, 1599.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1156.0, - 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0]}]}, {"text": "$140.00", - "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], - "words": [{"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1242.0, - 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "words": [{"text": - "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, - 1643.0]}]}, {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "words": [{"text": "$4.00", "boundingBox": - [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0]}]}, {"text": - "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, - 485.0, 1708.0], "words": [{"text": "Bernie", "boundingBox": [485.0, 1669.0, - 605.0, 1669.0, 605.0, 1708.0, 485.0, 1708.0]}, {"text": "Sanders", "boundingBox": - [613.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, 613.0, 1708.0]}]}, {"text": - "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, - 1700.0], "words": [{"text": "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, - 1674.0, 1298.0, 1700.0, 1206.0, 1700.0]}]}, {"text": "$144.00", "boundingBox": - [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "words": - [{"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, - 1697.0, 1434.0, 1697.0]}]}, {"text": "Bernie Sanders", "boundingBox": [544.0, - 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, 1743.0], "words": [{"text": "Bernie", - "boundingBox": [544.0, 1717.0, 622.0, 1717.0, 622.0, 1743.0, 544.0, 1743.0]}, - {"text": "Sanders", "boundingBox": [627.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, - 627.0, 1743.0]}]}, {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "words": [{"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0]}]}, {"text": - "Additional Notes:", "boundingBox": [175.0, 1797.0, 479.0, 1797.0, 479.0, - 1834.0, 175.0, 1834.0], "words": [{"text": "Additional", "boundingBox": [175.0, - 1797.0, 358.0, 1797.0, 358.0, 1834.0, 175.0, 1834.0]}, {"text": "Notes:", - "boundingBox": [366.0, 1797.0, 479.0, 1797.0, 479.0, 1834.0, 366.0, 1834.0]}]}, - {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [176.0, - 1880.0, 707.0, 1880.0, 707.0, 1910.0, 176.0, 1910.0], "words": [{"text": "Do", - "boundingBox": [176.0, 1880.0, 208.0, 1880.0, 208.0, 1910.0, 176.0, 1910.0]}, - {"text": "not", "boundingBox": [213.0, 1880.0, 258.0, 1880.0, 258.0, 1910.0, - 213.0, 1910.0]}, {"text": "Jostle", "boundingBox": [264.0, 1880.0, 338.0, - 1880.0, 338.0, 1910.0, 264.0, 1910.0]}, {"text": "Box.", "boundingBox": [343.0, - 1880.0, 404.0, 1880.0, 404.0, 1910.0, 343.0, 1910.0]}, {"text": "Unpack", - "boundingBox": [410.0, 1880.0, 503.0, 1880.0, 503.0, 1910.0, 410.0, 1910.0]}, - {"text": "carefully.", "boundingBox": [509.0, 1880.0, 628.0, 1880.0, 628.0, - 1910.0, 509.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [633.0, 1880.0, - 707.0, 1880.0, 707.0, 1910.0, 633.0, 1910.0]}]}, {"text": "Jupiter Book Supply + [137.0, 140.0, 351.0, 140.0, 351.0, 167.0, 137.0, 167.0], "words": [{"text": + "Purchase", "boundingBox": [137.0, 140.0, 264.0, 140.0, 264.0, 167.0, 137.0, + 167.0]}, {"text": "Order", "boundingBox": [269.0, 139.0, 351.0, 139.0, 351.0, + 167.0, 269.0, 167.0]}]}, {"text": "Hero Limited", "boundingBox": [621.0, 206.0, + 1075.0, 206.0, 1075.0, 266.0, 621.0, 266.0], "words": [{"text": "Hero", "boundingBox": + [621.0, 208.0, 794.0, 208.0, 794.0, 266.0, 621.0, 266.0]}, {"text": "Limited", + "boundingBox": [806.0, 205.0, 1075.0, 205.0, 1075.0, 266.0, 806.0, 266.0]}]}, + {"text": "Purchase Order", "boundingBox": [1113.0, 322.0, 1554.0, 322.0, 1554.0, + 369.0, 1113.0, 369.0], "words": [{"text": "Purchase", "boundingBox": [1113.0, + 322.0, 1381.0, 322.0, 1381.0, 368.0, 1113.0, 368.0]}, {"text": "Order", "boundingBox": + [1390.0, 321.0, 1554.0, 321.0, 1554.0, 370.0, 1390.0, 370.0]}]}, {"text": + "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, 359.0, 378.0, + 163.0, 378.0], "words": [{"text": "Company", "boundingBox": [163.0, 353.0, + 274.0, 353.0, 274.0, 378.0, 163.0, 378.0]}, {"text": "Phone:", "boundingBox": + [279.0, 351.0, 359.0, 351.0, 359.0, 378.0, 279.0, 378.0]}]}, {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "words": + [{"text": "555-348-6512", "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, + 378.0, 364.0, 378.0]}]}, {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "words": [{"text": "Website:", + "boundingBox": [167.0, 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0]}]}, + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "words": [{"text": "www.herolimited.com", "boundingBox": + [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0]}]}, {"text": "Email:", + "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "words": + [{"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0]}]}, {"text": "Dated As:", "boundingBox": [1025.0, 421.0, 1160.0, + 421.0, 1160.0, 448.0, 1025.0, 448.0], "words": [{"text": "Dated", "boundingBox": + [1025.0, 421.0, 1108.0, 421.0, 1108.0, 448.0, 1025.0, 448.0]}, {"text": "As:", + "boundingBox": [1114.0, 420.0, 1160.0, 420.0, 1160.0, 448.0, 1114.0, 448.0]}]}, + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "words": [{"text": "12/20/2020", "boundingBox": [1165.0, + 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0]}]}, {"text": "Purchase + Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, 488.0, 1023.0, + 488.0], "words": [{"text": "Purchase", "boundingBox": [1023.0, 461.0, 1152.0, + 461.0, 1152.0, 488.0, 1023.0, 488.0]}, {"text": "Order", "boundingBox": [1157.0, + 461.0, 1238.0, 461.0, 1238.0, 489.0, 1157.0, 489.0]}, {"text": "#:", "boundingBox": + [1244.0, 461.0, 1272.0, 461.0, 1272.0, 489.0, 1244.0, 489.0]}]}, {"text": + "948284", "boundingBox": [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, + 489.0], "words": [{"text": "948284", "boundingBox": [1277.0, 461.0, 1376.0, + 461.0, 1376.0, 489.0, 1277.0, 489.0]}]}, {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "words": + [{"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, 479.0, + 481.0, 479.0, 503.0, 164.0, 503.0]}]}, {"text": "Shipped To", "boundingBox": + [167.0, 547.0, 397.0, 547.0, 397.0, 592.0, 167.0, 592.0], "words": [{"text": + "Shipped", "boundingBox": [167.0, 547.0, 333.0, 547.0, 333.0, 592.0, 167.0, + 592.0]}, {"text": "To", "boundingBox": [342.0, 547.0, 397.0, 547.0, 397.0, + 592.0, 342.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": [160.0, 611.0, + 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "words": [{"text": "Vendor", "boundingBox": + [160.0, 611.0, 254.0, 611.0, 254.0, 637.0, 160.0, 637.0]}, {"text": "Name:", + "boundingBox": [259.0, 610.0, 344.0, 610.0, 344.0, 638.0, 259.0, 638.0]}]}, + {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, 521.0, + 639.0, 350.0, 639.0], "words": [{"text": "Hillary", "boundingBox": [350.0, + 609.0, 430.0, 609.0, 430.0, 639.0, 350.0, 639.0]}, {"text": "Swank", "boundingBox": + [435.0, 609.0, 521.0, 609.0, 521.0, 639.0, 435.0, 639.0]}]}, {"text": "Company + Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, 160.0, 677.0], + "words": [{"text": "Company", "boundingBox": [160.0, 649.0, 280.0, 649.0, + 280.0, 676.0, 160.0, 676.0]}, {"text": "Name:", "boundingBox": [286.0, 647.0, + 370.0, 647.0, 370.0, 678.0, 286.0, 678.0]}]}, {"text": "Higgly Wiggly Books", + "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], "words": + [{"text": "Higgly", "boundingBox": [375.0, 647.0, 455.0, 647.0, 455.0, 679.0, + 375.0, 679.0]}, {"text": "Wiggly", "boundingBox": [461.0, 646.0, 546.0, 646.0, + 546.0, 679.0, 461.0, 679.0]}, {"text": "Books", "boundingBox": [552.0, 646.0, + 630.0, 646.0, 630.0, 678.0, 552.0, 678.0]}]}, {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "words": [{"text": + "Address:", "boundingBox": [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, + 711.0]}]}, {"text": "938 NE Burner Road", "boundingBox": [274.0, 685.0, 527.0, + 685.0, 527.0, 713.0, 274.0, 713.0], "words": [{"text": "938", "boundingBox": + [274.0, 685.0, 323.0, 685.0, 323.0, 712.0, 274.0, 712.0]}, {"text": "NE", + "boundingBox": [329.0, 685.0, 364.0, 685.0, 364.0, 713.0, 329.0, 713.0]}, + {"text": "Burner", "boundingBox": [370.0, 685.0, 455.0, 685.0, 455.0, 713.0, + 370.0, 713.0]}, {"text": "Road", "boundingBox": [460.0, 685.0, 527.0, 685.0, + 527.0, 713.0, 460.0, 713.0]}]}, {"text": "Boulder City, CO 92848", "boundingBox": + [279.0, 722.0, 565.0, 722.0, 565.0, 751.0, 279.0, 751.0], "words": [{"text": + "Boulder", "boundingBox": [279.0, 722.0, 371.0, 722.0, 371.0, 750.0, 279.0, + 750.0]}, {"text": "City,", "boundingBox": [377.0, 722.0, 433.0, 722.0, 433.0, + 751.0, 377.0, 751.0]}, {"text": "CO", "boundingBox": [439.0, 722.0, 477.0, + 722.0, 477.0, 751.0, 439.0, 751.0]}, {"text": "92848", "boundingBox": [482.0, + 722.0, 565.0, 722.0, 565.0, 751.0, 482.0, 751.0]}]}, {"text": "Phone:", "boundingBox": + [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "words": [{"text": + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0]}]}, {"text": "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, + 885.0, 749.0, 708.0, 749.0], "words": [{"text": "938-294-2949", "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0]}]}, {"text": "Shipped + From", "boundingBox": [167.0, 784.0, 448.0, 784.0, 448.0, 830.0, 167.0, 830.0], + "words": [{"text": "Shipped", "boundingBox": [167.0, 784.0, 327.0, 784.0, + 327.0, 830.0, 167.0, 830.0]}, {"text": "From", "boundingBox": [336.0, 785.0, + 448.0, 785.0, 448.0, 830.0, 336.0, 830.0]}]}, {"text": "Name:", "boundingBox": + [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "words": [{"text": + "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, + 879.0]}]}, {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "words": [{"text": "Bernie", "boundingBox": + [255.0, 852.0, 336.0, 852.0, 336.0, 879.0, 255.0, 879.0]}, {"text": "Sanders", + "boundingBox": [341.0, 852.0, 446.0, 852.0, 446.0, 880.0, 341.0, 880.0]}]}, + {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, + 919.0, 164.0, 919.0], "words": [{"text": "Company", "boundingBox": [164.0, + 890.0, 282.0, 890.0, 282.0, 919.0, 164.0, 919.0]}, {"text": "Name:", "boundingBox": + [288.0, 890.0, 374.0, 890.0, 374.0, 919.0, 288.0, 919.0]}]}, {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, + 919.0], "words": [{"text": "Jupiter", "boundingBox": [380.0, 889.0, 467.0, + 889.0, 467.0, 919.0, 380.0, 919.0]}, {"text": "Book", "boundingBox": [473.0, + 889.0, 536.0, 889.0, 536.0, 919.0, 473.0, 919.0]}, {"text": "Supply", "boundingBox": + [542.0, 889.0, 629.0, 889.0, 629.0, 920.0, 542.0, 920.0]}]}, {"text": "Address:", + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "words": + [{"text": "Address:", "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, + 166.0, 953.0]}]}, {"text": "383 N Kinnick Road", "boundingBox": [279.0, 926.0, + 521.0, 926.0, 521.0, 953.0, 279.0, 953.0], "words": [{"text": "383", "boundingBox": + [279.0, 925.0, 327.0, 925.0, 327.0, 953.0, 279.0, 953.0]}, {"text": "N", "boundingBox": + [332.0, 926.0, 353.0, 926.0, 353.0, 953.0, 332.0, 953.0]}, {"text": "Kinnick", + "boundingBox": [358.0, 926.0, 448.0, 926.0, 448.0, 953.0, 358.0, 953.0]}, + {"text": "Road", "boundingBox": [453.0, 926.0, 521.0, 926.0, 521.0, 954.0, + 453.0, 954.0]}]}, {"text": "Seattle, WA 38383", "boundingBox": [281.0, 965.0, + 514.0, 965.0, 514.0, 991.0, 281.0, 991.0], "words": [{"text": "Seattle,", + "boundingBox": [281.0, 965.0, 377.0, 965.0, 377.0, 991.0, 281.0, 991.0]}, + {"text": "WA", "boundingBox": [382.0, 964.0, 429.0, 964.0, 429.0, 991.0, 382.0, + 991.0]}, {"text": "38383", "boundingBox": [434.0, 964.0, 514.0, 964.0, 514.0, + 991.0, 434.0, 991.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "words": [{"text": "Phone:", "boundingBox": + [760.0, 964.0, 849.0, 964.0, 849.0, 990.0, 760.0, 990.0]}]}, {"text": "932-299-0292", + "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, 855.0, 990.0], + "words": [{"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0]}]}, {"text": "Details", "boundingBox": [447.0, + 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "words": [{"text": "Details", + "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0]}]}, + {"text": "Quantity", "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, + 1084.0, 886.0, 1084.0], "words": [{"text": "Quantity", "boundingBox": [886.0, + 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0]}]}, {"text": "Unit + Price", "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1111.0, + 1078.0], "words": [{"text": "Unit", "boundingBox": [1111.0, 1047.0, 1181.0, + 1047.0, 1181.0, 1078.0, 1111.0, 1078.0]}, {"text": "Price", "boundingBox": + [1187.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1187.0, 1078.0]}]}, {"text": + "Total", "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "words": [{"text": "Total", "boundingBox": [1383.0, 1047.0, 1467.0, + 1047.0, 1467.0, 1077.0, 1383.0, 1077.0]}]}, {"text": "Bindings", "boundingBox": + [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "words": [{"text": + "Bindings", "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, + 1122.0]}]}, {"text": "20", "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, + 1119.0, 861.0, 1119.0], "words": [{"text": "20", "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0]}]}, {"text": "1.00", "boundingBox": + [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "words": + [{"text": "1.00", "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, + 1118.0, 1241.0, 1118.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1096.0, + 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "words": [{"text": "20.00", + "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0]}]}, + {"text": "Covers Small", "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "words": [{"text": "Covers", "boundingBox": [170.0, + 1136.0, 254.0, 1136.0, 254.0, 1161.0, 170.0, 1161.0]}, {"text": "Small", "boundingBox": + [259.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 259.0, 1161.0]}]}, {"text": + "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, + 1160.0], "words": [{"text": "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, + 892.0, 1160.0, 861.0, 1160.0]}]}, {"text": "1.00", "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "words": [{"text": + "1.00", "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, + 1529.0, 1160.0, 1458.0, 1160.0], "words": [{"text": "20.00", "boundingBox": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0]}]}, {"text": + "Feather Bookmark", "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, + 173.0, 1206.0], "words": [{"text": "Feather", "boundingBox": [173.0, 1180.0, + 266.0, 1180.0, 266.0, 1206.0, 173.0, 1206.0]}, {"text": "Bookmark", "boundingBox": + [271.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 271.0, 1206.0]}]}, {"text": + "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, + 1204.0], "words": [{"text": "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, + 892.0, 1204.0, 863.0, 1204.0]}]}, {"text": "5.00", "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "words": [{"text": + "5.00", "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0]}]}, {"text": "100.00", "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, + 1529.0, 1205.0, 1443.0, 1205.0], "words": [{"text": "100.00", "boundingBox": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0]}]}, {"text": + "Copper Swirl Marker", "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "words": [{"text": "Copper", "boundingBox": [170.0, + 1223.0, 259.0, 1223.0, 259.0, 1253.0, 170.0, 1253.0]}, {"text": "Swirl", "boundingBox": + [265.0, 1222.0, 328.0, 1222.0, 328.0, 1252.0, 265.0, 1252.0]}, {"text": "Marker", + "boundingBox": [334.0, 1222.0, 429.0, 1222.0, 429.0, 1251.0, 334.0, 1251.0]}]}, + {"text": "20", "boundingBox": [860.0, 1223.0, 892.0, 1223.0, 892.0, 1247.0, + 860.0, 1247.0], "words": [{"text": "20", "boundingBox": [860.0, 1223.0, 892.0, + 1223.0, 892.0, 1247.0, 860.0, 1247.0]}]}, {"text": "5.00", "boundingBox": + [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "words": + [{"text": "5.00", "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, + 1247.0, 1239.0, 1247.0]}]}, {"text": "100.00", "boundingBox": [1444.0, 1224.0, + 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "words": [{"text": "100.00", + "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0]}]}, + {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, + 1600.0, 1147.0, 1600.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1147.0, + 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0]}]}, {"text": "$140.00", + "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], + "words": [{"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1238.0, + 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "words": [{"text": + "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, + 1643.0]}]}, {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "words": [{"text": "$4.00", "boundingBox": + [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0]}]}, {"text": + "Bernie Sanders", "boundingBox": [489.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, + 489.0, 1706.0], "words": [{"text": "Bernie", "boundingBox": [489.0, 1671.0, + 609.0, 1671.0, 609.0, 1706.0, 489.0, 1706.0]}, {"text": "Sanders", "boundingBox": + [616.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, 616.0, 1706.0]}]}, {"text": + "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, + 1699.0], "words": [{"text": "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, + 1674.0, 1297.0, 1699.0, 1204.0, 1699.0]}]}, {"text": "$144.00", "boundingBox": + [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "words": + [{"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, + 1698.0, 1427.0, 1698.0]}]}, {"text": "Bernie Sanders", "boundingBox": [542.0, + 1719.0, 717.0, 1719.0, 717.0, 1742.0, 542.0, 1742.0], "words": [{"text": "Bernie", + "boundingBox": [542.0, 1719.0, 617.0, 1719.0, 617.0, 1742.0, 542.0, 1742.0]}, + {"text": "Sanders", "boundingBox": [621.0, 1719.0, 717.0, 1719.0, 717.0, 1742.0, + 621.0, 1742.0]}]}, {"text": "Manager", "boundingBox": [577.0, 1754.0, 681.0, + 1754.0, 681.0, 1776.0, 577.0, 1776.0], "words": [{"text": "Manager", "boundingBox": + [577.0, 1754.0, 681.0, 1754.0, 681.0, 1776.0, 577.0, 1776.0]}]}, {"text": + "Additional Notes:", "boundingBox": [173.0, 1796.0, 479.0, 1796.0, 479.0, + 1831.0, 173.0, 1831.0], "words": [{"text": "Additional", "boundingBox": [173.0, + 1796.0, 355.0, 1796.0, 355.0, 1831.0, 173.0, 1831.0]}, {"text": "Notes:", + "boundingBox": [361.0, 1796.0, 479.0, 1796.0, 479.0, 1832.0, 361.0, 1832.0]}]}, + {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [175.0, + 1880.0, 707.0, 1880.0, 707.0, 1909.0, 175.0, 1909.0], "words": [{"text": "Do", + "boundingBox": [175.0, 1881.0, 205.0, 1881.0, 205.0, 1907.0, 175.0, 1907.0]}, + {"text": "not", "boundingBox": [210.0, 1881.0, 256.0, 1881.0, 256.0, 1907.0, + 210.0, 1907.0]}, {"text": "Jostle", "boundingBox": [261.0, 1880.0, 335.0, + 1880.0, 335.0, 1908.0, 261.0, 1908.0]}, {"text": "Box.", "boundingBox": [340.0, + 1880.0, 401.0, 1880.0, 401.0, 1909.0, 340.0, 1909.0]}, {"text": "Unpack", + "boundingBox": [406.0, 1880.0, 500.0, 1880.0, 500.0, 1909.0, 406.0, 1909.0]}, + {"text": "carefully.", "boundingBox": [505.0, 1880.0, 623.0, 1880.0, 623.0, + 1910.0, 505.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [628.0, 1880.0, + 707.0, 1880.0, 707.0, 1911.0, 628.0, 1911.0]}]}, {"text": "Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and", "boundingBox": - [173.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 173.0, 1959.0], "words": [{"text": - "Jupiter", "boundingBox": [173.0, 1925.0, 274.0, 1925.0, 274.0, 1959.0, 173.0, - 1959.0]}, {"text": "Book", "boundingBox": [280.0, 1925.0, 361.0, 1925.0, 361.0, - 1959.0, 280.0, 1959.0]}, {"text": "Supply", "boundingBox": [367.0, 1925.0, - 470.0, 1925.0, 470.0, 1959.0, 367.0, 1959.0]}, {"text": "will", "boundingBox": - [477.0, 1925.0, 523.0, 1925.0, 523.0, 1959.0, 477.0, 1959.0]}, {"text": "refund", - "boundingBox": [530.0, 1925.0, 628.0, 1925.0, 628.0, 1959.0, 530.0, 1959.0]}, - {"text": "you", "boundingBox": [635.0, 1925.0, 693.0, 1925.0, 693.0, 1959.0, - 635.0, 1959.0]}, {"text": "50%", "boundingBox": [699.0, 1925.0, 766.0, 1925.0, - 766.0, 1959.0, 699.0, 1959.0]}, {"text": "per", "boundingBox": [773.0, 1925.0, - 827.0, 1925.0, 827.0, 1959.0, 773.0, 1959.0]}, {"text": "book", "boundingBox": - [833.0, 1925.0, 907.0, 1925.0, 907.0, 1959.0, 833.0, 1959.0]}, {"text": "if", - "boundingBox": [913.0, 1925.0, 934.0, 1925.0, 934.0, 1959.0, 913.0, 1959.0]}, - {"text": "returned", "boundingBox": [940.0, 1925.0, 1067.0, 1925.0, 1067.0, - 1959.0, 940.0, 1959.0]}, {"text": "within", "boundingBox": [1074.0, 1925.0, - 1161.0, 1925.0, 1161.0, 1959.0, 1074.0, 1959.0]}, {"text": "60", "boundingBox": - [1168.0, 1925.0, 1210.0, 1925.0, 1210.0, 1959.0, 1168.0, 1959.0]}, {"text": - "days", "boundingBox": [1219.0, 1925.0, 1288.0, 1925.0, 1288.0, 1959.0, 1219.0, - 1959.0]}, {"text": "of", "boundingBox": [1295.0, 1925.0, 1324.0, 1925.0, 1324.0, - 1959.0, 1295.0, 1959.0]}, {"text": "reading", "boundingBox": [1330.0, 1925.0, - 1446.0, 1925.0, 1446.0, 1959.0, 1330.0, 1959.0]}, {"text": "and", "boundingBox": - [1453.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 1453.0, 1959.0]}]}, {"text": - "offer you 25% off you next total purchase.", "boundingBox": [170.0, 1959.0, - 782.0, 1959.0, 782.0, 1992.0, 170.0, 1992.0], "words": [{"text": "offer", - "boundingBox": [170.0, 1959.0, 239.0, 1959.0, 239.0, 1992.0, 170.0, 1992.0]}, - {"text": "you", "boundingBox": [246.0, 1959.0, 304.0, 1959.0, 304.0, 1992.0, - 246.0, 1992.0]}, {"text": "25%", "boundingBox": [310.0, 1959.0, 379.0, 1959.0, - 379.0, 1992.0, 310.0, 1992.0]}, {"text": "off", "boundingBox": [386.0, 1959.0, - 425.0, 1959.0, 425.0, 1992.0, 386.0, 1992.0]}, {"text": "you", "boundingBox": - [432.0, 1959.0, 490.0, 1959.0, 490.0, 1992.0, 432.0, 1992.0]}, {"text": "next", - "boundingBox": [496.0, 1959.0, 561.0, 1959.0, 561.0, 1992.0, 496.0, 1992.0]}, - {"text": "total", "boundingBox": [567.0, 1959.0, 634.0, 1959.0, 634.0, 1992.0, - 567.0, 1992.0]}, {"text": "purchase.", "boundingBox": [641.0, 1959.0, 782.0, - 1959.0, 782.0, 1992.0, 641.0, 1992.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": ["#/readResults/0/lines/1/words/0", - "#/readResults/0/lines/1/words/1"]}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, "value": - {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0], "elements": ["#/readResults/0/lines/4/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, - 271.0, 420.0, 167.0, 420.0], "elements": ["#/readResults/0/lines/5/words/0"]}, - "value": {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, - 392.0, 530.0, 420.0, 277.0, 420.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + [169.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 169.0, 1958.0], "words": [{"text": + "Jupiter", "boundingBox": [169.0, 1924.0, 270.0, 1924.0, 270.0, 1959.0, 169.0, + 1959.0]}, {"text": "Book", "boundingBox": [277.0, 1924.0, 355.0, 1924.0, 355.0, + 1959.0, 277.0, 1959.0]}, {"text": "Supply", "boundingBox": [361.0, 1924.0, + 465.0, 1924.0, 465.0, 1958.0, 361.0, 1958.0]}, {"text": "will", "boundingBox": + [472.0, 1924.0, 517.0, 1924.0, 517.0, 1958.0, 472.0, 1958.0]}, {"text": "refund", + "boundingBox": [524.0, 1924.0, 625.0, 1924.0, 625.0, 1958.0, 524.0, 1958.0]}, + {"text": "you", "boundingBox": [632.0, 1924.0, 687.0, 1924.0, 687.0, 1958.0, + 632.0, 1958.0]}, {"text": "50%", "boundingBox": [694.0, 1924.0, 763.0, 1924.0, + 763.0, 1958.0, 694.0, 1958.0]}, {"text": "per", "boundingBox": [770.0, 1924.0, + 820.0, 1924.0, 820.0, 1958.0, 770.0, 1958.0]}, {"text": "book", "boundingBox": + [827.0, 1924.0, 900.0, 1924.0, 900.0, 1958.0, 827.0, 1958.0]}, {"text": "if", + "boundingBox": [907.0, 1924.0, 928.0, 1924.0, 928.0, 1958.0, 907.0, 1958.0]}, + {"text": "returned", "boundingBox": [935.0, 1924.0, 1063.0, 1924.0, 1063.0, + 1958.0, 935.0, 1958.0]}, {"text": "within", "boundingBox": [1070.0, 1924.0, + 1157.0, 1924.0, 1157.0, 1958.0, 1070.0, 1958.0]}, {"text": "60", "boundingBox": + [1164.0, 1924.0, 1203.0, 1924.0, 1203.0, 1958.0, 1164.0, 1958.0]}, {"text": + "days", "boundingBox": [1210.0, 1924.0, 1284.0, 1924.0, 1284.0, 1958.0, 1210.0, + 1958.0]}, {"text": "of", "boundingBox": [1290.0, 1924.0, 1318.0, 1924.0, 1318.0, + 1958.0, 1290.0, 1958.0]}, {"text": "reading", "boundingBox": [1325.0, 1924.0, + 1439.0, 1924.0, 1439.0, 1958.0, 1325.0, 1958.0]}, {"text": "and", "boundingBox": + [1446.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 1446.0, 1958.0]}]}, {"text": + "offer you 25% off you next total purchase.", "boundingBox": [169.0, 1958.0, + 786.0, 1958.0, 786.0, 1992.0, 169.0, 1992.0], "words": [{"text": "offer", + "boundingBox": [169.0, 1958.0, 235.0, 1958.0, 235.0, 1991.0, 169.0, 1991.0]}, + {"text": "you", "boundingBox": [242.0, 1958.0, 299.0, 1958.0, 299.0, 1991.0, + 242.0, 1991.0]}, {"text": "25%", "boundingBox": [306.0, 1958.0, 374.0, 1958.0, + 374.0, 1992.0, 306.0, 1992.0]}, {"text": "off", "boundingBox": [380.0, 1958.0, + 421.0, 1958.0, 421.0, 1992.0, 380.0, 1992.0]}, {"text": "you", "boundingBox": + [427.0, 1958.0, 483.0, 1958.0, 483.0, 1992.0, 427.0, 1992.0]}, {"text": "next", + "boundingBox": [489.0, 1958.0, 556.0, 1958.0, 556.0, 1992.0, 489.0, 1992.0]}, + {"text": "total", "boundingBox": [562.0, 1959.0, 628.0, 1959.0, 628.0, 1992.0, + 562.0, 1992.0]}, {"text": "purchase.", "boundingBox": [635.0, 1959.0, 786.0, + 1959.0, 786.0, 1991.0, 635.0, 1991.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": ["#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1"]}, "value": {"text": "555-348-6512", "boundingBox": + [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": ["#/readResults/0/lines/4/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": ["#/readResults/0/lines/5/words/0"]}, + "value": {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, + 393.0, 531.0, 418.0, 273.0, 418.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Email:", "boundingBox": [165.0, 435.0, + 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "elements": ["#/readResults/0/lines/7/words/0"]}, + "value": {"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, + 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": - [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], "elements": - ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": ["#/readResults/0/lines/9/words/0"]}, "value": {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, - 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": ["#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, - "value": {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, - 1376.0, 491.0, 1282.0, 491.0], "elements": ["#/readResults/0/lines/11/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": [162.0, - 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "elements": ["#/readResults/0/lines/14/words/0", - "#/readResults/0/lines/14/words/1"]}, "value": {"text": "Hillary Swank", "boundingBox": - [352.0, 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": ["#/readResults/0/lines/15/words/0", + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": ["#/readResults/0/lines/8/words/0", + "#/readResults/0/lines/8/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0], "elements": + ["#/readResults/0/lines/9/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", + "#/readResults/0/lines/10/words/2"]}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + ["#/readResults/0/lines/11/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Vendor Name:", "boundingBox": [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, + 160.0, 637.0], "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"]}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1"]}, "confidence": 0.7}, {"key": {"text": - "Company Name:", "boundingBox": [162.0, 646.0, 373.0, 646.0, 373.0, 678.0, - 162.0, 678.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "value": {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, - 646.0, 628.0, 678.0, 379.0, 678.0], "elements": ["#/readResults/0/lines/17/words/0", + "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, + 160.0, 677.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, + "value": {"text": "Higgly Wiggly Books", "boundingBox": [375.0, 646.0, 630.0, + 646.0, 630.0, 679.0, 375.0, 679.0], "elements": ["#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2"]}, - "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": ["#/readResults/0/lines/18/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [161.0, 685.0, + 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": ["#/readResults/0/lines/18/words/0"]}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": ["#/readResults/0/lines/19/words/0", + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": ["#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1", "#/readResults/0/lines/20/words/2", "#/readResults/0/lines/20/words/3"]}, "confidence": 1.0}, {"key": {"text": - "Phone:", "boundingBox": [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, - 752.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, - 253.0, 881.0, 166.0, 881.0], "elements": ["#/readResults/0/lines/24/words/0"]}, - "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, 852.0, - 445.0, 881.0, 258.0, 881.0], "elements": ["#/readResults/0/lines/25/words/0", + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": + 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, + 250.0, 879.0, 166.0, 879.0], "elements": ["#/readResults/0/lines/24/words/0"]}, + "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, 852.0, + 446.0, 880.0, 255.0, 880.0], "elements": ["#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 169.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, - "value": {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, 624.0, - 888.0, 624.0, 919.0, 385.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", + "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, 919.0, + 164.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, + "value": {"text": "Jupiter Book Supply", "boundingBox": [380.0, 889.0, 629.0, + 889.0, 629.0, 919.0, 380.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/27/words/2"]}, - "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [168.0, 924.0, - 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": ["#/readResults/0/lines/28/words/0"]}, - "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [283.0, - 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": ["#/readResults/0/lines/29/words/0", + "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [166.0, 926.0, + 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": ["#/readResults/0/lines/28/words/0"]}, + "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [279.0, + 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": ["#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/29/words/3", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2"]}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": ["#/readResults/0/lines/31/words/0"]}, - "value": {"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0], "elements": ["#/readResults/0/lines/32/words/0"]}, - "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, - 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], "elements": ["#/readResults/0/lines/53/words/0"]}, - "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, - 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, - "value": {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "elements": ["#/readResults/0/lines/56/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1206.0, 1674.0, - 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": ["#/readResults/0/lines/58/words/0"]}, - "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, - 1531.0, 1697.0, 1434.0, 1697.0], "elements": ["#/readResults/0/lines/59/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, - 1797.0, 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": ["#/readResults/0/lines/62/words/0", + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": ["#/readResults/0/lines/31/words/0"]}, + "value": {"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0], "elements": ["#/readResults/0/lines/32/words/0"]}, + "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, + 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], "elements": ["#/readResults/0/lines/53/words/0"]}, + "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, + 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, + "value": {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "elements": ["#/readResults/0/lines/56/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1204.0, 1674.0, + 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": ["#/readResults/0/lines/58/words/0"]}, + "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, + 1529.0, 1698.0, 1427.0, 1698.0], "elements": ["#/readResults/0/lines/59/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, + 1796.0, 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": ["#/readResults/0/lines/62/words/0", "#/readResults/0/lines/62/words/1"]}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer you 25% off you next total - purchase.", "boundingBox": [170.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, - 170.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", + purchase.", "boundingBox": [169.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, + 169.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", "#/readResults/0/lines/63/words/2", "#/readResults/0/lines/63/words/3", "#/readResults/0/lines/63/words/4", "#/readResults/0/lines/63/words/5", "#/readResults/0/lines/63/words/6", "#/readResults/0/lines/64/words/0", "#/readResults/0/lines/64/words/1", "#/readResults/0/lines/64/words/2", "#/readResults/0/lines/64/words/3", @@ -8932,109 +8931,85 @@ interactions: "#/readResults/0/lines/64/words/16", "#/readResults/0/lines/65/words/0", "#/readResults/0/lines/65/words/1", "#/readResults/0/lines/65/words/2", "#/readResults/0/lines/65/words/3", "#/readResults/0/lines/65/words/4", "#/readResults/0/lines/65/words/5", "#/readResults/0/lines/65/words/6", "#/readResults/0/lines/65/words/7"]}, - "confidence": 0.53}, {"key": {"text": "__Tokens__1", "boundingBox": null, - "elements": null}, "value": {"text": "Purchase Order", "boundingBox": [141.0, - 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "elements": ["#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/0/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": ["#/readResults/0/lines/2/words/0", "#/readResults/0/lines/2/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped To", "boundingBox": [170.0, 546.0, 398.0, - 546.0, 398.0, 592.0, 170.0, 592.0], "elements": ["#/readResults/0/lines/13/words/0", - "#/readResults/0/lines/13/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__4", "boundingBox": null, "elements": null}, "value": {"text": "Shipped - From", "boundingBox": [169.0, 784.0, 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], - "elements": ["#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, - 766.0, 1669.0, 766.0, 1708.0, 485.0, 1708.0], "elements": ["#/readResults/0/lines/57/words/0", - "#/readResults/0/lines/57/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": ["#/readResults/0/lines/60/words/0", "#/readResults/0/lines/60/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__7", "boundingBox": null, "elements": - null}, "value": {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": ["#/readResults/0/lines/61/words/0"]}, - "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": - "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1047.0, - 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + "confidence": 0.53}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": + "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, + 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, "columnIndex": - 1, "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], + 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": true, "isFooter": false}, {"text": "Unit Price", "rowIndex": 0, - "columnIndex": 2, "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, - 1080.0, 1113.0, 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, + 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1"], "isHeader": true, "isFooter": false}, {"text": "Total", "rowIndex": 0, "columnIndex": - 3, "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], + 3, "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], "isHeader": true, "isFooter": false}, {"text": "Bindings", "rowIndex": 1, - "columnIndex": 0, "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, - 173.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + "columnIndex": 0, "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, + 172.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 1, "columnIndex": - 2, "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + 2, "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, + 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": - 3, "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], + 3, "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, + 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/41/words/0", "#/readResults/0/lines/41/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], + 1, "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/42/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 2, "columnIndex": - 2, "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], + 2, "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": - 3, "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], + 3, "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, - 1205.0, 172.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, + 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/45/words/0", "#/readResults/0/lines/45/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], + 1, "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/46/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 3, "columnIndex": - 2, "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], + 2, "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": - 3, "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, + 3, "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/48/words/0"], "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/49/words/0", "#/readResults/0/lines/49/words/1", "#/readResults/0/lines/49/words/2"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, 1221.0, - 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, 1223.0, + 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/50/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 4, "columnIndex": - 2, "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, - 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], + 2, "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, + 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": - 3, "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, + 3, "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/52/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 81866a1b-0f02-458b-b86e-1dd984485d83 - content-length: '36450' + apim-request-id: 90a90782-a3d6-4b75-862e-9f0786873447 + content-length: '34193' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:12 GMT + date: Mon, 14 Sep 2020 19:52:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/2ad5b44d-30ba-4deb-974e-f4fc138dd3c8/analyzeresults/66e2cba4-2e75-4c27-b894-32cd0beef28c + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bdc18352-b825-4d6b-8e00-8bac430bd6f1/analyzeresults/7643087f-ef5f-4b4d-b9ef-e31760c61d89 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml index 65efbf4e68e6..36a095f29faf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_bad_url.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 4b3c635b-9ae4-40a3-acdf-61a2c106900a + - 5f478877-019f-44df-a4a1-b5afa42dd92b content-length: - '0' date: - - Mon, 17 Aug 2020 18:28:22 GMT + - Mon, 14 Sep 2020 20:13:09 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa8518c2-be2e-4e12-9946-c6941e004a4a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5aba9196-8046-4d1e-a6e7-90271a72384f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '118' status: code: 201 message: Created @@ -48,71 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa8518c2-be2e-4e12-9946-c6941e004a4a?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "aa8518c2-be2e-4e12-9946-c6941e004a4a", "status": - "creating", "createdDateTime": "2020-08-17T18:28:23Z", "lastUpdatedDateTime": - "2020-08-17T18:28:23Z"}}' - headers: - apim-request-id: - - f8cfb2ae-412c-4a16-8910-81e563177378 - content-type: - - application/json; charset=utf-8 - date: - - Mon, 17 Aug 2020 18:28:28 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '37' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa8518c2-be2e-4e12-9946-c6941e004a4a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5aba9196-8046-4d1e-a6e7-90271a72384f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "aa8518c2-be2e-4e12-9946-c6941e004a4a", "status": - "ready", "createdDateTime": "2020-08-17T18:28:23Z", "lastUpdatedDateTime": - "2020-08-17T18:28:30Z"}, "trainResult": {"averageModelAccuracy": 0.96, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "5aba9196-8046-4d1e-a6e7-90271a72384f", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:13:10Z", + "lastUpdatedDateTime": "2020-09-14T20:13:12Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 4721d793-e690-45f0-a0d1-27f732df549f + - 4123400b-e696-4516-a32c-f65cf030d96d content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:28:33 GMT + - Mon, 14 Sep 2020 20:13:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -120,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '54' status: code: 200 message: OK @@ -128,7 +92,7 @@ interactions: body: 'b''{"source": "https://badurl.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -138,27 +102,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa8518c2-be2e-4e12-9946-c6941e004a4a/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5aba9196-8046-4d1e-a6e7-90271a72384f/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - e0e9b71f-08cb-45d3-a974-2a3ce37e9ec7 + - d9ef85b7-38f4-4be6-8c9d-bb4455a00f96 content-length: - '0' date: - - Mon, 17 Aug 2020 18:28:33 GMT + - Mon, 14 Sep 2020 20:13:14 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa8518c2-be2e-4e12-9946-c6941e004a4a/analyzeresults/29433ee4-252b-4b64-a959-8acd7b3f8f0c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5aba9196-8046-4d1e-a6e7-90271a72384f/analyzeresults/fb871dcc-cfed-478b-920d-16d486870d0a strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '90' status: code: 202 message: Accepted @@ -172,29 +136,29 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/aa8518c2-be2e-4e12-9946-c6941e004a4a/analyzeresults/29433ee4-252b-4b64-a959-8acd7b3f8f0c + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5aba9196-8046-4d1e-a6e7-90271a72384f/analyzeresults/fb871dcc-cfed-478b-920d-16d486870d0a response: body: - string: '{"status": "failed", "createdDateTime": "2020-08-17T18:28:34Z", "lastUpdatedDateTime": - "2020-08-17T18:28:34Z", "analyzeResult": {"version": "2.0.0", "errors": [{"code": + string: '{"status": "failed", "createdDateTime": "2020-09-14T20:13:15Z", "lastUpdatedDateTime": + "2020-09-14T20:13:15Z", "analyzeResult": {"version": "2.1.0", "errors": [{"code": "2003", "message": "Failed to download image from input URL."}]}}' headers: apim-request-id: - - 49a6648e-69c2-45e5-a894-15832aba74d9 + - 073eab59-d0b2-4848-821e-079f9fa57b3c content-length: - '221' content-type: - application/json; charset=utf-8 date: - - Mon, 17 Aug 2020 18:28:43 GMT + - Mon, 14 Sep 2020 20:13:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5040' + - '53' x-ms-cs-error-code: - '2003' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml index eb08c87a60b1..6e0e0d1b2675 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_labeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - afdc81e4-10c9-4cf5-8b70-f1c68335c04c + - a4112bda-d1a6-42f9-860a-5460cf4bac9f content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:10 GMT + - Mon, 14 Sep 2020 20:13:20 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c7c7774b-6fad-405c-8c3f-7b5e91bd58eb strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '69' + - '65' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c7c7774b-6fad-405c-8c3f-7b5e91bd58eb?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8c2dd996-1f46-4f18-bdff-4b216256e37a", "status": - "ready", "createdDateTime": "2020-07-10T18:53:10Z", "lastUpdatedDateTime": - "2020-07-10T18:53:13Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "c7c7774b-6fad-405c-8c3f-7b5e91bd58eb", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:13:21Z", + "lastUpdatedDateTime": "2020-09-14T20:13:24Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 5b263523-4e5b-4db4-9a6c-ee9ebad70598 + - 8575b4be-e827-4dee-b9c5-45db4f0fa32c content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:15 GMT + - Mon, 14 Sep 2020 20:13:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '17' status: code: 200 message: OK @@ -92,7 +92,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -102,27 +102,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c7c7774b-6fad-405c-8c3f-7b5e91bd58eb/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 8dd2f056-cad5-47e9-8e4f-e8c1547e2a86 + - 0cf0204d-11a4-46a1-b8dd-e2f5efbe40e5 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:16 GMT + - Mon, 14 Sep 2020 20:13:26 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c7c7774b-6fad-405c-8c3f-7b5e91bd58eb/analyzeresults/cb251eb9-eba1-4343-9565-409c0da613b4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '55' + - '74' status: code: 202 message: Accepted @@ -136,63 +136,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:16Z", - "lastUpdatedDateTime": "2020-07-10T18:53:18Z"}' - headers: - apim-request-id: - - cb3c04fe-981b-4d04-9b1f-09baffda883d - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:53:21 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c7c7774b-6fad-405c-8c3f-7b5e91bd58eb/analyzeresults/cb251eb9-eba1-4343-9565-409c0da613b4 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:16Z", - "lastUpdatedDateTime": "2020-07-10T18:53:18Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:13:26Z", + "lastUpdatedDateTime": "2020-09-14T20:13:30Z"}' headers: apim-request-id: - - 0a8cd37d-51a7-4580-b891-2b892e82815e + - c5e4b6e4-8343-4d32-b726-e90c851b7b53 content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:26 GMT + - Mon, 14 Sep 2020 20:13:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '37' status: code: 200 message: OK @@ -206,110 +171,113 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8c2dd996-1f46-4f18-bdff-4b216256e37a/analyzeresults/f5341507-316a-4e0f-b87e-998efca9dcc2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c7c7774b-6fad-405c-8c3f-7b5e91bd58eb/analyzeresults/cb251eb9-eba1-4343-9565-409c0da613b4 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:16Z", - "lastUpdatedDateTime": "2020-07-10T18:53:28Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": - [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": - "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, 1309, 1610, 1072, 1610]}, - {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", "boundingBox": [1309, - 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": 2, "columnIndex": - 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, 1309, 1658, 1072, - 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", "boundingBox": - [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Bernie Sanders", "boundingBox": [482, 1658, 1072, 1658, 1072, - 1708, 482, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": "TOTAL", "boundingBox": - [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, {"rowIndex": 3, "columnIndex": - 2, "text": "$144.00", "boundingBox": [1309, 1658, 1544, 1658, 1544, 1708, - 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Details", "boundingBox": [156, 1038, 847, 1038, 847, 1087, 156, - 1087]}, {"rowIndex": 0, "columnIndex": 1, "text": "Quantity", "boundingBox": - [847, 1038, 1072, 1038, 1072, 1087, 847, 1087]}, {"rowIndex": 0, "columnIndex": - 2, "text": "Unit Price", "boundingBox": [1072, 1038, 1309, 1038, 1309, 1087, - 1072, 1087]}, {"rowIndex": 0, "columnIndex": 3, "text": "Total", "boundingBox": - [1309, 1038, 1544, 1038, 1544, 1087, 1309, 1087]}, {"rowIndex": 1, "columnIndex": - 0, "text": "Bindings", "boundingBox": [156, 1087, 847, 1087, 847, 1128, 156, - 1128]}, {"rowIndex": 1, "columnIndex": 1, "text": "20", "boundingBox": [847, - 1087, 1072, 1087, 1072, 1128, 847, 1128]}, {"rowIndex": 1, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1087, 1309, 1087, 1309, 1128, 1072, - 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, {"rowIndex": 2, "columnIndex": - 0, "text": "Covers Small", "boundingBox": [156, 1128, 847, 1128, 847, 1172, - 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, {"rowIndex": 2, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1128, 1309, 1128, 1309, 1172, 1072, - 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Feather Bookmark", "boundingBox": [156, 1172, 847, 1172, 847, - 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, {"rowIndex": 3, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1172, 1309, 1172, 1309, 1216, 1072, - 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, {"rowIndex": 4, "columnIndex": - 0, "text": "Copper Swirl Marker", "boundingBox": [156, 1216, 847, 1216, 847, - 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, {"rowIndex": 4, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, - 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"Subtotal": {"type": - "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": - [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:13:26Z", + "lastUpdatedDateTime": "2020-09-14T20:13:34Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "selectionMarks": [{"boundingBox": [2, 2060, 195, 2060, + 195, 2200, 2, 2200], "confidence": 0.881, "state": "unselected"}]}], "pageResults": + [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, + "columnIndex": 1, "text": "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, + 1309, 1610, 1072, 1610]}, {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", + "boundingBox": [1309, 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": + 2, "columnIndex": 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, + 1309, 1658, 1072, 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", + "boundingBox": [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": + 3, "columnIndex": 0, "text": "Bernie Sanders", "boundingBox": [489, 1658, + 1072, 1658, 1072, 1708, 489, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": + "TOTAL", "boundingBox": [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, + {"rowIndex": 3, "columnIndex": 2, "text": "$144.00", "boundingBox": [1309, + 1658, 1544, 1658, 1544, 1708, 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Details", "boundingBox": [156, + 1038, 847, 1038, 847, 1087, 156, 1087]}, {"rowIndex": 0, "columnIndex": 1, + "text": "Quantity", "boundingBox": [847, 1038, 1072, 1038, 1072, 1087, 847, + 1087]}, {"rowIndex": 0, "columnIndex": 2, "text": "Unit Price", "boundingBox": + [1072, 1038, 1309, 1038, 1309, 1087, 1072, 1087]}, {"rowIndex": 0, "columnIndex": + 3, "text": "Total", "boundingBox": [1309, 1038, 1544, 1038, 1544, 1087, 1309, + 1087]}, {"rowIndex": 1, "columnIndex": 0, "text": "Bindings", "boundingBox": + [156, 1087, 847, 1087, 847, 1128, 156, 1128]}, {"rowIndex": 1, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1087, 1072, 1087, 1072, 1128, 847, 1128]}, + {"rowIndex": 1, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1087, + 1309, 1087, 1309, 1128, 1072, 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, + {"rowIndex": 2, "columnIndex": 0, "text": "Covers Small", "boundingBox": [156, + 1128, 847, 1128, 847, 1172, 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, + "text": "20", "boundingBox": [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, + {"rowIndex": 2, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1128, + 1309, 1128, 1309, 1172, 1072, 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, + {"rowIndex": 3, "columnIndex": 0, "text": "Feather Bookmark", "boundingBox": + [156, 1172, 847, 1172, 847, 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, + {"rowIndex": 3, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1172, + 1309, 1172, 1309, 1216, 1072, 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, + {"rowIndex": 4, "columnIndex": 0, "text": "Copper Swirl Marker", "boundingBox": + [156, 1216, 847, 1216, 847, 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, + {"rowIndex": 4, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1216, + 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], + "documentResults": [{"docType": "custom:c7c7774b-6fad-405c-8c3f-7b5e91bd58eb", + "modelId": "c7c7774b-6fad-405c-8c3f-7b5e91bd58eb", "pageRange": [1, 1], "fields": + {"Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", + "page": 1, "boundingBox": [1426.0, 1572.0, 1531.0, 1572.0, 1531.0, 1599.0, + 1426.0, 1599.0], "confidence": 0.984}, "Email": {"type": "string", "valueString": + "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, + "boundingBox": [164.0, 479.0, 478.0, 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": 1.0}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", - "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, - 754.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": - "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, - 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0}, "Total": {"type": "string", "valueString": "$144.00", - "text": "$144.00", "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, - 1530.0, 1697.0, 1429.0, 1697.0], "confidence": 1.0}, "Quantity": {"type": - "number", "text": "20", "page": 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, - 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0}, "VendorName": {"type": - "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": - 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], - "confidence": 1.0}, "PhoneNumber": {"type": "string", "valueString": "555-348-6512", - "text": "555-348-6512", "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, - 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}, "Signature": {"type": "string", - "valueString": "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": - [482.0, 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": - 1.0}, "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", - "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, - 646.0, 629.0, 682.0, 378.0, 682.0], "confidence": 1.0}, "DatedAs": {"type": - "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": - [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": - 1.0}, "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": - "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, - 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "Email": {"type": - "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0}, "Website": {"type": "string", "valueString": "www.herolimited.com", - "text": "www.herolimited.com", "page": 1, "boundingBox": [274.0, 393.0, 529.0, - 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}}}], "errors": []}}' + "page": 1, "boundingBox": [273.0, 685.0, 565.0, 685.0, 565.0, 751.0, 273.0, + 751.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": + "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [620.0, + 205.0, 1075.0, 205.0, 1075.0, 266.0, 620.0, 266.0], "confidence": 0.97}, "PurchaseOrderNumber": + {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "confidence": + 0.94}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", + "page": 1, "boundingBox": [1427.0, 1669.0, 1529.0, 1669.0, 1529.0, 1698.0, + 1427.0, 1698.0], "confidence": 0.991}, "Tax": {"type": "string", "valueString": + "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1458.0, 1615.0, 1529.0, + 1615.0, 1529.0, 1643.0, 1458.0, 1643.0], "confidence": 0.994}, "Quantity": + {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 0.962}, "DatedAs": + {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": + 1, "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], + "confidence": 0.99}, "Signature": {"type": "string", "valueString": "Bernie + Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [489.0, 1670.0, + 765.0, 1670.0, 765.0, 1708.0, 489.0, 1708.0], "confidence": 0.998}, "CompanyName": + {"type": "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly + Books", "page": 1, "boundingBox": [375.0, 646.0, 629.0, 646.0, 629.0, 679.0, + 375.0, 679.0], "confidence": 0.95}, "CompanyPhoneNumber": {"type": "string", + "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0], "confidence": 1.0}, + "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary + Swank", "page": 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, 639.0, + 349.0, 639.0], "confidence": 0.93}, "PhoneNumber": {"type": "string", "valueString": + "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": [364.0, + 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "confidence": 0.89}, "Website": + {"type": "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", + "page": 1, "boundingBox": [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, + 418.0], "confidence": 0.95}}, "docTypeConfidence": 1.0}], "errors": []}}' headers: apim-request-id: - - 44d8d930-f882-4336-9462-9504fac88d6b + - d25d289b-e4aa-47bb-bd71-275a08c07349 content-length: - - '5839' + - '6054' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:31 GMT + - Mon, 14 Sep 2020 20:13:37 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '107' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml index c1ee6b33d759..3f4baa7ba9c9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_labeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 092c7827-58f9-4194-8ab4-78c5d04fe8da + - e00355c6-4521-4c79-8d97-cd4b3e2615ed content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:32 GMT + - Mon, 14 Sep 2020 20:13:58 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8a7b7655-1578-4324-8b4b-e61102c5e908 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '238' + - '42' status: code: 201 message: Created @@ -48,37 +48,38 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8a7b7655-1578-4324-8b4b-e61102c5e908?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "da106f9f-2e86-4565-9545-059cde796f36", "status": - "ready", "createdDateTime": "2020-07-10T18:53:32Z", "lastUpdatedDateTime": - "2020-07-10T18:53:35Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "8a7b7655-1578-4324-8b4b-e61102c5e908", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:13:59Z", + "lastUpdatedDateTime": "2020-09-14T20:14:01Z"}, "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": []}}' headers: apim-request-id: - - 37704c84-fa1d-4863-b636-932b716aa979 + - 1723ec3e-6f1e-4b3a-8d2e-5378593a898e content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:36 GMT + - Mon, 14 Sep 2020 20:14:03 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '14' status: code: 200 message: OK @@ -94,7 +95,7 @@ interactions: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -104,27 +105,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8a7b7655-1578-4324-8b4b-e61102c5e908/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 324d9727-de8d-44a7-85fa-126a47893f77 + - 11358eda-5386-4b67-93b6-f79d47cbc31c content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:37 GMT + - Mon, 14 Sep 2020 20:14:03 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8a7b7655-1578-4324-8b4b-e61102c5e908/analyzeresults/f3cdf8b1-451a-401b-8e0f-784238ca1659 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '232' + - '45' status: code: 202 message: Accepted @@ -138,63 +139,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:38Z", - "lastUpdatedDateTime": "2020-07-10T18:53:39Z"}' - headers: - apim-request-id: - - bf729046-b856-4935-8799-3e8ab3f53b7c - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:53:42 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '20' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8a7b7655-1578-4324-8b4b-e61102c5e908/analyzeresults/f3cdf8b1-451a-401b-8e0f-784238ca1659 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:53:38Z", - "lastUpdatedDateTime": "2020-07-10T18:53:39Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:14:04Z", + "lastUpdatedDateTime": "2020-09-14T20:14:08Z"}' headers: apim-request-id: - - 40115dbd-2a7c-4594-bf2a-0c35a5c578d7 + - 3d4ea259-7cb2-4e93-972e-04b5f1138b9f content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:47 GMT + - Mon, 14 Sep 2020 20:14:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '19' status: code: 200 message: OK @@ -208,70 +174,69 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/da106f9f-2e86-4565-9545-059cde796f36/analyzeresults/0d0ab61c-f2c3-4d96-a591-0a21d7325a73 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8a7b7655-1578-4324-8b4b-e61102c5e908/analyzeresults/f3cdf8b1-451a-401b-8e0f-784238ca1659 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:38Z", - "lastUpdatedDateTime": "2020-07-10T18:53:49Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:04Z", + "lastUpdatedDateTime": "2020-09-14T20:14:11Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -353,14 +318,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -494,10 +465,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -594,86 +573,80 @@ interactions: 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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"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, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/13/words/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, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/8/words/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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/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, "elements": ["#/analyzeResult/readResults/0/lines/14/words/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, "elements": ["#/analyzeResult/readResults/0/lines/9/words/0"]}, + "documentResults": [{"docType": "custom:8a7b7655-1578-4324-8b4b-e61102c5e908", + "modelId": "8a7b7655-1578-4324-8b4b-e61102c5e908", "pageRange": [1, 3], "fields": + {"CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", + "text": "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.935, 2.12, + 6.935, 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/readResults/0/lines/8/words/0"]}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, - "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, - WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, - 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, - 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", - "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", - "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, + "Bilbo Baggins", "page": 1, "boundingBox": [6.015, 1.45, 6.895, 1.45, 6.895, + 1.595, 6.015, 1.595], "confidence": 0.971, "elements": ["#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1"]}, "Tip": {"type": "string", "valueString": + "100.00", "text": "100.00", "page": 1, "boundingBox": [5.81, 5.345, 6.26, + 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": 1.0, "elements": ["#/readResults/0/lines/36/words/1"]}, "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, "elements": - ["#/analyzeResult/readResults/0/lines/5/words/0", "#/analyzeResult/readResults/0/lines/5/words/1", - "#/analyzeResult/readResults/0/lines/5/words/2", "#/analyzeResult/readResults/0/lines/7/words/0", - "#/analyzeResult/readResults/0/lines/7/words/1"]}, "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, "elements": - ["#/analyzeResult/readResults/0/lines/38/words/1", "#/analyzeResult/readResults/0/lines/38/words/2"]}, - "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "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, "elements": - ["#/analyzeResult/readResults/0/lines/35/words/1"]}}}], "errors": []}}' + ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, "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, "elements": ["#/readResults/2/lines/37/words/1"]}, "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": + 0.952, "elements": ["#/readResults/0/lines/38/words/1", "#/readResults/0/lines/38/words/2"]}, + "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": + 1, "boundingBox": [3.26, 3.21, 3.32, 3.21, 3.32, 3.32, 3.26, 3.32], "confidence": + 1.0, "elements": ["#/readResults/0/lines/14/words/0"]}, "Merchant": {"type": + "string", "valueString": "B", "text": "B", "page": 3, "boundingBox": [1.685, + 1.125, 1.765, 1.125, 1.765, 1.245, 1.685, 1.245], "confidence": 0.5, "elements": + ["#/readResults/2/lines/0/words/1"]}, "FirstItem": {"type": "string", "valueString": + "A", "text": "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, + 3.32, 1.085, 3.32], "confidence": 1.0, "elements": ["#/readResults/0/lines/13/words/0"]}, + "FirstPrice": {"type": "string", "valueString": "10.99", "text": "10.99", + "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, 5.78, 3.32, 5.425, 3.32], + "confidence": 1.0, "elements": ["#/readResults/0/lines/15/words/0"]}, "Customer2": + {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", + "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, 6.015, 1.595], + "confidence": 0.971, "elements": ["#/readResults/2/lines/3/words/0", "#/readResults/2/lines/3/words/1"]}, + "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, + WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015, + 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, 2.03], "confidence": 1.0, "elements": ["#/readResults/0/lines/4/words/0", + "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "Merchant2": {"type": "string", "valueString": + "Company", "text": "Company", "page": 3, "boundingBox": [0.885, 1.125, 1.62, + 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": 1.0, "elements": ["#/readResults/2/lines/0/words/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, "elements": ["#/readResults/0/lines/37/words/1"]}, "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, "elements": + ["#/readResults/0/lines/34/words/1"]}, "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.676, "elements": + ["#/readResults/2/lines/38/words/1", "#/readResults/2/lines/38/words/2"]}, + "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, "elements": ["#/readResults/0/lines/9/words/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, "elements": ["#/readResults/0/lines/35/words/1"]}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: apim-request-id: - - 9667c217-9002-4810-b2b0-280e3e4a7965 + - 7aa9f3c1-49a5-45aa-bf1b-04c50f5ac5df content-length: - - '32675' + - '32919' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:52 GMT + - Mon, 14 Sep 2020 20:14:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '27' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml index 377ee23357b4..c130f75a0bed 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_unlabeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 05e0073f-abc7-4806-8e08-de2dacbfdbe0 + - cdde059a-d1ba-4447-bcaf-4f8d0b8103b0 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:54 GMT + - Mon, 14 Sep 2020 20:13:19 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '40' + - '42' status: code: 201 message: Created @@ -48,21 +48,93 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "27cd4ec1-e5a3-4122-a14e-864bead5e216", "status": + "creating", "createdDateTime": "2020-09-14T20:13:20Z", "lastUpdatedDateTime": + "2020-09-14T20:13:20Z"}}' + headers: + apim-request-id: + - 8b067ea9-6d79-4cc7-84ca-f04e67cd8b47 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 20:13:25 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "27cd4ec1-e5a3-4122-a14e-864bead5e216", "status": + "creating", "createdDateTime": "2020-09-14T20:13:20Z", "lastUpdatedDateTime": + "2020-09-14T20:13:20Z"}}' + headers: + apim-request-id: + - 7051f2ad-0104-4fa9-8750-2620602aaa1a + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 20:13:30 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '17' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea", "status": - "creating", "createdDateTime": "2020-07-10T18:53:54Z", "lastUpdatedDateTime": - "2020-07-10T18:53:54Z"}}' + string: '{"modelInfo": {"modelId": "27cd4ec1-e5a3-4122-a14e-864bead5e216", "status": + "creating", "createdDateTime": "2020-09-14T20:13:20Z", "lastUpdatedDateTime": + "2020-09-14T20:13:20Z"}}' headers: apim-request-id: - - 6ea05a98-e852-4803-970b-a1cf5b9449b2 + - 156e35e3-c8af-451e-96b5-3070dffef32b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:58 GMT + - Mon, 14 Sep 2020 20:13:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '14' status: code: 200 message: OK @@ -84,21 +156,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea", "status": - "creating", "createdDateTime": "2020-07-10T18:53:54Z", "lastUpdatedDateTime": - "2020-07-10T18:53:54Z"}}' + string: '{"modelInfo": {"modelId": "27cd4ec1-e5a3-4122-a14e-864bead5e216", "status": + "creating", "createdDateTime": "2020-09-14T20:13:20Z", "lastUpdatedDateTime": + "2020-09-14T20:13:20Z"}}' headers: apim-request-id: - - 73e885bd-968e-4b2c-ba4a-a66656c3717b + - 3a19d16f-9264-41a9-a6c4-2efa272d28ab content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:54:04 GMT + - Mon, 14 Sep 2020 20:13:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '14' status: code: 200 message: OK @@ -120,14 +192,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea", "status": - "ready", "createdDateTime": "2020-07-10T18:53:54Z", "lastUpdatedDateTime": - "2020-07-10T18:54:07Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "27cd4ec1-e5a3-4122-a14e-864bead5e216", "status": + "ready", "createdDateTime": "2020-09-14T20:13:20Z", "lastUpdatedDateTime": + "2020-09-14T20:13:43Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -138,11 +210,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - ccb255ca-f8fa-4695-a2a2-0b47706c811a + - dc117871-14a2-492b-b7d5-0a8e11e89237 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:54:09 GMT + - Mon, 14 Sep 2020 20:13:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -150,7 +222,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '15' status: code: 200 message: OK @@ -158,7 +230,7 @@ interactions: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -168,27 +240,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 8f287dee-95bd-4c91-979e-f8a64ed98cdb + - 47ad9beb-0dc7-4312-91c4-52aeffb867c6 content-length: - '0' date: - - Fri, 10 Jul 2020 18:54:09 GMT + - Mon, 14 Sep 2020 20:13:45 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea/analyzeresults/2302198b-bfba-4fe1-b24f-8bdd3c90bd37 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216/analyzeresults/bef2f645-e2a9-4ec1-bf95-9d19e1abbc33 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '44' status: code: 202 message: Accepted @@ -202,539 +274,599 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216/analyzeresults/bef2f645-e2a9-4ec1-bf95-9d19e1abbc33 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T20:13:46Z", "lastUpdatedDateTime": + "2020-09-14T20:13:47Z", "analyzeResult": null}' + headers: + apim-request-id: + - c2d7b428-73f9-4044-b7f3-8faacab12f12 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 20:13:51 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '19' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216/analyzeresults/bef2f645-e2a9-4ec1-bf95-9d19e1abbc33 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T20:13:46Z", "lastUpdatedDateTime": + "2020-09-14T20:13:47Z", "analyzeResult": null}' + headers: + apim-request-id: + - cb626397-cf98-44cb-bba0-d28c895aa920 + content-length: + - '134' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 20:13:55 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '14' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3428023c-6c69-49a4-8fd8-6e2f4d0bd0ea/analyzeresults/2302198b-bfba-4fe1-b24f-8bdd3c90bd37 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/27cd4ec1-e5a3-4122-a14e-864bead5e216/analyzeresults/bef2f645-e2a9-4ec1-bf95-9d19e1abbc33 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:09Z", - "lastUpdatedDateTime": "2020-07-10T18:54:16Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": - "Company", "boundingBox": [0.8764, 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, - 0.8764, 1.2958]}, {"text": "A", "boundingBox": [1.6667, 1.1014, 1.7778, 1.1014, - 1.7778, 1.2958, 1.6667, 1.2958]}, {"text": "Invoice", "boundingBox": [1.8222, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 1.8222, 1.2958]}]}, {"text": "Invoice - For:", "boundingBox": [6.0028, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, - 1.2667], "words": [{"text": "Invoice", "boundingBox": [6.0028, 1.0431, 6.6472, - 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, {"text": "For:", "boundingBox": - [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.6958, 1.2667]}]}, {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": [0.8764, 1.4681, - 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": "Bilbo Baggins", - "boundingBox": [6.0028, 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.0028, 1.6056], - "words": [{"text": "Bilbo", "boundingBox": [6.0028, 1.4389, 6.3472, 1.4389, - 6.3472, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": [6.3819, - 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.3819, 1.6056]}]}, {"text": "123 - Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, 1.6597, - 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", "boundingBox": - [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, {"text": - "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, 6.7889, - 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, - 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, 3.3292, 3.3597, 3.2444, - 3.3597], "words": [{"text": "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, - 3.3292, 3.3597, 3.2444, 3.3597]}]}, {"text": "10.99", "boundingBox": [5.4083, - 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, 3.3597], "words": [{"text": - "10.99", "boundingBox": [5.4083, 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, - 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, 1.1708, 3.4056, - 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": [1.0806, - 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": "2", - "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, 3.5722, 3.2444, 3.5722], - "words": [{"text": "2", "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, - 3.5722, 3.2444, 3.5722]}]}, {"text": "14.67", "boundingBox": [5.4083, 3.4056, - 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722], "words": [{"text": "14.67", - "boundingBox": [5.4083, 3.4056, 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722]}]}, - {"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, - 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, - 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": "4", "boundingBox": [3.2444, - 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, 3.7833], "words": [{"text": - "4", "boundingBox": [3.2444, 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, - 3.7833]}]}, {"text": "15.66", "boundingBox": [5.4083, 3.6167, 5.7861, 3.6167, - 5.7861, 3.7833, 5.4083, 3.7833], "words": [{"text": "15.66", "boundingBox": - [5.4083, 3.6167, 5.7861, 3.6167, 5.7861, 3.7833, 5.4083, 3.7833]}]}, {"text": - "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, - 3.9931], "words": [{"text": "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, - 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": "1", "boundingBox": [3.2444, - 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, 3.9931], "words": [{"text": - "1", "boundingBox": [3.2444, 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, - 3.9931]}]}, {"text": "12.00", "boundingBox": [5.4083, 3.8264, 5.7861, 3.8264, - 5.7861, 3.9931, 5.4083, 3.9931], "words": [{"text": "12.00", "boundingBox": - [5.4083, 3.8264, 5.7861, 3.8264, 5.7861, 3.9931, 5.4083, 3.9931]}]}, {"text": - "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, - 4.2028], "words": [{"text": "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, - 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": "4", "boundingBox": [3.2444, - 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, 4.2028], "words": [{"text": - "4", "boundingBox": [3.2444, 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, - 4.2028]}]}, {"text": "10.00", "boundingBox": [5.4083, 4.0361, 5.7875, 4.0361, - 5.7875, 4.2028, 5.4083, 4.2028], "words": [{"text": "10.00", "boundingBox": - [5.4083, 4.0361, 5.7875, 4.0361, 5.7875, 4.2028, 5.4083, 4.2028]}]}, {"text": - "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, - 4.4125], "words": [{"text": "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, - 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": "6", "boundingBox": [3.2444, - 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, 4.4125], "words": [{"text": - "6", "boundingBox": [3.2444, 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, - 4.4125]}]}, {"text": "12.00", "boundingBox": [5.4083, 4.2458, 5.7861, 4.2458, - 5.7861, 4.4125, 5.4083, 4.4125], "words": [{"text": "12.00", "boundingBox": - [5.4083, 4.2458, 5.7861, 4.2458, 5.7861, 4.4125, 5.4083, 4.4125]}]}, {"text": - "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, - 4.6236], "words": [{"text": "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, - 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": "8", "boundingBox": [3.2444, - 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, 4.6236], "words": [{"text": - "8", "boundingBox": [3.2444, 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, - 4.6236]}]}, {"text": "22.00", "boundingBox": [5.4083, 4.4569, 5.7875, 4.4569, - 5.7875, 4.6236, 5.4083, 4.6236], "words": [{"text": "22.00", "boundingBox": - [5.4083, 4.4569, 5.7875, 4.4569, 5.7875, 4.6236, 5.4083, 4.6236]}]}, {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "words": [{"text": "Subtotal:", "boundingBox": [5.5028, 4.8861, - 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528]}]}, {"text": "300.00", "boundingBox": - [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, 5.0528, 6.1722, 5.0528], "words": - [{"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "words": [{"text": "Tax:", - "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, - {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, 6.2069, - 5.2736, 5.8292, 5.2736], "words": [{"text": "30.00", "boundingBox": [5.8292, - 5.1069, 6.2069, 5.1069, 6.2069, 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], - "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, - 5.7611, 5.4931, 5.5028, 5.4931]}]}, {"text": "100.00", "boundingBox": [5.7986, - 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, 5.7986, 5.4931], "words": [{"text": - "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, - 5.7986, 5.4931]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, - 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "words": [{"text": "Total:", "boundingBox": - [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": - "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, 6.4028, 5.7139, - 5.9389, 5.7139], "words": [{"text": "430.00", "boundingBox": [5.9389, 5.5472, - 6.4028, 5.5472, 6.4028, 5.7139, 5.9389, 5.7139]}]}, {"text": "Signature:", - "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], - "words": [{"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, - 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Bilbo Baggins__________", "boundingBox": - [1.7472, 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "words": - [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6431, 2.4333, 6.6431, 2.4333, - 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", "boundingBox": [2.4708, - 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 2.4708, 6.8097]}]}]}, {"page": 2, - "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": - 3, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": - "Company B Invoice", "boundingBox": [0.8764, 1.1014, 2.3833, 1.1014, 2.3833, - 1.2958, 0.8764, 1.2958], "words": [{"text": "Company", "boundingBox": [0.8764, - 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, 0.8764, 1.2958]}, {"text": "B", "boundingBox": - [1.6667, 1.1014, 1.7722, 1.1014, 1.7722, 1.2958, 1.6667, 1.2958]}, {"text": - "Invoice", "boundingBox": [1.8167, 1.1014, 2.3833, 1.1014, 2.3833, 1.2958, - 1.8167, 1.2958]}]}, {"text": "Invoice For:", "boundingBox": [6.0028, 1.0431, - 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, 1.2667], "words": [{"text": "Invoice", - "boundingBox": [6.0028, 1.0431, 6.6472, 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, - {"text": "For:", "boundingBox": [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, - 6.6958, 1.2667]}]}, {"text": "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, - 1.4681, 1.5778, 1.6625, 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": - [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": - "Frodo Baggins", "boundingBox": [6.0028, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, - 6.0028, 1.6056], "words": [{"text": "Frodo", "boundingBox": [6.0028, 1.4389, - 6.3972, 1.4389, 6.3972, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": - [6.4361, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, 6.4361, 1.6056]}]}, {"text": - "123 Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, - 1.8264, 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, - 1.6597, 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", - "boundingBox": [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, - {"text": "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.7889, 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, - 1.725, 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "10", "boundingBox": [3.2444, 3.1931, 3.4125, 3.1931, 3.4125, 3.3597, 3.2444, - 3.3597], "words": [{"text": "10", "boundingBox": [3.2444, 3.1931, 3.4125, - 3.1931, 3.4125, 3.3597, 3.2444, 3.3597]}]}, {"text": "100.99", "boundingBox": - [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, 3.3597, 5.4083, 3.3597], "words": - [{"text": "100.99", "boundingBox": [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, - 3.3597, 5.4083, 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, - 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": - [1.0806, 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": - "20", "boundingBox": [3.2444, 3.4056, 3.4125, 3.4056, 3.4125, 3.5722, 3.2444, - 3.5722], "words": [{"text": "20", "boundingBox": [3.2444, 3.4056, 3.4125, - 3.4056, 3.4125, 3.5722, 3.2444, 3.5722]}]}, {"text": "140.67", "boundingBox": - [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, 3.5722, 5.4083, 3.5722], "words": - [{"text": "140.67", "boundingBox": [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, - 3.5722, 5.4083, 3.5722]}]}, {"text": "C", "boundingBox": [1.0806, 3.6167, - 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": - [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": - "40", "boundingBox": [3.2444, 3.6167, 3.4125, 3.6167, 3.4125, 3.7833, 3.2444, - 3.7833], "words": [{"text": "40", "boundingBox": [3.2444, 3.6167, 3.4125, - 3.6167, 3.4125, 3.7833, 3.2444, 3.7833]}]}, {"text": "150.66", "boundingBox": - [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, 3.7833, 5.4083, 3.7833], "words": - [{"text": "150.66", "boundingBox": [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, - 3.7833, 5.4083, 3.7833]}]}, {"text": "D", "boundingBox": [1.0806, 3.8264, - 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931], "words": [{"text": "D", "boundingBox": - [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": - "10", "boundingBox": [3.2444, 3.8264, 3.4125, 3.8264, 3.4125, 3.9931, 3.2444, - 3.9931], "words": [{"text": "10", "boundingBox": [3.2444, 3.8264, 3.4125, - 3.8264, 3.4125, 3.9931, 3.2444, 3.9931]}]}, {"text": "120.00", "boundingBox": - [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, 3.9931, 5.4083, 3.9931], "words": - [{"text": "120.00", "boundingBox": [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, - 3.9931, 5.4083, 3.9931]}]}, {"text": "E", "boundingBox": [1.0806, 4.0361, - 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028], "words": [{"text": "E", "boundingBox": - [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": - "40", "boundingBox": [3.2444, 4.0361, 3.4125, 4.0361, 3.4125, 4.2028, 3.2444, - 4.2028], "words": [{"text": "40", "boundingBox": [3.2444, 4.0361, 3.4125, - 4.0361, 3.4125, 4.2028, 3.2444, 4.2028]}]}, {"text": "100.00", "boundingBox": - [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, 4.2028, 5.4083, 4.2028], "words": - [{"text": "100.00", "boundingBox": [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, - 4.2028, 5.4083, 4.2028]}]}, {"text": "F", "boundingBox": [1.0806, 4.2458, - 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125], "words": [{"text": "F", "boundingBox": - [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": - "60", "boundingBox": [3.2444, 4.2458, 3.4125, 4.2458, 3.4125, 4.4125, 3.2444, - 4.4125], "words": [{"text": "60", "boundingBox": [3.2444, 4.2458, 3.4125, - 4.2458, 3.4125, 4.4125, 3.2444, 4.4125]}]}, {"text": "120.00", "boundingBox": - [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, 4.4125, 5.4083, 4.4125], "words": - [{"text": "120.00", "boundingBox": [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, - 4.4125, 5.4083, 4.4125]}]}, {"text": "G", "boundingBox": [1.0806, 4.4569, - 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236], "words": [{"text": "G", "boundingBox": - [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": - "80", "boundingBox": [3.2444, 4.4569, 3.4125, 4.4569, 3.4125, 4.6236, 3.2444, - 4.6236], "words": [{"text": "80", "boundingBox": [3.2444, 4.4569, 3.4125, - 4.4569, 3.4125, 4.6236, 3.2444, 4.6236]}]}, {"text": "220.00", "boundingBox": - [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, 4.6236, 5.4083, 4.6236], "words": - [{"text": "220.00", "boundingBox": [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, - 4.6236, 5.4083, 4.6236]}]}, {"text": "Subtotal:", "boundingBox": [5.5028, - 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528], "words": [{"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528]}]}, {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, - 4.8861, 6.7208, 5.0528, 6.1722, 5.0528], "words": [{"text": "3000.00", "boundingBox": - [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, 5.0528, 6.1722, 5.0528]}]}, {"text": - "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, - 5.2736], "words": [{"text": "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, - 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, {"text": "300.00", "boundingBox": - [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, 5.2736, 5.8292, 5.2736], "words": - [{"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, - 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "words": [{"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931]}]}, - {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, 6.3472, - 5.4931, 5.7986, 5.4931], "words": [{"text": "1000.00", "boundingBox": [5.7986, - 5.3264, 6.3472, 5.3264, 6.3472, 5.4931, 5.7986, 5.4931]}]}, {"text": "Total:", - "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], - "words": [{"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, - 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": "4300.00", "boundingBox": [5.9389, - 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, 5.9389, 5.7139], "words": [{"text": - "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, - 5.9389, 5.7139]}]}, {"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, - 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "words": [{"text": "Signature:", "boundingBox": - [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Frodo - Baggins__________", "boundingBox": [1.7472, 6.6431, 3.8833, 6.6431, 3.8833, - 6.8097, 1.7472, 6.8097], "words": [{"text": "____Frodo", "boundingBox": [1.7472, - 6.6431, 2.4833, 6.6431, 2.4833, 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", - "boundingBox": [2.5208, 6.6431, 3.8833, 6.6431, 3.8833, 6.8097, 2.5208, 6.8097]}]}]}], - "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": ["#/readResults/0/lines/1/words/0", "#/readResults/0/lines/1/words/1"]}, - "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": ["#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/0/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2"]}, "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": ["#/readResults/0/lines/6/words/0", "#/readResults/0/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/0/lines/8/words/0"]}, - "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": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": - ["#/readResults/0/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/0/lines/34/words/0"]}, "value": - {"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/0/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/0/lines/36/words/0"]}, - "value": {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, - 6.2069, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/0/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/0/lines/38/words/0"]}, - "value": {"text": "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, - 6.2639, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/0/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/0/lines/40/words/0"]}, - "value": {"text": "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, - 6.4028, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/0/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/0/lines/42/words/0"]}, - "value": {"text": "____Bilbo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/0/lines/43/words/0", - "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1", - "#/readResults/0/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:13:46Z", + "lastUpdatedDateTime": "2020-09-14T20:13:58Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1226, 2.3778, 1.1226, 2.3778, 1.263, 0.8861, 1.263], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, + 0.8861, 1.2812]}, {"text": "A", "boundingBox": [1.6694, 1.1243, 1.775, 1.1243, + 1.775, 1.2472, 1.6694, 1.2472]}, {"text": "Invoice", "boundingBox": [1.8389, + 1.1215, 2.3778, 1.1215, 2.3778, 1.2486, 1.8389, 1.2486]}]}, {"text": "Invoice + For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, + 1.2122], "words": [{"text": "Invoice", "boundingBox": [6.0208, 1.0656, 6.6361, + 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, {"text": "For:", "boundingBox": + [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, 6.7139, 1.2122]}]}, {"text": + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": "Bilbo Baggins", + "boundingBox": [6.0167, 1.4532, 6.8972, 1.4532, 6.8972, 1.5801, 6.0167, 1.5801], + "words": [{"text": "Bilbo", "boundingBox": [6.0167, 1.4503, 6.3389, 1.4503, + 6.3389, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": [6.3958, + 1.4556, 6.8972, 1.4556, 6.8972, 1.5931, 6.3958, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "1", "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, + 3.3208, 3.3177, 3.2597, 3.3177], "words": [{"text": "1", "boundingBox": [3.2597, + 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, 3.3177]}]}, {"text": "10.99", + "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, 3.3191], + "words": [{"text": "10.99", "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "2", "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, + 3.5309, 3.2542, 3.5309], "words": [{"text": "2", "boundingBox": [3.2542, 3.424, + 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309]}]}, {"text": "14.67", "boundingBox": + [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], "words": [{"text": + "14.67", "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, + 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742]}]}, {"text": "4", "boundingBox": + [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, 3.7413], "words": + [{"text": "4", "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, + 3.2486, 3.7413]}]}, {"text": "15.66", "boundingBox": [5.4236, 3.634, 5.7792, + 3.634, 5.7792, 3.7424, 5.4236, 3.7424], "words": [{"text": "15.66", "boundingBox": + [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424]}]}, {"text": + "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, + 3.951], "words": [{"text": "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951]}]}, {"text": "1", "boundingBox": [3.2597, 3.8451, + 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951], "words": [{"text": "1", "boundingBox": + [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951]}]}, {"text": + "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "words": [{"text": "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, + 3.8441, 5.7806, 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, + 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": + "E", "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615]}]}, {"text": "4", "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "words": [{"text": "4", "boundingBox": [3.2486, + 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, 4.1618]}]}, {"text": "10.00", + "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, 4.1628], + "words": [{"text": "10.00", "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, + 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", + "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, + {"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, + 3.2528, 4.3726], "words": [{"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, + 4.2646, 3.3222, 4.3726, 3.2528, 4.3726]}]}, {"text": "12.00", "boundingBox": + [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, 4.3726], "words": + [{"text": "12.00", "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, + 4.3726, 5.4236, 4.3726]}]}, {"text": "G", "boundingBox": [1.0875, 4.4747, + 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": + [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": + "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "words": [{"text": "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826]}]}, {"text": "22.00", "boundingBox": [5.4181, + 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, 4.5826], "words": [{"text": + "22.00", "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826]}]}, {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, + 6.125, 5.0132, 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": + [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "words": [{"text": "300.00", "boundingBox": [6.1792, 4.9042, + 6.6319, 4.9042, 6.6319, 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": + [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": + [{"text": "Tax:", "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, + 5.2333, 5.5028, 5.2333]}]}, {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "words": [{"text": "30.00", + "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333]}]}, + {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, + 5.5028, 5.4809], "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "100.00", "boundingBox": + [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "words": + [{"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, + 5.4535, 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", + "boundingBox": [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, + {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, 6.3986, + 5.6733, 5.9417, 5.6733], "words": [{"text": "430.00", "boundingBox": [5.9417, + 5.5646, 6.3986, 5.5646, 6.3986, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Bilbo Baggins", "boundingBox": + [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6552, 2.4278, 6.6552, 2.4278, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.4819, 6.658, + 3.0389, 6.658, 3.0389, 6.7983, 2.4819, 6.7983]}]}]}, {"page": 2, "angle": + 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, + "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1226, 2.3736, 1.1226, 2.3736, + 1.2629, 0.8861, 1.2629], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, 0.8861, 1.2812]}, {"text": "B", "boundingBox": + [1.6833, 1.1247, 1.7639, 1.1247, 1.7639, 1.2469, 1.6833, 1.2469]}, {"text": + "Invoice", "boundingBox": [1.8333, 1.1215, 2.3736, 1.1215, 2.3736, 1.2486, + 1.8333, 1.2486]}]}, {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, + 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "words": [{"text": "Invoice", + "boundingBox": [6.0208, 1.0656, 6.6361, 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, + {"text": "For:", "boundingBox": [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, + 6.7139, 1.2122]}]}, {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": + [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": + "Frodo Baggins", "boundingBox": [6.0167, 1.4533, 6.95, 1.4533, 6.95, 1.5801, + 6.0167, 1.5801], "words": [{"text": "Frodo", "boundingBox": [6.0167, 1.4507, + 6.3903, 1.4507, 6.3903, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.95, 1.4556, 6.95, 1.5931, 6.45, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "10", "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, + 3.4069, 3.3191, 3.2597, 3.3191], "words": [{"text": "10", "boundingBox": [3.2597, + 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, 3.3191]}]}, {"text": "100.99", + "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, 3.3191], + "words": [{"text": "100.99", "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "20", "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, + 3.5323, 3.2542, 3.5323], "words": [{"text": "20", "boundingBox": [3.2542, + 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323]}]}, {"text": "140.67", + "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "words": [{"text": "140.67", "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": + "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742]}]}, {"text": "40", "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, + 3.7424, 3.2486, 3.7424], "words": [{"text": "40", "boundingBox": [3.2486, + 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424]}]}, {"text": "150.66", + "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "words": [{"text": "150.66", "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424]}]}, {"text": "D", "boundingBox": [1.0944, + 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], "words": [{"text": "D", + "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951]}]}, + {"text": "10", "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, + 3.2597, 3.9524], "words": [{"text": "10", "boundingBox": [3.2597, 3.8441, + 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, 3.9524]}]}, {"text": "120.00", "boundingBox": + [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, 3.9524], "words": + [{"text": "120.00", "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, + 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, 4.0563, + 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": "E", "boundingBox": + [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615]}]}, {"text": + "40", "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "words": [{"text": "40", "boundingBox": [3.2486, 4.0545, 3.4069, + 4.0545, 3.4069, 4.1628, 3.2486, 4.1628]}]}, {"text": "100.00", "boundingBox": + [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, 4.1628], "words": + [{"text": "100.00", "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, + 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, 4.266, 1.15, + 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", "boundingBox": + [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, {"text": "60", + "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, 4.3726], + "words": [{"text": "60", "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, + 4.3726, 3.2528, 4.3726]}]}, {"text": "120.00", "boundingBox": [5.4236, 4.2646, + 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726], "words": [{"text": "120.00", + "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726]}]}, + {"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, + 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, + 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": "80", "boundingBox": + [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, 4.5826], "words": + [{"text": "80", "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, + 3.2514, 4.5826]}]}, {"text": "220.00", "boundingBox": [5.4181, 4.4747, 5.8639, + 4.4747, 5.8639, 4.5826, 5.4181, 4.5826], "words": [{"text": "220.00", "boundingBox": + [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, 4.5826]}]}, {"text": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, + 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": "3000.00", "boundingBox": + [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, 6.1792, 5.0132], "words": + [{"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": [{"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333]}]}, + {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, 6.2889, + 5.2333, 5.8361, 5.2333], "words": [{"text": "300.00", "boundingBox": [5.8361, + 5.1247, 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333]}]}, {"text": "Tip:", + "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], + "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "1000.00", "boundingBox": [5.8111, + 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "words": [{"text": + "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, + 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, 5.8917, + 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", "boundingBox": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, {"text": + "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, 6.4833, 5.6733, + 5.9417, 5.6733], "words": [{"text": "4300.00", "boundingBox": [5.9417, 5.5646, + 6.4833, 5.5646, 6.4833, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Frodo Baggins", "boundingBox": + [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Frodo", "boundingBox": [1.7472, 6.6556, 2.4778, 6.6556, 2.4778, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.5319, 6.658, + 3.0889, 6.658, 3.0889, 6.7983, 2.5319, 6.7983]}]}]}], "pageResults": [{"page": + 1, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "value": {"text": "Bilbo Baggins 123 + Hobbit Lane", "boundingBox": [6.0167, 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, + 1.7854], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", + "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": ["#/readResults/0/lines/2/words/0"]}, + "value": {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/0/lines/5/words/0", + "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2"]}, "confidence": + 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, + 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "elements": ["#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Redmond, WA", "boundingBox": [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, + 0.8917, 2.1918], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/0/lines/9/words/0"]}, + "confidence": 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, + 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": ["#/readResults/0/lines/34/words/0"]}, + "value": {"text": "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, + 6.6319, 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/0/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/0/lines/36/words/0"]}, + "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, + 6.2028, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/0/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/0/lines/38/words/0"]}, + "value": {"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, + 6.2583, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/0/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/0/lines/40/words/0"]}, + "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, + 6.3986, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/0/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/0/lines/42/words/0"]}, + "value": {"text": "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, + 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/0/lines/43/words/0", + "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/10/words/0"], "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": - ["#/readResults/0/lines/11/words/0"], "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": ["#/readResults/0/lines/12/words/0"], "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": ["#/readResults/0/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "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": ["#/readResults/0/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, + 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/14/words/0"], "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": ["#/readResults/0/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0"], "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": ["#/readResults/0/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "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": ["#/readResults/0/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/17/words/0"], "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": ["#/readResults/0/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/18/words/0"], "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": ["#/readResults/0/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/19/words/0"], "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": ["#/readResults/0/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, + 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0"], "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": ["#/readResults/0/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0"], "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": ["#/readResults/0/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "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": ["#/readResults/0/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, + 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/23/words/0"], "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": ["#/readResults/0/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/24/words/0"], "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": ["#/readResults/0/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/25/words/0"], "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": ["#/readResults/0/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, + 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0"], "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": ["#/readResults/0/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0"], "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": ["#/readResults/0/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "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": ["#/readResults/0/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/29/words/0"], "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": ["#/readResults/0/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/30/words/0"], "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": ["#/readResults/0/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/31/words/0"], "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": ["#/readResults/0/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0"], "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": ["#/readResults/0/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"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": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, - "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": ["#/readResults/2/lines/3/words/0", + {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, + 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": ["#/readResults/2/lines/3/words/0", "#/readResults/2/lines/3/words/1", "#/readResults/2/lines/4/words/0", "#/readResults/2/lines/4/words/1", "#/readResults/2/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": + {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, + 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", "#/readResults/2/lines/5/words/2"]}, "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": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/2/lines/8/words/0"]}, - "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": ["#/readResults/2/lines/7/words/0", + "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, + 6.0167, 2.0233], "elements": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, + 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": ["#/readResults/2/lines/8/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [0.8917, + 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": ["#/readResults/2/lines/7/words/0", "#/readResults/2/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/2/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": - {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/2/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/2/lines/36/words/0"]}, - "value": {"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, - 6.2931, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/2/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/2/lines/38/words/0"]}, - "value": {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, - 6.3472, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/2/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/2/lines/40/words/0"]}, - "value": {"text": "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, - 6.4875, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/2/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/2/lines/42/words/0"]}, - "value": {"text": "____Frodo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8833, 6.6431, 3.8833, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/2/lines/43/words/0", - "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/0/words/0", "#/readResults/2/lines/0/words/1", - "#/readResults/2/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": + {"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/2/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/2/lines/36/words/0"]}, + "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, + 6.2889, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/2/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/2/lines/38/words/0"]}, + "value": {"text": "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, + 6.3417, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/2/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/2/lines/40/words/0"]}, + "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, + 6.4833, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/2/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/2/lines/42/words/0"]}, + "value": {"text": "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, + 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/2/lines/43/words/0", + "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/10/words/0"], "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": - ["#/readResults/2/lines/11/words/0"], "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": ["#/readResults/2/lines/12/words/0"], "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": ["#/readResults/2/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/2/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/13/words/0"], "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": ["#/readResults/2/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/14/words/0"], "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": ["#/readResults/2/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/15/words/0"], "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": ["#/readResults/2/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/16/words/0"], "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": ["#/readResults/2/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/17/words/0"], "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": ["#/readResults/2/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/18/words/0"], "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": ["#/readResults/2/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/19/words/0"], "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": ["#/readResults/2/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/20/words/0"], "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": ["#/readResults/2/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/21/words/0"], "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": ["#/readResults/2/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/22/words/0"], "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": ["#/readResults/2/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/23/words/0"], "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": ["#/readResults/2/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/24/words/0"], "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": ["#/readResults/2/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/25/words/0"], "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": ["#/readResults/2/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/26/words/0"], "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": ["#/readResults/2/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/27/words/0"], "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": ["#/readResults/2/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/28/words/0"], "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": ["#/readResults/2/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/29/words/0"], "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": ["#/readResults/2/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/30/words/0"], "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": ["#/readResults/2/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/31/words/0"], "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": ["#/readResults/2/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/32/words/0"], "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": ["#/readResults/2/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 8a691cd9-3ad7-45b8-89ac-5752e61907f5 + - 1d8c4448-60e6-4a3e-a2ed-64d8ec77ab58 content-length: - - '42016' + - '41192' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:54:20 GMT + - Mon, 14 Sep 2020 20:14:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5835' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml index 69d35ec2b428..94b9281f1bbf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - d86d362f-6427-4719-821d-fe66a6c5b389 + - 73de748e-7ea6-437d-8121-82ce7baaee93 content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:39 GMT + - Mon, 14 Sep 2020 20:14:02 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/77b2d868-599d-4440-85d5-888bc97ca29d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5323' + - '41' status: code: 201 message: Created @@ -48,30 +48,30 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/77b2d868-599d-4440-85d5-888bc97ca29d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b4123bdd-2a93-4185-804f-e1d182e8891c", "status": - "ready", "createdDateTime": "2020-07-10T18:43:39Z", "lastUpdatedDateTime": - "2020-07-10T18:43:42Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": - [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": - "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", - "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": - 2, "status": "succeeded"}, {"documentName": "multi5.pdf", "pages": 2, "status": - "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": 1.0}, {"fieldName": - "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", "accuracy": 1.0}, - {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", "accuracy": - 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", "accuracy": - 1.0}], "errors": []}}' + string: '{"modelInfo": {"modelId": "77b2d868-599d-4440-85d5-888bc97ca29d", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:14:02Z", + "lastUpdatedDateTime": "2020-09-14T20:14:03Z"}, "trainResult": {"averageModelAccuracy": + 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": + "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, + {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": + "multi4.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi5.pdf", + "pages": 2, "status": "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": + 1.0}, {"fieldName": "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", + "accuracy": 1.0}, {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", + "accuracy": 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 9bea9deb-084d-41d2-a9d8-2fcddb110f0b + - 3484b7f2-c31d-403b-b506-7e87baef14fd content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:44 GMT + - Mon, 14 Sep 2020 20:14:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -79,7 +79,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '17' status: code: 200 message: OK @@ -87,7 +87,7 @@ interactions: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -97,27 +97,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/77b2d868-599d-4440-85d5-888bc97ca29d/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - efae073b-a680-47e8-8d76-d3ccd70a7932 + - 2b971b59-e601-4a20-83c0-bcf9000d7886 content-length: - '0' date: - - Fri, 10 Jul 2020 18:43:45 GMT + - Mon, 14 Sep 2020 20:14:06 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/77b2d868-599d-4440-85d5-888bc97ca29d/analyzeresults/57e70537-3c68-44a9-b8de-8a8c46f76f5b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1016' + - '50' status: code: 202 message: Accepted @@ -131,63 +131,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:45Z", - "lastUpdatedDateTime": "2020-07-10T18:43:47Z"}' - headers: - apim-request-id: - - cefa2490-e7ec-4cce-8610-348e0441af82 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:43:50 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '49' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/77b2d868-599d-4440-85d5-888bc97ca29d/analyzeresults/57e70537-3c68-44a9-b8de-8a8c46f76f5b response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:43:45Z", - "lastUpdatedDateTime": "2020-07-10T18:43:47Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:14:07Z", + "lastUpdatedDateTime": "2020-09-14T20:14:11Z"}' headers: apim-request-id: - - 99508bef-ed18-47db-8c3d-ae6deb959e82 + - 3445f609-2ebd-4d68-93ab-3b7fb8c42b3c content-length: - '109' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:43:56 GMT + - Mon, 14 Sep 2020 20:14:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '16' status: code: 200 message: OK @@ -201,50 +166,50 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b4123bdd-2a93-4185-804f-e1d182e8891c/analyzeresults/249188c5-58b4-4d2e-9dec-2ca0b5f958dc + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/77b2d868-599d-4440-85d5-888bc97ca29d/analyzeresults/57e70537-3c68-44a9-b8de-8a8c46f76f5b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:43:45Z", - "lastUpdatedDateTime": "2020-07-10T18:43:57Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, - 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": - [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, - 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, - 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": - 1}]}, {"boundingBox": [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, - 2.005], "text": "Vendor Registration", "words": [{"boundingBox": [2.2268, - 1.5733, 3.703, 1.5733, 3.703, 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": - 1}, {"boundingBox": [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, - 2.005], "text": "Registration", "confidence": 1}]}, {"boundingBox": [1.0078, - 2.5846, 7.0776, 2.5846, 7.0776, 2.7293, 1.0078, 2.7293], "text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "words": [{"boundingBox": [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, - 1.0078, 2.7013], "text": "Contoso", "confidence": 1}, {"boundingBox": [1.6125, - 2.5856, 1.843, 2.5856, 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": - 1}, {"boundingBox": [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, - 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [2.7122, - 2.5852, 2.9307, 2.5852, 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": - 1}, {"boundingBox": [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, - 2.7013], "text": "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, - 3.4704, 2.5852, 3.4704, 2.7013, 3.1987, 2.7013], "text": "held", "confidence": - 1}, {"boundingBox": [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], - "text": "on", "confidence": 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, - 4.0422, 2.7293, 3.7498, 2.7293], "text": "May", "confidence": 1}, {"boundingBox": - [4.0877, 2.5914, 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": - "28-29,", "confidence": 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, - 4.884, 2.7017, 4.5586, 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": - [4.9351, 2.6014, 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": - "at", "confidence": 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, - 2.7013, 5.1033, 2.7013], "text": "the", "confidence": 1}, {"boundingBox": - [5.3787, 2.5852, 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": - "Elm", "confidence": 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, - 6.4263, 2.7013, 5.6624, 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": - [6.4796, 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": - "Center", "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, - 7.0776, 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:07Z", + "lastUpdatedDateTime": "2020-09-14T20:14:15Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, + 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": + [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": + "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, + 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": + [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, 2.005], "text": "Vendor + Registration", "words": [{"boundingBox": [2.2268, 1.5733, 3.703, 1.5733, 3.703, + 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": 1}, {"boundingBox": + [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, 2.005], "text": "Registration", + "confidence": 1}]}, {"boundingBox": [1.0078, 2.5846, 7.0776, 2.5846, 7.0776, + 2.7293, 1.0078, 2.7293], "text": "Contoso Ltd. Conference will be held on + May 28-29, 2020 at the Elm Conference Center in", "words": [{"boundingBox": + [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, 1.0078, 2.7013], "text": + "Contoso", "confidence": 1}, {"boundingBox": [1.6125, 2.5856, 1.843, 2.5856, + 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": 1}, {"boundingBox": + [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, 2.7013], "text": + "Conference", "confidence": 1}, {"boundingBox": [2.7122, 2.5852, 2.9307, 2.5852, + 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": 1}, {"boundingBox": + [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, 2.7013], "text": + "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, 3.4704, 2.5852, 3.4704, + 2.7013, 3.1987, 2.7013], "text": "held", "confidence": 1}, {"boundingBox": + [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], "text": "on", "confidence": + 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, 4.0422, 2.7293, 3.7498, + 2.7293], "text": "May", "confidence": 1}, {"boundingBox": [4.0877, 2.5914, + 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": "28-29,", "confidence": + 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, 4.884, 2.7017, 4.5586, + 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": [4.9351, 2.6014, + 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": "at", "confidence": + 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, 2.7013, 5.1033, + 2.7013], "text": "the", "confidence": 1}, {"boundingBox": [5.3787, 2.5852, + 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": "Elm", "confidence": + 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, 6.4263, 2.7013, 5.6624, + 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [6.4796, + 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": "Center", + "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, 7.0776, + 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": [1.014, 2.8029, 7.3457, 2.8029, 7.3457, 2.9478, 1.014, 2.9478], "text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "words": [{"boundingBox": [1.014, 2.8036, 1.4242, 2.8036, 1.4242, @@ -530,35 +495,39 @@ interactions: 8.6811], "text": "guide", "confidence": 1}]}, {"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, 3.2075, 8.8563], "text": "advertisements", "words": [{"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, - 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, - 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": [6.1276, - 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": "Vendor", - "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, 7.4833, - 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": - [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, 2.3315], "text": "Vendor - Details:", "words": [{"boundingBox": [1.0044, 2.1778, 1.6496, 2.1778, 1.6496, - 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": 1}, {"boundingBox": - [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], "text": "Details:", - "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, 2.7686, 3.3477, - 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge Video", "words": - [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, 1.0065, 2.9126], - "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, 2.7764, 2.1376, - 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": 1}, - {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, 2.9128], - "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, 2.7689, 3.3477, - 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", "confidence": 1}]}, - {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, 3.2428, 1.0065, 3.2428], - "text": "Contact: Jamie@southridgevideo.com", "words": [{"boundingBox": [1.0065, - 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], "text": "Contact:", - "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, 3.0986, 3.5766, - 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", "confidence": - 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, 3.5744, 1.0115, - 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": [1.0115, - 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": "Preferred", - "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, 2.2978, - 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": + 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}], "selectionMarks": + [{"boundingBox": [0, 10.2725, 1.0372, 10.2725, 1.0372, 10.9925, 0, 10.9925], + "confidence": 0.69, "state": "unselected"}, {"boundingBox": [0, 10.6019, 1.5095, + 10.6019, 1.5095, 10.9983, 0, 10.9983], "confidence": 0.69, "state": "unselected"}, + {"boundingBox": [2.9381, 6.9634, 3.0388, 6.9634, 3.0388, 7.0736, 2.9381, 7.0736], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, + 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": + [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, + 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, + 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": + 1}]}, {"boundingBox": [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, + 2.3315], "text": "Vendor Details:", "words": [{"boundingBox": [1.0044, 2.1778, + 1.6496, 2.1778, 1.6496, 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": + 1}, {"boundingBox": [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], + "text": "Details:", "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, + 2.7686, 3.3477, 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge + Video", "words": [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, + 1.0065, 2.9126], "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, + 2.7764, 2.1376, 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": + 1}, {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, + 2.9128], "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, + 2.7689, 3.3477, 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", + "confidence": 1}]}, {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, + 3.2428, 1.0065, 3.2428], "text": "Contact: Jamie@southridgevideo.com", "words": + [{"boundingBox": [1.0065, 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], + "text": "Contact:", "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, + 3.0986, 3.5766, 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", + "confidence": 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, + 3.5744, 1.0115, 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": + [1.0115, 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": + "Preferred", "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, + 2.2978, 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": [2.3557, 3.4302, 2.6542, 3.4302, 2.6542, 3.5463, 2.3557, 3.5463], "text": "Gold", "confidence": 1}]}, {"boundingBox": [1.0052, 3.7537, 2.4783, 3.7537, 2.4783, 3.9043, 1.0052, 3.9043], "text": "Special Requests: N/a", "words": @@ -566,12 +535,17 @@ interactions: "text": "Special", "confidence": 1}, {"boundingBox": [1.5342, 3.7684, 2.1899, 3.7684, 2.1899, 3.9043, 1.5342, 3.9043], "text": "Requests:", "confidence": 1}, {"boundingBox": [2.254, 3.7537, 2.4783, 3.7537, 2.4783, 3.8976, 2.254, - 3.8976], "text": "N/a", "confidence": 1}]}]}], "pageResults": [{"page": 1, - "tables": [{"rows": 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Package", "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, - 4.8617, 1.0033, 4.8617], "elements": ["#/readResults/0/lines/10/words/0"]}, - {"rowIndex": 0, "columnIndex": 1, "text": "Included", "boundingBox": [2.625, - 4.6517, 5.75, 4.6517, 5.75, 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, + 3.8976], "text": "N/a", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0.0024, 9.869, 1.0826, 9.869, 1.0826, 10.9955, 0.0024, 10.9955], "confidence": + 0.833, "state": "unselected"}, {"boundingBox": [7.6562, 1.0157, 8.5, 1.0157, + 8.5, 2.8293, 7.6562, 2.8293], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [0.0008, 10.4758, 1.8164, 10.4758, 1.8164, 10.9978, 0.0008, 10.9978], "confidence": + 0.6, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Package", + "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, 4.8617, 1.0033, 4.8617], + "elements": ["#/readResults/0/lines/10/words/0"]}, {"rowIndex": 0, "columnIndex": + 1, "text": "Included", "boundingBox": [2.625, 4.6517, 5.75, 4.6517, 5.75, + 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 2, "text": "Price", "boundingBox": [5.75, 4.6517, 7.4967, 4.6517, 7.4967, 4.8617, 5.75, 4.8617], "elements": ["#/readResults/0/lines/12/words/0"]}, {"rowIndex": 1, "columnIndex": 0, "text": "Gold Sponsor", "boundingBox": [1.0033, @@ -660,44 +634,44 @@ interactions: "#/readResults/0/lines/55/words/3", "#/readResults/0/lines/55/words/4"]}, {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, - {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"Full": {"type": "string", "valueString": - "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, - 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/46/words/0"]}, - "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": + {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:77b2d868-599d-4440-85d5-888bc97ca29d", + "modelId": "77b2d868-599d-4440-85d5-888bc97ca29d", "pageRange": [1, 2], "fields": + {"Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, - "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": - 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, - "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", - "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, - 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}, + "confidence": 1.0, "elements": ["#/readResults/0/lines/27/words/0"]}, "CompanyName": + {"type": "string", "valueString": "Southridge Video", "text": "Southridge + Video", "page": 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, + 2.915], "confidence": 1.0, "elements": ["#/readResults/1/lines/2/words/2", + "#/readResults/1/lines/2/words/3"]}, "Half": {"type": "string", "valueString": + "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, 6.16, 8.305, + 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": ["#/readResults/0/lines/53/words/0"]}, "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Half": - {"type": "string", "valueString": "$350", "text": "$350", "page": 1, "boundingBox": - [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/53/words/0"]}, "CompanyName": {"type": - "string", "valueString": "Southridge Video", "text": "Southridge Video", "page": - 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}}}], - "errors": []}}' + 1.0, "elements": ["#/readResults/0/lines/16/words/0"]}, "Contact": {"type": + "string", "valueString": "Jamie@southridgevideo.com", "text": "Jamie@southridgevideo.com", + "page": 2, "boundingBox": [1.62, 3.1, 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], + "confidence": 1.0, "elements": ["#/readResults/1/lines/3/words/1"]}, "Full": + {"type": "string", "valueString": "$600", "text": "$600", "page": 1, "boundingBox": + [5.835, 7.67, 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": + ["#/readResults/0/lines/46/words/0"]}, "Bronze": {"type": "string", "valueString": + "$1,000", "text": "$1,000", "page": 1, "boundingBox": [5.835, 6.825, 6.285, + 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, "elements": ["#/readResults/0/lines/37/words/0"]}}, + "docTypeConfidence": 1.0}], "errors": []}}' headers: apim-request-id: - - c92d77e0-cda1-409e-8e7c-58110899b2b3 + - 3b16f11d-37d5-4705-aa54-d22b88a9d03e content-length: - - '34159' + - '34822' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:01 GMT + - Mon, 14 Sep 2020 20:14:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '56' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 430a5995b1c6..8300da821b67 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 7eb8f083-f6f3-44a0-b603-367a1f1b2673 + - 1c8559fc-fe88-4b8c-a535-b2fd8a1ace06 content-length: - '0' date: - - Fri, 10 Jul 2020 18:44:01 GMT + - Mon, 14 Sep 2020 20:13:37 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '42' status: code: 201 message: Created @@ -48,93 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:02Z"}}' - headers: - apim-request-id: - - 63f60714-5cdc-4bd1-aa73-666712828df4 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:44:07 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '50' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:02Z"}}' - headers: - apim-request-id: - - 895989c0-ab5f-46f4-b081-d33f35e07782 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:44:11 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:02Z"}}' + string: '{"modelInfo": {"modelId": "e501142e-58a0-486b-bd20-3ccf4423b7e2", "status": + "creating", "createdDateTime": "2020-09-14T20:13:37Z", "lastUpdatedDateTime": + "2020-09-14T20:13:37Z"}}' headers: apim-request-id: - - 3604cf32-ae6e-4a44-a7d7-64f076a233c4 + - 4c0fb411-4956-42da-add5-9d20e81d4041 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:17 GMT + - Mon, 14 Sep 2020 20:13:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '52' + - '15' status: code: 200 message: OK @@ -156,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:02Z"}}' + string: '{"modelInfo": {"modelId": "e501142e-58a0-486b-bd20-3ccf4423b7e2", "status": + "creating", "createdDateTime": "2020-09-14T20:13:37Z", "lastUpdatedDateTime": + "2020-09-14T20:13:37Z"}}' headers: apim-request-id: - - 06c4b9dd-799c-4be6-b0b9-66250e92e621 + - 86f1d467-5fb8-494e-a5e4-6eaf9d800813 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:22 GMT + - Mon, 14 Sep 2020 20:13:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -178,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '35' status: code: 200 message: OK @@ -192,21 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:02Z"}}' + string: '{"modelInfo": {"modelId": "e501142e-58a0-486b-bd20-3ccf4423b7e2", "status": + "creating", "createdDateTime": "2020-09-14T20:13:37Z", "lastUpdatedDateTime": + "2020-09-14T20:13:37Z"}}' headers: apim-request-id: - - 157a5e22-dd00-437e-81bb-eb1bf6495eb8 + - 3fdd55e8-b2df-4ca1-aaf9-beb50ef10580 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:27 GMT + - Mon, 14 Sep 2020 20:13:53 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -214,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '112' status: code: 200 message: OK @@ -228,21 +156,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "creating", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:02Z"}}' + string: '{"modelInfo": {"modelId": "e501142e-58a0-486b-bd20-3ccf4423b7e2", "status": + "creating", "createdDateTime": "2020-09-14T20:13:37Z", "lastUpdatedDateTime": + "2020-09-14T20:13:37Z"}}' headers: apim-request-id: - - cde30aa9-461f-4582-83c6-1b2081f5b61a + - 3a4c6d8a-a023-4104-8129-2455385af296 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:32 GMT + - Mon, 14 Sep 2020 20:13:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -250,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '13' status: code: 200 message: OK @@ -264,14 +192,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "16fbfaea-2782-464c-bc49-276c08b67b33", "status": - "ready", "createdDateTime": "2020-07-10T18:44:02Z", "lastUpdatedDateTime": - "2020-07-10T18:44:34Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "e501142e-58a0-486b-bd20-3ccf4423b7e2", "status": + "ready", "createdDateTime": "2020-09-14T20:13:37Z", "lastUpdatedDateTime": + "2020-09-14T20:13:58Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -287,11 +215,11 @@ interactions: []}}' headers: apim-request-id: - - d9875637-dc3b-4fd4-a34e-e3ca5d94c79b + - 5e8bf3a9-2f89-492b-b28f-aec7d2704bce content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:44:38 GMT + - Mon, 14 Sep 2020 20:14:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -299,7 +227,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '756' + - '17' status: code: 200 message: OK @@ -307,7 +235,7 @@ interactions: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -317,27 +245,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 37c04fe9-a8b5-4450-9680-f17c60781ba0 + - ba9ba590-3989-4d0e-b234-cac001491243 content-length: - '0' date: - - Fri, 10 Jul 2020 18:44:39 GMT + - Mon, 14 Sep 2020 20:14:02 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2/analyzeresults/42c42a3b-621d-427f-be39-0076164e077b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '870' + - '47' status: code: 202 message: Accepted @@ -351,273 +279,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", - "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' - headers: - apim-request-id: - - 5871d064-239b-41e4-b238-193d6afafd05 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:44:44 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", - "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' - headers: - apim-request-id: - - 2132fc67-7f8d-45b2-8676-98eb1b429a8b - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:44:49 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '50' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", - "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' - headers: - apim-request-id: - - 76b3d59c-612a-440b-a6b6-6774365c15d4 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:44:56 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '1022' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:44:39Z", - "lastUpdatedDateTime": "2020-07-10T18:44:39Z"}' - headers: - apim-request-id: - - 8cdda87c-f159-4700-8de9-4d0c0f8adad8 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:45:01 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '47' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": - "2020-07-10T18:45:04Z", "analyzeResult": null}' - headers: - apim-request-id: - - dcc7373c-5f7f-47d3-9997-26d1bd782242 - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:45:06 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": - "2020-07-10T18:45:04Z", "analyzeResult": null}' - headers: - apim-request-id: - - 175c688d-549b-46fb-bdb7-26be97ca99a7 - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:45:12 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '905' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f - response: - body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": - "2020-07-10T18:45:04Z", "analyzeResult": null}' - headers: - apim-request-id: - - 3dc7571e-9e1a-4ce6-bb26-053656b4fd90 - content-length: - - '134' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:45:18 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '48' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2/analyzeresults/42c42a3b-621d-427f-be39-0076164e077b response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": - "2020-07-10T18:45:04Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:14:03Z", "lastUpdatedDateTime": + "2020-09-14T20:14:06Z", "analyzeResult": null}' headers: apim-request-id: - - c85b56ad-7c15-470f-80e2-ae93b1be078f + - bba36821-cc96-4c22-81f9-a213f0f7f347 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:22 GMT + - Mon, 14 Sep 2020 20:14:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '13' status: code: 200 message: OK @@ -631,28 +314,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2/analyzeresults/42c42a3b-621d-427f-be39-0076164e077b response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:44:39Z", "lastUpdatedDateTime": - "2020-07-10T18:45:04Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:14:03Z", "lastUpdatedDateTime": + "2020-09-14T20:14:06Z", "analyzeResult": null}' headers: apim-request-id: - - ada0829c-c573-4b63-9196-66b8fb241a5f + - 5211cde8-8ecb-4b18-9ee4-29f94d6e4153 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:27 GMT + - Mon, 14 Sep 2020 20:14:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '13' status: code: 200 message: OK @@ -666,476 +349,439 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/16fbfaea-2782-464c-bc49-276c08b67b33/analyzeresults/eba4192c-b264-4ad2-a92f-5c44d628435f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e501142e-58a0-486b-bd20-3ccf4423b7e2/analyzeresults/42c42a3b-621d-427f-be39-0076164e077b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:44:39Z", - "lastUpdatedDateTime": "2020-07-10T18:45:10Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, - 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", - "boundingBox": [6.1236, 1.0014, 6.8694, 1.0014, 6.8694, 1.3056, 6.1236, 1.3056]}, - {"text": "#:", "boundingBox": [6.9264, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.9264, 1.3056]}]}, {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, - 1.0014, 7.4958, 1.3056, 7.1167, 1.3056], "words": [{"text": "121", "boundingBox": - [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, 1.3056, 7.1167, 1.3056]}]}, {"text": - "Vendor Registration", "boundingBox": [2.2181, 1.4417, 6.2736, 1.4417, 6.2736, - 2.05, 2.2181, 2.05], "words": [{"text": "Vendor", "boundingBox": [2.2181, - 1.4417, 3.7111, 1.4417, 3.7111, 2.05, 2.2181, 2.05]}, {"text": "Registration", - "boundingBox": [3.8236, 1.4417, 6.2736, 1.4417, 6.2736, 2.05, 3.8236, 2.05]}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:03Z", + "lastUpdatedDateTime": "2020-09-14T20:14:17Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, + 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": "Vendor", + "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, 6.1278, 1.2403]}, + {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, 7.1514, 1.2392, + 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, 1.076, 7.4833, + 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392]}]}, {"text": + "Vendor Registration", "boundingBox": [2.2264, 1.5827, 6.2375, 1.5827, 6.2375, + 1.9739, 2.2264, 1.9739], "words": [{"text": "Vendor", "boundingBox": [2.2264, + 1.5733, 3.7028, 1.5733, 3.7028, 1.9208, 2.2264, 1.9208]}, {"text": "Registration", + "boundingBox": [3.8667, 1.5882, 6.2375, 1.5882, 6.2375, 2.0049, 3.8667, 2.0049]}]}, {"text": "Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm - Conference Center in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, - 2.7444, 1.0, 2.7444], "words": [{"text": "Contoso", "boundingBox": [1.0, 2.5417, - 1.5625, 2.5417, 1.5625, 2.7444, 1.0, 2.7444]}, {"text": "Ltd.", "boundingBox": - [1.5986, 2.5417, 1.8556, 2.5417, 1.8556, 2.7444, 1.5986, 2.7444]}, {"text": - "Conference", "boundingBox": [1.8917, 2.5417, 2.6708, 2.5417, 2.6708, 2.7444, - 1.8917, 2.7444]}, {"text": "will", "boundingBox": [2.7083, 2.5417, 2.9431, - 2.5417, 2.9431, 2.7444, 2.7083, 2.7444]}, {"text": "be", "boundingBox": [2.9792, - 2.5417, 3.15, 2.5417, 3.15, 2.7444, 2.9792, 2.7444]}, {"text": "held", "boundingBox": - [3.1861, 2.5417, 3.4833, 2.5417, 3.4833, 2.7444, 3.1861, 2.7444]}, {"text": - "on", "boundingBox": [3.5222, 2.5417, 3.6972, 2.5417, 3.6972, 2.7444, 3.5222, - 2.7444]}, {"text": "May", "boundingBox": [3.7389, 2.5417, 4.0444, 2.5417, - 4.0444, 2.7444, 3.7389, 2.7444]}, {"text": "28-29,", "boundingBox": [4.0806, - 2.5417, 4.5125, 2.5417, 4.5125, 2.7444, 4.0806, 2.7444]}, {"text": "2020", - "boundingBox": [4.5514, 2.5417, 4.8889, 2.5417, 4.8889, 2.7444, 4.5514, 2.7444]}, - {"text": "at", "boundingBox": [4.9278, 2.5417, 5.0625, 2.5417, 5.0625, 2.7444, - 4.9278, 2.7444]}, {"text": "the", "boundingBox": [5.1, 2.5417, 5.3278, 2.5417, - 5.3278, 2.7444, 5.1, 2.7444]}, {"text": "Elm", "boundingBox": [5.3653, 2.5417, - 5.6167, 2.5417, 5.6167, 2.7444, 5.3653, 2.7444]}, {"text": "Conference", "boundingBox": - [5.6542, 2.5417, 6.4347, 2.5417, 6.4347, 2.7444, 5.6542, 2.7444]}, {"text": - "Center", "boundingBox": [6.4722, 2.5417, 6.9264, 2.5417, 6.9264, 2.7444, - 6.4722, 2.7444]}, {"text": "in", "boundingBox": [6.9653, 2.5417, 7.0903, 2.5417, - 7.0903, 2.7444, 6.9653, 2.7444]}]}, {"text": "Maple City, Massachusetts. The + Conference Center in", "boundingBox": [1.0069, 2.5894, 7.0778, 2.5894, 7.0778, + 2.7043, 1.0069, 2.7043], "words": [{"text": "Contoso", "boundingBox": [1.0069, + 2.592, 1.5556, 2.592, 1.5556, 2.7014, 1.0069, 2.7014]}, {"text": "Ltd.", "boundingBox": + [1.6125, 2.5858, 1.8431, 2.5858, 1.8431, 2.7014, 1.6125, 2.7014]}, {"text": + "Conference", "boundingBox": [1.9, 2.5847, 2.6639, 2.5847, 2.6639, 2.7014, + 1.9, 2.7014]}, {"text": "will", "boundingBox": [2.7125, 2.5851, 2.9306, 2.5851, + 2.9306, 2.7003, 2.7125, 2.7003]}, {"text": "be", "boundingBox": [2.9917, 2.5851, + 3.1417, 2.5851, 3.1417, 2.7014, 2.9917, 2.7014]}, {"text": "held", "boundingBox": + [3.1986, 2.5851, 3.4708, 2.5851, 3.4708, 2.7014, 3.1986, 2.7014]}, {"text": + "on", "boundingBox": [3.5306, 2.6201, 3.6847, 2.6201, 3.6847, 2.7014, 3.5306, + 2.7014]}, {"text": "May", "boundingBox": [3.75, 2.5934, 4.0431, 2.5934, 4.0431, + 2.7292, 3.75, 2.7292]}, {"text": "28-29,", "boundingBox": [4.0875, 2.5913, + 4.5042, 2.5913, 4.5042, 2.7236, 4.0875, 2.7236]}, {"text": "2020", "boundingBox": + [4.5583, 2.5913, 4.8833, 2.5913, 4.8833, 2.7017, 4.5583, 2.7017]}, {"text": + "at", "boundingBox": [4.9347, 2.6014, 5.0569, 2.6014, 5.0569, 2.7014, 4.9347, + 2.7014]}, {"text": "the", "boundingBox": [5.1028, 2.5851, 5.3208, 2.5851, + 5.3208, 2.7014, 5.1028, 2.7014]}, {"text": "Elm", "boundingBox": [5.3792, + 2.5851, 5.6056, 2.5851, 5.6056, 2.7003, 5.3792, 2.7003]}, {"text": "Conference", + "boundingBox": [5.6625, 2.5847, 6.4264, 2.5847, 6.4264, 2.7014, 5.6625, 2.7014]}, + {"text": "Center", "boundingBox": [6.4792, 2.592, 6.9236, 2.592, 6.9236, 2.7014, + 6.4792, 2.7014]}, {"text": "in", "boundingBox": [6.9764, 2.5906, 7.0778, 2.5906, + 7.0778, 2.7003, 6.9764, 2.7003]}]}, {"text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "boundingBox": - [1.0, 2.7597, 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "words": [{"text": - "Maple", "boundingBox": [1.0, 2.7597, 1.4319, 2.7597, 1.4319, 2.9625, 1.0, - 2.9625]}, {"text": "City,", "boundingBox": [1.4681, 2.7597, 1.7694, 2.7597, - 1.7694, 2.9625, 1.4681, 2.9625]}, {"text": "Massachusetts.", "boundingBox": - [1.8056, 2.7597, 2.85, 2.7597, 2.85, 2.9625, 1.8056, 2.9625]}, {"text": "The", - "boundingBox": [2.8875, 2.7597, 3.1403, 2.7597, 3.1403, 2.9625, 2.8875, 2.9625]}, - {"text": "conference", "boundingBox": [3.1764, 2.7597, 3.9375, 2.7597, 3.9375, - 2.9625, 3.1764, 2.9625]}, {"text": "has", "boundingBox": [3.975, 2.7597, 4.2083, - 2.7597, 4.2083, 2.9625, 3.975, 2.9625]}, {"text": "sold", "boundingBox": [4.2458, - 2.7597, 4.5222, 2.7597, 4.5222, 2.9625, 4.2458, 2.9625]}, {"text": "out", - "boundingBox": [4.5625, 2.7597, 4.7917, 2.7597, 4.7917, 2.9625, 4.5625, 2.9625]}, - {"text": "of", "boundingBox": [4.8306, 2.7597, 4.9681, 2.7597, 4.9681, 2.9625, - 4.8306, 2.9625]}, {"text": "its", "boundingBox": [5.0056, 2.7597, 5.1667, - 2.7597, 5.1667, 2.9625, 5.0056, 2.9625]}, {"text": "1,500", "boundingBox": - [5.2028, 2.7597, 5.5819, 2.7597, 5.5819, 2.9625, 5.2028, 2.9625]}, {"text": - "tickets,", "boundingBox": [5.6194, 2.7597, 6.1042, 2.7597, 6.1042, 2.9625, - 5.6194, 2.9625]}, {"text": "with", "boundingBox": [6.1417, 2.7597, 6.4431, - 2.7597, 6.4431, 2.9625, 6.1417, 2.9625]}, {"text": "a", "boundingBox": [6.4806, - 2.7597, 6.5597, 2.7597, 6.5597, 2.9625, 6.4806, 2.9625]}, {"text": "400", - "boundingBox": [6.5972, 2.7597, 6.85, 2.7597, 6.85, 2.9625, 6.5972, 2.9625]}, - {"text": "person", "boundingBox": [6.8875, 2.7597, 7.3583, 2.7597, 7.3583, - 2.9625, 6.8875, 2.9625]}]}, {"text": "waitlist. Vendor applications are being - accepted through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, - 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "words": [{"text": "waitlist.", - "boundingBox": [1.0, 2.9806, 1.5319, 2.9806, 1.5319, 3.1833, 1.0, 3.1833]}, - {"text": "Vendor", "boundingBox": [1.5708, 2.9806, 2.0681, 2.9806, 2.0681, - 3.1833, 1.5708, 3.1833]}, {"text": "applications", "boundingBox": [2.1056, - 2.9806, 2.9208, 2.9806, 2.9208, 3.1833, 2.1056, 3.1833]}, {"text": "are", - "boundingBox": [2.9597, 2.9806, 3.1806, 2.9806, 3.1806, 3.1833, 2.9597, 3.1833]}, - {"text": "being", "boundingBox": [3.2181, 2.9806, 3.5931, 2.9806, 3.5931, - 3.1833, 3.2181, 3.1833]}, {"text": "accepted", "boundingBox": [3.6319, 2.9806, - 4.2458, 2.9806, 4.2458, 3.1833, 3.6319, 3.1833]}, {"text": "through", "boundingBox": - [4.2833, 2.9806, 4.825, 2.9806, 4.825, 3.1833, 4.2833, 3.1833]}, {"text": - "Feb", "boundingBox": [4.8694, 2.9806, 5.1194, 2.9806, 5.1194, 3.1833, 4.8694, - 3.1833]}, {"text": "28,", "boundingBox": [5.1556, 2.9806, 5.3694, 2.9806, - 5.3694, 3.1833, 5.1556, 3.1833]}, {"text": "2020.", "boundingBox": [5.4056, - 2.9806, 5.7875, 2.9806, 5.7875, 3.1833, 5.4056, 3.1833]}, {"text": "Please", - "boundingBox": [5.8264, 2.9806, 6.2611, 2.9806, 6.2611, 3.1833, 5.8264, 3.1833]}, - {"text": "fill", "boundingBox": [6.2986, 2.9806, 6.4667, 2.9806, 6.4667, 3.1833, - 6.2986, 3.1833]}, {"text": "in", "boundingBox": [6.5028, 2.9806, 6.6278, 2.9806, - 6.6278, 3.1833, 6.5028, 3.1833]}, {"text": "the", "boundingBox": [6.6653, - 2.9806, 6.8917, 2.9806, 6.8917, 3.1833, 6.6653, 3.1833]}, {"text": "form", - "boundingBox": [6.9292, 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 6.9292, 3.1833]}]}, - {"text": "below, and attach a check made out to:", "boundingBox": [1.0, 3.2, - 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "words": [{"text": "below,", "boundingBox": - [1.0, 3.2, 1.4569, 3.2, 1.4569, 3.4028, 1.0, 3.4028]}, {"text": "and", "boundingBox": - [1.4944, 3.2, 1.75, 3.2, 1.75, 3.4028, 1.4944, 3.4028]}, {"text": "attach", - "boundingBox": [1.7889, 3.2, 2.2167, 3.2, 2.2167, 3.4028, 1.7889, 3.4028]}, - {"text": "a", "boundingBox": [2.2542, 3.2, 2.3347, 3.2, 2.3347, 3.4028, 2.2542, - 3.4028]}, {"text": "check", "boundingBox": [2.3722, 3.2, 2.7556, 3.2, 2.7556, - 3.4028, 2.3722, 3.4028]}, {"text": "made", "boundingBox": [2.7958, 3.2, 3.1778, - 3.2, 3.1778, 3.4028, 2.7958, 3.4028]}, {"text": "out", "boundingBox": [3.2181, - 3.2, 3.4472, 3.2, 3.4472, 3.4028, 3.2181, 3.4028]}, {"text": "to:", "boundingBox": - [3.4847, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 3.4847, 3.4028]}]}, {"text": "Contoso - Ltd.", "boundingBox": [1.0, 3.5306, 1.8556, 3.5306, 1.8556, 3.7333, 1.0, 3.7333], - "words": [{"text": "Contoso", "boundingBox": [1.0, 3.5306, 1.5625, 3.5306, - 1.5625, 3.7333, 1.0, 3.7333]}, {"text": "Ltd.", "boundingBox": [1.5986, 3.5306, - 1.8556, 3.5306, 1.8556, 3.7333, 1.5986, 3.7333]}]}, {"text": "2345 Dogwood - Lane", "boundingBox": [1.0, 3.75, 2.3847, 3.75, 2.3847, 3.9528, 1.0, 3.9528], - "words": [{"text": "2345", "boundingBox": [1.0, 3.75, 1.3389, 3.75, 1.3389, - 3.9528, 1.0, 3.9528]}, {"text": "Dogwood", "boundingBox": [1.3764, 3.75, 2.0278, - 3.75, 2.0278, 3.9528, 1.3764, 3.9528]}, {"text": "Lane", "boundingBox": [2.0653, - 3.75, 2.3847, 3.75, 2.3847, 3.9528, 2.0653, 3.9528]}]}, {"text": "Birch, Kansas - 98123", "boundingBox": [1.0, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.0, - 4.1722], "words": [{"text": "Birch,", "boundingBox": [1.0, 3.9694, 1.3861, - 3.9694, 1.3861, 4.1722, 1.0, 4.1722]}, {"text": "Kansas", "boundingBox": [1.4236, - 3.9694, 1.8889, 3.9694, 1.8889, 4.1722, 1.4236, 4.1722]}, {"text": "98123", - "boundingBox": [1.925, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.925, 4.1722]}]}, - {"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, - 1.0, 4.6264], "words": [{"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, - 4.3556, 1.5486, 4.6264, 1.0, 4.6264]}]}, {"text": "Package", "boundingBox": - [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, 4.8583], "words": - [{"text": "Package", "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, - 4.8583, 1.0778, 4.8583]}]}, {"text": "Included", "boundingBox": [2.6986, 4.6556, - 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583], "words": [{"text": "Included", - "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583]}]}, - {"text": "Price", "boundingBox": [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, - 4.8583, 5.8236, 4.8583], "words": [{"text": "Price", "boundingBox": [5.8236, - 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583]}]}, {"text": "Gold - Sponsor", "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, - 1.0778, 5.0681], "words": [{"text": "Gold", "boundingBox": [1.0778, 4.8653, - 1.3958, 4.8653, 1.3958, 5.0681, 1.0778, 5.0681]}, {"text": "Sponsor", "boundingBox": - [1.4361, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, 1.4361, 5.0681]}]}, {"text": - "Full booth", "boundingBox": [3.2, 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, - 3.2, 5.0764], "words": [{"text": "Full", "boundingBox": [3.2, 4.8736, 3.4417, - 4.8736, 3.4417, 5.0764, 3.2, 5.0764]}, {"text": "booth", "boundingBox": [3.4792, - 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, 3.4792, 5.0764]}]}, {"text": "$1,500", - "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], - "words": [{"text": "$1,500", "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, - 6.2889, 5.0681, 5.825, 5.0681]}]}, {"text": "Pre-keynote thank you", "boundingBox": - [3.2, 5.0861, 4.7389, 5.0861, 4.7389, 5.2889, 3.2, 5.2889], "words": [{"text": - "Pre-keynote", "boundingBox": [3.2, 5.0861, 4.0264, 5.0861, 4.0264, 5.2889, - 3.2, 5.2889]}, {"text": "thank", "boundingBox": [4.0639, 5.0861, 4.45, 5.0861, - 4.45, 5.2889, 4.0639, 5.2889]}, {"text": "you", "boundingBox": [4.4875, 5.0861, - 4.7389, 5.0861, 4.7389, 5.2889, 4.4875, 5.2889]}]}, {"text": "Logo on poster", - "boundingBox": [3.2, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.2, 5.5014], - "words": [{"text": "Logo", "boundingBox": [3.2, 5.2986, 3.5236, 5.2986, 3.5236, - 5.5014, 3.2, 5.5014]}, {"text": "on", "boundingBox": [3.5611, 5.2986, 3.7361, - 5.2986, 3.7361, 5.5014, 3.5611, 5.5014]}, {"text": "poster", "boundingBox": - [3.7764, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.7764, 5.5014]}]}, {"text": - "Full page ad in program guide", "boundingBox": [3.2, 5.5111, 5.2083, 5.5111, - 5.2083, 5.7139, 3.2, 5.7139], "words": [{"text": "Full", "boundingBox": [3.2, - 5.5111, 3.4417, 5.5111, 3.4417, 5.7139, 3.2, 5.7139]}, {"text": "page", "boundingBox": - [3.4792, 5.5111, 3.8069, 5.5111, 3.8069, 5.7139, 3.4792, 5.7139]}, {"text": - "ad", "boundingBox": [3.8444, 5.5111, 4.0111, 5.5111, 4.0111, 5.7139, 3.8444, - 5.7139]}, {"text": "in", "boundingBox": [4.0486, 5.5111, 4.175, 5.5111, 4.175, - 5.7139, 4.0486, 5.7139]}, {"text": "program", "boundingBox": [4.2125, 5.5111, - 4.7958, 5.5111, 4.7958, 5.7139, 4.2125, 5.7139]}, {"text": "guide", "boundingBox": - [4.8319, 5.5111, 5.2083, 5.5111, 5.2083, 5.7139, 4.8319, 5.7139]}]}, {"text": - "Silver Sponsor", "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "words": [{"text": "Silver", "boundingBox": [1.0778, - 5.9347, 1.4472, 5.9347, 1.4472, 6.1375, 1.0778, 6.1375]}, {"text": "Sponsor", - "boundingBox": [1.4847, 5.9347, 2.0361, 5.9347, 2.0361, 6.1375, 1.4847, 6.1375]}]}, - {"text": "Full booth", "boundingBox": [3.2, 5.9431, 3.8847, 5.9431, 3.8847, - 6.1458, 3.2, 6.1458], "words": [{"text": "Full", "boundingBox": [3.2, 5.9431, - 3.4417, 5.9431, 3.4417, 6.1458, 3.2, 6.1458]}, {"text": "booth", "boundingBox": - [3.4792, 5.9431, 3.8847, 5.9431, 3.8847, 6.1458, 3.4792, 6.1458]}]}, {"text": - "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, - 6.1375], "words": [{"text": "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, - 5.9347, 6.2889, 6.1375, 5.825, 6.1375]}]}, {"text": "Post-keynote thank you", - "boundingBox": [3.2, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 3.2, 6.3583], - "words": [{"text": "Post-keynote", "boundingBox": [3.2, 6.1556, 4.0958, 6.1556, - 4.0958, 6.3583, 3.2, 6.3583]}, {"text": "thank", "boundingBox": [4.1319, 6.1556, - 4.5194, 6.1556, 4.5194, 6.3583, 4.1319, 6.3583]}, {"text": "you", "boundingBox": - [4.5556, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 4.5556, 6.3583]}]}, {"text": - "Logo on poster", "boundingBox": [3.2, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, - 3.2, 6.5694], "words": [{"text": "Logo", "boundingBox": [3.2, 6.3667, 3.5236, - 6.3667, 3.5236, 6.5694, 3.2, 6.5694]}, {"text": "on", "boundingBox": [3.5611, - 6.3667, 3.7361, 6.3667, 3.7361, 6.5694, 3.5611, 6.5694]}, {"text": "poster", - "boundingBox": [3.7764, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, 3.7764, 6.5694]}]}, - {"text": "Half page ad in program guide", "boundingBox": [3.2, 6.5806, 5.2389, - 6.5806, 5.2389, 6.7833, 3.2, 6.7833], "words": [{"text": "Half", "boundingBox": - [3.2, 6.5806, 3.4722, 6.5806, 3.4722, 6.7833, 3.2, 6.7833]}, {"text": "page", - "boundingBox": [3.5097, 6.5806, 3.8403, 6.5806, 3.8403, 6.7833, 3.5097, 6.7833]}, - {"text": "ad", "boundingBox": [3.8764, 6.5806, 4.0444, 6.5806, 4.0444, 6.7833, - 3.8764, 6.7833]}, {"text": "in", "boundingBox": [4.0819, 6.5806, 4.2069, 6.5806, - 4.2069, 6.7833, 4.0819, 6.7833]}, {"text": "program", "boundingBox": [4.2444, - 6.5806, 4.8264, 6.5806, 4.8264, 6.7833, 4.2444, 6.7833]}, {"text": "guide", - "boundingBox": [4.8653, 6.5806, 5.2389, 6.5806, 5.2389, 6.7833, 4.8653, 6.7833]}]}, - {"text": "Bronze Sponsor", "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, - 2.1389, 6.9931, 1.0778, 6.9931], "words": [{"text": "Bronze", "boundingBox": - [1.0778, 6.7903, 1.5528, 6.7903, 1.5528, 6.9931, 1.0778, 6.9931]}, {"text": - "Sponsor", "boundingBox": [1.5889, 6.7903, 2.1389, 6.7903, 2.1389, 6.9931, - 1.5889, 6.9931]}]}, {"text": "Full booth", "boundingBox": [3.2, 6.7986, 3.8847, - 6.7986, 3.8847, 7.0014, 3.2, 7.0014], "words": [{"text": "Full", "boundingBox": - [3.2, 6.7986, 3.4417, 6.7986, 3.4417, 7.0014, 3.2, 7.0014]}, {"text": "booth", - "boundingBox": [3.4792, 6.7986, 3.8847, 6.7986, 3.8847, 7.0014, 3.4792, 7.0014]}]}, - {"text": "$1,000", "boundingBox": [5.825, 6.7903, 6.2889, 6.7903, 6.2889, - 6.9931, 5.825, 6.9931], "words": [{"text": "$1,000", "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931]}]}, {"text": "Logo - on poster", "boundingBox": [3.2, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.2, - 7.2139], "words": [{"text": "Logo", "boundingBox": [3.2, 7.0111, 3.5236, 7.0111, - 3.5236, 7.2139, 3.2, 7.2139]}, {"text": "on", "boundingBox": [3.5611, 7.0111, - 3.7361, 7.0111, 3.7361, 7.2139, 3.5611, 7.2139]}, {"text": "poster", "boundingBox": - [3.7764, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.7764, 7.2139]}]}, {"text": - "50% discount on program guide", "boundingBox": [3.2, 7.2236, 5.35, 7.2236, - 5.35, 7.4264, 3.2, 7.4264], "words": [{"text": "50%", "boundingBox": [3.2, - 7.2236, 3.4875, 7.2236, 3.4875, 7.4264, 3.2, 7.4264]}, {"text": "discount", - "boundingBox": [3.525, 7.2236, 4.1069, 7.2236, 4.1069, 7.4264, 3.525, 7.4264]}, - {"text": "on", "boundingBox": [4.1444, 7.2236, 4.3194, 7.2236, 4.3194, 7.4264, - 4.1444, 7.4264]}, {"text": "program", "boundingBox": [4.3556, 7.2236, 4.9375, - 7.2236, 4.9375, 7.4264, 4.3556, 7.4264]}, {"text": "guide", "boundingBox": - [4.9764, 7.2236, 5.35, 7.2236, 5.35, 7.4264, 4.9764, 7.4264]}]}, {"text": - "advertisements", "boundingBox": [3.2, 7.4264, 4.25, 7.4264, 4.25, 7.6292, - 3.2, 7.6292], "words": [{"text": "advertisements", "boundingBox": [3.2, 7.4264, - 4.25, 7.4264, 4.25, 7.6292, 3.2, 7.6292]}]}, {"text": "Full Booth", "boundingBox": - [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, 7.8417, 1.0778, 7.8417], "words": - [{"text": "Full", "boundingBox": [1.0778, 7.6389, 1.3208, 7.6389, 1.3208, - 7.8417, 1.0778, 7.8417]}, {"text": "Booth", "boundingBox": [1.3583, 7.6389, - 1.7653, 7.6389, 1.7653, 7.8417, 1.3583, 7.8417]}]}, {"text": "Full booth", - "boundingBox": [3.2, 7.6472, 3.8847, 7.6472, 3.8847, 7.85, 3.2, 7.85], "words": - [{"text": "Full", "boundingBox": [3.2, 7.6472, 3.4417, 7.6472, 3.4417, 7.85, - 3.2, 7.85]}, {"text": "booth", "boundingBox": [3.4792, 7.6472, 3.8847, 7.6472, - 3.8847, 7.85, 3.4792, 7.85]}]}, {"text": "$600", "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "words": [{"text": "$600", - "boundingBox": [5.825, 7.6389, 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417]}]}, - {"text": "50% discount on program guide", "boundingBox": [3.2, 7.8583, 5.35, - 7.8583, 5.35, 8.0611, 3.2, 8.0611], "words": [{"text": "50%", "boundingBox": - [3.2, 7.8583, 3.4875, 7.8583, 3.4875, 8.0611, 3.2, 8.0611]}, {"text": "discount", - "boundingBox": [3.525, 7.8583, 4.1069, 7.8583, 4.1069, 8.0611, 3.525, 8.0611]}, - {"text": "on", "boundingBox": [4.1444, 7.8583, 4.3194, 7.8583, 4.3194, 8.0611, - 4.1444, 8.0611]}, {"text": "program", "boundingBox": [4.3556, 7.8583, 4.9375, - 7.8583, 4.9375, 8.0611, 4.3556, 8.0611]}, {"text": "guide", "boundingBox": - [4.9764, 7.8583, 5.35, 7.8583, 5.35, 8.0611, 4.9764, 8.0611]}]}, {"text": - "advertisements", "boundingBox": [3.2, 8.0611, 4.25, 8.0611, 4.25, 8.2639, - 3.2, 8.2639], "words": [{"text": "advertisements", "boundingBox": [3.2, 8.0611, - 4.25, 8.0611, 4.25, 8.2639, 3.2, 8.2639]}]}, {"text": "Half Booth", "boundingBox": - [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, 8.4764], "words": - [{"text": "Half", "boundingBox": [1.0778, 8.2736, 1.35, 8.2736, 1.35, 8.4764, - 1.0778, 8.4764]}, {"text": "Booth", "boundingBox": [1.3889, 8.2736, 1.7972, - 8.2736, 1.7972, 8.4764, 1.3889, 8.4764]}]}, {"text": "Full booth", "boundingBox": - [3.2, 8.2819, 3.8847, 8.2819, 3.8847, 8.4847, 3.2, 8.4847], "words": [{"text": - "Full", "boundingBox": [3.2, 8.2819, 3.4417, 8.2819, 3.4417, 8.4847, 3.2, - 8.4847]}, {"text": "booth", "boundingBox": [3.4792, 8.2819, 3.8847, 8.2819, - 3.8847, 8.4847, 3.4792, 8.4847]}]}, {"text": "$350", "boundingBox": [5.825, - 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "words": [{"text": - "$350", "boundingBox": [5.825, 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, - 8.4764]}]}, {"text": "25% discount on program guide", "boundingBox": [3.2, - 8.4931, 5.35, 8.4931, 5.35, 8.6958, 3.2, 8.6958], "words": [{"text": "25%", - "boundingBox": [3.2, 8.4931, 3.4875, 8.4931, 3.4875, 8.6958, 3.2, 8.6958]}, - {"text": "discount", "boundingBox": [3.525, 8.4931, 4.1069, 8.4931, 4.1069, - 8.6958, 3.525, 8.6958]}, {"text": "on", "boundingBox": [4.1444, 8.4931, 4.3194, - 8.4931, 4.3194, 8.6958, 4.1444, 8.6958]}, {"text": "program", "boundingBox": - [4.3556, 8.4931, 4.9375, 8.4931, 4.9375, 8.6958, 4.3556, 8.6958]}, {"text": - "guide", "boundingBox": [4.9764, 8.4931, 5.35, 8.4931, 5.35, 8.6958, 4.9764, - 8.6958]}]}, {"text": "advertisements", "boundingBox": [3.2, 8.6972, 4.25, - 8.6972, 4.25, 8.9, 3.2, 8.9], "words": [{"text": "advertisements", "boundingBox": - [3.2, 8.6972, 4.25, 8.6972, 4.25, 8.9, 3.2, 8.9]}]}]}, {"page": 2, "angle": - 359.96, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor - #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.1389, - 1.2708], "words": [{"text": "Vendor", "boundingBox": [6.1389, 1.0556, 6.8917, - 1.0556, 6.8917, 1.2708, 6.1389, 1.2708]}, {"text": "#:", "boundingBox": [6.9333, - 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.9333, 1.2708]}]}, {"text": "121", - "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], - "words": [{"text": "121", "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, - 7.5167, 1.2708, 7.1667, 1.2708]}]}, {"text": "Vendor Details:", "boundingBox": - [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, 2.3722], "words": [{"text": - "Vendor", "boundingBox": [1.0111, 2.1736, 1.6736, 2.1736, 1.6736, 2.3722, - 1.0111, 2.3722]}, {"text": "Details:", "boundingBox": [1.7111, 2.1736, 2.375, - 2.1736, 2.375, 2.3722, 1.7111, 2.3722]}]}, {"text": "Company Name:", "boundingBox": - [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, 1.0028, 2.9278], "words": - [{"text": "Company", "boundingBox": [1.0028, 2.7611, 1.6639, 2.7611, 1.6639, - 2.9278, 1.0028, 2.9278]}, {"text": "Name:", "boundingBox": [1.6944, 2.7611, - 2.1556, 2.7611, 2.1556, 2.9278, 1.6944, 2.9278]}]}, {"text": "Southridge Video", - "boundingBox": [2.1917, 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], - "words": [{"text": "Southridge", "boundingBox": [2.1917, 2.7611, 2.9444, 2.7611, - 2.9444, 2.9278, 2.1917, 2.9278]}, {"text": "Video", "boundingBox": [2.975, - 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.975, 2.9278]}]}, {"text": "Contact:", - "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, 1.0069, 3.2472], - "words": [{"text": "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, - 1.5903, 3.2472, 1.0069, 3.2472]}]}, {"text": "Jamie@southridgevideo.com", - "boundingBox": [1.6222, 3.0903, 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], - "words": [{"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, - 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472]}]}, {"text": "Preferred Package:", - "boundingBox": [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], - "words": [{"text": "Preferred", "boundingBox": [1.0028, 3.4236, 1.6667, 3.4236, - 1.6667, 3.5806, 1.0028, 3.5806]}, {"text": "Package:", "boundingBox": [1.6972, - 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.6972, 3.5806]}]}, {"text": "Gold", - "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, 2.35, 3.5806], - "words": [{"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, - 3.5806, 2.35, 3.5806]}]}, {"text": "Special Requests:", "boundingBox": [1.0167, - 3.7611, 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "words": [{"text": - "Special", "boundingBox": [1.0167, 3.7611, 1.4972, 3.7611, 1.4972, 3.9139, - 1.0167, 3.9139]}, {"text": "Requests:", "boundingBox": [1.5278, 3.7611, 2.2194, - 3.7611, 2.2194, 3.9139, 1.5278, 3.9139]}]}, {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "words": [{"text": - "N/a", "boundingBox": [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, - 3.9139]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": - "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.1236, 1.3056], "elements": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1"]}, - "value": {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, - 1.3056, 7.1167, 1.3056], "elements": ["#/readResults/0/lines/1/words/0"]}, - "confidence": 1.0}, {"key": {"text": "__Address__1", "boundingBox": null, - "elements": null}, "value": {"text": "Contoso Ltd. 2345 Dogwood Lane Birch, - Kansas 98123", "boundingBox": [1.0, 3.5306, 2.3847, 3.5306, 2.3847, 4.1722, - 1.0, 4.1722], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1", - "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", "#/readResults/0/lines/8/words/2", - "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": - null}, "value": {"text": "Vendor Registration", "boundingBox": [2.2181, 1.4417, - 6.2736, 1.4417, 6.2736, 2.05, 2.2181, 2.05], "elements": ["#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, 2.7444, 1.0, 2.7444], - "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", "#/readResults/0/lines/3/words/3", "#/readResults/0/lines/3/words/4", - "#/readResults/0/lines/3/words/5", "#/readResults/0/lines/3/words/6", "#/readResults/0/lines/3/words/7", - "#/readResults/0/lines/3/words/8", "#/readResults/0/lines/3/words/9", "#/readResults/0/lines/3/words/10", - "#/readResults/0/lines/3/words/11", "#/readResults/0/lines/3/words/12", "#/readResults/0/lines/3/words/13", - "#/readResults/0/lines/3/words/14", "#/readResults/0/lines/3/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Maple City, Massachusetts. The conference has sold - out of its 1,500 tickets, with a 400 person", "boundingBox": [1.0, 2.7597, - 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "elements": ["#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/4/words/3", - "#/readResults/0/lines/4/words/4", "#/readResults/0/lines/4/words/5", "#/readResults/0/lines/4/words/6", - "#/readResults/0/lines/4/words/7", "#/readResults/0/lines/4/words/8", "#/readResults/0/lines/4/words/9", - "#/readResults/0/lines/4/words/10", "#/readResults/0/lines/4/words/11", "#/readResults/0/lines/4/words/12", - "#/readResults/0/lines/4/words/13", "#/readResults/0/lines/4/words/14", "#/readResults/0/lines/4/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "waitlist. Vendor applications are being accepted - through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, 2.9806, - 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "elements": ["#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", "#/readResults/0/lines/5/words/3", - "#/readResults/0/lines/5/words/4", "#/readResults/0/lines/5/words/5", "#/readResults/0/lines/5/words/6", - "#/readResults/0/lines/5/words/7", "#/readResults/0/lines/5/words/8", "#/readResults/0/lines/5/words/9", - "#/readResults/0/lines/5/words/10", "#/readResults/0/lines/5/words/11", "#/readResults/0/lines/5/words/12", - "#/readResults/0/lines/5/words/13", "#/readResults/0/lines/5/words/14"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "below, and attach a check made out to:", "boundingBox": - [1.0, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "elements": ["#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", "#/readResults/0/lines/6/words/2", "#/readResults/0/lines/6/words/3", - "#/readResults/0/lines/6/words/4", "#/readResults/0/lines/6/words/5", "#/readResults/0/lines/6/words/6", - "#/readResults/0/lines/6/words/7"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Rates:", - "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, 1.0, 4.6264], - "elements": ["#/readResults/0/lines/10/words/0"]}, "confidence": 1.0}], "tables": - [{"rows": 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": - 0, "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, - 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], + [1.0139, 2.8083, 7.3458, 2.8083, 7.3458, 2.9286, 1.0139, 2.9286], "words": + [{"text": "Maple", "boundingBox": [1.0139, 2.8035, 1.4236, 2.8035, 1.4236, + 2.9479, 1.0139, 2.9479]}, {"text": "City,", "boundingBox": [1.4764, 2.809, + 1.7569, 2.809, 1.7569, 2.9479, 1.4764, 2.9479]}, {"text": "Massachusetts.", + "boundingBox": [1.8194, 2.8035, 2.8375, 2.8035, 2.8375, 2.9198, 1.8194, 2.9198]}, + {"text": "The", "boundingBox": [2.8875, 2.8035, 3.1333, 2.8035, 3.1333, 2.9198, + 2.8875, 2.9198]}, {"text": "conference", "boundingBox": [3.1833, 2.8028, 3.9306, + 2.8028, 3.9306, 2.9198, 3.1833, 2.9198]}, {"text": "has", "boundingBox": [3.9875, + 2.8035, 4.2014, 2.8035, 4.2014, 2.9198, 3.9875, 2.9198]}, {"text": "sold", + "boundingBox": [4.2528, 2.8035, 4.5111, 2.8035, 4.5111, 2.9198, 4.2528, 2.9198]}, + {"text": "out", "boundingBox": [4.5708, 2.8198, 4.7875, 2.8198, 4.7875, 2.9198, + 4.5708, 2.9198]}, {"text": "of", "boundingBox": [4.8375, 2.8028, 4.9708, 2.8028, + 4.9708, 2.9198, 4.8375, 2.9198]}, {"text": "its", "boundingBox": [5.0167, + 2.809, 5.1597, 2.809, 5.1597, 2.9198, 5.0167, 2.9198]}, {"text": "1,500", + "boundingBox": [5.2167, 2.8101, 5.5764, 2.8101, 5.5764, 2.9417, 5.2167, 2.9417]}, + {"text": "tickets,", "boundingBox": [5.6222, 2.8035, 6.0931, 2.8035, 6.0931, + 2.9417, 5.6222, 2.9417]}, {"text": "with", "boundingBox": [6.1458, 2.8035, + 6.4306, 2.8035, 6.4306, 2.9194, 6.1458, 2.9194]}, {"text": "a", "boundingBox": + [6.4875, 2.8382, 6.5472, 2.8382, 6.5472, 2.9198, 6.4875, 2.9198]}, {"text": + "400", "boundingBox": [6.6014, 2.8101, 6.8444, 2.8101, 6.8444, 2.9198, 6.6014, + 2.9198]}, {"text": "person", "boundingBox": [6.9, 2.8382, 7.3458, 2.8382, + 7.3458, 2.9479, 6.9, 2.9479]}]}, {"text": "waitlist. Vendor applications are + being accepted through Feb 28, 2020. Please fill in the form", "boundingBox": + [1.0042, 3.0259, 7.2486, 3.0259, 7.2486, 3.1513, 1.0042, 3.1513], "words": + [{"text": "waitlist.", "boundingBox": [1.0042, 3.0236, 1.5194, 3.0236, 1.5194, + 3.1396, 1.0042, 3.1396]}, {"text": "Vendor", "boundingBox": [1.5736, 3.024, + 2.0653, 3.024, 2.0653, 3.1396, 1.5736, 3.1396]}, {"text": "applications", + "boundingBox": [2.1139, 3.0236, 2.9139, 3.0236, 2.9139, 3.1677, 2.1139, 3.1677]}, + {"text": "are", "boundingBox": [2.9681, 3.0583, 3.1722, 3.0583, 3.1722, 3.1396, + 2.9681, 3.1396]}, {"text": "being", "boundingBox": [3.2306, 3.0236, 3.5889, + 3.0236, 3.5889, 3.1677, 3.2306, 3.1677]}, {"text": "accepted", "boundingBox": + [3.6389, 3.024, 4.2333, 3.024, 4.2333, 3.1677, 3.6389, 3.1677]}, {"text": + "through", "boundingBox": [4.2861, 3.0236, 4.8125, 3.0236, 4.8125, 3.1677, + 4.2861, 3.1677]}, {"text": "Feb", "boundingBox": [4.8819, 3.0236, 5.1125, + 3.0236, 5.1125, 3.1399, 4.8819, 3.1399]}, {"text": "28,", "boundingBox": [5.1625, + 3.0299, 5.3611, 3.0299, 5.3611, 3.1622, 5.1625, 3.1622]}, {"text": "2020.", + "boundingBox": [5.4125, 3.0299, 5.7778, 3.0299, 5.7778, 3.1399, 5.4125, 3.1399]}, + {"text": "Please", "boundingBox": [5.8403, 3.0236, 6.2542, 3.0236, 6.2542, + 3.1396, 5.8403, 3.1396]}, {"text": "fill", "boundingBox": [6.3028, 3.0229, + 6.4542, 3.0229, 6.4542, 3.1385, 6.3028, 3.1385]}, {"text": "in", "boundingBox": + [6.5125, 3.0288, 6.6167, 3.0288, 6.6167, 3.1385, 6.5125, 3.1385]}, {"text": + "the", "boundingBox": [6.6681, 3.0236, 6.8833, 3.0236, 6.8833, 3.1396, 6.6681, + 3.1396]}, {"text": "form", "boundingBox": [6.9319, 3.0229, 7.2486, 3.0229, + 7.2486, 3.1396, 6.9319, 3.1396]}]}, {"text": "below, and attach a check made + out to:", "boundingBox": [1.0125, 3.2485, 3.6597, 3.2485, 3.6597, 3.3638, + 1.0125, 3.3638], "words": [{"text": "below,", "boundingBox": [1.0125, 3.2437, + 1.4458, 3.2437, 1.4458, 3.3819, 1.0125, 3.3819]}, {"text": "and", "boundingBox": + [1.5028, 3.2437, 1.7375, 3.2437, 1.7375, 3.3597, 1.5028, 3.3597]}, {"text": + "attach", "boundingBox": [1.7972, 3.2437, 2.2056, 3.2437, 2.2056, 3.3597, + 1.7972, 3.3597]}, {"text": "a", "boundingBox": [2.2611, 3.2785, 2.3222, 3.2785, + 2.3222, 3.3597, 2.2611, 3.3597]}, {"text": "check", "boundingBox": [2.3792, + 3.2437, 2.7528, 3.2437, 2.7528, 3.3597, 2.3792, 3.3597]}, {"text": "made", + "boundingBox": [2.8083, 3.2437, 3.1694, 3.2437, 3.1694, 3.3597, 2.8083, 3.3597]}, + {"text": "out", "boundingBox": [3.225, 3.2597, 3.4417, 3.2597, 3.4417, 3.3597, + 3.225, 3.3597]}, {"text": "to:", "boundingBox": [3.4875, 3.2597, 3.6597, 3.2597, + 3.6597, 3.3597, 3.4875, 3.3597]}]}, {"text": "Contoso Ltd.", "boundingBox": + [1.0069, 3.5781, 1.8431, 3.5781, 1.8431, 3.6896, 1.0069, 3.6896], "words": + [{"text": "Contoso", "boundingBox": [1.0069, 3.5802, 1.5556, 3.5802, 1.5556, + 3.6896, 1.0069, 3.6896]}, {"text": "Ltd.", "boundingBox": [1.6125, 3.574, + 1.8431, 3.574, 1.8431, 3.6896, 1.6125, 3.6896]}]}, {"text": "2345 Dogwood + Lane", "boundingBox": [1.0097, 3.7973, 2.3764, 3.7973, 2.3764, 3.923, 1.0097, + 3.923], "words": [{"text": "2345", "boundingBox": [1.0097, 3.8, 1.3306, 3.8, + 1.3306, 3.9097, 1.0097, 3.9097]}, {"text": "Dogwood", "boundingBox": [1.3903, + 3.7938, 2.0153, 3.7938, 2.0153, 3.9378, 1.3903, 3.9378]}, {"text": "Lane", + "boundingBox": [2.0792, 3.801, 2.3764, 3.801, 2.3764, 3.9097, 2.0792, 3.9097]}]}, + {"text": "Birch, Kansas 98123", "boundingBox": [1.0139, 4.0181, 2.3375, 4.0181, + 2.3375, 4.1379, 1.0139, 4.1379], "words": [{"text": "Birch,", "boundingBox": + [1.0139, 4.0135, 1.375, 4.0135, 1.375, 4.1517, 1.0139, 4.1517]}, {"text": + "Kansas", "boundingBox": [1.4375, 4.0212, 1.8819, 4.0212, 1.8819, 4.1299, + 1.4375, 4.1299]}, {"text": "98123", "boundingBox": [1.9319, 4.0201, 2.3375, + 4.0201, 2.3375, 4.1299, 1.9319, 4.1299]}]}, {"text": "Rates:", "boundingBox": + [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, 4.5681, 1.0208, 4.5681], "words": + [{"text": "Rates:", "boundingBox": [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, + 4.5681, 1.0208, 4.5681]}]}, {"text": "Package", "boundingBox": [1.0931, 4.6986, + 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427], "words": [{"text": "Package", + "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427]}]}, + {"text": "Included", "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "words": [{"text": "Included", "boundingBox": [2.7125, + 4.6986, 3.2708, 4.6986, 3.2708, 4.8146, 2.7125, 4.8146]}]}, {"text": "Price", + "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], + "words": [{"text": "Price", "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, + 6.1514, 4.8146, 5.8375, 4.8146]}]}, {"text": "Gold Sponsor", "boundingBox": + [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, 5.042, 1.0861, 5.042], "words": [{"text": + "Gold", "boundingBox": [1.0861, 4.9087, 1.3847, 4.9087, 1.3847, 5.0247, 1.0861, + 5.0247]}, {"text": "Sponsor", "boundingBox": [1.4417, 4.9149, 1.9833, 4.9149, + 1.9833, 5.0528, 1.4417, 5.0528]}]}, {"text": "Full booth", "boundingBox": + [3.2139, 4.917, 3.8722, 4.917, 3.8722, 5.033, 3.2139, 5.033], "words": [{"text": + "Full", "boundingBox": [3.2139, 4.917, 3.4292, 4.917, 3.4292, 5.033, 3.2139, + 5.033]}, {"text": "booth", "boundingBox": [3.4917, 4.917, 3.8722, 4.917, 3.8722, + 5.033, 3.4917, 5.033]}]}, {"text": "$1,500", "boundingBox": [5.8319, 4.8976, + 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "words": [{"text": "$1,500", + "boundingBox": [5.8319, 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469]}]}, + {"text": "Pre-keynote thank you", "boundingBox": [3.2139, 5.1352, 4.7264, + 5.1352, 4.7264, 5.2663, 3.2139, 5.2663], "words": [{"text": "Pre-keynote", + "boundingBox": [3.2139, 5.1302, 4.0181, 5.1302, 4.0181, 5.2743, 3.2139, 5.2743]}, + {"text": "thank", "boundingBox": [4.0667, 5.1302, 4.4472, 5.1302, 4.4472, + 5.2462, 4.0667, 5.2462]}, {"text": "you", "boundingBox": [4.4903, 5.1649, + 4.7264, 5.1649, 4.7264, 5.2743, 4.4903, 5.2743]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 5.359, 4.2097, 5.359, 4.2097, 5.4801, 3.2139, 5.4801], + "words": [{"text": "Logo", "boundingBox": [3.2139, 5.3497, 3.5167, 5.3497, + 3.5167, 5.4861, 3.2139, 5.4861]}, {"text": "on", "boundingBox": [3.5681, 5.3767, + 3.7236, 5.3767, 3.7236, 5.458, 3.5681, 5.458]}, {"text": "poster", "boundingBox": + [3.7889, 5.358, 4.2097, 5.358, 4.2097, 5.4861, 3.7889, 5.4861]}]}, {"text": + "Full page ad in program guide", "boundingBox": [3.2139, 5.5714, 5.2014, 5.5714, + 5.2014, 5.6885, 3.2139, 5.6885], "words": [{"text": "Full", "boundingBox": + [3.2139, 5.5552, 3.4292, 5.5552, 3.4292, 5.6712, 3.2139, 5.6712]}, {"text": + "page", "boundingBox": [3.4917, 5.5899, 3.7986, 5.5899, 3.7986, 5.6993, 3.4917, + 5.6993]}, {"text": "ad", "boundingBox": [3.8514, 5.5556, 3.9986, 5.5556, 3.9986, + 5.6712, 3.8514, 5.6712]}, {"text": "in", "boundingBox": [4.0597, 5.5604, 4.1625, + 5.5604, 4.1625, 5.6701, 4.0597, 5.6701]}, {"text": "program", "boundingBox": + [4.225, 5.5899, 4.7833, 5.5899, 4.7833, 5.6993, 4.225, 5.6993]}, {"text": + "guide", "boundingBox": [4.8361, 5.5556, 5.2014, 5.5556, 5.2014, 5.6993, 4.8361, + 5.6993]}]}, {"text": "Silver Sponsor", "boundingBox": [1.0833, 5.982, 2.0333, + 5.982, 2.0333, 6.1098, 1.0833, 6.1098], "words": [{"text": "Silver", "boundingBox": + [1.0833, 5.9785, 1.4444, 5.9785, 1.4444, 6.0948, 1.0833, 6.0948]}, {"text": + "Sponsor", "boundingBox": [1.4903, 5.9851, 2.0333, 5.9851, 2.0333, 6.1229, + 1.4903, 6.1229]}]}, {"text": "Full booth", "boundingBox": [3.2139, 5.9868, + 3.8722, 5.9868, 3.8722, 6.1031, 3.2139, 6.1031], "words": [{"text": "Full", + "boundingBox": [3.2139, 5.9868, 3.4292, 5.9868, 3.4292, 6.1031, 3.2139, 6.1031]}, + {"text": "booth", "boundingBox": [3.4917, 5.9868, 3.8722, 5.9868, 3.8722, + 6.1031, 3.4917, 6.1031]}]}, {"text": "$1,200", "boundingBox": [5.8319, 5.9677, + 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "words": [{"text": "$1,200", + "boundingBox": [5.8319, 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167]}]}, + {"text": "Post-keynote thank you", "boundingBox": [3.2139, 6.2033, 4.7931, + 6.2033, 4.7931, 6.335, 3.2139, 6.335], "words": [{"text": "Post-keynote", + "boundingBox": [3.2139, 6.1986, 4.0875, 6.1986, 4.0875, 6.3427, 3.2139, 6.3427]}, + {"text": "thank", "boundingBox": [4.1347, 6.1986, 4.5153, 6.1986, 4.5153, + 6.3146, 4.1347, 6.3146]}, {"text": "you", "boundingBox": [4.5583, 6.2333, + 4.7931, 6.2333, 4.7931, 6.3427, 4.5583, 6.3427]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 6.4274, 4.2097, 6.4274, 4.2097, 6.5485, 3.2139, 6.5485], + "words": [{"text": "Logo", "boundingBox": [3.2139, 6.4181, 3.5167, 6.4181, + 3.5167, 6.5545, 3.2139, 6.5545]}, {"text": "on", "boundingBox": [3.5681, 6.4451, + 3.7236, 6.4451, 3.7236, 6.5264, 3.5681, 6.5264]}, {"text": "poster", "boundingBox": + [3.7889, 6.4264, 4.2097, 6.4264, 4.2097, 6.5545, 3.7889, 6.5545]}]}, {"text": + "Half page ad in program guide", "boundingBox": [3.2139, 6.6397, 5.2306, 6.6397, + 5.2306, 6.7569, 3.2139, 6.7569], "words": [{"text": "Half", "boundingBox": + [3.2139, 6.6229, 3.4736, 6.6229, 3.4736, 6.7396, 3.2139, 6.7396]}, {"text": + "page", "boundingBox": [3.5222, 6.6583, 3.8319, 6.6583, 3.8319, 6.7677, 3.5222, + 6.7677]}, {"text": "ad", "boundingBox": [3.8847, 6.624, 4.0319, 6.624, 4.0319, + 6.7396, 3.8847, 6.7396]}, {"text": "in", "boundingBox": [4.0917, 6.6288, 4.1958, + 6.6288, 4.1958, 6.7385, 4.0917, 6.7385]}, {"text": "program", "boundingBox": + [4.2556, 6.6583, 4.8153, 6.6583, 4.8153, 6.7677, 4.2556, 6.7677]}, {"text": + "guide", "boundingBox": [4.8694, 6.624, 5.2306, 6.624, 5.2306, 6.7677, 4.8694, + 6.7677]}]}, {"text": "Bronze Sponsor", "boundingBox": [1.0931, 6.8407, 2.1361, + 6.8407, 2.1361, 6.9647, 1.0931, 6.9647], "words": [{"text": "Bronze", "boundingBox": + [1.0931, 6.8417, 1.5444, 6.8417, 1.5444, 6.9497, 1.0931, 6.9497]}, {"text": + "Sponsor", "boundingBox": [1.5944, 6.8399, 2.1361, 6.8399, 2.1361, 6.9778, + 1.5944, 6.9778]}]}, {"text": "Full booth", "boundingBox": [3.2139, 6.842, + 3.8722, 6.842, 3.8722, 6.958, 3.2139, 6.958], "words": [{"text": "Full", "boundingBox": + [3.2139, 6.842, 3.4292, 6.842, 3.4292, 6.958, 3.2139, 6.958]}, {"text": "booth", + "boundingBox": [3.4917, 6.842, 3.8722, 6.842, 3.8722, 6.958, 3.4917, 6.958]}]}, + {"text": "$1,000", "boundingBox": [5.8319, 6.8226, 6.2833, 6.8226, 6.2833, + 6.9719, 5.8319, 6.9719], "words": [{"text": "$1,000", "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719]}]}, {"text": "Logo + on poster", "boundingBox": [3.2139, 7.0724, 4.2097, 7.0724, 4.2097, 7.1933, + 3.2139, 7.1933], "words": [{"text": "Logo", "boundingBox": [3.2139, 7.0628, + 3.5167, 7.0628, 3.5167, 7.1993, 3.2139, 7.1993]}, {"text": "on", "boundingBox": + [3.5681, 7.0899, 3.7236, 7.0899, 3.7236, 7.1712, 3.5681, 7.1712]}, {"text": + "poster", "boundingBox": [3.7889, 7.0715, 4.2097, 7.0715, 4.2097, 7.1993, + 3.7889, 7.1993]}]}, {"text": "50% discount on program guide", "boundingBox": + [3.2083, 7.281, 5.3417, 7.281, 5.3417, 7.3958, 3.2083, 7.3958], "words": [{"text": + "50%", "boundingBox": [3.2083, 7.2715, 3.4819, 7.2715, 3.4819, 7.3844, 3.2083, + 7.3844]}, {"text": "discount", "boundingBox": [3.5333, 7.2674, 4.1014, 7.2674, + 4.1014, 7.383, 3.5333, 7.383]}, {"text": "on", "boundingBox": [4.1514, 7.3017, + 4.3069, 7.3017, 4.3069, 7.383, 4.1514, 7.383]}, {"text": "program", "boundingBox": + [4.3681, 7.3017, 4.925, 7.3017, 4.925, 7.4111, 4.3681, 7.4111]}, {"text": + "guide", "boundingBox": [4.9806, 7.2674, 5.3417, 7.2674, 5.3417, 7.4111, 4.9806, + 7.4111]}]}, {"text": "advertisements", "boundingBox": [3.2069, 7.4705, 4.2431, + 7.4705, 4.2431, 7.5865, 3.2069, 7.5865], "words": [{"text": "advertisements", + "boundingBox": [3.2069, 7.4705, 4.2431, 7.4705, 4.2431, 7.5865, 3.2069, 7.5865]}]}, + {"text": "Full Booth", "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "words": [{"text": "Full", "boundingBox": [1.0931, + 7.6819, 1.3083, 7.6819, 1.3083, 7.7979, 1.0931, 7.7979]}, {"text": "Booth", + "boundingBox": [1.3722, 7.6819, 1.7542, 7.6819, 1.7542, 7.7979, 1.3722, 7.7979]}]}, + {"text": "Full booth", "boundingBox": [3.2139, 7.6903, 3.8722, 7.6903, 3.8722, + 7.8063, 3.2139, 7.8063], "words": [{"text": "Full", "boundingBox": [3.2139, + 7.6903, 3.4292, 7.6903, 3.4292, 7.8062, 3.2139, 7.8062]}, {"text": "booth", + "boundingBox": [3.4917, 7.6903, 3.8722, 7.6903, 3.8722, 7.8062, 3.4917, 7.8062]}]}, + {"text": "$600", "boundingBox": [5.8319, 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, + 5.8319, 7.8167], "words": [{"text": "$600", "boundingBox": [5.8319, 7.6712, + 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167]}]}, {"text": "50% discount + on program guide", "boundingBox": [3.2083, 7.9159, 5.3417, 7.9159, 5.3417, + 8.0309, 3.2083, 8.0309], "words": [{"text": "50%", "boundingBox": [3.2083, + 7.9066, 3.4819, 7.9066, 3.4819, 8.0194, 3.2083, 8.0194]}, {"text": "discount", + "boundingBox": [3.5333, 7.9021, 4.1014, 7.9021, 4.1014, 8.0181, 3.5333, 8.0181]}, + {"text": "on", "boundingBox": [4.1514, 7.9368, 4.3069, 7.9368, 4.3069, 8.0181, + 4.1514, 8.0181]}, {"text": "program", "boundingBox": [4.3681, 7.9368, 4.925, + 7.9368, 4.925, 8.0462, 4.3681, 8.0462]}, {"text": "guide", "boundingBox": + [4.9806, 7.9021, 5.3417, 7.9021, 5.3417, 8.0462, 4.9806, 8.0462]}]}, {"text": + "advertisements", "boundingBox": [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, + 8.2212, 3.2069, 8.2212], "words": [{"text": "advertisements", "boundingBox": + [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, 8.2212, 3.2069, 8.2212]}]}, {"text": + "Half Booth", "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, 8.433, + 1.0931, 8.433], "words": [{"text": "Half", "boundingBox": [1.0931, 8.3163, + 1.3514, 8.3163, 1.3514, 8.433, 1.0931, 8.433]}, {"text": "Booth", "boundingBox": + [1.4028, 8.317, 1.7861, 8.317, 1.7861, 8.433, 1.4028, 8.433]}]}, {"text": + "Full booth", "boundingBox": [3.2139, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, + 3.2139, 8.4413], "words": [{"text": "Full", "boundingBox": [3.2139, 8.3253, + 3.4292, 8.3253, 3.4292, 8.4413, 3.2139, 8.4413]}, {"text": "booth", "boundingBox": + [3.4917, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, 3.4917, 8.4413]}]}, {"text": + "$350", "boundingBox": [5.8319, 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, + 8.4514], "words": [{"text": "$350", "boundingBox": [5.8319, 8.3062, 6.1583, + 8.3062, 6.1583, 8.4514, 5.8319, 8.4514]}]}, {"text": "25% discount on program + guide", "boundingBox": [3.2097, 8.5508, 5.3417, 8.5508, 5.3417, 8.6659, 3.2097, + 8.6659], "words": [{"text": "25%", "boundingBox": [3.2097, 8.5417, 3.4819, + 8.5417, 3.4819, 8.6545, 3.2097, 8.6545]}, {"text": "discount", "boundingBox": + [3.5333, 8.5372, 4.1014, 8.5372, 4.1014, 8.6531, 3.5333, 8.6531]}, {"text": + "on", "boundingBox": [4.1514, 8.5715, 4.3069, 8.5715, 4.3069, 8.6531, 4.1514, + 8.6531]}, {"text": "program", "boundingBox": [4.3681, 8.5715, 4.925, 8.5715, + 4.925, 8.6812, 4.3681, 8.6812]}, {"text": "guide", "boundingBox": [4.9806, + 8.5372, 5.3417, 8.5372, 5.3417, 8.6812, 4.9806, 8.6812]}]}, {"text": "advertisements", + "boundingBox": [3.2069, 8.7406, 4.2431, 8.7406, 4.2431, 8.8563, 3.2069, 8.8563], + "words": [{"text": "advertisements", "boundingBox": [3.2069, 8.7406, 4.2431, + 8.7406, 4.2431, 8.8562, 3.2069, 8.8562]}]}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": + [6.1278, 1.0688, 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": + "Vendor", "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, + 6.1278, 1.2403]}, {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, + 7.1514, 1.2392, 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, + 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": + "121", "boundingBox": [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, + 1.2392]}]}, {"text": "Vendor Details:", "boundingBox": [1.0042, 2.1774, 2.35, + 2.1774, 2.35, 2.3316, 1.0042, 2.3316], "words": [{"text": "Vendor", "boundingBox": + [1.0042, 2.1778, 1.65, 2.1778, 1.65, 2.3316, 1.0042, 2.3316]}, {"text": "Details:", + "boundingBox": [1.7236, 2.1771, 2.35, 2.1771, 2.35, 2.3316, 1.7236, 2.3316]}]}, + {"text": "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, + 2.1375, 2.9019, 1.0069, 2.9019], "words": [{"text": "Company", "boundingBox": + [1.0069, 2.775, 1.6514, 2.775, 1.6514, 2.9125, 1.0069, 2.9125]}, {"text": + "Name:", "boundingBox": [1.7014, 2.7764, 2.1375, 2.7764, 2.1375, 2.8851, 1.7014, + 2.8851]}]}, {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "words": [{"text": "Southridge", + "boundingBox": [2.1917, 2.7688, 2.9181, 2.7688, 2.9181, 2.9128, 2.1917, 2.9128]}, + {"text": "Video", "boundingBox": [2.9694, 2.7688, 3.3472, 2.7688, 3.3472, + 2.8847, 2.9694, 2.8847]}]}, {"text": "Contact:", "boundingBox": [1.0069, 3.1049, + 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149], "words": [{"text": "Contact:", + "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149]}]}, + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "words": [{"text": "Jamie@southridgevideo.com", + "boundingBox": [1.6208, 3.0986, 3.5764, 3.0986, 3.5764, 3.2427, 1.6208, 3.2427]}]}, + {"text": "Preferred Package:", "boundingBox": [1.0111, 3.4298, 2.2972, 3.4298, + 2.2972, 3.5589, 1.0111, 3.5589], "words": [{"text": "Preferred", "boundingBox": + [1.0111, 3.4295, 1.65, 3.4295, 1.65, 3.5465, 1.0111, 3.5465]}, {"text": "Package:", + "boundingBox": [1.7083, 3.4302, 2.2972, 3.4302, 2.2972, 3.5743, 1.7083, 3.5743]}]}, + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "words": [{"text": "Gold", "boundingBox": [2.3556, 3.4302, + 2.6542, 3.4302, 2.6542, 3.5462, 2.3556, 3.5462]}]}, {"text": "Special Requests:", + "boundingBox": [1.0056, 3.7645, 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], + "words": [{"text": "Special", "boundingBox": [1.0056, 3.7601, 1.475, 3.7601, + 1.475, 3.9042, 1.0056, 3.9042]}, {"text": "Requests:", "boundingBox": [1.5347, + 3.7684, 2.1903, 3.7684, 2.1903, 3.9042, 1.5347, 3.9042]}]}, {"text": "N/a", + "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], + "words": [{"text": "N/a", "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, + 2.4778, 3.8976, 2.2542, 3.8976]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/0/lines/0/words/0", + "#/readResults/0/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": + ["#/readResults/0/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": + "__Address__1", "boundingBox": null, "elements": null}, "value": {"text": + "Contoso Ltd. 2345 Dogwood Lane Birch, Kansas 98123", "boundingBox": [1.0069, + 3.5781, 2.3764, 3.5781, 2.3764, 4.1379, 1.0069, 4.1379], "elements": ["#/readResults/0/lines/7/words/0", + "#/readResults/0/lines/7/words/1", "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", + "#/readResults/0/lines/8/words/2", "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", + "#/readResults/0/lines/9/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": + 0, "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, + 4.8427], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": false}, {"text": "Included", "rowIndex": 0, - "columnIndex": 1, "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, - 4.8583, 2.6986, 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 1, "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], "isHeader": true, "isFooter": false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583], "confidence": + [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "isHeader": true, "isFooter": false}, {"text": "Gold Sponsor", "rowIndex": - 1, "columnIndex": 0, "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, - 5.0681, 1.0778, 5.0681], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, - "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], + 1, "columnIndex": 0, "boundingBox": [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, + 5.042, 1.0861, 5.042], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Pre-keynote thank you Logo on poster Full page ad in program guide", "rowIndex": 1, "columnIndex": - 1, "boundingBox": [3.2, 4.8736, 5.2083, 4.8736, 5.2083, 5.7139, 3.2, 5.7139], + 1, "boundingBox": [3.2139, 4.917, 5.2014, 4.917, 5.2014, 5.6885, 3.2139, 5.6885], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1", "#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2", "#/readResults/0/lines/18/words/0", "#/readResults/0/lines/18/words/1", "#/readResults/0/lines/18/words/2", "#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/19/words/4", "#/readResults/0/lines/19/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.825, - 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], "confidence": 1.0, + {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.8319, + 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "isHeader": false, "isFooter": false}, {"text": "Silver Sponsor", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [1.0833, 5.982, 2.0333, 5.982, 2.0333, + 6.1098, 1.0833, 6.1098], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Post-keynote thank you Logo on poster Half page ad in program guide", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [3.2, 5.9431, 5.2389, 5.9431, 5.2389, 6.7833, 3.2, 6.7833], - "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", + 1, "boundingBox": [3.2139, 5.9868, 5.2306, 5.9868, 5.2306, 6.7569, 3.2139, + 6.7569], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", "#/readResults/0/lines/21/words/1", "#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1", "#/readResults/0/lines/23/words/2", "#/readResults/0/lines/24/words/0", "#/readResults/0/lines/24/words/1", "#/readResults/0/lines/24/words/2", "#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1", "#/readResults/0/lines/25/words/2", "#/readResults/0/lines/25/words/3", "#/readResults/0/lines/25/words/4", "#/readResults/0/lines/25/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.825, - 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, 6.1375], "confidence": 1.0, + {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.8319, + 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "isHeader": false, "isFooter": false}, {"text": "Bronze Sponsor", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, 2.1389, - 6.9931, 1.0778, 6.9931], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [1.0931, 6.8407, 2.1361, 6.8407, 2.1361, + 6.9647, 1.0931, 6.9647], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Logo on poster 50% discount on program guide advertisements", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [3.2, 6.7986, 5.35, 6.7986, 5.35, 7.6292, 3.2, 7.6292], + 1, "boundingBox": [3.2069, 6.842, 5.3417, 6.842, 5.3417, 7.5865, 3.2069, 7.5865], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2", "#/readResults/0/lines/30/words/3", "#/readResults/0/lines/30/words/4", "#/readResults/0/lines/31/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931], "confidence": 1.0, + {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "isHeader": false, "isFooter": false}, {"text": "Full Booth", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, - 7.8417, 1.0778, 7.8417], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0", "#/readResults/0/lines/32/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth 50% discount on program guide advertisements", "rowIndex": 4, "columnIndex": 1, "boundingBox": - [3.2, 7.6472, 5.35, 7.6472, 5.35, 8.2639, 3.2, 8.2639], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", + [3.2069, 7.6903, 5.3417, 7.6903, 5.3417, 8.2212, 3.2069, 8.2212], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", "#/readResults/0/lines/33/words/1", "#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1", "#/readResults/0/lines/35/words/2", "#/readResults/0/lines/35/words/3", "#/readResults/0/lines/35/words/4", "#/readResults/0/lines/36/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": - false, "isFooter": false}, {"text": "Half Booth", "rowIndex": 5, "columnIndex": - 0, "boundingBox": [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, - 8.4764], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0", - "#/readResults/0/lines/37/words/1"], "isHeader": false, "isFooter": false}, - {"text": "Full booth 25% discount on program guide advertisements", "rowIndex": - 5, "columnIndex": 1, "boundingBox": [3.2, 8.2819, 5.35, 8.2819, 5.35, 8.9, - 3.2, 8.9], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", + {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.8319, + 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], + "isHeader": false, "isFooter": false}, {"text": "Half Booth", "rowIndex": + 5, "columnIndex": 0, "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, + 8.433, 1.0931, 8.433], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/37/words/0", "#/readResults/0/lines/37/words/1"], + "isHeader": false, "isFooter": false}, {"text": "Full booth 25% discount on + program guide advertisements", "rowIndex": 5, "columnIndex": 1, "boundingBox": + [3.2069, 8.3253, 5.3417, 8.3253, 5.3417, 8.8563, 3.2069, 8.8563], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", "#/readResults/0/lines/38/words/1", "#/readResults/0/lines/40/words/0", "#/readResults/0/lines/40/words/1", "#/readResults/0/lines/40/words/2", "#/readResults/0/lines/40/words/3", "#/readResults/0/lines/40/words/4", "#/readResults/0/lines/41/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.825, 8.2736, - 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": - false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": - [{"key": {"text": "Vendor #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, - 7.1667, 1.2708, 6.1389, 1.2708], "elements": ["#/readResults/1/lines/0/words/0", + {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.8319, + 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, 8.4514], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/1/lines/0/words/0", "#/readResults/1/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": - [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], "elements": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": ["#/readResults/1/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Company Name:", "boundingBox": [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, - 1.0028, 2.9278], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, - "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7611, 3.3542, - 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], "elements": ["#/readResults/1/lines/4/words/0", + "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, 2.1375, 2.9019, + 1.0069, 2.9019], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, + "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "elements": ["#/readResults/1/lines/4/words/0", "#/readResults/1/lines/4/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, - 1.0069, 3.2472], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": - {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, 3.5667, - 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], "elements": ["#/readResults/1/lines/6/words/0"]}, + "Contact:", "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, + 1.0069, 3.2149], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "elements": ["#/readResults/1/lines/6/words/0"]}, "confidence": 0.53}, {"key": {"text": "Preferred Package:", "boundingBox": - [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], "elements": + [1.0111, 3.4298, 2.2972, 3.4298, 2.2972, 3.5589, 1.0111, 3.5589], "elements": ["#/readResults/1/lines/7/words/0", "#/readResults/1/lines/7/words/1"]}, "value": - {"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, - 2.35, 3.5806], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": - 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0167, 3.7611, - 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "elements": ["#/readResults/1/lines/9/words/0", + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": + 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0056, 3.7645, + 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], "elements": ["#/readResults/1/lines/9/words/0", "#/readResults/1/lines/9/words/1"]}, "value": {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "elements": - ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}, {"key": {"text": - "__Tokens__1", "boundingBox": null, "elements": null}, "value": {"text": "Vendor - Details:", "boundingBox": [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, - 2.3722], "elements": ["#/readResults/1/lines/2/words/0", "#/readResults/1/lines/2/words/1"]}, - "confidence": 1.0}], "tables": [], "clusterId": 1}], "documentResults": [], - "errors": []}}' + [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], "elements": + ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}], "tables": [], + "clusterId": 1}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - ffadc2a9-7e65-4f2a-bd59-ae5243c94e30 + - 7c068639-a782-47ab-8570-d341fabb4ecf content-length: - - '36398' + - '32950' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:33 GMT + - Mon, 14 Sep 2020 20:14:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '20' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml index c5707e673626..709533992d72 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - a51f79d3-42e1-42e7-a7f1-90b5d0111b04 + - 007717fc-93db-4544-9fdc-0a026bc7000a content-length: - '0' date: - - Fri, 10 Jul 2020 18:45:33 GMT + - Mon, 14 Sep 2020 20:14:14 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '37' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c7694185-4e03-4b34-85ce-d979024821b5", "status": - "creating", "createdDateTime": "2020-07-10T18:45:34Z", "lastUpdatedDateTime": - "2020-07-10T18:45:34Z"}}' + string: '{"modelInfo": {"modelId": "6efc8ec7-2eb7-4499-99d7-4d08e85bd17e", "status": + "creating", "createdDateTime": "2020-09-14T20:14:15Z", "lastUpdatedDateTime": + "2020-09-14T20:14:15Z"}}' headers: apim-request-id: - - 767131ab-1ab1-48dd-a0b9-c568271b5d6a + - fe45a5c0-9745-4527-9d72-6b703b1a18c5 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:39 GMT + - Mon, 14 Sep 2020 20:14:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '13' status: code: 200 message: OK @@ -84,31 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c7694185-4e03-4b34-85ce-d979024821b5", "status": - "ready", "createdDateTime": "2020-07-10T18:45:34Z", "lastUpdatedDateTime": - "2020-07-10T18:45:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"modelInfo": {"modelId": "6efc8ec7-2eb7-4499-99d7-4d08e85bd17e", "status": + "creating", "createdDateTime": "2020-09-14T20:14:15Z", "lastUpdatedDateTime": + "2020-09-14T20:14:15Z"}}' headers: apim-request-id: - - 971c0c5e-3fb0-4188-8540-061caa471856 + - 48946184-99d1-4cbd-8a86-d45b1e5344ea content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:45:45 GMT + - Mon, 14 Sep 2020 20:14:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,115 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '153' - status: - code: 200 - message: OK -- request: - body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '160' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyze?includeTextDetails=false - response: - body: - string: '' - headers: - apim-request-id: - - a41abe21-d105-4959-af2d-8dcb43499524 - content-length: - - '0' - date: - - Fri, 10 Jul 2020 18:45:45 GMT - operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '214' - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' - headers: - apim-request-id: - - 52ef1fc3-0096-4f45-901d-20f38e25ae77 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:45:50 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' - headers: - apim-request-id: - - 63c99fc9-1005-4aed-8f0f-ddbcac782c87 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:45:55 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '46' + - '15' status: code: 200 message: OK @@ -238,94 +120,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e?includeKeys=true response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' - headers: - apim-request-id: - - 0d09b0a5-7d6d-4abe-bbef-ef5a86b99660 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:00 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' - headers: - apim-request-id: - - 07db740f-c62a-43ab-9ba7-45a0de361db0 - content-length: - - '109' - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:05 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf - response: - body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' + string: '{"modelInfo": {"modelId": "6efc8ec7-2eb7-4499-99d7-4d08e85bd17e", "status": + "ready", "createdDateTime": "2020-09-14T20:14:15Z", "lastUpdatedDateTime": + "2020-09-14T20:14:28Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 5102d0a7-5118-4adf-b181-f8a72d8eb2d6 - content-length: - - '109' + - f48b5d25-0e5f-4137-8f13-3d39b621bb26 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:10 GMT + - Mon, 14 Sep 2020 20:14:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: @@ -334,40 +157,43 @@ interactions: code: 200 message: OK - request: - body: null + body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '160' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e/analyze?includeTextDetails=false response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:45:45Z"}' + string: '' headers: apim-request-id: - - a2a3f488-233f-488f-a436-3da4ea62d201 + - f669f76a-1ea6-4dc2-894d-d20ee2253d55 content-length: - - '109' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Fri, 10 Jul 2020 18:46:18 GMT + - Mon, 14 Sep 2020 20:14:30 GMT + operation-location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e/analyzeresults/50cc0250-5816-498a-9e22-292cacc6db82 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2377' + - '46' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -378,28 +204,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e/analyzeresults/50cc0250-5816-498a-9e22-292cacc6db82 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:45:45Z", "lastUpdatedDateTime": - "2020-07-10T18:46:06Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:14:31Z", "lastUpdatedDateTime": + "2020-09-14T20:14:31Z", "analyzeResult": null}' headers: apim-request-id: - - 506ea220-a426-41a0-bf27-1e6bb198a324 + - dfd4a3b4-944b-44ba-a69c-893b823f4544 content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:24 GMT + - Mon, 14 Sep 2020 20:14:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '13' status: code: 200 message: OK @@ -413,175 +239,154 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c7694185-4e03-4b34-85ce-d979024821b5/analyzeresults/2f016343-2ced-4ed3-bf89-bffb77d4ffdf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6efc8ec7-2eb7-4499-99d7-4d08e85bd17e/analyzeresults/50cc0250-5816-498a-9e22-292cacc6db82 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:45:45Z", - "lastUpdatedDateTime": "2020-07-10T18:46:26Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:31Z", + "lastUpdatedDateTime": "2020-09-14T20:14:37Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": null}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - null}, "value": {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, - 351.0, 528.0, 381.0, 371.0, 381.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, - 420.0, 167.0, 420.0], "elements": null}, "value": {"text": "www.herolimited.com", - "boundingBox": [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0], "elements": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": null}, "value": {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, + 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": null}, "value": + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "elements": null}, "confidence": 1.0}, {"key": + {"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0], "elements": null}, "value": {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": null}, "value": - {"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, - 451.0, 1168.0, 451.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": null}, "value": {"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, - 460.0, 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": null}, "value": - {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, - 1282.0, 491.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Vendor - Name:", "boundingBox": [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], - "elements": null}, "value": {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": null}, "confidence": - 0.7}, {"key": {"text": "Company Name:", "boundingBox": [162.0, 646.0, 373.0, - 646.0, 373.0, 678.0, 162.0, 678.0], "elements": null}, "value": {"text": "Higgly - Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, 628.0, 678.0, 379.0, - 678.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", - "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": - null}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [615.0, 723.0, - 707.0, 723.0, 707.0, 752.0, 615.0, 752.0], "elements": null}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", - "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, 166.0, 881.0], "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, - 852.0, 445.0, 881.0, 258.0, 881.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, - 378.0, 919.0, 169.0, 919.0], "elements": null}, "value": {"text": "Jupiter - Book Supply", "boundingBox": [385.0, 888.0, 624.0, 888.0, 624.0, 919.0, 385.0, + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": null}, "value": + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "elements": null}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": null}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": + [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "elements": null}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": null}, "confidence": 0.7}, {"key": + {"text": "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, + 677.0, 160.0, 677.0], "elements": null}, "value": {"text": "Higgly Wiggly + Books", "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], + "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": null}, + "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": null}, + "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [613.0, 722.0, + 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "elements": null}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", + "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "elements": + null}, "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "elements": null}, "confidence": 0.53}, + {"key": {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, + 374.0, 919.0, 164.0, 919.0], "elements": null}, "value": {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, 919.0], "elements": null}, "confidence": 0.53}, {"key": {"text": "Address:", - "boundingBox": [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": null}, "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": - [283.0, 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": null}, + [279.0, 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": null}, "value": {"text": - "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, - 857.0, 992.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", - "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], - "elements": null}, "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, - 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, - 1293.0, 1643.0, 1242.0, 1643.0], "elements": null}, "value": {"text": "$4.00", - "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0], + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": null}, "value": {"text": + "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, + 855.0, 990.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", + "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], + "elements": null}, "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, + 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, + 1296.0, 1643.0, 1238.0, 1643.0], "elements": null}, "value": {"text": "$4.00", + "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": - [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": - null}, "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, - 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, 1797.0, - 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": null}, "value": + [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": + null}, "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, + 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, 1796.0, + 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": null}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer - you 25% off you next total purchase.", "boundingBox": [170.0, 1880.0, 1511.0, - 1880.0, 1511.0, 1992.0, 170.0, 1992.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": null}, "value": - {"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 141.0, 168.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__3", - "boundingBox": null, "elements": null}, "value": {"text": "Shipped To", "boundingBox": - [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped From", "boundingBox": [169.0, 784.0, 445.0, - 784.0, 445.0, 831.0, 169.0, 831.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": null}, "value": - {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, - 1708.0, 485.0, 1708.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__7", - "boundingBox": null, "elements": null}, "value": {"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": - null}, "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": - [{"text": "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + you 25% off you next total purchase.", "boundingBox": [169.0, 1880.0, 1511.0, + 1880.0, 1511.0, 1992.0, 169.0, 1992.0], "elements": null}, "confidence": 0.53}], + "tables": [{"rows": 5, "columns": 4, "cells": [{"text": "Details", "rowIndex": + 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, + 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Quantity", + "rowIndex": 0, "columnIndex": 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, + 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "Unit + Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, + 1047.0, 1269.0, 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, + "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": + "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": [1383.0, 1047.0, + 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, - {"text": "Quantity", "rowIndex": 0, "columnIndex": 1, "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Unit Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": - [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, - 1098.0, 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": [172.0, + 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "confidence": 1.0, "rowSpan": + 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1243.0, - 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1241.0, + 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": 3, "boundingBox": - [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "confidence": + [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": 2, "columnIndex": 0, "boundingBox": - [172.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 172.0, 1162.0], "confidence": + [170.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [862.0, - 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [861.0, + 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": 3, "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0], "confidence": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": 3, "columnIndex": 0, "boundingBox": - [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 172.0, 1205.0], "confidence": + [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": 1, "boundingBox": [863.0, - 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], "confidence": 1.0, "rowSpan": + 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": 3, "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0], "confidence": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": 4, "columnIndex": 0, "boundingBox": - [171.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 171.0, 1248.0], "confidence": + [170.0, 1222.0, 429.0, 1222.0, 429.0, 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, - 1221.0, 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, + 1223.0, 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1242.0, - 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1239.0, + 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": 3, "boundingBox": - [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "confidence": + [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - e8bc2bfd-0a50-45b5-ac16-4e2df8420f55 + - d4e1a2ca-937a-4964-b3b8-3ae1e11791c5 content-length: - - '11800' + - '10045' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:28 GMT + - Mon, 14 Sep 2020 20:14:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '15' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml index a54ae8130208..a4706ad1d18f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_form_unlabeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 64858f51-7849-4ece-bae0-29b245aad883 + - d231a040-8801-47df-96f8-2ab8d3439e6a content-length: - '0' date: - - Fri, 10 Jul 2020 18:46:29 GMT + - Mon, 14 Sep 2020 20:14:18 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '98' + - '41' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:29Z"}}' + string: '{"modelInfo": {"modelId": "e477f737-e58e-428f-adde-2329badfc3d3", "status": + "creating", "createdDateTime": "2020-09-14T20:14:19Z", "lastUpdatedDateTime": + "2020-09-14T20:14:19Z"}}' headers: apim-request-id: - - caaba99f-16ac-4122-8aa5-937b5494bc69 + - 90a78efa-e784-4f6b-ae60-8f21b0378df2 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:35 GMT + - Mon, 14 Sep 2020 20:14:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,43 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:29Z"}}' - headers: - apim-request-id: - - 10e96b69-904a-4760-bdea-5b8406c59a12 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:39 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '146' + - '17' status: code: 200 message: OK @@ -120,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:29Z"}}' + string: '{"modelInfo": {"modelId": "e477f737-e58e-428f-adde-2329badfc3d3", "status": + "creating", "createdDateTime": "2020-09-14T20:14:19Z", "lastUpdatedDateTime": + "2020-09-14T20:14:19Z"}}' headers: apim-request-id: - - 7dd60152-14c2-4803-882e-a03975fe0c9b + - dff442de-712b-4b5b-929a-c85b5670030f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:44 GMT + - Mon, 14 Sep 2020 20:14:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '16' status: code: 200 message: OK @@ -156,21 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:29Z"}}' + string: '{"modelInfo": {"modelId": "e477f737-e58e-428f-adde-2329badfc3d3", "status": + "ready", "createdDateTime": "2020-09-14T20:14:19Z", "lastUpdatedDateTime": + "2020-09-14T20:14:32Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 06f69cf6-225b-4498-b802-580c50081081 + - 33c113b0-d4eb-4ab0-bfe9-6f766f94a88b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:46:50 GMT + - Mon, 14 Sep 2020 20:14:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -178,82 +152,48 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '19' status: code: 200 message: OK - request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:29Z"}}' - headers: - apim-request-id: - - b4d38d8d-8641-4a0c-922e-2d93651b4305 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:46:55 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '16' - status: - code: 200 - message: OK -- request: - body: null + body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '160' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3/analyze?includeTextDetails=true response: body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "creating", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:29Z"}}' + string: '' headers: apim-request-id: - - 4bc9dee8-7132-4678-bc39-f38ee216c75f - content-type: - - application/json; charset=utf-8 + - 1dffba16-67fe-40b8-875e-9e83ece7169a + content-length: + - '0' date: - - Fri, 10 Jul 2020 18:47:00 GMT + - Mon, 14 Sep 2020 20:14:33 GMT + operation-location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3/analyzeresults/cbc1f648-817e-4f1b-8e2c-3fa8c81d44de strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '44' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -264,80 +204,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3/analyzeresults/cbc1f648-817e-4f1b-8e2c-3fa8c81d44de response: body: - string: '{"modelInfo": {"modelId": "755051cc-725e-48be-b003-517c8ab466f6", "status": - "ready", "createdDateTime": "2020-07-10T18:46:29Z", "lastUpdatedDateTime": - "2020-07-10T18:46:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:14:34Z", "lastUpdatedDateTime": + "2020-09-14T20:14:35Z", "analyzeResult": null}' headers: apim-request-id: - - 373e343c-102b-41e8-a318-f615a9e29411 + - 4f927a90-b7a0-4d38-914f-a57e2503fac8 + content-length: + - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:05 GMT + - Mon, 14 Sep 2020 20:14:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '49' + - '17' status: code: 200 message: OK -- request: - body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '160' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6/analyze?includeTextDetails=true - response: - body: - string: '' - headers: - apim-request-id: - - bfece0b3-1897-433f-ac2d-9728e296c1ce - content-length: - - '0' - date: - - Fri, 10 Jul 2020 18:47:06 GMT - operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6/analyzeresults/4f363d92-60ee-4ffc-8957-7f87db6a2917 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '1031' - status: - code: 202 - message: Accepted - request: body: null headers: @@ -348,359 +239,354 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/755051cc-725e-48be-b003-517c8ab466f6/analyzeresults/4f363d92-60ee-4ffc-8957-7f87db6a2917 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e477f737-e58e-428f-adde-2329badfc3d3/analyzeresults/cbc1f648-817e-4f1b-8e2c-3fa8c81d44de response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:07Z", - "lastUpdatedDateTime": "2020-07-10T18:47:12Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:34Z", + "lastUpdatedDateTime": "2020-09-14T20:14:41Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": - [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": - "Purchase", "boundingBox": [141.0, 140.0, 267.0, 140.0, 267.0, 168.0, 141.0, - 168.0]}, {"text": "Order", "boundingBox": [273.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 273.0, 168.0]}]}, {"text": "Hero Limited", "boundingBox": [620.0, 203.0, - 1078.0, 203.0, 1078.0, 271.0, 620.0, 271.0], "words": [{"text": "Hero", "boundingBox": - [620.0, 203.0, 793.0, 203.0, 793.0, 271.0, 620.0, 271.0]}, {"text": "Limited", - "boundingBox": [811.0, 203.0, 1078.0, 203.0, 1078.0, 271.0, 811.0, 271.0]}]}, - {"text": "Purchase Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, - 372.0, 1117.0, 372.0], "words": [{"text": "Purchase", "boundingBox": [1117.0, - 319.0, 1380.0, 319.0, 1380.0, 372.0, 1117.0, 372.0]}, {"text": "Order", "boundingBox": - [1397.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1397.0, 372.0]}]}, {"text": - "Company Phone:", "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, - 167.0, 381.0], "words": [{"text": "Company", "boundingBox": [167.0, 351.0, - 276.0, 351.0, 276.0, 381.0, 167.0, 381.0]}, {"text": "Phone:", "boundingBox": - [283.0, 351.0, 365.0, 351.0, 365.0, 381.0, 283.0, 381.0]}]}, {"text": "555-348-6512", - "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, 381.0, 371.0, 381.0], "words": - [{"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0]}]}, {"text": "Website:", "boundingBox": [167.0, 392.0, - 271.0, 392.0, 271.0, 420.0, 167.0, 420.0], "words": [{"text": "Website:", - "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, 420.0, 167.0, 420.0]}]}, - {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, 392.0, - 530.0, 420.0, 277.0, 420.0], "words": [{"text": "www.herolimited.com", "boundingBox": - [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0]}]}, {"text": "Dated - As:", "boundingBox": [1025.0, 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, - 451.0], "words": [{"text": "Dated", "boundingBox": [1025.0, 418.0, 1111.0, - 418.0, 1111.0, 451.0, 1025.0, 451.0]}, {"text": "As:", "boundingBox": [1117.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1117.0, 451.0]}]}, {"text": "12/20/2020", - "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], - "words": [{"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, - 1319.0, 451.0, 1168.0, 451.0]}]}, {"text": "Email:", "boundingBox": [167.0, - 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0], "words": [{"text": "Email:", - "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0]}]}, - {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, 1275.0, 460.0, - 1275.0, 491.0, 1027.0, 491.0], "words": [{"text": "Purchase", "boundingBox": - [1027.0, 460.0, 1153.0, 460.0, 1153.0, 491.0, 1027.0, 491.0]}, {"text": "Order", - "boundingBox": [1160.0, 460.0, 1241.0, 460.0, 1241.0, 491.0, 1160.0, 491.0]}, - {"text": "#:", "boundingBox": [1248.0, 460.0, 1275.0, 460.0, 1275.0, 491.0, - 1248.0, 491.0]}]}, {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, - 460.0, 1376.0, 491.0, 1282.0, 491.0], "words": [{"text": "948284", "boundingBox": - [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, 1282.0, 491.0]}]}, {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "words": [{"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0]}]}, {"text": "Shipped - To", "boundingBox": [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], - "words": [{"text": "Shipped", "boundingBox": [170.0, 546.0, 343.0, 546.0, - 343.0, 592.0, 170.0, 592.0]}, {"text": "To", "boundingBox": [352.0, 546.0, - 398.0, 546.0, 398.0, 592.0, 352.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": - [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "words": [{"text": - "Vendor", "boundingBox": [162.0, 610.0, 256.0, 610.0, 256.0, 640.0, 162.0, - 640.0]}, {"text": "Name:", "boundingBox": [262.0, 610.0, 346.0, 610.0, 346.0, - 640.0, 262.0, 640.0]}]}, {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "words": [{"text": "Hillary", - "boundingBox": [352.0, 610.0, 435.0, 610.0, 435.0, 640.0, 352.0, 640.0]}, - {"text": "Swank", "boundingBox": [441.0, 610.0, 519.0, 610.0, 519.0, 640.0, - 441.0, 640.0]}]}, {"text": "Company Name:", "boundingBox": [162.0, 646.0, - 373.0, 646.0, 373.0, 678.0, 162.0, 678.0], "words": [{"text": "Company", "boundingBox": - [162.0, 646.0, 283.0, 646.0, 283.0, 678.0, 162.0, 678.0]}, {"text": "Name:", - "boundingBox": [289.0, 646.0, 373.0, 646.0, 373.0, 678.0, 289.0, 678.0]}]}, - {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, - 628.0, 678.0, 379.0, 678.0], "words": [{"text": "Higgly", "boundingBox": [379.0, - 646.0, 457.0, 646.0, 457.0, 678.0, 379.0, 678.0]}, {"text": "Wiggly", "boundingBox": - [463.0, 646.0, 549.0, 646.0, 549.0, 678.0, 463.0, 678.0]}, {"text": "Books", - "boundingBox": [555.0, 646.0, 628.0, 646.0, 628.0, 678.0, 555.0, 678.0]}]}, - {"text": "Address:", "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, - 162.0, 715.0], "words": [{"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0]}]}, {"text": "938 NE Burner Road", - "boundingBox": [279.0, 684.0, 526.0, 684.0, 526.0, 715.0, 279.0, 715.0], "words": - [{"text": "938", "boundingBox": [279.0, 684.0, 326.0, 684.0, 326.0, 715.0, - 279.0, 715.0]}, {"text": "NE", "boundingBox": [332.0, 684.0, 366.0, 684.0, - 366.0, 715.0, 332.0, 715.0]}, {"text": "Burner", "boundingBox": [372.0, 684.0, - 458.0, 684.0, 458.0, 715.0, 372.0, 715.0]}, {"text": "Road", "boundingBox": - [464.0, 684.0, 526.0, 684.0, 526.0, 715.0, 464.0, 715.0]}]}, {"text": "Boulder - City, CO 92848", "boundingBox": [283.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 283.0, 752.0], "words": [{"text": "Boulder", "boundingBox": [283.0, 720.0, - 377.0, 720.0, 377.0, 752.0, 283.0, 752.0]}, {"text": "City,", "boundingBox": - [384.0, 720.0, 437.0, 720.0, 437.0, 752.0, 384.0, 752.0]}, {"text": "CO", - "boundingBox": [443.0, 720.0, 482.0, 720.0, 482.0, 752.0, 443.0, 752.0]}, - {"text": "92848", "boundingBox": [489.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 489.0, 752.0]}]}, {"text": "Phone:", "boundingBox": [615.0, 723.0, 707.0, - 723.0, 707.0, 752.0, 615.0, 752.0], "words": [{"text": "Phone:", "boundingBox": - [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, 752.0]}]}, {"text": "938-294-2949", - "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, 713.0, 752.0], "words": - [{"text": "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, - 752.0, 713.0, 752.0]}]}, {"text": "Shipped From", "boundingBox": [169.0, 784.0, - 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], "words": [{"text": "Shipped", "boundingBox": - [169.0, 784.0, 335.0, 784.0, 335.0, 831.0, 169.0, 831.0]}, {"text": "From", - "boundingBox": [345.0, 784.0, 445.0, 784.0, 445.0, 831.0, 345.0, 831.0]}]}, - {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, - 166.0, 881.0], "words": [{"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, - 852.0, 253.0, 881.0, 166.0, 881.0]}]}, {"text": "Bernie Sanders", "boundingBox": - [258.0, 852.0, 445.0, 852.0, 445.0, 881.0, 258.0, 881.0], "words": [{"text": - "Bernie", "boundingBox": [258.0, 852.0, 341.0, 852.0, 341.0, 881.0, 258.0, - 881.0]}, {"text": "Sanders", "boundingBox": [347.0, 852.0, 445.0, 852.0, 445.0, - 881.0, 347.0, 881.0]}]}, {"text": "Company Name:", "boundingBox": [169.0, - 888.0, 378.0, 888.0, 378.0, 919.0, 169.0, 919.0], "words": [{"text": "Company", - "boundingBox": [169.0, 888.0, 286.0, 888.0, 286.0, 919.0, 169.0, 919.0]}, - {"text": "Name:", "boundingBox": [292.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 292.0, 919.0]}]}, {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, - 624.0, 888.0, 624.0, 919.0, 385.0, 919.0], "words": [{"text": "Jupiter", "boundingBox": - [385.0, 888.0, 470.0, 888.0, 470.0, 919.0, 385.0, 919.0]}, {"text": "Book", - "boundingBox": [477.0, 888.0, 541.0, 888.0, 541.0, 919.0, 477.0, 919.0]}, - {"text": "Supply", "boundingBox": [547.0, 888.0, 624.0, 888.0, 624.0, 919.0, - 547.0, 919.0]}]}, {"text": "Address:", "boundingBox": [168.0, 924.0, 276.0, - 924.0, 276.0, 954.0, 168.0, 954.0], "words": [{"text": "Address:", "boundingBox": - [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0]}]}, {"text": "383 - N Kinnick Road", "boundingBox": [283.0, 924.0, 524.0, 924.0, 524.0, 954.0, - 283.0, 954.0], "words": [{"text": "383", "boundingBox": [283.0, 924.0, 328.0, - 924.0, 328.0, 954.0, 283.0, 954.0]}, {"text": "N", "boundingBox": [335.0, - 924.0, 355.0, 924.0, 355.0, 954.0, 335.0, 954.0]}, {"text": "Kinnick", "boundingBox": - [362.0, 924.0, 451.0, 924.0, 451.0, 954.0, 362.0, 954.0]}, {"text": "Road", - "boundingBox": [457.0, 924.0, 524.0, 924.0, 524.0, 954.0, 457.0, 954.0]}]}, - {"text": "Seattle, WA 38383", "boundingBox": [285.0, 962.0, 515.0, 962.0, - 515.0, 992.0, 285.0, 992.0], "words": [{"text": "Seattle,", "boundingBox": - [285.0, 962.0, 380.0, 962.0, 380.0, 992.0, 285.0, 992.0]}, {"text": "WA", - "boundingBox": [386.0, 962.0, 432.0, 962.0, 432.0, 992.0, 386.0, 992.0]}, - {"text": "38383", "boundingBox": [438.0, 962.0, 515.0, 962.0, 515.0, 992.0, - 438.0, 992.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, 852.0, - 964.0, 852.0, 992.0, 760.0, 992.0], "words": [{"text": "Phone:", "boundingBox": - [760.0, 964.0, 852.0, 964.0, 852.0, 992.0, 760.0, 992.0]}]}, {"text": "932-299-0292", - "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, 857.0, 992.0], - "words": [{"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0]}]}, {"text": "Details", "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "words": [{"text": "Details", - "boundingBox": [447.0, 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0]}]}, - {"text": "Quantity", "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, - 1080.0, 890.0, 1080.0], "words": [{"text": "Quantity", "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0]}]}, {"text": "Unit - Price", "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, - 1080.0], "words": [{"text": "Unit", "boundingBox": [1113.0, 1045.0, 1184.0, - 1045.0, 1184.0, 1080.0, 1113.0, 1080.0]}, {"text": "Price", "boundingBox": - [1191.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1191.0, 1080.0]}]}, {"text": - "Total", "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "words": [{"text": "Total", "boundingBox": [1389.0, 1046.0, 1466.0, - 1046.0, 1466.0, 1080.0, 1389.0, 1080.0]}]}, {"text": "Bindings", "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "words": [{"text": - "Bindings", "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, - 1122.0]}]}, {"text": "20", "boundingBox": [863.0, 1098.0, 889.0, 1098.0, 889.0, - 1122.0, 863.0, 1122.0], "words": [{"text": "20", "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0]}]}, {"text": "1.00", "boundingBox": - [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "words": - [{"text": "1.00", "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, - 1122.0, 1243.0, 1122.0]}]}, {"text": "20.00", "boundingBox": [1466.0, 1098.0, - 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "words": [{"text": "20.00", - "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0]}]}, - {"text": "Covers Small", "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "words": [{"text": "Covers", "boundingBox": [172.0, - 1136.0, 257.0, 1136.0, 257.0, 1162.0, 172.0, 1162.0]}, {"text": "Small", "boundingBox": - [262.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 262.0, 1162.0]}]}, {"text": - "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, - 1162.0], "words": [{"text": "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, - 889.0, 1162.0, 862.0, 1162.0]}]}, {"text": "1.00", "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "words": [{"text": - "1.00", "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0]}]}, {"text": "20.00", "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, - 1531.0, 1162.0, 1464.0, 1162.0], "words": [{"text": "20.00", "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0]}]}, {"text": - "Feather Bookmark", "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, - 172.0, 1205.0], "words": [{"text": "Feather", "boundingBox": [172.0, 1179.0, - 271.0, 1179.0, 271.0, 1205.0, 172.0, 1205.0]}, {"text": "Bookmark", "boundingBox": - [276.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 276.0, 1205.0]}]}, {"text": - "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, - 1199.0], "words": [{"text": "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, - 888.0, 1199.0, 863.0, 1199.0]}]}, {"text": "5.00", "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "words": [{"text": - "5.00", "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0]}]}, {"text": "100.00", "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, - 1530.0, 1205.0, 1448.0, 1205.0], "words": [{"text": "100.00", "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0]}]}, {"text": - "Copper Swirl Marker", "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "words": [{"text": "Copper", "boundingBox": [171.0, - 1224.0, 265.0, 1224.0, 265.0, 1248.0, 171.0, 1248.0]}, {"text": "Swirl", "boundingBox": - [270.0, 1224.0, 334.0, 1224.0, 334.0, 1248.0, 270.0, 1248.0]}, {"text": "Marker", - "boundingBox": [339.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 339.0, 1248.0]}]}, - {"text": "20", "boundingBox": [864.0, 1221.0, 887.0, 1221.0, 887.0, 1244.0, - 864.0, 1244.0], "words": [{"text": "20", "boundingBox": [864.0, 1221.0, 887.0, - 1221.0, 887.0, 1244.0, 864.0, 1244.0]}]}, {"text": "5.00", "boundingBox": - [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "words": - [{"text": "5.00", "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, - 1248.0, 1242.0, 1248.0]}]}, {"text": "100.00", "boundingBox": [1449.0, 1225.0, - 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "words": [{"text": "100.00", - "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0]}]}, - {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, - 1599.0, 1156.0, 1599.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1156.0, - 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0]}]}, {"text": "$140.00", - "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], - "words": [{"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1242.0, - 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "words": [{"text": - "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, - 1643.0]}]}, {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "words": [{"text": "$4.00", "boundingBox": - [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0]}]}, {"text": - "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, - 485.0, 1708.0], "words": [{"text": "Bernie", "boundingBox": [485.0, 1669.0, - 605.0, 1669.0, 605.0, 1708.0, 485.0, 1708.0]}, {"text": "Sanders", "boundingBox": - [613.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, 613.0, 1708.0]}]}, {"text": - "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, - 1700.0], "words": [{"text": "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, - 1674.0, 1298.0, 1700.0, 1206.0, 1700.0]}]}, {"text": "$144.00", "boundingBox": - [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "words": - [{"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, - 1697.0, 1434.0, 1697.0]}]}, {"text": "Bernie Sanders", "boundingBox": [544.0, - 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, 1743.0], "words": [{"text": "Bernie", - "boundingBox": [544.0, 1717.0, 622.0, 1717.0, 622.0, 1743.0, 544.0, 1743.0]}, - {"text": "Sanders", "boundingBox": [627.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, - 627.0, 1743.0]}]}, {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "words": [{"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0]}]}, {"text": - "Additional Notes:", "boundingBox": [175.0, 1797.0, 479.0, 1797.0, 479.0, - 1834.0, 175.0, 1834.0], "words": [{"text": "Additional", "boundingBox": [175.0, - 1797.0, 358.0, 1797.0, 358.0, 1834.0, 175.0, 1834.0]}, {"text": "Notes:", - "boundingBox": [366.0, 1797.0, 479.0, 1797.0, 479.0, 1834.0, 366.0, 1834.0]}]}, - {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [176.0, - 1880.0, 707.0, 1880.0, 707.0, 1910.0, 176.0, 1910.0], "words": [{"text": "Do", - "boundingBox": [176.0, 1880.0, 208.0, 1880.0, 208.0, 1910.0, 176.0, 1910.0]}, - {"text": "not", "boundingBox": [213.0, 1880.0, 258.0, 1880.0, 258.0, 1910.0, - 213.0, 1910.0]}, {"text": "Jostle", "boundingBox": [264.0, 1880.0, 338.0, - 1880.0, 338.0, 1910.0, 264.0, 1910.0]}, {"text": "Box.", "boundingBox": [343.0, - 1880.0, 404.0, 1880.0, 404.0, 1910.0, 343.0, 1910.0]}, {"text": "Unpack", - "boundingBox": [410.0, 1880.0, 503.0, 1880.0, 503.0, 1910.0, 410.0, 1910.0]}, - {"text": "carefully.", "boundingBox": [509.0, 1880.0, 628.0, 1880.0, 628.0, - 1910.0, 509.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [633.0, 1880.0, - 707.0, 1880.0, 707.0, 1910.0, 633.0, 1910.0]}]}, {"text": "Jupiter Book Supply + [137.0, 140.0, 351.0, 140.0, 351.0, 167.0, 137.0, 167.0], "words": [{"text": + "Purchase", "boundingBox": [137.0, 140.0, 264.0, 140.0, 264.0, 167.0, 137.0, + 167.0]}, {"text": "Order", "boundingBox": [269.0, 139.0, 351.0, 139.0, 351.0, + 167.0, 269.0, 167.0]}]}, {"text": "Hero Limited", "boundingBox": [621.0, 206.0, + 1075.0, 206.0, 1075.0, 266.0, 621.0, 266.0], "words": [{"text": "Hero", "boundingBox": + [621.0, 208.0, 794.0, 208.0, 794.0, 266.0, 621.0, 266.0]}, {"text": "Limited", + "boundingBox": [806.0, 205.0, 1075.0, 205.0, 1075.0, 266.0, 806.0, 266.0]}]}, + {"text": "Purchase Order", "boundingBox": [1113.0, 322.0, 1554.0, 322.0, 1554.0, + 369.0, 1113.0, 369.0], "words": [{"text": "Purchase", "boundingBox": [1113.0, + 322.0, 1381.0, 322.0, 1381.0, 368.0, 1113.0, 368.0]}, {"text": "Order", "boundingBox": + [1390.0, 321.0, 1554.0, 321.0, 1554.0, 370.0, 1390.0, 370.0]}]}, {"text": + "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, 359.0, 378.0, + 163.0, 378.0], "words": [{"text": "Company", "boundingBox": [163.0, 353.0, + 274.0, 353.0, 274.0, 378.0, 163.0, 378.0]}, {"text": "Phone:", "boundingBox": + [279.0, 351.0, 359.0, 351.0, 359.0, 378.0, 279.0, 378.0]}]}, {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "words": + [{"text": "555-348-6512", "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, + 378.0, 364.0, 378.0]}]}, {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "words": [{"text": "Website:", + "boundingBox": [167.0, 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0]}]}, + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "words": [{"text": "www.herolimited.com", "boundingBox": + [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0]}]}, {"text": "Email:", + "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "words": + [{"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0]}]}, {"text": "Dated As:", "boundingBox": [1025.0, 421.0, 1160.0, + 421.0, 1160.0, 448.0, 1025.0, 448.0], "words": [{"text": "Dated", "boundingBox": + [1025.0, 421.0, 1108.0, 421.0, 1108.0, 448.0, 1025.0, 448.0]}, {"text": "As:", + "boundingBox": [1114.0, 420.0, 1160.0, 420.0, 1160.0, 448.0, 1114.0, 448.0]}]}, + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "words": [{"text": "12/20/2020", "boundingBox": [1165.0, + 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0]}]}, {"text": "Purchase + Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, 488.0, 1023.0, + 488.0], "words": [{"text": "Purchase", "boundingBox": [1023.0, 461.0, 1152.0, + 461.0, 1152.0, 488.0, 1023.0, 488.0]}, {"text": "Order", "boundingBox": [1157.0, + 461.0, 1238.0, 461.0, 1238.0, 489.0, 1157.0, 489.0]}, {"text": "#:", "boundingBox": + [1244.0, 461.0, 1272.0, 461.0, 1272.0, 489.0, 1244.0, 489.0]}]}, {"text": + "948284", "boundingBox": [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, + 489.0], "words": [{"text": "948284", "boundingBox": [1277.0, 461.0, 1376.0, + 461.0, 1376.0, 489.0, 1277.0, 489.0]}]}, {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "words": + [{"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, 479.0, + 481.0, 479.0, 503.0, 164.0, 503.0]}]}, {"text": "Shipped To", "boundingBox": + [167.0, 547.0, 397.0, 547.0, 397.0, 592.0, 167.0, 592.0], "words": [{"text": + "Shipped", "boundingBox": [167.0, 547.0, 333.0, 547.0, 333.0, 592.0, 167.0, + 592.0]}, {"text": "To", "boundingBox": [342.0, 547.0, 397.0, 547.0, 397.0, + 592.0, 342.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": [160.0, 611.0, + 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "words": [{"text": "Vendor", "boundingBox": + [160.0, 611.0, 254.0, 611.0, 254.0, 637.0, 160.0, 637.0]}, {"text": "Name:", + "boundingBox": [259.0, 610.0, 344.0, 610.0, 344.0, 638.0, 259.0, 638.0]}]}, + {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, 521.0, + 639.0, 350.0, 639.0], "words": [{"text": "Hillary", "boundingBox": [350.0, + 609.0, 430.0, 609.0, 430.0, 639.0, 350.0, 639.0]}, {"text": "Swank", "boundingBox": + [435.0, 609.0, 521.0, 609.0, 521.0, 639.0, 435.0, 639.0]}]}, {"text": "Company + Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, 160.0, 677.0], + "words": [{"text": "Company", "boundingBox": [160.0, 649.0, 280.0, 649.0, + 280.0, 676.0, 160.0, 676.0]}, {"text": "Name:", "boundingBox": [286.0, 647.0, + 370.0, 647.0, 370.0, 678.0, 286.0, 678.0]}]}, {"text": "Higgly Wiggly Books", + "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], "words": + [{"text": "Higgly", "boundingBox": [375.0, 647.0, 455.0, 647.0, 455.0, 679.0, + 375.0, 679.0]}, {"text": "Wiggly", "boundingBox": [461.0, 646.0, 546.0, 646.0, + 546.0, 679.0, 461.0, 679.0]}, {"text": "Books", "boundingBox": [552.0, 646.0, + 630.0, 646.0, 630.0, 678.0, 552.0, 678.0]}]}, {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "words": [{"text": + "Address:", "boundingBox": [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, + 711.0]}]}, {"text": "938 NE Burner Road", "boundingBox": [274.0, 685.0, 527.0, + 685.0, 527.0, 713.0, 274.0, 713.0], "words": [{"text": "938", "boundingBox": + [274.0, 685.0, 323.0, 685.0, 323.0, 712.0, 274.0, 712.0]}, {"text": "NE", + "boundingBox": [329.0, 685.0, 364.0, 685.0, 364.0, 713.0, 329.0, 713.0]}, + {"text": "Burner", "boundingBox": [370.0, 685.0, 455.0, 685.0, 455.0, 713.0, + 370.0, 713.0]}, {"text": "Road", "boundingBox": [460.0, 685.0, 527.0, 685.0, + 527.0, 713.0, 460.0, 713.0]}]}, {"text": "Boulder City, CO 92848", "boundingBox": + [279.0, 722.0, 565.0, 722.0, 565.0, 751.0, 279.0, 751.0], "words": [{"text": + "Boulder", "boundingBox": [279.0, 722.0, 371.0, 722.0, 371.0, 750.0, 279.0, + 750.0]}, {"text": "City,", "boundingBox": [377.0, 722.0, 433.0, 722.0, 433.0, + 751.0, 377.0, 751.0]}, {"text": "CO", "boundingBox": [439.0, 722.0, 477.0, + 722.0, 477.0, 751.0, 439.0, 751.0]}, {"text": "92848", "boundingBox": [482.0, + 722.0, 565.0, 722.0, 565.0, 751.0, 482.0, 751.0]}]}, {"text": "Phone:", "boundingBox": + [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "words": [{"text": + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0]}]}, {"text": "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, + 885.0, 749.0, 708.0, 749.0], "words": [{"text": "938-294-2949", "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0]}]}, {"text": "Shipped + From", "boundingBox": [167.0, 784.0, 448.0, 784.0, 448.0, 830.0, 167.0, 830.0], + "words": [{"text": "Shipped", "boundingBox": [167.0, 784.0, 327.0, 784.0, + 327.0, 830.0, 167.0, 830.0]}, {"text": "From", "boundingBox": [336.0, 785.0, + 448.0, 785.0, 448.0, 830.0, 336.0, 830.0]}]}, {"text": "Name:", "boundingBox": + [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "words": [{"text": + "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, + 879.0]}]}, {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "words": [{"text": "Bernie", "boundingBox": + [255.0, 852.0, 336.0, 852.0, 336.0, 879.0, 255.0, 879.0]}, {"text": "Sanders", + "boundingBox": [341.0, 852.0, 446.0, 852.0, 446.0, 880.0, 341.0, 880.0]}]}, + {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, + 919.0, 164.0, 919.0], "words": [{"text": "Company", "boundingBox": [164.0, + 890.0, 282.0, 890.0, 282.0, 919.0, 164.0, 919.0]}, {"text": "Name:", "boundingBox": + [288.0, 890.0, 374.0, 890.0, 374.0, 919.0, 288.0, 919.0]}]}, {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, + 919.0], "words": [{"text": "Jupiter", "boundingBox": [380.0, 889.0, 467.0, + 889.0, 467.0, 919.0, 380.0, 919.0]}, {"text": "Book", "boundingBox": [473.0, + 889.0, 536.0, 889.0, 536.0, 919.0, 473.0, 919.0]}, {"text": "Supply", "boundingBox": + [542.0, 889.0, 629.0, 889.0, 629.0, 920.0, 542.0, 920.0]}]}, {"text": "Address:", + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "words": + [{"text": "Address:", "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, + 166.0, 953.0]}]}, {"text": "383 N Kinnick Road", "boundingBox": [279.0, 926.0, + 521.0, 926.0, 521.0, 953.0, 279.0, 953.0], "words": [{"text": "383", "boundingBox": + [279.0, 925.0, 327.0, 925.0, 327.0, 953.0, 279.0, 953.0]}, {"text": "N", "boundingBox": + [332.0, 926.0, 353.0, 926.0, 353.0, 953.0, 332.0, 953.0]}, {"text": "Kinnick", + "boundingBox": [358.0, 926.0, 448.0, 926.0, 448.0, 953.0, 358.0, 953.0]}, + {"text": "Road", "boundingBox": [453.0, 926.0, 521.0, 926.0, 521.0, 954.0, + 453.0, 954.0]}]}, {"text": "Seattle, WA 38383", "boundingBox": [281.0, 965.0, + 514.0, 965.0, 514.0, 991.0, 281.0, 991.0], "words": [{"text": "Seattle,", + "boundingBox": [281.0, 965.0, 377.0, 965.0, 377.0, 991.0, 281.0, 991.0]}, + {"text": "WA", "boundingBox": [382.0, 964.0, 429.0, 964.0, 429.0, 991.0, 382.0, + 991.0]}, {"text": "38383", "boundingBox": [434.0, 964.0, 514.0, 964.0, 514.0, + 991.0, 434.0, 991.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "words": [{"text": "Phone:", "boundingBox": + [760.0, 964.0, 849.0, 964.0, 849.0, 990.0, 760.0, 990.0]}]}, {"text": "932-299-0292", + "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, 855.0, 990.0], + "words": [{"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0]}]}, {"text": "Details", "boundingBox": [447.0, + 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "words": [{"text": "Details", + "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0]}]}, + {"text": "Quantity", "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, + 1084.0, 886.0, 1084.0], "words": [{"text": "Quantity", "boundingBox": [886.0, + 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0]}]}, {"text": "Unit + Price", "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1111.0, + 1078.0], "words": [{"text": "Unit", "boundingBox": [1111.0, 1047.0, 1181.0, + 1047.0, 1181.0, 1078.0, 1111.0, 1078.0]}, {"text": "Price", "boundingBox": + [1187.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1187.0, 1078.0]}]}, {"text": + "Total", "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "words": [{"text": "Total", "boundingBox": [1383.0, 1047.0, 1467.0, + 1047.0, 1467.0, 1077.0, 1383.0, 1077.0]}]}, {"text": "Bindings", "boundingBox": + [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "words": [{"text": + "Bindings", "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, + 1122.0]}]}, {"text": "20", "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, + 1119.0, 861.0, 1119.0], "words": [{"text": "20", "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0]}]}, {"text": "1.00", "boundingBox": + [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "words": + [{"text": "1.00", "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, + 1118.0, 1241.0, 1118.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1096.0, + 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "words": [{"text": "20.00", + "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0]}]}, + {"text": "Covers Small", "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "words": [{"text": "Covers", "boundingBox": [170.0, + 1136.0, 254.0, 1136.0, 254.0, 1161.0, 170.0, 1161.0]}, {"text": "Small", "boundingBox": + [259.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 259.0, 1161.0]}]}, {"text": + "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, + 1160.0], "words": [{"text": "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, + 892.0, 1160.0, 861.0, 1160.0]}]}, {"text": "1.00", "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "words": [{"text": + "1.00", "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, + 1529.0, 1160.0, 1458.0, 1160.0], "words": [{"text": "20.00", "boundingBox": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0]}]}, {"text": + "Feather Bookmark", "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, + 173.0, 1206.0], "words": [{"text": "Feather", "boundingBox": [173.0, 1180.0, + 266.0, 1180.0, 266.0, 1206.0, 173.0, 1206.0]}, {"text": "Bookmark", "boundingBox": + [271.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 271.0, 1206.0]}]}, {"text": + "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, + 1204.0], "words": [{"text": "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, + 892.0, 1204.0, 863.0, 1204.0]}]}, {"text": "5.00", "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "words": [{"text": + "5.00", "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0]}]}, {"text": "100.00", "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, + 1529.0, 1205.0, 1443.0, 1205.0], "words": [{"text": "100.00", "boundingBox": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0]}]}, {"text": + "Copper Swirl Marker", "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "words": [{"text": "Copper", "boundingBox": [170.0, + 1223.0, 259.0, 1223.0, 259.0, 1253.0, 170.0, 1253.0]}, {"text": "Swirl", "boundingBox": + [265.0, 1222.0, 328.0, 1222.0, 328.0, 1252.0, 265.0, 1252.0]}, {"text": "Marker", + "boundingBox": [334.0, 1222.0, 429.0, 1222.0, 429.0, 1251.0, 334.0, 1251.0]}]}, + {"text": "20", "boundingBox": [860.0, 1223.0, 892.0, 1223.0, 892.0, 1247.0, + 860.0, 1247.0], "words": [{"text": "20", "boundingBox": [860.0, 1223.0, 892.0, + 1223.0, 892.0, 1247.0, 860.0, 1247.0]}]}, {"text": "5.00", "boundingBox": + [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "words": + [{"text": "5.00", "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, + 1247.0, 1239.0, 1247.0]}]}, {"text": "100.00", "boundingBox": [1444.0, 1224.0, + 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "words": [{"text": "100.00", + "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0]}]}, + {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, + 1600.0, 1147.0, 1600.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1147.0, + 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0]}]}, {"text": "$140.00", + "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], + "words": [{"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1238.0, + 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "words": [{"text": + "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, + 1643.0]}]}, {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "words": [{"text": "$4.00", "boundingBox": + [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0]}]}, {"text": + "Bernie Sanders", "boundingBox": [489.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, + 489.0, 1706.0], "words": [{"text": "Bernie", "boundingBox": [489.0, 1671.0, + 609.0, 1671.0, 609.0, 1706.0, 489.0, 1706.0]}, {"text": "Sanders", "boundingBox": + [616.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, 616.0, 1706.0]}]}, {"text": + "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, + 1699.0], "words": [{"text": "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, + 1674.0, 1297.0, 1699.0, 1204.0, 1699.0]}]}, {"text": "$144.00", "boundingBox": + [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "words": + [{"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, + 1698.0, 1427.0, 1698.0]}]}, {"text": "Bernie Sanders", "boundingBox": [542.0, + 1719.0, 717.0, 1719.0, 717.0, 1742.0, 542.0, 1742.0], "words": [{"text": "Bernie", + "boundingBox": [542.0, 1719.0, 617.0, 1719.0, 617.0, 1742.0, 542.0, 1742.0]}, + {"text": "Sanders", "boundingBox": [621.0, 1719.0, 717.0, 1719.0, 717.0, 1742.0, + 621.0, 1742.0]}]}, {"text": "Manager", "boundingBox": [577.0, 1754.0, 681.0, + 1754.0, 681.0, 1776.0, 577.0, 1776.0], "words": [{"text": "Manager", "boundingBox": + [577.0, 1754.0, 681.0, 1754.0, 681.0, 1776.0, 577.0, 1776.0]}]}, {"text": + "Additional Notes:", "boundingBox": [173.0, 1796.0, 479.0, 1796.0, 479.0, + 1831.0, 173.0, 1831.0], "words": [{"text": "Additional", "boundingBox": [173.0, + 1796.0, 355.0, 1796.0, 355.0, 1831.0, 173.0, 1831.0]}, {"text": "Notes:", + "boundingBox": [361.0, 1796.0, 479.0, 1796.0, 479.0, 1832.0, 361.0, 1832.0]}]}, + {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [175.0, + 1880.0, 707.0, 1880.0, 707.0, 1909.0, 175.0, 1909.0], "words": [{"text": "Do", + "boundingBox": [175.0, 1881.0, 205.0, 1881.0, 205.0, 1907.0, 175.0, 1907.0]}, + {"text": "not", "boundingBox": [210.0, 1881.0, 256.0, 1881.0, 256.0, 1907.0, + 210.0, 1907.0]}, {"text": "Jostle", "boundingBox": [261.0, 1880.0, 335.0, + 1880.0, 335.0, 1908.0, 261.0, 1908.0]}, {"text": "Box.", "boundingBox": [340.0, + 1880.0, 401.0, 1880.0, 401.0, 1909.0, 340.0, 1909.0]}, {"text": "Unpack", + "boundingBox": [406.0, 1880.0, 500.0, 1880.0, 500.0, 1909.0, 406.0, 1909.0]}, + {"text": "carefully.", "boundingBox": [505.0, 1880.0, 623.0, 1880.0, 623.0, + 1910.0, 505.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [628.0, 1880.0, + 707.0, 1880.0, 707.0, 1911.0, 628.0, 1911.0]}]}, {"text": "Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and", "boundingBox": - [173.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 173.0, 1959.0], "words": [{"text": - "Jupiter", "boundingBox": [173.0, 1925.0, 274.0, 1925.0, 274.0, 1959.0, 173.0, - 1959.0]}, {"text": "Book", "boundingBox": [280.0, 1925.0, 361.0, 1925.0, 361.0, - 1959.0, 280.0, 1959.0]}, {"text": "Supply", "boundingBox": [367.0, 1925.0, - 470.0, 1925.0, 470.0, 1959.0, 367.0, 1959.0]}, {"text": "will", "boundingBox": - [477.0, 1925.0, 523.0, 1925.0, 523.0, 1959.0, 477.0, 1959.0]}, {"text": "refund", - "boundingBox": [530.0, 1925.0, 628.0, 1925.0, 628.0, 1959.0, 530.0, 1959.0]}, - {"text": "you", "boundingBox": [635.0, 1925.0, 693.0, 1925.0, 693.0, 1959.0, - 635.0, 1959.0]}, {"text": "50%", "boundingBox": [699.0, 1925.0, 766.0, 1925.0, - 766.0, 1959.0, 699.0, 1959.0]}, {"text": "per", "boundingBox": [773.0, 1925.0, - 827.0, 1925.0, 827.0, 1959.0, 773.0, 1959.0]}, {"text": "book", "boundingBox": - [833.0, 1925.0, 907.0, 1925.0, 907.0, 1959.0, 833.0, 1959.0]}, {"text": "if", - "boundingBox": [913.0, 1925.0, 934.0, 1925.0, 934.0, 1959.0, 913.0, 1959.0]}, - {"text": "returned", "boundingBox": [940.0, 1925.0, 1067.0, 1925.0, 1067.0, - 1959.0, 940.0, 1959.0]}, {"text": "within", "boundingBox": [1074.0, 1925.0, - 1161.0, 1925.0, 1161.0, 1959.0, 1074.0, 1959.0]}, {"text": "60", "boundingBox": - [1168.0, 1925.0, 1210.0, 1925.0, 1210.0, 1959.0, 1168.0, 1959.0]}, {"text": - "days", "boundingBox": [1219.0, 1925.0, 1288.0, 1925.0, 1288.0, 1959.0, 1219.0, - 1959.0]}, {"text": "of", "boundingBox": [1295.0, 1925.0, 1324.0, 1925.0, 1324.0, - 1959.0, 1295.0, 1959.0]}, {"text": "reading", "boundingBox": [1330.0, 1925.0, - 1446.0, 1925.0, 1446.0, 1959.0, 1330.0, 1959.0]}, {"text": "and", "boundingBox": - [1453.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 1453.0, 1959.0]}]}, {"text": - "offer you 25% off you next total purchase.", "boundingBox": [170.0, 1959.0, - 782.0, 1959.0, 782.0, 1992.0, 170.0, 1992.0], "words": [{"text": "offer", - "boundingBox": [170.0, 1959.0, 239.0, 1959.0, 239.0, 1992.0, 170.0, 1992.0]}, - {"text": "you", "boundingBox": [246.0, 1959.0, 304.0, 1959.0, 304.0, 1992.0, - 246.0, 1992.0]}, {"text": "25%", "boundingBox": [310.0, 1959.0, 379.0, 1959.0, - 379.0, 1992.0, 310.0, 1992.0]}, {"text": "off", "boundingBox": [386.0, 1959.0, - 425.0, 1959.0, 425.0, 1992.0, 386.0, 1992.0]}, {"text": "you", "boundingBox": - [432.0, 1959.0, 490.0, 1959.0, 490.0, 1992.0, 432.0, 1992.0]}, {"text": "next", - "boundingBox": [496.0, 1959.0, 561.0, 1959.0, 561.0, 1992.0, 496.0, 1992.0]}, - {"text": "total", "boundingBox": [567.0, 1959.0, 634.0, 1959.0, 634.0, 1992.0, - 567.0, 1992.0]}, {"text": "purchase.", "boundingBox": [641.0, 1959.0, 782.0, - 1959.0, 782.0, 1992.0, 641.0, 1992.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": ["#/readResults/0/lines/1/words/0", - "#/readResults/0/lines/1/words/1"]}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, "value": - {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0], "elements": ["#/readResults/0/lines/4/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, - 271.0, 420.0, 167.0, 420.0], "elements": ["#/readResults/0/lines/5/words/0"]}, - "value": {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, - 392.0, 530.0, 420.0, 277.0, 420.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + [169.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 169.0, 1958.0], "words": [{"text": + "Jupiter", "boundingBox": [169.0, 1924.0, 270.0, 1924.0, 270.0, 1959.0, 169.0, + 1959.0]}, {"text": "Book", "boundingBox": [277.0, 1924.0, 355.0, 1924.0, 355.0, + 1959.0, 277.0, 1959.0]}, {"text": "Supply", "boundingBox": [361.0, 1924.0, + 465.0, 1924.0, 465.0, 1958.0, 361.0, 1958.0]}, {"text": "will", "boundingBox": + [472.0, 1924.0, 517.0, 1924.0, 517.0, 1958.0, 472.0, 1958.0]}, {"text": "refund", + "boundingBox": [524.0, 1924.0, 625.0, 1924.0, 625.0, 1958.0, 524.0, 1958.0]}, + {"text": "you", "boundingBox": [632.0, 1924.0, 687.0, 1924.0, 687.0, 1958.0, + 632.0, 1958.0]}, {"text": "50%", "boundingBox": [694.0, 1924.0, 763.0, 1924.0, + 763.0, 1958.0, 694.0, 1958.0]}, {"text": "per", "boundingBox": [770.0, 1924.0, + 820.0, 1924.0, 820.0, 1958.0, 770.0, 1958.0]}, {"text": "book", "boundingBox": + [827.0, 1924.0, 900.0, 1924.0, 900.0, 1958.0, 827.0, 1958.0]}, {"text": "if", + "boundingBox": [907.0, 1924.0, 928.0, 1924.0, 928.0, 1958.0, 907.0, 1958.0]}, + {"text": "returned", "boundingBox": [935.0, 1924.0, 1063.0, 1924.0, 1063.0, + 1958.0, 935.0, 1958.0]}, {"text": "within", "boundingBox": [1070.0, 1924.0, + 1157.0, 1924.0, 1157.0, 1958.0, 1070.0, 1958.0]}, {"text": "60", "boundingBox": + [1164.0, 1924.0, 1203.0, 1924.0, 1203.0, 1958.0, 1164.0, 1958.0]}, {"text": + "days", "boundingBox": [1210.0, 1924.0, 1284.0, 1924.0, 1284.0, 1958.0, 1210.0, + 1958.0]}, {"text": "of", "boundingBox": [1290.0, 1924.0, 1318.0, 1924.0, 1318.0, + 1958.0, 1290.0, 1958.0]}, {"text": "reading", "boundingBox": [1325.0, 1924.0, + 1439.0, 1924.0, 1439.0, 1958.0, 1325.0, 1958.0]}, {"text": "and", "boundingBox": + [1446.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 1446.0, 1958.0]}]}, {"text": + "offer you 25% off you next total purchase.", "boundingBox": [169.0, 1958.0, + 786.0, 1958.0, 786.0, 1992.0, 169.0, 1992.0], "words": [{"text": "offer", + "boundingBox": [169.0, 1958.0, 235.0, 1958.0, 235.0, 1991.0, 169.0, 1991.0]}, + {"text": "you", "boundingBox": [242.0, 1958.0, 299.0, 1958.0, 299.0, 1991.0, + 242.0, 1991.0]}, {"text": "25%", "boundingBox": [306.0, 1958.0, 374.0, 1958.0, + 374.0, 1992.0, 306.0, 1992.0]}, {"text": "off", "boundingBox": [380.0, 1958.0, + 421.0, 1958.0, 421.0, 1992.0, 380.0, 1992.0]}, {"text": "you", "boundingBox": + [427.0, 1958.0, 483.0, 1958.0, 483.0, 1992.0, 427.0, 1992.0]}, {"text": "next", + "boundingBox": [489.0, 1958.0, 556.0, 1958.0, 556.0, 1992.0, 489.0, 1992.0]}, + {"text": "total", "boundingBox": [562.0, 1959.0, 628.0, 1959.0, 628.0, 1992.0, + 562.0, 1992.0]}, {"text": "purchase.", "boundingBox": [635.0, 1959.0, 786.0, + 1959.0, 786.0, 1991.0, 635.0, 1991.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": ["#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1"]}, "value": {"text": "555-348-6512", "boundingBox": + [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": ["#/readResults/0/lines/4/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": ["#/readResults/0/lines/5/words/0"]}, + "value": {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, + 393.0, 531.0, 418.0, 273.0, 418.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Email:", "boundingBox": [165.0, 435.0, + 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "elements": ["#/readResults/0/lines/7/words/0"]}, + "value": {"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, + 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": - [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], "elements": - ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": ["#/readResults/0/lines/9/words/0"]}, "value": {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, - 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": ["#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, - "value": {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, - 1376.0, 491.0, 1282.0, 491.0], "elements": ["#/readResults/0/lines/11/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": [162.0, - 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "elements": ["#/readResults/0/lines/14/words/0", - "#/readResults/0/lines/14/words/1"]}, "value": {"text": "Hillary Swank", "boundingBox": - [352.0, 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": ["#/readResults/0/lines/15/words/0", + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": ["#/readResults/0/lines/8/words/0", + "#/readResults/0/lines/8/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0], "elements": + ["#/readResults/0/lines/9/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", + "#/readResults/0/lines/10/words/2"]}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + ["#/readResults/0/lines/11/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Vendor Name:", "boundingBox": [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, + 160.0, 637.0], "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"]}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1"]}, "confidence": 0.7}, {"key": {"text": - "Company Name:", "boundingBox": [162.0, 646.0, 373.0, 646.0, 373.0, 678.0, - 162.0, 678.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "value": {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, - 646.0, 628.0, 678.0, 379.0, 678.0], "elements": ["#/readResults/0/lines/17/words/0", + "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, + 160.0, 677.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, + "value": {"text": "Higgly Wiggly Books", "boundingBox": [375.0, 646.0, 630.0, + 646.0, 630.0, 679.0, 375.0, 679.0], "elements": ["#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2"]}, - "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": ["#/readResults/0/lines/18/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [161.0, 685.0, + 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": ["#/readResults/0/lines/18/words/0"]}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": ["#/readResults/0/lines/19/words/0", + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": ["#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1", "#/readResults/0/lines/20/words/2", "#/readResults/0/lines/20/words/3"]}, "confidence": 1.0}, {"key": {"text": - "Phone:", "boundingBox": [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, - 752.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, - 253.0, 881.0, 166.0, 881.0], "elements": ["#/readResults/0/lines/24/words/0"]}, - "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, 852.0, - 445.0, 881.0, 258.0, 881.0], "elements": ["#/readResults/0/lines/25/words/0", + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": + 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, + 250.0, 879.0, 166.0, 879.0], "elements": ["#/readResults/0/lines/24/words/0"]}, + "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, 852.0, + 446.0, 880.0, 255.0, 880.0], "elements": ["#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 169.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, - "value": {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, 624.0, - 888.0, 624.0, 919.0, 385.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", + "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, 919.0, + 164.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, + "value": {"text": "Jupiter Book Supply", "boundingBox": [380.0, 889.0, 629.0, + 889.0, 629.0, 919.0, 380.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/27/words/2"]}, - "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [168.0, 924.0, - 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": ["#/readResults/0/lines/28/words/0"]}, - "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [283.0, - 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": ["#/readResults/0/lines/29/words/0", + "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [166.0, 926.0, + 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": ["#/readResults/0/lines/28/words/0"]}, + "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [279.0, + 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": ["#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/29/words/3", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2"]}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": ["#/readResults/0/lines/31/words/0"]}, - "value": {"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0], "elements": ["#/readResults/0/lines/32/words/0"]}, - "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, - 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], "elements": ["#/readResults/0/lines/53/words/0"]}, - "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, - 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, - "value": {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "elements": ["#/readResults/0/lines/56/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1206.0, 1674.0, - 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": ["#/readResults/0/lines/58/words/0"]}, - "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, - 1531.0, 1697.0, 1434.0, 1697.0], "elements": ["#/readResults/0/lines/59/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, - 1797.0, 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": ["#/readResults/0/lines/62/words/0", + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": ["#/readResults/0/lines/31/words/0"]}, + "value": {"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0], "elements": ["#/readResults/0/lines/32/words/0"]}, + "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, + 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], "elements": ["#/readResults/0/lines/53/words/0"]}, + "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, + 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, + "value": {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "elements": ["#/readResults/0/lines/56/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1204.0, 1674.0, + 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": ["#/readResults/0/lines/58/words/0"]}, + "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, + 1529.0, 1698.0, 1427.0, 1698.0], "elements": ["#/readResults/0/lines/59/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, + 1796.0, 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": ["#/readResults/0/lines/62/words/0", "#/readResults/0/lines/62/words/1"]}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer you 25% off you next total - purchase.", "boundingBox": [170.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, - 170.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", + purchase.", "boundingBox": [169.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, + 169.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", "#/readResults/0/lines/63/words/2", "#/readResults/0/lines/63/words/3", "#/readResults/0/lines/63/words/4", "#/readResults/0/lines/63/words/5", "#/readResults/0/lines/63/words/6", "#/readResults/0/lines/64/words/0", "#/readResults/0/lines/64/words/1", "#/readResults/0/lines/64/words/2", "#/readResults/0/lines/64/words/3", @@ -712,114 +598,90 @@ interactions: "#/readResults/0/lines/64/words/16", "#/readResults/0/lines/65/words/0", "#/readResults/0/lines/65/words/1", "#/readResults/0/lines/65/words/2", "#/readResults/0/lines/65/words/3", "#/readResults/0/lines/65/words/4", "#/readResults/0/lines/65/words/5", "#/readResults/0/lines/65/words/6", "#/readResults/0/lines/65/words/7"]}, - "confidence": 0.53}, {"key": {"text": "__Tokens__1", "boundingBox": null, - "elements": null}, "value": {"text": "Purchase Order", "boundingBox": [141.0, - 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "elements": ["#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/0/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": ["#/readResults/0/lines/2/words/0", "#/readResults/0/lines/2/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped To", "boundingBox": [170.0, 546.0, 398.0, - 546.0, 398.0, 592.0, 170.0, 592.0], "elements": ["#/readResults/0/lines/13/words/0", - "#/readResults/0/lines/13/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__4", "boundingBox": null, "elements": null}, "value": {"text": "Shipped - From", "boundingBox": [169.0, 784.0, 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], - "elements": ["#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, - 766.0, 1669.0, 766.0, 1708.0, 485.0, 1708.0], "elements": ["#/readResults/0/lines/57/words/0", - "#/readResults/0/lines/57/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": ["#/readResults/0/lines/60/words/0", "#/readResults/0/lines/60/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__7", "boundingBox": null, "elements": - null}, "value": {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": ["#/readResults/0/lines/61/words/0"]}, - "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": - "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1047.0, - 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + "confidence": 0.53}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": + "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, + 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, "columnIndex": - 1, "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], + 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": true, "isFooter": false}, {"text": "Unit Price", "rowIndex": 0, - "columnIndex": 2, "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, - 1080.0, 1113.0, 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, + 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1"], "isHeader": true, "isFooter": false}, {"text": "Total", "rowIndex": 0, "columnIndex": - 3, "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], + 3, "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], "isHeader": true, "isFooter": false}, {"text": "Bindings", "rowIndex": 1, - "columnIndex": 0, "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, - 173.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + "columnIndex": 0, "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, + 172.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 1, "columnIndex": - 2, "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + 2, "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, + 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": - 3, "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], + 3, "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, + 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/41/words/0", "#/readResults/0/lines/41/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], + 1, "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/42/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 2, "columnIndex": - 2, "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], + 2, "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": - 3, "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], + 3, "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, - 1205.0, 172.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, + 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/45/words/0", "#/readResults/0/lines/45/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], + 1, "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/46/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 3, "columnIndex": - 2, "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], + 2, "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": - 3, "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, + 3, "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/48/words/0"], "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/49/words/0", "#/readResults/0/lines/49/words/1", "#/readResults/0/lines/49/words/2"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, 1221.0, - 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, 1223.0, + 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/50/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 4, "columnIndex": - 2, "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, - 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], + 2, "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, + 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": - 3, "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, + 3, "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/52/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - 606b0db9-da3d-429b-8c60-33d8c0f805c4 + - 2ddc56d9-c049-4fec-9cac-bf5a49531ea3 content-length: - - '36450' + - '34193' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:17 GMT + - Mon, 14 Sep 2020 20:14:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5169' + - '22' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml index 9b5fa11f7ccf..880818f9d7ca 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_custom_forms_encoded_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://fakeuri.com/blank%20space"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: 00000000-0000-0000-0000-000000000000"}}' headers: apim-request-id: - - 46abbfdd-c1f0-4a4f-a473-4b3321512c43 + - b56d7bd6-60bf-4707-8677-d43490fdee9d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:17 GMT + - Mon, 14 Sep 2020 20:14:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '13' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml index f9923b1afafa..0d01f9793c05 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_labeled_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - e95d1f8b-d16b-440f-b73c-7c7b89a2a3d6 + - 86c82cc4-7e12-494c-bc1c-f5be43ceaeda content-length: - '0' date: - - Fri, 10 Jul 2020 18:47:19 GMT + - Mon, 14 Sep 2020 20:14:20 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/52f54664-365f-40bd-8aa3-18360614dfd9 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '973' + - '42' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/52f54664-365f-40bd-8aa3-18360614dfd9?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5625eb27-b227-4b71-ac44-4feb7c37654f", "status": - "ready", "createdDateTime": "2020-07-10T18:47:19Z", "lastUpdatedDateTime": - "2020-07-10T18:47:23Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "52f54664-365f-40bd-8aa3-18360614dfd9", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:14:20Z", + "lastUpdatedDateTime": "2020-09-14T20:14:22Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - c7a43300-bc7c-4f24-99c2-2e7972d5016d + - a4b7e590-c56e-4a9b-967a-b583398ba24f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:26 GMT + - Mon, 14 Sep 2020 20:14:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2203' + - '15' status: code: 200 message: OK @@ -92,7 +92,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -102,27 +102,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/52f54664-365f-40bd-8aa3-18360614dfd9/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - a4722bf9-6b97-438c-b14c-2355ba339b94 + - d3ef1165-6fe1-4fef-8745-7d1d6e3e54c9 content-length: - '0' date: - - Fri, 10 Jul 2020 18:47:27 GMT + - Mon, 14 Sep 2020 20:14:24 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f/analyzeresults/86553ef4-e5d9-400d-88d6-2b7eca7bc03a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/52f54664-365f-40bd-8aa3-18360614dfd9/analyzeresults/bc97e6de-cc7c-49e7-a49c-d895491d1b41 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '83' + - '43' status: code: 202 message: Accepted @@ -136,268 +136,270 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5625eb27-b227-4b71-ac44-4feb7c37654f/analyzeresults/86553ef4-e5d9-400d-88d6-2b7eca7bc03a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/52f54664-365f-40bd-8aa3-18360614dfd9/analyzeresults/bc97e6de-cc7c-49e7-a49c-d895491d1b41 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:27Z", - "lastUpdatedDateTime": "2020-07-10T18:47:32Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:25Z", + "lastUpdatedDateTime": "2020-09-14T20:14:29Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.983}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -433,7 +435,7 @@ interactions: 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, + {"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"]}, @@ -442,79 +444,79 @@ interactions: "#/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, + {"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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, - "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", - "page": 1, "boundingBox": [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, - 450.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, - "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", - "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, - 1429.0, 1599.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, + "documentResults": [{"docType": "custom:52f54664-365f-40bd-8aa3-18360614dfd9", + "modelId": "52f54664-365f-40bd-8aa3-18360614dfd9", "pageRange": [1, 1], "fields": + {"VendorName": {"type": "string", "valueString": "Hillary Swank", "text": + "Hillary Swank", "page": 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, + 639.0, 349.0, 639.0], "confidence": 0.93, "elements": ["#/readResults/0/lines/10/words/2", + "#/readResults/0/lines/10/words/3"]}, "PurchaseOrderNumber": {"type": "string", + "valueString": "948284", "text": "948284", "page": 1, "boundingBox": [1277.0, + 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "confidence": 0.94, "elements": + ["#/readResults/0/lines/8/words/3"]}, "Merchant": {"type": "string", "valueString": + "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [620.0, + 205.0, 1075.0, 205.0, 1075.0, 266.0, 620.0, 266.0], "confidence": 0.97, "elements": + ["#/readResults/0/lines/1/words/0", "#/readResults/0/lines/1/words/1"]}, "Signature": + {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie Sanders", + "page": 1, "boundingBox": [489.0, 1670.0, 765.0, 1670.0, 765.0, 1708.0, 489.0, + 1708.0], "confidence": 0.998, "elements": ["#/readResults/0/lines/45/words/0", + "#/readResults/0/lines/45/words/1"]}, "Email": {"type": "string", "valueString": + "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, + "boundingBox": [164.0, 479.0, 478.0, 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": + 1.0, "elements": ["#/readResults/0/lines/7/words/0"]}, "CompanyName": {"type": + "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly Books", + "page": 1, "boundingBox": [375.0, 646.0, 629.0, 646.0, 629.0, 679.0, 375.0, + 679.0], "confidence": 0.95, "elements": ["#/readResults/0/lines/11/words/2", + "#/readResults/0/lines/11/words/3", "#/readResults/0/lines/11/words/4"]}, + "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": + "938-294-2949", "page": 1, "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, + 749.0, 708.0, 749.0], "confidence": 1.0, "elements": ["#/readResults/0/lines/14/words/1"]}, + "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, + 1094.0, 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 0.962, + "elements": ["#/readResults/0/lines/26/words/0"]}, "Website": {"type": "string", + "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": + 1, "boundingBox": [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0], + "confidence": 0.95, "elements": ["#/readResults/0/lines/4/words/1"]}, "PhoneNumber": + {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, + 378.0], "confidence": 0.89, "elements": ["#/readResults/0/lines/3/words/2"]}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": - 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/12/words/1", - "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", - "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", - "#/analyzeResult/readResults/0/lines/13/words/1", "#/analyzeResult/readResults/0/lines/13/words/2", - "#/analyzeResult/readResults/0/lines/13/words/3"]}, "VendorName": {"type": - "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": - 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, 641.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Website": {"type": "string", - "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": - 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, - "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": - "accounts@herolimited.com", "page": 1, "boundingBox": [166.0, 480.0, 475.0, - 480.0, 475.0, 503.0, 166.0, 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, - "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie - Sanders", "page": 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, - 1709.0, 482.0, 1709.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "Merchant": {"type": "string", - "valueString": "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": - [621.0, 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", "#/analyzeResult/readResults/0/lines/1/words/1"]}, - "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": - "938-294-2949", "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, - 750.0, 713.0, 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}, - "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": - "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, - 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, + 1, "boundingBox": [273.0, 685.0, 565.0, 685.0, 565.0, 751.0, 273.0, 751.0], + "confidence": 1.0, "elements": ["#/readResults/0/lines/12/words/1", "#/readResults/0/lines/12/words/2", + "#/readResults/0/lines/12/words/3", "#/readResults/0/lines/12/words/4", "#/readResults/0/lines/13/words/0", + "#/readResults/0/lines/13/words/1", "#/readResults/0/lines/13/words/2", "#/readResults/0/lines/13/words/3"]}, + "DatedAs": {"type": "string", "valueString": "12/20/2020", "text": "12/20/2020", + "page": 1, "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, + 449.0], "confidence": 0.99, "elements": ["#/readResults/0/lines/6/words/2"]}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": - 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, - 1697.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, - "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}}}], "errors": []}}' + 1, "boundingBox": [1427.0, 1669.0, 1529.0, 1669.0, 1529.0, 1698.0, 1427.0, + 1698.0], "confidence": 0.991, "elements": ["#/readResults/0/lines/47/words/0"]}, + "Subtotal": {"type": "string", "valueString": "$140.00", "text": "$140.00", + "page": 1, "boundingBox": [1426.0, 1572.0, 1531.0, 1572.0, 1531.0, 1599.0, + 1426.0, 1599.0], "confidence": 0.984, "elements": ["#/readResults/0/lines/42/words/0"]}, + "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, + 1643.0], "confidence": 0.994, "elements": ["#/readResults/0/lines/44/words/0"]}}, + "docTypeConfidence": 1.0}], "errors": []}}' headers: apim-request-id: - - 4ba3a5ac-a428-4ec6-857e-0820be246a40 + - 82ab47fe-f934-4904-be0b-87b2c5603234 content-length: - - '25282' + - '25118' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:32 GMT + - Mon, 14 Sep 2020 20:14:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '20' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml index 6b527b0deac3..c2532b7bfa38 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_labeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 6749bb4f-cd16-4bb1-83b3-a01da7334aed + - 6203c379-0a3a-4016-8213-0ba39d1e7e1e content-length: - '0' date: - - Fri, 10 Jul 2020 18:47:32 GMT + - Mon, 14 Sep 2020 20:14:31 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/20692e3e-984f-4bcf-a9b5-d773989b8065 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '67' + - '62' status: code: 201 message: Created @@ -48,37 +48,38 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/20692e3e-984f-4bcf-a9b5-d773989b8065?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b6c589d4-b4f6-4215-b834-42522860e0b2", "status": - "ready", "createdDateTime": "2020-07-10T18:47:33Z", "lastUpdatedDateTime": - "2020-07-10T18:47:34Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "20692e3e-984f-4bcf-a9b5-d773989b8065", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:14:31Z", + "lastUpdatedDateTime": "2020-09-14T20:14:32Z"}, "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": []}}' headers: apim-request-id: - - e0b6e118-ca6d-49d5-962b-36d3b35c7331 + - c42e7019-7bb3-4b48-a473-21ee9ecd42d1 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:38 GMT + - Mon, 14 Sep 2020 20:14:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '18' status: code: 200 message: OK @@ -94,7 +95,7 @@ interactions: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -104,27 +105,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/20692e3e-984f-4bcf-a9b5-d773989b8065/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 51c18382-fe80-4ed5-bb56-6cf8db3fa8ab + - 8e7aaf11-5987-4497-b163-05ddee6513f3 content-length: - '0' date: - - Fri, 10 Jul 2020 18:47:38 GMT + - Mon, 14 Sep 2020 20:14:36 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2/analyzeresults/ac7e5933-4395-453e-a56e-464d6418019f + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/20692e3e-984f-4bcf-a9b5-d773989b8065/analyzeresults/293f03ef-5ef0-453b-906f-520850a27eec strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' + - '47' status: code: 202 message: Accepted @@ -138,162 +139,208 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/20692e3e-984f-4bcf-a9b5-d773989b8065/analyzeresults/293f03ef-5ef0-453b-906f-520850a27eec + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:14:36Z", + "lastUpdatedDateTime": "2020-09-14T20:14:40Z"}' + headers: + apim-request-id: + - a918f0a5-8817-440c-be9b-f3b08af88b10 + content-length: + - '109' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 20:14:40 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '18' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b6c589d4-b4f6-4215-b834-42522860e0b2/analyzeresults/ac7e5933-4395-453e-a56e-464d6418019f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/20692e3e-984f-4bcf-a9b5-d773989b8065/analyzeresults/293f03ef-5ef0-453b-906f-520850a27eec response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:47:38Z", - "lastUpdatedDateTime": "2020-07-10T18:47:49Z", "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": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:14:36Z", + "lastUpdatedDateTime": "2020-09-14T20:14:44Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, + 1.1035, 10.9943, 0, 10.9943], "confidence": 0.881, "state": "unselected"}, + {"boundingBox": [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], + "confidence": 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, + 0.0263, 1.0499, 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, + {"boundingBox": [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "selectionMarks": [{"boundingBox": [0, + 9.877, 1.1039, 9.877, 1.1039, 10.9946, 0, 10.9946], "confidence": 0.881, "state": + "unselected"}, {"boundingBox": [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, + 0, 10.9975], "confidence": 0.833, "state": "unselected"}, {"boundingBox": + [0, 0.0268, 1.048, 0.0268, 1.048, 1.0107, 0, 1.0107], "confidence": 0.6, "state": + "unselected"}, {"boundingBox": [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, + 11, 6.8221, 11], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5061, 9.9417, 8.4988, 9.9417, 8.4988, 11, 7.5061, 11], "confidence": 0.553, + "state": "unselected"}]}], "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": {"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}, "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], + "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:20692e3e-984f-4bcf-a9b5-d773989b8065", "modelId": "20692e3e-984f-4bcf-a9b5-d773989b8065", + "pageRange": [1, 3], "fields": {"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.676}, "CustomerAddress": {"type": "string", + "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, + WA", "page": 1, "boundingBox": [6.015, 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, + 2.03], "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}, "Merchant2": {"type": "string", + "valueString": "Company", "text": "Company", "page": 3, "boundingBox": [0.885, + 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "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": 0.952}, "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}, + "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", "page": + 1, "boundingBox": [3.26, 3.21, 3.32, 3.21, 3.32, 3.32, 3.26, 3.32], "confidence": + 1.0}, "FirstItem": {"type": "string", "valueString": "A", "text": "A", "page": + 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, 3.32, 1.085, 3.32], "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}, "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}, "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}, "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}, "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}, "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}, - "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "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}, "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}, "CustomerAddress": {"type": "string", "valueString": "123 - Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, - "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, - 2.0300000000000002, 6.015000000000001, 2.0300000000000002], "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}, "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}, "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}, "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}, "Customer2": - {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo Baggins", - "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, 6.95, 1.595, - 6.015000000000001, 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}}}], "errors": []}}' + [6.01, 2.12, 6.935, 2.12, 6.935, 2.225, 6.01, 2.225], "confidence": 1.0}, + "Merchant": {"type": "string", "valueString": "B", "text": "B", "page": 3, + "boundingBox": [1.685, 1.125, 1.765, 1.125, 1.765, 1.245, 1.685, 1.245], "confidence": + 0.5}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015, 1.45, 6.895, 1.45, 6.895, + 1.595, 6.015, 1.595], "confidence": 0.971}, "FirstPrice": {"type": "string", + "valueString": "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, + 3.21, 5.78, 3.21, 5.78, 3.32, 5.425, 3.32], "confidence": 1.0}, "Tip": {"type": + "string", "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": + [5.81, 5.345, 6.26, 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": 1.0}, + "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, + 6.015, 1.595], "confidence": 0.971}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: apim-request-id: - - 8bd04a76-d0d3-4b7b-9c36-4183b042c9a4 + - 52d82c50-e690-4512-956b-0c80fd8f6597 content-length: - - '9504' + - '10168' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:49 GMT + - Mon, 14 Sep 2020 20:14:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5864' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml index 553246e05575..2e7f96866264 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_form_multipage_unlabeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 1f3df006-29ce-4e84-b4d2-fc55d1cddaa5 + - 44788fbd-f127-425d-aa3a-3a9e3ab2dee4 content-length: - '0' date: - - Fri, 10 Jul 2020 18:47:49 GMT + - Mon, 14 Sep 2020 20:14:47 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '64' + - '40' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c9482a24-63fa-43ee-b8f5-15bc49cdabf7", "status": - "creating", "createdDateTime": "2020-07-10T18:47:50Z", "lastUpdatedDateTime": - "2020-07-10T18:47:50Z"}}' + string: '{"modelInfo": {"modelId": "2e45cf78-738d-4622-9598-f2a1215a1c5c", "status": + "creating", "createdDateTime": "2020-09-14T20:14:47Z", "lastUpdatedDateTime": + "2020-09-14T20:14:47Z"}}' headers: apim-request-id: - - 4711a71d-7ebf-4115-ad36-97274de35fdb + - 7e16a15d-a2cf-45e6-a03d-09c2fdd11a65 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:47:57 GMT + - Mon, 14 Sep 2020 20:14:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1708' + - '13' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c9482a24-63fa-43ee-b8f5-15bc49cdabf7", "status": - "creating", "createdDateTime": "2020-07-10T18:47:50Z", "lastUpdatedDateTime": - "2020-07-10T18:47:50Z"}}' + string: '{"modelInfo": {"modelId": "2e45cf78-738d-4622-9598-f2a1215a1c5c", "status": + "creating", "createdDateTime": "2020-09-14T20:14:47Z", "lastUpdatedDateTime": + "2020-09-14T20:14:47Z"}}' headers: apim-request-id: - - 5f7f922f-6f24-46d7-ac61-ac9c4da435d1 + - 146cebb5-4134-4b98-a3fd-6c39845a5bc2 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:01 GMT + - Mon, 14 Sep 2020 20:14:57 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '17' status: code: 200 message: OK @@ -120,29 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c9482a24-63fa-43ee-b8f5-15bc49cdabf7", "status": - "ready", "createdDateTime": "2020-07-10T18:47:50Z", "lastUpdatedDateTime": - "2020-07-10T18:48:04Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice - For:", "Item", "Price", "Quantity", "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": []}}' + string: '{"modelInfo": {"modelId": "2e45cf78-738d-4622-9598-f2a1215a1c5c", "status": + "creating", "createdDateTime": "2020-09-14T20:14:47Z", "lastUpdatedDateTime": + "2020-09-14T20:14:47Z"}}' headers: apim-request-id: - - f35a4d3a-7cfc-4f8c-8af7-8066569a4afc + - 0c02d048-e6de-44cb-a628-d74bcb6c4d66 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:07 GMT + - Mon, 14 Sep 2020 20:15:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -150,12 +142,12 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '17' status: code: 200 message: OK - request: - body: 'b''b\''{"source": "blob_sas_url"}\''''' + body: null headers: Accept: - '*/*' @@ -163,35 +155,33 @@ interactions: - gzip, deflate Connection: - keep-alive - Content-Length: - - '241' - Content-Type: - - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyze?includeTextDetails=false + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c?includeKeys=true response: body: - string: '' + string: '{"modelInfo": {"modelId": "2e45cf78-738d-4622-9598-f2a1215a1c5c", "status": + "creating", "createdDateTime": "2020-09-14T20:14:47Z", "lastUpdatedDateTime": + "2020-09-14T20:14:47Z"}}' headers: apim-request-id: - - f91849b7-49ac-49c4-8a16-279966598a53 - content-length: - - '0' + - d1b1ef43-4308-4239-9f3b-f17f0d6552ed + content-type: + - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:07 GMT - operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + - Mon, 14 Sep 2020 20:15:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '187' + - '16' status: - code: 202 - message: Accepted + code: 200 + message: OK - request: body: null headers: @@ -202,66 +192,78 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c?includeKeys=true response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": - "2020-07-10T18:48:10Z", "analyzeResult": null}' + string: '{"modelInfo": {"modelId": "2e45cf78-738d-4622-9598-f2a1215a1c5c", "status": + "ready", "createdDateTime": "2020-09-14T20:14:47Z", "lastUpdatedDateTime": + "2020-09-14T20:15:10Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + For:", "Item", "Price", "Quantity", "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": []}}' headers: apim-request-id: - - f49e9519-ad79-45bc-ad4a-1c7e98d5990e - content-length: - - '134' + - ee0065a4-6be3-4806-b067-a116568fdcd2 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:12 GMT + - Mon, 14 Sep 2020 20:15:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '18' status: code: 200 message: OK - request: - body: null + body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '241' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c/analyze?includeTextDetails=false response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": - "2020-07-10T18:48:10Z", "analyzeResult": null}' + string: '' headers: apim-request-id: - - 2a2cfabf-6e97-4ec4-beaa-cb4677fc1263 + - ad0b3c64-a9a8-4da2-94c6-bd8928e683ee content-length: - - '134' - content-type: - - application/json; charset=utf-8 + - '0' date: - - Fri, 10 Jul 2020 18:48:17 GMT + - Mon, 14 Sep 2020 20:15:12 GMT + operation-location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c/analyzeresults/57a845a5-5d93-46aa-9412-43a6a0318553 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '44' status: - code: 200 - message: OK + code: 202 + message: Accepted - request: body: null headers: @@ -272,28 +274,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c/analyzeresults/57a845a5-5d93-46aa-9412-43a6a0318553 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": - "2020-07-10T18:48:10Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:15:13Z", "lastUpdatedDateTime": + "2020-09-14T20:15:14Z", "analyzeResult": null}' headers: apim-request-id: - - bf4c3b48-72fb-4791-8a84-87dbba698b57 + - 6c02ec82-a6d4-49de-a5e5-7ab42a5db16b content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:23 GMT + - Mon, 14 Sep 2020 20:15:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '15' status: code: 200 message: OK @@ -307,28 +309,28 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c/analyzeresults/57a845a5-5d93-46aa-9412-43a6a0318553 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:48:07Z", "lastUpdatedDateTime": - "2020-07-10T18:48:10Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:15:13Z", "lastUpdatedDateTime": + "2020-09-14T20:15:14Z", "analyzeResult": null}' headers: apim-request-id: - - 3334b77a-91b3-414d-8037-8854807fbad7 + - 926bc7fb-904b-40c9-90ca-80f5cd10c00e content-length: - '134' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:28 GMT + - Mon, 14 Sep 2020 20:15:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '17' status: code: 200 message: OK @@ -342,250 +344,246 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c9482a24-63fa-43ee-b8f5-15bc49cdabf7/analyzeresults/aa4c0783-80b4-411d-a5ce-9c8f32b6ec09 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2e45cf78-738d-4622-9598-f2a1215a1c5c/analyzeresults/57a845a5-5d93-46aa-9412-43a6a0318553 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:48:07Z", - "lastUpdatedDateTime": "2020-07-10T18:48:14Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:15:13Z", + "lastUpdatedDateTime": "2020-09-14T20:15:25Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "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": + "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Bilbo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "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], + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "100.00", + "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, + 5.5646, 6.3986, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, + 6.7983, 1.7472, 6.7983], "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": 2, "keyValuePairs": [], "tables": [], - "clusterId": null}, {"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], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, + 3.3177, 3.2597, 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "2", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, + 3.3194, 3.5309, 3.2542, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "14.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, + 5.7792, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, + 3.3236, 3.7413, 3.2486, 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "15.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, + 5.7792, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, + 3.3208, 3.951, 3.2597, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, + 5.7806, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "6", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, + 3.3222, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, + 5.7806, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "8", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "22.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, + 5.7806, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"page": + 3, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, + 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "1000.00", + "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, + 5.5646, 6.4833, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, + 6.7983, 1.7472, 6.7983], "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": []}}' + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, + 3.3191, 3.2597, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, + 3.4069, 3.5323, 3.2542, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "140.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, + 3.4069, 3.7424, 3.2486, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "150.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, + 3.4069, 3.9524, 3.2597, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, + 5.8639, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, + 3.4069, 4.1628, 3.2486, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, + 5.8639, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "60", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, + 3.4069, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, + 5.8639, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "80", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, + 3.4069, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "220.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, + 5.8639, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}], "documentResults": [], "errors": []}}' headers: apim-request-id: - - c23140ce-af57-4d61-93b1-e719b1c2f8a3 + - 6ec2a066-4f96-46f7-a119-ade8326a31df content-length: - - '17652' + - '17142' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:34 GMT + - Mon, 14 Sep 2020 20:15:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '822' + - '19' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml index d5ec66023d01..561ff2987ec4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_pass_stream_into_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "<_io.BufferedReader name=\''C:\\\\\\\\Users\\\\\\\\krpratic\\\\\\\\azure-sdk-for-python\\\\\\\\sdk\\\\\\\\formrecognizer\\\\\\\\azure-ai-formrecognizer\\\\\\\\tests\\\\\\\\conftest.py\''>"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xxx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xxx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xxx"}}' headers: apim-request-id: - - db8ecc9f-94cf-48ec-8ec1-629e4cb7fa10 + - c9e814f7-93f8-4875-b351-0cf8a2629463 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:34 GMT + - Mon, 14 Sep 2020 20:14:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml index f21eab53a918..3b7f82a5f4d7 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_passing_bad_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://badurl.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,20 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xx"}}' headers: apim-request-id: - - 6f17d297-9f5c-48ef-9eb6-0f6b8946945b + - 09f37712-0c51-4c16-807d-32e19eec862e content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:48:35 GMT + - Mon, 14 Sep 2020 20:14:42 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -34,7 +34,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '13' + - '19' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml index 7118d0187abe..da176e1d739d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url.test_url_authentication_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,30 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 08fae345-3203-4e6c-abaf-9074e1ee76cf content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:48:35 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 20:14:42 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml index f2979d160d85..0afdce99702f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_unlabeled.yaml @@ -3,69 +3,119 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '301' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: d0eead19-16ea-46b6-bed1-e8ed9eb0c65c + apim-request-id: 88bdb62c-b352-4713-bb16-f7b442a9ca22 content-length: '0' - date: Fri, 10 Jul 2020 18:49:08 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f + date: Mon, 14 Sep 2020 20:21:20 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '107' + x-envoy-upstream-service-time: '96' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8771b582-f165-449c-bcfe-469a4139c72f", "status": - "creating", "createdDateTime": "2020-07-10T18:49:09Z", "lastUpdatedDateTime": - "2020-07-10T18:49:09Z"}}' + string: '{"modelInfo": {"modelId": "f36d27f3-479b-4596-b7ed-cc6364938665", "status": + "creating", "createdDateTime": "2020-09-14T20:21:20Z", "lastUpdatedDateTime": + "2020-09-14T20:21:20Z"}}' headers: - apim-request-id: 53d1764c-b30d-47f1-bccd-e046773cef99 + apim-request-id: 01a6e0ed-70b2-4828-bcf3-cfbd4fe33047 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:14 GMT + date: Mon, 14 Sep 2020 20:21:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '38' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8771b582-f165-449c-bcfe-469a4139c72f", "status": - "creating", "createdDateTime": "2020-07-10T18:49:09Z", "lastUpdatedDateTime": - "2020-07-10T18:49:09Z"}}' + string: '{"modelInfo": {"modelId": "f36d27f3-479b-4596-b7ed-cc6364938665", "status": + "creating", "createdDateTime": "2020-09-14T20:21:20Z", "lastUpdatedDateTime": + "2020-09-14T20:21:20Z"}}' headers: - apim-request-id: 9bd3d633-873c-4563-9082-3352b82a81de + apim-request-id: d208c71e-470b-45fa-81b0-26afe1a6e130 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:19 GMT + date: Mon, 14 Sep 2020 20:21:30 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "f36d27f3-479b-4596-b7ed-cc6364938665", "status": + "creating", "createdDateTime": "2020-09-14T20:21:20Z", "lastUpdatedDateTime": + "2020-09-14T20:21:20Z"}}' + headers: + apim-request-id: 4fe0c011-cced-470a-895d-4f628f93ec48 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:21:34 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '14' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "f36d27f3-479b-4596-b7ed-cc6364938665", "status": + "creating", "createdDateTime": "2020-09-14T20:21:20Z", "lastUpdatedDateTime": + "2020-09-14T20:21:20Z"}}' + headers: + apim-request-id: 9ed61d87-2c31-49c2-b0e8-03812b71744e + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:21:40 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -73,19 +123,19 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "8771b582-f165-449c-bcfe-469a4139c72f", "status": - "ready", "createdDateTime": "2020-07-10T18:49:09Z", "lastUpdatedDateTime": - "2020-07-10T18:49:23Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "f36d27f3-479b-4596-b7ed-cc6364938665", "status": + "ready", "createdDateTime": "2020-09-14T20:21:20Z", "lastUpdatedDateTime": + "2020-09-14T20:21:44Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -95,309 +145,330 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 791e2a6e-6c29-4374-8de1-9a8e21a191ed + apim-request-id: eaba7ab4-0458-4616-b88a-25f9c49f3adf content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:24 GMT + date: Mon, 14 Sep 2020 20:21:45 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: + Accept: + - application/json Content-Length: - '241' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 60c900cd-8307-4964-9b8e-cca48dc5319f + apim-request-id: 88d7549e-8c22-4c74-a1f7-69eb0a5d828d content-length: '0' - date: Fri, 10 Jul 2020 18:49:25 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 + date: Mon, 14 Sep 2020 20:21:45 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '103' + x-envoy-upstream-service-time: '44' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:27Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:21:46Z", "lastUpdatedDateTime": + "2020-09-14T20:21:46Z", "analyzeResult": null}' headers: - apim-request-id: 7edf65cf-1c36-4b05-ba50-a560f4ca29d6 + apim-request-id: bef799ba-d5f1-4852-baac-58cda439e213 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:30 GMT + date: Mon, 14 Sep 2020 20:21:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '34' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T20:21:46Z", "lastUpdatedDateTime": + "2020-09-14T20:21:46Z", "analyzeResult": null}' + headers: + apim-request-id: d1b1b270-a571-4974-b06b-2c625d6fef09 + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:21:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:25Z", - "lastUpdatedDateTime": "2020-07-10T18:49:31Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:21:46Z", + "lastUpdatedDateTime": "2020-09-14T20:21:58Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 2, "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": + "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Bilbo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "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], + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "100.00", + "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, + 5.5646, 6.3986, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, + 6.7983, 1.7472, 6.7983], "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": 2, "keyValuePairs": [], "tables": [], - "clusterId": null}, {"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], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, + 3.3177, 3.2597, 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "2", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, + 3.3194, 3.5309, 3.2542, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "14.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, + 5.7792, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, + 3.3236, 3.7413, 3.2486, 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "15.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, + 5.7792, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "1", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, + 3.3208, 3.951, 3.2597, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, + 5.7806, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "4", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "6", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, + 3.3222, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "12.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, + 5.7806, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "8", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "22.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, + 5.7806, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"page": + 3, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": null}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": null}, "value": {"text": + "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, 1.9556, + 0.8847, 1.9556], "elements": null}, "confidence": 1.0}, {"key": {"text": "Redmond, + WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, + 2.0233], "elements": null}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": + null}, "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": null}, "confidence": + 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, + 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": null}, "value": {"text": + "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, + 6.1792, 5.0132], "elements": null}, "confidence": 1.0}, {"key": {"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], + "elements": null}, "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, + 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809], "elements": null}, "value": {"text": "1000.00", + "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "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": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": + null}, "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, + 5.5646, 6.4833, 5.6733, 5.9417, 5.6733], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, + 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": null}, "value": {"text": + "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, + 6.7983, 1.7472, 6.7983], "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": []}}' + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, + "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Price", + "rowIndex": 0, "columnIndex": 2, "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, + 5.7375, 3.109, 5.4222, 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": + 1, "columnIndex": 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, + 3.3181, 1.0833, 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", "rowIndex": + 1, "columnIndex": 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, + 3.3191, 3.2597, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.99", + "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "B", + "rowIndex": 2, "columnIndex": 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, + 1.1639, 3.5309, 1.0944, 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", + "rowIndex": 2, "columnIndex": 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, + 3.4069, 3.5323, 3.2542, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "140.67", + "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "C", + "rowIndex": 3, "columnIndex": 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 3, "columnIndex": 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, + 3.4069, 3.7424, 3.2486, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "150.66", + "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "D", + "rowIndex": 4, "columnIndex": 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "10", + "rowIndex": 4, "columnIndex": 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, + 3.4069, 3.9524, 3.2597, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, + 5.8639, 3.9524, 5.4236, 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "E", + "rowIndex": 5, "columnIndex": 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, + 1.1528, 4.1615, 1.0944, 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "40", + "rowIndex": 5, "columnIndex": 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, + 3.4069, 4.1628, 3.2486, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", + "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, + 5.8639, 4.1628, 5.4236, 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "F", + "rowIndex": 6, "columnIndex": 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, + 1.15, 4.3715, 1.0944, 4.3715], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "60", + "rowIndex": 6, "columnIndex": 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, + 3.4069, 4.3726, 3.2528, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "120.00", + "rowIndex": 6, "columnIndex": 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, + 5.8639, 4.3726, 5.4236, 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "G", + "rowIndex": 7, "columnIndex": 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, + 1.1736, 4.5826, 1.0875, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "80", + "rowIndex": 7, "columnIndex": 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, + 3.4069, 4.5826, 3.2514, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "220.00", + "rowIndex": 7, "columnIndex": 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, + 5.8639, 4.5826, 5.4181, 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": + 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 6676cc69-9882-417c-9a82-8849e1507a7f - content-length: '17652' + apim-request-id: 812797df-81a5-4f24-a25b-3b453a057f36 + content-length: '17142' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:34 GMT + date: Mon, 14 Sep 2020 20:22:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/8771b582-f165-449c-bcfe-469a4139c72f/analyzeresults/d0940597-4dd9-4c82-97fe-3749296ee9b8 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f36d27f3-479b-4596-b7ed-cc6364938665/analyzeresults/cda35ec2-0bc5-4b4c-944c-9d6bb751db53 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml index 56ea7218de75..be4d49b83a79 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_labeled_transform.yaml @@ -3,182 +3,163 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '299' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 1c1068bf-890c-4947-a852-b0b1dd112731 + apim-request-id: fa908fc7-fe7f-41a8-8e6f-9ca14284e413 content-length: '0' - date: Fri, 10 Jul 2020 18:49:36 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39 + date: Mon, 14 Sep 2020 20:21:56 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '855' + x-envoy-upstream-service-time: '38' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "223aa816-b6cc-4e33-90ef-f2bace2dee39", "status": - "ready", "createdDateTime": "2020-07-10T18:49:36Z", "lastUpdatedDateTime": - "2020-07-10T18:49:39Z"}, "trainResult": {"averageModelAccuracy": 0.971, "trainingDocuments": - [{"documentName": "multi1.pdf", "pages": 2, "status": "succeeded"}, {"documentName": - "multi2.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi3.pdf", - "pages": 2, "status": "succeeded"}, {"documentName": "multi4.pdf", "pages": - 2, "status": "succeeded"}, {"documentName": "multi5.pdf", "pages": 2, "status": - "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": 1.0}, {"fieldName": - "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", "accuracy": 1.0}, - {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", "accuracy": - 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", "accuracy": - 1.0}], "errors": []}}' + string: '{"modelInfo": {"modelId": "78e7ca6c-707f-4274-a1da-247f74a2f019", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:21:56Z", + "lastUpdatedDateTime": "2020-09-14T20:21:59Z"}, "trainResult": {"averageModelAccuracy": + 0.971, "trainingDocuments": [{"documentName": "multi1.pdf", "pages": 2, "status": + "succeeded"}, {"documentName": "multi2.pdf", "pages": 2, "status": "succeeded"}, + {"documentName": "multi3.pdf", "pages": 2, "status": "succeeded"}, {"documentName": + "multi4.pdf", "pages": 2, "status": "succeeded"}, {"documentName": "multi5.pdf", + "pages": 2, "status": "succeeded"}], "fields": [{"fieldName": "Bronze", "accuracy": + 1.0}, {"fieldName": "CompanyName", "accuracy": 0.8}, {"fieldName": "Contact", + "accuracy": 1.0}, {"fieldName": "Full", "accuracy": 1.0}, {"fieldName": "Gold", + "accuracy": 1.0}, {"fieldName": "Half", "accuracy": 1.0}, {"fieldName": "Silver", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: e718b2fd-5046-4e6c-8f10-28ca39f876e0 + apim-request-id: 66becc29-0ee6-4555-a1ea-76eb29a7fbef content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:41 GMT + date: Mon, 14 Sep 2020 20:22:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: + Accept: + - application/json Content-Length: - '228' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: db3e367a-513b-49b1-9693-1e6730f0a6df + apim-request-id: c0bb003b-8998-437a-85be-e6205e3699b2 content-length: '0' - date: Fri, 10 Jul 2020 18:49:41 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 + date: Mon, 14 Sep 2020 20:22:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyzeresults/355d98fc-36a3-4277-a672-f57416d84832 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '147' + x-envoy-upstream-service-time: '46' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyzeresults/355d98fc-36a3-4277-a672-f57416d84832 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:42Z", - "lastUpdatedDateTime": "2020-07-10T18:49:46Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:22:01Z", + "lastUpdatedDateTime": "2020-09-14T20:22:06Z"}' headers: - apim-request-id: ccdd0645-3606-4655-aea7-595c3fcaa81d + apim-request-id: 69fc666e-d06d-4e97-b8a9-1f79bf7f0bf5 content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:47 GMT + date: Mon, 14 Sep 2020 20:22:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyzeresults/355d98fc-36a3-4277-a672-f57416d84832 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyzeresults/355d98fc-36a3-4277-a672-f57416d84832 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:49:42Z", - "lastUpdatedDateTime": "2020-07-10T18:49:46Z"}' - headers: - apim-request-id: 5a73f9c7-5cd1-4337-bb67-c86070b20a0b - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:52 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '927' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 - response: - body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:49:42Z", - "lastUpdatedDateTime": "2020-07-10T18:49:54Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, - 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": - [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, - 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, - 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": - 1}]}, {"boundingBox": [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, - 2.005], "text": "Vendor Registration", "words": [{"boundingBox": [2.2268, - 1.5733, 3.703, 1.5733, 3.703, 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": - 1}, {"boundingBox": [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, - 2.005], "text": "Registration", "confidence": 1}]}, {"boundingBox": [1.0078, - 2.5846, 7.0776, 2.5846, 7.0776, 2.7293, 1.0078, 2.7293], "text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "words": [{"boundingBox": [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, - 1.0078, 2.7013], "text": "Contoso", "confidence": 1}, {"boundingBox": [1.6125, - 2.5856, 1.843, 2.5856, 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": - 1}, {"boundingBox": [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, - 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [2.7122, - 2.5852, 2.9307, 2.5852, 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": - 1}, {"boundingBox": [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, - 2.7013], "text": "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, - 3.4704, 2.5852, 3.4704, 2.7013, 3.1987, 2.7013], "text": "held", "confidence": - 1}, {"boundingBox": [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], - "text": "on", "confidence": 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, - 4.0422, 2.7293, 3.7498, 2.7293], "text": "May", "confidence": 1}, {"boundingBox": - [4.0877, 2.5914, 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": - "28-29,", "confidence": 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, - 4.884, 2.7017, 4.5586, 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": - [4.9351, 2.6014, 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": - "at", "confidence": 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, - 2.7013, 5.1033, 2.7013], "text": "the", "confidence": 1}, {"boundingBox": - [5.3787, 2.5852, 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": - "Elm", "confidence": 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, - 6.4263, 2.7013, 5.6624, 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": - [6.4796, 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": - "Center", "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, - 7.0776, 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:01Z", + "lastUpdatedDateTime": "2020-09-14T20:22:09Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, + 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": + [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": + "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, + 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": + [2.2268, 1.5733, 6.2379, 1.5733, 6.2379, 2.005, 2.2268, 2.005], "text": "Vendor + Registration", "words": [{"boundingBox": [2.2268, 1.5733, 3.703, 1.5733, 3.703, + 1.9207, 2.2268, 1.9207], "text": "Vendor", "confidence": 1}, {"boundingBox": + [3.8661, 1.5883, 6.2379, 1.5883, 6.2379, 2.005, 3.8661, 2.005], "text": "Registration", + "confidence": 1}]}, {"boundingBox": [1.0078, 2.5846, 7.0776, 2.5846, 7.0776, + 2.7293, 1.0078, 2.7293], "text": "Contoso Ltd. Conference will be held on + May 28-29, 2020 at the Elm Conference Center in", "words": [{"boundingBox": + [1.0078, 2.5919, 1.5548, 2.5919, 1.5548, 2.7013, 1.0078, 2.7013], "text": + "Contoso", "confidence": 1}, {"boundingBox": [1.6125, 2.5856, 1.843, 2.5856, + 1.843, 2.7013, 1.6125, 2.7013], "text": "Ltd.", "confidence": 1}, {"boundingBox": + [1.8996, 2.5846, 2.6636, 2.5846, 2.6636, 2.7013, 1.8996, 2.7013], "text": + "Conference", "confidence": 1}, {"boundingBox": [2.7122, 2.5852, 2.9307, 2.5852, + 2.9307, 2.7003, 2.7122, 2.7003], "text": "will", "confidence": 1}, {"boundingBox": + [2.9922, 2.5852, 3.1419, 2.5852, 3.1419, 2.7013, 2.9922, 2.7013], "text": + "be", "confidence": 1}, {"boundingBox": [3.1987, 2.5852, 3.4704, 2.5852, 3.4704, + 2.7013, 3.1987, 2.7013], "text": "held", "confidence": 1}, {"boundingBox": + [3.53, 2.62, 3.6846, 2.62, 3.6846, 2.7013, 3.53, 2.7013], "text": "on", "confidence": + 1}, {"boundingBox": [3.7498, 2.5934, 4.0422, 2.5934, 4.0422, 2.7293, 3.7498, + 2.7293], "text": "May", "confidence": 1}, {"boundingBox": [4.0877, 2.5914, + 4.5042, 2.5914, 4.5042, 2.7236, 4.0877, 2.7236], "text": "28-29,", "confidence": + 1}, {"boundingBox": [4.5586, 2.5914, 4.884, 2.5914, 4.884, 2.7017, 4.5586, + 2.7017], "text": "2020", "confidence": 1}, {"boundingBox": [4.9351, 2.6014, + 5.0577, 2.6014, 5.0577, 2.7013, 4.9351, 2.7013], "text": "at", "confidence": + 1}, {"boundingBox": [5.1033, 2.5852, 5.3202, 2.5852, 5.3202, 2.7013, 5.1033, + 2.7013], "text": "the", "confidence": 1}, {"boundingBox": [5.3787, 2.5852, + 5.6051, 2.5852, 5.6051, 2.7003, 5.3787, 2.7003], "text": "Elm", "confidence": + 1}, {"boundingBox": [5.6624, 2.5846, 6.4263, 2.5846, 6.4263, 2.7013, 5.6624, + 2.7013], "text": "Conference", "confidence": 1}, {"boundingBox": [6.4796, + 2.5919, 6.9234, 2.5919, 6.9234, 2.7013, 6.4796, 2.7013], "text": "Center", + "confidence": 1}, {"boundingBox": [6.9765, 2.5905, 7.0776, 2.5905, 7.0776, + 2.7003, 6.9765, 2.7003], "text": "in", "confidence": 1}]}, {"boundingBox": [1.014, 2.8029, 7.3457, 2.8029, 7.3457, 2.9478, 1.014, 2.9478], "text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "words": [{"boundingBox": [1.014, 2.8036, 1.4242, 2.8036, 1.4242, @@ -464,35 +445,39 @@ interactions: 8.6811], "text": "guide", "confidence": 1}]}, {"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, 3.2075, 8.8563], "text": "advertisements", "words": [{"boundingBox": [3.2075, 8.7406, 4.2429, 8.7406, 4.2429, 8.8563, - 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}]}, {"page": - 2, "language": "en", "angle": 0, "width": 8.5, "height": 11, "unit": "inch", - "lines": [{"boundingBox": [6.1276, 1.0667, 7.4833, 1.0667, 7.4833, 1.2403, - 6.1276, 1.2403], "text": "Vendor #:121", "words": [{"boundingBox": [6.1276, - 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, 1.2403], "text": "Vendor", - "confidence": 1}, {"boundingBox": [6.9307, 1.0759, 7.4833, 1.0759, 7.4833, - 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": 1}]}, {"boundingBox": - [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, 2.3315], "text": "Vendor - Details:", "words": [{"boundingBox": [1.0044, 2.1778, 1.6496, 2.1778, 1.6496, - 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": 1}, {"boundingBox": - [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], "text": "Details:", - "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, 2.7686, 3.3477, - 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge Video", "words": - [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, 1.0065, 2.9126], - "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, 2.7764, 2.1376, - 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": 1}, - {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, 2.9128], - "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, 2.7689, 3.3477, - 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", "confidence": 1}]}, - {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, 3.2428, 1.0065, 3.2428], - "text": "Contact: Jamie@southridgevideo.com", "words": [{"boundingBox": [1.0065, - 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], "text": "Contact:", - "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, 3.0986, 3.5766, - 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", "confidence": - 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, 3.5744, 1.0115, - 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": [1.0115, - 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": "Preferred", - "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, 2.2978, - 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": + 3.2075, 8.8563], "text": "advertisements", "confidence": 1}]}], "selectionMarks": + [{"boundingBox": [0, 10.2725, 1.0372, 10.2725, 1.0372, 10.9925, 0, 10.9925], + "confidence": 0.69, "state": "unselected"}, {"boundingBox": [0, 10.6019, 1.5095, + 10.6019, 1.5095, 10.9983, 0, 10.9983], "confidence": 0.69, "state": "unselected"}, + {"boundingBox": [2.9381, 6.9634, 3.0388, 6.9634, 3.0388, 7.0736, 2.9381, 7.0736], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "lines": [{"boundingBox": [6.1276, 1.0667, + 7.4833, 1.0667, 7.4833, 1.2403, 6.1276, 1.2403], "text": "Vendor #:121", "words": + [{"boundingBox": [6.1276, 1.0667, 6.8657, 1.0667, 6.8657, 1.2403, 6.1276, + 1.2403], "text": "Vendor", "confidence": 1}, {"boundingBox": [6.9307, 1.0759, + 7.4833, 1.0759, 7.4833, 1.2391, 6.9307, 1.2391], "text": "#:121", "confidence": + 1}]}, {"boundingBox": [1.0044, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.0044, + 2.3315], "text": "Vendor Details:", "words": [{"boundingBox": [1.0044, 2.1778, + 1.6496, 2.1778, 1.6496, 2.3315, 1.0044, 2.3315], "text": "Vendor", "confidence": + 1}, {"boundingBox": [1.7239, 2.1771, 2.35, 2.1771, 2.35, 2.3315, 1.7239, 2.3315], + "text": "Details:", "confidence": 1}]}, {"boundingBox": [1.0065, 2.7686, 3.3477, + 2.7686, 3.3477, 2.9128, 1.0065, 2.9128], "text": "Company Name: Southridge + Video", "words": [{"boundingBox": [1.0065, 2.7749, 1.651, 2.7749, 1.651, 2.9126, + 1.0065, 2.9126], "text": "Company", "confidence": 1}, {"boundingBox": [1.7019, + 2.7764, 2.1376, 2.7764, 2.1376, 2.885, 1.7019, 2.885], "text": "Name:", "confidence": + 1}, {"boundingBox": [2.1925, 2.7686, 2.9184, 2.7686, 2.9184, 2.9128, 2.1925, + 2.9128], "text": "Southridge", "confidence": 1}, {"boundingBox": [2.9691, + 2.7689, 3.3477, 2.7689, 3.3477, 2.8847, 2.9691, 2.8847], "text": "Video", + "confidence": 1}]}, {"boundingBox": [1.0065, 3.0986, 3.5766, 3.0986, 3.5766, + 3.2428, 1.0065, 3.2428], "text": "Contact: Jamie@southridgevideo.com", "words": + [{"boundingBox": [1.0065, 3.1049, 1.5706, 3.1049, 1.5706, 3.215, 1.0065, 3.215], + "text": "Contact:", "confidence": 1}, {"boundingBox": [1.6205, 3.0986, 3.5766, + 3.0986, 3.5766, 3.2428, 1.6205, 3.2428], "text": "Jamie@southridgevideo.com", + "confidence": 1}]}, {"boundingBox": [1.0115, 3.4296, 2.6542, 3.4296, 2.6542, + 3.5744, 1.0115, 3.5744], "text": "Preferred Package: Gold", "words": [{"boundingBox": + [1.0115, 3.4296, 1.6499, 3.4296, 1.6499, 3.5467, 1.0115, 3.5467], "text": + "Preferred", "confidence": 1}, {"boundingBox": [1.7092, 3.4302, 2.2978, 3.4302, + 2.2978, 3.5744, 1.7092, 3.5744], "text": "Package:", "confidence": 1}, {"boundingBox": [2.3557, 3.4302, 2.6542, 3.4302, 2.6542, 3.5463, 2.3557, 3.5463], "text": "Gold", "confidence": 1}]}, {"boundingBox": [1.0052, 3.7537, 2.4783, 3.7537, 2.4783, 3.9043, 1.0052, 3.9043], "text": "Special Requests: N/a", "words": @@ -500,12 +485,17 @@ interactions: "text": "Special", "confidence": 1}, {"boundingBox": [1.5342, 3.7684, 2.1899, 3.7684, 2.1899, 3.9043, 1.5342, 3.9043], "text": "Requests:", "confidence": 1}, {"boundingBox": [2.254, 3.7537, 2.4783, 3.7537, 2.4783, 3.8976, 2.254, - 3.8976], "text": "N/a", "confidence": 1}]}]}], "pageResults": [{"page": 1, - "tables": [{"rows": 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Package", "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, - 4.8617, 1.0033, 4.8617], "elements": ["#/readResults/0/lines/10/words/0"]}, - {"rowIndex": 0, "columnIndex": 1, "text": "Included", "boundingBox": [2.625, - 4.6517, 5.75, 4.6517, 5.75, 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, + 3.8976], "text": "N/a", "confidence": 1}]}], "selectionMarks": [{"boundingBox": + [0.0024, 9.869, 1.0826, 9.869, 1.0826, 10.9955, 0.0024, 10.9955], "confidence": + 0.833, "state": "unselected"}, {"boundingBox": [7.6562, 1.0157, 8.5, 1.0157, + 8.5, 2.8293, 7.6562, 2.8293], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [0.0008, 10.4758, 1.8164, 10.4758, 1.8164, 10.9978, 0.0008, 10.9978], "confidence": + 0.6, "state": "unselected"}]}], "pageResults": [{"page": 1, "tables": [{"rows": + 20, "columns": 3, "cells": [{"rowIndex": 0, "columnIndex": 0, "text": "Package", + "boundingBox": [1.0033, 4.6517, 2.625, 4.6517, 2.625, 4.8617, 1.0033, 4.8617], + "elements": ["#/readResults/0/lines/10/words/0"]}, {"rowIndex": 0, "columnIndex": + 1, "text": "Included", "boundingBox": [2.625, 4.6517, 5.75, 4.6517, 5.75, + 4.8617, 2.625, 4.8617], "elements": ["#/readResults/0/lines/11/words/0"]}, {"rowIndex": 0, "columnIndex": 2, "text": "Price", "boundingBox": [5.75, 4.6517, 7.4967, 4.6517, 7.4967, 4.8617, 5.75, 4.8617], "elements": ["#/readResults/0/lines/12/words/0"]}, {"rowIndex": 1, "columnIndex": 0, "text": "Gold Sponsor", "boundingBox": [1.0033, @@ -594,39 +584,40 @@ interactions: "#/readResults/0/lines/55/words/3", "#/readResults/0/lines/55/words/4"]}, {"rowIndex": 19, "columnIndex": 1, "text": "advertisements", "boundingBox": [2.625, 8.7083, 5.75, 8.7083, 5.75, 8.905, 2.625, 8.905], "elements": ["#/readResults/0/lines/56/words/0"]}]}]}, - {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:form", - "pageRange": [1, 2], "fields": {"CompanyName": {"type": "string", "valueString": - "Southridge Video", "text": "Southridge Video", "page": 2, "boundingBox": - [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, 2.915], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/1/lines/2/words/2", "#/analyzeResult/readResults/1/lines/2/words/3"]}, - "Bronze": {"type": "string", "valueString": "$1,000", "text": "$1,000", "page": - 1, "boundingBox": [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/37/words/0"]}, + {"page": 2, "tables": []}], "documentResults": [{"docType": "custom:78e7ca6c-707f-4274-a1da-247f74a2f019", + "modelId": "78e7ca6c-707f-4274-a1da-247f74a2f019", "pageRange": [1, 2], "fields": + {"Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", + "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, + 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/readResults/1/lines/3/words/1"]}, + "Half": {"type": "string", "valueString": "$350", "text": "$350", "page": + 1, "boundingBox": [5.835, 8.305, 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": + 1.0, "elements": ["#/readResults/0/lines/53/words/0"]}, "Bronze": {"type": + "string", "valueString": "$1,000", "text": "$1,000", "page": 1, "boundingBox": + [5.835, 6.825, 6.285, 6.825, 6.285, 6.97, 5.835, 6.97], "confidence": 1.0, + "elements": ["#/readResults/0/lines/37/words/0"]}, "Gold": {"type": "string", + "valueString": "$1,500", "text": "$1,500", "page": 1, "boundingBox": [5.835, + 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": 1.0, "elements": + ["#/readResults/0/lines/16/words/0"]}, "Full": {"type": "string", "valueString": + "$600", "text": "$600", "page": 1, "boundingBox": [5.835, 7.67, 6.16, 7.67, + 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": ["#/readResults/0/lines/46/words/0"]}, "Silver": {"type": "string", "valueString": "$1,200", "text": "$1,200", "page": 1, "boundingBox": [5.835, 5.97, 6.285, 5.97, 6.285, 6.115, 5.835, 6.115], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/27/words/0"]}, - "Gold": {"type": "string", "valueString": "$1,500", "text": "$1,500", "page": - 1, "boundingBox": [5.835, 4.9, 6.285, 4.9, 6.285, 5.045, 5.835, 5.045], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/16/words/0"]}, "Full": - {"type": "string", "valueString": "$600", "text": "$600", "page": 1, "boundingBox": - [5.835, 7.67, 6.16, 7.67, 6.16, 7.815, 5.835, 7.815], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/46/words/0"]}, "Half": {"type": "string", - "valueString": "$350", "text": "$350", "page": 1, "boundingBox": [5.835, 8.305, - 6.16, 8.305, 6.16, 8.45, 5.835, 8.45], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/53/words/0"]}, - "Contact": {"type": "string", "valueString": "Jamie@southridgevideo.com", - "text": "Jamie@southridgevideo.com", "page": 2, "boundingBox": [1.62, 3.1, - 3.575, 3.1, 3.575, 3.245, 1.62, 3.245], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/1/lines/3/words/1"]}}}], - "errors": []}}' + "confidence": 1.0, "elements": ["#/readResults/0/lines/27/words/0"]}, "CompanyName": + {"type": "string", "valueString": "Southridge Video", "text": "Southridge + Video", "page": 2, "boundingBox": [2.19, 2.77, 3.35, 2.77, 3.35, 2.915, 2.19, + 2.915], "confidence": 1.0, "elements": ["#/readResults/1/lines/2/words/2", + "#/readResults/1/lines/2/words/3"]}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: - apim-request-id: 4c59a012-4c48-4ad5-b1af-960011840798 - content-length: '34159' + apim-request-id: 019f6468-b4d1-475a-b701-3ac6e47db9ba + content-length: '34822' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:58 GMT + date: Mon, 14 Sep 2020 20:22:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '164' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/223aa816-b6cc-4e33-90ef-f2bace2dee39/analyzeresults/0e899026-370b-444b-9349-94aed99a1fc3 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78e7ca6c-707f-4274-a1da-247f74a2f019/analyzeresults/355d98fc-36a3-4277-a672-f57416d84832 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml index 4c830a7b305c..41cde1867de2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_form_multipage_vendor_set_unlabeled_transform.yaml @@ -3,137 +3,115 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: b6ee1833-de09-4450-b244-ee5e3b0da71e + apim-request-id: 92d6c71f-801c-48f1-abd1-4a2b141f2dec content-length: '0' - date: Fri, 10 Jul 2020 18:49:58 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da + date: Mon, 14 Sep 2020 20:21:33 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": - "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": - "2020-07-10T18:49:59Z"}}' - headers: - apim-request-id: b16ee8bb-2d4d-4e0e-b040-3164a4233d37 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:09 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '5813' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": - "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": - "2020-07-10T18:49:59Z"}}' + string: '{"modelInfo": {"modelId": "012fe63e-d924-4b66-a7bf-af6c471b6ad4", "status": + "creating", "createdDateTime": "2020-09-14T20:21:33Z", "lastUpdatedDateTime": + "2020-09-14T20:21:33Z"}}' headers: - apim-request-id: cb76be84-d1cf-493b-9716-b1d73dcb99fe + apim-request-id: 1e903b0f-d95b-4321-b86d-494af868ed7b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:14 GMT + date: Mon, 14 Sep 2020 20:21:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": - "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": - "2020-07-10T18:49:59Z"}}' + string: '{"modelInfo": {"modelId": "012fe63e-d924-4b66-a7bf-af6c471b6ad4", "status": + "creating", "createdDateTime": "2020-09-14T20:21:33Z", "lastUpdatedDateTime": + "2020-09-14T20:21:33Z"}}' headers: - apim-request-id: a36a3a0a-8ffd-48e9-b0e6-8b110ec1849d + apim-request-id: e06436db-a49d-4562-b9bf-e22ea38f7579 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:19 GMT + date: Mon, 14 Sep 2020 20:21:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": - "creating", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": - "2020-07-10T18:49:59Z"}}' + string: '{"modelInfo": {"modelId": "012fe63e-d924-4b66-a7bf-af6c471b6ad4", "status": + "creating", "createdDateTime": "2020-09-14T20:21:33Z", "lastUpdatedDateTime": + "2020-09-14T20:21:33Z"}}' headers: - apim-request-id: f09f18e0-ef6c-496d-a4f8-ccfc0b02f94b + apim-request-id: 3322a28b-3015-4de8-b77f-bceec431807d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:24 GMT + date: Mon, 14 Sep 2020 20:21:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a9e06b8e-99e1-4362-9063-a1807976c5da", "status": - "ready", "createdDateTime": "2020-07-10T18:49:59Z", "lastUpdatedDateTime": - "2020-07-10T18:50:10Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference + string: '{"modelInfo": {"modelId": "012fe63e-d924-4b66-a7bf-af6c471b6ad4", "status": + "ready", "createdDateTime": "2020-09-14T20:21:33Z", "lastUpdatedDateTime": + "2020-09-14T20:21:53Z"}, "keys": {"clusters": {"0": ["Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center in", "Included", "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "Package", "Price", "Rates:", "Vendor #:", "Vendor Registration", @@ -148,535 +126,523 @@ interactions: "multi5.pdf", "pages": 2, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 22039a7d-802b-4672-abf9-9758afb662a9 + apim-request-id: ddf11b77-8e66-4d06-bd51-0bfdf52c708f content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:30 GMT + date: Mon, 14 Sep 2020 20:21:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: + Accept: + - application/json Content-Length: - '228' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 3a898168-0278-4627-a007-9ca69bf87d9a + apim-request-id: 85f80475-7421-4de4-ad92-531da998a375 content-length: '0' - date: Fri, 10 Jul 2020 18:50:30 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 + date: Mon, 14 Sep 2020 20:21:54 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '82' + x-envoy-upstream-service-time: '43' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyze?includeTextDetails=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T20:21:54Z", "lastUpdatedDateTime": + "2020-09-14T20:21:55Z", "analyzeResult": null}' + headers: + apim-request-id: b835b17c-0843-40bb-96b7-a1d95bb508ab + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:21:59 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '14' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:50:30Z", "lastUpdatedDateTime": - "2020-07-10T18:50:34Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:21:54Z", "lastUpdatedDateTime": + "2020-09-14T20:21:55Z", "analyzeResult": null}' headers: - apim-request-id: 11fd15be-d187-419c-8cca-bdb74b3dc867 + apim-request-id: 1f837b46-5a1b-403d-a961-bea45deb7911 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:35 GMT + date: Mon, 14 Sep 2020 20:22:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:30Z", - "lastUpdatedDateTime": "2020-07-10T18:50:38Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1236, 1.0014, - 7.1167, 1.0014, 7.1167, 1.3056, 6.1236, 1.3056], "words": [{"text": "Vendor", - "boundingBox": [6.1236, 1.0014, 6.8694, 1.0014, 6.8694, 1.3056, 6.1236, 1.3056]}, - {"text": "#:", "boundingBox": [6.9264, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.9264, 1.3056]}]}, {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, - 1.0014, 7.4958, 1.3056, 7.1167, 1.3056], "words": [{"text": "121", "boundingBox": - [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, 1.3056, 7.1167, 1.3056]}]}, {"text": - "Vendor Registration", "boundingBox": [2.2181, 1.4417, 6.2736, 1.4417, 6.2736, - 2.05, 2.2181, 2.05], "words": [{"text": "Vendor", "boundingBox": [2.2181, - 1.4417, 3.7111, 1.4417, 3.7111, 2.05, 2.2181, 2.05]}, {"text": "Registration", - "boundingBox": [3.8236, 1.4417, 6.2736, 1.4417, 6.2736, 2.05, 3.8236, 2.05]}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:21:54Z", + "lastUpdatedDateTime": "2020-09-14T20:22:07Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, + 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": "Vendor", + "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, 6.1278, 1.2403]}, + {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, 7.1514, 1.2392, + 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, 1.076, 7.4833, + 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392]}]}, {"text": + "Vendor Registration", "boundingBox": [2.2264, 1.5827, 6.2375, 1.5827, 6.2375, + 1.9739, 2.2264, 1.9739], "words": [{"text": "Vendor", "boundingBox": [2.2264, + 1.5733, 3.7028, 1.5733, 3.7028, 1.9208, 2.2264, 1.9208]}, {"text": "Registration", + "boundingBox": [3.8667, 1.5882, 6.2375, 1.5882, 6.2375, 2.0049, 3.8667, 2.0049]}]}, {"text": "Contoso Ltd. Conference will be held on May 28-29, 2020 at the Elm - Conference Center in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, - 2.7444, 1.0, 2.7444], "words": [{"text": "Contoso", "boundingBox": [1.0, 2.5417, - 1.5625, 2.5417, 1.5625, 2.7444, 1.0, 2.7444]}, {"text": "Ltd.", "boundingBox": - [1.5986, 2.5417, 1.8556, 2.5417, 1.8556, 2.7444, 1.5986, 2.7444]}, {"text": - "Conference", "boundingBox": [1.8917, 2.5417, 2.6708, 2.5417, 2.6708, 2.7444, - 1.8917, 2.7444]}, {"text": "will", "boundingBox": [2.7083, 2.5417, 2.9431, - 2.5417, 2.9431, 2.7444, 2.7083, 2.7444]}, {"text": "be", "boundingBox": [2.9792, - 2.5417, 3.15, 2.5417, 3.15, 2.7444, 2.9792, 2.7444]}, {"text": "held", "boundingBox": - [3.1861, 2.5417, 3.4833, 2.5417, 3.4833, 2.7444, 3.1861, 2.7444]}, {"text": - "on", "boundingBox": [3.5222, 2.5417, 3.6972, 2.5417, 3.6972, 2.7444, 3.5222, - 2.7444]}, {"text": "May", "boundingBox": [3.7389, 2.5417, 4.0444, 2.5417, - 4.0444, 2.7444, 3.7389, 2.7444]}, {"text": "28-29,", "boundingBox": [4.0806, - 2.5417, 4.5125, 2.5417, 4.5125, 2.7444, 4.0806, 2.7444]}, {"text": "2020", - "boundingBox": [4.5514, 2.5417, 4.8889, 2.5417, 4.8889, 2.7444, 4.5514, 2.7444]}, - {"text": "at", "boundingBox": [4.9278, 2.5417, 5.0625, 2.5417, 5.0625, 2.7444, - 4.9278, 2.7444]}, {"text": "the", "boundingBox": [5.1, 2.5417, 5.3278, 2.5417, - 5.3278, 2.7444, 5.1, 2.7444]}, {"text": "Elm", "boundingBox": [5.3653, 2.5417, - 5.6167, 2.5417, 5.6167, 2.7444, 5.3653, 2.7444]}, {"text": "Conference", "boundingBox": - [5.6542, 2.5417, 6.4347, 2.5417, 6.4347, 2.7444, 5.6542, 2.7444]}, {"text": - "Center", "boundingBox": [6.4722, 2.5417, 6.9264, 2.5417, 6.9264, 2.7444, - 6.4722, 2.7444]}, {"text": "in", "boundingBox": [6.9653, 2.5417, 7.0903, 2.5417, - 7.0903, 2.7444, 6.9653, 2.7444]}]}, {"text": "Maple City, Massachusetts. The + Conference Center in", "boundingBox": [1.0069, 2.5894, 7.0778, 2.5894, 7.0778, + 2.7043, 1.0069, 2.7043], "words": [{"text": "Contoso", "boundingBox": [1.0069, + 2.592, 1.5556, 2.592, 1.5556, 2.7014, 1.0069, 2.7014]}, {"text": "Ltd.", "boundingBox": + [1.6125, 2.5858, 1.8431, 2.5858, 1.8431, 2.7014, 1.6125, 2.7014]}, {"text": + "Conference", "boundingBox": [1.9, 2.5847, 2.6639, 2.5847, 2.6639, 2.7014, + 1.9, 2.7014]}, {"text": "will", "boundingBox": [2.7125, 2.5851, 2.9306, 2.5851, + 2.9306, 2.7003, 2.7125, 2.7003]}, {"text": "be", "boundingBox": [2.9917, 2.5851, + 3.1417, 2.5851, 3.1417, 2.7014, 2.9917, 2.7014]}, {"text": "held", "boundingBox": + [3.1986, 2.5851, 3.4708, 2.5851, 3.4708, 2.7014, 3.1986, 2.7014]}, {"text": + "on", "boundingBox": [3.5306, 2.6201, 3.6847, 2.6201, 3.6847, 2.7014, 3.5306, + 2.7014]}, {"text": "May", "boundingBox": [3.75, 2.5934, 4.0431, 2.5934, 4.0431, + 2.7292, 3.75, 2.7292]}, {"text": "28-29,", "boundingBox": [4.0875, 2.5913, + 4.5042, 2.5913, 4.5042, 2.7236, 4.0875, 2.7236]}, {"text": "2020", "boundingBox": + [4.5583, 2.5913, 4.8833, 2.5913, 4.8833, 2.7017, 4.5583, 2.7017]}, {"text": + "at", "boundingBox": [4.9347, 2.6014, 5.0569, 2.6014, 5.0569, 2.7014, 4.9347, + 2.7014]}, {"text": "the", "boundingBox": [5.1028, 2.5851, 5.3208, 2.5851, + 5.3208, 2.7014, 5.1028, 2.7014]}, {"text": "Elm", "boundingBox": [5.3792, + 2.5851, 5.6056, 2.5851, 5.6056, 2.7003, 5.3792, 2.7003]}, {"text": "Conference", + "boundingBox": [5.6625, 2.5847, 6.4264, 2.5847, 6.4264, 2.7014, 5.6625, 2.7014]}, + {"text": "Center", "boundingBox": [6.4792, 2.592, 6.9236, 2.592, 6.9236, 2.7014, + 6.4792, 2.7014]}, {"text": "in", "boundingBox": [6.9764, 2.5906, 7.0778, 2.5906, + 7.0778, 2.7003, 6.9764, 2.7003]}]}, {"text": "Maple City, Massachusetts. The conference has sold out of its 1,500 tickets, with a 400 person", "boundingBox": - [1.0, 2.7597, 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "words": [{"text": - "Maple", "boundingBox": [1.0, 2.7597, 1.4319, 2.7597, 1.4319, 2.9625, 1.0, - 2.9625]}, {"text": "City,", "boundingBox": [1.4681, 2.7597, 1.7694, 2.7597, - 1.7694, 2.9625, 1.4681, 2.9625]}, {"text": "Massachusetts.", "boundingBox": - [1.8056, 2.7597, 2.85, 2.7597, 2.85, 2.9625, 1.8056, 2.9625]}, {"text": "The", - "boundingBox": [2.8875, 2.7597, 3.1403, 2.7597, 3.1403, 2.9625, 2.8875, 2.9625]}, - {"text": "conference", "boundingBox": [3.1764, 2.7597, 3.9375, 2.7597, 3.9375, - 2.9625, 3.1764, 2.9625]}, {"text": "has", "boundingBox": [3.975, 2.7597, 4.2083, - 2.7597, 4.2083, 2.9625, 3.975, 2.9625]}, {"text": "sold", "boundingBox": [4.2458, - 2.7597, 4.5222, 2.7597, 4.5222, 2.9625, 4.2458, 2.9625]}, {"text": "out", - "boundingBox": [4.5625, 2.7597, 4.7917, 2.7597, 4.7917, 2.9625, 4.5625, 2.9625]}, - {"text": "of", "boundingBox": [4.8306, 2.7597, 4.9681, 2.7597, 4.9681, 2.9625, - 4.8306, 2.9625]}, {"text": "its", "boundingBox": [5.0056, 2.7597, 5.1667, - 2.7597, 5.1667, 2.9625, 5.0056, 2.9625]}, {"text": "1,500", "boundingBox": - [5.2028, 2.7597, 5.5819, 2.7597, 5.5819, 2.9625, 5.2028, 2.9625]}, {"text": - "tickets,", "boundingBox": [5.6194, 2.7597, 6.1042, 2.7597, 6.1042, 2.9625, - 5.6194, 2.9625]}, {"text": "with", "boundingBox": [6.1417, 2.7597, 6.4431, - 2.7597, 6.4431, 2.9625, 6.1417, 2.9625]}, {"text": "a", "boundingBox": [6.4806, - 2.7597, 6.5597, 2.7597, 6.5597, 2.9625, 6.4806, 2.9625]}, {"text": "400", - "boundingBox": [6.5972, 2.7597, 6.85, 2.7597, 6.85, 2.9625, 6.5972, 2.9625]}, - {"text": "person", "boundingBox": [6.8875, 2.7597, 7.3583, 2.7597, 7.3583, - 2.9625, 6.8875, 2.9625]}]}, {"text": "waitlist. Vendor applications are being - accepted through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, - 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "words": [{"text": "waitlist.", - "boundingBox": [1.0, 2.9806, 1.5319, 2.9806, 1.5319, 3.1833, 1.0, 3.1833]}, - {"text": "Vendor", "boundingBox": [1.5708, 2.9806, 2.0681, 2.9806, 2.0681, - 3.1833, 1.5708, 3.1833]}, {"text": "applications", "boundingBox": [2.1056, - 2.9806, 2.9208, 2.9806, 2.9208, 3.1833, 2.1056, 3.1833]}, {"text": "are", - "boundingBox": [2.9597, 2.9806, 3.1806, 2.9806, 3.1806, 3.1833, 2.9597, 3.1833]}, - {"text": "being", "boundingBox": [3.2181, 2.9806, 3.5931, 2.9806, 3.5931, - 3.1833, 3.2181, 3.1833]}, {"text": "accepted", "boundingBox": [3.6319, 2.9806, - 4.2458, 2.9806, 4.2458, 3.1833, 3.6319, 3.1833]}, {"text": "through", "boundingBox": - [4.2833, 2.9806, 4.825, 2.9806, 4.825, 3.1833, 4.2833, 3.1833]}, {"text": - "Feb", "boundingBox": [4.8694, 2.9806, 5.1194, 2.9806, 5.1194, 3.1833, 4.8694, - 3.1833]}, {"text": "28,", "boundingBox": [5.1556, 2.9806, 5.3694, 2.9806, - 5.3694, 3.1833, 5.1556, 3.1833]}, {"text": "2020.", "boundingBox": [5.4056, - 2.9806, 5.7875, 2.9806, 5.7875, 3.1833, 5.4056, 3.1833]}, {"text": "Please", - "boundingBox": [5.8264, 2.9806, 6.2611, 2.9806, 6.2611, 3.1833, 5.8264, 3.1833]}, - {"text": "fill", "boundingBox": [6.2986, 2.9806, 6.4667, 2.9806, 6.4667, 3.1833, - 6.2986, 3.1833]}, {"text": "in", "boundingBox": [6.5028, 2.9806, 6.6278, 2.9806, - 6.6278, 3.1833, 6.5028, 3.1833]}, {"text": "the", "boundingBox": [6.6653, - 2.9806, 6.8917, 2.9806, 6.8917, 3.1833, 6.6653, 3.1833]}, {"text": "form", - "boundingBox": [6.9292, 2.9806, 7.2597, 2.9806, 7.2597, 3.1833, 6.9292, 3.1833]}]}, - {"text": "below, and attach a check made out to:", "boundingBox": [1.0, 3.2, - 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "words": [{"text": "below,", "boundingBox": - [1.0, 3.2, 1.4569, 3.2, 1.4569, 3.4028, 1.0, 3.4028]}, {"text": "and", "boundingBox": - [1.4944, 3.2, 1.75, 3.2, 1.75, 3.4028, 1.4944, 3.4028]}, {"text": "attach", - "boundingBox": [1.7889, 3.2, 2.2167, 3.2, 2.2167, 3.4028, 1.7889, 3.4028]}, - {"text": "a", "boundingBox": [2.2542, 3.2, 2.3347, 3.2, 2.3347, 3.4028, 2.2542, - 3.4028]}, {"text": "check", "boundingBox": [2.3722, 3.2, 2.7556, 3.2, 2.7556, - 3.4028, 2.3722, 3.4028]}, {"text": "made", "boundingBox": [2.7958, 3.2, 3.1778, - 3.2, 3.1778, 3.4028, 2.7958, 3.4028]}, {"text": "out", "boundingBox": [3.2181, - 3.2, 3.4472, 3.2, 3.4472, 3.4028, 3.2181, 3.4028]}, {"text": "to:", "boundingBox": - [3.4847, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 3.4847, 3.4028]}]}, {"text": "Contoso - Ltd.", "boundingBox": [1.0, 3.5306, 1.8556, 3.5306, 1.8556, 3.7333, 1.0, 3.7333], - "words": [{"text": "Contoso", "boundingBox": [1.0, 3.5306, 1.5625, 3.5306, - 1.5625, 3.7333, 1.0, 3.7333]}, {"text": "Ltd.", "boundingBox": [1.5986, 3.5306, - 1.8556, 3.5306, 1.8556, 3.7333, 1.5986, 3.7333]}]}, {"text": "2345 Dogwood - Lane", "boundingBox": [1.0, 3.75, 2.3847, 3.75, 2.3847, 3.9528, 1.0, 3.9528], - "words": [{"text": "2345", "boundingBox": [1.0, 3.75, 1.3389, 3.75, 1.3389, - 3.9528, 1.0, 3.9528]}, {"text": "Dogwood", "boundingBox": [1.3764, 3.75, 2.0278, - 3.75, 2.0278, 3.9528, 1.3764, 3.9528]}, {"text": "Lane", "boundingBox": [2.0653, - 3.75, 2.3847, 3.75, 2.3847, 3.9528, 2.0653, 3.9528]}]}, {"text": "Birch, Kansas - 98123", "boundingBox": [1.0, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.0, - 4.1722], "words": [{"text": "Birch,", "boundingBox": [1.0, 3.9694, 1.3861, - 3.9694, 1.3861, 4.1722, 1.0, 4.1722]}, {"text": "Kansas", "boundingBox": [1.4236, - 3.9694, 1.8889, 3.9694, 1.8889, 4.1722, 1.4236, 4.1722]}, {"text": "98123", - "boundingBox": [1.925, 3.9694, 2.3472, 3.9694, 2.3472, 4.1722, 1.925, 4.1722]}]}, - {"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, - 1.0, 4.6264], "words": [{"text": "Rates:", "boundingBox": [1.0, 4.3556, 1.5486, - 4.3556, 1.5486, 4.6264, 1.0, 4.6264]}]}, {"text": "Package", "boundingBox": - [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, 4.8583], "words": - [{"text": "Package", "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, - 4.8583, 1.0778, 4.8583]}]}, {"text": "Included", "boundingBox": [2.6986, 4.6556, - 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583], "words": [{"text": "Included", - "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, 4.8583, 2.6986, 4.8583]}]}, - {"text": "Price", "boundingBox": [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, - 4.8583, 5.8236, 4.8583], "words": [{"text": "Price", "boundingBox": [5.8236, - 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583]}]}, {"text": "Gold - Sponsor", "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, - 1.0778, 5.0681], "words": [{"text": "Gold", "boundingBox": [1.0778, 4.8653, - 1.3958, 4.8653, 1.3958, 5.0681, 1.0778, 5.0681]}, {"text": "Sponsor", "boundingBox": - [1.4361, 4.8653, 1.9861, 4.8653, 1.9861, 5.0681, 1.4361, 5.0681]}]}, {"text": - "Full booth", "boundingBox": [3.2, 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, - 3.2, 5.0764], "words": [{"text": "Full", "boundingBox": [3.2, 4.8736, 3.4417, - 4.8736, 3.4417, 5.0764, 3.2, 5.0764]}, {"text": "booth", "boundingBox": [3.4792, - 4.8736, 3.8847, 4.8736, 3.8847, 5.0764, 3.4792, 5.0764]}]}, {"text": "$1,500", - "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], - "words": [{"text": "$1,500", "boundingBox": [5.825, 4.8653, 6.2889, 4.8653, - 6.2889, 5.0681, 5.825, 5.0681]}]}, {"text": "Pre-keynote thank you", "boundingBox": - [3.2, 5.0861, 4.7389, 5.0861, 4.7389, 5.2889, 3.2, 5.2889], "words": [{"text": - "Pre-keynote", "boundingBox": [3.2, 5.0861, 4.0264, 5.0861, 4.0264, 5.2889, - 3.2, 5.2889]}, {"text": "thank", "boundingBox": [4.0639, 5.0861, 4.45, 5.0861, - 4.45, 5.2889, 4.0639, 5.2889]}, {"text": "you", "boundingBox": [4.4875, 5.0861, - 4.7389, 5.0861, 4.7389, 5.2889, 4.4875, 5.2889]}]}, {"text": "Logo on poster", - "boundingBox": [3.2, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.2, 5.5014], - "words": [{"text": "Logo", "boundingBox": [3.2, 5.2986, 3.5236, 5.2986, 3.5236, - 5.5014, 3.2, 5.5014]}, {"text": "on", "boundingBox": [3.5611, 5.2986, 3.7361, - 5.2986, 3.7361, 5.5014, 3.5611, 5.5014]}, {"text": "poster", "boundingBox": - [3.7764, 5.2986, 4.2125, 5.2986, 4.2125, 5.5014, 3.7764, 5.5014]}]}, {"text": - "Full page ad in program guide", "boundingBox": [3.2, 5.5111, 5.2083, 5.5111, - 5.2083, 5.7139, 3.2, 5.7139], "words": [{"text": "Full", "boundingBox": [3.2, - 5.5111, 3.4417, 5.5111, 3.4417, 5.7139, 3.2, 5.7139]}, {"text": "page", "boundingBox": - [3.4792, 5.5111, 3.8069, 5.5111, 3.8069, 5.7139, 3.4792, 5.7139]}, {"text": - "ad", "boundingBox": [3.8444, 5.5111, 4.0111, 5.5111, 4.0111, 5.7139, 3.8444, - 5.7139]}, {"text": "in", "boundingBox": [4.0486, 5.5111, 4.175, 5.5111, 4.175, - 5.7139, 4.0486, 5.7139]}, {"text": "program", "boundingBox": [4.2125, 5.5111, - 4.7958, 5.5111, 4.7958, 5.7139, 4.2125, 5.7139]}, {"text": "guide", "boundingBox": - [4.8319, 5.5111, 5.2083, 5.5111, 5.2083, 5.7139, 4.8319, 5.7139]}]}, {"text": - "Silver Sponsor", "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "words": [{"text": "Silver", "boundingBox": [1.0778, - 5.9347, 1.4472, 5.9347, 1.4472, 6.1375, 1.0778, 6.1375]}, {"text": "Sponsor", - "boundingBox": [1.4847, 5.9347, 2.0361, 5.9347, 2.0361, 6.1375, 1.4847, 6.1375]}]}, - {"text": "Full booth", "boundingBox": [3.2, 5.9431, 3.8847, 5.9431, 3.8847, - 6.1458, 3.2, 6.1458], "words": [{"text": "Full", "boundingBox": [3.2, 5.9431, - 3.4417, 5.9431, 3.4417, 6.1458, 3.2, 6.1458]}, {"text": "booth", "boundingBox": - [3.4792, 5.9431, 3.8847, 5.9431, 3.8847, 6.1458, 3.4792, 6.1458]}]}, {"text": - "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, - 6.1375], "words": [{"text": "$1,200", "boundingBox": [5.825, 5.9347, 6.2889, - 5.9347, 6.2889, 6.1375, 5.825, 6.1375]}]}, {"text": "Post-keynote thank you", - "boundingBox": [3.2, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 3.2, 6.3583], - "words": [{"text": "Post-keynote", "boundingBox": [3.2, 6.1556, 4.0958, 6.1556, - 4.0958, 6.3583, 3.2, 6.3583]}, {"text": "thank", "boundingBox": [4.1319, 6.1556, - 4.5194, 6.1556, 4.5194, 6.3583, 4.1319, 6.3583]}, {"text": "you", "boundingBox": - [4.5556, 6.1556, 4.8056, 6.1556, 4.8056, 6.3583, 4.5556, 6.3583]}]}, {"text": - "Logo on poster", "boundingBox": [3.2, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, - 3.2, 6.5694], "words": [{"text": "Logo", "boundingBox": [3.2, 6.3667, 3.5236, - 6.3667, 3.5236, 6.5694, 3.2, 6.5694]}, {"text": "on", "boundingBox": [3.5611, - 6.3667, 3.7361, 6.3667, 3.7361, 6.5694, 3.5611, 6.5694]}, {"text": "poster", - "boundingBox": [3.7764, 6.3667, 4.2125, 6.3667, 4.2125, 6.5694, 3.7764, 6.5694]}]}, - {"text": "Half page ad in program guide", "boundingBox": [3.2, 6.5806, 5.2389, - 6.5806, 5.2389, 6.7833, 3.2, 6.7833], "words": [{"text": "Half", "boundingBox": - [3.2, 6.5806, 3.4722, 6.5806, 3.4722, 6.7833, 3.2, 6.7833]}, {"text": "page", - "boundingBox": [3.5097, 6.5806, 3.8403, 6.5806, 3.8403, 6.7833, 3.5097, 6.7833]}, - {"text": "ad", "boundingBox": [3.8764, 6.5806, 4.0444, 6.5806, 4.0444, 6.7833, - 3.8764, 6.7833]}, {"text": "in", "boundingBox": [4.0819, 6.5806, 4.2069, 6.5806, - 4.2069, 6.7833, 4.0819, 6.7833]}, {"text": "program", "boundingBox": [4.2444, - 6.5806, 4.8264, 6.5806, 4.8264, 6.7833, 4.2444, 6.7833]}, {"text": "guide", - "boundingBox": [4.8653, 6.5806, 5.2389, 6.5806, 5.2389, 6.7833, 4.8653, 6.7833]}]}, - {"text": "Bronze Sponsor", "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, - 2.1389, 6.9931, 1.0778, 6.9931], "words": [{"text": "Bronze", "boundingBox": - [1.0778, 6.7903, 1.5528, 6.7903, 1.5528, 6.9931, 1.0778, 6.9931]}, {"text": - "Sponsor", "boundingBox": [1.5889, 6.7903, 2.1389, 6.7903, 2.1389, 6.9931, - 1.5889, 6.9931]}]}, {"text": "Full booth", "boundingBox": [3.2, 6.7986, 3.8847, - 6.7986, 3.8847, 7.0014, 3.2, 7.0014], "words": [{"text": "Full", "boundingBox": - [3.2, 6.7986, 3.4417, 6.7986, 3.4417, 7.0014, 3.2, 7.0014]}, {"text": "booth", - "boundingBox": [3.4792, 6.7986, 3.8847, 6.7986, 3.8847, 7.0014, 3.4792, 7.0014]}]}, - {"text": "$1,000", "boundingBox": [5.825, 6.7903, 6.2889, 6.7903, 6.2889, - 6.9931, 5.825, 6.9931], "words": [{"text": "$1,000", "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931]}]}, {"text": "Logo - on poster", "boundingBox": [3.2, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.2, - 7.2139], "words": [{"text": "Logo", "boundingBox": [3.2, 7.0111, 3.5236, 7.0111, - 3.5236, 7.2139, 3.2, 7.2139]}, {"text": "on", "boundingBox": [3.5611, 7.0111, - 3.7361, 7.0111, 3.7361, 7.2139, 3.5611, 7.2139]}, {"text": "poster", "boundingBox": - [3.7764, 7.0111, 4.2125, 7.0111, 4.2125, 7.2139, 3.7764, 7.2139]}]}, {"text": - "50% discount on program guide", "boundingBox": [3.2, 7.2236, 5.35, 7.2236, - 5.35, 7.4264, 3.2, 7.4264], "words": [{"text": "50%", "boundingBox": [3.2, - 7.2236, 3.4875, 7.2236, 3.4875, 7.4264, 3.2, 7.4264]}, {"text": "discount", - "boundingBox": [3.525, 7.2236, 4.1069, 7.2236, 4.1069, 7.4264, 3.525, 7.4264]}, - {"text": "on", "boundingBox": [4.1444, 7.2236, 4.3194, 7.2236, 4.3194, 7.4264, - 4.1444, 7.4264]}, {"text": "program", "boundingBox": [4.3556, 7.2236, 4.9375, - 7.2236, 4.9375, 7.4264, 4.3556, 7.4264]}, {"text": "guide", "boundingBox": - [4.9764, 7.2236, 5.35, 7.2236, 5.35, 7.4264, 4.9764, 7.4264]}]}, {"text": - "advertisements", "boundingBox": [3.2, 7.4264, 4.25, 7.4264, 4.25, 7.6292, - 3.2, 7.6292], "words": [{"text": "advertisements", "boundingBox": [3.2, 7.4264, - 4.25, 7.4264, 4.25, 7.6292, 3.2, 7.6292]}]}, {"text": "Full Booth", "boundingBox": - [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, 7.8417, 1.0778, 7.8417], "words": - [{"text": "Full", "boundingBox": [1.0778, 7.6389, 1.3208, 7.6389, 1.3208, - 7.8417, 1.0778, 7.8417]}, {"text": "Booth", "boundingBox": [1.3583, 7.6389, - 1.7653, 7.6389, 1.7653, 7.8417, 1.3583, 7.8417]}]}, {"text": "Full booth", - "boundingBox": [3.2, 7.6472, 3.8847, 7.6472, 3.8847, 7.85, 3.2, 7.85], "words": - [{"text": "Full", "boundingBox": [3.2, 7.6472, 3.4417, 7.6472, 3.4417, 7.85, - 3.2, 7.85]}, {"text": "booth", "boundingBox": [3.4792, 7.6472, 3.8847, 7.6472, - 3.8847, 7.85, 3.4792, 7.85]}]}, {"text": "$600", "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "words": [{"text": "$600", - "boundingBox": [5.825, 7.6389, 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417]}]}, - {"text": "50% discount on program guide", "boundingBox": [3.2, 7.8583, 5.35, - 7.8583, 5.35, 8.0611, 3.2, 8.0611], "words": [{"text": "50%", "boundingBox": - [3.2, 7.8583, 3.4875, 7.8583, 3.4875, 8.0611, 3.2, 8.0611]}, {"text": "discount", - "boundingBox": [3.525, 7.8583, 4.1069, 7.8583, 4.1069, 8.0611, 3.525, 8.0611]}, - {"text": "on", "boundingBox": [4.1444, 7.8583, 4.3194, 7.8583, 4.3194, 8.0611, - 4.1444, 8.0611]}, {"text": "program", "boundingBox": [4.3556, 7.8583, 4.9375, - 7.8583, 4.9375, 8.0611, 4.3556, 8.0611]}, {"text": "guide", "boundingBox": - [4.9764, 7.8583, 5.35, 7.8583, 5.35, 8.0611, 4.9764, 8.0611]}]}, {"text": - "advertisements", "boundingBox": [3.2, 8.0611, 4.25, 8.0611, 4.25, 8.2639, - 3.2, 8.2639], "words": [{"text": "advertisements", "boundingBox": [3.2, 8.0611, - 4.25, 8.0611, 4.25, 8.2639, 3.2, 8.2639]}]}, {"text": "Half Booth", "boundingBox": - [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, 8.4764], "words": - [{"text": "Half", "boundingBox": [1.0778, 8.2736, 1.35, 8.2736, 1.35, 8.4764, - 1.0778, 8.4764]}, {"text": "Booth", "boundingBox": [1.3889, 8.2736, 1.7972, - 8.2736, 1.7972, 8.4764, 1.3889, 8.4764]}]}, {"text": "Full booth", "boundingBox": - [3.2, 8.2819, 3.8847, 8.2819, 3.8847, 8.4847, 3.2, 8.4847], "words": [{"text": - "Full", "boundingBox": [3.2, 8.2819, 3.4417, 8.2819, 3.4417, 8.4847, 3.2, - 8.4847]}, {"text": "booth", "boundingBox": [3.4792, 8.2819, 3.8847, 8.2819, - 3.8847, 8.4847, 3.4792, 8.4847]}]}, {"text": "$350", "boundingBox": [5.825, - 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "words": [{"text": - "$350", "boundingBox": [5.825, 8.2736, 6.1639, 8.2736, 6.1639, 8.4764, 5.825, - 8.4764]}]}, {"text": "25% discount on program guide", "boundingBox": [3.2, - 8.4931, 5.35, 8.4931, 5.35, 8.6958, 3.2, 8.6958], "words": [{"text": "25%", - "boundingBox": [3.2, 8.4931, 3.4875, 8.4931, 3.4875, 8.6958, 3.2, 8.6958]}, - {"text": "discount", "boundingBox": [3.525, 8.4931, 4.1069, 8.4931, 4.1069, - 8.6958, 3.525, 8.6958]}, {"text": "on", "boundingBox": [4.1444, 8.4931, 4.3194, - 8.4931, 4.3194, 8.6958, 4.1444, 8.6958]}, {"text": "program", "boundingBox": - [4.3556, 8.4931, 4.9375, 8.4931, 4.9375, 8.6958, 4.3556, 8.6958]}, {"text": - "guide", "boundingBox": [4.9764, 8.4931, 5.35, 8.4931, 5.35, 8.6958, 4.9764, - 8.6958]}]}, {"text": "advertisements", "boundingBox": [3.2, 8.6972, 4.25, - 8.6972, 4.25, 8.9, 3.2, 8.9], "words": [{"text": "advertisements", "boundingBox": - [3.2, 8.6972, 4.25, 8.6972, 4.25, 8.9, 3.2, 8.9]}]}]}, {"page": 2, "angle": - 359.96, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor - #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.1389, - 1.2708], "words": [{"text": "Vendor", "boundingBox": [6.1389, 1.0556, 6.8917, - 1.0556, 6.8917, 1.2708, 6.1389, 1.2708]}, {"text": "#:", "boundingBox": [6.9333, - 1.0556, 7.1667, 1.0556, 7.1667, 1.2708, 6.9333, 1.2708]}]}, {"text": "121", - "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], - "words": [{"text": "121", "boundingBox": [7.1667, 1.0556, 7.5167, 1.0556, - 7.5167, 1.2708, 7.1667, 1.2708]}]}, {"text": "Vendor Details:", "boundingBox": - [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, 2.3722], "words": [{"text": - "Vendor", "boundingBox": [1.0111, 2.1736, 1.6736, 2.1736, 1.6736, 2.3722, - 1.0111, 2.3722]}, {"text": "Details:", "boundingBox": [1.7111, 2.1736, 2.375, - 2.1736, 2.375, 2.3722, 1.7111, 2.3722]}]}, {"text": "Company Name:", "boundingBox": - [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, 1.0028, 2.9278], "words": - [{"text": "Company", "boundingBox": [1.0028, 2.7611, 1.6639, 2.7611, 1.6639, - 2.9278, 1.0028, 2.9278]}, {"text": "Name:", "boundingBox": [1.6944, 2.7611, - 2.1556, 2.7611, 2.1556, 2.9278, 1.6944, 2.9278]}]}, {"text": "Southridge Video", - "boundingBox": [2.1917, 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], - "words": [{"text": "Southridge", "boundingBox": [2.1917, 2.7611, 2.9444, 2.7611, - 2.9444, 2.9278, 2.1917, 2.9278]}, {"text": "Video", "boundingBox": [2.975, - 2.7611, 3.3542, 2.7611, 3.3542, 2.9278, 2.975, 2.9278]}]}, {"text": "Contact:", - "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, 1.0069, 3.2472], - "words": [{"text": "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, - 1.5903, 3.2472, 1.0069, 3.2472]}]}, {"text": "Jamie@southridgevideo.com", - "boundingBox": [1.6222, 3.0903, 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], - "words": [{"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, - 3.5667, 3.0903, 3.5667, 3.2472, 1.6222, 3.2472]}]}, {"text": "Preferred Package:", - "boundingBox": [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], - "words": [{"text": "Preferred", "boundingBox": [1.0028, 3.4236, 1.6667, 3.4236, - 1.6667, 3.5806, 1.0028, 3.5806]}, {"text": "Package:", "boundingBox": [1.6972, - 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.6972, 3.5806]}]}, {"text": "Gold", - "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, 2.35, 3.5806], - "words": [{"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, - 3.5806, 2.35, 3.5806]}]}, {"text": "Special Requests:", "boundingBox": [1.0167, - 3.7611, 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "words": [{"text": - "Special", "boundingBox": [1.0167, 3.7611, 1.4972, 3.7611, 1.4972, 3.9139, - 1.0167, 3.9139]}, {"text": "Requests:", "boundingBox": [1.5278, 3.7611, 2.2194, - 3.7611, 2.2194, 3.9139, 1.5278, 3.9139]}]}, {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "words": [{"text": - "N/a", "boundingBox": [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, - 3.9139]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": [{"key": {"text": - "Vendor #:", "boundingBox": [6.1236, 1.0014, 7.1167, 1.0014, 7.1167, 1.3056, - 6.1236, 1.3056], "elements": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1"]}, - "value": {"text": "121", "boundingBox": [7.1167, 1.0014, 7.4958, 1.0014, 7.4958, - 1.3056, 7.1167, 1.3056], "elements": ["#/readResults/0/lines/1/words/0"]}, - "confidence": 1.0}, {"key": {"text": "__Address__1", "boundingBox": null, - "elements": null}, "value": {"text": "Contoso Ltd. 2345 Dogwood Lane Birch, - Kansas 98123", "boundingBox": [1.0, 3.5306, 2.3847, 3.5306, 2.3847, 4.1722, - 1.0, 4.1722], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1", - "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", "#/readResults/0/lines/8/words/2", - "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": - null}, "value": {"text": "Vendor Registration", "boundingBox": [2.2181, 1.4417, - 6.2736, 1.4417, 6.2736, 2.05, 2.2181, 2.05], "elements": ["#/readResults/0/lines/2/words/0", - "#/readResults/0/lines/2/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Contoso - Ltd. Conference will be held on May 28-29, 2020 at the Elm Conference Center - in", "boundingBox": [1.0, 2.5417, 7.0903, 2.5417, 7.0903, 2.7444, 1.0, 2.7444], - "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", - "#/readResults/0/lines/3/words/2", "#/readResults/0/lines/3/words/3", "#/readResults/0/lines/3/words/4", - "#/readResults/0/lines/3/words/5", "#/readResults/0/lines/3/words/6", "#/readResults/0/lines/3/words/7", - "#/readResults/0/lines/3/words/8", "#/readResults/0/lines/3/words/9", "#/readResults/0/lines/3/words/10", - "#/readResults/0/lines/3/words/11", "#/readResults/0/lines/3/words/12", "#/readResults/0/lines/3/words/13", - "#/readResults/0/lines/3/words/14", "#/readResults/0/lines/3/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Maple City, Massachusetts. The conference has sold - out of its 1,500 tickets, with a 400 person", "boundingBox": [1.0, 2.7597, - 7.3583, 2.7597, 7.3583, 2.9625, 1.0, 2.9625], "elements": ["#/readResults/0/lines/4/words/0", - "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/4/words/3", - "#/readResults/0/lines/4/words/4", "#/readResults/0/lines/4/words/5", "#/readResults/0/lines/4/words/6", - "#/readResults/0/lines/4/words/7", "#/readResults/0/lines/4/words/8", "#/readResults/0/lines/4/words/9", - "#/readResults/0/lines/4/words/10", "#/readResults/0/lines/4/words/11", "#/readResults/0/lines/4/words/12", - "#/readResults/0/lines/4/words/13", "#/readResults/0/lines/4/words/14", "#/readResults/0/lines/4/words/15"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "waitlist. Vendor applications are being accepted - through Feb 28, 2020. Please fill in the form", "boundingBox": [1.0, 2.9806, - 7.2597, 2.9806, 7.2597, 3.1833, 1.0, 3.1833], "elements": ["#/readResults/0/lines/5/words/0", - "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", "#/readResults/0/lines/5/words/3", - "#/readResults/0/lines/5/words/4", "#/readResults/0/lines/5/words/5", "#/readResults/0/lines/5/words/6", - "#/readResults/0/lines/5/words/7", "#/readResults/0/lines/5/words/8", "#/readResults/0/lines/5/words/9", - "#/readResults/0/lines/5/words/10", "#/readResults/0/lines/5/words/11", "#/readResults/0/lines/5/words/12", - "#/readResults/0/lines/5/words/13", "#/readResults/0/lines/5/words/14"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "below, and attach a check made out to:", "boundingBox": - [1.0, 3.2, 3.6722, 3.2, 3.6722, 3.4028, 1.0, 3.4028], "elements": ["#/readResults/0/lines/6/words/0", - "#/readResults/0/lines/6/words/1", "#/readResults/0/lines/6/words/2", "#/readResults/0/lines/6/words/3", - "#/readResults/0/lines/6/words/4", "#/readResults/0/lines/6/words/5", "#/readResults/0/lines/6/words/6", - "#/readResults/0/lines/6/words/7"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Rates:", - "boundingBox": [1.0, 4.3556, 1.5486, 4.3556, 1.5486, 4.6264, 1.0, 4.6264], - "elements": ["#/readResults/0/lines/10/words/0"]}, "confidence": 1.0}], "tables": - [{"rows": 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": - 0, "boundingBox": [1.0778, 4.6556, 1.6306, 4.6556, 1.6306, 4.8583, 1.0778, - 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], + [1.0139, 2.8083, 7.3458, 2.8083, 7.3458, 2.9286, 1.0139, 2.9286], "words": + [{"text": "Maple", "boundingBox": [1.0139, 2.8035, 1.4236, 2.8035, 1.4236, + 2.9479, 1.0139, 2.9479]}, {"text": "City,", "boundingBox": [1.4764, 2.809, + 1.7569, 2.809, 1.7569, 2.9479, 1.4764, 2.9479]}, {"text": "Massachusetts.", + "boundingBox": [1.8194, 2.8035, 2.8375, 2.8035, 2.8375, 2.9198, 1.8194, 2.9198]}, + {"text": "The", "boundingBox": [2.8875, 2.8035, 3.1333, 2.8035, 3.1333, 2.9198, + 2.8875, 2.9198]}, {"text": "conference", "boundingBox": [3.1833, 2.8028, 3.9306, + 2.8028, 3.9306, 2.9198, 3.1833, 2.9198]}, {"text": "has", "boundingBox": [3.9875, + 2.8035, 4.2014, 2.8035, 4.2014, 2.9198, 3.9875, 2.9198]}, {"text": "sold", + "boundingBox": [4.2528, 2.8035, 4.5111, 2.8035, 4.5111, 2.9198, 4.2528, 2.9198]}, + {"text": "out", "boundingBox": [4.5708, 2.8198, 4.7875, 2.8198, 4.7875, 2.9198, + 4.5708, 2.9198]}, {"text": "of", "boundingBox": [4.8375, 2.8028, 4.9708, 2.8028, + 4.9708, 2.9198, 4.8375, 2.9198]}, {"text": "its", "boundingBox": [5.0167, + 2.809, 5.1597, 2.809, 5.1597, 2.9198, 5.0167, 2.9198]}, {"text": "1,500", + "boundingBox": [5.2167, 2.8101, 5.5764, 2.8101, 5.5764, 2.9417, 5.2167, 2.9417]}, + {"text": "tickets,", "boundingBox": [5.6222, 2.8035, 6.0931, 2.8035, 6.0931, + 2.9417, 5.6222, 2.9417]}, {"text": "with", "boundingBox": [6.1458, 2.8035, + 6.4306, 2.8035, 6.4306, 2.9194, 6.1458, 2.9194]}, {"text": "a", "boundingBox": + [6.4875, 2.8382, 6.5472, 2.8382, 6.5472, 2.9198, 6.4875, 2.9198]}, {"text": + "400", "boundingBox": [6.6014, 2.8101, 6.8444, 2.8101, 6.8444, 2.9198, 6.6014, + 2.9198]}, {"text": "person", "boundingBox": [6.9, 2.8382, 7.3458, 2.8382, + 7.3458, 2.9479, 6.9, 2.9479]}]}, {"text": "waitlist. Vendor applications are + being accepted through Feb 28, 2020. Please fill in the form", "boundingBox": + [1.0042, 3.0259, 7.2486, 3.0259, 7.2486, 3.1513, 1.0042, 3.1513], "words": + [{"text": "waitlist.", "boundingBox": [1.0042, 3.0236, 1.5194, 3.0236, 1.5194, + 3.1396, 1.0042, 3.1396]}, {"text": "Vendor", "boundingBox": [1.5736, 3.024, + 2.0653, 3.024, 2.0653, 3.1396, 1.5736, 3.1396]}, {"text": "applications", + "boundingBox": [2.1139, 3.0236, 2.9139, 3.0236, 2.9139, 3.1677, 2.1139, 3.1677]}, + {"text": "are", "boundingBox": [2.9681, 3.0583, 3.1722, 3.0583, 3.1722, 3.1396, + 2.9681, 3.1396]}, {"text": "being", "boundingBox": [3.2306, 3.0236, 3.5889, + 3.0236, 3.5889, 3.1677, 3.2306, 3.1677]}, {"text": "accepted", "boundingBox": + [3.6389, 3.024, 4.2333, 3.024, 4.2333, 3.1677, 3.6389, 3.1677]}, {"text": + "through", "boundingBox": [4.2861, 3.0236, 4.8125, 3.0236, 4.8125, 3.1677, + 4.2861, 3.1677]}, {"text": "Feb", "boundingBox": [4.8819, 3.0236, 5.1125, + 3.0236, 5.1125, 3.1399, 4.8819, 3.1399]}, {"text": "28,", "boundingBox": [5.1625, + 3.0299, 5.3611, 3.0299, 5.3611, 3.1622, 5.1625, 3.1622]}, {"text": "2020.", + "boundingBox": [5.4125, 3.0299, 5.7778, 3.0299, 5.7778, 3.1399, 5.4125, 3.1399]}, + {"text": "Please", "boundingBox": [5.8403, 3.0236, 6.2542, 3.0236, 6.2542, + 3.1396, 5.8403, 3.1396]}, {"text": "fill", "boundingBox": [6.3028, 3.0229, + 6.4542, 3.0229, 6.4542, 3.1385, 6.3028, 3.1385]}, {"text": "in", "boundingBox": + [6.5125, 3.0288, 6.6167, 3.0288, 6.6167, 3.1385, 6.5125, 3.1385]}, {"text": + "the", "boundingBox": [6.6681, 3.0236, 6.8833, 3.0236, 6.8833, 3.1396, 6.6681, + 3.1396]}, {"text": "form", "boundingBox": [6.9319, 3.0229, 7.2486, 3.0229, + 7.2486, 3.1396, 6.9319, 3.1396]}]}, {"text": "below, and attach a check made + out to:", "boundingBox": [1.0125, 3.2485, 3.6597, 3.2485, 3.6597, 3.3638, + 1.0125, 3.3638], "words": [{"text": "below,", "boundingBox": [1.0125, 3.2437, + 1.4458, 3.2437, 1.4458, 3.3819, 1.0125, 3.3819]}, {"text": "and", "boundingBox": + [1.5028, 3.2437, 1.7375, 3.2437, 1.7375, 3.3597, 1.5028, 3.3597]}, {"text": + "attach", "boundingBox": [1.7972, 3.2437, 2.2056, 3.2437, 2.2056, 3.3597, + 1.7972, 3.3597]}, {"text": "a", "boundingBox": [2.2611, 3.2785, 2.3222, 3.2785, + 2.3222, 3.3597, 2.2611, 3.3597]}, {"text": "check", "boundingBox": [2.3792, + 3.2437, 2.7528, 3.2437, 2.7528, 3.3597, 2.3792, 3.3597]}, {"text": "made", + "boundingBox": [2.8083, 3.2437, 3.1694, 3.2437, 3.1694, 3.3597, 2.8083, 3.3597]}, + {"text": "out", "boundingBox": [3.225, 3.2597, 3.4417, 3.2597, 3.4417, 3.3597, + 3.225, 3.3597]}, {"text": "to:", "boundingBox": [3.4875, 3.2597, 3.6597, 3.2597, + 3.6597, 3.3597, 3.4875, 3.3597]}]}, {"text": "Contoso Ltd.", "boundingBox": + [1.0069, 3.5781, 1.8431, 3.5781, 1.8431, 3.6896, 1.0069, 3.6896], "words": + [{"text": "Contoso", "boundingBox": [1.0069, 3.5802, 1.5556, 3.5802, 1.5556, + 3.6896, 1.0069, 3.6896]}, {"text": "Ltd.", "boundingBox": [1.6125, 3.574, + 1.8431, 3.574, 1.8431, 3.6896, 1.6125, 3.6896]}]}, {"text": "2345 Dogwood + Lane", "boundingBox": [1.0097, 3.7973, 2.3764, 3.7973, 2.3764, 3.923, 1.0097, + 3.923], "words": [{"text": "2345", "boundingBox": [1.0097, 3.8, 1.3306, 3.8, + 1.3306, 3.9097, 1.0097, 3.9097]}, {"text": "Dogwood", "boundingBox": [1.3903, + 3.7938, 2.0153, 3.7938, 2.0153, 3.9378, 1.3903, 3.9378]}, {"text": "Lane", + "boundingBox": [2.0792, 3.801, 2.3764, 3.801, 2.3764, 3.9097, 2.0792, 3.9097]}]}, + {"text": "Birch, Kansas 98123", "boundingBox": [1.0139, 4.0181, 2.3375, 4.0181, + 2.3375, 4.1379, 1.0139, 4.1379], "words": [{"text": "Birch,", "boundingBox": + [1.0139, 4.0135, 1.375, 4.0135, 1.375, 4.1517, 1.0139, 4.1517]}, {"text": + "Kansas", "boundingBox": [1.4375, 4.0212, 1.8819, 4.0212, 1.8819, 4.1299, + 1.4375, 4.1299]}, {"text": "98123", "boundingBox": [1.9319, 4.0201, 2.3375, + 4.0201, 2.3375, 4.1299, 1.9319, 4.1299]}]}, {"text": "Rates:", "boundingBox": + [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, 4.5681, 1.0208, 4.5681], "words": + [{"text": "Rates:", "boundingBox": [1.0208, 4.4247, 1.5306, 4.4247, 1.5306, + 4.5681, 1.0208, 4.5681]}]}, {"text": "Package", "boundingBox": [1.0931, 4.6986, + 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427], "words": [{"text": "Package", + "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, 4.8427]}]}, + {"text": "Included", "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "words": [{"text": "Included", "boundingBox": [2.7125, + 4.6986, 3.2708, 4.6986, 3.2708, 4.8146, 2.7125, 4.8146]}]}, {"text": "Price", + "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], + "words": [{"text": "Price", "boundingBox": [5.8375, 4.7038, 6.1514, 4.7038, + 6.1514, 4.8146, 5.8375, 4.8146]}]}, {"text": "Gold Sponsor", "boundingBox": + [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, 5.042, 1.0861, 5.042], "words": [{"text": + "Gold", "boundingBox": [1.0861, 4.9087, 1.3847, 4.9087, 1.3847, 5.0247, 1.0861, + 5.0247]}, {"text": "Sponsor", "boundingBox": [1.4417, 4.9149, 1.9833, 4.9149, + 1.9833, 5.0528, 1.4417, 5.0528]}]}, {"text": "Full booth", "boundingBox": + [3.2139, 4.917, 3.8722, 4.917, 3.8722, 5.033, 3.2139, 5.033], "words": [{"text": + "Full", "boundingBox": [3.2139, 4.917, 3.4292, 4.917, 3.4292, 5.033, 3.2139, + 5.033]}, {"text": "booth", "boundingBox": [3.4917, 4.917, 3.8722, 4.917, 3.8722, + 5.033, 3.4917, 5.033]}]}, {"text": "$1,500", "boundingBox": [5.8319, 4.8976, + 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "words": [{"text": "$1,500", + "boundingBox": [5.8319, 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469]}]}, + {"text": "Pre-keynote thank you", "boundingBox": [3.2139, 5.1352, 4.7264, + 5.1352, 4.7264, 5.2663, 3.2139, 5.2663], "words": [{"text": "Pre-keynote", + "boundingBox": [3.2139, 5.1302, 4.0181, 5.1302, 4.0181, 5.2743, 3.2139, 5.2743]}, + {"text": "thank", "boundingBox": [4.0667, 5.1302, 4.4472, 5.1302, 4.4472, + 5.2462, 4.0667, 5.2462]}, {"text": "you", "boundingBox": [4.4903, 5.1649, + 4.7264, 5.1649, 4.7264, 5.2743, 4.4903, 5.2743]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 5.359, 4.2097, 5.359, 4.2097, 5.4801, 3.2139, 5.4801], + "words": [{"text": "Logo", "boundingBox": [3.2139, 5.3497, 3.5167, 5.3497, + 3.5167, 5.4861, 3.2139, 5.4861]}, {"text": "on", "boundingBox": [3.5681, 5.3767, + 3.7236, 5.3767, 3.7236, 5.458, 3.5681, 5.458]}, {"text": "poster", "boundingBox": + [3.7889, 5.358, 4.2097, 5.358, 4.2097, 5.4861, 3.7889, 5.4861]}]}, {"text": + "Full page ad in program guide", "boundingBox": [3.2139, 5.5714, 5.2014, 5.5714, + 5.2014, 5.6885, 3.2139, 5.6885], "words": [{"text": "Full", "boundingBox": + [3.2139, 5.5552, 3.4292, 5.5552, 3.4292, 5.6712, 3.2139, 5.6712]}, {"text": + "page", "boundingBox": [3.4917, 5.5899, 3.7986, 5.5899, 3.7986, 5.6993, 3.4917, + 5.6993]}, {"text": "ad", "boundingBox": [3.8514, 5.5556, 3.9986, 5.5556, 3.9986, + 5.6712, 3.8514, 5.6712]}, {"text": "in", "boundingBox": [4.0597, 5.5604, 4.1625, + 5.5604, 4.1625, 5.6701, 4.0597, 5.6701]}, {"text": "program", "boundingBox": + [4.225, 5.5899, 4.7833, 5.5899, 4.7833, 5.6993, 4.225, 5.6993]}, {"text": + "guide", "boundingBox": [4.8361, 5.5556, 5.2014, 5.5556, 5.2014, 5.6993, 4.8361, + 5.6993]}]}, {"text": "Silver Sponsor", "boundingBox": [1.0833, 5.982, 2.0333, + 5.982, 2.0333, 6.1098, 1.0833, 6.1098], "words": [{"text": "Silver", "boundingBox": + [1.0833, 5.9785, 1.4444, 5.9785, 1.4444, 6.0948, 1.0833, 6.0948]}, {"text": + "Sponsor", "boundingBox": [1.4903, 5.9851, 2.0333, 5.9851, 2.0333, 6.1229, + 1.4903, 6.1229]}]}, {"text": "Full booth", "boundingBox": [3.2139, 5.9868, + 3.8722, 5.9868, 3.8722, 6.1031, 3.2139, 6.1031], "words": [{"text": "Full", + "boundingBox": [3.2139, 5.9868, 3.4292, 5.9868, 3.4292, 6.1031, 3.2139, 6.1031]}, + {"text": "booth", "boundingBox": [3.4917, 5.9868, 3.8722, 5.9868, 3.8722, + 6.1031, 3.4917, 6.1031]}]}, {"text": "$1,200", "boundingBox": [5.8319, 5.9677, + 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "words": [{"text": "$1,200", + "boundingBox": [5.8319, 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167]}]}, + {"text": "Post-keynote thank you", "boundingBox": [3.2139, 6.2033, 4.7931, + 6.2033, 4.7931, 6.335, 3.2139, 6.335], "words": [{"text": "Post-keynote", + "boundingBox": [3.2139, 6.1986, 4.0875, 6.1986, 4.0875, 6.3427, 3.2139, 6.3427]}, + {"text": "thank", "boundingBox": [4.1347, 6.1986, 4.5153, 6.1986, 4.5153, + 6.3146, 4.1347, 6.3146]}, {"text": "you", "boundingBox": [4.5583, 6.2333, + 4.7931, 6.2333, 4.7931, 6.3427, 4.5583, 6.3427]}]}, {"text": "Logo on poster", + "boundingBox": [3.2139, 6.4274, 4.2097, 6.4274, 4.2097, 6.5485, 3.2139, 6.5485], + "words": [{"text": "Logo", "boundingBox": [3.2139, 6.4181, 3.5167, 6.4181, + 3.5167, 6.5545, 3.2139, 6.5545]}, {"text": "on", "boundingBox": [3.5681, 6.4451, + 3.7236, 6.4451, 3.7236, 6.5264, 3.5681, 6.5264]}, {"text": "poster", "boundingBox": + [3.7889, 6.4264, 4.2097, 6.4264, 4.2097, 6.5545, 3.7889, 6.5545]}]}, {"text": + "Half page ad in program guide", "boundingBox": [3.2139, 6.6397, 5.2306, 6.6397, + 5.2306, 6.7569, 3.2139, 6.7569], "words": [{"text": "Half", "boundingBox": + [3.2139, 6.6229, 3.4736, 6.6229, 3.4736, 6.7396, 3.2139, 6.7396]}, {"text": + "page", "boundingBox": [3.5222, 6.6583, 3.8319, 6.6583, 3.8319, 6.7677, 3.5222, + 6.7677]}, {"text": "ad", "boundingBox": [3.8847, 6.624, 4.0319, 6.624, 4.0319, + 6.7396, 3.8847, 6.7396]}, {"text": "in", "boundingBox": [4.0917, 6.6288, 4.1958, + 6.6288, 4.1958, 6.7385, 4.0917, 6.7385]}, {"text": "program", "boundingBox": + [4.2556, 6.6583, 4.8153, 6.6583, 4.8153, 6.7677, 4.2556, 6.7677]}, {"text": + "guide", "boundingBox": [4.8694, 6.624, 5.2306, 6.624, 5.2306, 6.7677, 4.8694, + 6.7677]}]}, {"text": "Bronze Sponsor", "boundingBox": [1.0931, 6.8407, 2.1361, + 6.8407, 2.1361, 6.9647, 1.0931, 6.9647], "words": [{"text": "Bronze", "boundingBox": + [1.0931, 6.8417, 1.5444, 6.8417, 1.5444, 6.9497, 1.0931, 6.9497]}, {"text": + "Sponsor", "boundingBox": [1.5944, 6.8399, 2.1361, 6.8399, 2.1361, 6.9778, + 1.5944, 6.9778]}]}, {"text": "Full booth", "boundingBox": [3.2139, 6.842, + 3.8722, 6.842, 3.8722, 6.958, 3.2139, 6.958], "words": [{"text": "Full", "boundingBox": + [3.2139, 6.842, 3.4292, 6.842, 3.4292, 6.958, 3.2139, 6.958]}, {"text": "booth", + "boundingBox": [3.4917, 6.842, 3.8722, 6.842, 3.8722, 6.958, 3.4917, 6.958]}]}, + {"text": "$1,000", "boundingBox": [5.8319, 6.8226, 6.2833, 6.8226, 6.2833, + 6.9719, 5.8319, 6.9719], "words": [{"text": "$1,000", "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719]}]}, {"text": "Logo + on poster", "boundingBox": [3.2139, 7.0724, 4.2097, 7.0724, 4.2097, 7.1933, + 3.2139, 7.1933], "words": [{"text": "Logo", "boundingBox": [3.2139, 7.0628, + 3.5167, 7.0628, 3.5167, 7.1993, 3.2139, 7.1993]}, {"text": "on", "boundingBox": + [3.5681, 7.0899, 3.7236, 7.0899, 3.7236, 7.1712, 3.5681, 7.1712]}, {"text": + "poster", "boundingBox": [3.7889, 7.0715, 4.2097, 7.0715, 4.2097, 7.1993, + 3.7889, 7.1993]}]}, {"text": "50% discount on program guide", "boundingBox": + [3.2083, 7.281, 5.3417, 7.281, 5.3417, 7.3958, 3.2083, 7.3958], "words": [{"text": + "50%", "boundingBox": [3.2083, 7.2715, 3.4819, 7.2715, 3.4819, 7.3844, 3.2083, + 7.3844]}, {"text": "discount", "boundingBox": [3.5333, 7.2674, 4.1014, 7.2674, + 4.1014, 7.383, 3.5333, 7.383]}, {"text": "on", "boundingBox": [4.1514, 7.3017, + 4.3069, 7.3017, 4.3069, 7.383, 4.1514, 7.383]}, {"text": "program", "boundingBox": + [4.3681, 7.3017, 4.925, 7.3017, 4.925, 7.4111, 4.3681, 7.4111]}, {"text": + "guide", "boundingBox": [4.9806, 7.2674, 5.3417, 7.2674, 5.3417, 7.4111, 4.9806, + 7.4111]}]}, {"text": "advertisements", "boundingBox": [3.2069, 7.4705, 4.2431, + 7.4705, 4.2431, 7.5865, 3.2069, 7.5865], "words": [{"text": "advertisements", + "boundingBox": [3.2069, 7.4705, 4.2431, 7.4705, 4.2431, 7.5865, 3.2069, 7.5865]}]}, + {"text": "Full Booth", "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "words": [{"text": "Full", "boundingBox": [1.0931, + 7.6819, 1.3083, 7.6819, 1.3083, 7.7979, 1.0931, 7.7979]}, {"text": "Booth", + "boundingBox": [1.3722, 7.6819, 1.7542, 7.6819, 1.7542, 7.7979, 1.3722, 7.7979]}]}, + {"text": "Full booth", "boundingBox": [3.2139, 7.6903, 3.8722, 7.6903, 3.8722, + 7.8063, 3.2139, 7.8063], "words": [{"text": "Full", "boundingBox": [3.2139, + 7.6903, 3.4292, 7.6903, 3.4292, 7.8062, 3.2139, 7.8062]}, {"text": "booth", + "boundingBox": [3.4917, 7.6903, 3.8722, 7.6903, 3.8722, 7.8062, 3.4917, 7.8062]}]}, + {"text": "$600", "boundingBox": [5.8319, 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, + 5.8319, 7.8167], "words": [{"text": "$600", "boundingBox": [5.8319, 7.6712, + 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167]}]}, {"text": "50% discount + on program guide", "boundingBox": [3.2083, 7.9159, 5.3417, 7.9159, 5.3417, + 8.0309, 3.2083, 8.0309], "words": [{"text": "50%", "boundingBox": [3.2083, + 7.9066, 3.4819, 7.9066, 3.4819, 8.0194, 3.2083, 8.0194]}, {"text": "discount", + "boundingBox": [3.5333, 7.9021, 4.1014, 7.9021, 4.1014, 8.0181, 3.5333, 8.0181]}, + {"text": "on", "boundingBox": [4.1514, 7.9368, 4.3069, 7.9368, 4.3069, 8.0181, + 4.1514, 8.0181]}, {"text": "program", "boundingBox": [4.3681, 7.9368, 4.925, + 7.9368, 4.925, 8.0462, 4.3681, 8.0462]}, {"text": "guide", "boundingBox": + [4.9806, 7.9021, 5.3417, 7.9021, 5.3417, 8.0462, 4.9806, 8.0462]}]}, {"text": + "advertisements", "boundingBox": [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, + 8.2212, 3.2069, 8.2212], "words": [{"text": "advertisements", "boundingBox": + [3.2069, 8.1056, 4.2431, 8.1056, 4.2431, 8.2212, 3.2069, 8.2212]}]}, {"text": + "Half Booth", "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, 8.433, + 1.0931, 8.433], "words": [{"text": "Half", "boundingBox": [1.0931, 8.3163, + 1.3514, 8.3163, 1.3514, 8.433, 1.0931, 8.433]}, {"text": "Booth", "boundingBox": + [1.4028, 8.317, 1.7861, 8.317, 1.7861, 8.433, 1.4028, 8.433]}]}, {"text": + "Full booth", "boundingBox": [3.2139, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, + 3.2139, 8.4413], "words": [{"text": "Full", "boundingBox": [3.2139, 8.3253, + 3.4292, 8.3253, 3.4292, 8.4413, 3.2139, 8.4413]}, {"text": "booth", "boundingBox": + [3.4917, 8.3253, 3.8722, 8.3253, 3.8722, 8.4413, 3.4917, 8.4413]}]}, {"text": + "$350", "boundingBox": [5.8319, 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, + 8.4514], "words": [{"text": "$350", "boundingBox": [5.8319, 8.3062, 6.1583, + 8.3062, 6.1583, 8.4514, 5.8319, 8.4514]}]}, {"text": "25% discount on program + guide", "boundingBox": [3.2097, 8.5508, 5.3417, 8.5508, 5.3417, 8.6659, 3.2097, + 8.6659], "words": [{"text": "25%", "boundingBox": [3.2097, 8.5417, 3.4819, + 8.5417, 3.4819, 8.6545, 3.2097, 8.6545]}, {"text": "discount", "boundingBox": + [3.5333, 8.5372, 4.1014, 8.5372, 4.1014, 8.6531, 3.5333, 8.6531]}, {"text": + "on", "boundingBox": [4.1514, 8.5715, 4.3069, 8.5715, 4.3069, 8.6531, 4.1514, + 8.6531]}, {"text": "program", "boundingBox": [4.3681, 8.5715, 4.925, 8.5715, + 4.925, 8.6812, 4.3681, 8.6812]}, {"text": "guide", "boundingBox": [4.9806, + 8.5372, 5.3417, 8.5372, 5.3417, 8.6812, 4.9806, 8.6812]}]}, {"text": "advertisements", + "boundingBox": [3.2069, 8.7406, 4.2431, 8.7406, 4.2431, 8.8563, 3.2069, 8.8563], + "words": [{"text": "advertisements", "boundingBox": [3.2069, 8.7406, 4.2431, + 8.7406, 4.2431, 8.8562, 3.2069, 8.8562]}]}]}, {"page": 2, "angle": 0, "width": + 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": "Vendor #:", "boundingBox": + [6.1278, 1.0688, 7.1514, 1.0688, 7.1514, 1.24, 6.1278, 1.24], "words": [{"text": + "Vendor", "boundingBox": [6.1278, 1.0667, 6.8653, 1.0667, 6.8653, 1.2403, + 6.1278, 1.2403]}, {"text": "#:", "boundingBox": [6.9306, 1.076, 7.1514, 1.076, + 7.1514, 1.2392, 6.9306, 1.2392]}]}, {"text": "121", "boundingBox": [7.1514, + 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "words": [{"text": + "121", "boundingBox": [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, + 1.2392]}]}, {"text": "Vendor Details:", "boundingBox": [1.0042, 2.1774, 2.35, + 2.1774, 2.35, 2.3316, 1.0042, 2.3316], "words": [{"text": "Vendor", "boundingBox": + [1.0042, 2.1778, 1.65, 2.1778, 1.65, 2.3316, 1.0042, 2.3316]}, {"text": "Details:", + "boundingBox": [1.7236, 2.1771, 2.35, 2.1771, 2.35, 2.3316, 1.7236, 2.3316]}]}, + {"text": "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, + 2.1375, 2.9019, 1.0069, 2.9019], "words": [{"text": "Company", "boundingBox": + [1.0069, 2.775, 1.6514, 2.775, 1.6514, 2.9125, 1.0069, 2.9125]}, {"text": + "Name:", "boundingBox": [1.7014, 2.7764, 2.1375, 2.7764, 2.1375, 2.8851, 1.7014, + 2.8851]}]}, {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "words": [{"text": "Southridge", + "boundingBox": [2.1917, 2.7688, 2.9181, 2.7688, 2.9181, 2.9128, 2.1917, 2.9128]}, + {"text": "Video", "boundingBox": [2.9694, 2.7688, 3.3472, 2.7688, 3.3472, + 2.8847, 2.9694, 2.8847]}]}, {"text": "Contact:", "boundingBox": [1.0069, 3.1049, + 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149], "words": [{"text": "Contact:", + "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, 1.0069, 3.2149]}]}, + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "words": [{"text": "Jamie@southridgevideo.com", + "boundingBox": [1.6208, 3.0986, 3.5764, 3.0986, 3.5764, 3.2427, 1.6208, 3.2427]}]}, + {"text": "Preferred Package:", "boundingBox": [1.0111, 3.4298, 2.2972, 3.4298, + 2.2972, 3.5589, 1.0111, 3.5589], "words": [{"text": "Preferred", "boundingBox": + [1.0111, 3.4295, 1.65, 3.4295, 1.65, 3.5465, 1.0111, 3.5465]}, {"text": "Package:", + "boundingBox": [1.7083, 3.4302, 2.2972, 3.4302, 2.2972, 3.5743, 1.7083, 3.5743]}]}, + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "words": [{"text": "Gold", "boundingBox": [2.3556, 3.4302, + 2.6542, 3.4302, 2.6542, 3.5462, 2.3556, 3.5462]}]}, {"text": "Special Requests:", + "boundingBox": [1.0056, 3.7645, 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], + "words": [{"text": "Special", "boundingBox": [1.0056, 3.7601, 1.475, 3.7601, + 1.475, 3.9042, 1.0056, 3.9042]}, {"text": "Requests:", "boundingBox": [1.5347, + 3.7684, 2.1903, 3.7684, 2.1903, 3.9042, 1.5347, 3.9042]}]}, {"text": "N/a", + "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], + "words": [{"text": "N/a", "boundingBox": [2.2542, 3.7538, 2.4778, 3.7538, + 2.4778, 3.8976, 2.2542, 3.8976]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/0/lines/0/words/0", + "#/readResults/0/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": + ["#/readResults/0/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": + "__Address__1", "boundingBox": null, "elements": null}, "value": {"text": + "Contoso Ltd. 2345 Dogwood Lane Birch, Kansas 98123", "boundingBox": [1.0069, + 3.5781, 2.3764, 3.5781, 2.3764, 4.1379, 1.0069, 4.1379], "elements": ["#/readResults/0/lines/7/words/0", + "#/readResults/0/lines/7/words/1", "#/readResults/0/lines/8/words/0", "#/readResults/0/lines/8/words/1", + "#/readResults/0/lines/8/words/2", "#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", + "#/readResults/0/lines/9/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + 6, "columns": 3, "cells": [{"text": "Package", "rowIndex": 0, "columnIndex": + 0, "boundingBox": [1.0931, 4.6986, 1.6236, 4.6986, 1.6236, 4.8427, 1.0931, + 4.8427], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": false}, {"text": "Included", "rowIndex": 0, - "columnIndex": 1, "boundingBox": [2.6986, 4.6556, 3.2833, 4.6556, 3.2833, - 4.8583, 2.6986, 4.8583], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 1, "boundingBox": [2.7125, 4.6986, 3.2708, 4.6986, 3.2708, + 4.8146, 2.7125, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], "isHeader": true, "isFooter": false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [5.8236, 4.6556, 6.1597, 4.6556, 6.1597, 4.8583, 5.8236, 4.8583], "confidence": + [5.8375, 4.7038, 6.1514, 4.7038, 6.1514, 4.8146, 5.8375, 4.8146], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "isHeader": true, "isFooter": false}, {"text": "Gold Sponsor", "rowIndex": - 1, "columnIndex": 0, "boundingBox": [1.0778, 4.8653, 1.9861, 4.8653, 1.9861, - 5.0681, 1.0778, 5.0681], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, - "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], + 1, "columnIndex": 0, "boundingBox": [1.0861, 4.9125, 1.9833, 4.9125, 1.9833, + 5.042, 1.0861, 5.042], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Pre-keynote thank you Logo on poster Full page ad in program guide", "rowIndex": 1, "columnIndex": - 1, "boundingBox": [3.2, 4.8736, 5.2083, 4.8736, 5.2083, 5.7139, 3.2, 5.7139], + 1, "boundingBox": [3.2139, 4.917, 5.2014, 4.917, 5.2014, 5.6885, 3.2139, 5.6885], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1", "#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2", "#/readResults/0/lines/18/words/0", "#/readResults/0/lines/18/words/1", "#/readResults/0/lines/18/words/2", "#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/19/words/4", "#/readResults/0/lines/19/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.825, - 4.8653, 6.2889, 4.8653, 6.2889, 5.0681, 5.825, 5.0681], "confidence": 1.0, + {"text": "$1,500", "rowIndex": 1, "columnIndex": 2, "boundingBox": [5.8319, + 4.8976, 6.2833, 4.8976, 6.2833, 5.0469, 5.8319, 5.0469], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "isHeader": false, "isFooter": false}, {"text": "Silver Sponsor", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [1.0778, 5.9347, 2.0361, 5.9347, 2.0361, - 6.1375, 1.0778, 6.1375], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [1.0833, 5.982, 2.0333, 5.982, 2.0333, + 6.1098, 1.0833, 6.1098], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Post-keynote thank you Logo on poster Half page ad in program guide", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [3.2, 5.9431, 5.2389, 5.9431, 5.2389, 6.7833, 3.2, 6.7833], - "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", + 1, "boundingBox": [3.2139, 5.9868, 5.2306, 5.9868, 5.2306, 6.7569, 3.2139, + 6.7569], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0", "#/readResults/0/lines/21/words/1", "#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1", "#/readResults/0/lines/23/words/2", "#/readResults/0/lines/24/words/0", "#/readResults/0/lines/24/words/1", "#/readResults/0/lines/24/words/2", "#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1", "#/readResults/0/lines/25/words/2", "#/readResults/0/lines/25/words/3", "#/readResults/0/lines/25/words/4", "#/readResults/0/lines/25/words/5"], "isHeader": false, "isFooter": false}, - {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.825, - 5.9347, 6.2889, 5.9347, 6.2889, 6.1375, 5.825, 6.1375], "confidence": 1.0, + {"text": "$1,200", "rowIndex": 2, "columnIndex": 2, "boundingBox": [5.8319, + 5.9677, 6.2833, 5.9677, 6.2833, 6.1167, 5.8319, 6.1167], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "isHeader": false, "isFooter": false}, {"text": "Bronze Sponsor", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [1.0778, 6.7903, 2.1389, 6.7903, 2.1389, - 6.9931, 1.0778, 6.9931], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [1.0931, 6.8407, 2.1361, 6.8407, 2.1361, + 6.9647, 1.0931, 6.9647], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth Logo on poster 50% discount on program guide advertisements", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [3.2, 6.7986, 5.35, 6.7986, 5.35, 7.6292, 3.2, 7.6292], + 1, "boundingBox": [3.2069, 6.842, 5.3417, 6.842, 5.3417, 7.5865, 3.2069, 7.5865], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2", "#/readResults/0/lines/30/words/3", "#/readResults/0/lines/30/words/4", "#/readResults/0/lines/31/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.825, - 6.7903, 6.2889, 6.7903, 6.2889, 6.9931, 5.825, 6.9931], "confidence": 1.0, + {"text": "$1,000", "rowIndex": 3, "columnIndex": 2, "boundingBox": [5.8319, + 6.8226, 6.2833, 6.8226, 6.2833, 6.9719, 5.8319, 6.9719], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "isHeader": false, "isFooter": false}, {"text": "Full Booth", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [1.0778, 7.6389, 1.7653, 7.6389, 1.7653, - 7.8417, 1.0778, 7.8417], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [1.0931, 7.6819, 1.7542, 7.6819, 1.7542, + 7.7979, 1.0931, 7.7979], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0", "#/readResults/0/lines/32/words/1"], "isHeader": false, "isFooter": false}, {"text": "Full booth 50% discount on program guide advertisements", "rowIndex": 4, "columnIndex": 1, "boundingBox": - [3.2, 7.6472, 5.35, 7.6472, 5.35, 8.2639, 3.2, 8.2639], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", + [3.2069, 7.6903, 5.3417, 7.6903, 5.3417, 8.2212, 3.2069, 8.2212], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0", "#/readResults/0/lines/33/words/1", "#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1", "#/readResults/0/lines/35/words/2", "#/readResults/0/lines/35/words/3", "#/readResults/0/lines/35/words/4", "#/readResults/0/lines/36/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.825, 7.6389, - 6.1639, 7.6389, 6.1639, 7.8417, 5.825, 7.8417], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": - false, "isFooter": false}, {"text": "Half Booth", "rowIndex": 5, "columnIndex": - 0, "boundingBox": [1.0778, 8.2736, 1.7972, 8.2736, 1.7972, 8.4764, 1.0778, - 8.4764], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0", - "#/readResults/0/lines/37/words/1"], "isHeader": false, "isFooter": false}, - {"text": "Full booth 25% discount on program guide advertisements", "rowIndex": - 5, "columnIndex": 1, "boundingBox": [3.2, 8.2819, 5.35, 8.2819, 5.35, 8.9, - 3.2, 8.9], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", + {"text": "$600", "rowIndex": 4, "columnIndex": 2, "boundingBox": [5.8319, + 7.6712, 6.1583, 7.6712, 6.1583, 7.8167, 5.8319, 7.8167], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], + "isHeader": false, "isFooter": false}, {"text": "Half Booth", "rowIndex": + 5, "columnIndex": 0, "boundingBox": [1.0931, 8.3167, 1.7861, 8.3167, 1.7861, + 8.433, 1.0931, 8.433], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + ["#/readResults/0/lines/37/words/0", "#/readResults/0/lines/37/words/1"], + "isHeader": false, "isFooter": false}, {"text": "Full booth 25% discount on + program guide advertisements", "rowIndex": 5, "columnIndex": 1, "boundingBox": + [3.2069, 8.3253, 5.3417, 8.3253, 5.3417, 8.8563, 3.2069, 8.8563], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0", "#/readResults/0/lines/38/words/1", "#/readResults/0/lines/40/words/0", "#/readResults/0/lines/40/words/1", "#/readResults/0/lines/40/words/2", "#/readResults/0/lines/40/words/3", "#/readResults/0/lines/40/words/4", "#/readResults/0/lines/41/words/0"], "isHeader": false, "isFooter": false}, - {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.825, 8.2736, - 6.1639, 8.2736, 6.1639, 8.4764, 5.825, 8.4764], "confidence": 1.0, "rowSpan": - 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": - false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": - [{"key": {"text": "Vendor #:", "boundingBox": [6.1389, 1.0556, 7.1667, 1.0556, - 7.1667, 1.2708, 6.1389, 1.2708], "elements": ["#/readResults/1/lines/0/words/0", + {"text": "$350", "rowIndex": 5, "columnIndex": 2, "boundingBox": [5.8319, + 8.3062, 6.1583, 8.3062, 6.1583, 8.4514, 5.8319, 8.4514], "confidence": 1.0, + "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": + [{"key": {"text": "Vendor #:", "boundingBox": [6.1278, 1.0688, 7.1514, 1.0688, + 7.1514, 1.24, 6.1278, 1.24], "elements": ["#/readResults/1/lines/0/words/0", "#/readResults/1/lines/0/words/1"]}, "value": {"text": "121", "boundingBox": - [7.1667, 1.0556, 7.5167, 1.0556, 7.5167, 1.2708, 7.1667, 1.2708], "elements": + [7.1514, 1.076, 7.4833, 1.076, 7.4833, 1.2392, 7.1514, 1.2392], "elements": ["#/readResults/1/lines/1/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Company Name:", "boundingBox": [1.0028, 2.7611, 2.1556, 2.7611, 2.1556, 2.9278, - 1.0028, 2.9278], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, - "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7611, 3.3542, - 2.7611, 3.3542, 2.9278, 2.1917, 2.9278], "elements": ["#/readResults/1/lines/4/words/0", + "Company Name:", "boundingBox": [1.0069, 2.7755, 2.1375, 2.7755, 2.1375, 2.9019, + 1.0069, 2.9019], "elements": ["#/readResults/1/lines/3/words/0", "#/readResults/1/lines/3/words/1"]}, + "value": {"text": "Southridge Video", "boundingBox": [2.1917, 2.7688, 3.3472, + 2.7688, 3.3472, 2.9041, 2.1917, 2.9041], "elements": ["#/readResults/1/lines/4/words/0", "#/readResults/1/lines/4/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Contact:", "boundingBox": [1.0069, 3.0903, 1.5903, 3.0903, 1.5903, 3.2472, - 1.0069, 3.2472], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": - {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6222, 3.0903, 3.5667, - 3.0903, 3.5667, 3.2472, 1.6222, 3.2472], "elements": ["#/readResults/1/lines/6/words/0"]}, + "Contact:", "boundingBox": [1.0069, 3.1049, 1.5708, 3.1049, 1.5708, 3.2149, + 1.0069, 3.2149], "elements": ["#/readResults/1/lines/5/words/0"]}, "value": + {"text": "Jamie@southridgevideo.com", "boundingBox": [1.6208, 3.0986, 3.5764, + 3.0986, 3.5764, 3.2427, 1.6208, 3.2427], "elements": ["#/readResults/1/lines/6/words/0"]}, "confidence": 0.53}, {"key": {"text": "Preferred Package:", "boundingBox": - [1.0028, 3.4236, 2.3194, 3.4236, 2.3194, 3.5806, 1.0028, 3.5806], "elements": + [1.0111, 3.4298, 2.2972, 3.4298, 2.2972, 3.5589, 1.0111, 3.5589], "elements": ["#/readResults/1/lines/7/words/0", "#/readResults/1/lines/7/words/1"]}, "value": - {"text": "Gold", "boundingBox": [2.35, 3.4236, 2.6875, 3.4236, 2.6875, 3.5806, - 2.35, 3.5806], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": - 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0167, 3.7611, - 2.2194, 3.7611, 2.2194, 3.9139, 1.0167, 3.9139], "elements": ["#/readResults/1/lines/9/words/0", + {"text": "Gold", "boundingBox": [2.3556, 3.4302, 2.6542, 3.4302, 2.6542, 3.5462, + 2.3556, 3.5462], "elements": ["#/readResults/1/lines/8/words/0"]}, "confidence": + 0.53}, {"key": {"text": "Special Requests:", "boundingBox": [1.0056, 3.7645, + 2.1903, 3.7645, 2.1903, 3.9042, 1.0056, 3.9042], "elements": ["#/readResults/1/lines/9/words/0", "#/readResults/1/lines/9/words/1"]}, "value": {"text": "N/a", "boundingBox": - [2.25, 3.7611, 2.5111, 3.7611, 2.5111, 3.9139, 2.25, 3.9139], "elements": - ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}, {"key": {"text": - "__Tokens__1", "boundingBox": null, "elements": null}, "value": {"text": "Vendor - Details:", "boundingBox": [1.0111, 2.1736, 2.375, 2.1736, 2.375, 2.3722, 1.0111, - 2.3722], "elements": ["#/readResults/1/lines/2/words/0", "#/readResults/1/lines/2/words/1"]}, - "confidence": 1.0}], "tables": [], "clusterId": 1}], "documentResults": [], - "errors": []}}' + [2.2542, 3.7538, 2.4778, 3.7538, 2.4778, 3.8976, 2.2542, 3.8976], "elements": + ["#/readResults/1/lines/10/words/0"]}, "confidence": 0.53}], "tables": [], + "clusterId": 1}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 4b233fa8-465b-4ded-b1fd-8aa92a491e81 - content-length: '36398' + apim-request-id: cb4557ba-a8ab-4b2e-a042-064b6c570c36 + content-length: '32950' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:40 GMT + date: Mon, 14 Sep 2020 20:22:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '27' + x-envoy-upstream-service-time: '23' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a9e06b8e-99e1-4362-9063-a1807976c5da/analyzeresults/ffc5d6c4-ce85-4bb2-9eb8-8c6aff599924 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/012fe63e-d924-4b66-a7bf-af6c471b6ad4/analyzeresults/d26d8a95-bd93-4108-9310-6e1649dd4dda version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml index fb9e882be748..2f60be00a652 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_custom_forms_encoded_url.yaml @@ -2,28 +2,30 @@ interactions: - request: body: 'b''{"source": "https://fakeuri.com/blank%20space"}''' headers: + Accept: + - application/json Content-Length: - '47' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: 00000000-0000-0000-0000-000000000000"}}' headers: - apim-request-id: b05f2852-843e-458b-a2d3-e52a26a6795f + apim-request-id: 10909b39-671b-4113-bdac-a1f007c01ab5 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:41 GMT + date: Mon, 14 Sep 2020 20:22:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '16' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/00000000-0000-0000-0000-000000000000/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml index 0a33c17eed95..bbbfa89c418c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_bad_url.yaml @@ -3,137 +3,165 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 63869737-3759-4435-92a9-22905e193651 + apim-request-id: 7911c579-df76-4aca-9ed5-9158dac9dd2a content-length: '0' - date: Mon, 17 Aug 2020 18:31:30 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4 + date: Mon, 14 Sep 2020 20:22:01 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '72' + x-envoy-upstream-service-time: '37' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "31599d09-cd47-4aeb-b364-bfd3c542bfc4", "status": - "creating", "createdDateTime": "2020-08-17T18:31:30Z", "lastUpdatedDateTime": - "2020-08-17T18:31:30Z"}}' + string: '{"modelInfo": {"modelId": "1a201c06-c5dd-4a27-8e3d-301495b70124", "status": + "creating", "createdDateTime": "2020-09-14T20:22:02Z", "lastUpdatedDateTime": + "2020-09-14T20:22:02Z"}}' headers: - apim-request-id: 4f80e5fb-8e68-463b-983d-7e2ba5faa050 + apim-request-id: 7ed8ad8c-1677-41ad-b48f-db573193e273 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:31:35 GMT + date: Mon, 14 Sep 2020 20:22:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "31599d09-cd47-4aeb-b364-bfd3c542bfc4", "status": - "ready", "createdDateTime": "2020-08-17T18:31:30Z", "lastUpdatedDateTime": - "2020-08-17T18:31:40Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "1a201c06-c5dd-4a27-8e3d-301495b70124", "status": + "creating", "createdDateTime": "2020-09-14T20:22:02Z", "lastUpdatedDateTime": + "2020-09-14T20:22:02Z"}}' + headers: + apim-request-id: 97af247e-09fd-4b84-9330-9fb676366bc3 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:22:11 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "1a201c06-c5dd-4a27-8e3d-301495b70124", "status": + "ready", "createdDateTime": "2020-09-14T20:22:02Z", "lastUpdatedDateTime": + "2020-09-14T20:22:14Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 39ea7941-9ab4-4450-864f-96687497926a + apim-request-id: 1e20b692-3be8-45c2-aa32-a539948f8cd8 content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:31:40 GMT + date: Mon, 14 Sep 2020 20:22:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124?includeKeys=true - request: body: 'b''{"source": "https://badurl.jpg"}''' headers: + Accept: + - application/json Content-Length: - '32' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: a4767ac5-e8e2-45dc-a6e1-7f1162a77ca8 + apim-request-id: d5120dae-7425-43ab-9d09-b46d2cd9624c content-length: '0' - date: Mon, 17 Aug 2020 18:31:40 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4/analyzeresults/3829f33f-0b3f-4945-8da9-dbba818cb367 + date: Mon, 14 Sep 2020 20:22:17 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124/analyzeresults/cece81ee-4437-4779-8e56-e41c08fa29a6 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '44' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/3.0.0b2 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4/analyzeresults/3829f33f-0b3f-4945-8da9-dbba818cb367 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124/analyzeresults/cece81ee-4437-4779-8e56-e41c08fa29a6 response: body: - string: '{"status": "failed", "createdDateTime": "2020-08-17T18:31:41Z", "lastUpdatedDateTime": - "2020-08-17T18:31:41Z", "analyzeResult": {"version": null, "readResults": + string: '{"status": "failed", "createdDateTime": "2020-09-14T20:22:17Z", "lastUpdatedDateTime": + "2020-09-14T20:22:18Z", "analyzeResult": {"version": null, "readResults": null, "pageResults": null, "documentResults": null, "errors": [{"code": "2003", "message": "Download failed. Please check your input URL."}]}}' headers: - apim-request-id: 99518af7-99b5-46f9-a831-94807e1b0b29 + apim-request-id: cec742ad-5776-44c1-989b-48d9599acce6 content-length: '303' content-type: application/json; charset=utf-8 - date: Mon, 17 Aug 2020 18:31:46 GMT + date: Mon, 14 Sep 2020 20:22:22 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '30' + x-envoy-upstream-service-time: '17' x-ms-cs-error-code: '2003' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31599d09-cd47-4aeb-b364-bfd3c542bfc4/analyzeresults/3829f33f-0b3f-4945-8da9-dbba818cb367 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/1a201c06-c5dd-4a27-8e3d-301495b70124/analyzeresults/cece81ee-4437-4779-8e56-e41c08fa29a6 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml index 2e09a817eaf7..7c161eaeaf0a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled.yaml @@ -3,197 +3,227 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: ce4ae571-fa7b-48b3-aca2-33527a13a670 + apim-request-id: 65469484-240d-493f-abe8-4984ae2e4c49 content-length: '0' - date: Fri, 10 Jul 2020 18:51:00 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854 + date: Mon, 14 Sep 2020 20:22:23 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1818' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "af3127d7-1eaa-4c34-906a-77062b72e854", "status": - "ready", "createdDateTime": "2020-07-10T18:51:00Z", "lastUpdatedDateTime": - "2020-07-10T18:51:03Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "f0aaa053-5bf3-482b-aa99-d8e0fe7f09af", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:22:23Z", + "lastUpdatedDateTime": "2020-09-14T20:22:26Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: f78cbe43-0f29-40cb-8216-3efcba047eaa + apim-request-id: 033497bc-eb74-4ba2-8883-e2c7cb59c61b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:05 GMT + date: Mon, 14 Sep 2020 20:22:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '51' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json Content-Length: - '160' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: f9c6c5f7-8ee9-4234-845e-e2315d5c59ee + apim-request-id: c91fb430-3138-45b0-8d79-c850279c3c36 content-length: '0' - date: Fri, 10 Jul 2020 18:51:05 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyzeresults/5d221b3b-b1af-4db2-9db4-a986ead795d0 + date: Mon, 14 Sep 2020 20:22:28 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyzeresults/c85793b0-80ec-4a73-9652-20d781d16b96 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '72' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyze?includeTextDetails=false +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyzeresults/c85793b0-80ec-4a73-9652-20d781d16b96 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:22:28Z", + "lastUpdatedDateTime": "2020-09-14T20:22:33Z"}' + headers: + apim-request-id: dcfa475e-dd39-426f-b11e-9358fa105ba1 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:22:33 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '19' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyzeresults/c85793b0-80ec-4a73-9652-20d781d16b96 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyzeresults/5d221b3b-b1af-4db2-9db4-a986ead795d0 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyzeresults/c85793b0-80ec-4a73-9652-20d781d16b96 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:06Z", - "lastUpdatedDateTime": "2020-07-10T18:51:09Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel"}], "pageResults": [{"page": 1, "tables": - [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, "columnIndex": 1, "text": - "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, 1309, 1610, 1072, 1610]}, - {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", "boundingBox": [1309, - 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": 2, "columnIndex": - 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, 1309, 1658, 1072, - 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", "boundingBox": - [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Bernie Sanders", "boundingBox": [482, 1658, 1072, 1658, 1072, - 1708, 482, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": "TOTAL", "boundingBox": - [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, {"rowIndex": 3, "columnIndex": - 2, "text": "$144.00", "boundingBox": [1309, 1658, 1544, 1658, 1544, 1708, - 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": [{"rowIndex": 0, "columnIndex": - 0, "text": "Details", "boundingBox": [156, 1038, 847, 1038, 847, 1087, 156, - 1087]}, {"rowIndex": 0, "columnIndex": 1, "text": "Quantity", "boundingBox": - [847, 1038, 1072, 1038, 1072, 1087, 847, 1087]}, {"rowIndex": 0, "columnIndex": - 2, "text": "Unit Price", "boundingBox": [1072, 1038, 1309, 1038, 1309, 1087, - 1072, 1087]}, {"rowIndex": 0, "columnIndex": 3, "text": "Total", "boundingBox": - [1309, 1038, 1544, 1038, 1544, 1087, 1309, 1087]}, {"rowIndex": 1, "columnIndex": - 0, "text": "Bindings", "boundingBox": [156, 1087, 847, 1087, 847, 1128, 156, - 1128]}, {"rowIndex": 1, "columnIndex": 1, "text": "20", "boundingBox": [847, - 1087, 1072, 1087, 1072, 1128, 847, 1128]}, {"rowIndex": 1, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1087, 1309, 1087, 1309, 1128, 1072, - 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, {"rowIndex": 2, "columnIndex": - 0, "text": "Covers Small", "boundingBox": [156, 1128, 847, 1128, 847, 1172, - 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, {"rowIndex": 2, "columnIndex": - 2, "text": "1.00", "boundingBox": [1072, 1128, 1309, 1128, 1309, 1172, 1072, - 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": "20.00", "boundingBox": - [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, {"rowIndex": 3, "columnIndex": - 0, "text": "Feather Bookmark", "boundingBox": [156, 1172, 847, 1172, 847, - 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, {"rowIndex": 3, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1172, 1309, 1172, 1309, 1216, 1072, - 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, {"rowIndex": 4, "columnIndex": - 0, "text": "Copper Swirl Marker", "boundingBox": [156, 1216, 847, 1216, 847, - 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": 1, "text": "20", "boundingBox": - [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, {"rowIndex": 4, "columnIndex": - 2, "text": "5,00", "boundingBox": [1072, 1216, 1309, 1216, 1309, 1260, 1072, - 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": "100.00", "boundingBox": - [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], "documentResults": - [{"docType": "custom:form", "pageRange": [1, 1], "fields": {"DatedAs": {"type": - "string", "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": - [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": - 1.0}, "Total": {"type": "string", "valueString": "$144.00", "text": "$144.00", - "page": 1, "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, - 1429.0, 1697.0], "confidence": 1.0}, "Website": {"type": "string", "valueString": - "www.herolimited.com", "text": "www.herolimited.com", "page": 1, "boundingBox": - [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], "confidence": 1.0}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0}, "Tax": {"type": "string", "valueString": - "$4.00", "text": "$4.00", "page": 1, "boundingBox": [1461.0, 1614.0, 1530.0, - 1614.0, 1530.0, 1642.0, 1461.0, 1642.0], "confidence": 1.0}, "VendorName": - {"type": "string", "valueString": "Hillary Swank", "text": "Hillary Swank", - "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, 351.0, - 641.0], "confidence": 1.0}, "Quantity": {"type": "number", "text": "20", "page": - 1, "boundingBox": [861.0, 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], - "confidence": 1.0}, "Signature": {"type": "string", "valueString": "Bernie - Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [482.0, 1670.0, - 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], "confidence": 1.0}, "CompanyName": - {"type": "string", "valueString": "Higgly Wiggly Books", "text": "Higgly Wiggly - Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, 629.0, 682.0, - 378.0, 682.0], "confidence": 1.0}, "Subtotal": {"type": "string", "valueString": - "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, 1570.0, 1530.0, - 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0}, "Email": {"type": - "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0}, "Merchant": {"type": "string", "valueString": - "Hero Limited", "text": "Hero Limited", "page": 1, "boundingBox": [621.0, - 202.0, 1075.0, 202.0, 1075.0, 266.0, 621.0, 266.0], "confidence": 1.0}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0}, "CompanyAddress": {"type": "string", "valueString": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:28Z", + "lastUpdatedDateTime": "2020-09-14T20:22:36Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "selectionMarks": [{"boundingBox": [2, 2060, 195, 2060, + 195, 2200, 2, 2200], "confidence": 0.881, "state": "unselected"}]}], "pageResults": + [{"page": 1, "tables": [{"rows": 4, "columns": 3, "cells": [{"rowIndex": 1, + "columnIndex": 1, "text": "SUBTOTAL", "boundingBox": [1072, 1566, 1309, 1566, + 1309, 1610, 1072, 1610]}, {"rowIndex": 1, "columnIndex": 2, "text": "$140.00", + "boundingBox": [1309, 1566, 1544, 1566, 1544, 1610, 1309, 1610]}, {"rowIndex": + 2, "columnIndex": 1, "text": "TAX", "boundingBox": [1072, 1610, 1309, 1610, + 1309, 1658, 1072, 1658]}, {"rowIndex": 2, "columnIndex": 2, "text": "$4.00", + "boundingBox": [1309, 1610, 1544, 1610, 1544, 1658, 1309, 1658]}, {"rowIndex": + 3, "columnIndex": 0, "text": "Bernie Sanders", "boundingBox": [489, 1658, + 1072, 1658, 1072, 1708, 489, 1708]}, {"rowIndex": 3, "columnIndex": 1, "text": + "TOTAL", "boundingBox": [1072, 1658, 1309, 1658, 1309, 1708, 1072, 1708]}, + {"rowIndex": 3, "columnIndex": 2, "text": "$144.00", "boundingBox": [1309, + 1658, 1544, 1658, 1544, 1708, 1309, 1708]}]}, {"rows": 6, "columns": 4, "cells": + [{"rowIndex": 0, "columnIndex": 0, "text": "Details", "boundingBox": [156, + 1038, 847, 1038, 847, 1087, 156, 1087]}, {"rowIndex": 0, "columnIndex": 1, + "text": "Quantity", "boundingBox": [847, 1038, 1072, 1038, 1072, 1087, 847, + 1087]}, {"rowIndex": 0, "columnIndex": 2, "text": "Unit Price", "boundingBox": + [1072, 1038, 1309, 1038, 1309, 1087, 1072, 1087]}, {"rowIndex": 0, "columnIndex": + 3, "text": "Total", "boundingBox": [1309, 1038, 1544, 1038, 1544, 1087, 1309, + 1087]}, {"rowIndex": 1, "columnIndex": 0, "text": "Bindings", "boundingBox": + [156, 1087, 847, 1087, 847, 1128, 156, 1128]}, {"rowIndex": 1, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1087, 1072, 1087, 1072, 1128, 847, 1128]}, + {"rowIndex": 1, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1087, + 1309, 1087, 1309, 1128, 1072, 1128]}, {"rowIndex": 1, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1087, 1544, 1087, 1544, 1128, 1309, 1128]}, + {"rowIndex": 2, "columnIndex": 0, "text": "Covers Small", "boundingBox": [156, + 1128, 847, 1128, 847, 1172, 156, 1172]}, {"rowIndex": 2, "columnIndex": 1, + "text": "20", "boundingBox": [847, 1128, 1072, 1128, 1072, 1172, 847, 1172]}, + {"rowIndex": 2, "columnIndex": 2, "text": "1.00", "boundingBox": [1072, 1128, + 1309, 1128, 1309, 1172, 1072, 1172]}, {"rowIndex": 2, "columnIndex": 3, "text": + "20.00", "boundingBox": [1309, 1128, 1544, 1128, 1544, 1172, 1309, 1172]}, + {"rowIndex": 3, "columnIndex": 0, "text": "Feather Bookmark", "boundingBox": + [156, 1172, 847, 1172, 847, 1216, 156, 1216]}, {"rowIndex": 3, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1172, 1072, 1172, 1072, 1216, 847, 1216]}, + {"rowIndex": 3, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1172, + 1309, 1172, 1309, 1216, 1072, 1216]}, {"rowIndex": 3, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1172, 1544, 1172, 1544, 1216, 1309, 1216]}, + {"rowIndex": 4, "columnIndex": 0, "text": "Copper Swirl Marker", "boundingBox": + [156, 1216, 847, 1216, 847, 1260, 156, 1260]}, {"rowIndex": 4, "columnIndex": + 1, "text": "20", "boundingBox": [847, 1216, 1072, 1216, 1072, 1260, 847, 1260]}, + {"rowIndex": 4, "columnIndex": 2, "text": "5.00", "boundingBox": [1072, 1216, + 1309, 1216, 1309, 1260, 1072, 1260]}, {"rowIndex": 4, "columnIndex": 3, "text": + "100.00", "boundingBox": [1309, 1216, 1544, 1216, 1544, 1260, 1309, 1260]}]}]}], + "documentResults": [{"docType": "custom:f0aaa053-5bf3-482b-aa99-d8e0fe7f09af", + "modelId": "f0aaa053-5bf3-482b-aa99-d8e0fe7f09af", "pageRange": [1, 1], "fields": + {"Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, + 1643.0], "confidence": 0.994}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder - City, CO 92848", "page": 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, - 754.0, 277.0, 754.0], "confidence": 1.0}, "PhoneNumber": {"type": "string", - "valueString": "555-348-6512", "text": "555-348-6512", "page": 1, "boundingBox": - [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, 378.0], "confidence": 1.0}}}], - "errors": []}}' + City, CO 92848", "page": 1, "boundingBox": [273.0, 685.0, 565.0, 685.0, 565.0, + 751.0, 273.0, 751.0], "confidence": 1.0}, "CompanyPhoneNumber": {"type": "string", + "valueString": "938-294-2949", "text": "938-294-2949", "page": 1, "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0], "confidence": 1.0}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, + 378.0], "confidence": 0.89}, "Signature": {"type": "string", "valueString": + "Bernie Sanders", "text": "Bernie Sanders", "page": 1, "boundingBox": [489.0, + 1670.0, 765.0, 1670.0, 765.0, 1708.0, 489.0, 1708.0], "confidence": 0.998}, + "Email": {"type": "string", "valueString": "accounts@herolimited.com", "text": + "accounts@herolimited.com", "page": 1, "boundingBox": [164.0, 479.0, 478.0, + 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": 1.0}, "Subtotal": {"type": + "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": + [1426.0, 1572.0, 1531.0, 1572.0, 1531.0, 1599.0, 1426.0, 1599.0], "confidence": + 0.984}, "PurchaseOrderNumber": {"type": "string", "valueString": "948284", + "text": "948284", "page": 1, "boundingBox": [1277.0, 461.0, 1376.0, 461.0, + 1376.0, 489.0, 1277.0, 489.0], "confidence": 0.94}, "Website": {"type": "string", + "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": + 1, "boundingBox": [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0], + "confidence": 0.95}, "Quantity": {"type": "number", "text": "20", "page": + 1, "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], + "confidence": 0.962}, "Total": {"type": "string", "valueString": "$144.00", + "text": "$144.00", "page": 1, "boundingBox": [1427.0, 1669.0, 1529.0, 1669.0, + 1529.0, 1698.0, 1427.0, 1698.0], "confidence": 0.991}, "VendorName": {"type": + "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": + 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, 639.0, 349.0, 639.0], + "confidence": 0.93}, "Merchant": {"type": "string", "valueString": "Hero Limited", + "text": "Hero Limited", "page": 1, "boundingBox": [620.0, 205.0, 1075.0, 205.0, + 1075.0, 266.0, 620.0, 266.0], "confidence": 0.97}, "DatedAs": {"type": "string", + "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], "confidence": + 0.99}, "CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", + "text": "Higgly Wiggly Books", "page": 1, "boundingBox": [375.0, 646.0, 629.0, + 646.0, 629.0, 679.0, 375.0, 679.0], "confidence": 0.95}}, "docTypeConfidence": + 1.0}], "errors": []}}' headers: - apim-request-id: b32bcd55-38f6-481a-a6b0-65c17397871c - content-length: '5839' + apim-request-id: d77eea12-34d5-44d1-b3d1-8e3d591adca1 + content-length: '6054' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:10 GMT + date: Mon, 14 Sep 2020 20:22:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/af3127d7-1eaa-4c34-906a-77062b72e854/analyzeresults/5d221b3b-b1af-4db2-9db4-a986ead795d0 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/f0aaa053-5bf3-482b-aa99-d8e0fe7f09af/analyzeresults/c85793b0-80ec-4a73-9652-20d781d16b96 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml index f24df9becbe7..cc59cc6d356b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_labeled_transform.yaml @@ -3,359 +3,388 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 940d01ae-5467-48c7-8ae4-d61f47a6422f + apim-request-id: 7b367771-94ba-4cad-a569-7ab45d8fec8b content-length: '0' - date: Fri, 10 Jul 2020 18:51:11 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c + date: Mon, 14 Sep 2020 20:22:10 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '38' + x-envoy-upstream-service-time: '41' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "97718f69-ce25-4d95-9178-4799ff66db2c", "status": - "ready", "createdDateTime": "2020-07-10T18:51:11Z", "lastUpdatedDateTime": - "2020-07-10T18:51:14Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "6fa2105d-67d3-4e8d-bcc9-e0934f6f537e", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:22:10Z", + "lastUpdatedDateTime": "2020-09-14T20:22:13Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: bddbe132-0286-41d6-8c29-0cb71cfdb26f + apim-request-id: e64b6187-333d-40e9-b9d3-64fc30b758f3 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:16 GMT + date: Mon, 14 Sep 2020 20:22:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '55' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json Content-Length: - '160' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 6da52bde-3f45-4c83-8254-87c8e19d10fc + apim-request-id: 4fc0f93d-a13d-41ad-9a3a-0d938aa00471 content-length: '0' - date: Fri, 10 Jul 2020 18:51:16 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyzeresults/ac887997-9d57-4384-a850-797914d02db2 + date: Mon, 14 Sep 2020 20:22:15 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyzeresults/40e5186d-49ae-4b61-b691-b41b4aa183b3 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '86' + x-envoy-upstream-service-time: '44' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyze?includeTextDetails=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyzeresults/40e5186d-49ae-4b61-b691-b41b4aa183b3 + response: + body: + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:22:16Z", + "lastUpdatedDateTime": "2020-09-14T20:22:19Z"}' + headers: + apim-request-id: d4fa560a-9518-4b77-a02e-91fc5bb64f48 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:22:21 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyzeresults/40e5186d-49ae-4b61-b691-b41b4aa183b3 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyzeresults/ac887997-9d57-4384-a850-797914d02db2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyzeresults/40e5186d-49ae-4b61-b691-b41b4aa183b3 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:16Z", - "lastUpdatedDateTime": "2020-07-10T18:51:21Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "language": "en", "angle": 0, "width": - 1700, "height": 2200, "unit": "pixel", "lines": [{"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, - {"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}]}, {"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}]}, {"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}]}, {"boundingBox": [172, 1923, 1508, 1924, 1508, 1959, 172, 1959], + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:16Z", + "lastUpdatedDateTime": "2020-09-14T20:22:23Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": + 2200, "unit": "pixel", "lines": [{"boundingBox": [136, 139, 351, 138, 351, + 166, 136, 166], "text": "Purchase Order", "words": [{"boundingBox": [137, + 140, 264, 139, 263, 167, 137, 167], "text": "Purchase", "confidence": 0.984}, + {"boundingBox": [269, 139, 351, 139, 351, 167, 269, 167], "text": "Order", + "confidence": 0.986}]}, {"boundingBox": [620, 205, 1074, 204, 1075, 265, 620, + 266], "text": "Hero Limited", "words": [{"boundingBox": [621, 208, 794, 205, + 793, 266, 620, 266], "text": "Hero", "confidence": 0.987}, {"boundingBox": + [806, 205, 1075, 205, 1074, 266, 805, 266], "text": "Limited", "confidence": + 0.985}]}, {"boundingBox": [1112, 321, 1554, 321, 1554, 369, 1112, 369], "text": + "Purchase Order", "words": [{"boundingBox": [1113, 322, 1381, 321, 1380, 370, + 1113, 368], "text": "Purchase", "confidence": 0.983}, {"boundingBox": [1390, + 321, 1554, 321, 1553, 370, 1389, 370], "text": "Order", "confidence": 0.983}]}, + {"boundingBox": [163, 352, 528, 350, 528, 376, 163, 379], "text": "Company + Phone: 555-348-6512", "words": [{"boundingBox": [163, 353, 274, 351, 275, + 379, 164, 378], "text": "Company", "confidence": 0.985}, {"boundingBox": [279, + 351, 359, 351, 360, 378, 280, 378], "text": "Phone:", "confidence": 0.984}, + {"boundingBox": [364, 351, 528, 351, 528, 374, 364, 378], "text": "555-348-6512", + "confidence": 0.975}]}, {"boundingBox": [166, 393, 533, 393, 533, 418, 166, + 418], "text": "Website: www.herolimited.com", "words": [{"boundingBox": [167, + 394, 269, 393, 269, 418, 167, 417], "text": "Website:", "confidence": 0.981}, + {"boundingBox": [273, 393, 531, 393, 530, 418, 273, 418], "text": "www.herolimited.com", + "confidence": 0.945}]}, {"boundingBox": [165, 435, 237, 435, 237, 460, 165, + 460], "text": "Email:", "words": [{"boundingBox": [165, 435, 237, 435, 237, + 460, 165, 460], "text": "Email:", "confidence": 0.985}]}, {"boundingBox": + [1024, 419, 1317, 420, 1317, 448, 1024, 448], "text": "Dated As: 12/20/2020", + "words": [{"boundingBox": [1025, 421, 1108, 420, 1108, 448, 1025, 448], "text": + "Dated", "confidence": 0.986}, {"boundingBox": [1114, 420, 1160, 420, 1160, + 448, 1114, 448], "text": "As:", "confidence": 0.987}, {"boundingBox": [1165, + 420, 1317, 421, 1316, 449, 1165, 448], "text": "12/20/2020", "confidence": + 0.982}]}, {"boundingBox": [164, 479, 482, 478, 483, 502, 164, 503], "text": + "accounts@herolimited.com", "words": [{"boundingBox": [164, 481, 478, 479, + 478, 503, 165, 503], "text": "accounts@herolimited.com", "confidence": 0.952}]}, + {"boundingBox": [1023, 461, 1376, 461, 1376, 489, 1023, 488], "text": "Purchase + Order #: 948284", "words": [{"boundingBox": [1023, 461, 1152, 461, 1152, 489, + 1023, 488], "text": "Purchase", "confidence": 0.984}, {"boundingBox": [1157, + 461, 1238, 461, 1239, 489, 1157, 489], "text": "Order", "confidence": 0.986}, + {"boundingBox": [1244, 461, 1272, 461, 1272, 489, 1244, 489], "text": "#:", + "confidence": 0.987}, {"boundingBox": [1277, 461, 1376, 462, 1376, 489, 1277, + 489], "text": "948284", "confidence": 0.983}]}, {"boundingBox": [167, 547, + 397, 546, 397, 591, 167, 592], "text": "Shipped To", "words": [{"boundingBox": + [167, 547, 333, 547, 332, 592, 168, 592], "text": "Shipped", "confidence": + 0.985}, {"boundingBox": [341, 547, 397, 547, 396, 591, 341, 592], "text": + "To", "confidence": 0.988}]}, {"boundingBox": [159, 609, 520, 609, 520, 638, + 159, 638], "text": "Vendor Name: Hillary Swank", "words": [{"boundingBox": + [160, 611, 254, 610, 254, 638, 160, 637], "text": "Vendor", "confidence": + 0.982}, {"boundingBox": [259, 610, 344, 609, 344, 639, 259, 638], "text": + "Name:", "confidence": 0.986}, {"boundingBox": [350, 609, 430, 609, 430, 639, + 349, 639], "text": "Hillary", "confidence": 0.985}, {"boundingBox": [435, + 609, 521, 610, 520, 639, 435, 639], "text": "Swank", "confidence": 0.986}]}, + {"boundingBox": [159, 647, 629, 646, 629, 677, 160, 679], "text": "Company + Name: Higgly Wiggly Books", "words": [{"boundingBox": [160, 649, 278, 647, + 279, 678, 161, 676], "text": "Company", "confidence": 0.985}, {"boundingBox": + [284, 647, 370, 647, 370, 679, 284, 678], "text": "Name:", "confidence": 0.983}, + {"boundingBox": [375, 647, 453, 646, 453, 679, 375, 679], "text": "Higgly", + "confidence": 0.986}, {"boundingBox": [459, 646, 545, 646, 544, 678, 459, + 679], "text": "Wiggly", "confidence": 0.986}, {"boundingBox": [550, 646, 629, + 646, 628, 676, 550, 678], "text": "Books", "confidence": 0.986}]}, {"boundingBox": + [160, 684, 526, 684, 526, 712, 160, 711], "text": "Address: 938 NE Burner + Road", "words": [{"boundingBox": [161, 685, 269, 685, 268, 712, 160, 711], + "text": "Address:", "confidence": 0.981}, {"boundingBox": [274, 685, 324, + 685, 323, 713, 273, 712], "text": "938", "confidence": 0.987}, {"boundingBox": + [329, 685, 365, 685, 364, 713, 328, 713], "text": "NE", "confidence": 0.988}, + {"boundingBox": [370, 685, 455, 685, 455, 713, 369, 713], "text": "Burner", + "confidence": 0.985}, {"boundingBox": [460, 685, 527, 685, 527, 713, 460, + 713], "text": "Road", "confidence": 0.987}]}, {"boundingBox": [279, 722, 566, + 721, 566, 750, 279, 751], "text": "Boulder City, CO 92848", "words": [{"boundingBox": + [279, 722, 371, 722, 372, 751, 280, 750], "text": "Boulder", "confidence": + 0.985}, {"boundingBox": [377, 722, 433, 722, 434, 751, 378, 751], "text": + "City,", "confidence": 0.986}, {"boundingBox": [439, 722, 477, 722, 477, 751, + 439, 751], "text": "CO", "confidence": 0.988}, {"boundingBox": [482, 722, + 565, 722, 565, 749, 482, 751], "text": "92848", "confidence": 0.977}]}, {"boundingBox": + [612, 721, 885, 721, 885, 747, 612, 748], "text": "Phone: 938-294-2949", "words": + [{"boundingBox": [613, 722, 702, 722, 702, 749, 613, 749], "text": "Phone:", + "confidence": 0.983}, {"boundingBox": [708, 722, 885, 722, 884, 748, 708, + 749], "text": "938-294-2949", "confidence": 0.976}]}, {"boundingBox": [167, + 784, 453, 784, 453, 829, 167, 830], "text": "Shipped From", "words": [{"boundingBox": + [167, 784, 330, 785, 330, 830, 169, 830], "text": "Shipped", "confidence": + 0.982}, {"boundingBox": [339, 785, 448, 785, 448, 826, 339, 830], "text": + "From", "confidence": 0.987}]}, {"boundingBox": [165, 852, 445, 851, 445, + 878, 165, 879], "text": "Name: Bernie Sanders", "words": [{"boundingBox": + [166, 853, 250, 853, 250, 879, 166, 879], "text": "Name:", "confidence": 0.986}, + {"boundingBox": [255, 852, 338, 852, 337, 880, 255, 879], "text": "Bernie", + "confidence": 0.985}, {"boundingBox": [343, 852, 446, 852, 445, 879, 343, + 880], "text": "Sanders", "confidence": 0.983}]}, {"boundingBox": [164, 889, + 629, 889, 629, 919, 164, 919], "text": "Company Name: Jupiter Book Supply", + "words": [{"boundingBox": [164, 890, 282, 890, 283, 919, 165, 919], "text": + "Company", "confidence": 0.984}, {"boundingBox": [288, 890, 374, 889, 375, + 919, 289, 919], "text": "Name:", "confidence": 0.985}, {"boundingBox": [380, + 889, 466, 889, 466, 919, 380, 919], "text": "Jupiter", "confidence": 0.983}, + {"boundingBox": [471, 889, 536, 889, 536, 920, 472, 919], "text": "Book", + "confidence": 0.983}, {"boundingBox": [542, 889, 630, 890, 629, 920, 542, + 920], "text": "Supply", "confidence": 0.986}]}, {"boundingBox": [165, 925, + 521, 926, 521, 953, 165, 952], "text": "Address: 383 N Kinnick Road", "words": + [{"boundingBox": [166, 926, 273, 925, 273, 953, 166, 953], "text": "Address:", + "confidence": 0.982}, {"boundingBox": [279, 925, 327, 925, 327, 953, 278, + 953], "text": "383", "confidence": 0.987}, {"boundingBox": [332, 926, 353, + 926, 353, 953, 332, 953], "text": "N", "confidence": 0.983}, {"boundingBox": + [358, 926, 448, 926, 448, 954, 358, 953], "text": "Kinnick", "confidence": + 0.984}, {"boundingBox": [453, 926, 521, 927, 520, 954, 453, 954], "text": + "Road", "confidence": 0.987}]}, {"boundingBox": [280, 963, 514, 962, 514, + 990, 281, 991], "text": "Seattle, WA 38383", "words": [{"boundingBox": [281, + 965, 377, 964, 378, 991, 283, 991], "text": "Seattle,", "confidence": 0.981}, + {"boundingBox": [382, 964, 429, 964, 430, 991, 383, 991], "text": "WA", "confidence": + 0.988}, {"boundingBox": [434, 964, 514, 962, 514, 990, 435, 991], "text": + "38383", "confidence": 0.975}]}, {"boundingBox": [760, 963, 1032, 963, 1032, + 989, 760, 990], "text": "Phone: 932-299-0292", "words": [{"boundingBox": [760, + 964, 849, 964, 849, 990, 760, 990], "text": "Phone:", "confidence": 0.983}, + {"boundingBox": [855, 964, 1033, 963, 1032, 990, 854, 990], "text": "932-299-0292", + "confidence": 0.978}]}, {"boundingBox": [446, 1047, 558, 1047, 558, 1077, + 446, 1077], "text": "Details", "words": [{"boundingBox": [447, 1048, 558, + 1048, 558, 1077, 446, 1078], "text": "Details", "confidence": 0.985}]}, {"boundingBox": + [885, 1047, 1034, 1047, 1034, 1083, 886, 1083], "text": "Quantity", "words": + [{"boundingBox": [886, 1048, 1034, 1047, 1034, 1084, 886, 1084], "text": "Quantity", + "confidence": 0.981}]}, {"boundingBox": [1111, 1047, 1270, 1047, 1269, 1078, + 1111, 1077], "text": "Unit Price", "words": [{"boundingBox": [1112, 1047, + 1181, 1047, 1180, 1078, 1111, 1078], "text": "Unit", "confidence": 0.987}, + {"boundingBox": [1187, 1047, 1270, 1049, 1269, 1078, 1186, 1078], "text": + "Price", "confidence": 0.986}]}, {"boundingBox": [1382, 1047, 1468, 1047, + 1467, 1077, 1382, 1077], "text": "Total", "words": [{"boundingBox": [1384, + 1047, 1468, 1047, 1468, 1077, 1384, 1077], "text": "Total", "confidence": + 0.986}]}, {"boundingBox": [172, 1093, 279, 1095, 279, 1123, 172, 1121], "text": + "Bindings", "words": [{"boundingBox": [172, 1094, 278, 1097, 278, 1123, 173, + 1122], "text": "Bindings", "confidence": 0.984}]}, {"boundingBox": [859, 1094, + 893, 1094, 893, 1119, 859, 1119], "text": "20", "words": [{"boundingBox": + [861, 1094, 892, 1094, 892, 1119, 861, 1119], "text": "20", "confidence": + 0.988}]}, {"boundingBox": [1240, 1096, 1295, 1094, 1294, 1118, 1241, 1118], + "text": "1.00", "words": [{"boundingBox": [1241, 1095, 1293, 1094, 1294, 1117, + 1242, 1118], "text": "1.00", "confidence": 0.986}]}, {"boundingBox": [1458, + 1095, 1530, 1095, 1530, 1119, 1458, 1119], "text": "20.00", "words": [{"boundingBox": + [1458, 1096, 1531, 1095, 1530, 1120, 1459, 1119], "text": "20.00", "confidence": + 0.983}]}, {"boundingBox": [169, 1135, 332, 1134, 333, 1160, 169, 1161], "text": + "Covers Small", "words": [{"boundingBox": [170, 1136, 254, 1136, 253, 1161, + 170, 1161], "text": "Covers", "confidence": 0.985}, {"boundingBox": [259, + 1136, 333, 1135, 332, 1161, 258, 1161], "text": "Small", "confidence": 0.982}]}, + {"boundingBox": [859, 1135, 894, 1135, 891, 1160, 860, 1160], "text": "20", + "words": [{"boundingBox": [861, 1135, 894, 1135, 894, 1160, 861, 1160], "text": + "20", "confidence": 0.988}]}, {"boundingBox": [1239, 1135, 1295, 1135, 1294, + 1159, 1239, 1160], "text": "1.00", "words": [{"boundingBox": [1240, 1135, + 1294, 1135, 1294, 1159, 1241, 1160], "text": "1.00", "confidence": 0.986}]}, + {"boundingBox": [1458, 1135, 1530, 1135, 1530, 1159, 1459, 1160], "text": + "20.00", "words": [{"boundingBox": [1458, 1135, 1529, 1135, 1530, 1159, 1458, + 1160], "text": "20.00", "confidence": 0.985}]}, {"boundingBox": [173, 1178, + 403, 1177, 403, 1205, 173, 1206], "text": "Feather Bookmark", "words": [{"boundingBox": + [173, 1180, 266, 1179, 267, 1206, 174, 1206], "text": "Feather", "confidence": + 0.983}, {"boundingBox": [271, 1179, 402, 1178, 403, 1206, 272, 1206], "text": + "Bookmark", "confidence": 0.984}]}, {"boundingBox": [860, 1179, 892, 1179, + 891, 1204, 860, 1203], "text": "20", "words": [{"boundingBox": [863, 1179, + 892, 1179, 891, 1204, 863, 1204], "text": "20", "confidence": 0.986}]}, {"boundingBox": + [1239, 1179, 1295, 1178, 1295, 1203, 1239, 1204], "text": "5.00", "words": + [{"boundingBox": [1239, 1179, 1294, 1178, 1294, 1203, 1239, 1204], "text": + "5.00", "confidence": 0.986}]}, {"boundingBox": [1442, 1180, 1530, 1180, 1530, + 1203, 1443, 1204], "text": "100.00", "words": [{"boundingBox": [1443, 1181, + 1529, 1180, 1529, 1204, 1443, 1205], "text": "100.00", "confidence": 0.984}]}, + {"boundingBox": [169, 1223, 429, 1222, 430, 1249, 169, 1253], "text": "Copper + Swirl Marker", "words": [{"boundingBox": [170, 1223, 259, 1222, 259, 1252, + 170, 1253], "text": "Copper", "confidence": 0.985}, {"boundingBox": [265, + 1222, 328, 1222, 328, 1251, 265, 1252], "text": "Swirl", "confidence": 0.986}, + {"boundingBox": [334, 1222, 429, 1223, 428, 1248, 334, 1251], "text": "Marker", + "confidence": 0.983}]}, {"boundingBox": [860, 1223, 893, 1223, 893, 1247, + 860, 1247], "text": "20", "words": [{"boundingBox": [860, 1223, 892, 1223, + 892, 1247, 860, 1247], "text": "20", "confidence": 0.988}]}, {"boundingBox": + [1239, 1221, 1294, 1222, 1294, 1246, 1239, 1247], "text": "5.00", "words": + [{"boundingBox": [1239, 1221, 1293, 1221, 1293, 1247, 1239, 1247], "text": + "5.00", "confidence": 0.983}]}, {"boundingBox": [1443, 1223, 1530, 1222, 1530, + 1246, 1444, 1247], "text": "100.00", "words": [{"boundingBox": [1444, 1224, + 1530, 1223, 1529, 1247, 1444, 1248], "text": "100.00", "confidence": 0.982}]}, + {"boundingBox": [1146, 1573, 1296, 1573, 1296, 1600, 1146, 1600], "text": + "SUBTOTAL", "words": [{"boundingBox": [1147, 1575, 1295, 1575, 1294, 1600, + 1147, 1600], "text": "SUBTOTAL", "confidence": 0.984}]}, {"boundingBox": [1426, + 1571, 1530, 1571, 1530, 1597, 1426, 1598], "text": "$140.00", "words": [{"boundingBox": + [1426, 1572, 1531, 1572, 1531, 1597, 1427, 1599], "text": "$140.00", "confidence": + 0.982}]}, {"boundingBox": [1236, 1618, 1296, 1618, 1295, 1643, 1236, 1643], + "text": "TAX", "words": [{"boundingBox": [1238, 1618, 1296, 1618, 1296, 1643, + 1238, 1643], "text": "TAX", "confidence": 0.987}]}, {"boundingBox": [1458, + 1615, 1529, 1615, 1528, 1641, 1458, 1643], "text": "$4.00", "words": [{"boundingBox": + [1458, 1615, 1529, 1615, 1529, 1642, 1458, 1643], "text": "$4.00", "confidence": + 0.983}]}, {"boundingBox": [484, 1670, 764, 1670, 764, 1707, 484, 1706], "text": + "Bernie Sanders", "words": [{"boundingBox": [489, 1671, 609, 1671, 609, 1706, + 489, 1706], "text": "Bernie", "confidence": 0.979}, {"boundingBox": [616, + 1671, 764, 1670, 765, 1708, 616, 1706], "text": "Sanders", "confidence": 0.979}]}, + {"boundingBox": [1203, 1673, 1297, 1673, 1297, 1698, 1204, 1699], "text": + "TOTAL", "words": [{"boundingBox": [1204, 1674, 1297, 1673, 1297, 1699, 1205, + 1699], "text": "TOTAL", "confidence": 0.983}]}, {"boundingBox": [1427, 1670, + 1529, 1669, 1530, 1696, 1427, 1697], "text": "$144.00", "words": [{"boundingBox": + [1427, 1671, 1529, 1669, 1529, 1697, 1429, 1698], "text": "$144.00", "confidence": + 0.984}]}, {"boundingBox": [542, 1718, 718, 1719, 718, 1742, 542, 1741], "text": + "Bernie Sanders", "words": [{"boundingBox": [542, 1719, 617, 1719, 618, 1742, + 544, 1742], "text": "Bernie", "confidence": 0.985}, {"boundingBox": [621, + 1719, 717, 1719, 717, 1743, 622, 1742], "text": "Sanders", "confidence": 0.985}]}, + {"boundingBox": [577, 1753, 681, 1755, 681, 1778, 577, 1776], "text": "Manager", + "words": [{"boundingBox": [577, 1754, 681, 1756, 680, 1778, 578, 1776], "text": + "Manager", "confidence": 0.985}]}, {"boundingBox": [172, 1796, 478, 1796, + 478, 1832, 172, 1831], "text": "Additional Notes:", "words": [{"boundingBox": + [173, 1796, 355, 1796, 354, 1832, 173, 1831], "text": "Additional", "confidence": + 0.98}, {"boundingBox": [361, 1796, 479, 1797, 478, 1833, 361, 1832], "text": + "Notes:", "confidence": 0.985}]}, {"boundingBox": [174, 1879, 707, 1880, 707, + 1911, 174, 1908], "text": "Do not Jostle Box. Unpack carefully. Enjoy.", "words": + [{"boundingBox": [175, 1881, 205, 1881, 205, 1907, 175, 1907], "text": "Do", + "confidence": 0.988}, {"boundingBox": [210, 1881, 256, 1880, 257, 1908, 210, + 1907], "text": "not", "confidence": 0.987}, {"boundingBox": [261, 1880, 335, + 1880, 335, 1909, 262, 1908], "text": "Jostle", "confidence": 0.982}, {"boundingBox": + [340, 1880, 401, 1880, 402, 1909, 340, 1909], "text": "Box.", "confidence": + 0.986}, {"boundingBox": [406, 1880, 500, 1880, 500, 1910, 407, 1909], "text": + "Unpack", "confidence": 0.985}, {"boundingBox": [505, 1880, 623, 1880, 623, + 1911, 505, 1910], "text": "carefully.", "confidence": 0.975}, {"boundingBox": + [628, 1880, 707, 1881, 707, 1912, 628, 1911], "text": "Enjoy.", "confidence": + 0.984}]}, {"boundingBox": [168, 1923, 1510, 1923, 1510, 1957, 168, 1958], "text": "Jupiter Book Supply will refund you 50% per book if returned within - 60 days of reading and", "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}]}, {"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"]}, + 60 days of reading and", "words": [{"boundingBox": [169, 1924, 270, 1924, + 270, 1959, 169, 1959], "text": "Jupiter", "confidence": 0.984}, {"boundingBox": + [277, 1924, 355, 1924, 355, 1958, 277, 1959], "text": "Book", "confidence": + 0.986}, {"boundingBox": [361, 1924, 465, 1924, 465, 1958, 361, 1958], "text": + "Supply", "confidence": 0.983}, {"boundingBox": [472, 1924, 517, 1924, 517, + 1958, 471, 1958], "text": "will", "confidence": 0.986}, {"boundingBox": [524, + 1924, 623, 1924, 623, 1958, 524, 1958], "text": "refund", "confidence": 0.984}, + {"boundingBox": [630, 1924, 687, 1924, 687, 1958, 629, 1958], "text": "you", + "confidence": 0.987}, {"boundingBox": [694, 1924, 763, 1924, 762, 1958, 694, + 1958], "text": "50%", "confidence": 0.983}, {"boundingBox": [770, 1924, 820, + 1924, 819, 1958, 769, 1958], "text": "per", "confidence": 0.987}, {"boundingBox": + [827, 1924, 900, 1924, 900, 1958, 826, 1958], "text": "book", "confidence": + 0.987}, {"boundingBox": [907, 1924, 926, 1924, 925, 1958, 907, 1958], "text": + "if", "confidence": 0.985}, {"boundingBox": [932, 1924, 1061, 1924, 1060, + 1958, 932, 1958], "text": "returned", "confidence": 0.981}, {"boundingBox": + [1068, 1924, 1157, 1924, 1156, 1958, 1067, 1958], "text": "within", "confidence": + 0.981}, {"boundingBox": [1164, 1924, 1201, 1924, 1200, 1958, 1163, 1958], + "text": "60", "confidence": 0.987}, {"boundingBox": [1208, 1924, 1283, 1924, + 1282, 1958, 1206, 1958], "text": "days", "confidence": 0.985}, {"boundingBox": + [1290, 1924, 1318, 1924, 1316, 1958, 1289, 1958], "text": "of", "confidence": + 0.988}, {"boundingBox": [1325, 1924, 1439, 1924, 1438, 1958, 1323, 1958], + "text": "reading", "confidence": 0.983}, {"boundingBox": [1446, 1924, 1510, + 1924, 1509, 1958, 1445, 1958], "text": "and", "confidence": 0.987}]}, {"boundingBox": + [168, 1957, 786, 1958, 786, 1991, 168, 1991], "text": "offer you 25% off you + next total purchase.", "words": [{"boundingBox": [169, 1958, 235, 1958, 236, + 1991, 169, 1991], "text": "offer", "confidence": 0.985}, {"boundingBox": [242, + 1958, 299, 1958, 300, 1992, 242, 1991], "text": "you", "confidence": 0.987}, + {"boundingBox": [306, 1958, 374, 1958, 374, 1992, 306, 1992], "text": "25%", + "confidence": 0.983}, {"boundingBox": [380, 1958, 421, 1958, 421, 1992, 381, + 1992], "text": "off", "confidence": 0.987}, {"boundingBox": [427, 1958, 483, + 1958, 483, 1992, 428, 1992], "text": "you", "confidence": 0.987}, {"boundingBox": + [489, 1958, 555, 1959, 556, 1992, 490, 1992], "text": "next", "confidence": + 0.986}, {"boundingBox": [562, 1959, 628, 1959, 628, 1991, 562, 1992], "text": + "total", "confidence": 0.986}, {"boundingBox": [634, 1959, 786, 1961, 786, + 1990, 635, 1991], "text": "purchase.", "confidence": 0.967}]}], "selectionMarks": + [{"boundingBox": [2, 2060, 195, 2060, 195, 2200, 2, 2200], "confidence": 0.881, + "state": "unselected"}]}], "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", + [489, 1658, 1072, 1658, 1072, 1708, 489, 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": @@ -391,7 +420,7 @@ interactions: 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, + {"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"]}, @@ -400,76 +429,74 @@ interactions: "#/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, + {"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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 1], "fields": - {"CompanyName": {"type": "string", "valueString": "Higgly Wiggly Books", "text": - "Higgly Wiggly Books", "page": 1, "boundingBox": [378.0, 646.0, 629.0, 646.0, - 629.0, 682.0, 378.0, 682.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/11/words/2", - "#/analyzeResult/readResults/0/lines/11/words/3", "#/analyzeResult/readResults/0/lines/11/words/4"]}, + "documentResults": [{"docType": "custom:6fa2105d-67d3-4e8d-bcc9-e0934f6f537e", + "modelId": "6fa2105d-67d3-4e8d-bcc9-e0934f6f537e", "pageRange": [1, 1], "fields": + {"Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": + 1, "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, + 1643.0], "confidence": 0.994, "elements": ["#/readResults/0/lines/44/words/0"]}, "CompanyAddress": {"type": "string", "valueString": "938 NE Burner Road Boulder City, CO 92848", "text": "938 NE Burner Road Boulder City, CO 92848", "page": - 1, "boundingBox": [277.0, 685.0, 568.0, 685.0, 568.0, 754.0, 277.0, 754.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/12/words/1", - "#/analyzeResult/readResults/0/lines/12/words/2", "#/analyzeResult/readResults/0/lines/12/words/3", - "#/analyzeResult/readResults/0/lines/12/words/4", "#/analyzeResult/readResults/0/lines/13/words/0", - "#/analyzeResult/readResults/0/lines/13/words/1", "#/analyzeResult/readResults/0/lines/13/words/2", - "#/analyzeResult/readResults/0/lines/13/words/3"]}, "CompanyPhoneNumber": - {"type": "string", "valueString": "938-294-2949", "text": "938-294-2949", - "page": 1, "boundingBox": [713.0, 722.0, 884.0, 722.0, 884.0, 750.0, 713.0, - 750.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/14/words/1"]}, - "VendorName": {"type": "string", "valueString": "Hillary Swank", "text": "Hillary - Swank", "page": 1, "boundingBox": [351.0, 609.0, 518.0, 609.0, 518.0, 641.0, - 351.0, 641.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/10/words/2", - "#/analyzeResult/readResults/0/lines/10/words/3"]}, "Signature": {"type": - "string", "valueString": "Bernie Sanders", "text": "Bernie Sanders", "page": - 1, "boundingBox": [482.0, 1670.0, 764.0, 1670.0, 764.0, 1709.0, 482.0, 1709.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/45/words/0", - "#/analyzeResult/readResults/0/lines/45/words/1"]}, "DatedAs": {"type": "string", - "valueString": "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": - [1168.0, 420.0, 1317.0, 420.0, 1317.0, 450.0, 1168.0, 450.0], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/6/words/2"]}, "Email": - {"type": "string", "valueString": "accounts@herolimited.com", "text": "accounts@herolimited.com", - "page": 1, "boundingBox": [166.0, 480.0, 475.0, 480.0, 475.0, 503.0, 166.0, - 503.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/7/words/0"]}, - "Tax": {"type": "string", "valueString": "$4.00", "text": "$4.00", "page": - 1, "boundingBox": [1461.0, 1614.0, 1530.0, 1614.0, 1530.0, 1642.0, 1461.0, - 1642.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/44/words/0"]}, + 1, "boundingBox": [273.0, 685.0, 565.0, 685.0, 565.0, 751.0, 273.0, 751.0], + "confidence": 1.0, "elements": ["#/readResults/0/lines/12/words/1", "#/readResults/0/lines/12/words/2", + "#/readResults/0/lines/12/words/3", "#/readResults/0/lines/12/words/4", "#/readResults/0/lines/13/words/0", + "#/readResults/0/lines/13/words/1", "#/readResults/0/lines/13/words/2", "#/readResults/0/lines/13/words/3"]}, + "CompanyPhoneNumber": {"type": "string", "valueString": "938-294-2949", "text": + "938-294-2949", "page": 1, "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, + 749.0, 708.0, 749.0], "confidence": 1.0, "elements": ["#/readResults/0/lines/14/words/1"]}, + "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", + "page": 1, "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, + 378.0], "confidence": 0.89, "elements": ["#/readResults/0/lines/3/words/2"]}, + "Signature": {"type": "string", "valueString": "Bernie Sanders", "text": "Bernie + Sanders", "page": 1, "boundingBox": [489.0, 1670.0, 765.0, 1670.0, 765.0, + 1708.0, 489.0, 1708.0], "confidence": 0.998, "elements": ["#/readResults/0/lines/45/words/0", + "#/readResults/0/lines/45/words/1"]}, "Email": {"type": "string", "valueString": + "accounts@herolimited.com", "text": "accounts@herolimited.com", "page": 1, + "boundingBox": [164.0, 479.0, 478.0, 479.0, 478.0, 503.0, 164.0, 503.0], "confidence": + 1.0, "elements": ["#/readResults/0/lines/7/words/0"]}, "Subtotal": {"type": + "string", "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": + [1426.0, 1572.0, 1531.0, 1572.0, 1531.0, 1599.0, 1426.0, 1599.0], "confidence": + 0.984, "elements": ["#/readResults/0/lines/42/words/0"]}, "PurchaseOrderNumber": + {"type": "string", "valueString": "948284", "text": "948284", "page": 1, "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "confidence": + 0.94, "elements": ["#/readResults/0/lines/8/words/3"]}, "Website": {"type": + "string", "valueString": "www.herolimited.com", "text": "www.herolimited.com", + "page": 1, "boundingBox": [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, + 418.0], "confidence": 0.95, "elements": ["#/readResults/0/lines/4/words/1"]}, "Quantity": {"type": "number", "text": "20", "page": 1, "boundingBox": [861.0, - 1089.0, 895.0, 1089.0, 895.0, 1120.0, 861.0, 1120.0], "confidence": 1.0, "elements": - ["#/analyzeResult/readResults/0/lines/26/words/0"]}, "Website": {"type": "string", - "valueString": "www.herolimited.com", "text": "www.herolimited.com", "page": - 1, "boundingBox": [274.0, 393.0, 529.0, 393.0, 529.0, 419.0, 274.0, 419.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/1"]}, + 1094.0, 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 0.962, + "elements": ["#/readResults/0/lines/26/words/0"]}, "Total": {"type": "string", + "valueString": "$144.00", "text": "$144.00", "page": 1, "boundingBox": [1427.0, + 1669.0, 1529.0, 1669.0, 1529.0, 1698.0, 1427.0, 1698.0], "confidence": 0.991, + "elements": ["#/readResults/0/lines/47/words/0"]}, "VendorName": {"type": + "string", "valueString": "Hillary Swank", "text": "Hillary Swank", "page": + 1, "boundingBox": [349.0, 609.0, 521.0, 609.0, 521.0, 639.0, 349.0, 639.0], + "confidence": 0.93, "elements": ["#/readResults/0/lines/10/words/2", "#/readResults/0/lines/10/words/3"]}, "Merchant": {"type": "string", "valueString": "Hero Limited", "text": "Hero - Limited", "page": 1, "boundingBox": [621.0, 202.0, 1075.0, 202.0, 1075.0, - 266.0, 621.0, 266.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/1/words/0", - "#/analyzeResult/readResults/0/lines/1/words/1"]}, "Subtotal": {"type": "string", - "valueString": "$140.00", "text": "$140.00", "page": 1, "boundingBox": [1429.0, - 1570.0, 1530.0, 1570.0, 1530.0, 1599.0, 1429.0, 1599.0], "confidence": 1.0, - "elements": ["#/analyzeResult/readResults/0/lines/42/words/0"]}, "Total": - {"type": "string", "valueString": "$144.00", "text": "$144.00", "page": 1, - "boundingBox": [1429.0, 1669.0, 1530.0, 1669.0, 1530.0, 1697.0, 1429.0, 1697.0], - "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/47/words/0"]}, - "PurchaseOrderNumber": {"type": "string", "valueString": "948284", "text": - "948284", "page": 1, "boundingBox": [1282.0, 461.0, 1377.0, 461.0, 1377.0, - 489.0, 1282.0, 489.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/8/words/3"]}, - "PhoneNumber": {"type": "string", "valueString": "555-348-6512", "text": "555-348-6512", - "page": 1, "boundingBox": [367.0, 351.0, 529.0, 351.0, 529.0, 378.0, 367.0, - 378.0], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/2/words/2"]}}}], - "errors": []}}' + Limited", "page": 1, "boundingBox": [620.0, 205.0, 1075.0, 205.0, 1075.0, + 266.0, 620.0, 266.0], "confidence": 0.97, "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "DatedAs": {"type": "string", "valueString": + "12/20/2020", "text": "12/20/2020", "page": 1, "boundingBox": [1165.0, 420.0, + 1317.0, 420.0, 1317.0, 449.0, 1165.0, 449.0], "confidence": 0.99, "elements": + ["#/readResults/0/lines/6/words/2"]}, "CompanyName": {"type": "string", "valueString": + "Higgly Wiggly Books", "text": "Higgly Wiggly Books", "page": 1, "boundingBox": + [375.0, 646.0, 629.0, 646.0, 629.0, 679.0, 375.0, 679.0], "confidence": 0.95, + "elements": ["#/readResults/0/lines/11/words/2", "#/readResults/0/lines/11/words/3", + "#/readResults/0/lines/11/words/4"]}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: - apim-request-id: f62f389c-30ef-4341-93ef-bd33e7372995 - content-length: '25282' + apim-request-id: cf8c1044-fd9c-4af2-9bfc-486877ee5370 + content-length: '25118' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:22 GMT + date: Mon, 14 Sep 2020 20:22:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '719' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/97718f69-ce25-4d95-9178-4799ff66db2c/analyzeresults/ac887997-9d57-4384-a850-797914d02db2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/6fa2105d-67d3-4e8d-bcc9-e0934f6f537e/analyzeresults/40e5186d-49ae-4b61-b691-b41b4aa183b3 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml index 9bc838a7b303..9f9a778e8eb9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_multipage_labeled.yaml @@ -3,273 +3,312 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: e5b2c640-a25a-4614-bdf2-fd41344bda17 + apim-request-id: 14d122f6-e6c3-49ab-a251-ddf9e2708002 content-length: '0' - date: Fri, 10 Jul 2020 18:51:24 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29 + date: Mon, 14 Sep 2020 20:22:26 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '1691' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7b2cb383-41d0-4b8c-b15d-be005d115a29", "status": - "ready", "createdDateTime": "2020-07-10T18:51:23Z", "lastUpdatedDateTime": - "2020-07-10T18:51:26Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "18de0ca6-0b2d-4f46-88fa-22b366214414", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:22:27Z", + "lastUpdatedDateTime": "2020-09-14T20:22:28Z"}, "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": []}}' headers: - apim-request-id: 08e3c8c6-a1a4-4269-9ca7-56a1cdc03da3 + apim-request-id: 8d973ab9-f96d-4dcc-a3d6-1a0c76651e47 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:30 GMT + date: Mon, 14 Sep 2020 20:22:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: + Accept: + - application/json Content-Length: - '241' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: ddf94e04-832b-4db9-a64c-6500f5332be2 + apim-request-id: e7d2a5a9-f6d9-4487-9a98-fd1c34eb5ce6 content-length: '0' - date: Fri, 10 Jul 2020 18:51:30 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 + date: Mon, 14 Sep 2020 20:22:32 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '95' + x-envoy-upstream-service-time: '46' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:51:30Z", - "lastUpdatedDateTime": "2020-07-10T18:51:34Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:22:32Z", + "lastUpdatedDateTime": "2020-09-14T20:22:36Z"}' headers: - apim-request-id: 1e95988f-f9b1-4472-ab41-ed14ef1b6b64 + apim-request-id: ecbea11f-4bb3-40f2-b4a4-e52d4160ca09 content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:35 GMT + date: Mon, 14 Sep 2020 20:22:37 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:30Z", - "lastUpdatedDateTime": "2020-07-10T18:51:38Z", "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": + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:22:32Z", + "lastUpdatedDateTime": "2020-09-14T20:22:39Z"}' + headers: + apim-request-id: 2a30cda4-a9a4-4270-8416-f76e51764797 + content-length: '109' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:22:41 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '13' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 + response: + body: + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:32Z", + "lastUpdatedDateTime": "2020-09-14T20:22:43Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, + 1.1035, 10.9943, 0, 10.9943], "confidence": 0.881, "state": "unselected"}, + {"boundingBox": [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], + "confidence": 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, + 0.0263, 1.0499, 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, + {"boundingBox": [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], + "confidence": 0.553, "state": "unselected"}]}, {"page": 2, "angle": 0, "width": + 8.4967, "height": 10.9967, "unit": "inch"}, {"page": 3, "angle": 0, "width": + 8.5, "height": 11, "unit": "inch", "selectionMarks": [{"boundingBox": [0, + 9.877, 1.1039, 9.877, 1.1039, 10.9946, 0, 10.9946], "confidence": 0.881, "state": + "unselected"}, {"boundingBox": [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, + 0, 10.9975], "confidence": 0.833, "state": "unselected"}, {"boundingBox": + [0, 0.0268, 1.048, 0.0268, 1.048, 1.0107, 0, 1.0107], "confidence": 0.6, "state": + "unselected"}, {"boundingBox": [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, + 11, 6.8221, 11], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5061, 9.9417, 8.4988, 9.9417, 8.4988, 11, 7.5061, 11], "confidence": 0.553, + "state": "unselected"}]}], "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": + "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": "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": {"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}, "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}, "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}, - "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], + "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:18de0ca6-0b2d-4f46-88fa-22b366214414", "modelId": "18de0ca6-0b2d-4f46-88fa-22b366214414", + "pageRange": [1, 3], "fields": {"CustomerPhoneNumber": {"type": "string", + "valueString": "555-555-5555", "text": "555-555-5555", "page": 1, "boundingBox": + [6.01, 2.12, 6.935, 2.12, 6.935, 2.225, 6.01, 2.225], "confidence": 1.0}, + "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": + "Bilbo Baggins", "page": 1, "boundingBox": [6.015, 1.45, 6.895, 1.45, 6.895, + 1.595, 6.015, 1.595], "confidence": 0.971}, "Tip": {"type": "string", "valueString": + "100.00", "text": "100.00", "page": 1, "boundingBox": [5.81, 5.345, 6.26, + 5.345, 6.26, 5.455, 5.81, 5.455], "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}, "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}, "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": + 0.952}, "FirstQuantity": {"type": "string", "valueString": "1", "text": "1", + "page": 1, "boundingBox": [3.26, 3.21, 3.32, 3.21, 3.32, 3.32, 3.26, 3.32], + "confidence": 1.0}, "Merchant": {"type": "string", "valueString": "B", "text": + "B", "page": 3, "boundingBox": [1.685, 1.125, 1.765, 1.125, 1.765, 1.245, + 1.685, 1.245], "confidence": 0.5}, "FirstItem": {"type": "string", "valueString": + "A", "text": "A", "page": 1, "boundingBox": [1.085, 3.21, 1.175, 3.21, 1.175, + 3.32, 1.085, 3.32], "confidence": 1.0}, "FirstPrice": {"type": "string", "valueString": + "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, + 5.78, 3.32, 5.425, 3.32], "confidence": 1.0}, "Customer2": {"type": "string", + "valueString": "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": + [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, 6.015, 1.595], "confidence": 0.971}, + "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, + WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015, + 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, 2.03], "confidence": 1.0}, "Merchant2": + {"type": "string", "valueString": "Company", "text": "Company", "page": 3, + "boundingBox": [0.885, 1.125, 1.62, 1.125, 1.62, 1.28, 0.885, 1.28], "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}, "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}, "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}, - "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}, "Customer2": {"type": "string", "valueString": - "Frodo Baggins", "text": "Frodo Baggins", "page": 3, "boundingBox": [6.015000000000001, - 1.45, 6.95, 1.45, 6.95, 1.595, 6.015000000000001, 1.595], "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}, "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}, "CustomerAddress": {"type": - "string", "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit - Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, 1.67, 7.1000000000000005, - 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, 2.0300000000000002], - "confidence": 1.0}, "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}, "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}, "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}, "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}, "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}, "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}, "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": - 1.0}}}], "errors": []}}' + 5.015, 6.18, 5.015], "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.676}, "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}, "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}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: - apim-request-id: ac47d3d3-51c8-4d1e-aa74-25eb9f7c04a6 - content-length: '9504' + apim-request-id: 93eb08e5-0bf9-4169-a20e-7f2d48c99686 + content-length: '10168' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:39 GMT + date: Mon, 14 Sep 2020 20:22:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7b2cb383-41d0-4b8c-b15d-be005d115a29/analyzeresults/5a355e0c-7440-4dd1-989f-c54d63e4e720 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/18de0ca6-0b2d-4f46-88fa-22b366214414/analyzeresults/17dc2f12-4c12-4043-929f-a88268191cd1 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml index 8dd86a274305..564ae1cf23f4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled.yaml @@ -3,328 +3,311 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 90e2259f-137b-46f0-9a76-f0e04eaaee39 + apim-request-id: 2f5b6229-659e-474a-80a4-69c167d83798 content-length: '0' - date: Fri, 10 Jul 2020 18:51:39 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a + date: Mon, 14 Sep 2020 20:22:13 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '46' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "0ed199d8-3344-436d-9352-6cd44b380b3a", "status": - "creating", "createdDateTime": "2020-07-10T18:51:40Z", "lastUpdatedDateTime": - "2020-07-10T18:51:40Z"}}' + string: '{"modelInfo": {"modelId": "78b4019e-967d-481f-bcb2-fcefd96f7d26", "status": + "creating", "createdDateTime": "2020-09-14T20:22:13Z", "lastUpdatedDateTime": + "2020-09-14T20:22:13Z"}}' headers: - apim-request-id: 20fc426b-2d3d-485c-b06b-f6dba9ee2434 + apim-request-id: 7ddd9c19-facb-4cb0-b2d4-239d7b4a200b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:46 GMT + date: Mon, 14 Sep 2020 20:22:18 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "0ed199d8-3344-436d-9352-6cd44b380b3a", "status": - "creating", "createdDateTime": "2020-07-10T18:51:40Z", "lastUpdatedDateTime": - "2020-07-10T18:51:40Z"}}' + string: '{"modelInfo": {"modelId": "78b4019e-967d-481f-bcb2-fcefd96f7d26", "status": + "creating", "createdDateTime": "2020-09-14T20:22:13Z", "lastUpdatedDateTime": + "2020-09-14T20:22:13Z"}}' headers: - apim-request-id: 301d8fbf-5176-462c-84cd-279de815e5a9 + apim-request-id: f09e6fbe-6a56-4bd4-928e-bff6cee5d3e8 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:50 GMT + date: Mon, 14 Sep 2020 20:22:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "0ed199d8-3344-436d-9352-6cd44b380b3a", "status": - "ready", "createdDateTime": "2020-07-10T18:51:40Z", "lastUpdatedDateTime": - "2020-07-10T18:51:52Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "78b4019e-967d-481f-bcb2-fcefd96f7d26", "status": + "ready", "createdDateTime": "2020-09-14T20:22:13Z", "lastUpdatedDateTime": + "2020-09-14T20:22:27Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 668c7dad-c1b9-4801-b90b-8f8bb48e1ee0 + apim-request-id: 084d1578-d6cb-43b8-bd3f-967717a0ac5b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:56 GMT + date: Mon, 14 Sep 2020 20:22:28 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26?includeKeys=true - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json Content-Length: - '160' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 84525f72-f5be-43d0-8f6f-3a145ab8e57a + apim-request-id: ec5159a4-d851-4e68-9a61-0e5b7da373b2 content-length: '0' - date: Fri, 10 Jul 2020 18:51:56 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d + date: Mon, 14 Sep 2020 20:22:28 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyzeresults/8d4a3720-4f40-4985-b065-9715b3b00c80 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '90' + x-envoy-upstream-service-time: '55' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyzeresults/8d4a3720-4f40-4985-b065-9715b3b00c80 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:51:56Z", "lastUpdatedDateTime": - "2020-07-10T18:51:58Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:22:28Z", "lastUpdatedDateTime": + "2020-09-14T20:22:29Z", "analyzeResult": null}' headers: - apim-request-id: c078b72d-d2e0-45a6-98b6-1a4753a2624d + apim-request-id: eb716ad4-58c8-4051-b6b4-47b59942e5f7 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:01 GMT + date: Mon, 14 Sep 2020 20:22:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyzeresults/8d4a3720-4f40-4985-b065-9715b3b00c80 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyzeresults/8d4a3720-4f40-4985-b065-9715b3b00c80 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:56Z", - "lastUpdatedDateTime": "2020-07-10T18:52:01Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:28Z", + "lastUpdatedDateTime": "2020-09-14T20:22:35Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": []}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": null}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - null}, "value": {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, - 351.0, 528.0, 381.0, 371.0, 381.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, - 420.0, 167.0, 420.0], "elements": null}, "value": {"text": "www.herolimited.com", - "boundingBox": [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0], "elements": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": null}, "value": {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, + 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": null}, "value": + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "elements": null}, "confidence": 1.0}, {"key": + {"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0], "elements": null}, "value": {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": null}, "value": - {"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, - 451.0, 1168.0, 451.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": null}, "value": {"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, - 460.0, 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": null}, "value": - {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, - 1282.0, 491.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Vendor - Name:", "boundingBox": [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], - "elements": null}, "value": {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": null}, "confidence": - 0.7}, {"key": {"text": "Company Name:", "boundingBox": [162.0, 646.0, 373.0, - 646.0, 373.0, 678.0, 162.0, 678.0], "elements": null}, "value": {"text": "Higgly - Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, 628.0, 678.0, 379.0, - 678.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", - "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": - null}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [615.0, 723.0, - 707.0, 723.0, 707.0, 752.0, 615.0, 752.0], "elements": null}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", - "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, 166.0, 881.0], "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, - 852.0, 445.0, 881.0, 258.0, 881.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, - 378.0, 919.0, 169.0, 919.0], "elements": null}, "value": {"text": "Jupiter - Book Supply", "boundingBox": [385.0, 888.0, 624.0, 888.0, 624.0, 919.0, 385.0, + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": null}, "value": + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "elements": null}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": null}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + null}, "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": + [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "elements": null}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": null}, "confidence": 0.7}, {"key": + {"text": "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, + 677.0, 160.0, 677.0], "elements": null}, "value": {"text": "Higgly Wiggly + Books", "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], + "elements": null}, "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": null}, + "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": null}, + "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [613.0, 722.0, + 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "elements": null}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Name:", + "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "elements": + null}, "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "elements": null}, "confidence": 0.53}, + {"key": {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, + 374.0, 919.0, 164.0, 919.0], "elements": null}, "value": {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, 919.0], "elements": null}, "confidence": 0.53}, {"key": {"text": "Address:", - "boundingBox": [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": null}, "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": - [283.0, 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": null}, + [279.0, 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": null}, "value": {"text": - "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, - 857.0, 992.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", - "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], - "elements": null}, "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, - 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, - 1293.0, 1643.0, 1242.0, 1643.0], "elements": null}, "value": {"text": "$4.00", - "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0], + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": null}, "value": {"text": + "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, + 855.0, 990.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "SUBTOTAL", + "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], + "elements": null}, "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, + 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, + 1296.0, 1643.0, 1238.0, 1643.0], "elements": null}, "value": {"text": "$4.00", + "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": - [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": - null}, "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, - 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "elements": null}, "confidence": - 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, 1797.0, - 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": null}, "value": + [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": + null}, "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, + 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "elements": null}, "confidence": + 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, 1796.0, + 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": null}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer - you 25% off you next total purchase.", "boundingBox": [170.0, 1880.0, 1511.0, - 1880.0, 1511.0, 1992.0, 170.0, 1992.0], "elements": null}, "confidence": 0.53}, - {"key": {"text": "__Tokens__1", "boundingBox": null, "elements": null}, "value": - {"text": "Purchase Order", "boundingBox": [141.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 141.0, 168.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__3", - "boundingBox": null, "elements": null}, "value": {"text": "Shipped To", "boundingBox": - [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], "elements": null}, - "confidence": 1.0}, {"key": {"text": "__Tokens__4", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped From", "boundingBox": [169.0, 784.0, 445.0, - 784.0, 445.0, 831.0, 169.0, 831.0], "elements": null}, "confidence": 1.0}, - {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": null}, "value": - {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, - 1708.0, 485.0, 1708.0], "elements": null}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": null}, "confidence": 1.0}, {"key": {"text": "__Tokens__7", - "boundingBox": null, "elements": null}, "value": {"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": - null}, "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": - [{"text": "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + you 25% off you next total purchase.", "boundingBox": [169.0, 1880.0, 1511.0, + 1880.0, 1511.0, 1992.0, 169.0, 1992.0], "elements": null}, "confidence": 0.53}], + "tables": [{"rows": 5, "columns": 4, "cells": [{"text": "Details", "rowIndex": + 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, + 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": null, "isHeader": true, "isFooter": false}, {"text": "Quantity", + "rowIndex": 0, "columnIndex": 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, + 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": + 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": "Unit + Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, + 1047.0, 1269.0, 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, + "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, {"text": + "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": [1383.0, 1047.0, + 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": false}, - {"text": "Quantity", "rowIndex": 0, "columnIndex": 1, "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], "confidence": 1.0, - "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Unit Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": - [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Total", "rowIndex": 0, "columnIndex": 3, "boundingBox": - [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, 1080.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": true, "isFooter": - false}, {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "confidence": - 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, - 1098.0, 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "Bindings", "rowIndex": 1, "columnIndex": 0, "boundingBox": [172.0, + 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "confidence": 1.0, "rowSpan": + 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1243.0, - 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 1, "columnIndex": 2, "boundingBox": [1241.0, + 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": 3, "boundingBox": - [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "confidence": + [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": 2, "columnIndex": 0, "boundingBox": - [172.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 172.0, 1162.0], "confidence": + [170.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [862.0, - 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 2, "columnIndex": 1, "boundingBox": [861.0, + 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "confidence": 1.0, + {"text": "1.00", "rowIndex": 2, "columnIndex": 2, "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": 3, "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0], "confidence": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": 3, "columnIndex": 0, "boundingBox": - [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 172.0, 1205.0], "confidence": + [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": 1, "boundingBox": [863.0, - 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], "confidence": 1.0, "rowSpan": + 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 3, "columnIndex": 2, "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": 3, "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0], "confidence": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": 4, "columnIndex": 0, "boundingBox": - [171.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 171.0, 1248.0], "confidence": + [170.0, 1222.0, 429.0, 1222.0, 429.0, 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": - false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, - 1221.0, 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + false}, {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, + 1223.0, 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, - {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1242.0, - 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "confidence": 1.0, + {"text": "5.00", "rowIndex": 4, "columnIndex": 2, "boundingBox": [1239.0, + 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": 3, "boundingBox": - [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "confidence": + [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": null, "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: e52a0f32-34ab-45f0-a58e-100bba495bb6 - content-length: '11800' + apim-request-id: 0b3c3f8c-8af9-4139-8ff1-683eef714d70 + content-length: '10045' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:06 GMT + date: Mon, 14 Sep 2020 20:22:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/0ed199d8-3344-436d-9352-6cd44b380b3a/analyzeresults/2efdee3d-4177-495a-b5ab-b7664958ec6d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/78b4019e-967d-481f-bcb2-fcefd96f7d26/analyzeresults/8d4a3720-4f40-4985-b065-9715b3b00c80 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml index 379e91ac3d63..7f717bb994a6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_form_unlabeled_transform.yaml @@ -3,562 +3,539 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 01ddbf32-ea23-4403-93a9-fabbe10f59b8 + apim-request-id: f94bca6f-f91c-4dd6-9bc7-c75c15eb51e4 content-length: '0' - date: Fri, 10 Jul 2020 18:52:07 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93 + date: Mon, 14 Sep 2020 20:22:39 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '80' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93", "status": - "creating", "createdDateTime": "2020-07-10T18:52:07Z", "lastUpdatedDateTime": - "2020-07-10T18:52:07Z"}}' + string: '{"modelInfo": {"modelId": "abc66877-43d2-4cdb-8753-1e3e9ce94a2c", "status": + "creating", "createdDateTime": "2020-09-14T20:22:39Z", "lastUpdatedDateTime": + "2020-09-14T20:22:39Z"}}' headers: - apim-request-id: c24bd569-47c7-4b85-85aa-c17f1b085427 + apim-request-id: a8d10f2c-8293-4580-aaca-601f09bc09fa content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:12 GMT + date: Mon, 14 Sep 2020 20:22:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93", "status": - "ready", "createdDateTime": "2020-07-10T18:52:07Z", "lastUpdatedDateTime": - "2020-07-10T18:52:16Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"modelInfo": {"modelId": "abc66877-43d2-4cdb-8753-1e3e9ce94a2c", "status": + "creating", "createdDateTime": "2020-09-14T20:22:39Z", "lastUpdatedDateTime": + "2020-09-14T20:22:39Z"}}' headers: - apim-request-id: 8e1881d0-28ee-44f5-977d-d1287e4ea23a + apim-request-id: aec970a0-4fb9-4180-b34d-0f0c08079597 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:17 GMT + date: Mon, 14 Sep 2020 20:22:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93?includeKeys=true -- request: - body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' - headers: - Content-Length: - - '160' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyze?includeTextDetails=true - response: - body: - string: '' - headers: - apim-request-id: 16605c9e-1acf-4af5-90b0-31e1bd653a4c - content-length: '0' - date: Fri, 10 Jul 2020 18:52:17 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' - status: - code: 202 - message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c?includeKeys=true response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:17Z", - "lastUpdatedDateTime": "2020-07-10T18:52:17Z"}' + string: '{"modelInfo": {"modelId": "abc66877-43d2-4cdb-8753-1e3e9ce94a2c", "status": + "ready", "createdDateTime": "2020-09-14T20:22:39Z", "lastUpdatedDateTime": + "2020-09-14T20:22:53Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 4a993132-4bcf-459a-8fda-8d9c54eb903e - content-length: '109' + apim-request-id: ba92ec36-4052-49ae-ac23-a54a43911fd3 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:22 GMT + date: Mon, 14 Sep 2020 20:22:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c?includeKeys=true - request: - body: null + body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json + Content-Length: + - '160' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyze?includeTextDetails=true response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:17Z", - "lastUpdatedDateTime": "2020-07-10T18:52:17Z"}' + string: '' headers: - apim-request-id: 336c2c87-1fbd-4fa0-b931-acc2c06e4898 - content-length: '109' - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:27 GMT + apim-request-id: 68f18f61-83a0-4449-bce3-1e8d7f77b6c2 + content-length: '0' + date: Mon, 14 Sep 2020 20:22:55 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '46' status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + code: 202 + message: Accepted + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:17Z", - "lastUpdatedDateTime": "2020-07-10T18:52:17Z"}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:22:55Z", "lastUpdatedDateTime": + "2020-09-14T20:22:55Z", "analyzeResult": null}' headers: - apim-request-id: 2555ea68-4000-44e9-8a40-69375a51e386 - content-length: '109' + apim-request-id: 3d09d80c-0a75-4971-bc53-0b4b00a7c50f + content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:33 GMT + date: Mon, 14 Sep 2020 20:22:59 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:52:17Z", "lastUpdatedDateTime": - "2020-07-10T18:52:36Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:22:55Z", "lastUpdatedDateTime": + "2020-09-14T20:22:55Z", "analyzeResult": null}' headers: - apim-request-id: 8c62fc2b-dd18-4a8b-b474-e962aa417f06 + apim-request-id: a689972a-a42b-422f-87a5-dbe872f4efa9 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:38 GMT + date: Mon, 14 Sep 2020 20:23:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:17Z", - "lastUpdatedDateTime": "2020-07-10T18:52:40Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.16, "width": 1700, "height": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:55Z", + "lastUpdatedDateTime": "2020-09-14T20:23:05Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 1700, "height": 2200, "unit": "pixel", "lines": [{"text": "Purchase Order", "boundingBox": - [141.0, 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "words": [{"text": - "Purchase", "boundingBox": [141.0, 140.0, 267.0, 140.0, 267.0, 168.0, 141.0, - 168.0]}, {"text": "Order", "boundingBox": [273.0, 140.0, 348.0, 140.0, 348.0, - 168.0, 273.0, 168.0]}]}, {"text": "Hero Limited", "boundingBox": [620.0, 203.0, - 1078.0, 203.0, 1078.0, 271.0, 620.0, 271.0], "words": [{"text": "Hero", "boundingBox": - [620.0, 203.0, 793.0, 203.0, 793.0, 271.0, 620.0, 271.0]}, {"text": "Limited", - "boundingBox": [811.0, 203.0, 1078.0, 203.0, 1078.0, 271.0, 811.0, 271.0]}]}, - {"text": "Purchase Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, - 372.0, 1117.0, 372.0], "words": [{"text": "Purchase", "boundingBox": [1117.0, - 319.0, 1380.0, 319.0, 1380.0, 372.0, 1117.0, 372.0]}, {"text": "Order", "boundingBox": - [1397.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1397.0, 372.0]}]}, {"text": - "Company Phone:", "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, - 167.0, 381.0], "words": [{"text": "Company", "boundingBox": [167.0, 351.0, - 276.0, 351.0, 276.0, 381.0, 167.0, 381.0]}, {"text": "Phone:", "boundingBox": - [283.0, 351.0, 365.0, 351.0, 365.0, 381.0, 283.0, 381.0]}]}, {"text": "555-348-6512", - "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, 381.0, 371.0, 381.0], "words": - [{"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0]}]}, {"text": "Website:", "boundingBox": [167.0, 392.0, - 271.0, 392.0, 271.0, 420.0, 167.0, 420.0], "words": [{"text": "Website:", - "boundingBox": [167.0, 392.0, 271.0, 392.0, 271.0, 420.0, 167.0, 420.0]}]}, - {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, 392.0, - 530.0, 420.0, 277.0, 420.0], "words": [{"text": "www.herolimited.com", "boundingBox": - [277.0, 392.0, 530.0, 392.0, 530.0, 420.0, 277.0, 420.0]}]}, {"text": "Dated - As:", "boundingBox": [1025.0, 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, - 451.0], "words": [{"text": "Dated", "boundingBox": [1025.0, 418.0, 1111.0, - 418.0, 1111.0, 451.0, 1025.0, 451.0]}, {"text": "As:", "boundingBox": [1117.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1117.0, 451.0]}]}, {"text": "12/20/2020", - "boundingBox": [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], - "words": [{"text": "12/20/2020", "boundingBox": [1168.0, 418.0, 1319.0, 418.0, - 1319.0, 451.0, 1168.0, 451.0]}]}, {"text": "Email:", "boundingBox": [167.0, - 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0], "words": [{"text": "Email:", - "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, 458.0]}]}, - {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, 1275.0, 460.0, - 1275.0, 491.0, 1027.0, 491.0], "words": [{"text": "Purchase", "boundingBox": - [1027.0, 460.0, 1153.0, 460.0, 1153.0, 491.0, 1027.0, 491.0]}, {"text": "Order", - "boundingBox": [1160.0, 460.0, 1241.0, 460.0, 1241.0, 491.0, 1160.0, 491.0]}, - {"text": "#:", "boundingBox": [1248.0, 460.0, 1275.0, 460.0, 1275.0, 491.0, - 1248.0, 491.0]}]}, {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, - 460.0, 1376.0, 491.0, 1282.0, 491.0], "words": [{"text": "948284", "boundingBox": - [1282.0, 460.0, 1376.0, 460.0, 1376.0, 491.0, 1282.0, 491.0]}]}, {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "words": [{"text": "accounts@herolimited.com", "boundingBox": - [168.0, 480.0, 476.0, 480.0, 476.0, 505.0, 168.0, 505.0]}]}, {"text": "Shipped - To", "boundingBox": [170.0, 546.0, 398.0, 546.0, 398.0, 592.0, 170.0, 592.0], - "words": [{"text": "Shipped", "boundingBox": [170.0, 546.0, 343.0, 546.0, - 343.0, 592.0, 170.0, 592.0]}, {"text": "To", "boundingBox": [352.0, 546.0, - 398.0, 546.0, 398.0, 592.0, 352.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": - [162.0, 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "words": [{"text": - "Vendor", "boundingBox": [162.0, 610.0, 256.0, 610.0, 256.0, 640.0, 162.0, - 640.0]}, {"text": "Name:", "boundingBox": [262.0, 610.0, 346.0, 610.0, 346.0, - 640.0, 262.0, 640.0]}]}, {"text": "Hillary Swank", "boundingBox": [352.0, - 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "words": [{"text": "Hillary", - "boundingBox": [352.0, 610.0, 435.0, 610.0, 435.0, 640.0, 352.0, 640.0]}, - {"text": "Swank", "boundingBox": [441.0, 610.0, 519.0, 610.0, 519.0, 640.0, - 441.0, 640.0]}]}, {"text": "Company Name:", "boundingBox": [162.0, 646.0, - 373.0, 646.0, 373.0, 678.0, 162.0, 678.0], "words": [{"text": "Company", "boundingBox": - [162.0, 646.0, 283.0, 646.0, 283.0, 678.0, 162.0, 678.0]}, {"text": "Name:", - "boundingBox": [289.0, 646.0, 373.0, 646.0, 373.0, 678.0, 289.0, 678.0]}]}, - {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, 646.0, - 628.0, 678.0, 379.0, 678.0], "words": [{"text": "Higgly", "boundingBox": [379.0, - 646.0, 457.0, 646.0, 457.0, 678.0, 379.0, 678.0]}, {"text": "Wiggly", "boundingBox": - [463.0, 646.0, 549.0, 646.0, 549.0, 678.0, 463.0, 678.0]}, {"text": "Books", - "boundingBox": [555.0, 646.0, 628.0, 646.0, 628.0, 678.0, 555.0, 678.0]}]}, - {"text": "Address:", "boundingBox": [162.0, 684.0, 272.0, 684.0, 272.0, 715.0, - 162.0, 715.0], "words": [{"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0]}]}, {"text": "938 NE Burner Road", - "boundingBox": [279.0, 684.0, 526.0, 684.0, 526.0, 715.0, 279.0, 715.0], "words": - [{"text": "938", "boundingBox": [279.0, 684.0, 326.0, 684.0, 326.0, 715.0, - 279.0, 715.0]}, {"text": "NE", "boundingBox": [332.0, 684.0, 366.0, 684.0, - 366.0, 715.0, 332.0, 715.0]}, {"text": "Burner", "boundingBox": [372.0, 684.0, - 458.0, 684.0, 458.0, 715.0, 372.0, 715.0]}, {"text": "Road", "boundingBox": - [464.0, 684.0, 526.0, 684.0, 526.0, 715.0, 464.0, 715.0]}]}, {"text": "Boulder - City, CO 92848", "boundingBox": [283.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 283.0, 752.0], "words": [{"text": "Boulder", "boundingBox": [283.0, 720.0, - 377.0, 720.0, 377.0, 752.0, 283.0, 752.0]}, {"text": "City,", "boundingBox": - [384.0, 720.0, 437.0, 720.0, 437.0, 752.0, 384.0, 752.0]}, {"text": "CO", - "boundingBox": [443.0, 720.0, 482.0, 720.0, 482.0, 752.0, 443.0, 752.0]}, - {"text": "92848", "boundingBox": [489.0, 720.0, 569.0, 720.0, 569.0, 752.0, - 489.0, 752.0]}]}, {"text": "Phone:", "boundingBox": [615.0, 723.0, 707.0, - 723.0, 707.0, 752.0, 615.0, 752.0], "words": [{"text": "Phone:", "boundingBox": - [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, 752.0]}]}, {"text": "938-294-2949", - "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, 713.0, 752.0], "words": - [{"text": "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, - 752.0, 713.0, 752.0]}]}, {"text": "Shipped From", "boundingBox": [169.0, 784.0, - 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], "words": [{"text": "Shipped", "boundingBox": - [169.0, 784.0, 335.0, 784.0, 335.0, 831.0, 169.0, 831.0]}, {"text": "From", - "boundingBox": [345.0, 784.0, 445.0, 784.0, 445.0, 831.0, 345.0, 831.0]}]}, - {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, 253.0, 881.0, - 166.0, 881.0], "words": [{"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, - 852.0, 253.0, 881.0, 166.0, 881.0]}]}, {"text": "Bernie Sanders", "boundingBox": - [258.0, 852.0, 445.0, 852.0, 445.0, 881.0, 258.0, 881.0], "words": [{"text": - "Bernie", "boundingBox": [258.0, 852.0, 341.0, 852.0, 341.0, 881.0, 258.0, - 881.0]}, {"text": "Sanders", "boundingBox": [347.0, 852.0, 445.0, 852.0, 445.0, - 881.0, 347.0, 881.0]}]}, {"text": "Company Name:", "boundingBox": [169.0, - 888.0, 378.0, 888.0, 378.0, 919.0, 169.0, 919.0], "words": [{"text": "Company", - "boundingBox": [169.0, 888.0, 286.0, 888.0, 286.0, 919.0, 169.0, 919.0]}, - {"text": "Name:", "boundingBox": [292.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 292.0, 919.0]}]}, {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, - 624.0, 888.0, 624.0, 919.0, 385.0, 919.0], "words": [{"text": "Jupiter", "boundingBox": - [385.0, 888.0, 470.0, 888.0, 470.0, 919.0, 385.0, 919.0]}, {"text": "Book", - "boundingBox": [477.0, 888.0, 541.0, 888.0, 541.0, 919.0, 477.0, 919.0]}, - {"text": "Supply", "boundingBox": [547.0, 888.0, 624.0, 888.0, 624.0, 919.0, - 547.0, 919.0]}]}, {"text": "Address:", "boundingBox": [168.0, 924.0, 276.0, - 924.0, 276.0, 954.0, 168.0, 954.0], "words": [{"text": "Address:", "boundingBox": - [168.0, 924.0, 276.0, 924.0, 276.0, 954.0, 168.0, 954.0]}]}, {"text": "383 - N Kinnick Road", "boundingBox": [283.0, 924.0, 524.0, 924.0, 524.0, 954.0, - 283.0, 954.0], "words": [{"text": "383", "boundingBox": [283.0, 924.0, 328.0, - 924.0, 328.0, 954.0, 283.0, 954.0]}, {"text": "N", "boundingBox": [335.0, - 924.0, 355.0, 924.0, 355.0, 954.0, 335.0, 954.0]}, {"text": "Kinnick", "boundingBox": - [362.0, 924.0, 451.0, 924.0, 451.0, 954.0, 362.0, 954.0]}, {"text": "Road", - "boundingBox": [457.0, 924.0, 524.0, 924.0, 524.0, 954.0, 457.0, 954.0]}]}, - {"text": "Seattle, WA 38383", "boundingBox": [285.0, 962.0, 515.0, 962.0, - 515.0, 992.0, 285.0, 992.0], "words": [{"text": "Seattle,", "boundingBox": - [285.0, 962.0, 380.0, 962.0, 380.0, 992.0, 285.0, 992.0]}, {"text": "WA", - "boundingBox": [386.0, 962.0, 432.0, 962.0, 432.0, 992.0, 386.0, 992.0]}, - {"text": "38383", "boundingBox": [438.0, 962.0, 515.0, 962.0, 515.0, 992.0, - 438.0, 992.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, 852.0, - 964.0, 852.0, 992.0, 760.0, 992.0], "words": [{"text": "Phone:", "boundingBox": - [760.0, 964.0, 852.0, 964.0, 852.0, 992.0, 760.0, 992.0]}]}, {"text": "932-299-0292", - "boundingBox": [857.0, 964.0, 1032.0, 964.0, 1032.0, 992.0, 857.0, 992.0], - "words": [{"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0]}]}, {"text": "Details", "boundingBox": [447.0, - 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "words": [{"text": "Details", - "boundingBox": [447.0, 1047.0, 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0]}]}, - {"text": "Quantity", "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, - 1080.0, 890.0, 1080.0], "words": [{"text": "Quantity", "boundingBox": [890.0, - 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0]}]}, {"text": "Unit - Price", "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1113.0, - 1080.0], "words": [{"text": "Unit", "boundingBox": [1113.0, 1045.0, 1184.0, - 1045.0, 1184.0, 1080.0, 1113.0, 1080.0]}, {"text": "Price", "boundingBox": - [1191.0, 1045.0, 1267.0, 1045.0, 1267.0, 1080.0, 1191.0, 1080.0]}]}, {"text": - "Total", "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "words": [{"text": "Total", "boundingBox": [1389.0, 1046.0, 1466.0, - 1046.0, 1466.0, 1080.0, 1389.0, 1080.0]}]}, {"text": "Bindings", "boundingBox": - [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, 1122.0], "words": [{"text": - "Bindings", "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, 173.0, - 1122.0]}]}, {"text": "20", "boundingBox": [863.0, 1098.0, 889.0, 1098.0, 889.0, - 1122.0, 863.0, 1122.0], "words": [{"text": "20", "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0]}]}, {"text": "1.00", "boundingBox": - [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, 1122.0], "words": - [{"text": "1.00", "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, - 1122.0, 1243.0, 1122.0]}]}, {"text": "20.00", "boundingBox": [1466.0, 1098.0, - 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0], "words": [{"text": "20.00", - "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, 1122.0]}]}, - {"text": "Covers Small", "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "words": [{"text": "Covers", "boundingBox": [172.0, - 1136.0, 257.0, 1136.0, 257.0, 1162.0, 172.0, 1162.0]}, {"text": "Small", "boundingBox": - [262.0, 1136.0, 331.0, 1136.0, 331.0, 1162.0, 262.0, 1162.0]}]}, {"text": - "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, - 1162.0], "words": [{"text": "20", "boundingBox": [862.0, 1137.0, 889.0, 1137.0, - 889.0, 1162.0, 862.0, 1162.0]}]}, {"text": "1.00", "boundingBox": [1243.0, - 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, 1162.0], "words": [{"text": - "1.00", "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0]}]}, {"text": "20.00", "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, - 1531.0, 1162.0, 1464.0, 1162.0], "words": [{"text": "20.00", "boundingBox": - [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, 1162.0]}]}, {"text": - "Feather Bookmark", "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, - 172.0, 1205.0], "words": [{"text": "Feather", "boundingBox": [172.0, 1179.0, - 271.0, 1179.0, 271.0, 1205.0, 172.0, 1205.0]}, {"text": "Bookmark", "boundingBox": - [276.0, 1179.0, 404.0, 1179.0, 404.0, 1205.0, 276.0, 1205.0]}]}, {"text": - "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, - 1199.0], "words": [{"text": "20", "boundingBox": [863.0, 1177.0, 888.0, 1177.0, - 888.0, 1199.0, 863.0, 1199.0]}]}, {"text": "5.00", "boundingBox": [1243.0, - 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, 1205.0], "words": [{"text": - "5.00", "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0]}]}, {"text": "100.00", "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, - 1530.0, 1205.0, 1448.0, 1205.0], "words": [{"text": "100.00", "boundingBox": - [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, 1205.0]}]}, {"text": - "Copper Swirl Marker", "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "words": [{"text": "Copper", "boundingBox": [171.0, - 1224.0, 265.0, 1224.0, 265.0, 1248.0, 171.0, 1248.0]}, {"text": "Swirl", "boundingBox": - [270.0, 1224.0, 334.0, 1224.0, 334.0, 1248.0, 270.0, 1248.0]}, {"text": "Marker", - "boundingBox": [339.0, 1224.0, 426.0, 1224.0, 426.0, 1248.0, 339.0, 1248.0]}]}, - {"text": "20", "boundingBox": [864.0, 1221.0, 887.0, 1221.0, 887.0, 1244.0, - 864.0, 1244.0], "words": [{"text": "20", "boundingBox": [864.0, 1221.0, 887.0, - 1221.0, 887.0, 1244.0, 864.0, 1244.0]}]}, {"text": "5.00", "boundingBox": - [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, 1248.0], "words": - [{"text": "5.00", "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, - 1248.0, 1242.0, 1248.0]}]}, {"text": "100.00", "boundingBox": [1449.0, 1225.0, - 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0], "words": [{"text": "100.00", - "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, 1248.0]}]}, - {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, 1298.0, 1571.0, 1298.0, - 1599.0, 1156.0, 1599.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1156.0, - 1571.0, 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0]}]}, {"text": "$140.00", - "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, 1530.0, 1599.0, 1434.0, 1599.0], - "words": [{"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1242.0, - 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "words": [{"text": - "TAX", "boundingBox": [1242.0, 1619.0, 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, - 1643.0]}]}, {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "words": [{"text": "$4.00", "boundingBox": - [1462.0, 1615.0, 1532.0, 1615.0, 1532.0, 1640.0, 1462.0, 1640.0]}]}, {"text": - "Bernie Sanders", "boundingBox": [485.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, - 485.0, 1708.0], "words": [{"text": "Bernie", "boundingBox": [485.0, 1669.0, - 605.0, 1669.0, 605.0, 1708.0, 485.0, 1708.0]}, {"text": "Sanders", "boundingBox": - [613.0, 1669.0, 766.0, 1669.0, 766.0, 1708.0, 613.0, 1708.0]}]}, {"text": - "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, - 1700.0], "words": [{"text": "TOTAL", "boundingBox": [1206.0, 1674.0, 1298.0, - 1674.0, 1298.0, 1700.0, 1206.0, 1700.0]}]}, {"text": "$144.00", "boundingBox": - [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, 1697.0, 1434.0, 1697.0], "words": - [{"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, 1531.0, - 1697.0, 1434.0, 1697.0]}]}, {"text": "Bernie Sanders", "boundingBox": [544.0, - 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, 1743.0], "words": [{"text": "Bernie", - "boundingBox": [544.0, 1717.0, 622.0, 1717.0, 622.0, 1743.0, 544.0, 1743.0]}, - {"text": "Sanders", "boundingBox": [627.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, - 627.0, 1743.0]}]}, {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "words": [{"text": "Manager", "boundingBox": - [579.0, 1752.0, 687.0, 1752.0, 687.0, 1777.0, 579.0, 1777.0]}]}, {"text": - "Additional Notes:", "boundingBox": [175.0, 1797.0, 479.0, 1797.0, 479.0, - 1834.0, 175.0, 1834.0], "words": [{"text": "Additional", "boundingBox": [175.0, - 1797.0, 358.0, 1797.0, 358.0, 1834.0, 175.0, 1834.0]}, {"text": "Notes:", - "boundingBox": [366.0, 1797.0, 479.0, 1797.0, 479.0, 1834.0, 366.0, 1834.0]}]}, - {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [176.0, - 1880.0, 707.0, 1880.0, 707.0, 1910.0, 176.0, 1910.0], "words": [{"text": "Do", - "boundingBox": [176.0, 1880.0, 208.0, 1880.0, 208.0, 1910.0, 176.0, 1910.0]}, - {"text": "not", "boundingBox": [213.0, 1880.0, 258.0, 1880.0, 258.0, 1910.0, - 213.0, 1910.0]}, {"text": "Jostle", "boundingBox": [264.0, 1880.0, 338.0, - 1880.0, 338.0, 1910.0, 264.0, 1910.0]}, {"text": "Box.", "boundingBox": [343.0, - 1880.0, 404.0, 1880.0, 404.0, 1910.0, 343.0, 1910.0]}, {"text": "Unpack", - "boundingBox": [410.0, 1880.0, 503.0, 1880.0, 503.0, 1910.0, 410.0, 1910.0]}, - {"text": "carefully.", "boundingBox": [509.0, 1880.0, 628.0, 1880.0, 628.0, - 1910.0, 509.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [633.0, 1880.0, - 707.0, 1880.0, 707.0, 1910.0, 633.0, 1910.0]}]}, {"text": "Jupiter Book Supply + [137.0, 140.0, 351.0, 140.0, 351.0, 167.0, 137.0, 167.0], "words": [{"text": + "Purchase", "boundingBox": [137.0, 140.0, 264.0, 140.0, 264.0, 167.0, 137.0, + 167.0]}, {"text": "Order", "boundingBox": [269.0, 139.0, 351.0, 139.0, 351.0, + 167.0, 269.0, 167.0]}]}, {"text": "Hero Limited", "boundingBox": [621.0, 206.0, + 1075.0, 206.0, 1075.0, 266.0, 621.0, 266.0], "words": [{"text": "Hero", "boundingBox": + [621.0, 208.0, 794.0, 208.0, 794.0, 266.0, 621.0, 266.0]}, {"text": "Limited", + "boundingBox": [806.0, 205.0, 1075.0, 205.0, 1075.0, 266.0, 806.0, 266.0]}]}, + {"text": "Purchase Order", "boundingBox": [1113.0, 322.0, 1554.0, 322.0, 1554.0, + 369.0, 1113.0, 369.0], "words": [{"text": "Purchase", "boundingBox": [1113.0, + 322.0, 1381.0, 322.0, 1381.0, 368.0, 1113.0, 368.0]}, {"text": "Order", "boundingBox": + [1390.0, 321.0, 1554.0, 321.0, 1554.0, 370.0, 1390.0, 370.0]}]}, {"text": + "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, 359.0, 378.0, + 163.0, 378.0], "words": [{"text": "Company", "boundingBox": [163.0, 353.0, + 274.0, 353.0, 274.0, 378.0, 163.0, 378.0]}, {"text": "Phone:", "boundingBox": + [279.0, 351.0, 359.0, 351.0, 359.0, 378.0, 279.0, 378.0]}]}, {"text": "555-348-6512", + "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "words": + [{"text": "555-348-6512", "boundingBox": [364.0, 351.0, 528.0, 351.0, 528.0, + 378.0, 364.0, 378.0]}]}, {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "words": [{"text": "Website:", + "boundingBox": [167.0, 394.0, 269.0, 394.0, 269.0, 417.0, 167.0, 417.0]}]}, + {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, 393.0, + 531.0, 418.0, 273.0, 418.0], "words": [{"text": "www.herolimited.com", "boundingBox": + [273.0, 393.0, 531.0, 393.0, 531.0, 418.0, 273.0, 418.0]}]}, {"text": "Email:", + "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "words": + [{"text": "Email:", "boundingBox": [165.0, 435.0, 237.0, 435.0, 237.0, 460.0, + 165.0, 460.0]}]}, {"text": "Dated As:", "boundingBox": [1025.0, 421.0, 1160.0, + 421.0, 1160.0, 448.0, 1025.0, 448.0], "words": [{"text": "Dated", "boundingBox": + [1025.0, 421.0, 1108.0, 421.0, 1108.0, 448.0, 1025.0, 448.0]}, {"text": "As:", + "boundingBox": [1114.0, 420.0, 1160.0, 420.0, 1160.0, 448.0, 1114.0, 448.0]}]}, + {"text": "12/20/2020", "boundingBox": [1165.0, 420.0, 1317.0, 420.0, 1317.0, + 448.0, 1165.0, 448.0], "words": [{"text": "12/20/2020", "boundingBox": [1165.0, + 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0]}]}, {"text": "Purchase + Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, 488.0, 1023.0, + 488.0], "words": [{"text": "Purchase", "boundingBox": [1023.0, 461.0, 1152.0, + 461.0, 1152.0, 488.0, 1023.0, 488.0]}, {"text": "Order", "boundingBox": [1157.0, + 461.0, 1238.0, 461.0, 1238.0, 489.0, 1157.0, 489.0]}, {"text": "#:", "boundingBox": + [1244.0, 461.0, 1272.0, 461.0, 1272.0, 489.0, 1244.0, 489.0]}]}, {"text": + "948284", "boundingBox": [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, + 489.0], "words": [{"text": "948284", "boundingBox": [1277.0, 461.0, 1376.0, + 461.0, 1376.0, 489.0, 1277.0, 489.0]}]}, {"text": "accounts@herolimited.com", + "boundingBox": [164.0, 481.0, 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "words": + [{"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, 479.0, + 481.0, 479.0, 503.0, 164.0, 503.0]}]}, {"text": "Shipped To", "boundingBox": + [167.0, 547.0, 397.0, 547.0, 397.0, 592.0, 167.0, 592.0], "words": [{"text": + "Shipped", "boundingBox": [167.0, 547.0, 333.0, 547.0, 333.0, 592.0, 167.0, + 592.0]}, {"text": "To", "boundingBox": [342.0, 547.0, 397.0, 547.0, 397.0, + 592.0, 342.0, 592.0]}]}, {"text": "Vendor Name:", "boundingBox": [160.0, 611.0, + 344.0, 611.0, 344.0, 637.0, 160.0, 637.0], "words": [{"text": "Vendor", "boundingBox": + [160.0, 611.0, 254.0, 611.0, 254.0, 637.0, 160.0, 637.0]}, {"text": "Name:", + "boundingBox": [259.0, 610.0, 344.0, 610.0, 344.0, 638.0, 259.0, 638.0]}]}, + {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, 521.0, + 639.0, 350.0, 639.0], "words": [{"text": "Hillary", "boundingBox": [350.0, + 609.0, 430.0, 609.0, 430.0, 639.0, 350.0, 639.0]}, {"text": "Swank", "boundingBox": + [435.0, 609.0, 521.0, 609.0, 521.0, 639.0, 435.0, 639.0]}]}, {"text": "Company + Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, 160.0, 677.0], + "words": [{"text": "Company", "boundingBox": [160.0, 649.0, 280.0, 649.0, + 280.0, 676.0, 160.0, 676.0]}, {"text": "Name:", "boundingBox": [286.0, 647.0, + 370.0, 647.0, 370.0, 678.0, 286.0, 678.0]}]}, {"text": "Higgly Wiggly Books", + "boundingBox": [375.0, 646.0, 630.0, 646.0, 630.0, 679.0, 375.0, 679.0], "words": + [{"text": "Higgly", "boundingBox": [375.0, 647.0, 455.0, 647.0, 455.0, 679.0, + 375.0, 679.0]}, {"text": "Wiggly", "boundingBox": [461.0, 646.0, 546.0, 646.0, + 546.0, 679.0, 461.0, 679.0]}, {"text": "Books", "boundingBox": [552.0, 646.0, + 630.0, 646.0, 630.0, 678.0, 552.0, 678.0]}]}, {"text": "Address:", "boundingBox": + [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "words": [{"text": + "Address:", "boundingBox": [161.0, 685.0, 269.0, 685.0, 269.0, 711.0, 161.0, + 711.0]}]}, {"text": "938 NE Burner Road", "boundingBox": [274.0, 685.0, 527.0, + 685.0, 527.0, 713.0, 274.0, 713.0], "words": [{"text": "938", "boundingBox": + [274.0, 685.0, 323.0, 685.0, 323.0, 712.0, 274.0, 712.0]}, {"text": "NE", + "boundingBox": [329.0, 685.0, 364.0, 685.0, 364.0, 713.0, 329.0, 713.0]}, + {"text": "Burner", "boundingBox": [370.0, 685.0, 455.0, 685.0, 455.0, 713.0, + 370.0, 713.0]}, {"text": "Road", "boundingBox": [460.0, 685.0, 527.0, 685.0, + 527.0, 713.0, 460.0, 713.0]}]}, {"text": "Boulder City, CO 92848", "boundingBox": + [279.0, 722.0, 565.0, 722.0, 565.0, 751.0, 279.0, 751.0], "words": [{"text": + "Boulder", "boundingBox": [279.0, 722.0, 371.0, 722.0, 371.0, 750.0, 279.0, + 750.0]}, {"text": "City,", "boundingBox": [377.0, 722.0, 433.0, 722.0, 433.0, + 751.0, 377.0, 751.0]}, {"text": "CO", "boundingBox": [439.0, 722.0, 477.0, + 722.0, 477.0, 751.0, 439.0, 751.0]}, {"text": "92848", "boundingBox": [482.0, + 722.0, 565.0, 722.0, 565.0, 751.0, 482.0, 751.0]}]}, {"text": "Phone:", "boundingBox": + [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, 749.0], "words": [{"text": + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0]}]}, {"text": "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, + 885.0, 749.0, 708.0, 749.0], "words": [{"text": "938-294-2949", "boundingBox": + [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, 708.0, 749.0]}]}, {"text": "Shipped + From", "boundingBox": [167.0, 784.0, 448.0, 784.0, 448.0, 830.0, 167.0, 830.0], + "words": [{"text": "Shipped", "boundingBox": [167.0, 784.0, 327.0, 784.0, + 327.0, 830.0, 167.0, 830.0]}, {"text": "From", "boundingBox": [336.0, 785.0, + 448.0, 785.0, 448.0, 830.0, 336.0, 830.0]}]}, {"text": "Name:", "boundingBox": + [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, 879.0], "words": [{"text": + "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, 250.0, 879.0, 166.0, + 879.0]}]}, {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, + 852.0, 446.0, 880.0, 255.0, 880.0], "words": [{"text": "Bernie", "boundingBox": + [255.0, 852.0, 336.0, 852.0, 336.0, 879.0, 255.0, 879.0]}, {"text": "Sanders", + "boundingBox": [341.0, 852.0, 446.0, 852.0, 446.0, 880.0, 341.0, 880.0]}]}, + {"text": "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, + 919.0, 164.0, 919.0], "words": [{"text": "Company", "boundingBox": [164.0, + 890.0, 282.0, 890.0, 282.0, 919.0, 164.0, 919.0]}, {"text": "Name:", "boundingBox": + [288.0, 890.0, 374.0, 890.0, 374.0, 919.0, 288.0, 919.0]}]}, {"text": "Jupiter + Book Supply", "boundingBox": [380.0, 889.0, 629.0, 889.0, 629.0, 919.0, 380.0, + 919.0], "words": [{"text": "Jupiter", "boundingBox": [380.0, 889.0, 467.0, + 889.0, 467.0, 919.0, 380.0, 919.0]}, {"text": "Book", "boundingBox": [473.0, + 889.0, 536.0, 889.0, 536.0, 919.0, 473.0, 919.0]}, {"text": "Supply", "boundingBox": + [542.0, 889.0, 629.0, 889.0, 629.0, 920.0, 542.0, 920.0]}]}, {"text": "Address:", + "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "words": + [{"text": "Address:", "boundingBox": [166.0, 926.0, 273.0, 926.0, 273.0, 953.0, + 166.0, 953.0]}]}, {"text": "383 N Kinnick Road", "boundingBox": [279.0, 926.0, + 521.0, 926.0, 521.0, 953.0, 279.0, 953.0], "words": [{"text": "383", "boundingBox": + [279.0, 925.0, 327.0, 925.0, 327.0, 953.0, 279.0, 953.0]}, {"text": "N", "boundingBox": + [332.0, 926.0, 353.0, 926.0, 353.0, 953.0, 332.0, 953.0]}, {"text": "Kinnick", + "boundingBox": [358.0, 926.0, 448.0, 926.0, 448.0, 953.0, 358.0, 953.0]}, + {"text": "Road", "boundingBox": [453.0, 926.0, 521.0, 926.0, 521.0, 954.0, + 453.0, 954.0]}]}, {"text": "Seattle, WA 38383", "boundingBox": [281.0, 965.0, + 514.0, 965.0, 514.0, 991.0, 281.0, 991.0], "words": [{"text": "Seattle,", + "boundingBox": [281.0, 965.0, 377.0, 965.0, 377.0, 991.0, 281.0, 991.0]}, + {"text": "WA", "boundingBox": [382.0, 964.0, 429.0, 964.0, 429.0, 991.0, 382.0, + 991.0]}, {"text": "38383", "boundingBox": [434.0, 964.0, 514.0, 964.0, 514.0, + 991.0, 434.0, 991.0]}]}, {"text": "Phone:", "boundingBox": [760.0, 964.0, + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "words": [{"text": "Phone:", "boundingBox": + [760.0, 964.0, 849.0, 964.0, 849.0, 990.0, 760.0, 990.0]}]}, {"text": "932-299-0292", + "boundingBox": [855.0, 964.0, 1033.0, 964.0, 1033.0, 990.0, 855.0, 990.0], + "words": [{"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0]}]}, {"text": "Details", "boundingBox": [447.0, + 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "words": [{"text": "Details", + "boundingBox": [447.0, 1048.0, 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0]}]}, + {"text": "Quantity", "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, + 1084.0, 886.0, 1084.0], "words": [{"text": "Quantity", "boundingBox": [886.0, + 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0]}]}, {"text": "Unit + Price", "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1111.0, + 1078.0], "words": [{"text": "Unit", "boundingBox": [1111.0, 1047.0, 1181.0, + 1047.0, 1181.0, 1078.0, 1111.0, 1078.0]}, {"text": "Price", "boundingBox": + [1187.0, 1047.0, 1269.0, 1047.0, 1269.0, 1078.0, 1187.0, 1078.0]}]}, {"text": + "Total", "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "words": [{"text": "Total", "boundingBox": [1383.0, 1047.0, 1467.0, + 1047.0, 1467.0, 1077.0, 1383.0, 1077.0]}]}, {"text": "Bindings", "boundingBox": + [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, 1122.0], "words": [{"text": + "Bindings", "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, 172.0, + 1122.0]}]}, {"text": "20", "boundingBox": [861.0, 1094.0, 892.0, 1094.0, 892.0, + 1119.0, 861.0, 1119.0], "words": [{"text": "20", "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0]}]}, {"text": "1.00", "boundingBox": + [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, 1118.0], "words": + [{"text": "1.00", "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, + 1118.0, 1241.0, 1118.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1096.0, + 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0], "words": [{"text": "20.00", + "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, 1119.0]}]}, + {"text": "Covers Small", "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "words": [{"text": "Covers", "boundingBox": [170.0, + 1136.0, 254.0, 1136.0, 254.0, 1161.0, 170.0, 1161.0]}, {"text": "Small", "boundingBox": + [259.0, 1136.0, 333.0, 1136.0, 333.0, 1161.0, 259.0, 1161.0]}]}, {"text": + "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, + 1160.0], "words": [{"text": "20", "boundingBox": [861.0, 1135.0, 892.0, 1135.0, + 892.0, 1160.0, 861.0, 1160.0]}]}, {"text": "1.00", "boundingBox": [1240.0, + 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, 1160.0], "words": [{"text": + "1.00", "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0]}]}, {"text": "20.00", "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, + 1529.0, 1160.0, 1458.0, 1160.0], "words": [{"text": "20.00", "boundingBox": + [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, 1160.0]}]}, {"text": + "Feather Bookmark", "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, + 173.0, 1206.0], "words": [{"text": "Feather", "boundingBox": [173.0, 1180.0, + 266.0, 1180.0, 266.0, 1206.0, 173.0, 1206.0]}, {"text": "Bookmark", "boundingBox": + [271.0, 1179.0, 402.0, 1179.0, 402.0, 1206.0, 271.0, 1206.0]}]}, {"text": + "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, + 1204.0], "words": [{"text": "20", "boundingBox": [863.0, 1179.0, 892.0, 1179.0, + 892.0, 1204.0, 863.0, 1204.0]}]}, {"text": "5.00", "boundingBox": [1239.0, + 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, 1204.0], "words": [{"text": + "5.00", "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0]}]}, {"text": "100.00", "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, + 1529.0, 1205.0, 1443.0, 1205.0], "words": [{"text": "100.00", "boundingBox": + [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0]}]}, {"text": + "Copper Swirl Marker", "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "words": [{"text": "Copper", "boundingBox": [170.0, + 1223.0, 259.0, 1223.0, 259.0, 1253.0, 170.0, 1253.0]}, {"text": "Swirl", "boundingBox": + [265.0, 1222.0, 328.0, 1222.0, 328.0, 1252.0, 265.0, 1252.0]}, {"text": "Marker", + "boundingBox": [334.0, 1222.0, 429.0, 1222.0, 429.0, 1251.0, 334.0, 1251.0]}]}, + {"text": "20", "boundingBox": [860.0, 1223.0, 892.0, 1223.0, 892.0, 1247.0, + 860.0, 1247.0], "words": [{"text": "20", "boundingBox": [860.0, 1223.0, 892.0, + 1223.0, 892.0, 1247.0, 860.0, 1247.0]}]}, {"text": "5.00", "boundingBox": + [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, 1247.0], "words": + [{"text": "5.00", "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, + 1247.0, 1239.0, 1247.0]}]}, {"text": "100.00", "boundingBox": [1444.0, 1224.0, + 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "words": [{"text": "100.00", + "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0]}]}, + {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, 1296.0, 1575.0, 1296.0, + 1600.0, 1147.0, 1600.0], "words": [{"text": "SUBTOTAL", "boundingBox": [1147.0, + 1575.0, 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0]}]}, {"text": "$140.00", + "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, 1529.0, 1599.0, 1426.0, 1599.0], + "words": [{"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0]}]}, {"text": "TAX", "boundingBox": [1238.0, + 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "words": [{"text": + "TAX", "boundingBox": [1238.0, 1618.0, 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, + 1643.0]}]}, {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "words": [{"text": "$4.00", "boundingBox": + [1458.0, 1615.0, 1529.0, 1615.0, 1529.0, 1643.0, 1458.0, 1643.0]}]}, {"text": + "Bernie Sanders", "boundingBox": [489.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, + 489.0, 1706.0], "words": [{"text": "Bernie", "boundingBox": [489.0, 1671.0, + 609.0, 1671.0, 609.0, 1706.0, 489.0, 1706.0]}, {"text": "Sanders", "boundingBox": + [616.0, 1671.0, 764.0, 1671.0, 764.0, 1706.0, 616.0, 1706.0]}]}, {"text": + "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, + 1699.0], "words": [{"text": "TOTAL", "boundingBox": [1204.0, 1674.0, 1297.0, + 1674.0, 1297.0, 1699.0, 1204.0, 1699.0]}]}, {"text": "$144.00", "boundingBox": + [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, 1698.0, 1427.0, 1698.0], "words": + [{"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, 1529.0, + 1698.0, 1427.0, 1698.0]}]}, {"text": "Bernie Sanders", "boundingBox": [542.0, + 1719.0, 717.0, 1719.0, 717.0, 1742.0, 542.0, 1742.0], "words": [{"text": "Bernie", + "boundingBox": [542.0, 1719.0, 617.0, 1719.0, 617.0, 1742.0, 542.0, 1742.0]}, + {"text": "Sanders", "boundingBox": [621.0, 1719.0, 717.0, 1719.0, 717.0, 1742.0, + 621.0, 1742.0]}]}, {"text": "Manager", "boundingBox": [577.0, 1754.0, 681.0, + 1754.0, 681.0, 1776.0, 577.0, 1776.0], "words": [{"text": "Manager", "boundingBox": + [577.0, 1754.0, 681.0, 1754.0, 681.0, 1776.0, 577.0, 1776.0]}]}, {"text": + "Additional Notes:", "boundingBox": [173.0, 1796.0, 479.0, 1796.0, 479.0, + 1831.0, 173.0, 1831.0], "words": [{"text": "Additional", "boundingBox": [173.0, + 1796.0, 355.0, 1796.0, 355.0, 1831.0, 173.0, 1831.0]}, {"text": "Notes:", + "boundingBox": [361.0, 1796.0, 479.0, 1796.0, 479.0, 1832.0, 361.0, 1832.0]}]}, + {"text": "Do not Jostle Box. Unpack carefully. Enjoy.", "boundingBox": [175.0, + 1880.0, 707.0, 1880.0, 707.0, 1909.0, 175.0, 1909.0], "words": [{"text": "Do", + "boundingBox": [175.0, 1881.0, 205.0, 1881.0, 205.0, 1907.0, 175.0, 1907.0]}, + {"text": "not", "boundingBox": [210.0, 1881.0, 256.0, 1881.0, 256.0, 1907.0, + 210.0, 1907.0]}, {"text": "Jostle", "boundingBox": [261.0, 1880.0, 335.0, + 1880.0, 335.0, 1908.0, 261.0, 1908.0]}, {"text": "Box.", "boundingBox": [340.0, + 1880.0, 401.0, 1880.0, 401.0, 1909.0, 340.0, 1909.0]}, {"text": "Unpack", + "boundingBox": [406.0, 1880.0, 500.0, 1880.0, 500.0, 1909.0, 406.0, 1909.0]}, + {"text": "carefully.", "boundingBox": [505.0, 1880.0, 623.0, 1880.0, 623.0, + 1910.0, 505.0, 1910.0]}, {"text": "Enjoy.", "boundingBox": [628.0, 1880.0, + 707.0, 1880.0, 707.0, 1911.0, 628.0, 1911.0]}]}, {"text": "Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and", "boundingBox": - [173.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 173.0, 1959.0], "words": [{"text": - "Jupiter", "boundingBox": [173.0, 1925.0, 274.0, 1925.0, 274.0, 1959.0, 173.0, - 1959.0]}, {"text": "Book", "boundingBox": [280.0, 1925.0, 361.0, 1925.0, 361.0, - 1959.0, 280.0, 1959.0]}, {"text": "Supply", "boundingBox": [367.0, 1925.0, - 470.0, 1925.0, 470.0, 1959.0, 367.0, 1959.0]}, {"text": "will", "boundingBox": - [477.0, 1925.0, 523.0, 1925.0, 523.0, 1959.0, 477.0, 1959.0]}, {"text": "refund", - "boundingBox": [530.0, 1925.0, 628.0, 1925.0, 628.0, 1959.0, 530.0, 1959.0]}, - {"text": "you", "boundingBox": [635.0, 1925.0, 693.0, 1925.0, 693.0, 1959.0, - 635.0, 1959.0]}, {"text": "50%", "boundingBox": [699.0, 1925.0, 766.0, 1925.0, - 766.0, 1959.0, 699.0, 1959.0]}, {"text": "per", "boundingBox": [773.0, 1925.0, - 827.0, 1925.0, 827.0, 1959.0, 773.0, 1959.0]}, {"text": "book", "boundingBox": - [833.0, 1925.0, 907.0, 1925.0, 907.0, 1959.0, 833.0, 1959.0]}, {"text": "if", - "boundingBox": [913.0, 1925.0, 934.0, 1925.0, 934.0, 1959.0, 913.0, 1959.0]}, - {"text": "returned", "boundingBox": [940.0, 1925.0, 1067.0, 1925.0, 1067.0, - 1959.0, 940.0, 1959.0]}, {"text": "within", "boundingBox": [1074.0, 1925.0, - 1161.0, 1925.0, 1161.0, 1959.0, 1074.0, 1959.0]}, {"text": "60", "boundingBox": - [1168.0, 1925.0, 1210.0, 1925.0, 1210.0, 1959.0, 1168.0, 1959.0]}, {"text": - "days", "boundingBox": [1219.0, 1925.0, 1288.0, 1925.0, 1288.0, 1959.0, 1219.0, - 1959.0]}, {"text": "of", "boundingBox": [1295.0, 1925.0, 1324.0, 1925.0, 1324.0, - 1959.0, 1295.0, 1959.0]}, {"text": "reading", "boundingBox": [1330.0, 1925.0, - 1446.0, 1925.0, 1446.0, 1959.0, 1330.0, 1959.0]}, {"text": "and", "boundingBox": - [1453.0, 1925.0, 1511.0, 1925.0, 1511.0, 1959.0, 1453.0, 1959.0]}]}, {"text": - "offer you 25% off you next total purchase.", "boundingBox": [170.0, 1959.0, - 782.0, 1959.0, 782.0, 1992.0, 170.0, 1992.0], "words": [{"text": "offer", - "boundingBox": [170.0, 1959.0, 239.0, 1959.0, 239.0, 1992.0, 170.0, 1992.0]}, - {"text": "you", "boundingBox": [246.0, 1959.0, 304.0, 1959.0, 304.0, 1992.0, - 246.0, 1992.0]}, {"text": "25%", "boundingBox": [310.0, 1959.0, 379.0, 1959.0, - 379.0, 1992.0, 310.0, 1992.0]}, {"text": "off", "boundingBox": [386.0, 1959.0, - 425.0, 1959.0, 425.0, 1992.0, 386.0, 1992.0]}, {"text": "you", "boundingBox": - [432.0, 1959.0, 490.0, 1959.0, 490.0, 1992.0, 432.0, 1992.0]}, {"text": "next", - "boundingBox": [496.0, 1959.0, 561.0, 1959.0, 561.0, 1992.0, 496.0, 1992.0]}, - {"text": "total", "boundingBox": [567.0, 1959.0, 634.0, 1959.0, 634.0, 1992.0, - 567.0, 1992.0]}, {"text": "purchase.", "boundingBox": [641.0, 1959.0, 782.0, - 1959.0, 782.0, 1992.0, 641.0, 1992.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": - [{"key": {"text": "Hero Limited", "boundingBox": [620.0, 203.0, 1078.0, 203.0, - 1078.0, 271.0, 620.0, 271.0], "elements": ["#/readResults/0/lines/1/words/0", - "#/readResults/0/lines/1/words/1"]}, "value": {"text": "", "boundingBox": - null, "elements": null}, "confidence": 0.5}, {"key": {"text": "Company Phone:", - "boundingBox": [167.0, 351.0, 365.0, 351.0, 365.0, 381.0, 167.0, 381.0], "elements": - ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1"]}, "value": - {"text": "555-348-6512", "boundingBox": [371.0, 351.0, 528.0, 351.0, 528.0, - 381.0, 371.0, 381.0], "elements": ["#/readResults/0/lines/4/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 392.0, 271.0, 392.0, - 271.0, 420.0, 167.0, 420.0], "elements": ["#/readResults/0/lines/5/words/0"]}, - "value": {"text": "www.herolimited.com", "boundingBox": [277.0, 392.0, 530.0, - 392.0, 530.0, 420.0, 277.0, 420.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + [169.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 169.0, 1958.0], "words": [{"text": + "Jupiter", "boundingBox": [169.0, 1924.0, 270.0, 1924.0, 270.0, 1959.0, 169.0, + 1959.0]}, {"text": "Book", "boundingBox": [277.0, 1924.0, 355.0, 1924.0, 355.0, + 1959.0, 277.0, 1959.0]}, {"text": "Supply", "boundingBox": [361.0, 1924.0, + 465.0, 1924.0, 465.0, 1958.0, 361.0, 1958.0]}, {"text": "will", "boundingBox": + [472.0, 1924.0, 517.0, 1924.0, 517.0, 1958.0, 472.0, 1958.0]}, {"text": "refund", + "boundingBox": [524.0, 1924.0, 625.0, 1924.0, 625.0, 1958.0, 524.0, 1958.0]}, + {"text": "you", "boundingBox": [632.0, 1924.0, 687.0, 1924.0, 687.0, 1958.0, + 632.0, 1958.0]}, {"text": "50%", "boundingBox": [694.0, 1924.0, 763.0, 1924.0, + 763.0, 1958.0, 694.0, 1958.0]}, {"text": "per", "boundingBox": [770.0, 1924.0, + 820.0, 1924.0, 820.0, 1958.0, 770.0, 1958.0]}, {"text": "book", "boundingBox": + [827.0, 1924.0, 900.0, 1924.0, 900.0, 1958.0, 827.0, 1958.0]}, {"text": "if", + "boundingBox": [907.0, 1924.0, 928.0, 1924.0, 928.0, 1958.0, 907.0, 1958.0]}, + {"text": "returned", "boundingBox": [935.0, 1924.0, 1063.0, 1924.0, 1063.0, + 1958.0, 935.0, 1958.0]}, {"text": "within", "boundingBox": [1070.0, 1924.0, + 1157.0, 1924.0, 1157.0, 1958.0, 1070.0, 1958.0]}, {"text": "60", "boundingBox": + [1164.0, 1924.0, 1203.0, 1924.0, 1203.0, 1958.0, 1164.0, 1958.0]}, {"text": + "days", "boundingBox": [1210.0, 1924.0, 1284.0, 1924.0, 1284.0, 1958.0, 1210.0, + 1958.0]}, {"text": "of", "boundingBox": [1290.0, 1924.0, 1318.0, 1924.0, 1318.0, + 1958.0, 1290.0, 1958.0]}, {"text": "reading", "boundingBox": [1325.0, 1924.0, + 1439.0, 1924.0, 1439.0, 1958.0, 1325.0, 1958.0]}, {"text": "and", "boundingBox": + [1446.0, 1924.0, 1511.0, 1924.0, 1511.0, 1958.0, 1446.0, 1958.0]}]}, {"text": + "offer you 25% off you next total purchase.", "boundingBox": [169.0, 1958.0, + 786.0, 1958.0, 786.0, 1992.0, 169.0, 1992.0], "words": [{"text": "offer", + "boundingBox": [169.0, 1958.0, 235.0, 1958.0, 235.0, 1991.0, 169.0, 1991.0]}, + {"text": "you", "boundingBox": [242.0, 1958.0, 299.0, 1958.0, 299.0, 1991.0, + 242.0, 1991.0]}, {"text": "25%", "boundingBox": [306.0, 1958.0, 374.0, 1958.0, + 374.0, 1992.0, 306.0, 1992.0]}, {"text": "off", "boundingBox": [380.0, 1958.0, + 421.0, 1958.0, 421.0, 1992.0, 380.0, 1992.0]}, {"text": "you", "boundingBox": + [427.0, 1958.0, 483.0, 1958.0, 483.0, 1992.0, 427.0, 1992.0]}, {"text": "next", + "boundingBox": [489.0, 1958.0, 556.0, 1958.0, 556.0, 1992.0, 489.0, 1992.0]}, + {"text": "total", "boundingBox": [562.0, 1959.0, 628.0, 1959.0, 628.0, 1992.0, + 562.0, 1992.0]}, {"text": "purchase.", "boundingBox": [635.0, 1959.0, 786.0, + 1959.0, 786.0, 1991.0, 635.0, 1991.0]}]}]}], "pageResults": [{"page": 1, "keyValuePairs": + [{"key": {"text": "Company Phone:", "boundingBox": [163.0, 352.0, 359.0, 352.0, + 359.0, 378.0, 163.0, 378.0], "elements": ["#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1"]}, "value": {"text": "555-348-6512", "boundingBox": + [364.0, 351.0, 528.0, 351.0, 528.0, 378.0, 364.0, 378.0], "elements": ["#/readResults/0/lines/4/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Website:", "boundingBox": [167.0, 394.0, + 269.0, 394.0, 269.0, 417.0, 167.0, 417.0], "elements": ["#/readResults/0/lines/5/words/0"]}, + "value": {"text": "www.herolimited.com", "boundingBox": [273.0, 393.0, 531.0, + 393.0, 531.0, 418.0, 273.0, 418.0], "elements": ["#/readResults/0/lines/6/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Email:", "boundingBox": [165.0, 435.0, + 237.0, 435.0, 237.0, 460.0, 165.0, 460.0], "elements": ["#/readResults/0/lines/7/words/0"]}, + "value": {"text": "accounts@herolimited.com", "boundingBox": [164.0, 481.0, + 479.0, 481.0, 479.0, 503.0, 164.0, 503.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": 1.0}, {"key": {"text": "Dated As:", "boundingBox": [1025.0, - 418.0, 1161.0, 418.0, 1161.0, 451.0, 1025.0, 451.0], "elements": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": - [1168.0, 418.0, 1319.0, 418.0, 1319.0, 451.0, 1168.0, 451.0], "elements": - ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": - "Email:", "boundingBox": [167.0, 431.0, 240.0, 431.0, 240.0, 458.0, 167.0, - 458.0], "elements": ["#/readResults/0/lines/9/words/0"]}, "value": {"text": - "accounts@herolimited.com", "boundingBox": [168.0, 480.0, 476.0, 480.0, 476.0, - 505.0, 168.0, 505.0], "elements": ["#/readResults/0/lines/12/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Purchase Order #:", "boundingBox": [1027.0, 460.0, - 1275.0, 460.0, 1275.0, 491.0, 1027.0, 491.0], "elements": ["#/readResults/0/lines/10/words/0", - "#/readResults/0/lines/10/words/1", "#/readResults/0/lines/10/words/2"]}, - "value": {"text": "948284", "boundingBox": [1282.0, 460.0, 1376.0, 460.0, - 1376.0, 491.0, 1282.0, 491.0], "elements": ["#/readResults/0/lines/11/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Vendor Name:", "boundingBox": [162.0, - 610.0, 346.0, 610.0, 346.0, 640.0, 162.0, 640.0], "elements": ["#/readResults/0/lines/14/words/0", - "#/readResults/0/lines/14/words/1"]}, "value": {"text": "Hillary Swank", "boundingBox": - [352.0, 610.0, 519.0, 610.0, 519.0, 640.0, 352.0, 640.0], "elements": ["#/readResults/0/lines/15/words/0", + 421.0, 1160.0, 421.0, 1160.0, 448.0, 1025.0, 448.0], "elements": ["#/readResults/0/lines/8/words/0", + "#/readResults/0/lines/8/words/1"]}, "value": {"text": "12/20/2020", "boundingBox": + [1165.0, 420.0, 1317.0, 420.0, 1317.0, 448.0, 1165.0, 448.0], "elements": + ["#/readResults/0/lines/9/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Purchase Order #:", "boundingBox": [1023.0, 461.0, 1272.0, 461.0, 1272.0, + 488.0, 1023.0, 488.0], "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1", + "#/readResults/0/lines/10/words/2"]}, "value": {"text": "948284", "boundingBox": + [1277.0, 461.0, 1376.0, 461.0, 1376.0, 489.0, 1277.0, 489.0], "elements": + ["#/readResults/0/lines/11/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Vendor Name:", "boundingBox": [160.0, 611.0, 344.0, 611.0, 344.0, 637.0, + 160.0, 637.0], "elements": ["#/readResults/0/lines/14/words/0", "#/readResults/0/lines/14/words/1"]}, + "value": {"text": "Hillary Swank", "boundingBox": [350.0, 609.0, 521.0, 609.0, + 521.0, 639.0, 350.0, 639.0], "elements": ["#/readResults/0/lines/15/words/0", "#/readResults/0/lines/15/words/1"]}, "confidence": 0.7}, {"key": {"text": - "Company Name:", "boundingBox": [162.0, 646.0, 373.0, 646.0, 373.0, 678.0, - 162.0, 678.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "value": {"text": "Higgly Wiggly Books", "boundingBox": [379.0, 646.0, 628.0, - 646.0, 628.0, 678.0, 379.0, 678.0], "elements": ["#/readResults/0/lines/17/words/0", + "Company Name:", "boundingBox": [160.0, 648.0, 370.0, 648.0, 370.0, 677.0, + 160.0, 677.0], "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, + "value": {"text": "Higgly Wiggly Books", "boundingBox": [375.0, 646.0, 630.0, + 646.0, 630.0, 679.0, 375.0, 679.0], "elements": ["#/readResults/0/lines/17/words/0", "#/readResults/0/lines/17/words/1", "#/readResults/0/lines/17/words/2"]}, - "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [162.0, 684.0, - 272.0, 684.0, 272.0, 715.0, 162.0, 715.0], "elements": ["#/readResults/0/lines/18/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [161.0, 685.0, + 269.0, 685.0, 269.0, 711.0, 161.0, 711.0], "elements": ["#/readResults/0/lines/18/words/0"]}, "value": {"text": "938 NE Burner Road Boulder City, CO 92848", "boundingBox": - [279.0, 684.0, 569.0, 684.0, 569.0, 752.0, 279.0, 752.0], "elements": ["#/readResults/0/lines/19/words/0", + [274.0, 685.0, 565.0, 685.0, 565.0, 751.0, 274.0, 751.0], "elements": ["#/readResults/0/lines/19/words/0", "#/readResults/0/lines/19/words/1", "#/readResults/0/lines/19/words/2", "#/readResults/0/lines/19/words/3", "#/readResults/0/lines/20/words/0", "#/readResults/0/lines/20/words/1", "#/readResults/0/lines/20/words/2", "#/readResults/0/lines/20/words/3"]}, "confidence": 1.0}, {"key": {"text": - "Phone:", "boundingBox": [615.0, 723.0, 707.0, 723.0, 707.0, 752.0, 615.0, - 752.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": - "938-294-2949", "boundingBox": [713.0, 723.0, 884.0, 723.0, 884.0, 752.0, - 713.0, 752.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": - 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 852.0, 253.0, 852.0, - 253.0, 881.0, 166.0, 881.0], "elements": ["#/readResults/0/lines/24/words/0"]}, - "value": {"text": "Bernie Sanders", "boundingBox": [258.0, 852.0, 445.0, 852.0, - 445.0, 881.0, 258.0, 881.0], "elements": ["#/readResults/0/lines/25/words/0", + "Phone:", "boundingBox": [613.0, 722.0, 702.0, 722.0, 702.0, 749.0, 613.0, + 749.0], "elements": ["#/readResults/0/lines/21/words/0"]}, "value": {"text": + "938-294-2949", "boundingBox": [708.0, 722.0, 885.0, 722.0, 885.0, 749.0, + 708.0, 749.0], "elements": ["#/readResults/0/lines/22/words/0"]}, "confidence": + 1.0}, {"key": {"text": "Name:", "boundingBox": [166.0, 853.0, 250.0, 853.0, + 250.0, 879.0, 166.0, 879.0], "elements": ["#/readResults/0/lines/24/words/0"]}, + "value": {"text": "Bernie Sanders", "boundingBox": [255.0, 852.0, 446.0, 852.0, + 446.0, 880.0, 255.0, 880.0], "elements": ["#/readResults/0/lines/25/words/0", "#/readResults/0/lines/25/words/1"]}, "confidence": 0.53}, {"key": {"text": - "Company Name:", "boundingBox": [169.0, 888.0, 378.0, 888.0, 378.0, 919.0, - 169.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, - "value": {"text": "Jupiter Book Supply", "boundingBox": [385.0, 888.0, 624.0, - 888.0, 624.0, 919.0, 385.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", + "Company Name:", "boundingBox": [164.0, 890.0, 374.0, 890.0, 374.0, 919.0, + 164.0, 919.0], "elements": ["#/readResults/0/lines/26/words/0", "#/readResults/0/lines/26/words/1"]}, + "value": {"text": "Jupiter Book Supply", "boundingBox": [380.0, 889.0, 629.0, + 889.0, 629.0, 919.0, 380.0, 919.0], "elements": ["#/readResults/0/lines/27/words/0", "#/readResults/0/lines/27/words/1", "#/readResults/0/lines/27/words/2"]}, - "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [168.0, 924.0, - 276.0, 924.0, 276.0, 954.0, 168.0, 954.0], "elements": ["#/readResults/0/lines/28/words/0"]}, - "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [283.0, - 924.0, 524.0, 924.0, 524.0, 992.0, 283.0, 992.0], "elements": ["#/readResults/0/lines/29/words/0", + "confidence": 0.53}, {"key": {"text": "Address:", "boundingBox": [166.0, 926.0, + 273.0, 926.0, 273.0, 953.0, 166.0, 953.0], "elements": ["#/readResults/0/lines/28/words/0"]}, + "value": {"text": "383 N Kinnick Road Seattle, WA 38383", "boundingBox": [279.0, + 926.0, 521.0, 926.0, 521.0, 991.0, 279.0, 991.0], "elements": ["#/readResults/0/lines/29/words/0", "#/readResults/0/lines/29/words/1", "#/readResults/0/lines/29/words/2", "#/readResults/0/lines/29/words/3", "#/readResults/0/lines/30/words/0", "#/readResults/0/lines/30/words/1", "#/readResults/0/lines/30/words/2"]}, "confidence": 1.0}, {"key": {"text": "Phone:", "boundingBox": [760.0, 964.0, - 852.0, 964.0, 852.0, 992.0, 760.0, 992.0], "elements": ["#/readResults/0/lines/31/words/0"]}, - "value": {"text": "932-299-0292", "boundingBox": [857.0, 964.0, 1032.0, 964.0, - 1032.0, 992.0, 857.0, 992.0], "elements": ["#/readResults/0/lines/32/words/0"]}, - "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1156.0, 1571.0, - 1298.0, 1571.0, 1298.0, 1599.0, 1156.0, 1599.0], "elements": ["#/readResults/0/lines/53/words/0"]}, - "value": {"text": "$140.00", "boundingBox": [1434.0, 1574.0, 1530.0, 1574.0, - 1530.0, 1599.0, 1434.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1242.0, 1619.0, - 1293.0, 1619.0, 1293.0, 1643.0, 1242.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, - "value": {"text": "$4.00", "boundingBox": [1462.0, 1615.0, 1532.0, 1615.0, - 1532.0, 1640.0, 1462.0, 1640.0], "elements": ["#/readResults/0/lines/56/words/0"]}, - "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1206.0, 1674.0, - 1298.0, 1674.0, 1298.0, 1700.0, 1206.0, 1700.0], "elements": ["#/readResults/0/lines/58/words/0"]}, - "value": {"text": "$144.00", "boundingBox": [1434.0, 1671.0, 1531.0, 1671.0, - 1531.0, 1697.0, 1434.0, 1697.0], "elements": ["#/readResults/0/lines/59/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [175.0, - 1797.0, 479.0, 1797.0, 479.0, 1834.0, 175.0, 1834.0], "elements": ["#/readResults/0/lines/62/words/0", + 849.0, 964.0, 849.0, 990.0, 760.0, 990.0], "elements": ["#/readResults/0/lines/31/words/0"]}, + "value": {"text": "932-299-0292", "boundingBox": [855.0, 964.0, 1033.0, 964.0, + 1033.0, 990.0, 855.0, 990.0], "elements": ["#/readResults/0/lines/32/words/0"]}, + "confidence": 1.0}, {"key": {"text": "SUBTOTAL", "boundingBox": [1147.0, 1575.0, + 1296.0, 1575.0, 1296.0, 1600.0, 1147.0, 1600.0], "elements": ["#/readResults/0/lines/53/words/0"]}, + "value": {"text": "$140.00", "boundingBox": [1426.0, 1571.0, 1529.0, 1571.0, + 1529.0, 1599.0, 1426.0, 1599.0], "elements": ["#/readResults/0/lines/54/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TAX", "boundingBox": [1238.0, 1618.0, + 1296.0, 1618.0, 1296.0, 1643.0, 1238.0, 1643.0], "elements": ["#/readResults/0/lines/55/words/0"]}, + "value": {"text": "$4.00", "boundingBox": [1458.0, 1615.0, 1529.0, 1615.0, + 1529.0, 1643.0, 1458.0, 1643.0], "elements": ["#/readResults/0/lines/56/words/0"]}, + "confidence": 1.0}, {"key": {"text": "TOTAL", "boundingBox": [1204.0, 1674.0, + 1297.0, 1674.0, 1297.0, 1699.0, 1204.0, 1699.0], "elements": ["#/readResults/0/lines/58/words/0"]}, + "value": {"text": "$144.00", "boundingBox": [1427.0, 1671.0, 1529.0, 1671.0, + 1529.0, 1698.0, 1427.0, 1698.0], "elements": ["#/readResults/0/lines/59/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Additional Notes:", "boundingBox": [173.0, + 1796.0, 479.0, 1796.0, 479.0, 1831.0, 173.0, 1831.0], "elements": ["#/readResults/0/lines/62/words/0", "#/readResults/0/lines/62/words/1"]}, "value": {"text": "Do not Jostle Box. Unpack carefully. Enjoy. Jupiter Book Supply will refund you 50% per book if returned within 60 days of reading and offer you 25% off you next total - purchase.", "boundingBox": [170.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, - 170.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", + purchase.", "boundingBox": [169.0, 1880.0, 1511.0, 1880.0, 1511.0, 1992.0, + 169.0, 1992.0], "elements": ["#/readResults/0/lines/63/words/0", "#/readResults/0/lines/63/words/1", "#/readResults/0/lines/63/words/2", "#/readResults/0/lines/63/words/3", "#/readResults/0/lines/63/words/4", "#/readResults/0/lines/63/words/5", "#/readResults/0/lines/63/words/6", "#/readResults/0/lines/64/words/0", "#/readResults/0/lines/64/words/1", "#/readResults/0/lines/64/words/2", "#/readResults/0/lines/64/words/3", @@ -570,109 +547,85 @@ interactions: "#/readResults/0/lines/64/words/16", "#/readResults/0/lines/65/words/0", "#/readResults/0/lines/65/words/1", "#/readResults/0/lines/65/words/2", "#/readResults/0/lines/65/words/3", "#/readResults/0/lines/65/words/4", "#/readResults/0/lines/65/words/5", "#/readResults/0/lines/65/words/6", "#/readResults/0/lines/65/words/7"]}, - "confidence": 0.53}, {"key": {"text": "__Tokens__1", "boundingBox": null, - "elements": null}, "value": {"text": "Purchase Order", "boundingBox": [141.0, - 140.0, 348.0, 140.0, 348.0, 168.0, 141.0, 168.0], "elements": ["#/readResults/0/lines/0/words/0", - "#/readResults/0/lines/0/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__2", "boundingBox": null, "elements": null}, "value": {"text": "Purchase - Order", "boundingBox": [1117.0, 319.0, 1551.0, 319.0, 1551.0, 372.0, 1117.0, - 372.0], "elements": ["#/readResults/0/lines/2/words/0", "#/readResults/0/lines/2/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__3", "boundingBox": null, "elements": - null}, "value": {"text": "Shipped To", "boundingBox": [170.0, 546.0, 398.0, - 546.0, 398.0, 592.0, 170.0, 592.0], "elements": ["#/readResults/0/lines/13/words/0", - "#/readResults/0/lines/13/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__4", "boundingBox": null, "elements": null}, "value": {"text": "Shipped - From", "boundingBox": [169.0, 784.0, 445.0, 784.0, 445.0, 831.0, 169.0, 831.0], - "elements": ["#/readResults/0/lines/23/words/0", "#/readResults/0/lines/23/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__5", "boundingBox": null, "elements": - null}, "value": {"text": "Bernie Sanders", "boundingBox": [485.0, 1669.0, - 766.0, 1669.0, 766.0, 1708.0, 485.0, 1708.0], "elements": ["#/readResults/0/lines/57/words/0", - "#/readResults/0/lines/57/words/1"]}, "confidence": 1.0}, {"key": {"text": - "__Tokens__6", "boundingBox": null, "elements": null}, "value": {"text": "Bernie - Sanders", "boundingBox": [544.0, 1717.0, 719.0, 1717.0, 719.0, 1743.0, 544.0, - 1743.0], "elements": ["#/readResults/0/lines/60/words/0", "#/readResults/0/lines/60/words/1"]}, - "confidence": 1.0}, {"key": {"text": "__Tokens__7", "boundingBox": null, "elements": - null}, "value": {"text": "Manager", "boundingBox": [579.0, 1752.0, 687.0, - 1752.0, 687.0, 1777.0, 579.0, 1777.0], "elements": ["#/readResults/0/lines/61/words/0"]}, - "confidence": 1.0}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": - "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1047.0, - 551.0, 1047.0, 551.0, 1080.0, 447.0, 1080.0], "confidence": 1.0, "rowSpan": + "confidence": 0.53}], "tables": [{"rows": 5, "columns": 4, "cells": [{"text": + "Details", "rowIndex": 0, "columnIndex": 0, "boundingBox": [447.0, 1048.0, + 558.0, 1048.0, 558.0, 1078.0, 447.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": true, "isFooter": false}, {"text": "Quantity", "rowIndex": 0, "columnIndex": - 1, "boundingBox": [890.0, 1048.0, 1028.0, 1048.0, 1028.0, 1080.0, 890.0, 1080.0], + 1, "boundingBox": [886.0, 1048.0, 1034.0, 1048.0, 1034.0, 1084.0, 886.0, 1084.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/34/words/0"], "isHeader": true, "isFooter": false}, {"text": "Unit Price", "rowIndex": 0, - "columnIndex": 2, "boundingBox": [1113.0, 1045.0, 1267.0, 1045.0, 1267.0, - 1080.0, 1113.0, 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "columnIndex": 2, "boundingBox": [1111.0, 1047.0, 1269.0, 1047.0, 1269.0, + 1078.0, 1111.0, 1078.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/35/words/0", "#/readResults/0/lines/35/words/1"], "isHeader": true, "isFooter": false}, {"text": "Total", "rowIndex": 0, "columnIndex": - 3, "boundingBox": [1389.0, 1046.0, 1466.0, 1046.0, 1466.0, 1080.0, 1389.0, - 1080.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], + 3, "boundingBox": [1383.0, 1047.0, 1467.0, 1047.0, 1467.0, 1077.0, 1383.0, + 1077.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/36/words/0"], "isHeader": true, "isFooter": false}, {"text": "Bindings", "rowIndex": 1, - "columnIndex": 0, "boundingBox": [173.0, 1094.0, 282.0, 1094.0, 282.0, 1122.0, - 173.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": + "columnIndex": 0, "boundingBox": [172.0, 1094.0, 280.0, 1094.0, 280.0, 1122.0, + 172.0, 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/37/words/0"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [863.0, 1098.0, - 889.0, 1098.0, 889.0, 1122.0, 863.0, 1122.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 1, "columnIndex": 1, "boundingBox": [861.0, 1094.0, + 892.0, 1094.0, 892.0, 1119.0, 861.0, 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/38/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 1, "columnIndex": - 2, "boundingBox": [1243.0, 1096.0, 1297.0, 1096.0, 1297.0, 1122.0, 1243.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], + 2, "boundingBox": [1241.0, 1095.0, 1293.0, 1095.0, 1293.0, 1118.0, 1241.0, + 1118.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/39/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 1, "columnIndex": - 3, "boundingBox": [1466.0, 1098.0, 1531.0, 1098.0, 1531.0, 1122.0, 1466.0, - 1122.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], + 3, "boundingBox": [1458.0, 1096.0, 1531.0, 1096.0, 1531.0, 1119.0, 1458.0, + 1119.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/40/words/0"], "isHeader": false, "isFooter": false}, {"text": "Covers Small", "rowIndex": - 2, "columnIndex": 0, "boundingBox": [172.0, 1136.0, 331.0, 1136.0, 331.0, - 1162.0, 172.0, 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 2, "columnIndex": 0, "boundingBox": [170.0, 1136.0, 333.0, 1136.0, 333.0, + 1161.0, 170.0, 1161.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/41/words/0", "#/readResults/0/lines/41/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 2, "columnIndex": - 1, "boundingBox": [862.0, 1137.0, 889.0, 1137.0, 889.0, 1162.0, 862.0, 1162.0], + 1, "boundingBox": [861.0, 1135.0, 892.0, 1135.0, 892.0, 1160.0, 861.0, 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/42/words/0"], "isHeader": false, "isFooter": false}, {"text": "1.00", "rowIndex": 2, "columnIndex": - 2, "boundingBox": [1243.0, 1134.0, 1292.0, 1134.0, 1292.0, 1162.0, 1243.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], + 2, "boundingBox": [1240.0, 1135.0, 1294.0, 1135.0, 1294.0, 1160.0, 1240.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/43/words/0"], "isHeader": false, "isFooter": false}, {"text": "20.00", "rowIndex": 2, "columnIndex": - 3, "boundingBox": [1464.0, 1138.0, 1531.0, 1138.0, 1531.0, 1162.0, 1464.0, - 1162.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], + 3, "boundingBox": [1458.0, 1135.0, 1529.0, 1135.0, 1529.0, 1160.0, 1458.0, + 1160.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/44/words/0"], "isHeader": false, "isFooter": false}, {"text": "Feather Bookmark", "rowIndex": - 3, "columnIndex": 0, "boundingBox": [172.0, 1179.0, 404.0, 1179.0, 404.0, - 1205.0, 172.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 3, "columnIndex": 0, "boundingBox": [173.0, 1179.0, 402.0, 1179.0, 402.0, + 1206.0, 173.0, 1206.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/45/words/0", "#/readResults/0/lines/45/words/1"], "isHeader": false, "isFooter": false}, {"text": "20", "rowIndex": 3, "columnIndex": - 1, "boundingBox": [863.0, 1177.0, 888.0, 1177.0, 888.0, 1199.0, 863.0, 1199.0], + 1, "boundingBox": [863.0, 1179.0, 892.0, 1179.0, 892.0, 1204.0, 863.0, 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/46/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 3, "columnIndex": - 2, "boundingBox": [1243.0, 1179.0, 1298.0, 1179.0, 1298.0, 1205.0, 1243.0, - 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], + 2, "boundingBox": [1239.0, 1179.0, 1294.0, 1179.0, 1294.0, 1204.0, 1239.0, + 1204.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/47/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 3, "columnIndex": - 3, "boundingBox": [1448.0, 1180.0, 1530.0, 1180.0, 1530.0, 1205.0, 1448.0, + 3, "boundingBox": [1443.0, 1181.0, 1529.0, 1181.0, 1529.0, 1205.0, 1443.0, 1205.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/48/words/0"], "isHeader": false, "isFooter": false}, {"text": "Copper Swirl Marker", "rowIndex": - 4, "columnIndex": 0, "boundingBox": [171.0, 1224.0, 426.0, 1224.0, 426.0, - 1248.0, 171.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + 4, "columnIndex": 0, "boundingBox": [170.0, 1222.0, 429.0, 1222.0, 429.0, + 1252.0, 170.0, 1252.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/49/words/0", "#/readResults/0/lines/49/words/1", "#/readResults/0/lines/49/words/2"], "isHeader": false, "isFooter": false}, - {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [864.0, 1221.0, - 887.0, 1221.0, 887.0, 1244.0, 864.0, 1244.0], "confidence": 1.0, "rowSpan": + {"text": "20", "rowIndex": 4, "columnIndex": 1, "boundingBox": [860.0, 1223.0, + 892.0, 1223.0, 892.0, 1247.0, 860.0, 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/50/words/0"], "isHeader": false, "isFooter": false}, {"text": "5.00", "rowIndex": 4, "columnIndex": - 2, "boundingBox": [1242.0, 1222.0, 1291.0, 1222.0, 1291.0, 1248.0, 1242.0, - 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], + 2, "boundingBox": [1239.0, 1221.0, 1293.0, 1221.0, 1293.0, 1247.0, 1239.0, + 1247.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/51/words/0"], "isHeader": false, "isFooter": false}, {"text": "100.00", "rowIndex": 4, "columnIndex": - 3, "boundingBox": [1449.0, 1225.0, 1530.0, 1225.0, 1530.0, 1248.0, 1449.0, + 3, "boundingBox": [1444.0, 1224.0, 1530.0, 1224.0, 1530.0, 1248.0, 1444.0, 1248.0], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/52/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: a428f27d-db3b-4d96-aaf5-d4d7f761ee21 - content-length: '36450' + apim-request-id: 3c0121fe-7a15-4187-bfda-f8220330d433 + content-length: '34193' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:43 GMT + date: Mon, 14 Sep 2020 20:23:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '159' + x-envoy-upstream-service-time: '322' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a8cbd7d8-6b0c-4930-b8ca-ce6d112c4f93/analyzeresults/e81658aa-200e-45c1-9926-9973f6359fe2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/abc66877-43d2-4cdb-8753-1e3e9ce94a2c/analyzeresults/2c567ab5-8a23-4ae0-87d3-1005489e32d6 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml index 22d938de6a4e..238404fe73dc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_labeled_transform.yaml @@ -3,186 +3,190 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: a6a13c1a-473e-4f0d-9db1-5211935f99bf + apim-request-id: 4fee1887-fc7f-4163-b99e-2bccc8962c5d content-length: '0' - date: Fri, 10 Jul 2020 18:52:43 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4 + date: Mon, 14 Sep 2020 20:22:39 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '40' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "9a9bb54a-3a35-42af-ad6a-c71cad6690e4", "status": - "ready", "createdDateTime": "2020-07-10T18:52:44Z", "lastUpdatedDateTime": - "2020-07-10T18:52:46Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "51a06cc0-28ca-4df4-a64c-7c00460f0ded", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:22:39Z", + "lastUpdatedDateTime": "2020-09-14T20:22:40Z"}, "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": []}}' headers: - apim-request-id: 85c78a7a-35a3-4b07-b269-7d247b460ffd + apim-request-id: bf65c7ab-6d20-49ae-930b-124d1c51cae1 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:48 GMT + date: Mon, 14 Sep 2020 20:22:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: + Accept: + - application/json Content-Length: - '241' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: f31385ef-de7d-460c-8abd-1746072dd521 + apim-request-id: 54534c3d-b971-47d8-834c-5db7fed638cb content-length: '0' - date: Fri, 10 Jul 2020 18:52:48 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 + date: Mon, 14 Sep 2020 20:22:44 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyzeresults/03537ae3-323d-4ac3-8f87-e54a12c004c5 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '100' + x-envoy-upstream-service-time: '47' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyzeresults/03537ae3-323d-4ac3-8f87-e54a12c004c5 response: body: - string: '{"status": "notStarted", "createdDateTime": "2020-07-10T18:52:49Z", - "lastUpdatedDateTime": "2020-07-10T18:52:53Z"}' + string: '{"status": "notStarted", "createdDateTime": "2020-09-14T20:22:44Z", + "lastUpdatedDateTime": "2020-09-14T20:22:48Z"}' headers: - apim-request-id: fe81485a-4418-4ad5-842a-1b6fb718f64a + apim-request-id: c63084bf-b128-4c79-b4c2-010f7036e659 content-length: '109' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:54 GMT + date: Mon, 14 Sep 2020 20:22:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyzeresults/03537ae3-323d-4ac3-8f87-e54a12c004c5 - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyzeresults/03537ae3-323d-4ac3-8f87-e54a12c004c5 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:49Z", - "lastUpdatedDateTime": "2020-07-10T18:52:56Z", "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, - 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.803, 1.6782, 7.1006, 1.6782, 7.1006, - 1.7854, 6.803, 1.7854], "text": "Lane", "confidence": 1}]}, {"boundingBox": - [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "text": "Redmond, WA", - "words": [{"boundingBox": [6.0164, 1.891, 6.6861, 1.891, 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.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, - 2.1975], "text": "Redmond, WA", "words": [{"boundingBox": [0.891, 2.061, 1.5605, - 2.061, 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.109, 1.0943, 3.109], "text": "Item", - "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, - 1.0943, 3.109], "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.423, - 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", "words": - [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], - "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, 1.174, - 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:22:44Z", + "lastUpdatedDateTime": "2020-09-14T20:22:52Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "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.396, 1.4556, 6.8967, 1.4556, 6.8967, 1.5931, 6.396, 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.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "text": "Lane", + "confidence": 1}]}, {"boundingBox": [0.8852, 1.846, 1.713, 1.846, 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.846, 1.5022, 1.846, 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.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, + 2.0275], "text": "Redmond, WA", "words": [{"boundingBox": [6.0164, 1.891, + 6.6861, 1.891, 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.061, + 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "text": "Redmond, WA", "words": + [{"boundingBox": [0.891, 2.061, 1.5605, 2.061, 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.109, 1.0943, + 3.109], "text": "Item", "words": [{"boundingBox": [1.0943, 3.0018, 1.3842, + 3.0018, 1.3842, 3.109, 1.0943, 3.109], "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.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "text": "Price", + "words": [{"boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "text": "Price", "confidence": 1}]}, {"boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "text": "A", "words": [{"boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "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, @@ -264,14 +268,20 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 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.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "text": "B", "confidence": + 6.7981, 2.4823, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.8745, 1.1035, 9.8745, 1.1035, 10.9943, + 0, 10.9943], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.4952, 1.9659, 10.4952, 1.9659, 10.9978, 0, 10.9978], "confidence": + 0.8, "state": "unselected"}, {"boundingBox": [0, 0.0263, 1.0499, 0.0263, 1.0499, + 1.0117, 0, 1.0117], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [7.5064, 9.9415, 8.4985, 9.9415, 8.4985, 11, 7.5064, 11], "confidence": 0.553, + "state": "unselected"}]}, {"page": 2, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch", "lines": []}, {"page": 3, "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.764, 1.1248, 1.764, 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": @@ -405,10 +415,18 @@ interactions: 1.0055, 6.7981], "text": "Signature:", "confidence": 1}, {"boundingBox": [1.747, 6.6556, 2.4778, 6.6556, 2.4778, 6.7981, 1.747, 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"]}, + 6.7981, 2.5325, 6.7981], "text": "Baggins__________", "confidence": 1}]}], + "selectionMarks": [{"boundingBox": [0, 9.877, 1.1039, 9.877, 1.1039, 10.9946, + 0, 10.9946], "confidence": 0.881, "state": "unselected"}, {"boundingBox": + [0, 10.498, 1.9897, 10.498, 1.9897, 10.9975, 0, 10.9975], "confidence": 0.833, + "state": "unselected"}, {"boundingBox": [0, 0.0268, 1.048, 0.0268, 1.048, + 1.0107, 0, 1.0107], "confidence": 0.6, "state": "unselected"}, {"boundingBox": + [6.8221, 10.6394, 8.4766, 10.6394, 8.4766, 11, 6.8221, 11], "confidence": + 0.6, "state": "unselected"}, {"boundingBox": [7.5061, 9.9417, 8.4988, 9.9417, + 8.4988, 11, 7.5061, 11], "confidence": 0.553, "state": "unselected"}]}], "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, @@ -505,82 +523,76 @@ interactions: 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"]}]}]}], - "documentResults": [{"docType": "custom:form", "pageRange": [1, 3], "fields": - {"Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo - Baggins", "page": 3, "boundingBox": [6.015000000000001, 1.45, 6.95, 1.45, - 6.95, 1.595, 6.015000000000001, 1.595], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/2/lines/3/words/0", - "#/analyzeResult/readResults/2/lines/3/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/9/words/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, "elements": ["#/analyzeResult/readResults/0/lines/36/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/37/words/1"]}, "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, "elements": - ["#/analyzeResult/readResults/0/lines/35/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/15/words/0"]}, + "documentResults": [{"docType": "custom:51a06cc0-28ca-4df4-a64c-7c00460f0ded", + "modelId": "51a06cc0-28ca-4df4-a64c-7c00460f0ded", "pageRange": [1, 3], "fields": + {"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, "elements": ["#/readResults/0/lines/34/words/1"]}, "CustomerName": + {"type": "string", "valueString": "Bilbo Baggins", "text": "Bilbo Baggins", + "page": 1, "boundingBox": [6.015, 1.45, 6.895, 1.45, 6.895, 1.595, 6.015, + 1.595], "confidence": 0.971, "elements": ["#/readResults/0/lines/3/words/0", + "#/readResults/0/lines/3/words/1"]}, "CustomerAddress": {"type": "string", + "valueString": "123 Hobbit Lane Redmond, WA", "text": "123 Hobbit Lane Redmond, + WA", "page": 1, "boundingBox": [6.015, 1.67, 7.1, 1.67, 7.1, 2.03, 6.015, + 2.03], "confidence": 1.0, "elements": ["#/readResults/0/lines/4/words/0", + "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2", "#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "FirstPrice": {"type": "string", "valueString": + "10.99", "text": "10.99", "page": 1, "boundingBox": [5.425, 3.21, 5.78, 3.21, + 5.78, 3.32, 5.425, 3.32], "confidence": 1.0, "elements": ["#/readResults/0/lines/15/words/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, "elements": ["#/readResults/0/lines/9/words/0"]}, + "CustomerPhoneNumber": {"type": "string", "valueString": "555-555-5555", "text": + "555-555-5555", "page": 1, "boundingBox": [6.01, 2.12, 6.935, 2.12, 6.935, + 2.225, 6.01, 2.225], "confidence": 1.0, "elements": ["#/readResults/0/lines/8/words/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, "elements": ["#/analyzeResult/readResults/0/lines/38/words/1", - "#/analyzeResult/readResults/0/lines/38/words/2"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/5/words/0", - "#/analyzeResult/readResults/0/lines/5/words/1", "#/analyzeResult/readResults/0/lines/5/words/2", - "#/analyzeResult/readResults/0/lines/7/words/0", "#/analyzeResult/readResults/0/lines/7/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/2/lines/38/words/1", - "#/analyzeResult/readResults/2/lines/38/words/2"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/8/words/0"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/13/words/0"]}, + 2.05, 6.8], "confidence": 0.952, "elements": ["#/readResults/0/lines/38/words/1", + "#/readResults/0/lines/38/words/2"]}, "Merchant2": {"type": "string", "valueString": + "Company", "text": "Company", "page": 3, "boundingBox": [0.885, 1.125, 1.62, + 1.125, 1.62, 1.28, 0.885, 1.28], "confidence": 1.0, "elements": ["#/readResults/2/lines/0/words/0"]}, + "Customer2": {"type": "string", "valueString": "Frodo Baggins", "text": "Frodo + Baggins", "page": 3, "boundingBox": [6.015, 1.45, 6.95, 1.45, 6.95, 1.595, + 6.015, 1.595], "confidence": 0.971, "elements": ["#/readResults/2/lines/3/words/0", + "#/readResults/2/lines/3/words/1"]}, "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.676, "elements": + ["#/readResults/2/lines/38/words/1", "#/readResults/2/lines/38/words/2"]}, + "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, "elements": + ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2", + "#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, "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, "elements": + ["#/readResults/0/lines/37/words/1"]}, "Merchant": {"type": "string", "valueString": + "B", "text": "B", "page": 3, "boundingBox": [1.685, 1.125, 1.765, 1.125, 1.765, + 1.245, 1.685, 1.245], "confidence": 0.5, "elements": ["#/readResults/2/lines/0/words/1"]}, "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, "elements": ["#/analyzeResult/readResults/0/lines/14/words/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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/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, "elements": ["#/analyzeResult/readResults/0/lines/0/words/1"]}, - "CustomerAddress": {"type": "string", "valueString": "123 Hobbit Lane Redmond, - WA", "text": "123 Hobbit Lane Redmond, WA", "page": 1, "boundingBox": [6.015000000000001, - 1.67, 7.1000000000000005, 1.67, 7.1000000000000005, 2.0300000000000002, 6.015000000000001, - 2.0300000000000002], "confidence": 1.0, "elements": ["#/analyzeResult/readResults/0/lines/4/words/0", - "#/analyzeResult/readResults/0/lines/4/words/1", "#/analyzeResult/readResults/0/lines/4/words/2", - "#/analyzeResult/readResults/0/lines/6/words/0", "#/analyzeResult/readResults/0/lines/6/words/1"]}, - "CustomerName": {"type": "string", "valueString": "Bilbo Baggins", "text": - "Bilbo Baggins", "page": 1, "boundingBox": [6.015000000000001, 1.45, 6.8950000000000005, - 1.45, 6.8950000000000005, 1.595, 6.015000000000001, 1.595], "confidence": - 1.0, "elements": ["#/analyzeResult/readResults/0/lines/3/words/0", "#/analyzeResult/readResults/0/lines/3/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/0/lines/34/words/1"]}, - "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, "elements": ["#/analyzeResult/readResults/2/lines/37/words/1"]}}}], - "errors": []}}' + 1, "boundingBox": [3.26, 3.21, 3.32, 3.21, 3.32, 3.32, 3.26, 3.32], "confidence": + 1.0, "elements": ["#/readResults/0/lines/14/words/0"]}, "FirstItem": {"type": + "string", "valueString": "A", "text": "A", "page": 1, "boundingBox": [1.085, + 3.21, 1.175, 3.21, 1.175, 3.32, 1.085, 3.32], "confidence": 1.0, "elements": + ["#/readResults/0/lines/13/words/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, "elements": ["#/readResults/2/lines/37/words/1"]}, + "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, "elements": ["#/readResults/0/lines/35/words/1"]}, "Tip": {"type": "string", + "valueString": "100.00", "text": "100.00", "page": 1, "boundingBox": [5.81, + 5.345, 6.26, 5.345, 6.26, 5.455, 5.81, 5.455], "confidence": 1.0, "elements": + ["#/readResults/0/lines/36/words/1"]}}, "docTypeConfidence": 1.0}], "errors": + []}}' headers: - apim-request-id: e77b640c-bed3-4406-a648-2bc38ef14eba - content-length: '32675' + apim-request-id: 9a5dbb4d-ed1a-4cbb-9b98-99607258f9a9 + content-length: '32919' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:59 GMT + date: Mon, 14 Sep 2020 20:22:54 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '59' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/9a9bb54a-3a35-42af-ad6a-c71cad6690e4/analyzeresults/3c408a20-42d2-4916-a7be-d3c8c2130237 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/51a06cc0-28ca-4df4-a64c-7c00460f0ded/analyzeresults/03537ae3-323d-4ac3-8f87-e54a12c004c5 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml index c7dbf6663a49..b18b2681aacb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_multipage_unlabeled_transform.yaml @@ -3,185 +3,139 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '301' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 9dfa4842-053e-402b-8ee3-c3063ce90615 + apim-request-id: fa1ee0ca-dac3-49ea-a7f6-87e27340d31e content-length: '0' - date: Fri, 10 Jul 2020 18:49:25 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d + date: Mon, 14 Sep 2020 20:22:47 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '220' + x-envoy-upstream-service-time: '37' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:25Z"}}' - headers: - apim-request-id: b0bf7e5c-987c-4eb5-b632-784402c811ed - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:30 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '52' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:25Z"}}' + string: '{"modelInfo": {"modelId": "bff2e923-3008-48f5-8a8b-496a4ffdb77c", "status": + "creating", "createdDateTime": "2020-09-14T20:22:48Z", "lastUpdatedDateTime": + "2020-09-14T20:22:48Z"}}' headers: - apim-request-id: dec21e50-4618-458c-a5f1-3e57e85ef5bb + apim-request-id: 2838b857-66ec-4e5e-805b-64ad8755c6cb content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:35 GMT + date: Mon, 14 Sep 2020 20:22:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:25Z"}}' + string: '{"modelInfo": {"modelId": "bff2e923-3008-48f5-8a8b-496a4ffdb77c", "status": + "creating", "createdDateTime": "2020-09-14T20:22:48Z", "lastUpdatedDateTime": + "2020-09-14T20:22:48Z"}}' headers: - apim-request-id: 8ceafbfa-2f05-45f5-ba79-9d2319cda437 + apim-request-id: 4669c55c-ff10-45b2-8dac-8d5e6a054ea6 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:41 GMT + date: Mon, 14 Sep 2020 20:22:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '34' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:25Z"}}' + string: '{"modelInfo": {"modelId": "bff2e923-3008-48f5-8a8b-496a4ffdb77c", "status": + "creating", "createdDateTime": "2020-09-14T20:22:48Z", "lastUpdatedDateTime": + "2020-09-14T20:22:48Z"}}' headers: - apim-request-id: a38c37b5-e470-45e0-b11f-600f57c5f99d + apim-request-id: 32cc507d-dc19-425a-b450-fd80fb8c2d9f content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:46 GMT + date: Mon, 14 Sep 2020 20:23:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:25Z"}}' + string: '{"modelInfo": {"modelId": "bff2e923-3008-48f5-8a8b-496a4ffdb77c", "status": + "creating", "createdDateTime": "2020-09-14T20:22:48Z", "lastUpdatedDateTime": + "2020-09-14T20:22:48Z"}}' headers: - apim-request-id: 929a29f0-3eb4-4c08-b817-17fcb12db67e + apim-request-id: 9c118082-cafb-4a21-a4cd-987acd88c0f3 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:51 GMT + date: Mon, 14 Sep 2020 20:23:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "creating", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:25Z"}}' - headers: - apim-request-id: cce37fbd-2e27-4256-b8c4-1e6f4246c3d0 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:49:56 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", "status": - "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:57Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "bff2e923-3008-48f5-8a8b-496a4ffdb77c", "status": + "ready", "createdDateTime": "2020-09-14T20:22:48Z", "lastUpdatedDateTime": + "2020-09-14T20:23:12Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -191,598 +145,613 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 84103c87-53fb-401f-a2e5-1cc4e98bfe01 + apim-request-id: 72644f09-9667-4fc1-b5ba-ce7a60548667 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:02 GMT + date: Mon, 14 Sep 2020 20:23:13 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '165' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c?includeKeys=true - request: body: 'b''b\''{"source": "blob_sas_url"}\''''' headers: + Accept: + - application/json Content-Length: - '241' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: f0bf1e07-c350-401b-b23a-4d128dadbe95 + apim-request-id: 4d17f656-456c-4d4c-9093-d96b446d3bff content-length: '0' - date: Fri, 10 Jul 2020 18:50:04 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 + date: Mon, 14 Sep 2020 20:23:13 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '2427' + x-envoy-upstream-service-time: '47' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyze?includeTextDetails=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd + response: + body: + string: '{"status": "running", "createdDateTime": "2020-09-14T20:23:14Z", "lastUpdatedDateTime": + "2020-09-14T20:23:15Z", "analyzeResult": null}' + headers: + apim-request-id: 1339c4f0-8280-4a77-ad05-7a2f4f41d8e3 + content-length: '134' + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 20:23:19 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + x-content-type-options: nosniff + x-envoy-upstream-service-time: '14' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd response: body: - string: '{"status": "running", "createdDateTime": "2020-07-10T18:50:04Z", "lastUpdatedDateTime": - "2020-07-10T18:50:06Z", "analyzeResult": null}' + string: '{"status": "running", "createdDateTime": "2020-09-14T20:23:14Z", "lastUpdatedDateTime": + "2020-09-14T20:23:15Z", "analyzeResult": null}' headers: - apim-request-id: ae666f67-1503-4df3-9c16-7bbfc3429399 + apim-request-id: c8d053d3-c656-4c54-9972-c8a669036dc4 content-length: '134' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:09 GMT + date: Mon, 14 Sep 2020 20:23:23 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '823' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:04Z", - "lastUpdatedDateTime": "2020-07-10T18:50:11Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, - "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8764, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 0.8764, 1.2958], "words": [{"text": - "Company", "boundingBox": [0.8764, 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, - 0.8764, 1.2958]}, {"text": "A", "boundingBox": [1.6667, 1.1014, 1.7778, 1.1014, - 1.7778, 1.2958, 1.6667, 1.2958]}, {"text": "Invoice", "boundingBox": [1.8222, - 1.1014, 2.3875, 1.1014, 2.3875, 1.2958, 1.8222, 1.2958]}]}, {"text": "Invoice - For:", "boundingBox": [6.0028, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, - 1.2667], "words": [{"text": "Invoice", "boundingBox": [6.0028, 1.0431, 6.6472, - 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, {"text": "For:", "boundingBox": - [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, 6.6958, 1.2667]}]}, {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": [0.8764, 1.4681, - 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": "Bilbo Baggins", - "boundingBox": [6.0028, 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.0028, 1.6056], - "words": [{"text": "Bilbo", "boundingBox": [6.0028, 1.4389, 6.3472, 1.4389, - 6.3472, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": [6.3819, - 1.4389, 6.9028, 1.4389, 6.9028, 1.6056, 6.3819, 1.6056]}]}, {"text": "123 - Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, 1.6597, - 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", "boundingBox": - [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, {"text": - "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, 6.7889, - 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, - 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, 3.3292, 3.3597, 3.2444, - 3.3597], "words": [{"text": "1", "boundingBox": [3.2444, 3.1931, 3.3292, 3.1931, - 3.3292, 3.3597, 3.2444, 3.3597]}]}, {"text": "10.99", "boundingBox": [5.4083, - 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, 3.3597], "words": [{"text": - "10.99", "boundingBox": [5.4083, 3.1931, 5.7875, 3.1931, 5.7875, 3.3597, 5.4083, - 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, 1.1708, 3.4056, - 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": [1.0806, - 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": "2", - "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, 3.5722, 3.2444, 3.5722], - "words": [{"text": "2", "boundingBox": [3.2444, 3.4056, 3.3292, 3.4056, 3.3292, - 3.5722, 3.2444, 3.5722]}]}, {"text": "14.67", "boundingBox": [5.4083, 3.4056, - 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722], "words": [{"text": "14.67", - "boundingBox": [5.4083, 3.4056, 5.7861, 3.4056, 5.7861, 3.5722, 5.4083, 3.5722]}]}, - {"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, - 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": [1.0806, 3.6167, 1.1694, - 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": "4", "boundingBox": [3.2444, - 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, 3.7833], "words": [{"text": - "4", "boundingBox": [3.2444, 3.6167, 3.3292, 3.6167, 3.3292, 3.7833, 3.2444, - 3.7833]}]}, {"text": "15.66", "boundingBox": [5.4083, 3.6167, 5.7861, 3.6167, - 5.7861, 3.7833, 5.4083, 3.7833], "words": [{"text": "15.66", "boundingBox": - [5.4083, 3.6167, 5.7861, 3.6167, 5.7861, 3.7833, 5.4083, 3.7833]}]}, {"text": - "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, - 3.9931], "words": [{"text": "D", "boundingBox": [1.0806, 3.8264, 1.1833, 3.8264, - 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": "1", "boundingBox": [3.2444, - 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, 3.9931], "words": [{"text": - "1", "boundingBox": [3.2444, 3.8264, 3.3292, 3.8264, 3.3292, 3.9931, 3.2444, - 3.9931]}]}, {"text": "12.00", "boundingBox": [5.4083, 3.8264, 5.7861, 3.8264, - 5.7861, 3.9931, 5.4083, 3.9931], "words": [{"text": "12.00", "boundingBox": - [5.4083, 3.8264, 5.7861, 3.8264, 5.7861, 3.9931, 5.4083, 3.9931]}]}, {"text": - "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, - 4.2028], "words": [{"text": "E", "boundingBox": [1.0806, 4.0361, 1.1611, 4.0361, - 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": "4", "boundingBox": [3.2444, - 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, 4.2028], "words": [{"text": - "4", "boundingBox": [3.2444, 4.0361, 3.3292, 4.0361, 3.3292, 4.2028, 3.2444, - 4.2028]}]}, {"text": "10.00", "boundingBox": [5.4083, 4.0361, 5.7875, 4.0361, - 5.7875, 4.2028, 5.4083, 4.2028], "words": [{"text": "10.00", "boundingBox": - [5.4083, 4.0361, 5.7875, 4.0361, 5.7875, 4.2028, 5.4083, 4.2028]}]}, {"text": - "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, - 4.4125], "words": [{"text": "F", "boundingBox": [1.0806, 4.2458, 1.1569, 4.2458, - 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": "6", "boundingBox": [3.2444, - 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, 4.4125], "words": [{"text": - "6", "boundingBox": [3.2444, 4.2458, 3.3292, 4.2458, 3.3292, 4.4125, 3.2444, - 4.4125]}]}, {"text": "12.00", "boundingBox": [5.4083, 4.2458, 5.7861, 4.2458, - 5.7861, 4.4125, 5.4083, 4.4125], "words": [{"text": "12.00", "boundingBox": - [5.4083, 4.2458, 5.7861, 4.2458, 5.7861, 4.4125, 5.4083, 4.4125]}]}, {"text": - "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, - 4.6236], "words": [{"text": "G", "boundingBox": [1.0806, 4.4569, 1.1861, 4.4569, - 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": "8", "boundingBox": [3.2444, - 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, 4.6236], "words": [{"text": - "8", "boundingBox": [3.2444, 4.4569, 3.3292, 4.4569, 3.3292, 4.6236, 3.2444, - 4.6236]}]}, {"text": "22.00", "boundingBox": [5.4083, 4.4569, 5.7875, 4.4569, - 5.7875, 4.6236, 5.4083, 4.6236], "words": [{"text": "22.00", "boundingBox": - [5.4083, 4.4569, 5.7875, 4.4569, 5.7875, 4.6236, 5.4083, 4.6236]}]}, {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "words": [{"text": "Subtotal:", "boundingBox": [5.5028, 4.8861, - 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528]}]}, {"text": "300.00", "boundingBox": - [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, 5.0528, 6.1722, 5.0528], "words": - [{"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "words": [{"text": "Tax:", - "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, - {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, 6.2069, - 5.2736, 5.8292, 5.2736], "words": [{"text": "30.00", "boundingBox": [5.8292, - 5.1069, 6.2069, 5.1069, 6.2069, 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], - "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, - 5.7611, 5.4931, 5.5028, 5.4931]}]}, {"text": "100.00", "boundingBox": [5.7986, - 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, 5.7986, 5.4931], "words": [{"text": - "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, 6.2639, 5.4931, - 5.7986, 5.4931]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, - 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "words": [{"text": "Total:", "boundingBox": - [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": - "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, 6.4028, 5.7139, - 5.9389, 5.7139], "words": [{"text": "430.00", "boundingBox": [5.9389, 5.5472, - 6.4028, 5.5472, 6.4028, 5.7139, 5.9389, 5.7139]}]}, {"text": "Signature:", - "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], - "words": [{"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, 6.6431, - 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Bilbo Baggins__________", "boundingBox": - [1.7472, 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "words": - [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6431, 2.4333, 6.6431, 2.4333, - 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", "boundingBox": [2.4708, - 6.6431, 3.8333, 6.6431, 3.8333, 6.8097, 2.4708, 6.8097]}]}]}, {"page": 2, - "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": - 3, "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": - "Company B Invoice", "boundingBox": [0.8764, 1.1014, 2.3833, 1.1014, 2.3833, - 1.2958, 0.8764, 1.2958], "words": [{"text": "Company", "boundingBox": [0.8764, - 1.1014, 1.6236, 1.1014, 1.6236, 1.2958, 0.8764, 1.2958]}, {"text": "B", "boundingBox": - [1.6667, 1.1014, 1.7722, 1.1014, 1.7722, 1.2958, 1.6667, 1.2958]}, {"text": - "Invoice", "boundingBox": [1.8167, 1.1014, 2.3833, 1.1014, 2.3833, 1.2958, - 1.8167, 1.2958]}]}, {"text": "Invoice For:", "boundingBox": [6.0028, 1.0431, - 7.0528, 1.0431, 7.0528, 1.2667, 6.0028, 1.2667], "words": [{"text": "Invoice", - "boundingBox": [6.0028, 1.0431, 6.6472, 1.0431, 6.6472, 1.2667, 6.0028, 1.2667]}, - {"text": "For:", "boundingBox": [6.6958, 1.0431, 7.0528, 1.0431, 7.0528, 1.2667, - 6.6958, 1.2667]}]}, {"text": "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, - 1.4681, 1.5778, 1.6625, 0.8764, 1.6625], "words": [{"text": "Address:", "boundingBox": - [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, 0.8764, 1.6625]}]}, {"text": - "Frodo Baggins", "boundingBox": [6.0028, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, - 6.0028, 1.6056], "words": [{"text": "Frodo", "boundingBox": [6.0028, 1.4389, - 6.3972, 1.4389, 6.3972, 1.6056, 6.0028, 1.6056]}, {"text": "Baggins", "boundingBox": - [6.4361, 1.4389, 6.9569, 1.4389, 6.9569, 1.6056, 6.4361, 1.6056]}]}, {"text": - "123 Hobbit Lane", "boundingBox": [6.0028, 1.6597, 7.1083, 1.6597, 7.1083, - 1.8264, 6.0028, 1.8264], "words": [{"text": "123", "boundingBox": [6.0028, - 1.6597, 6.2542, 1.6597, 6.2542, 1.8264, 6.0028, 1.8264]}, {"text": "Hobbit", - "boundingBox": [6.2889, 1.6597, 6.7514, 1.6597, 6.7514, 1.8264, 6.2889, 1.8264]}, - {"text": "Lane", "boundingBox": [6.7889, 1.6597, 7.1083, 1.6597, 7.1083, 1.8264, - 6.7889, 1.8264]}]}, {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, - 1.725, 1.8292, 1.725, 1.9958, 0.8764, 1.9958], "words": [{"text": "567", "boundingBox": - [0.8764, 1.8292, 1.1278, 1.8292, 1.1278, 1.9958, 0.8764, 1.9958]}, {"text": - "Main", "boundingBox": [1.1639, 1.8292, 1.5139, 1.8292, 1.5139, 1.9958, 1.1639, - 1.9958]}, {"text": "St.", "boundingBox": [1.55, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 1.55, 1.9958]}]}, {"text": "Redmond, WA", "boundingBox": [6.0028, - 1.8792, 6.9819, 1.8792, 6.9819, 2.0458, 6.0028, 2.0458], "words": [{"text": - "Redmond,", "boundingBox": [6.0028, 1.8792, 6.6972, 1.8792, 6.6972, 2.0458, - 6.0028, 2.0458]}, {"text": "WA", "boundingBox": [6.7361, 1.8792, 6.9819, 1.8792, - 6.9819, 2.0458, 6.7361, 2.0458]}]}, {"text": "Redmond, WA", "boundingBox": - [0.8764, 2.0486, 1.8569, 2.0486, 1.8569, 2.2153, 0.8764, 2.2153], "words": - [{"text": "Redmond,", "boundingBox": [0.8764, 2.0486, 1.5722, 2.0486, 1.5722, - 2.2153, 0.8764, 2.2153]}, {"text": "WA", "boundingBox": [1.6097, 2.0486, 1.8569, - 2.0486, 1.8569, 2.2153, 1.6097, 2.2153]}]}, {"text": "555-555-5555", "boundingBox": - [6.0028, 2.0986, 6.9472, 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "words": - [{"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, 2.0986, - 6.9472, 2.2653, 6.0028, 2.2653]}]}, {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "words": - [{"text": "555-555-5555", "boundingBox": [0.8764, 2.2694, 1.8222, 2.2694, - 1.8222, 2.4361, 0.8764, 2.4361]}]}, {"text": "Item", "boundingBox": [1.0806, - 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15], "words": [{"text": "Item", - "boundingBox": [1.0806, 2.9833, 1.3958, 2.9833, 1.3958, 3.15, 1.0806, 3.15]}]}, - {"text": "Quantity", "boundingBox": [3.2444, 2.9833, 3.8389, 2.9833, 3.8389, - 3.15, 3.2444, 3.15], "words": [{"text": "Quantity", "boundingBox": [3.2444, - 2.9833, 3.8389, 2.9833, 3.8389, 3.15, 3.2444, 3.15]}]}, {"text": "Price", - "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, 5.7458, 3.15, 5.4083, 3.15], - "words": [{"text": "Price", "boundingBox": [5.4083, 2.9833, 5.7458, 2.9833, - 5.7458, 3.15, 5.4083, 3.15]}]}, {"text": "A", "boundingBox": [1.0806, 3.1931, - 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597], "words": [{"text": "A", "boundingBox": - [1.0806, 3.1931, 1.1764, 3.1931, 1.1764, 3.3597, 1.0806, 3.3597]}]}, {"text": - "10", "boundingBox": [3.2444, 3.1931, 3.4125, 3.1931, 3.4125, 3.3597, 3.2444, - 3.3597], "words": [{"text": "10", "boundingBox": [3.2444, 3.1931, 3.4125, - 3.1931, 3.4125, 3.3597, 3.2444, 3.3597]}]}, {"text": "100.99", "boundingBox": - [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, 3.3597, 5.4083, 3.3597], "words": - [{"text": "100.99", "boundingBox": [5.4083, 3.1931, 5.8708, 3.1931, 5.8708, - 3.3597, 5.4083, 3.3597]}]}, {"text": "B", "boundingBox": [1.0806, 3.4056, - 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722], "words": [{"text": "B", "boundingBox": - [1.0806, 3.4056, 1.1708, 3.4056, 1.1708, 3.5722, 1.0806, 3.5722]}]}, {"text": - "20", "boundingBox": [3.2444, 3.4056, 3.4125, 3.4056, 3.4125, 3.5722, 3.2444, - 3.5722], "words": [{"text": "20", "boundingBox": [3.2444, 3.4056, 3.4125, - 3.4056, 3.4125, 3.5722, 3.2444, 3.5722]}]}, {"text": "140.67", "boundingBox": - [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, 3.5722, 5.4083, 3.5722], "words": - [{"text": "140.67", "boundingBox": [5.4083, 3.4056, 5.8694, 3.4056, 5.8694, - 3.5722, 5.4083, 3.5722]}]}, {"text": "C", "boundingBox": [1.0806, 3.6167, - 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833], "words": [{"text": "C", "boundingBox": - [1.0806, 3.6167, 1.1694, 3.6167, 1.1694, 3.7833, 1.0806, 3.7833]}]}, {"text": - "40", "boundingBox": [3.2444, 3.6167, 3.4125, 3.6167, 3.4125, 3.7833, 3.2444, - 3.7833], "words": [{"text": "40", "boundingBox": [3.2444, 3.6167, 3.4125, - 3.6167, 3.4125, 3.7833, 3.2444, 3.7833]}]}, {"text": "150.66", "boundingBox": - [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, 3.7833, 5.4083, 3.7833], "words": - [{"text": "150.66", "boundingBox": [5.4083, 3.6167, 5.8694, 3.6167, 5.8694, - 3.7833, 5.4083, 3.7833]}]}, {"text": "D", "boundingBox": [1.0806, 3.8264, - 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931], "words": [{"text": "D", "boundingBox": - [1.0806, 3.8264, 1.1833, 3.8264, 1.1833, 3.9931, 1.0806, 3.9931]}]}, {"text": - "10", "boundingBox": [3.2444, 3.8264, 3.4125, 3.8264, 3.4125, 3.9931, 3.2444, - 3.9931], "words": [{"text": "10", "boundingBox": [3.2444, 3.8264, 3.4125, - 3.8264, 3.4125, 3.9931, 3.2444, 3.9931]}]}, {"text": "120.00", "boundingBox": - [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, 3.9931, 5.4083, 3.9931], "words": - [{"text": "120.00", "boundingBox": [5.4083, 3.8264, 5.8694, 3.8264, 5.8694, - 3.9931, 5.4083, 3.9931]}]}, {"text": "E", "boundingBox": [1.0806, 4.0361, - 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028], "words": [{"text": "E", "boundingBox": - [1.0806, 4.0361, 1.1611, 4.0361, 1.1611, 4.2028, 1.0806, 4.2028]}]}, {"text": - "40", "boundingBox": [3.2444, 4.0361, 3.4125, 4.0361, 3.4125, 4.2028, 3.2444, - 4.2028], "words": [{"text": "40", "boundingBox": [3.2444, 4.0361, 3.4125, - 4.0361, 3.4125, 4.2028, 3.2444, 4.2028]}]}, {"text": "100.00", "boundingBox": - [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, 4.2028, 5.4083, 4.2028], "words": - [{"text": "100.00", "boundingBox": [5.4083, 4.0361, 5.8708, 4.0361, 5.8708, - 4.2028, 5.4083, 4.2028]}]}, {"text": "F", "boundingBox": [1.0806, 4.2458, - 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125], "words": [{"text": "F", "boundingBox": - [1.0806, 4.2458, 1.1569, 4.2458, 1.1569, 4.4125, 1.0806, 4.4125]}]}, {"text": - "60", "boundingBox": [3.2444, 4.2458, 3.4125, 4.2458, 3.4125, 4.4125, 3.2444, - 4.4125], "words": [{"text": "60", "boundingBox": [3.2444, 4.2458, 3.4125, - 4.2458, 3.4125, 4.4125, 3.2444, 4.4125]}]}, {"text": "120.00", "boundingBox": - [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, 4.4125, 5.4083, 4.4125], "words": - [{"text": "120.00", "boundingBox": [5.4083, 4.2458, 5.8694, 4.2458, 5.8694, - 4.4125, 5.4083, 4.4125]}]}, {"text": "G", "boundingBox": [1.0806, 4.4569, - 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236], "words": [{"text": "G", "boundingBox": - [1.0806, 4.4569, 1.1861, 4.4569, 1.1861, 4.6236, 1.0806, 4.6236]}]}, {"text": - "80", "boundingBox": [3.2444, 4.4569, 3.4125, 4.4569, 3.4125, 4.6236, 3.2444, - 4.6236], "words": [{"text": "80", "boundingBox": [3.2444, 4.4569, 3.4125, - 4.4569, 3.4125, 4.6236, 3.2444, 4.6236]}]}, {"text": "220.00", "boundingBox": - [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, 4.6236, 5.4083, 4.6236], "words": - [{"text": "220.00", "boundingBox": [5.4083, 4.4569, 5.8708, 4.4569, 5.8708, - 4.6236, 5.4083, 4.6236]}]}, {"text": "Subtotal:", "boundingBox": [5.5028, - 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, 5.5028, 5.0528], "words": [{"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528]}]}, {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, - 4.8861, 6.7208, 5.0528, 6.1722, 5.0528], "words": [{"text": "3000.00", "boundingBox": - [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, 5.0528, 6.1722, 5.0528]}]}, {"text": - "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, - 5.2736], "words": [{"text": "Tax:", "boundingBox": [5.5028, 5.1069, 5.7917, - 5.1069, 5.7917, 5.2736, 5.5028, 5.2736]}]}, {"text": "300.00", "boundingBox": - [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, 5.2736, 5.8292, 5.2736], "words": - [{"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, 6.2931, - 5.2736, 5.8292, 5.2736]}]}, {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "words": [{"text": "Tip:", - "boundingBox": [5.5028, 5.3264, 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931]}]}, - {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, 6.3472, - 5.4931, 5.7986, 5.4931], "words": [{"text": "1000.00", "boundingBox": [5.7986, - 5.3264, 6.3472, 5.3264, 6.3472, 5.4931, 5.7986, 5.4931]}]}, {"text": "Total:", - "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], - "words": [{"text": "Total:", "boundingBox": [5.5028, 5.5472, 5.9014, 5.5472, - 5.9014, 5.7139, 5.5028, 5.7139]}]}, {"text": "4300.00", "boundingBox": [5.9389, - 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, 5.9389, 5.7139], "words": [{"text": - "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, 6.4875, 5.7139, - 5.9389, 5.7139]}]}, {"text": "Signature:", "boundingBox": [1.0, 6.6431, 1.7083, - 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "words": [{"text": "Signature:", "boundingBox": - [1.0, 6.6431, 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097]}]}, {"text": "____Frodo - Baggins__________", "boundingBox": [1.7472, 6.6431, 3.8833, 6.6431, 3.8833, - 6.8097, 1.7472, 6.8097], "words": [{"text": "____Frodo", "boundingBox": [1.7472, - 6.6431, 2.4833, 6.6431, 2.4833, 6.8097, 1.7472, 6.8097]}, {"text": "Baggins__________", - "boundingBox": [2.5208, 6.6431, 3.8833, 6.6431, 3.8833, 6.8097, 2.5208, 6.8097]}]}]}], - "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": ["#/readResults/0/lines/1/words/0", "#/readResults/0/lines/1/words/1"]}, - "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": ["#/readResults/0/lines/3/words/0", - "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", - "#/readResults/0/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/0/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/0/lines/5/words/0", "#/readResults/0/lines/5/words/1", - "#/readResults/0/lines/5/words/2"]}, "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": ["#/readResults/0/lines/6/words/0", "#/readResults/0/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/0/lines/8/words/0"]}, - "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": ["#/readResults/0/lines/7/words/0", - "#/readResults/0/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": - ["#/readResults/0/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/0/lines/34/words/0"]}, "value": - {"text": "300.00", "boundingBox": [6.1722, 4.8861, 6.6361, 4.8861, 6.6361, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/0/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/0/lines/36/words/0"]}, - "value": {"text": "30.00", "boundingBox": [5.8292, 5.1069, 6.2069, 5.1069, - 6.2069, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/0/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/0/lines/38/words/0"]}, - "value": {"text": "100.00", "boundingBox": [5.7986, 5.3264, 6.2639, 5.3264, - 6.2639, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/0/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/0/lines/40/words/0"]}, - "value": {"text": "430.00", "boundingBox": [5.9389, 5.5472, 6.4028, 5.5472, - 6.4028, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/0/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/0/lines/42/words/0"]}, - "value": {"text": "____Bilbo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8333, 6.6431, 3.8333, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/0/lines/43/words/0", - "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/0/words/0", "#/readResults/0/lines/0/words/1", - "#/readResults/0/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T20:23:14Z", + "lastUpdatedDateTime": "2020-09-14T20:23:26Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11.0, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1226, 2.3778, 1.1226, 2.3778, 1.263, 0.8861, 1.263], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, + 0.8861, 1.2812]}, {"text": "A", "boundingBox": [1.6694, 1.1243, 1.775, 1.1243, + 1.775, 1.2472, 1.6694, 1.2472]}, {"text": "Invoice", "boundingBox": [1.8389, + 1.1215, 2.3778, 1.1215, 2.3778, 1.2486, 1.8389, 1.2486]}]}, {"text": "Invoice + For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, + 1.2122], "words": [{"text": "Invoice", "boundingBox": [6.0208, 1.0656, 6.6361, + 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, {"text": "For:", "boundingBox": + [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, 6.7139, 1.2122]}]}, {"text": + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": "Bilbo Baggins", + "boundingBox": [6.0167, 1.4532, 6.8972, 1.4532, 6.8972, 1.5801, 6.0167, 1.5801], + "words": [{"text": "Bilbo", "boundingBox": [6.0167, 1.4503, 6.3389, 1.4503, + 6.3389, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": [6.3958, + 1.4556, 6.8972, 1.4556, 6.8972, 1.5931, 6.3958, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "1", "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, + 3.3208, 3.3177, 3.2597, 3.3177], "words": [{"text": "1", "boundingBox": [3.2597, + 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, 3.3177]}]}, {"text": "10.99", + "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, 3.3191], + "words": [{"text": "10.99", "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, + 5.7792, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "2", "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, + 3.5309, 3.2542, 3.5309], "words": [{"text": "2", "boundingBox": [3.2542, 3.424, + 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309]}]}, {"text": "14.67", "boundingBox": + [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], "words": [{"text": + "14.67", "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, + 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, + 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742]}]}, {"text": "4", "boundingBox": + [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, 3.7413], "words": + [{"text": "4", "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, + 3.2486, 3.7413]}]}, {"text": "15.66", "boundingBox": [5.4236, 3.634, 5.7792, + 3.634, 5.7792, 3.7424, 5.4236, 3.7424], "words": [{"text": "15.66", "boundingBox": + [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424]}]}, {"text": + "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, + 3.951], "words": [{"text": "D", "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, + 1.175, 3.951, 1.0944, 3.951]}]}, {"text": "1", "boundingBox": [3.2597, 3.8451, + 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951], "words": [{"text": "1", "boundingBox": + [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, 3.951]}]}, {"text": + "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "words": [{"text": "12.00", "boundingBox": [5.4236, 3.8441, 5.7806, + 3.8441, 5.7806, 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, + 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": + "E", "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615]}]}, {"text": "4", "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, + 3.3236, 4.1618, 3.2486, 4.1618], "words": [{"text": "4", "boundingBox": [3.2486, + 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, 4.1618]}]}, {"text": "10.00", + "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, 4.1628], + "words": [{"text": "10.00", "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, + 5.7806, 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, + 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", + "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, + {"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, + 3.2528, 4.3726], "words": [{"text": "6", "boundingBox": [3.2528, 4.2646, 3.3222, + 4.2646, 3.3222, 4.3726, 3.2528, 4.3726]}]}, {"text": "12.00", "boundingBox": + [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, 4.3726], "words": + [{"text": "12.00", "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, + 4.3726, 5.4236, 4.3726]}]}, {"text": "G", "boundingBox": [1.0875, 4.4747, + 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": + [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": + "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "words": [{"text": "8", "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, + 3.3222, 4.5826, 3.2514, 4.5826]}]}, {"text": "22.00", "boundingBox": [5.4181, + 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, 4.5826], "words": [{"text": + "22.00", "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826]}]}, {"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, + 6.125, 5.0132, 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": + [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": + "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, 6.6319, 5.0132, + 6.1792, 5.0132], "words": [{"text": "300.00", "boundingBox": [6.1792, 4.9042, + 6.6319, 4.9042, 6.6319, 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": + [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": + [{"text": "Tax:", "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, + 5.2333, 5.5028, 5.2333]}]}, {"text": "30.00", "boundingBox": [5.8361, 5.1247, + 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333], "words": [{"text": "30.00", + "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, 6.2028, 5.2333, 5.8361, 5.2333]}]}, + {"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, + 5.5028, 5.4809], "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "100.00", "boundingBox": + [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, 5.4535, 5.8111, 5.4535], "words": + [{"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, 6.2583, + 5.4535, 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", + "boundingBox": [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, + {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, 6.3986, + 5.6733, 5.9417, 5.6733], "words": [{"text": "430.00", "boundingBox": [5.9417, + 5.5646, 6.3986, 5.5646, 6.3986, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Bilbo Baggins", "boundingBox": + [1.7472, 6.6564, 3.0389, 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Bilbo", "boundingBox": [1.7472, 6.6552, 2.4278, 6.6552, 2.4278, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.4819, 6.658, + 3.0389, 6.658, 3.0389, 6.7983, 2.4819, 6.7983]}]}]}, {"page": 2, "angle": + 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": []}, {"page": 3, + "angle": 0, "width": 8.5, "height": 11.0, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1226, 2.3736, 1.1226, 2.3736, + 1.2629, 0.8861, 1.2629], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1233, 1.6208, 1.1233, 1.6208, 1.2812, 0.8861, 1.2812]}, {"text": "B", "boundingBox": + [1.6833, 1.1247, 1.7639, 1.1247, 1.7639, 1.2469, 1.6833, 1.2469]}, {"text": + "Invoice", "boundingBox": [1.8333, 1.1215, 2.3736, 1.1215, 2.3736, 1.2486, + 1.8333, 1.2486]}]}, {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, + 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "words": [{"text": "Invoice", + "boundingBox": [6.0208, 1.0656, 6.6361, 1.0656, 6.6361, 1.2122, 6.0208, 1.2122]}, + {"text": "For:", "boundingBox": [6.7139, 1.0691, 7.0361, 1.0691, 7.0361, 1.2122, + 6.7139, 1.2122]}]}, {"text": "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, + 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "words": [{"text": "Address:", "boundingBox": + [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156]}]}, {"text": + "Frodo Baggins", "boundingBox": [6.0167, 1.4533, 6.95, 1.4533, 6.95, 1.5801, + 6.0167, 1.5801], "words": [{"text": "Frodo", "boundingBox": [6.0167, 1.4507, + 6.3903, 1.4507, 6.3903, 1.5649, 6.0167, 1.5649]}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.95, 1.4556, 6.95, 1.5931, 6.45, 1.5931]}]}, {"text": "123 + Hobbit Lane", "boundingBox": [6.0167, 1.6744, 7.1, 1.6744, 7.1, 1.7854, 6.0167, + 1.7854], "words": [{"text": "123", "boundingBox": [6.0167, 1.6771, 6.2431, + 1.6771, 6.2431, 1.7854, 6.0167, 1.7854]}, {"text": "Hobbit", "boundingBox": + [6.3042, 1.6708, 6.7458, 1.6708, 6.7458, 1.7854, 6.3042, 1.7854]}, {"text": + "Lane", "boundingBox": [6.8028, 1.6781, 7.1, 1.6781, 7.1, 1.7854, 6.8028, + 1.7854]}]}, {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "words": [{"text": "567", "boundingBox": + [0.8847, 1.8472, 1.1208, 1.8472, 1.1208, 1.9556, 0.8847, 1.9556]}, {"text": + "Main", "boundingBox": [1.1778, 1.8458, 1.5028, 1.8458, 1.5028, 1.9556, 1.1778, + 1.9556]}, {"text": "St.", "boundingBox": [1.5556, 1.8472, 1.7125, 1.8472, + 1.7125, 1.9556, 1.5556, 1.9556]}]}, {"text": "Redmond, WA", "boundingBox": + [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "words": + [{"text": "Redmond,", "boundingBox": [6.0167, 1.891, 6.6861, 1.891, 6.6861, + 2.0274, 6.0167, 2.0274]}, {"text": "WA", "boundingBox": [6.7417, 1.8983, 6.9792, + 1.8983, 6.9792, 2.0045, 6.7417, 2.0045]}]}, {"text": "Redmond, WA", "boundingBox": + [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "words": + [{"text": "Redmond,", "boundingBox": [0.8917, 2.0611, 1.5597, 2.0611, 1.5597, + 2.1976, 0.8917, 2.1976]}, {"text": "WA", "boundingBox": [1.6153, 2.0681, 1.8542, + 2.0681, 1.8542, 2.1743, 1.6153, 2.1743]}]}, {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "words": + [{"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, 2.1188, + 6.9375, 2.2253, 6.0111, 2.2253]}]}, {"text": "555-555-5555", "boundingBox": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "words": + [{"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, 2.2885, + 1.8111, 2.3955, 0.8847, 2.3955]}]}, {"text": "Item", "boundingBox": [1.0944, + 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, 3.109], "words": [{"text": + "Item", "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109]}]}, {"text": "Quantity", "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, + 3.8361, 3.1372, 3.2528, 3.1372], "words": [{"text": "Quantity", "boundingBox": + [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, 3.1372, 3.2528, 3.1372]}]}, {"text": + "Price", "boundingBox": [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, + 3.109], "words": [{"text": "Price", "boundingBox": [5.4222, 2.9997, 5.7375, + 2.9997, 5.7375, 3.109, 5.4222, 3.109]}]}, {"text": "A", "boundingBox": [1.0833, + 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, 3.3181], "words": [{"text": + "A", "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181]}]}, {"text": "10", "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, + 3.4069, 3.3191, 3.2597, 3.3191], "words": [{"text": "10", "boundingBox": [3.2597, + 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, 3.3191]}]}, {"text": "100.99", + "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, 3.3191], + "words": [{"text": "100.99", "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, + 5.8625, 3.3191, 5.4236, 3.3191]}]}, {"text": "B", "boundingBox": [1.0944, + 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, 3.5309], "words": [{"text": + "B", "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309]}]}, {"text": "20", "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, + 3.5323, 3.2542, 3.5323], "words": [{"text": "20", "boundingBox": [3.2542, + 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323]}]}, {"text": "140.67", + "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "words": [{"text": "140.67", "boundingBox": [5.4236, 3.424, 5.8625, 3.424, + 5.8625, 3.5323, 5.4236, 3.5323]}]}, {"text": "C", "boundingBox": [1.0875, + 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, 3.742], "words": [{"text": + "C", "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742]}]}, {"text": "40", "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, + 3.7424, 3.2486, 3.7424], "words": [{"text": "40", "boundingBox": [3.2486, + 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424]}]}, {"text": "150.66", + "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "words": [{"text": "150.66", "boundingBox": [5.4236, 3.634, 5.8639, 3.634, + 5.8639, 3.7424, 5.4236, 3.7424]}]}, {"text": "D", "boundingBox": [1.0944, + 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], "words": [{"text": "D", + "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951]}]}, + {"text": "10", "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, + 3.2597, 3.9524], "words": [{"text": "10", "boundingBox": [3.2597, 3.8441, + 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, 3.9524]}]}, {"text": "120.00", "boundingBox": + [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, 3.9524], "words": + [{"text": "120.00", "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, + 3.9524, 5.4236, 3.9524]}]}, {"text": "E", "boundingBox": [1.0944, 4.0563, + 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615], "words": [{"text": "E", "boundingBox": + [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, 4.1615]}]}, {"text": + "40", "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "words": [{"text": "40", "boundingBox": [3.2486, 4.0545, 3.4069, + 4.0545, 3.4069, 4.1628, 3.2486, 4.1628]}]}, {"text": "100.00", "boundingBox": + [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, 4.1628], "words": + [{"text": "100.00", "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, + 4.1628, 5.4236, 4.1628]}]}, {"text": "F", "boundingBox": [1.0944, 4.266, 1.15, + 4.266, 1.15, 4.3715, 1.0944, 4.3715], "words": [{"text": "F", "boundingBox": + [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715]}]}, {"text": "60", + "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, 4.3726], + "words": [{"text": "60", "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, + 4.3726, 3.2528, 4.3726]}]}, {"text": "120.00", "boundingBox": [5.4236, 4.2646, + 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726], "words": [{"text": "120.00", + "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, 4.3726]}]}, + {"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, + 1.0875, 4.5826], "words": [{"text": "G", "boundingBox": [1.0875, 4.4747, 1.1736, + 4.4747, 1.1736, 4.5826, 1.0875, 4.5826]}]}, {"text": "80", "boundingBox": + [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, 4.5826], "words": + [{"text": "80", "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, + 3.2514, 4.5826]}]}, {"text": "220.00", "boundingBox": [5.4181, 4.4747, 5.8639, + 4.4747, 5.8639, 4.5826, 5.4181, 4.5826], "words": [{"text": "220.00", "boundingBox": + [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, 4.5826]}]}, {"text": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "words": [{"text": "Subtotal:", "boundingBox": [5.5083, 4.8983, + 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132]}]}, {"text": "3000.00", "boundingBox": + [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, 5.0132, 6.1792, 5.0132], "words": + [{"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132]}]}, {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "words": [{"text": "Tax:", + "boundingBox": [5.5028, 5.1264, 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333]}]}, + {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, 6.2889, + 5.2333, 5.8361, 5.2333], "words": [{"text": "300.00", "boundingBox": [5.8361, + 5.1247, 6.2889, 5.1247, 6.2889, 5.2333, 5.8361, 5.2333]}]}, {"text": "Tip:", + "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], + "words": [{"text": "Tip:", "boundingBox": [5.5028, 5.3413, 5.7514, 5.3413, + 5.7514, 5.4809, 5.5028, 5.4809]}]}, {"text": "1000.00", "boundingBox": [5.8111, + 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, 5.8111, 5.4535], "words": [{"text": + "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, 6.3417, 5.4535, + 5.8111, 5.4535]}]}, {"text": "Total:", "boundingBox": [5.5028, 5.5583, 5.8917, + 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "words": [{"text": "Total:", "boundingBox": + [5.5028, 5.5583, 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733]}]}, {"text": + "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, 6.4833, 5.6733, + 5.9417, 5.6733], "words": [{"text": "4300.00", "boundingBox": [5.9417, 5.5646, + 6.4833, 5.5646, 6.4833, 5.6733, 5.9417, 5.6733]}]}, {"text": "Signature:", + "boundingBox": [1.0056, 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], + "words": [{"text": "Signature:", "boundingBox": [1.0056, 6.658, 1.6986, 6.658, + 1.6986, 6.7983, 1.0056, 6.7983]}]}, {"text": "____Frodo Baggins", "boundingBox": + [1.7472, 6.6566, 3.0889, 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "words": + [{"text": "____Frodo", "boundingBox": [1.7472, 6.6556, 2.4778, 6.6556, 2.4778, + 6.7983, 1.7472, 6.7983]}, {"text": "Baggins", "boundingBox": [2.5319, 6.658, + 3.0889, 6.658, 3.0889, 6.7983, 2.5319, 6.7983]}]}]}], "pageResults": [{"page": + 1, "keyValuePairs": [{"key": {"text": "Invoice For:", "boundingBox": [6.0208, + 1.0668, 7.0361, 1.0668, 7.0361, 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/0/lines/1/words/0", + "#/readResults/0/lines/1/words/1"]}, "value": {"text": "Bilbo Baggins 123 + Hobbit Lane", "boundingBox": [6.0167, 1.4532, 7.1, 1.4532, 7.1, 1.7854, 6.0167, + 1.7854], "elements": ["#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", + "#/readResults/0/lines/4/words/0", "#/readResults/0/lines/4/words/1", "#/readResults/0/lines/4/words/2"]}, + "confidence": 1.0}, {"key": {"text": "Address:", "boundingBox": [0.8792, 1.4826, + 1.5653, 1.4826, 1.5653, 1.6156, 0.8792, 1.6156], "elements": ["#/readResults/0/lines/2/words/0"]}, + "value": {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, + 1.8467, 1.7125, 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/0/lines/5/words/0", + "#/readResults/0/lines/5/words/1", "#/readResults/0/lines/5/words/2"]}, "confidence": + 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, + 1.8923, 6.9792, 2.0233, 6.0167, 2.0233], "elements": ["#/readResults/0/lines/6/words/0", + "#/readResults/0/lines/6/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": + [6.0111, 2.1188, 6.9375, 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": + ["#/readResults/0/lines/8/words/0"]}, "confidence": 1.0}, {"key": {"text": + "Redmond, WA", "boundingBox": [0.8917, 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, + 0.8917, 2.1918], "elements": ["#/readResults/0/lines/7/words/0", "#/readResults/0/lines/7/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [0.8847, 2.2885, 1.8111, + 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/0/lines/9/words/0"]}, + "confidence": 0.29}, {"key": {"text": "Subtotal:", "boundingBox": [5.5083, + 4.8983, 6.125, 4.8983, 6.125, 5.0132, 5.5083, 5.0132], "elements": ["#/readResults/0/lines/34/words/0"]}, + "value": {"text": "300.00", "boundingBox": [6.1792, 4.9042, 6.6319, 4.9042, + 6.6319, 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/0/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/0/lines/36/words/0"]}, + "value": {"text": "30.00", "boundingBox": [5.8361, 5.1247, 6.2028, 5.1247, + 6.2028, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/0/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/0/lines/38/words/0"]}, + "value": {"text": "100.00", "boundingBox": [5.8111, 5.3444, 6.2583, 5.3444, + 6.2583, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/0/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/0/lines/40/words/0"]}, + "value": {"text": "430.00", "boundingBox": [5.9417, 5.5646, 6.3986, 5.5646, + 6.3986, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/0/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/0/lines/42/words/0"]}, + "value": {"text": "____Bilbo Baggins", "boundingBox": [1.7472, 6.6564, 3.0389, + 6.6564, 3.0389, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/0/lines/43/words/0", + "#/readResults/0/lines/43/words/1"]}, "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": ["#/readResults/0/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/10/words/0"], "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": - ["#/readResults/0/lines/11/words/0"], "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": ["#/readResults/0/lines/12/words/0"], "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": ["#/readResults/0/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/0/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/13/words/0"], "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": ["#/readResults/0/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2115, 3.3208, 3.2115, 3.3208, 3.3177, 3.2597, + 3.3177], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/14/words/0"], "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": ["#/readResults/0/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.7792, 3.2108, 5.7792, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/15/words/0"], "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": ["#/readResults/0/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/16/words/0"], "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": ["#/readResults/0/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.3194, 3.424, 3.3194, 3.5309, 3.2542, 3.5309], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/17/words/0"], "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": ["#/readResults/0/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.7792, 3.424, 5.7792, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/18/words/0"], "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": ["#/readResults/0/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/19/words/0"], "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": ["#/readResults/0/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.6351, 3.3236, 3.6351, 3.3236, 3.7413, 3.2486, + 3.7413], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/20/words/0"], "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": ["#/readResults/0/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.7792, 3.634, 5.7792, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/21/words/0"], "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": ["#/readResults/0/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/22/words/0"], "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": ["#/readResults/0/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8451, 3.3208, 3.8451, 3.3208, 3.951, 3.2597, + 3.951], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/23/words/0"], "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": ["#/readResults/0/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.7806, 3.8441, 5.7806, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/24/words/0"], "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": ["#/readResults/0/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/25/words/0"], "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": ["#/readResults/0/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0556, 3.3236, 4.0556, 3.3236, 4.1618, 3.2486, + 4.1618], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/26/words/0"], "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": ["#/readResults/0/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.7806, 4.0545, 5.7806, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/27/words/0"], "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": ["#/readResults/0/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/28/words/0"], "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": ["#/readResults/0/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.3222, 4.2646, 3.3222, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/29/words/0"], "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": ["#/readResults/0/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.7806, 4.2646, 5.7806, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/30/words/0"], "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": ["#/readResults/0/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/31/words/0"], "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": ["#/readResults/0/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.3222, 4.4747, 3.3222, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/32/words/0"], "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": ["#/readResults/0/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.7806, 4.4747, 5.7806, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/0/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}, {"page": 2, "keyValuePairs": [], "tables": [], "clusterId": null}, {"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": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, - "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": ["#/readResults/2/lines/3/words/0", + {"text": "Invoice For:", "boundingBox": [6.0208, 1.0668, 7.0361, 1.0668, 7.0361, + 1.2122, 6.0208, 1.2122], "elements": ["#/readResults/2/lines/1/words/0", "#/readResults/2/lines/1/words/1"]}, + "value": {"text": "Frodo Baggins 123 Hobbit Lane", "boundingBox": [6.0167, + 1.4533, 7.1, 1.4533, 7.1, 1.7854, 6.0167, 1.7854], "elements": ["#/readResults/2/lines/3/words/0", "#/readResults/2/lines/3/words/1", "#/readResults/2/lines/4/words/0", "#/readResults/2/lines/4/words/1", "#/readResults/2/lines/4/words/2"]}, "confidence": 1.0}, {"key": {"text": - "Address:", "boundingBox": [0.8764, 1.4681, 1.5778, 1.4681, 1.5778, 1.6625, - 0.8764, 1.6625], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": - {"text": "567 Main St.", "boundingBox": [0.8764, 1.8292, 1.725, 1.8292, 1.725, - 1.9958, 0.8764, 1.9958], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", + "Address:", "boundingBox": [0.8792, 1.4826, 1.5653, 1.4826, 1.5653, 1.6156, + 0.8792, 1.6156], "elements": ["#/readResults/2/lines/2/words/0"]}, "value": + {"text": "567 Main St.", "boundingBox": [0.8847, 1.8467, 1.7125, 1.8467, 1.7125, + 1.9556, 0.8847, 1.9556], "elements": ["#/readResults/2/lines/5/words/0", "#/readResults/2/lines/5/words/1", "#/readResults/2/lines/5/words/2"]}, "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": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, - "value": {"text": "555-555-5555", "boundingBox": [6.0028, 2.0986, 6.9472, - 2.0986, 6.9472, 2.2653, 6.0028, 2.2653], "elements": ["#/readResults/2/lines/8/words/0"]}, - "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": ["#/readResults/2/lines/7/words/0", + "Redmond, WA", "boundingBox": [6.0167, 1.8923, 6.9792, 1.8923, 6.9792, 2.0233, + 6.0167, 2.0233], "elements": ["#/readResults/2/lines/6/words/0", "#/readResults/2/lines/6/words/1"]}, + "value": {"text": "555-555-5555", "boundingBox": [6.0111, 2.1188, 6.9375, + 2.1188, 6.9375, 2.2253, 6.0111, 2.2253], "elements": ["#/readResults/2/lines/8/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Redmond, WA", "boundingBox": [0.8917, + 2.0628, 1.8542, 2.0628, 1.8542, 2.1918, 0.8917, 2.1918], "elements": ["#/readResults/2/lines/7/words/0", "#/readResults/2/lines/7/words/1"]}, "value": {"text": "555-555-5555", "boundingBox": - [0.8764, 2.2694, 1.8222, 2.2694, 1.8222, 2.4361, 0.8764, 2.4361], "elements": + [0.8847, 2.2885, 1.8111, 2.2885, 1.8111, 2.3955, 0.8847, 2.3955], "elements": ["#/readResults/2/lines/9/words/0"]}, "confidence": 0.29}, {"key": {"text": - "Subtotal:", "boundingBox": [5.5028, 4.8861, 6.1347, 4.8861, 6.1347, 5.0528, - 5.5028, 5.0528], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": - {"text": "3000.00", "boundingBox": [6.1722, 4.8861, 6.7208, 4.8861, 6.7208, - 5.0528, 6.1722, 5.0528], "elements": ["#/readResults/2/lines/35/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1069, - 5.7917, 5.1069, 5.7917, 5.2736, 5.5028, 5.2736], "elements": ["#/readResults/2/lines/36/words/0"]}, - "value": {"text": "300.00", "boundingBox": [5.8292, 5.1069, 6.2931, 5.1069, - 6.2931, 5.2736, 5.8292, 5.2736], "elements": ["#/readResults/2/lines/37/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3264, - 5.7611, 5.3264, 5.7611, 5.4931, 5.5028, 5.4931], "elements": ["#/readResults/2/lines/38/words/0"]}, - "value": {"text": "1000.00", "boundingBox": [5.7986, 5.3264, 6.3472, 5.3264, - 6.3472, 5.4931, 5.7986, 5.4931], "elements": ["#/readResults/2/lines/39/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5472, - 5.9014, 5.5472, 5.9014, 5.7139, 5.5028, 5.7139], "elements": ["#/readResults/2/lines/40/words/0"]}, - "value": {"text": "4300.00", "boundingBox": [5.9389, 5.5472, 6.4875, 5.5472, - 6.4875, 5.7139, 5.9389, 5.7139], "elements": ["#/readResults/2/lines/41/words/0"]}, - "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0, 6.6431, - 1.7083, 6.6431, 1.7083, 6.8097, 1.0, 6.8097], "elements": ["#/readResults/2/lines/42/words/0"]}, - "value": {"text": "____Frodo Baggins__________", "boundingBox": [1.7472, 6.6431, - 3.8833, 6.6431, 3.8833, 6.8097, 1.7472, 6.8097], "elements": ["#/readResults/2/lines/43/words/0", - "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/0/words/0", "#/readResults/2/lines/0/words/1", - "#/readResults/2/lines/0/words/2"]}, "confidence": 1.0}], "tables": [{"rows": + "Subtotal:", "boundingBox": [5.5083, 4.8983, 6.125, 4.8983, 6.125, 5.0132, + 5.5083, 5.0132], "elements": ["#/readResults/2/lines/34/words/0"]}, "value": + {"text": "3000.00", "boundingBox": [6.1792, 4.9042, 6.7167, 4.9042, 6.7167, + 5.0132, 6.1792, 5.0132], "elements": ["#/readResults/2/lines/35/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tax:", "boundingBox": [5.5028, 5.1264, + 5.7806, 5.1264, 5.7806, 5.2333, 5.5028, 5.2333], "elements": ["#/readResults/2/lines/36/words/0"]}, + "value": {"text": "300.00", "boundingBox": [5.8361, 5.1247, 6.2889, 5.1247, + 6.2889, 5.2333, 5.8361, 5.2333], "elements": ["#/readResults/2/lines/37/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Tip:", "boundingBox": [5.5028, 5.3413, + 5.7514, 5.3413, 5.7514, 5.4809, 5.5028, 5.4809], "elements": ["#/readResults/2/lines/38/words/0"]}, + "value": {"text": "1000.00", "boundingBox": [5.8111, 5.3444, 6.3417, 5.3444, + 6.3417, 5.4535, 5.8111, 5.4535], "elements": ["#/readResults/2/lines/39/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Total:", "boundingBox": [5.5028, 5.5583, + 5.8917, 5.5583, 5.8917, 5.6733, 5.5028, 5.6733], "elements": ["#/readResults/2/lines/40/words/0"]}, + "value": {"text": "4300.00", "boundingBox": [5.9417, 5.5646, 6.4833, 5.5646, + 6.4833, 5.6733, 5.9417, 5.6733], "elements": ["#/readResults/2/lines/41/words/0"]}, + "confidence": 1.0}, {"key": {"text": "Signature:", "boundingBox": [1.0056, + 6.658, 1.6986, 6.658, 1.6986, 6.7983, 1.0056, 6.7983], "elements": ["#/readResults/2/lines/42/words/0"]}, + "value": {"text": "____Frodo Baggins", "boundingBox": [1.7472, 6.6566, 3.0889, + 6.6566, 3.0889, 6.7983, 1.7472, 6.7983], "elements": ["#/readResults/2/lines/43/words/0", + "#/readResults/2/lines/43/words/1"]}, "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": ["#/readResults/2/lines/10/words/0"], + 0, "boundingBox": [1.0944, 3.0017, 1.3847, 3.0017, 1.3847, 3.109, 1.0944, + 3.109], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/10/words/0"], "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": - ["#/readResults/2/lines/11/words/0"], "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": ["#/readResults/2/lines/12/words/0"], "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": ["#/readResults/2/lines/13/words/0"], + "columnIndex": 1, "boundingBox": [3.2528, 2.9997, 3.8361, 2.9997, 3.8361, + 3.1372, 3.2528, 3.1372], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, + "elements": ["#/readResults/2/lines/11/words/0"], "isHeader": true, "isFooter": + false}, {"text": "Price", "rowIndex": 0, "columnIndex": 2, "boundingBox": + [5.4222, 2.9997, 5.7375, 2.9997, 5.7375, 3.109, 5.4222, 3.109], "confidence": + 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/12/words/0"], + "isHeader": true, "isFooter": false}, {"text": "A", "rowIndex": 1, "columnIndex": + 0, "boundingBox": [1.0833, 3.2118, 1.1736, 3.2118, 1.1736, 3.3181, 1.0833, + 3.3181], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/13/words/0"], "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": ["#/readResults/2/lines/14/words/0"], + 1, "boundingBox": [3.2597, 3.2108, 3.4069, 3.2108, 3.4069, 3.3191, 3.2597, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/14/words/0"], "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": ["#/readResults/2/lines/15/words/0"], + 2, "boundingBox": [5.4236, 3.2108, 5.8625, 3.2108, 5.8625, 3.3191, 5.4236, + 3.3191], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/15/words/0"], "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": ["#/readResults/2/lines/16/words/0"], + 0, "boundingBox": [1.0944, 3.4257, 1.1639, 3.4257, 1.1639, 3.5309, 1.0944, + 3.5309], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/16/words/0"], "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": ["#/readResults/2/lines/17/words/0"], + 1, "boundingBox": [3.2542, 3.424, 3.4069, 3.424, 3.4069, 3.5323, 3.2542, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/17/words/0"], "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": ["#/readResults/2/lines/18/words/0"], + 2, "boundingBox": [5.4236, 3.424, 5.8625, 3.424, 5.8625, 3.5323, 5.4236, 3.5323], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/18/words/0"], "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": ["#/readResults/2/lines/19/words/0"], + 0, "boundingBox": [1.0875, 3.6344, 1.1639, 3.6344, 1.1639, 3.742, 1.0875, + 3.742], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/19/words/0"], "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": ["#/readResults/2/lines/20/words/0"], + 1, "boundingBox": [3.2486, 3.634, 3.4069, 3.634, 3.4069, 3.7424, 3.2486, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/20/words/0"], "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": ["#/readResults/2/lines/21/words/0"], + 2, "boundingBox": [5.4236, 3.634, 5.8639, 3.634, 5.8639, 3.7424, 5.4236, 3.7424], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/21/words/0"], "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": ["#/readResults/2/lines/22/words/0"], + 0, "boundingBox": [1.0944, 3.8455, 1.175, 3.8455, 1.175, 3.951, 1.0944, 3.951], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/22/words/0"], "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": ["#/readResults/2/lines/23/words/0"], + 1, "boundingBox": [3.2597, 3.8441, 3.4069, 3.8441, 3.4069, 3.9524, 3.2597, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/23/words/0"], "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": ["#/readResults/2/lines/24/words/0"], + 2, "boundingBox": [5.4236, 3.8441, 5.8639, 3.8441, 5.8639, 3.9524, 5.4236, + 3.9524], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/24/words/0"], "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": ["#/readResults/2/lines/25/words/0"], + 0, "boundingBox": [1.0944, 4.0563, 1.1528, 4.0563, 1.1528, 4.1615, 1.0944, + 4.1615], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/25/words/0"], "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": ["#/readResults/2/lines/26/words/0"], + 1, "boundingBox": [3.2486, 4.0545, 3.4069, 4.0545, 3.4069, 4.1628, 3.2486, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/26/words/0"], "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": ["#/readResults/2/lines/27/words/0"], + 2, "boundingBox": [5.4236, 4.0545, 5.8639, 4.0545, 5.8639, 4.1628, 5.4236, + 4.1628], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/27/words/0"], "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": ["#/readResults/2/lines/28/words/0"], + 0, "boundingBox": [1.0944, 4.266, 1.15, 4.266, 1.15, 4.3715, 1.0944, 4.3715], + "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/28/words/0"], "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": ["#/readResults/2/lines/29/words/0"], + 1, "boundingBox": [3.2528, 4.2646, 3.4069, 4.2646, 3.4069, 4.3726, 3.2528, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/29/words/0"], "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": ["#/readResults/2/lines/30/words/0"], + 2, "boundingBox": [5.4236, 4.2646, 5.8639, 4.2646, 5.8639, 4.3726, 5.4236, + 4.3726], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/30/words/0"], "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": ["#/readResults/2/lines/31/words/0"], + 0, "boundingBox": [1.0875, 4.4747, 1.1736, 4.4747, 1.1736, 4.5826, 1.0875, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/31/words/0"], "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": ["#/readResults/2/lines/32/words/0"], + 1, "boundingBox": [3.2514, 4.4747, 3.4069, 4.4747, 3.4069, 4.5826, 3.2514, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/32/words/0"], "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": ["#/readResults/2/lines/33/words/0"], + 2, "boundingBox": [5.4181, 4.4747, 5.8639, 4.4747, 5.8639, 4.5826, 5.4181, + 4.5826], "confidence": 1.0, "rowSpan": 1, "columnSpan": 1, "elements": ["#/readResults/2/lines/33/words/0"], "isHeader": false, "isFooter": false}]}], "clusterId": 0}], "documentResults": [], "errors": []}}' headers: - apim-request-id: 84a9aa83-029d-4044-a8de-c85c5caf784d - content-length: '42016' + apim-request-id: b75eab69-fb1e-43f0-9810-4eccdd03f875 + content-length: '41192' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:15 GMT + date: Mon, 14 Sep 2020 20:23:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '57' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/5effb484-6d5e-4a33-b547-dc025a4f352d/analyzeresults/30b2a54a-3d43-4453-8f53-294b5beb5145 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/bff2e923-3008-48f5-8a8b-496a4ffdb77c/analyzeresults/6f134c98-49d9-46e8-9605-8d700a4645cd version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml index 7f423d18e120..9ecd5f6d95ae 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_pass_stream_into_url.yaml @@ -2,22 +2,24 @@ interactions: - request: body: 'b''{"source": "<_io.BufferedReader name=\''C:\\\\\\\\Users\\\\\\\\krpratic\\\\\\\\azure-sdk-for-python\\\\\\\\sdk\\\\\\\\formrecognizer\\\\\\\\azure-ai-formrecognizer\\\\\\\\tests\\\\\\\\conftest.py\''>"}''' headers: + Accept: + - application/json Content-Length: - '165' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xxx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xxx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xxx"}}' headers: - apim-request-id: 6d98750f-da04-4259-8af8-192f3fdbe7b9 + apim-request-id: a1d82763-bd07-4731-8c6c-79a0197f7eeb content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:15 GMT + date: Mon, 14 Sep 2020 20:23:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -25,5 +27,5 @@ interactions: status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xxx/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/xxx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml index 9004a7173c5c..e47a3bda2159 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_passing_bad_url.yaml @@ -2,28 +2,30 @@ interactions: - request: body: 'b''{"source": "https://badurl.jpg"}''' headers: + Accept: + - application/json Content-Length: - '32' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "1001", "message": "Specified model not found or not ready, Model Id: xx"}}' headers: - apim-request-id: b37dfab7-16c5-47a0-8a0b-dfcb46a5f97c + apim-request-id: 791277ea-fca7-4f51-b80d-5acad032b665 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:17 GMT + date: Mon, 14 Sep 2020 20:22:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '793' + x-envoy-upstream-service-time: '15' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml index 57189c79f199..3c4328d0605c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_custom_forms_from_url_async.test_url_authentication_bad_key.yaml @@ -2,29 +2,26 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/Form_1.jpg"}''' headers: + Accept: + - application/json Content-Length: - '160' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: be03547c-5098-42d5-93bc-8653838ed73a - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:50:17 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 20:23:29 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx/analyze?includeTextDetails=false + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/xx/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml index e31031494ab5..3f0e3ef7b0af 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties.yaml @@ -9,19 +9,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: - string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:18Z"}}' + string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-09-14T20:25:31Z"}}' headers: apim-request-id: - - 35ae0452-248b-427f-9f8b-32cdb174985e + - 95ed86c7-1e54-4fce-89cf-bc91ec234bde content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:18 GMT + - Mon, 14 Sep 2020 20:25:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml index 5af62571622a..1bb4270f0423 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_account_properties_auth_bad_key.yaml @@ -9,30 +9,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 87b82b99-4f67-4526-a27d-b6d6d7c10ac5 content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:50:18 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 20:25:13 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml index 5334b73e7575..0066d9b8a984 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_delete_model_auth_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -11,30 +11,20 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - fa1dac62-bd27-44ca-a8af-d8bb85e8400f content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:50:18 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 20:25:32 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml index c3f1bed5bf41..330e71598e50 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_form_recognizer_client.yaml @@ -9,19 +9,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: - string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:20Z"}}' + string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-09-14T22:45:15Z"}}' headers: apim-request-id: - - a7f65ef4-b059-4655-90d3-386decb30920 + - 7796979d-fbc8-4e79-bb37-eb407e91c975 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:19 GMT + - Mon, 14 Sep 2020 22:45:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -29,7 +29,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '676' + - '13' status: code: 200 message: OK @@ -37,7 +37,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -47,27 +47,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - c04503eb-f1bc-42bf-9cc7-06102ec9df7a + - 1d980559-1916-48b7-bf52-13e81d19a946 content-length: - '0' date: - - Fri, 10 Jul 2020 18:50:21 GMT + - Mon, 14 Sep 2020 22:45:14 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c04503eb-f1bc-42bf-9cc7-06102ec9df7a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/1d980559-1916-48b7-bf52-13e81d19a946 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '469' + - '128' status: code: 202 message: Accepted @@ -81,68 +81,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c04503eb-f1bc-42bf-9cc7-06102ec9df7a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/1d980559-1916-48b7-bf52-13e81d19a946 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:50:20Z", - "lastUpdatedDateTime": "2020-07-10T18:50:23Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:45:15Z", + "lastUpdatedDateTime": "2020-09-14T22:45:17Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 44fcc890-2ff7-4b2c-a971-a4a88a1aed18 + - 23db90e0-9550-4875-bdaf-bc5c279ba21b + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:25 GMT + - Mon, 14 Sep 2020 22:45:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '22' + - '28' status: code: 200 message: OK @@ -156,19 +155,19 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: - string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:26Z"}}' + string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-09-14T22:45:21Z"}}' headers: apim-request-id: - - d80e160a-828d-4126-9537-1e827aa8a882 + - 7af0d3d9-d6c2-4d78-a738-9fde5623fa0c content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:25 GMT + - Mon, 14 Sep 2020 22:45:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml index 1d649b057475..1a4b60dff5e8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_get_model_auth_bad_key.yaml @@ -9,30 +9,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx?includeKeys=true response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 4c77cad2-856d-43bd-9788-21cadfd63a87 content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:50:25 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 20:25:13 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml index 0d401dfe86bf..a86ea6754715 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_list_model_auth_bad_key.yaml @@ -9,30 +9,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=full response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 0ace0a50-0336-4be7-8f68-43dbd9c5cad2 content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:50:27 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 20:25:14 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml index 634d242106d6..f58b26f3fd4b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_labeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 8635fa6d-8a3c-4d89-979f-bc68b544a68b + - e68b5cad-7f46-4ea0-80bf-c057b55ad043 content-length: - '0' date: - - Fri, 10 Jul 2020 18:50:27 GMT + - Mon, 14 Sep 2020 20:25:14 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/96fa37b6-4801-4bb5-b192-508cd52e2f68 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '44' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/96fa37b6-4801-4bb5-b192-508cd52e2f68?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4fb359e4-f198-40f2-b418-35732e3a9387", "status": - "ready", "createdDateTime": "2020-07-10T18:50:27Z", "lastUpdatedDateTime": - "2020-07-10T18:50:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "96fa37b6-4801-4bb5-b192-508cd52e2f68", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:25:15Z", + "lastUpdatedDateTime": "2020-09-14T20:25:17Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 83acaa35-8868-4de3-a921-fe5dd6d194f3 + - ef26c252-0e3c-4813-a6ab-f8a043d896af content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:32 GMT + - Mon, 14 Sep 2020 20:25:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '55' status: code: 200 message: OK @@ -98,35 +98,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/96fa37b6-4801-4bb5-b192-508cd52e2f68?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "4fb359e4-f198-40f2-b418-35732e3a9387", "status": - "ready", "createdDateTime": "2020-07-10T18:50:27Z", "lastUpdatedDateTime": - "2020-07-10T18:50:30Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "96fa37b6-4801-4bb5-b192-508cd52e2f68", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:25:15Z", + "lastUpdatedDateTime": "2020-09-14T20:25:17Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 94910fb7-2afa-4b33-b6e5-8810fd3e7791 + - 27c02817-3baa-400a-9359-dedd4e5ceaff content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:33 GMT + - Mon, 14 Sep 2020 20:25:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -134,7 +134,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '16' status: code: 200 message: OK @@ -148,55 +148,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", - "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": - "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", - "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", - "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": - "2020-07-10T18:42:30Z"}, {"modelId": "4fb359e4-f198-40f2-b418-35732e3a9387", - "status": "ready", "createdDateTime": "2020-07-10T18:50:27Z", "lastUpdatedDateTime": - "2020-07-10T18:50:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", - "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:57Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", - "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": - "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", - "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": - "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", - "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": - "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", - "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:22Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", - "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", - "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", - "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": - "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", - "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": - "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", - "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", - "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": - "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", - "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": - "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", - "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": - "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", - "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:40Z"}], "nextLink": ""}' + string: '{"modelList": [{"modelId": "96fa37b6-4801-4bb5-b192-508cd52e2f68", + "attributes": {"isComposed": false}, "status": "ready", "createdDateTime": + "2020-09-14T20:25:15Z", "lastUpdatedDateTime": "2020-09-14T20:25:17Z"}], "nextLink": + ""}' headers: apim-request-id: - - e96c0ab6-8468-4fb8-98cf-a4808ab55a65 + - 85374e17-8124-42e1-ac1d-2a75b443c156 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:33 GMT + - Mon, 14 Sep 2020 20:25:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -204,7 +171,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '124' + - '64' status: code: 200 message: OK @@ -212,7 +179,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -220,25 +187,25 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/96fa37b6-4801-4bb5-b192-508cd52e2f68 response: body: string: '' headers: apim-request-id: - - 90764e92-baa5-48e1-bc55-4b4a970b49d3 + - 547b6cfc-7a00-42a2-8383-efc31a288d91 content-length: - '0' date: - - Fri, 10 Jul 2020 18:50:33 GMT + - Mon, 14 Sep 2020 20:25:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '24' status: code: 204 message: No Content @@ -252,20 +219,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/4fb359e4-f198-40f2-b418-35732e3a9387?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/96fa37b6-4801-4bb5-b192-508cd52e2f68?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=4fb359e4-f198-40f2-b418-35732e3a9387'' + string: '{"error": {"code": "1022", "message": "Model with ''id=96fa37b6-4801-4bb5-b192-508cd52e2f68'' not found."}}' headers: apim-request-id: - - 1f7aec17-78a6-450f-87ae-70f42954a272 + - 34b5916d-afd7-4ae3-8a63-ecfc6cc08a86 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:33 GMT + - Mon, 14 Sep 2020 20:25:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -273,7 +240,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '11' + - '39' status: code: 404 message: Not Found diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml index 45854f86dbfb..3be0c2f5de99 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt.test_mgmt_model_unlabeled.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - f7b298be-1b93-4f11-8941-8295a9291f6c + - 2f9a0ff1-f8d4-4c1e-9dfe-1d070fe018de content-length: - '0' date: - - Fri, 10 Jul 2020 18:50:34 GMT + - Mon, 14 Sep 2020 20:25:14 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '93' + - '37' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": - "creating", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": - "2020-07-10T18:50:34Z"}}' + string: '{"modelInfo": {"modelId": "472e8f5f-a3dc-4782-9b4d-591c95b8f4bf", "status": + "creating", "createdDateTime": "2020-09-14T20:25:15Z", "lastUpdatedDateTime": + "2020-09-14T20:25:15Z"}}' headers: apim-request-id: - - f92b9a3d-082b-4052-af20-00c267be8993 + - 6f72ee15-7858-4f6b-8591-c570c4b1e3d9 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:39 GMT + - Mon, 14 Sep 2020 20:25:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '16' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": - "creating", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": - "2020-07-10T18:50:34Z"}}' + string: '{"modelInfo": {"modelId": "472e8f5f-a3dc-4782-9b4d-591c95b8f4bf", "status": + "creating", "createdDateTime": "2020-09-14T20:25:15Z", "lastUpdatedDateTime": + "2020-09-14T20:25:15Z"}}' headers: apim-request-id: - - 36ad0298-b499-4af4-9512-50a6a6ad5e45 + - 1e11ec63-7761-4494-acd9-6838b8a2c79c content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:44 GMT + - Mon, 14 Sep 2020 20:25:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '34' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": - "ready", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": - "2020-07-10T18:50:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "472e8f5f-a3dc-4782-9b4d-591c95b8f4bf", "status": + "ready", "createdDateTime": "2020-09-14T20:25:15Z", "lastUpdatedDateTime": + "2020-09-14T20:25:28Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - bec9b5ce-ff46-4ff0-b38e-70f329e3d3ff + - 22a25251-e358-4e83-8472-214ebb767f72 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:49 GMT + - Mon, 14 Sep 2020 20:25:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '18' status: code: 200 message: OK @@ -166,31 +166,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", "status": - "ready", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": - "2020-07-10T18:50:44Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "472e8f5f-a3dc-4782-9b4d-591c95b8f4bf", "status": + "ready", "createdDateTime": "2020-09-14T20:25:15Z", "lastUpdatedDateTime": + "2020-09-14T20:25:28Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 595c4a78-55d8-4042-a0a7-81589c13d4c1 + - 6927367d-41ee-4010-865e-8c1628c3ebbd content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:49 GMT + - Mon, 14 Sep 2020 20:25:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -198,7 +198,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '17' status: code: 200 message: OK @@ -212,55 +212,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", - "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": - "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", - "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", - "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": - "2020-07-10T18:42:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", - "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:57Z"}, {"modelId": "61f7dfc5-3f79-458b-82fb-8c89becfab64", - "status": "ready", "createdDateTime": "2020-07-10T18:50:34Z", "lastUpdatedDateTime": - "2020-07-10T18:50:44Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", - "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": - "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", - "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": - "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", - "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": - "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", - "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:22Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", - "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", - "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", - "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": - "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", - "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": - "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", - "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", - "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": - "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", - "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": - "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", - "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": - "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", - "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:40Z"}], "nextLink": ""}' + string: '{"modelList": [{"modelId": "472e8f5f-a3dc-4782-9b4d-591c95b8f4bf", + "status": "ready", "createdDateTime": "2020-09-14T20:25:15Z", "lastUpdatedDateTime": + "2020-09-14T20:25:28Z"}], "nextLink": ""}' headers: apim-request-id: - - b3346619-ee83-4589-a521-c5d05c45e670 + - 4cee8544-540a-495e-a107-82146929b5ac content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:51 GMT + - Mon, 14 Sep 2020 20:25:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -268,7 +234,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '930' + - '17' status: code: 200 message: OK @@ -276,7 +242,7 @@ interactions: body: null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -284,25 +250,25 @@ interactions: Content-Length: - '0' User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf response: body: string: '' headers: apim-request-id: - - 04660eb4-2746-4295-8100-67253cbb23f5 + - 12c97c85-0878-4665-80ea-2d088bb4600d content-length: - '0' date: - - Fri, 10 Jul 2020 18:50:51 GMT + - Mon, 14 Sep 2020 20:25:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '19' status: code: 204 message: No Content @@ -316,20 +282,20 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/61f7dfc5-3f79-458b-82fb-8c89becfab64?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/472e8f5f-a3dc-4782-9b4d-591c95b8f4bf?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=61f7dfc5-3f79-458b-82fb-8c89becfab64'' + string: '{"error": {"code": "1022", "message": "Model with ''id=472e8f5f-a3dc-4782-9b4d-591c95b8f4bf'' not found."}}' headers: apim-request-id: - - 297b41f4-180d-456e-b8e4-2ccc533be6c2 + - 25b55f71-6eee-40e6-acf9-321083bbc268 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:50:51 GMT + - Mon, 14 Sep 2020 20:25:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -337,7 +303,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '10' + - '14' status: code: 404 message: Not Found diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml index 0f31da85a5c6..fe56f0d1ebcb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties.yaml @@ -5,22 +5,22 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: - string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:53Z"}}' + string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-09-14T20:39:07Z"}}' headers: - apim-request-id: bb94077a-6c46-4402-8139-6b258beb1df6 + apim-request-id: a0ded7c0-98d8-420d-ae4a-cd726b069fb5 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:53 GMT + date: Mon, 14 Sep 2020 20:39:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '46' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=summary version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml index fd150b18653f..ee66cfcc6712 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_account_properties_auth_bad_key.yaml @@ -5,24 +5,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: da1a6c76-6c1d-49bc-837c-50022da0cf64 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:50:54 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 20:39:03 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=summary version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml index 025d2e658bac..6d78dd4310a9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_delete_model_auth_bad_key.yaml @@ -2,25 +2,22 @@ interactions: - request: body: null headers: + Accept: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 24f2da35-9f11-439c-8d35-3dc4606758a3 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:50:55 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 20:39:06 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/xx version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml index c4c94edbe82f..b426e3aa8ef4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_form_recognizer_client.yaml @@ -5,72 +5,74 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: - string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:56Z"}}' + string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-09-14T22:45:50Z"}}' headers: - apim-request-id: 3c7cd68e-bc28-4e48-9ae1-3b685173c503 + apim-request-id: dfc19059-1005-4d3c-b714-0e94d4abeacb content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:55 GMT + date: Mon, 14 Sep 2020 22:45:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=summary - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: ceb9828a-079c-4cf7-a269-6de496f0ded9 + apim-request-id: 87593f43-660e-4106-ac9b-f2e9023c447b content-length: '0' - date: Fri, 10 Jul 2020 18:50:56 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/ceb9828a-079c-4cf7-a269-6de496f0ded9 + date: Mon, 14 Sep 2020 22:45:50 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/87593f43-660e-4106-ac9b-f2e9023c447b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '284' + x-envoy-upstream-service-time: '616' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=summary + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=summary response: body: - string: '{"summary": {"count": 17, "limit": 5000, "lastUpdatedDateTime": "2020-07-10T18:50:56Z"}}' + string: '{"summary": {"count": 0, "limit": 5000, "lastUpdatedDateTime": "2020-09-14T22:45:51Z"}}' headers: - apim-request-id: 4d6de8c2-997f-4cab-bd70-946c41a0f447 + apim-request-id: 24462013-20f8-4607-96b3-1e3c62be1eda content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:50:56 GMT + date: Mon, 14 Sep 2020 22:45:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=summary + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=summary version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml index 1c50fb9c4c12..da29f7f6d740 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_get_model_auth_bad_key.yaml @@ -5,24 +5,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/xx?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/xx?includeKeys=true response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: a12e0b3f-6c50-4c03-ae68-385de9dc0a5b - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:50:56 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 20:39:04 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/xx?includeKeys=true + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/xx?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml index 8af8fbfd6a94..1fa0c3fb8d85 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_list_model_auth_bad_key.yaml @@ -5,24 +5,19 @@ interactions: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=full response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: d8b09bec-fc1d-4f43-bcbe-c168f0c928da - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:50:56 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 20:39:04 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=full + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=full version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml index e5f21a382536..e5972a892bca 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_labeled.yaml @@ -3,259 +3,182 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 5ea39e93-ab95-4eb1-9139-c53fcd12db9b + apim-request-id: d6137663-11a8-4e58-81b2-ab1125a56e3a content-length: '0' - date: Fri, 10 Jul 2020 18:50:56 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3 + date: Mon, 14 Sep 2020 20:39:04 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '67' + x-envoy-upstream-service-time: '82' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": - "creating", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": - "2020-07-10T18:50:57Z"}}' - headers: - apim-request-id: 9ec0cc33-5c0d-40e9-9d7f-ef776b070706 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:02 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '56' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": - "creating", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": - "2020-07-10T18:50:57Z"}}' - headers: - apim-request-id: 51b71629-1723-48be-9517-4c03bdc29e78 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:07 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '170' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": - "ready", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": - "2020-07-10T18:51:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' - headers: - apim-request-id: f015c2b5-db3d-4714-8b30-b54a0422763e + string: '{"modelInfo": {"modelId": "7012fbbb-40f6-450c-ac8a-56731ad3ab6f", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:39:04Z", + "lastUpdatedDateTime": "2020-09-14T20:39:07Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' + headers: + apim-request-id: 99fed57d-8744-42ca-bb16-15aff3739f42 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:12 GMT + date: Mon, 14 Sep 2020 20:39:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '41' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", "status": - "ready", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": - "2020-07-10T18:51:11Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' - headers: - apim-request-id: 21fb5c62-64ba-4a08-9eb1-5c162d1021bc + string: '{"modelInfo": {"modelId": "7012fbbb-40f6-450c-ac8a-56731ad3ab6f", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T20:39:04Z", + "lastUpdatedDateTime": "2020-09-14T20:39:07Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' + headers: + apim-request-id: 409a8adb-66d9-4dca-92c5-68ff6f2db519 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:12 GMT + date: Mon, 14 Sep 2020 20:39:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '72' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", - "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": - "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", - "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", - "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": - "2020-07-10T18:42:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", - "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:57Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", - "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": - "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", - "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": - "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", - "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": - "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", - "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:22Z"}, {"modelId": "7c880999-864b-49a8-9832-f3dc138a2cc3", - "status": "ready", "createdDateTime": "2020-07-10T18:50:57Z", "lastUpdatedDateTime": - "2020-07-10T18:51:11Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", - "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", - "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", - "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": - "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", - "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": - "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", - "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", - "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": - "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", - "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": - "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", - "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": - "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", - "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:40Z"}], "nextLink": ""}' + string: '{"modelList": [{"modelId": "7012fbbb-40f6-450c-ac8a-56731ad3ab6f", + "attributes": {"isComposed": false}, "status": "ready", "createdDateTime": + "2020-09-14T20:39:04Z", "lastUpdatedDateTime": "2020-09-14T20:39:07Z"}], "nextLink": + ""}' headers: - apim-request-id: 2424063c-817b-4c53-a99d-a0fbb5c418f7 + apim-request-id: d7527aae-9be5-44e6-993f-15f0e942dcbb content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:12 GMT + date: Mon, 14 Sep 2020 20:39:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '163' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=full + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=full - request: body: null headers: + Accept: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f response: body: string: '' headers: - apim-request-id: 99e25f0c-1c64-48d0-bffa-961f5b756ea3 + apim-request-id: a41bc6e4-24e4-4a26-a110-7b65d620c9ef content-length: '0' - date: Fri, 10 Jul 2020 18:51:14 GMT + date: Mon, 14 Sep 2020 20:39:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '815' + x-envoy-upstream-service-time: '40' status: code: 204 message: No Content - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3 + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=7c880999-864b-49a8-9832-f3dc138a2cc3'' + string: '{"error": {"code": "1022", "message": "Model with ''id=7012fbbb-40f6-450c-ac8a-56731ad3ab6f'' not found."}}' headers: - apim-request-id: f5ac5ac0-1b9b-468d-9630-b03040136b16 + apim-request-id: 32904a32-e62c-48ee-b9e7-d05fe4130572 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:14 GMT + date: Mon, 14 Sep 2020 20:39:10 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '10' + x-envoy-upstream-service-time: '36' status: code: 404 message: Not Found - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/7c880999-864b-49a8-9832-f3dc138a2cc3?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/7012fbbb-40f6-450c-ac8a-56731ad3ab6f?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml index 8b43f5e92ff5..f1abc359805d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_mgmt_async.test_mgmt_model_unlabeled.yaml @@ -3,275 +3,221 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 42930d89-bdcb-46bb-8829-c1d3f45c1d88 + apim-request-id: 80d83239-51ef-4c1c-ba8e-0f20f09ad182 content-length: '0' - date: Fri, 10 Jul 2020 18:51:17 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4 + date: Mon, 14 Sep 2020 20:39:11 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '2290' + x-envoy-upstream-service-time: '50' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": - "creating", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": - "2020-07-10T18:51:17Z"}}' + string: '{"modelInfo": {"modelId": "e161ea33-c996-4f88-8dd2-562d78872d49", "status": + "creating", "createdDateTime": "2020-09-14T20:39:11Z", "lastUpdatedDateTime": + "2020-09-14T20:39:11Z"}}' headers: - apim-request-id: 467aee8e-74ad-46a4-84a2-5f30fac6e3aa + apim-request-id: b5f627fd-842e-4550-af88-a256cda57e13 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:22 GMT + date: Mon, 14 Sep 2020 20:39:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": - "creating", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": - "2020-07-10T18:51:17Z"}}' + string: '{"modelInfo": {"modelId": "e161ea33-c996-4f88-8dd2-562d78872d49", "status": + "creating", "createdDateTime": "2020-09-14T20:39:11Z", "lastUpdatedDateTime": + "2020-09-14T20:39:11Z"}}' headers: - apim-request-id: fe6e14ce-f02b-4c95-bbc6-5591a609fb77 + apim-request-id: 0873d6cb-3b8a-4740-b51e-d00541198537 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:27 GMT + date: Mon, 14 Sep 2020 20:39:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": - "creating", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": - "2020-07-10T18:51:17Z"}}' - headers: - apim-request-id: 30b79ac6-97ad-4ac7-b5f3-123beecb83fc - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:32 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": - "ready", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": - "2020-07-10T18:51:34Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "e161ea33-c996-4f88-8dd2-562d78872d49", "status": + "ready", "createdDateTime": "2020-09-14T20:39:11Z", "lastUpdatedDateTime": + "2020-09-14T20:39:25Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 747f676f-b036-494a-9802-33b7d99cbe35 + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: be3b9c93-c8d0-4b2d-ae67-6772322c1fc3 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:37 GMT + date: Mon, 14 Sep 2020 20:39:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", "status": - "ready", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": - "2020-07-10T18:51:34Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "e161ea33-c996-4f88-8dd2-562d78872d49", "status": + "ready", "createdDateTime": "2020-09-14T20:39:11Z", "lastUpdatedDateTime": + "2020-09-14T20:39:25Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 7b363aa1-4344-4266-81a7-0cf71e1a9505 + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: ee38ac56-7fd5-4121-bc41-7b7b64682dcc content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:37 GMT + date: Mon, 14 Sep 2020 20:39:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models?op=full + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models?op=full response: body: - string: '{"modelList": [{"modelId": "00f7fbe5-a3c7-4e24-a871-9b9a6a450fc1", - "status": "ready", "createdDateTime": "2020-07-10T18:43:28Z", "lastUpdatedDateTime": - "2020-07-10T18:43:35Z"}, {"modelId": "30998e09-3dc8-4816-bad2-4d3318719b0c", - "status": "ready", "createdDateTime": "2020-07-10T18:43:51Z", "lastUpdatedDateTime": - "2020-07-10T18:44:08Z"}, {"modelId": "3433e426-015e-421a-b794-58fe389a707b", - "status": "ready", "createdDateTime": "2020-07-10T18:42:22Z", "lastUpdatedDateTime": - "2020-07-10T18:42:30Z"}, {"modelId": "5effb484-6d5e-4a33-b547-dc025a4f352d", - "status": "ready", "createdDateTime": "2020-07-10T18:49:25Z", "lastUpdatedDateTime": - "2020-07-10T18:49:57Z"}, {"modelId": "67f42e15-4d6e-4a01-b92d-a0cb9b0414cf", - "status": "ready", "createdDateTime": "2020-07-10T18:42:10Z", "lastUpdatedDateTime": - "2020-07-10T18:42:13Z"}, {"modelId": "68df8c7a-51dc-4124-9374-b7f966788c95", - "status": "ready", "createdDateTime": "2020-07-10T18:49:03Z", "lastUpdatedDateTime": - "2020-07-10T18:49:11Z"}, {"modelId": "6e8b70d6-2945-4b20-b97d-ef8fb4afcdf8", - "status": "ready", "createdDateTime": "2020-07-10T18:46:52Z", "lastUpdatedDateTime": - "2020-07-10T18:47:10Z"}, {"modelId": "6f4f1583-8f73-4be8-9337-ccc105f1fdff", - "status": "ready", "createdDateTime": "2020-07-10T18:46:12Z", "lastUpdatedDateTime": - "2020-07-10T18:46:22Z"}, {"modelId": "8b51591f-21ca-41f8-abe6-4febf08b1e52", - "status": "ready", "createdDateTime": "2020-07-10T18:44:23Z", "lastUpdatedDateTime": - "2020-07-10T18:44:39Z"}, {"modelId": "9137242f-1f19-40e6-b9ec-59c0cb5c65bc", - "status": "ready", "createdDateTime": "2020-07-10T18:45:15Z", "lastUpdatedDateTime": - "2020-07-10T18:45:28Z"}, {"modelId": "98be755b-7bb2-49bc-addb-82ba80fc3007", - "status": "ready", "createdDateTime": "2020-07-10T18:42:40Z", "lastUpdatedDateTime": - "2020-07-10T18:42:43Z"}, {"modelId": "a971b699-69e3-4397-a985-b3d48cf3ca3d", - "status": "ready", "createdDateTime": "2020-07-10T18:48:45Z", "lastUpdatedDateTime": - "2020-07-10T18:48:48Z"}, {"modelId": "ac5c99f9-b31b-46db-add6-5d149c844a13", - "status": "ready", "createdDateTime": "2020-07-10T18:45:43Z", "lastUpdatedDateTime": - "2020-07-10T18:45:53Z"}, {"modelId": "d7569400-70ff-4115-9dcb-5ae3b85f6c27", - "status": "ready", "createdDateTime": "2020-07-10T18:46:33Z", "lastUpdatedDateTime": - "2020-07-10T18:46:43Z"}, {"modelId": "dbb717aa-4021-4dc1-a621-7662115dcd67", - "status": "ready", "createdDateTime": "2020-07-10T18:44:57Z", "lastUpdatedDateTime": - "2020-07-10T18:45:00Z"}, {"modelId": "e8f38257-82e1-4044-959c-6025c55088a5", - "status": "ready", "createdDateTime": "2020-07-10T18:42:58Z", "lastUpdatedDateTime": - "2020-07-10T18:42:59Z"}, {"modelId": "f4135245-a217-4d73-aafe-5b1d517012f4", - "status": "ready", "createdDateTime": "2020-07-10T18:47:29Z", "lastUpdatedDateTime": - "2020-07-10T18:47:40Z"}, {"modelId": "f85cc461-0a62-4b3e-8e06-13cc0c35d0e4", - "status": "ready", "createdDateTime": "2020-07-10T18:51:17Z", "lastUpdatedDateTime": - "2020-07-10T18:51:34Z"}], "nextLink": ""}' + string: '{"modelList": [{"modelId": "e161ea33-c996-4f88-8dd2-562d78872d49", + "status": "ready", "createdDateTime": "2020-09-14T20:39:11Z", "lastUpdatedDateTime": + "2020-09-14T20:39:25Z"}], "nextLink": ""}' headers: - apim-request-id: 76ca1391-3bf3-4b3f-90c7-e04faa2a2cd4 + apim-request-id: 0a41e6e1-a105-4ef4-b363-7c8967635d6c content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:37 GMT + date: Mon, 14 Sep 2020 20:39:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '12' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models?op=full + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models?op=full - request: body: null headers: + Accept: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: DELETE - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49 response: body: string: '' headers: - apim-request-id: 4e4ce093-27c8-4bd7-b839-3b53f672d82e + apim-request-id: d2cb5fe0-a479-47a3-bd63-51c534eaa2cf content-length: '0' - date: Fri, 10 Jul 2020 18:51:37 GMT + date: Mon, 14 Sep 2020 20:39:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff x-envoy-upstream-service-time: '19' status: code: 204 message: No Content - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4 + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49 - request: body: null headers: Accept: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true response: body: - string: '{"error": {"code": "1022", "message": "Model with ''id=f85cc461-0a62-4b3e-8e06-13cc0c35d0e4'' + string: '{"error": {"code": "1022", "message": "Model with ''id=e161ea33-c996-4f88-8dd2-562d78872d49'' not found."}}' headers: - apim-request-id: 12a867a3-5466-435c-a389-88b9051b9bfc + apim-request-id: 7ebcc351-1a57-4fc1-aa14-249e322ac333 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:51:38 GMT + date: Mon, 14 Sep 2020 20:39:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '14' status: code: 404 message: Not Found - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models/f85cc461-0a62-4b3e-8e06-13cc0c35d0e4?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models/e161ea33-c996-4f88-8dd2-562d78872d49?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml index c05b804e9c3c..a8c024053922 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: xx headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,30 +13,20 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 5c40d705-5aad-4b33-bdd4-1b333217a074 content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:51:38 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 22:40:25 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml index 9fa247ae482b..e02226ea41d6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_authentication_successful_key.yaml @@ -2714,7 +2714,7 @@ interactions: 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2724,27 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - e0982aaf-9092-4e5b-9e65-1f30256aff8b + - 812f645f-1ca8-40bd-83f7-9050d09e2f6b content-length: - '0' date: - - Fri, 10 Jul 2020 18:51:39 GMT + - Mon, 14 Sep 2020 22:40:23 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e0982aaf-9092-4e5b-9e65-1f30256aff8b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/812f645f-1ca8-40bd-83f7-9050d09e2f6b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '212' + - '138' status: code: 202 message: Accepted @@ -2758,68 +2758,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e0982aaf-9092-4e5b-9e65-1f30256aff8b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/812f645f-1ca8-40bd-83f7-9050d09e2f6b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:39Z", - "lastUpdatedDateTime": "2020-07-10T18:51:41Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:24Z", + "lastUpdatedDateTime": "2020-09-14T22:40:26Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 62c8839c-e8fc-4f33-969e-8bdc00807a13 + - dc63c092-ca43-4753-ba8b-2ea5c981ff61 + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:51:44 GMT + - Mon, 14 Sep 2020 22:40:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '25' + - '78' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml index 34a6ceba54e0..0ab6b0317d78 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_blank_page.yaml @@ -454,7 +454,7 @@ interactions: MjU0ODQNCiUlRU9G headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -464,27 +464,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - d53a918f-1ec0-4ed2-b5f2-6cf3acf34997 + - f80ee1b9-040a-4479-b363-1b6012e18b94 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:00 GMT + - Mon, 14 Sep 2020 22:40:25 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d53a918f-1ec0-4ed2-b5f2-6cf3acf34997 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/f80ee1b9-040a-4479-b363-1b6012e18b94 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '93' + - '236' status: code: 202 message: Accepted @@ -498,31 +498,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d53a918f-1ec0-4ed2-b5f2-6cf3acf34997 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/f80ee1b9-040a-4479-b363-1b6012e18b94 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:01Z", - "lastUpdatedDateTime": "2020-07-10T18:53:03Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": - 10.9967, "unit": "inch", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {}}]}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:26Z", + "lastUpdatedDateTime": "2020-09-14T22:40:29Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {}}]}}' headers: apim-request-id: - - b6d9bd8e-d2a2-45ea-b518-4397d4bef208 + - d67ce159-d5ce-4b52-bec7-61553175ef54 + content-length: + - '308' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:06 GMT + - Mon, 14 Sep 2020 22:40:31 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml index 55366bbf8816..5d33c9b7fd44 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes.yaml @@ -3,7 +3,7 @@ interactions: body: '%PDFUUU' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,24 +13,24 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "03863542-a369-404b-8bf1-2307c3562461"}, + string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "1075aeac-62d8-4fe8-af48-82e953be7545"}, "message": "Bad or unrecognizable request JSON or binary file."}}' headers: apim-request-id: - - 03863542-a369-404b-8bf1-2307c3562461 + - 1075aeac-62d8-4fe8-af48-82e953be7545 + content-length: + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:06 GMT + - Mon, 14 Sep 2020 22:40:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml index 32edf37ba6d2..910e0f17310e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_damaged_file_passed_as_bytes_io.yaml @@ -8,7 +8,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -18,24 +18,24 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "3f99b361-d1a3-4b32-a99f-3e72f6c0855a"}, + string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "0740b61e-d5a3-4e51-acb9-d7463f2e7f6c"}, "message": "Bad or unrecognizable request JSON or binary file."}}' headers: apim-request-id: - - 3f99b361-d1a3-4b32-a99f-3e72f6c0855a + - 0740b61e-d5a3-4e51-acb9-d7463f2e7f6c + content-length: + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:07 GMT + - Mon, 14 Sep 2020 22:40:23 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml index 2f0ede895a11..b10550eb28ec 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_passing_enum_content_type.yaml @@ -31788,7 +31788,7 @@ interactions: RK5CYII= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -31798,27 +31798,27 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 2b2b880e-6f32-4181-8978-ecc00cd8b4cf + - ec407fb1-7d42-41e6-a791-d265e9460b2f content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:11 GMT + - Mon, 14 Sep 2020 22:40:27 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/2b2b880e-6f32-4181-8978-ecc00cd8b4cf + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ec407fb1-7d42-41e6-a791-d265e9460b2f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '673' + - '589' status: code: 202 message: Accepted @@ -31832,64 +31832,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/2b2b880e-6f32-4181-8978-ecc00cd8b4cf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ec407fb1-7d42-41e6-a791-d265e9460b2f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:11Z", - "lastUpdatedDateTime": "2020-07-10T18:53:12Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.659}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [349.3, 241.3, 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": - 1, "confidence": 0.516}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [319.9, 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], - "page": 1, "confidence": 0.986}, "MerchantPhoneNumber": {"type": "phoneNumber", - "text": "123-456-7890", "boundingBox": [306, 1005, 617, 1011, 615.9, 1070, - 304.9, 1064], "page": 1, "confidence": 0.99}, "TransactionDate": {"type": - "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, - 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, - "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", - "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", - "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, - 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": - "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, 1784.6, - 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], - "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": - "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, 626.6, 2014, - 628, 2077, 361.4, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": {"type": - "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, - 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:28Z", + "lastUpdatedDateTime": "2020-09-14T22:40:31Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.659}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [349.3, 241.3, + 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": 1, "confidence": 0.516}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [319.9, + 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], "page": 1, "confidence": 0.986}, + "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": + [306, 1005, 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99}, + "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", + "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": + 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": + "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": + "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM + (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, + 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + 0.559}}}, {"type": "object", "valueObject": {"Quantity": {"type": "number", + "valueNumber": 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, + 2084, 322, 2084], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "valueString": "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, + 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": + {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, + 2028, 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, "Subtotal": {"type": "number", "valueNumber": 1098.99, "text": "1098.99", - "boundingBox": [963, 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": - 1, "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": + "boundingBox": [963, 2260, 1136, 2254, 1137, 2320, 966, 2325], "page": 1, + "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": 0.713}, "Total": {"type": "number", "valueNumber": - 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, - 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - a32f8c66-4d67-4561-82c2-1c862f440e11 + - a566e69a-d576-4a3e-86ca-4614b9325cd9 + content-length: + - '2561' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:16 GMT + - Mon, 14 Sep 2020 22:40:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml index 8de4b8fff680..4c05cfb446d3 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg.yaml @@ -2714,7 +2714,7 @@ interactions: 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2724,27 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 5de5e1dd-81d8-4693-8c65-c07fe199992a + - 0344b729-8ad8-4661-8abb-4b38a4d51ac0 content-length: - '0' date: - - Fri, 10 Jul 2020 18:51:46 GMT + - Mon, 14 Sep 2020 22:40:36 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5de5e1dd-81d8-4693-8c65-c07fe199992a + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/0344b729-8ad8-4661-8abb-4b38a4d51ac0 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '193' + - '123' status: code: 202 message: Accepted @@ -2758,68 +2758,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5de5e1dd-81d8-4693-8c65-c07fe199992a + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/0344b729-8ad8-4661-8abb-4b38a4d51ac0 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:46Z", - "lastUpdatedDateTime": "2020-07-10T18:51:48Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:37Z", + "lastUpdatedDateTime": "2020-09-14T22:40:38Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - ccb4be8b-5cce-45c8-98f6-7669d59cb441 + - e22e9444-7649-47db-aeab-2312686c1cf5 + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:51:51 GMT + - Mon, 14 Sep 2020 22:40:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml index daf09def5b56..8cb10df1e4c4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_jpg_include_field_elements.yaml @@ -2714,7 +2714,7 @@ interactions: 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2724,27 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 520dea80-12eb-4e6e-b59b-07b9d5e911a4 + - 09473739-48eb-449a-b827-c5ab316515aa content-length: - '0' date: - - Fri, 10 Jul 2020 18:51:52 GMT + - Mon, 14 Sep 2020 22:40:32 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/520dea80-12eb-4e6e-b59b-07b9d5e911a4 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/09473739-48eb-449a-b827-c5ab316515aa strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '178' + - '240' status: code: 202 message: Accepted @@ -2758,22 +2758,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/520dea80-12eb-4e6e-b59b-07b9d5e911a4 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/09473739-48eb-449a-b827-c5ab316515aa response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:52Z", - "lastUpdatedDateTime": "2020-07-10T18:51:53Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:32Z", + "lastUpdatedDateTime": "2020-09-14T22:40:34Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -2806,7 +2806,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -2848,58 +2848,58 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - de8ca468-e6f8-461a-bef2-bd527b14ce6f + - 078fe2e2-d494-40f3-a861-455ca73634cc + content-length: + - '8501' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:51:57 GMT + - Mon, 14 Sep 2020 22:40:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml index 842407bbce24..48c7526e1fda 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage.yaml @@ -1915,7 +1915,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -1925,27 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - cfa17093-fd43-4b53-a8aa-36d07ec099f4 + - 444ca959-81e5-48b0-9e8d-c67627f1f5a4 content-length: - '0' date: - - Fri, 10 Jul 2020 18:51:58 GMT + - Mon, 14 Sep 2020 22:40:38 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cfa17093-fd43-4b53-a8aa-36d07ec099f4 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/444ca959-81e5-48b0-9e8d-c67627f1f5a4 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '327' + - '120' status: code: 202 message: Accepted @@ -1959,21 +1959,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cfa17093-fd43-4b53-a8aa-36d07ec099f4 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/444ca959-81e5-48b0-9e8d-c67627f1f5a4 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:51:58Z", - "lastUpdatedDateTime": "2020-07-10T18:52:01Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:38Z", + "lastUpdatedDateTime": "2020-09-14T22:40:42Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -2105,88 +2105,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -2298,14 +2297,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -2323,19 +2323,19 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 27257c21-7e16-4650-874e-6fa571b12297 + - fbfde09e-4ae3-4253-8b83-d7f859fef2f3 + content-length: + - '25281' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:52:03 GMT + - Mon, 14 Sep 2020 22:40:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '24' + - '29' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml index 7aa3119ab8b3..56a327873f76 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_multipage_transform.yaml @@ -1915,7 +1915,7 @@ interactions: Mg0KJSVFT0Y= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -1925,27 +1925,27 @@ interactions: Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 8429fd51-3efd-4def-82f4-f7276f06627e + - 9f4401a0-bb13-4cf9-81e0-169b9e76c1a6 content-length: - '0' date: - - Fri, 10 Jul 2020 18:52:04 GMT + - Mon, 14 Sep 2020 22:40:34 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8429fd51-3efd-4def-82f4-f7276f06627e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/9f4401a0-bb13-4cf9-81e0-169b9e76c1a6 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '155' + - '214' status: code: 202 message: Accepted @@ -1959,21 +1959,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8429fd51-3efd-4def-82f4-f7276f06627e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/9f4401a0-bb13-4cf9-81e0-169b9e76c1a6 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:04Z", - "lastUpdatedDateTime": "2020-07-10T18:52:07Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:34Z", + "lastUpdatedDateTime": "2020-09-14T22:40:38Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -2105,88 +2105,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -2298,14 +2297,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -2323,19 +2323,19 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 3ad10e68-0211-4c6a-a0cf-86c0ce3968b0 + - 60ae989a-28c7-439d-ae92-646cb5d0236d + content-length: + - '25281' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:52:08 GMT + - Mon, 14 Sep 2020 22:40:39 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml index 24c93714027e..9f366ba829b6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_png.yaml @@ -31792,7 +31792,7 @@ interactions: - null headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -31802,27 +31802,27 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 054d8378-4f1e-46cb-89b2-c7d6be23381e + - 50775ebe-3caa-453c-92f5-59d56deb6e19 content-length: - '0' date: - - Fri, 10 Jul 2020 18:52:13 GMT + - Mon, 14 Sep 2020 22:40:42 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/054d8378-4f1e-46cb-89b2-c7d6be23381e + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/50775ebe-3caa-453c-92f5-59d56deb6e19 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '650' + - '510' status: code: 202 message: Accepted @@ -31836,64 +31836,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/054d8378-4f1e-46cb-89b2-c7d6be23381e + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/50775ebe-3caa-453c-92f5-59d56deb6e19 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:13Z", - "lastUpdatedDateTime": "2020-07-10T18:52:16Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.659}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [349.3, 241.3, 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": - 1, "confidence": 0.516}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [319.9, 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], - "page": 1, "confidence": 0.986}, "MerchantPhoneNumber": {"type": "phoneNumber", - "text": "123-456-7890", "boundingBox": [306, 1005, 617, 1011, 615.9, 1070, - 304.9, 1064], "page": 1, "confidence": 0.99}, "TransactionDate": {"type": - "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, - 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, - "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", - "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", - "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, - 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": - "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, 1784.6, - 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], - "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": - "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, 626.6, 2014, - 628, 2077, 361.4, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": {"type": - "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, - 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:43Z", + "lastUpdatedDateTime": "2020-09-14T22:40:44Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.659}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [349.3, 241.3, + 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": 1, "confidence": 0.516}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [319.9, + 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], "page": 1, "confidence": 0.986}, + "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": + [306, 1005, 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99}, + "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", + "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": + 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": + "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": + "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM + (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, + 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + 0.559}}}, {"type": "object", "valueObject": {"Quantity": {"type": "number", + "valueNumber": 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, + 2084, 322, 2084], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "valueString": "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, + 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": + {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, + 2028, 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, "Subtotal": {"type": "number", "valueNumber": 1098.99, "text": "1098.99", - "boundingBox": [963, 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": - 1, "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": + "boundingBox": [963, 2260, 1136, 2254, 1137, 2320, 966, 2325], "page": 1, + "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": 0.713}, "Total": {"type": "number", "valueNumber": - 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, - 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - dc72b8be-9946-4955-8032-50aa04d21a80 + - c03d8a72-1e09-49df-a776-4b60f027daab + content-length: + - '2561' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:52:18 GMT + - Mon, 14 Sep 2020 22:40:48 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '33' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml index 03adf15cfcc5..e081f2c7443a 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_jpg.yaml @@ -2714,7 +2714,7 @@ interactions: 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -2724,27 +2724,27 @@ interactions: Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 36935844-1e42-4d5b-a087-044596eb1fd5 + - 43f111f5-dc9d-4120-b88f-1010b2574816 content-length: - '0' date: - - Fri, 10 Jul 2020 18:52:19 GMT + - Mon, 14 Sep 2020 22:40:43 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/36935844-1e42-4d5b-a087-044596eb1fd5 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/43f111f5-dc9d-4120-b88f-1010b2574816 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '173' + - '138' status: code: 202 message: Accepted @@ -2758,22 +2758,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/36935844-1e42-4d5b-a087-044596eb1fd5 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/43f111f5-dc9d-4120-b88f-1010b2574816 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:20Z", - "lastUpdatedDateTime": "2020-07-10T18:52:21Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:43Z", + "lastUpdatedDateTime": "2020-09-14T22:40:45Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -2806,7 +2806,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -2848,58 +2848,58 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - 2bb483ee-6898-480a-ba86-ca6a71d486b8 + - 217b16b1-4d7d-4814-9411-b156cdec0db6 + content-length: + - '8501' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:52:24 GMT + - Mon, 14 Sep 2020 22:40:47 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml index 24c02136c880..a774c54406a8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt.test_receipt_stream_transform_png.yaml @@ -31788,7 +31788,7 @@ interactions: RK5CYII= headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -31798,27 +31798,27 @@ interactions: Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - bf5d4066-01cc-427e-a155-58e2237d717b + - ed419c3a-e25c-4244-817b-e66495cf79b9 content-length: - '0' date: - - Fri, 10 Jul 2020 18:52:29 GMT + - Mon, 14 Sep 2020 22:40:47 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/bf5d4066-01cc-427e-a155-58e2237d717b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ed419c3a-e25c-4244-817b-e66495cf79b9 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '596' + - '495' status: code: 202 message: Accepted @@ -31832,22 +31832,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/bf5d4066-01cc-427e-a155-58e2237d717b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ed419c3a-e25c-4244-817b-e66495cf79b9 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:29Z", - "lastUpdatedDateTime": "2020-07-10T18:52:32Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", - "boundingBox": [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, - {"text": "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], - "words": [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, - 325, 644], "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": - [319, 690, 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": - [323, 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:40:47Z", + "lastUpdatedDateTime": "2020-09-14T22:40:49Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [619, + 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", "boundingBox": + [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, {"text": + "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], "words": + [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, 325, 644], + "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": [319, 690, + 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": [323, + 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", "boundingBox": [399, 692, 502, 694, 498, 756, 395, 754], "confidence": 0.958}, {"text": "Street", "boundingBox": [514, 695, 656, 698, 653, 758, 510, 756], "confidence": 0.958}]}, {"text": "Redmond, WA 98052", "boundingBox": [317, @@ -31930,54 +31930,53 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": [306, 1005, - 617, 1011, 615.9, 1070, 304.9, 1064], "page": 1, "confidence": 0.99, "elements": + 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", - "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, 1223.5, - 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985, "elements": + "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [304, 1224, + 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628.1, - 1227, 627, 1291, 516.8, 1289], "page": 1, "confidence": 0.968, "elements": - ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": - [{"type": "object", "valueObject": {"Name": {"type": "string", "valueString": - "8GB RAM (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, - 731, 1785, 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916, "elements": - ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "TotalPrice": {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": - [939, 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628, + 1228, 627, 1290, 517, 1289], "page": 1, "confidence": 0.968, "elements": ["#/readResults/0/lines/5/words/1"]}, + "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Name": {"type": "string", "valueString": "8GB RAM (Black)", "text": "8GB + RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, 1854, 370, + 1850.6], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559, "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1"]}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], + {"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, 2084, 322, 2084], "page": 1, "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/0"]}, "Name": {"type": "string", "valueString": "SurfacePen", "text": "SurfacePen", - "boundingBox": [360, 2020, 626.6, 2014, 628, 2077, 361.4, 2083], "page": 1, - "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": - {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, - 2028, 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386, - "elements": ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": - "number", "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, - 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": 1, "confidence": - 0.964, "elements": ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": - "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, - 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": - 0.713, "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "Total": {"type": "number", "valueNumber": 1203.39, "text": "1203.39", "boundingBox": - [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": - 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' + "boundingBox": [360, 2020, 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": + 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, + 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386, "elements": + ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": "number", + "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, 2260, 1136, + 2254, 1137, 2320, 966, 2325], "page": 1, "confidence": 0.964, "elements": + ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": "number", "valueNumber": + 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, + 2434.2, 944, 2438], "page": 1, "confidence": 0.713, "elements": ["#/readResults/0/lines/16/words/0", + "#/readResults/0/lines/16/words/1"]}, "Total": {"type": "number", "valueNumber": + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: apim-request-id: - - dd4fb49d-cead-416e-a981-3f714d4d2823 + - e49d502d-a679-4233-aeef-3c2c126a1573 + content-length: + - '8807' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:52:34 GMT + - Mon, 14 Sep 2020 22:40:52 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '24' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml index 77bc81092dd8..8394f097d9a9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_bad_key.yaml @@ -2,27 +2,24 @@ interactions: - request: body: xx headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 3b0a0757-d656-4d28-9233-1d188d4d93d2 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:52:35 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 22:41:43 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml index 74491f870070..7fa9d1530a98 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_authentication_successful_key.yaml @@ -2713,88 +2713,89 @@ interactions: VIKCImgFKAIaTQAAAu0AVds1QRBQEUBUJQEUgCxU2CKrKgiLsCqiygRCGwFSIAo1ICUZqWgix0uo 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 3cdb4554-04d0-4507-aded-eba931db8e69 + apim-request-id: 33e85a9a-743a-4a17-82ac-5c8e31c4cde7 content-length: '0' - date: Fri, 10 Jul 2020 18:52:35 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/3cdb4554-04d0-4507-aded-eba931db8e69 + date: Mon, 14 Sep 2020 22:41:46 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/33e85a9a-743a-4a17-82ac-5c8e31c4cde7 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '180' + x-envoy-upstream-service-time: '122' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/3cdb4554-04d0-4507-aded-eba931db8e69 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/33e85a9a-743a-4a17-82ac-5c8e31c4cde7 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:35Z", - "lastUpdatedDateTime": "2020-07-10T18:52:37Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:41:46Z", + "lastUpdatedDateTime": "2020-09-14T22:41:48Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: c0a0ced3-b98a-4bd8-8043-8f0c2dc5215a + apim-request-id: b8aee81e-346f-40dc-9863-03791382dadb + content-length: '2835' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:40 GMT + date: Mon, 14 Sep 2020 22:41:50 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/3cdb4554-04d0-4507-aded-eba931db8e69 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/33e85a9a-743a-4a17-82ac-5c8e31c4cde7 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml index fc05b70b6837..9f127817b437 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_blank_page.yaml @@ -453,51 +453,53 @@ interactions: OUJBMDhFRkVFNjYyMDE+XSAvUHJldiAyNDg2OC9YUmVmU3RtIDI0NTg2Pj4NCnN0YXJ0eHJlZg0K MjU0ODQNCiUlRU9G headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: e772b958-7d61-4f3e-bfe7-90cee21fd448 + apim-request-id: 36c14985-102c-4bdc-a0a7-0c3cc5ced483 content-length: '0' - date: Fri, 10 Jul 2020 18:52:40 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e772b958-7d61-4f3e-bfe7-90cee21fd448 + date: Mon, 14 Sep 2020 22:41:44 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/36c14985-102c-4bdc-a0a7-0c3cc5ced483 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '92' + x-envoy-upstream-service-time: '58' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e772b958-7d61-4f3e-bfe7-90cee21fd448 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/36c14985-102c-4bdc-a0a7-0c3cc5ced483 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:41Z", - "lastUpdatedDateTime": "2020-07-10T18:52:44Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": - 10.9967, "unit": "inch", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {}}]}}' + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:41:45Z", + "lastUpdatedDateTime": "2020-09-14T22:41:47Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height": + 10.9967, "unit": "inch"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {}}]}}' headers: - apim-request-id: 21576b77-f611-4e77-b920-b38a795c6afe + apim-request-id: 77470b95-b273-4331-b901-fb9d1d00484e + content-length: '308' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:46 GMT + date: Mon, 14 Sep 2020 22:41:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '56' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e772b958-7d61-4f3e-bfe7-90cee21fd448 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/36c14985-102c-4bdc-a0a7-0c3cc5ced483 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml index 897bb00ef1a4..99bb8da839b2 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes.yaml @@ -2,26 +2,28 @@ interactions: - request: body: '%PDFUUU' headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "42b0450f-ee0a-4325-bf88-9f7e39f20935"}, + string: '{"error": {"code": "BadArgument", "innerError": {"requestId": "727f9a99-d16b-45bc-9a6a-3e66e304fd5a"}, "message": "Bad or unrecognizable request JSON or binary file."}}' headers: - apim-request-id: 42b0450f-ee0a-4325-bf88-9f7e39f20935 + apim-request-id: 727f9a99-d16b-45bc-9a6a-3e66e304fd5a + content-length: '161' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:21 GMT + date: Mon, 14 Sep 2020 22:41:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml index 943e99175d3a..493827a81091 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_damaged_file_passed_as_bytes_io.yaml @@ -7,26 +7,28 @@ interactions: - 0 - null headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "InvalidImage", "innerError": {"requestId": "3d563543-3dfe-4c9f-a3e1-bf14656c2dd0"}, + string: '{"error": {"code": "InvalidImage", "innerError": {"requestId": "ceba007b-8e40-4d9b-84ca-08c712c416ee"}, "message": "The input data is not a valid image or password protected."}}' headers: - apim-request-id: 3d563543-3dfe-4c9f-a3e1-bf14656c2dd0 + apim-request-id: ceba007b-8e40-4d9b-84ca-08c712c416ee + content-length: '170' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:21 GMT + date: Mon, 14 Sep 2020 22:41:42 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '5' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml index 08cec07e9eb1..846793054938 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_passing_enum_content_type.yaml @@ -31787,84 +31787,85 @@ interactions: yS7HS4i8mcmhuZmRhfexudkoXpc3Of5memZgJPZidDxxX+3libzZ0f8CyVkaj1orji0AAAAASUVO RK5CYII= headers: + Accept: + - application/json Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 + apim-request-id: 1dd8b337-b654-472a-ba28-319af7de480a content-length: '0' - date: Fri, 10 Jul 2020 18:54:24 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 + date: Mon, 14 Sep 2020 22:41:46 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/1dd8b337-b654-472a-ba28-319af7de480a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '599' + x-envoy-upstream-service-time: '512' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/1dd8b337-b654-472a-ba28-319af7de480a response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:24Z", - "lastUpdatedDateTime": "2020-07-10T18:54:27Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.659}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [349.3, 241.3, 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": - 1, "confidence": 0.516}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [319.9, 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], - "page": 1, "confidence": 0.986}, "MerchantPhoneNumber": {"type": "phoneNumber", - "text": "123-456-7890", "boundingBox": [306, 1005, 617, 1011, 615.9, 1070, - 304.9, 1064], "page": 1, "confidence": 0.99}, "TransactionDate": {"type": - "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, - 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, - "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", - "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", - "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, - 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": - "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, 1784.6, - 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], - "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": - "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, 626.6, 2014, - 628, 2077, 361.4, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": {"type": - "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, - 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:41:46Z", + "lastUpdatedDateTime": "2020-09-14T22:41:48Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.659}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [349.3, 241.3, + 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": 1, "confidence": 0.516}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [319.9, + 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], "page": 1, "confidence": 0.986}, + "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": + [306, 1005, 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99}, + "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", + "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": + 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": + "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": + "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM + (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, + 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + 0.559}}}, {"type": "object", "valueObject": {"Quantity": {"type": "number", + "valueNumber": 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, + 2084, 322, 2084], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "valueString": "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, + 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": + {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, + 2028, 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, "Subtotal": {"type": "number", "valueNumber": 1098.99, "text": "1098.99", - "boundingBox": [963, 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": - 1, "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": + "boundingBox": [963, 2260, 1136, 2254, 1137, 2320, 966, 2325], "page": 1, + "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": 0.713}, "Total": {"type": "number", "valueNumber": - 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, - 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 58dcf769-915b-40c0-9970-f6401d022e69 + apim-request-id: 31c8764c-c8bf-4082-8274-5d07a2a8d836 + content-length: '2561' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:29 GMT + date: Mon, 14 Sep 2020 22:41:51 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/8acf2acd-4ff4-4ebf-88fa-b51ef90b0ca6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/1dd8b337-b654-472a-ba28-319af7de480a version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml index e4e74ace9482..9e7fdab82f76 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg.yaml @@ -2713,88 +2713,89 @@ interactions: VIKCImgFKAIaTQAAAu0AVds1QRBQEUBUJQEUgCxU2CKrKgiLsCqiygRCGwFSIAo1ICUZqWgix0uo 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: d58ea9b1-d83e-46cf-87d0-6679ea3e001d + apim-request-id: be2e85fd-526c-486d-93ed-8bd17ef211e0 content-length: '0' - date: Fri, 10 Jul 2020 18:54:41 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d58ea9b1-d83e-46cf-87d0-6679ea3e001d + date: Mon, 14 Sep 2020 22:42:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/be2e85fd-526c-486d-93ed-8bd17ef211e0 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '228' + x-envoy-upstream-service-time: '128' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d58ea9b1-d83e-46cf-87d0-6679ea3e001d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/be2e85fd-526c-486d-93ed-8bd17ef211e0 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:42Z", - "lastUpdatedDateTime": "2020-07-10T18:54:43Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:42:02Z", + "lastUpdatedDateTime": "2020-09-14T22:42:03Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 0540de4f-92ff-44d3-9d40-1a14cc24f345 + apim-request-id: 3afc6bfc-eaf7-4a7b-8ad5-abddf5e98acd + content-length: '2835' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:46 GMT + date: Mon, 14 Sep 2020 22:42:07 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/d58ea9b1-d83e-46cf-87d0-6679ea3e001d + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/be2e85fd-526c-486d-93ed-8bd17ef211e0 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml index 96e998255a60..61a557abade0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_jpg_include_field_elements.yaml @@ -2713,47 +2713,49 @@ interactions: VIKCImgFKAIaTQAAAu0AVds1QRBQEUBUJQEUgCxU2CKrKgiLsCqiygRCGwFSIAo1ICUZqWgix0uo 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: dabf2451-0e1a-403d-a6ce-a77b2b9a08de + apim-request-id: 4f42da0c-aba8-49bd-9946-a374b764b0ef content-length: '0' - date: Fri, 10 Jul 2020 18:54:48 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/dabf2451-0e1a-403d-a6ce-a77b2b9a08de + date: Mon, 14 Sep 2020 22:41:52 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/4f42da0c-aba8-49bd-9946-a374b764b0ef strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '175' + x-envoy-upstream-service-time: '120' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/dabf2451-0e1a-403d-a6ce-a77b2b9a08de + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/4f42da0c-aba8-49bd-9946-a374b764b0ef response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:48Z", - "lastUpdatedDateTime": "2020-07-10T18:54:49Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:41:52Z", + "lastUpdatedDateTime": "2020-09-14T22:41:53Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -2786,7 +2788,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -2828,53 +2830,53 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: 45e1375c-84ac-4c78-bd81-bd119a39159e + apim-request-id: 222fbaaa-63dc-4923-8a13-302665ad5163 + content-length: '8501' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:53 GMT + date: Mon, 14 Sep 2020 22:41:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/dabf2451-0e1a-403d-a6ce-a77b2b9a08de + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/4f42da0c-aba8-49bd-9946-a374b764b0ef version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml index 0e67a38f4599..ee2b54323c3b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage.yaml @@ -1914,46 +1914,48 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: a08ae2b1-7e72-4708-8db9-3ba33c3779ba + apim-request-id: 3ac0d29e-7a76-4859-9061-0e530673bb48 content-length: '0' - date: Fri, 10 Jul 2020 18:52:47 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a08ae2b1-7e72-4708-8db9-3ba33c3779ba + date: Mon, 14 Sep 2020 22:41:57 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/3ac0d29e-7a76-4859-9061-0e530673bb48 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '144' + x-envoy-upstream-service-time: '90' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a08ae2b1-7e72-4708-8db9-3ba33c3779ba + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/3ac0d29e-7a76-4859-9061-0e530673bb48 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:47Z", - "lastUpdatedDateTime": "2020-07-10T18:52:50Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:41:58Z", + "lastUpdatedDateTime": "2020-09-14T22:42:02Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -2085,88 +2087,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -2278,14 +2279,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -2302,15 +2304,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 34846ac9-6ef0-47e0-8134-608ed3cab2f5 + apim-request-id: 2c0ec797-ac60-42ee-80fa-3e992a48edf7 + content-length: '25281' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:52 GMT + date: Mon, 14 Sep 2020 22:42:03 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a08ae2b1-7e72-4708-8db9-3ba33c3779ba + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/3ac0d29e-7a76-4859-9061-0e530673bb48 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml index 05d0576fe945..9230a4d859cb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_multipage_transform.yaml @@ -1914,46 +1914,48 @@ interactions: NTY1MURFMj5dIC9QcmV2IDEwMzQ3Mi9YUmVmU3RtIDEwMjc2Mj4+DQpzdGFydHhyZWYNCjEwODc1 Mg0KJSVFT0Y= headers: + Accept: + - application/json Content-Type: - application/pdf User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 + apim-request-id: 8b3eb6c2-4cc0-4fe2-8bc8-1fe4608747cf content-length: '0' - date: Fri, 10 Jul 2020 18:52:53 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 + date: Mon, 14 Sep 2020 22:41:52 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/8b3eb6c2-4cc0-4fe2-8bc8-1fe4608747cf strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '138' + x-envoy-upstream-service-time: '142' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/8b3eb6c2-4cc0-4fe2-8bc8-1fe4608747cf response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:52:53Z", - "lastUpdatedDateTime": "2020-07-10T18:52:56Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:41:52Z", + "lastUpdatedDateTime": "2020-09-14T22:41:57Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -2085,88 +2087,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -2278,14 +2279,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -2302,15 +2304,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: f6097f0c-e9c6-4928-afef-1634e6a115e3 + apim-request-id: a2ad17a2-e94e-457e-9cbe-2842a85c726c + content-length: '25281' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:52:58 GMT + date: Mon, 14 Sep 2020 22:41:57 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '28' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/5bb0ec2c-7f20-4b59-a403-bc629a2b06f8 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/8b3eb6c2-4cc0-4fe2-8bc8-1fe4608747cf version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml index 300ca62d119f..bb659ae417ee 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_png.yaml @@ -31787,84 +31787,85 @@ interactions: yS7HS4i8mcmhuZmRhfexudkoXpc3Of5memZgJPZidDxxX+3libzZ0f8CyVkaj1orji0AAAAASUVO RK5CYII= headers: + Accept: + - application/json Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: e2478b33-bc4d-4701-809e-66ef144456d2 + apim-request-id: 6ae847fd-fcda-4ad7-96ea-a9c45f12a136 content-length: '0' - date: Fri, 10 Jul 2020 18:53:01 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e2478b33-bc4d-4701-809e-66ef144456d2 + date: Mon, 14 Sep 2020 22:42:01 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6ae847fd-fcda-4ad7-96ea-a9c45f12a136 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '584' + x-envoy-upstream-service-time: '463' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e2478b33-bc4d-4701-809e-66ef144456d2 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6ae847fd-fcda-4ad7-96ea-a9c45f12a136 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:02Z", - "lastUpdatedDateTime": "2020-07-10T18:53:05Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.659}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [349.3, 241.3, 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": - 1, "confidence": 0.516}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [319.9, 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], - "page": 1, "confidence": 0.986}, "MerchantPhoneNumber": {"type": "phoneNumber", - "text": "123-456-7890", "boundingBox": [306, 1005, 617, 1011, 615.9, 1070, - 304.9, 1064], "page": 1, "confidence": 0.99}, "TransactionDate": {"type": - "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, - 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, - "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", - "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", - "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, - 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": - "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, 1784.6, - 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], - "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": - "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, 626.6, 2014, - 628, 2077, 361.4, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": {"type": - "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, - 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:42:01Z", + "lastUpdatedDateTime": "2020-09-14T22:42:04Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.659}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [349.3, 241.3, + 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": 1, "confidence": 0.516}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [319.9, + 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], "page": 1, "confidence": 0.986}, + "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": + [306, 1005, 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99}, + "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", + "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": + 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": + "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": + "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM + (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, + 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + 0.559}}}, {"type": "object", "valueObject": {"Quantity": {"type": "number", + "valueNumber": 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, + 2084, 322, 2084], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "valueString": "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, + 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": + {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, + 2028, 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, "Subtotal": {"type": "number", "valueNumber": 1098.99, "text": "1098.99", - "boundingBox": [963, 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": - 1, "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": + "boundingBox": [963, 2260, 1136, 2254, 1137, 2320, 966, 2325], "page": 1, + "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": 0.713}, "Total": {"type": "number", "valueNumber": - 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, - 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 8f11c712-20ba-4911-a4d9-4a35385cfa9f + apim-request-id: d0237254-6aa7-4eb5-a720-4126d6404d44 + content-length: '2561' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:53:07 GMT + date: Mon, 14 Sep 2020 22:42:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '19' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e2478b33-bc4d-4701-809e-66ef144456d2 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6ae847fd-fcda-4ad7-96ea-a9c45f12a136 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml index 52edafdf3519..8f577d24a7dd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_jpg.yaml @@ -2713,47 +2713,49 @@ interactions: VIKCImgFKAIaTQAAAu0AVds1QRBQEUBUJQEUgCxU2CKrKgiLsCqiygRCGwFSIAo1ICUZqWgix0uo 3txyIObaloKtTFuRARuNWAiml7gBmVrzAQLiBBmz71yy2oCGwA0oKP/Z headers: + Accept: + - application/json Content-Type: - image/jpeg User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: edeb9fdb-051d-4f6e-a831-58eed109503b + apim-request-id: ec56b179-7adb-4745-9e3a-475ae3cadfad content-length: '0' - date: Fri, 10 Jul 2020 18:53:09 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/edeb9fdb-051d-4f6e-a831-58eed109503b + date: Mon, 14 Sep 2020 22:42:03 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ec56b179-7adb-4745-9e3a-475ae3cadfad strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '177' + x-envoy-upstream-service-time: '138' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/edeb9fdb-051d-4f6e-a831-58eed109503b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ec56b179-7adb-4745-9e3a-475ae3cadfad response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:09Z", - "lastUpdatedDateTime": "2020-07-10T18:53:11Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:42:04Z", + "lastUpdatedDateTime": "2020-09-14T22:42:05Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -2786,7 +2788,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -2828,53 +2830,53 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: 5f7ce638-0467-47c6-b300-ab13dfc79089 + apim-request-id: 5d56e2c8-add3-4fee-94af-0a76d7c46e57 + content-length: '8501' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:53:13 GMT + date: Mon, 14 Sep 2020 22:42:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/edeb9fdb-051d-4f6e-a831-58eed109503b + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/ec56b179-7adb-4745-9e3a-475ae3cadfad version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml index 5b11aecc8aff..8c1fc6ae59a0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_async.test_receipt_stream_transform_png.yaml @@ -31787,47 +31787,49 @@ interactions: yS7HS4i8mcmhuZmRhfexudkoXpc3Of5memZgJPZidDxxX+3libzZ0f8CyVkaj1orji0AAAAASUVO RK5CYII= headers: + Accept: + - application/json Content-Type: - image/png User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df + apim-request-id: 2e0f24b5-369d-41ec-beeb-23e98abb63da content-length: '0' - date: Fri, 10 Jul 2020 18:53:17 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df + date: Mon, 14 Sep 2020 22:42:11 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/2e0f24b5-369d-41ec-beeb-23e98abb63da strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '648' + x-envoy-upstream-service-time: '529' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/2e0f24b5-369d-41ec-beeb-23e98abb63da response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:17Z", - "lastUpdatedDateTime": "2020-07-10T18:53:19Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", - "boundingBox": [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, - {"text": "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], - "words": [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, - 325, 644], "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": - [319, 690, 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": - [323, 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:42:10Z", + "lastUpdatedDateTime": "2020-09-14T22:42:12Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [619, + 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", "boundingBox": + [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, {"text": + "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], "words": + [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, 325, 644], + "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": [319, 690, + 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": [323, + 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", "boundingBox": [399, 692, 502, 694, 498, 756, 395, 754], "confidence": 0.958}, {"text": "Street", "boundingBox": [514, 695, 656, 698, 653, 758, 510, 756], "confidence": 0.958}]}, {"text": "Redmond, WA 98052", "boundingBox": [317, @@ -31910,49 +31912,48 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": [306, 1005, - 617, 1011, 615.9, 1070, 304.9, 1064], "page": 1, "confidence": 0.99, "elements": + 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", - "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, 1223.5, - 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985, "elements": + "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [304, 1224, + 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628.1, - 1227, 627, 1291, 516.8, 1289], "page": 1, "confidence": 0.968, "elements": - ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": - [{"type": "object", "valueObject": {"Name": {"type": "string", "valueString": - "8GB RAM (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, - 731, 1785, 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916, "elements": - ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "TotalPrice": {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": - [939, 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628, + 1228, 627, 1290, 517, 1289], "page": 1, "confidence": 0.968, "elements": ["#/readResults/0/lines/5/words/1"]}, + "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Name": {"type": "string", "valueString": "8GB RAM (Black)", "text": "8GB + RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, 1854, 370, + 1850.6], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559, "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1"]}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], + {"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, 2084, 322, 2084], "page": 1, "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/0"]}, "Name": {"type": "string", "valueString": "SurfacePen", "text": "SurfacePen", - "boundingBox": [360, 2020, 626.6, 2014, 628, 2077, 361.4, 2083], "page": 1, - "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": - {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, - 2028, 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386, - "elements": ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": - "number", "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, - 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": 1, "confidence": - 0.964, "elements": ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": - "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, - 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": - 0.713, "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "Total": {"type": "number", "valueNumber": 1203.39, "text": "1203.39", "boundingBox": - [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": - 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' + "boundingBox": [360, 2020, 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": + 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, + 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386, "elements": + ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": "number", + "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, 2260, 1136, + 2254, 1137, 2320, 966, 2325], "page": 1, "confidence": 0.964, "elements": + ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": "number", "valueNumber": + 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, + 2434.2, 944, 2438], "page": 1, "confidence": 0.713, "elements": ["#/readResults/0/lines/16/words/0", + "#/readResults/0/lines/16/words/1"]}, "Total": {"type": "number", "valueNumber": + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: - apim-request-id: 18384548-880d-47f2-86e5-fef9e954db0d + apim-request-id: 832d05d2-2f36-4ef9-a08a-026ebd6ec270 + content-length: '8807' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:53:22 GMT + date: Mon, 14 Sep 2020 22:42:15 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f5a8e01f-dcbe-4acb-b5eb-4d249c1be5df + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/2e0f24b5-369d-41ec-beeb-23e98abb63da version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml index affaf40bf5d3..ad44281ff4dd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_polling_interval.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - e8bdac60-ab8f-49cc-b505-8fc455b4ae90 + - 83c54d02-0b29-4d99-9e7a-eb743e0db170 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:24 GMT + - Mon, 14 Sep 2020 22:43:01 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e8bdac60-ab8f-49cc-b505-8fc455b4ae90 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/83c54d02-0b29-4d99-9e7a-eb743e0db170 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '327' + - '2495' status: code: 202 message: Accepted @@ -47,68 +47,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/e8bdac60-ab8f-49cc-b505-8fc455b4ae90 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/83c54d02-0b29-4d99-9e7a-eb743e0db170 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:24Z", - "lastUpdatedDateTime": "2020-07-10T18:53:26Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:01Z", + "lastUpdatedDateTime": "2020-09-14T22:43:03Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 963e01b8-a116-4583-975f-839accc2142d + - 4e015451-ce10-4b98-8591-67c00ac11e52 + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:30 GMT + - Mon, 14 Sep 2020 22:43:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '42' status: code: 200 message: OK @@ -116,7 +115,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -126,27 +125,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - f74a3004-11ef-4eac-b18c-f56f6f7ef921 + - a44fbc41-a985-45ae-8b50-26524ca98cca content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:30 GMT + - Mon, 14 Sep 2020 22:43:07 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f74a3004-11ef-4eac-b18c-f56f6f7ef921 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/a44fbc41-a985-45ae-8b50-26524ca98cca strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '167' + - '236' status: code: 202 message: Accepted @@ -160,68 +159,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/f74a3004-11ef-4eac-b18c-f56f6f7ef921 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/a44fbc41-a985-45ae-8b50-26524ca98cca response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:31Z", - "lastUpdatedDateTime": "2020-07-10T18:53:33Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:08Z", + "lastUpdatedDateTime": "2020-09-14T22:43:09Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - be2352cb-2dd8-4f03-ac6e-3eb914f911b7 + - d118e0af-f526-4485-84fe-20b930879e43 + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:37 GMT + - Mon, 14 Sep 2020 22:43:15 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml index e4e55719a7b0..08abf8e6b052 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_bad_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://badurl.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,29 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "8f1e7239-2f6a-4040-b97f-1e4938485fbd"}, "message": "Failed to download image + "87faaca7-b911-4424-8844-dcfb5a5a3b25"}, "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 8f1e7239-2f6a-4040-b97f-1e4938485fbd + - 87faaca7-b911-4424-8844-dcfb5a5a3b25 + content-length: + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:41 GMT + - Mon, 14 Sep 2020 22:43:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3086' + - '3171' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml index 194c355d690b..c6cf34cae102 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_transform_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - c4ad6912-0f16-41a2-8674-fe61e96758fb + - 91f81647-ec73-4e21-931c-6458d8a39cf0 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:48 GMT + - Mon, 14 Sep 2020 22:43:15 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c4ad6912-0f16-41a2-8674-fe61e96758fb + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/91f81647-ec73-4e21-931c-6458d8a39cf0 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '247' + - '104' status: code: 202 message: Accepted @@ -47,21 +47,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/c4ad6912-0f16-41a2-8674-fe61e96758fb + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/91f81647-ec73-4e21-931c-6458d8a39cf0 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:48Z", - "lastUpdatedDateTime": "2020-07-10T18:53:51Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:15Z", + "lastUpdatedDateTime": "2020-09-14T22:43:19Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -193,88 +193,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -386,14 +385,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -411,19 +411,19 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 1eacf78f-159d-4c27-93e9-33d6053517c7 + - ef9bf832-d75e-43e8-929e-f7675007cf21 + content-length: + - '25281' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:52 GMT + - Mon, 14 Sep 2020 22:43:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '28' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml index d35a7faceff1..91b0c8aa48ef 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_multipage_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 703f3b1f-aea2-46a7-b72d-86392ec4ebcf + - 99c7c87a-83ef-41fb-aaa4-2ce2c321991b content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:54 GMT + - Mon, 14 Sep 2020 22:43:03 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/703f3b1f-aea2-46a7-b72d-86392ec4ebcf + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/99c7c87a-83ef-41fb-aaa4-2ce2c321991b strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '142' + - '377' status: code: 202 message: Accepted @@ -47,21 +47,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/703f3b1f-aea2-46a7-b72d-86392ec4ebcf + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/99c7c87a-83ef-41fb-aaa4-2ce2c321991b response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:54Z", - "lastUpdatedDateTime": "2020-07-10T18:53:57Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:03Z", + "lastUpdatedDateTime": "2020-09-14T22:43:07Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -193,88 +193,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -386,14 +385,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -411,19 +411,19 @@ interactions: "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: apim-request-id: - - 45802e17-6678-4e74-8521-6ad5601fe625 + - 8178dde7-0ea9-4950-96e1-4cf825085508 + content-length: + - '25281' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:59 GMT + - Mon, 14 Sep 2020 22:43:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '29' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml index f5c93851b71a..ad6c1d48b2fc 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_bad_key.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,30 +13,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - 21b84f32-b41e-4208-94ad-26d3c90500b4 content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:53:59 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 22:43:08 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml index bc6ab27e60d2..57d2d179b60f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_auth_successful_key.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 6244a7c4-4064-4f25-a4a5-62e101708344 + - d3da1624-0831-456e-a38a-301cb6e63f01 content-length: - '0' date: - - Fri, 10 Jul 2020 18:54:00 GMT + - Mon, 14 Sep 2020 22:43:12 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6244a7c4-4064-4f25-a4a5-62e101708344 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/d3da1624-0831-456e-a38a-301cb6e63f01 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '160' + - '250' status: code: 202 message: Accepted @@ -47,68 +47,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6244a7c4-4064-4f25-a4a5-62e101708344 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/d3da1624-0831-456e-a38a-301cb6e63f01 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:00Z", - "lastUpdatedDateTime": "2020-07-10T18:54:03Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:13Z", + "lastUpdatedDateTime": "2020-09-14T22:43:15Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 5fa26e83-a1d2-4dcf-86c8-75044c399a3e + - 94d50910-0be5-41ae-89a9-11ad821f9318 + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:54:05 GMT + - Mon, 14 Sep 2020 22:43:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '17' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml index fcb8c6562b59..ebf9ef7cf753 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_include_field_elements.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 98706aae-1ac6-490e-9dfb-d1134e2ee9b1 + - dcde6428-8ca3-408c-bc57-d2e61700ab62 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:24 GMT + - Mon, 14 Sep 2020 22:43:09 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/98706aae-1ac6-490e-9dfb-d1134e2ee9b1 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/dcde6428-8ca3-408c-bc57-d2e61700ab62 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '246' + - '257' status: code: 202 message: Accepted @@ -47,22 +47,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/98706aae-1ac6-490e-9dfb-d1134e2ee9b1 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/dcde6428-8ca3-408c-bc57-d2e61700ab62 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:24Z", - "lastUpdatedDateTime": "2020-07-10T18:53:25Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:09Z", + "lastUpdatedDateTime": "2020-09-14T22:43:11Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -95,7 +95,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -137,58 +137,58 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - a4cf212e-0eb3-4ecc-bcb1-d110d8ea1a75 + - 553c946d-d084-44f6-a369-4b2a0a9de75d + content-length: + - '8501' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:29 GMT + - Mon, 14 Sep 2020 22:43:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '25' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml index 2883a132c8a0..6832d687ae1c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_jpg.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - 7b004ef0-2dbb-4be5-ab4f-ad4f9d586dce + - 647b5728-d0f4-44f0-8b1e-ec9364f876be content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:30 GMT + - Mon, 14 Sep 2020 22:43:15 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b004ef0-2dbb-4be5-ab4f-ad4f9d586dce + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/647b5728-d0f4-44f0-8b1e-ec9364f876be strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '229' + - '189' status: code: 202 message: Accepted @@ -47,68 +47,67 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b004ef0-2dbb-4be5-ab4f-ad4f9d586dce + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/647b5728-d0f4-44f0-8b1e-ec9364f876be response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:29Z", - "lastUpdatedDateTime": "2020-07-10T18:53:31Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:15Z", + "lastUpdatedDateTime": "2020-09-14T22:43:17Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: apim-request-id: - - 0c52fdea-21c6-42f6-97d3-c52b81cc6607 + - 5c3758af-20da-4601-b4f1-7683b37bbb8f + content-length: + - '2835' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:34 GMT + - Mon, 14 Sep 2020 22:43:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '14' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml index 9ddd5566b2ae..5e8a35b73b47 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_pass_stream.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "<_io.BufferedReader name=\''C:\\\\\\\\Users\\\\\\\\krpratic\\\\\\\\azure-sdk-for-python\\\\\\\\sdk\\\\\\\\formrecognizer\\\\\\\\azure-ai-formrecognizer\\\\\\\\tests\\\\\\\\sample_forms\\\\\\\\receipt\\\\\\\\contoso-receipt.png\''>"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,24 +13,24 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "25ea25c2-45c5-45ba-aa88-5ac327a59957"}, + string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "b6cb9a78-d64d-4630-8d44-329d378839ae"}, "message": "Image URL is badly formatted."}}' headers: apim-request-id: - - 25ea25c2-45c5-45ba-aa88-5ac327a59957 + - b6cb9a78-d64d-4630-8d44-329d378839ae + content-length: + - '144' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:35 GMT + - Mon, 14 Sep 2020 22:43:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml index 854289cee5e9..0d33011065f8 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_png.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: apim-request-id: - - a5bb5fb2-23aa-41f3-98f4-fb2b8ac9ce7d + - 82aa2e9c-ed29-4921-b90c-f5d707267b03 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:36 GMT + - Mon, 14 Sep 2020 22:43:21 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a5bb5fb2-23aa-41f3-98f4-fb2b8ac9ce7d + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/82aa2e9c-ed29-4921-b90c-f5d707267b03 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '478' + - '275' status: code: 202 message: Accepted @@ -47,64 +47,63 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a5bb5fb2-23aa-41f3-98f4-fb2b8ac9ce7d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/82aa2e9c-ed29-4921-b90c-f5d707267b03 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:36Z", - "lastUpdatedDateTime": "2020-07-10T18:53:39Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.659}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [349.3, 241.3, 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": - 1, "confidence": 0.516}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [319.9, 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], - "page": 1, "confidence": 0.986}, "MerchantPhoneNumber": {"type": "phoneNumber", - "text": "123-456-7890", "boundingBox": [306, 1005, 617, 1011, 615.9, 1070, - 304.9, 1064], "page": 1, "confidence": 0.99}, "TransactionDate": {"type": - "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, - 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, - "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", - "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", - "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, - 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": - "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, 1784.6, - 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], - "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": - "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, 626.6, 2014, - 628, 2077, 361.4, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": {"type": - "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, - 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:21Z", + "lastUpdatedDateTime": "2020-09-14T22:43:24Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.659}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [349.3, 241.3, + 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": 1, "confidence": 0.516}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [319.9, + 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], "page": 1, "confidence": 0.986}, + "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": + [306, 1005, 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99}, + "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", + "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": + 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": + "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": + "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM + (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, + 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + 0.559}}}, {"type": "object", "valueObject": {"Quantity": {"type": "number", + "valueNumber": 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, + 2084, 322, 2084], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "valueString": "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, + 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": + {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, + 2028, 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, "Subtotal": {"type": "number", "valueNumber": 1098.99, "text": "1098.99", - "boundingBox": [963, 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": - 1, "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": + "boundingBox": [963, 2260, 1136, 2254, 1137, 2320, 966, 2325], "page": 1, + "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": 0.713}, "Total": {"type": "number", "valueNumber": - 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, - 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: apim-request-id: - - bf3b1151-cbcf-4290-a65a-9e2fd54844b4 + - 043dd983-5c5d-4fe1-8788-00a31b804f9a + content-length: + - '2561' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:41 GMT + - Mon, 14 Sep 2020 22:43:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '15' + - '37' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml index 1734dab3bb32..c830483b321f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_jpg.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - 4c5a1914-5ce4-40ae-a9e1-e25a9b29d33b + - e15f2fbc-8282-49af-a4f5-cf390c094445 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:41 GMT + - Mon, 14 Sep 2020 22:43:21 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/4c5a1914-5ce4-40ae-a9e1-e25a9b29d33b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/e15f2fbc-8282-49af-a4f5-cf390c094445 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '161' + - '114' status: code: 202 message: Accepted @@ -47,22 +47,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/4c5a1914-5ce4-40ae-a9e1-e25a9b29d33b + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/e15f2fbc-8282-49af-a4f5-cf390c094445 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:42Z", - "lastUpdatedDateTime": "2020-07-10T18:53:44Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:21Z", + "lastUpdatedDateTime": "2020-09-14T22:43:23Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -95,7 +95,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -137,58 +137,58 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: apim-request-id: - - a986e631-e88e-4005-973f-ab101602abc3 + - 5b19d55b-4921-4bb4-851e-b8333482c429 + content-length: + - '8501' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:46 GMT + - Mon, 14 Sep 2020 22:43:26 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '21' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml index ce2622c3b59b..666d8d1c5aa0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipt_url_transform_png.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,27 +13,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: apim-request-id: - - b4d66064-7ae6-412c-bcd5-34505dc4891d + - 42736cd8-06de-4aa6-9132-d8715c26ee33 content-length: - '0' date: - - Fri, 10 Jul 2020 18:53:48 GMT + - Mon, 14 Sep 2020 22:43:19 GMT operation-location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/b4d66064-7ae6-412c-bcd5-34505dc4891d + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/42736cd8-06de-4aa6-9132-d8715c26ee33 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '322' + - '513' status: code: 202 message: Accepted @@ -47,22 +47,22 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/b4d66064-7ae6-412c-bcd5-34505dc4891d + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/42736cd8-06de-4aa6-9132-d8715c26ee33 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:48Z", - "lastUpdatedDateTime": "2020-07-10T18:53:50Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", - "boundingBox": [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, - {"text": "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], - "words": [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, - 325, 644], "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": - [319, 690, 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": - [323, 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:43:20Z", + "lastUpdatedDateTime": "2020-09-14T22:43:21Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [619, + 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", "boundingBox": + [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, {"text": + "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], "words": + [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, 325, 644], + "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": [319, 690, + 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": [323, + 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", "boundingBox": [399, 692, 502, 694, 498, 756, 395, 754], "confidence": 0.958}, {"text": "Street", "boundingBox": [514, 695, 656, 698, 653, 758, 510, 756], "confidence": 0.958}]}, {"text": "Redmond, WA 98052", "boundingBox": [317, @@ -145,54 +145,53 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": [306, 1005, - 617, 1011, 615.9, 1070, 304.9, 1064], "page": 1, "confidence": 0.99, "elements": + 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", - "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, 1223.5, - 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985, "elements": + "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [304, 1224, + 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628.1, - 1227, 627, 1291, 516.8, 1289], "page": 1, "confidence": 0.968, "elements": - ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": - [{"type": "object", "valueObject": {"Name": {"type": "string", "valueString": - "8GB RAM (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, - 731, 1785, 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916, "elements": - ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "TotalPrice": {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": - [939, 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628, + 1228, 627, 1290, 517, 1289], "page": 1, "confidence": 0.968, "elements": ["#/readResults/0/lines/5/words/1"]}, + "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Name": {"type": "string", "valueString": "8GB RAM (Black)", "text": "8GB + RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, 1854, 370, + 1850.6], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559, "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1"]}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], + {"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, 2084, 322, 2084], "page": 1, "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/0"]}, "Name": {"type": "string", "valueString": "SurfacePen", "text": "SurfacePen", - "boundingBox": [360, 2020, 626.6, 2014, 628, 2077, 361.4, 2083], "page": 1, - "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": - {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, - 2028, 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386, - "elements": ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": - "number", "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, - 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": 1, "confidence": - 0.964, "elements": ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": - "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, - 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": - 0.713, "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "Total": {"type": "number", "valueNumber": 1203.39, "text": "1203.39", "boundingBox": - [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": - 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' + "boundingBox": [360, 2020, 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": + 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, + 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386, "elements": + ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": "number", + "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, 2260, 1136, + 2254, 1137, 2320, 966, 2325], "page": 1, "confidence": 0.964, "elements": + ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": "number", "valueNumber": + 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, + 2434.2, 944, 2438], "page": 1, "confidence": 0.713, "elements": ["#/readResults/0/lines/16/words/0", + "#/readResults/0/lines/16/words/1"]}, "Total": {"type": "number", "valueNumber": + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: apim-request-id: - - 6561f3f2-a33a-4236-a096-535002be35bb + - 8e943b2d-4f28-4729-8e65-cea5cf629209 + content-length: + - '8807' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:53 GMT + - Mon, 14 Sep 2020 22:43:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '23' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml index 37ac0de85667..fe7ef658af48 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url.test_receipts_encoded_url.yaml @@ -3,7 +3,7 @@ interactions: body: 'b''{"source": "https://fakeuri.com/blank%20space"}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -13,29 +13,29 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "73804c1d-4999-420b-8cfd-9a20f3ea602b"}, "message": "Failed to download image + "d0430a7a-f39e-4dad-bb9f-a24e0039af5d"}, "message": "Failed to download image from input URL."}}' headers: apim-request-id: - - 73804c1d-4999-420b-8cfd-9a20f3ea602b + - d0430a7a-f39e-4dad-bb9f-a24e0039af5d + content-length: + - '161' content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:53:57 GMT + - Mon, 14 Sep 2020 22:43:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '3888' + - '4719' status: code: 400 message: Bad Request diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml index 9ce216541286..007b5fe66ecb 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_polling_interval.yaml @@ -2,179 +2,181 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 1ab3a403-fd73-4278-bd41-6158738e7d06 + apim-request-id: 82b9b8b0-da08-4b4f-a209-c5e67ca16f5f content-length: '0' - date: Fri, 10 Jul 2020 18:53:58 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/1ab3a403-fd73-4278-bd41-6158738e7d06 + date: Mon, 14 Sep 2020 22:44:06 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/82b9b8b0-da08-4b4f-a209-c5e67ca16f5f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '160' + x-envoy-upstream-service-time: '135' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/1ab3a403-fd73-4278-bd41-6158738e7d06 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/82b9b8b0-da08-4b4f-a209-c5e67ca16f5f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:53:59Z", - "lastUpdatedDateTime": "2020-07-10T18:54:01Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:06Z", + "lastUpdatedDateTime": "2020-09-14T22:44:07Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: d08fc23f-e1c3-4bfe-976f-729201c6918f + apim-request-id: 7a3acf7d-56c2-4d4c-a407-3b71b8e6a52b + content-length: '2835' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:05 GMT + date: Mon, 14 Sep 2020 22:44:12 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '33' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/1ab3a403-fd73-4278-bd41-6158738e7d06 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/82b9b8b0-da08-4b4f-a209-c5e67ca16f5f - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 975aaabd-4595-4151-ae66-56fd38cdc184 + apim-request-id: 4d4159ec-f8f8-418a-a96c-8571216e9b24 content-length: '0' - date: Fri, 10 Jul 2020 18:54:05 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/975aaabd-4595-4151-ae66-56fd38cdc184 + date: Mon, 14 Sep 2020 22:44:12 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/4d4159ec-f8f8-418a-a96c-8571216e9b24 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '149' + x-envoy-upstream-service-time: '132' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/975aaabd-4595-4151-ae66-56fd38cdc184 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/4d4159ec-f8f8-418a-a96c-8571216e9b24 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:05Z", - "lastUpdatedDateTime": "2020-07-10T18:54:07Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:12Z", + "lastUpdatedDateTime": "2020-09-14T22:44:14Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 85eaf982-a7eb-430c-bfa7-77e5e20fa593 + apim-request-id: 211d380e-51f1-4fc6-bea5-8321a09146ff + content-length: '2835' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:12 GMT + date: Mon, 14 Sep 2020 22:44:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '13' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/975aaabd-4595-4151-ae66-56fd38cdc184 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/4d4159ec-f8f8-418a-a96c-8571216e9b24 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml index 1bf5907a569c..f7a2de1efb42 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_bad_url.yaml @@ -2,29 +2,31 @@ interactions: - request: body: 'b''{"source": "https://badurl.jpg"}''' headers: + Accept: + - application/json Content-Length: - '32' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "5c96f743-428b-4ebc-a8db-a6ec4eb57bc8"}, "message": "Failed to download image + "93c4c014-e852-482a-b904-3917a67f1423"}, "message": "Failed to download image from input URL."}}' headers: - apim-request-id: 5c96f743-428b-4ebc-a8db-a6ec4eb57bc8 + apim-request-id: 93c4c014-e852-482a-b904-3917a67f1423 + content-length: '161' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:15 GMT + date: Mon, 14 Sep 2020 22:44:08 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3062' + x-envoy-upstream-service-time: '3109' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml index 69f41b26833b..0f8d123ffa0d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_transform_url.yaml @@ -2,48 +2,50 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 719b20d5-2686-4068-b213-d3356c52391f + apim-request-id: 19835961-d3e4-4288-a555-dc6af969972c content-length: '0' - date: Fri, 10 Jul 2020 18:54:27 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/719b20d5-2686-4068-b213-d3356c52391f + date: Mon, 14 Sep 2020 22:44:20 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/19835961-d3e4-4288-a555-dc6af969972c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '143' + x-envoy-upstream-service-time: '96' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/719b20d5-2686-4068-b213-d3356c52391f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/19835961-d3e4-4288-a555-dc6af969972c response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:27Z", - "lastUpdatedDateTime": "2020-07-10T18:54:30Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:20Z", + "lastUpdatedDateTime": "2020-09-14T22:44:24Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -175,88 +177,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -368,14 +369,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -392,15 +394,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: a007bed8-8060-4d7d-8887-fb38c372be65 + apim-request-id: 4cf973a8-50ef-4abe-932e-de6e8aa17e68 + content-length: '25281' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:32 GMT + date: Mon, 14 Sep 2020 22:44:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '24' + x-envoy-upstream-service-time: '27' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/719b20d5-2686-4068-b213-d3356c52391f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/19835961-d3e4-4288-a555-dc6af969972c version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml index c69bb6fce256..6e9191744834 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_multipage_url.yaml @@ -2,48 +2,50 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/forms/multipage_invoice1.pdf"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: fd160496-4aa4-473b-9a84-2f0438929e13 + apim-request-id: 6c217f6e-8b4d-4023-a98b-0b18e87a720f content-length: '0' - date: Fri, 10 Jul 2020 18:54:32 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/fd160496-4aa4-473b-9a84-2f0438929e13 + date: Mon, 14 Sep 2020 22:44:09 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6c217f6e-8b4d-4023-a98b-0b18e87a720f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '211' + x-envoy-upstream-service-time: '255' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/fd160496-4aa4-473b-9a84-2f0438929e13 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6c217f6e-8b4d-4023-a98b-0b18e87a720f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:33Z", - "lastUpdatedDateTime": "2020-07-10T18:54:36Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, - "unit": "inch", "language": "en", "lines": [{"text": "Company A Invoice", - "boundingBox": [0.8861, 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], - "words": [{"text": "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, - 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": - [1.6696, 1.1242, 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": - 1}, {"text": "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, - 1.2485, 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:10Z", + "lastUpdatedDateTime": "2020-09-14T22:44:14Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11, + "unit": "inch", "lines": [{"text": "Company A Invoice", "boundingBox": [0.8861, + 1.1217, 2.3783, 1.1217, 2.3783, 1.2812, 0.8861, 1.2812], "words": [{"text": + "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, + 0.8861, 1.2812], "confidence": 1}, {"text": "A", "boundingBox": [1.6696, 1.1242, + 1.7749, 1.1242, 1.7749, 1.2473, 1.6696, 1.2473], "confidence": 1}, {"text": + "Invoice", "boundingBox": [1.8389, 1.1217, 2.3783, 1.1217, 2.3783, 1.2485, + 1.8389, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": @@ -175,88 +177,87 @@ interactions: [1.747, 6.6553, 2.4278, 6.6553, 2.4278, 6.7981, 1.747, 6.7981], "confidence": 1}, {"text": "Baggins__________", "boundingBox": [2.4823, 6.6581, 3.8342, 6.6581, 3.8342, 6.7981, 2.4823, 6.7981], "confidence": 1}]}]}, {"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", "lines": [{"text": "Company B Invoice", "boundingBox": [0.8861, - 1.1217, 2.3734, 1.1217, 2.3734, 1.2812, 0.8861, 1.2812], "words": [{"text": - "Company", "boundingBox": [0.8861, 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, - 0.8861, 1.2812], "confidence": 1}, {"text": "B", "boundingBox": [1.6836, 1.1248, - 1.764, 1.1248, 1.764, 1.2469, 1.6836, 1.2469], "confidence": 1}, {"text": - "Invoice", "boundingBox": [1.8336, 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, - 1.8336, 1.2485], "confidence": 1}]}, {"text": "Invoice For:", "boundingBox": - [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, 1.2121, 6.0211, 1.2121], "words": - [{"text": "Invoice", "boundingBox": [6.0211, 1.0656, 6.6362, 1.0656, 6.6362, - 1.2121, 6.0211, 1.2121], "confidence": 1}, {"text": "For:", "boundingBox": - [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, 6.7147, 1.2121], "confidence": - 1}]}, {"text": "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, - 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": "Address:", "boundingBox": - [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "confidence": - 1}]}, {"text": "Frodo Baggins", "boundingBox": [6.0164, 1.4506, 6.9506, 1.4506, - 6.9506, 1.5931, 6.0164, 1.5931], "words": [{"text": "Frodo", "boundingBox": - [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, 1.5649, 6.0164, 1.5649], "confidence": - 1}, {"text": "Baggins", "boundingBox": [6.45, 1.4556, 6.9506, 1.4556, 6.9506, - 1.5931, 6.45, 1.5931], "confidence": 1}]}, {"text": "123 Hobbit Lane", "boundingBox": - [6.0165, 1.6707, 7.1006, 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": - [{"text": "123", "boundingBox": [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, - 6.0165, 1.7854], "confidence": 1}, {"text": "Hobbit", "boundingBox": [6.3033, - 1.6707, 6.7463, 1.6707, 6.7463, 1.7854, 6.3033, 1.7854], "confidence": 1}, - {"text": "Lane", "boundingBox": [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, - 6.803, 1.7854], "confidence": 1}]}, {"text": "567 Main St.", "boundingBox": - [0.8852, 1.846, 1.713, 1.846, 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": - "567", "boundingBox": [0.8852, 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, - 1.9554], "confidence": 1}, {"text": "Main", "boundingBox": [1.1777, 1.846, - 1.5022, 1.846, 1.5022, 1.9554, 1.1777, 1.9554], "confidence": 1}, {"text": - "St.", "boundingBox": [1.5558, 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, - 1.9554], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [6.0164, - 1.891, 6.9793, 1.891, 6.9793, 2.0275, 6.0164, 2.0275], "words": [{"text": - "Redmond,", "boundingBox": [6.0164, 1.891, 6.6861, 1.891, 6.6861, 2.0275, - 6.0164, 2.0275], "confidence": 1}, {"text": "WA", "boundingBox": [6.7408, - 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, 2.0044], "confidence": 1}]}, - {"text": "Redmond, WA", "boundingBox": [0.891, 2.061, 1.8537, 2.061, 1.8537, - 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", "boundingBox": [0.891, - 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], "confidence": 1}, {"text": - "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, 1.8537, 2.1744, 1.6152, - 2.1744], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": [6.0105, - 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "words": [{"text": - "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, - 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", "boundingBox": - [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "words": - [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, - 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", "boundingBox": - [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], "words": [{"text": - "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, - 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": [3.2527, 2.9996, - 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": [{"text": "Quantity", - "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], - "confidence": 1}]}, {"text": "Price", "boundingBox": [5.423, 2.9996, 5.7372, - 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": "Price", "boundingBox": - [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "confidence": - 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, 1.174, 3.2118, 1.174, - 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": [1.0832, 3.2118, - 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": 1}]}, {"text": - "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, 3.319, 3.2589, - 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, - 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": - [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, 3.319], "words": [{"text": + "angle": 0, "width": 8.4967, "height": 10.9967, "unit": "inch"}, {"page": + 3, "angle": 0, "width": 8.5, "height": 11, "unit": "inch", "lines": [{"text": + "Company B Invoice", "boundingBox": [0.8861, 1.1217, 2.3734, 1.1217, 2.3734, + 1.2812, 0.8861, 1.2812], "words": [{"text": "Company", "boundingBox": [0.8861, + 1.1232, 1.6203, 1.1232, 1.6203, 1.2812, 0.8861, 1.2812], "confidence": 1}, + {"text": "B", "boundingBox": [1.6836, 1.1248, 1.764, 1.1248, 1.764, 1.2469, + 1.6836, 1.2469], "confidence": 1}, {"text": "Invoice", "boundingBox": [1.8336, + 1.1217, 2.3734, 1.1217, 2.3734, 1.2485, 1.8336, 1.2485], "confidence": 1}]}, + {"text": "Invoice For:", "boundingBox": [6.0211, 1.0656, 7.0357, 1.0656, 7.0357, + 1.2121, 6.0211, 1.2121], "words": [{"text": "Invoice", "boundingBox": [6.0211, + 1.0656, 6.6362, 1.0656, 6.6362, 1.2121, 6.0211, 1.2121], "confidence": 1}, + {"text": "For:", "boundingBox": [6.7147, 1.0691, 7.0357, 1.0691, 7.0357, 1.2121, + 6.7147, 1.2121], "confidence": 1}]}, {"text": "Address:", "boundingBox": [0.8791, + 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, 0.8791, 1.6155], "words": [{"text": + "Address:", "boundingBox": [0.8791, 1.4825, 1.5657, 1.4825, 1.5657, 1.6155, + 0.8791, 1.6155], "confidence": 1}]}, {"text": "Frodo Baggins", "boundingBox": + [6.0164, 1.4506, 6.9506, 1.4506, 6.9506, 1.5931, 6.0164, 1.5931], "words": + [{"text": "Frodo", "boundingBox": [6.0164, 1.4506, 6.3895, 1.4506, 6.3895, + 1.5649, 6.0164, 1.5649], "confidence": 1}, {"text": "Baggins", "boundingBox": + [6.45, 1.4556, 6.9506, 1.4556, 6.9506, 1.5931, 6.45, 1.5931], "confidence": + 1}]}, {"text": "123 Hobbit Lane", "boundingBox": [6.0165, 1.6707, 7.1006, + 1.6707, 7.1006, 1.7854, 6.0165, 1.7854], "words": [{"text": "123", "boundingBox": + [6.0165, 1.6772, 6.2434, 1.6772, 6.2434, 1.7854, 6.0165, 1.7854], "confidence": + 1}, {"text": "Hobbit", "boundingBox": [6.3033, 1.6707, 6.7463, 1.6707, 6.7463, + 1.7854, 6.3033, 1.7854], "confidence": 1}, {"text": "Lane", "boundingBox": + [6.803, 1.6782, 7.1006, 1.6782, 7.1006, 1.7854, 6.803, 1.7854], "confidence": + 1}]}, {"text": "567 Main St.", "boundingBox": [0.8852, 1.846, 1.713, 1.846, + 1.713, 1.9554, 0.8852, 1.9554], "words": [{"text": "567", "boundingBox": [0.8852, + 1.8472, 1.1203, 1.8472, 1.1203, 1.9554, 0.8852, 1.9554], "confidence": 1}, + {"text": "Main", "boundingBox": [1.1777, 1.846, 1.5022, 1.846, 1.5022, 1.9554, + 1.1777, 1.9554], "confidence": 1}, {"text": "St.", "boundingBox": [1.5558, + 1.8472, 1.713, 1.8472, 1.713, 1.9554, 1.5558, 1.9554], "confidence": 1}]}, + {"text": "Redmond, WA", "boundingBox": [6.0164, 1.891, 6.9793, 1.891, 6.9793, + 2.0275, 6.0164, 2.0275], "words": [{"text": "Redmond,", "boundingBox": [6.0164, + 1.891, 6.6861, 1.891, 6.6861, 2.0275, 6.0164, 2.0275], "confidence": 1}, {"text": + "WA", "boundingBox": [6.7408, 1.8982, 6.9793, 1.8982, 6.9793, 2.0044, 6.7408, + 2.0044], "confidence": 1}]}, {"text": "Redmond, WA", "boundingBox": [0.891, + 2.061, 1.8537, 2.061, 1.8537, 2.1975, 0.891, 2.1975], "words": [{"text": "Redmond,", + "boundingBox": [0.891, 2.061, 1.5605, 2.061, 1.5605, 2.1975, 0.891, 2.1975], + "confidence": 1}, {"text": "WA", "boundingBox": [1.6152, 2.0682, 1.8537, 2.0682, + 1.8537, 2.1744, 1.6152, 2.1744], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [6.0105, 2.1187, 6.9371, 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], + "words": [{"text": "555-555-5555", "boundingBox": [6.0105, 2.1187, 6.9371, + 2.1187, 6.9371, 2.2254, 6.0105, 2.2254], "confidence": 1}]}, {"text": "555-555-5555", + "boundingBox": [0.8852, 2.2887, 1.8119, 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], + "words": [{"text": "555-555-5555", "boundingBox": [0.8852, 2.2887, 1.8119, + 2.2887, 1.8119, 2.3954, 0.8852, 2.3954], "confidence": 1}]}, {"text": "Item", + "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, 1.3842, 3.109, 1.0943, 3.109], + "words": [{"text": "Item", "boundingBox": [1.0943, 3.0018, 1.3842, 3.0018, + 1.3842, 3.109, 1.0943, 3.109], "confidence": 1}]}, {"text": "Quantity", "boundingBox": + [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, 3.1371, 3.2527, 3.1371], "words": + [{"text": "Quantity", "boundingBox": [3.2527, 2.9996, 3.8367, 2.9996, 3.8367, + 3.1371, 3.2527, 3.1371], "confidence": 1}]}, {"text": "Price", "boundingBox": + [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, 3.109], "words": [{"text": + "Price", "boundingBox": [5.423, 2.9996, 5.7372, 2.9996, 5.7372, 3.109, 5.423, + 3.109], "confidence": 1}]}, {"text": "A", "boundingBox": [1.0832, 3.2118, + 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "words": [{"text": "A", "boundingBox": + [1.0832, 3.2118, 1.174, 3.2118, 1.174, 3.318, 1.0832, 3.318], "confidence": + 1}]}, {"text": "10", "boundingBox": [3.2589, 3.2108, 3.4067, 3.2108, 3.4067, + 3.319, 3.2589, 3.319], "words": [{"text": "10", "boundingBox": [3.2589, 3.2108, + 3.4067, 3.2108, 3.4067, 3.319, 3.2589, 3.319], "confidence": 1}]}, {"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, 3.2108, 5.8617, 3.319, 5.4232, - 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": [1.0943, 3.4256, - 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": "B", "boundingBox": - [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "confidence": - 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, - 3.5323, 3.2541, 3.5323], "words": [{"text": "20", "boundingBox": [3.2541, - 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "confidence": 1}]}, - {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, - 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": [5.4232, - 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": 1}]}, - {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, 3.7421, - 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, - 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": "40", - "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], - "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, - 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", "boundingBox": - [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], "words": - [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, - 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": + 3.319], "words": [{"text": "100.99", "boundingBox": [5.4232, 3.2108, 5.8617, + 3.2108, 5.8617, 3.319, 5.4232, 3.319], "confidence": 1}]}, {"text": "B", "boundingBox": + [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, 3.531], "words": [{"text": + "B", "boundingBox": [1.0943, 3.4256, 1.1637, 3.4256, 1.1637, 3.531, 1.0943, + 3.531], "confidence": 1}]}, {"text": "20", "boundingBox": [3.2541, 3.4241, + 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], "words": [{"text": "20", + "boundingBox": [3.2541, 3.4241, 3.4067, 3.4241, 3.4067, 3.5323, 3.2541, 3.5323], + "confidence": 1}]}, {"text": "140.67", "boundingBox": [5.4232, 3.4241, 5.8622, + 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "words": [{"text": "140.67", "boundingBox": + [5.4232, 3.4241, 5.8622, 3.4241, 5.8622, 3.5323, 5.4232, 3.5323], "confidence": + 1}]}, {"text": "C", "boundingBox": [1.0882, 3.6343, 1.1647, 3.6343, 1.1647, + 3.7421, 1.0882, 3.7421], "words": [{"text": "C", "boundingBox": [1.0882, 3.6343, + 1.1647, 3.6343, 1.1647, 3.7421, 1.0882, 3.7421], "confidence": 1}]}, {"text": + "40", "boundingBox": [3.2486, 3.6341, 3.4067, 3.6341, 3.4067, 3.7423, 3.2486, + 3.7423], "words": [{"text": "40", "boundingBox": [3.2486, 3.6341, 3.4067, + 3.6341, 3.4067, 3.7423, 3.2486, 3.7423], "confidence": 1}]}, {"text": "150.66", + "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, 5.8634, 3.7423, 5.4232, 3.7423], + "words": [{"text": "150.66", "boundingBox": [5.4232, 3.6341, 5.8634, 3.6341, + 5.8634, 3.7423, 5.4232, 3.7423], "confidence": 1}]}, {"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "words": [{"text": "D", "boundingBox": [1.0943, 3.8456, 1.1753, 3.8456, 1.1753, 3.951, 1.0943, 3.951], "confidence": 1}]}, {"text": "10", "boundingBox": [3.2589, 3.8441, @@ -368,14 +369,15 @@ interactions: {"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, "elements": ["#/readResults/2/lines/25/words/0"]}, "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, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, - {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, + {"type": "number", "valueNumber": 40, "text": "40", "boundingBox": [3.2486, + 4.0546, 3.4067, 4.0546, 3.4067, 4.1627, 3.2486, 4.1627], "page": 3, "confidence": + 0, "elements": ["#/readResults/2/lines/26/words/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, "elements": ["#/readResults/2/lines/27/words/0"]}}}, {"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, "elements": ["#/readResults/2/lines/28/words/0"]}, "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, "elements": ["#/readResults/2/lines/30/words/0"]}}}, @@ -392,15 +394,15 @@ interactions: [5.811, 5.3445, 6.3422, 5.3445, 6.3422, 5.4533, 5.811, 5.4533], "page": 3, "confidence": 0.985, "elements": ["#/readResults/2/lines/36/words/1"]}}}]}}' headers: - apim-request-id: 6d7f7138-b11a-47ac-87a1-7155faf115a8 + apim-request-id: 31ef564e-9ff5-402f-bc71-a84b1f36bbcb + content-length: '25281' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:37 GMT + date: Mon, 14 Sep 2020 22:44:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '23' + x-envoy-upstream-service-time: '26' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/fd160496-4aa4-473b-9a84-2f0438929e13 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6c217f6e-8b4d-4023-a98b-0b18e87a720f version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml index 486e9b923a66..6c63bdfc6521 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_bad_key.yaml @@ -2,29 +2,26 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 05cbae83-0862-470d-a0a3-9ca240ccceb1 - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:54:38 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 22:44:15 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml index 5b689ef0e1be..72e12d9e3765 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_auth_successful_key.yaml @@ -2,90 +2,91 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: 6d3381a6-a574-4ca2-b62c-996ef694e2f3 + apim-request-id: 46ec2c99-774e-4347-8ccd-17b9f182d602 content-length: '0' - date: Fri, 10 Jul 2020 18:54:39 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6d3381a6-a574-4ca2-b62c-996ef694e2f3 + date: Mon, 14 Sep 2020 22:44:24 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/46ec2c99-774e-4347-8ccd-17b9f182d602 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '151' + x-envoy-upstream-service-time: '130' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6d3381a6-a574-4ca2-b62c-996ef694e2f3 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/46ec2c99-774e-4347-8ccd-17b9f182d602 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:39Z", - "lastUpdatedDateTime": "2020-07-10T18:54:41Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:25Z", + "lastUpdatedDateTime": "2020-09-14T22:44:26Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 7a41a04c-b467-40ef-8df0-2a497f4434b1 + apim-request-id: 23c825f7-e271-43bc-8e53-757708cd11b1 + content-length: '2835' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:44 GMT + date: Mon, 14 Sep 2020 22:44:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '12' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/6d3381a6-a574-4ca2-b62c-996ef694e2f3 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/46ec2c99-774e-4347-8ccd-17b9f182d602 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml index 865575d394bd..0904597fd2e0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_include_field_elements.yaml @@ -2,49 +2,51 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 64164c37-e238-484c-bf48-262612bc1b4f + apim-request-id: 6803dda5-b865-4952-970c-3f5c1ffdb3b1 content-length: '0' - date: Fri, 10 Jul 2020 18:54:44 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/64164c37-e238-484c-bf48-262612bc1b4f + date: Mon, 14 Sep 2020 22:44:15 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6803dda5-b865-4952-970c-3f5c1ffdb3b1 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '151' + x-envoy-upstream-service-time: '144' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/64164c37-e238-484c-bf48-262612bc1b4f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6803dda5-b865-4952-970c-3f5c1ffdb3b1 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:45Z", - "lastUpdatedDateTime": "2020-07-10T18:54:46Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:16Z", + "lastUpdatedDateTime": "2020-09-14T22:44:18Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -77,7 +79,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -119,53 +121,53 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: 484c0508-aa65-47b0-9156-290e5823e022 + apim-request-id: 3274240e-8445-4d35-b5f2-28e94ae27e13 + content-length: '8501' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:49 GMT + date: Mon, 14 Sep 2020 22:44:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '22' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/64164c37-e238-484c-bf48-262612bc1b4f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/6803dda5-b865-4952-970c-3f5c1ffdb3b1 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml index f8db49d32b26..e43aa8e8b6f0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_jpg.yaml @@ -2,90 +2,91 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: eb9c34ce-8f53-45df-b576-de178437addd + apim-request-id: b1af06bd-3cb3-4a8c-8faf-511f7219de21 content-length: '0' - date: Fri, 10 Jul 2020 18:54:51 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/eb9c34ce-8f53-45df-b576-de178437addd + date: Mon, 14 Sep 2020 22:44:21 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/b1af06bd-3cb3-4a8c-8faf-511f7219de21 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '145' + x-envoy-upstream-service-time: '133' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/eb9c34ce-8f53-45df-b576-de178437addd + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/b1af06bd-3cb3-4a8c-8faf-511f7219de21 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:50Z", - "lastUpdatedDateTime": "2020-07-10T18:54:52Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.692}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [378.2, 292.4, 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], - "page": 1, "confidence": 0.613}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [302, 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], - "page": 1, "confidence": 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", - "valuePhoneNumber": "+19876543210", "text": "987-654-3210", "boundingBox": - [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": 1, "confidence": - 0.99}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": - "6/10/2019", "boundingBox": [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, - 1313.5], "page": 1, "confidence": 0.99}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, 677.3, - 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": 0.977}, "Items": - {"type": "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, - 295, 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92}, "Name": {"type": - "string", "valueString": "Cappuccino", "text": "Cappuccino", "boundingBox": - [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": 1, "confidence": + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:22Z", + "lastUpdatedDateTime": "2020-09-14T22:44:23Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.692}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [378.2, 292.4, + 1117.7, 468.3, 1035.7, 812.7, 296.3, 636.8], "page": 1, "confidence": 0.613}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [302, + 675.8, 848.1, 793.7, 809.9, 970.4, 263.9, 852.5], "page": 1, "confidence": + 0.99}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": + "+19876543210", "text": "987-654-3210", "boundingBox": [278, 1004, 656, 1057, + 647, 1123, 271, 1075], "page": 1, "confidence": 0.99}, "TransactionDate": + {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99}, + "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", + "boundingBox": [541, 1248, 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": + 0.977}, "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [245, 1583, 299, 1585, 295, 1676, 241, 1671], "page": 1, "confidence": 0.92}, + "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": 0.923}, "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", - "boundingBox": [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": - 1, "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": - {"type": "number", "text": "1", "boundingBox": [232, 1834, 286.6, 1835, 285, - 1921, 230.4, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "boundingBox": [1108, 1584, 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, + "confidence": 0.918}}}, {"type": "object", "valueObject": {"Quantity": {"type": + "number", "valueNumber": 1, "text": "1", "boundingBox": [232, 1834, 286, 1836, + 285, 1920, 231, 1920], "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916}, - "TotalPrice": {"type": "number", "text": "$9.5", "boundingBox": [1133.9, 1955, - 1257, 1952, 1259.1, 2036, 1136, 2039], "page": 1, "confidence": 0.916}}}]}, - "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": - 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": - [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": - 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": "1.63", "boundingBox": - [1094, 2479, 1267.7, 2485, 1264, 2591, 1090.3, 2585], "page": 1, "confidence": - 0.941}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", - "boundingBox": [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], - "page": 1, "confidence": 0.985}}}]}}' + "TotalPrice": {"type": "number", "valueNumber": 9.5, "text": "$9.5", "boundingBox": + [1135, 1955, 1257, 1952, 1259, 2036, 1136, 2039], "page": 1, "confidence": + 0.916}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", + "boundingBox": [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, + "confidence": 0.955}, "Tax": {"type": "number", "valueNumber": 1.17, "text": + "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": + 1, "confidence": 0.979}, "Tip": {"type": "number", "valueNumber": 1.63, "text": + "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, 1091, 2585], "page": + 1, "confidence": 0.941}, "Total": {"type": "number", "valueNumber": 14.5, + "text": "$14.50", "boundingBox": [1034, 2620, 1384, 2638, 1380, 2763, 1030, + 2739], "page": 1, "confidence": 0.985}}}]}}' headers: - apim-request-id: 4485a238-19f4-4613-a487-a4a6addbb7d6 + apim-request-id: 11e37149-8614-4f8e-9421-d685dfa31948 + content-length: '2835' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:55 GMT + date: Mon, 14 Sep 2020 22:44:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '21' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/eb9c34ce-8f53-45df-b576-de178437addd + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/b1af06bd-3cb3-4a8c-8faf-511f7219de21 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml index b1e4d39f374f..6c92e96a0158 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_pass_stream.yaml @@ -2,28 +2,30 @@ interactions: - request: body: 'b''{"source": "b\''\\\\x89PNG\''"}''' headers: + Accept: + - application/json Content-Length: - '25' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: - string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "0a55bfe6-0706-4586-8d25-2594edc2928c"}, + string: '{"error": {"code": "InvalidImageURL", "innerError": {"requestId": "b208753b-e9ab-4b1f-9ed2-7f76591307cc"}, "message": "Image URL is badly formatted."}}' headers: - apim-request-id: 0a55bfe6-0706-4586-8d25-2594edc2928c + apim-request-id: b208753b-e9ab-4b1f-9ed2-7f76591307cc + content-length: '144' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:05 GMT + date: Mon, 14 Sep 2020 22:44:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3' + x-envoy-upstream-service-time: '4' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml index d80da9a8f096..eaab5a2701b1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_png.yaml @@ -2,86 +2,87 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png"}''' headers: + Accept: + - application/json Content-Length: - '171' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '' headers: - apim-request-id: a476fd7f-3909-498f-a627-6c6a8ed7549f + apim-request-id: b3eae151-05c6-4292-8431-aabd7892ab7f content-length: '0' - date: Fri, 10 Jul 2020 18:54:06 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a476fd7f-3909-498f-a627-6c6a8ed7549f + date: Mon, 14 Sep 2020 22:44:27 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/b3eae151-05c6-4292-8431-aabd7892ab7f strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '268' + x-envoy-upstream-service-time: '373' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a476fd7f-3909-498f-a627-6c6a8ed7549f + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/b3eae151-05c6-4292-8431-aabd7892ab7f response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:06Z", - "lastUpdatedDateTime": "2020-07-10T18:54:08Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en"}], "documentResults": [{"docType": - "prebuilt:receipt", "pageRange": [1, 1], "fields": {"ReceiptType": {"type": - "string", "valueString": "Itemized", "confidence": 0.659}, "MerchantName": - {"type": "string", "valueString": "Contoso Contoso", "text": "Contoso Contoso", - "boundingBox": [349.3, 241.3, 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": - 1, "confidence": 0.516}, "MerchantAddress": {"type": "string", "valueString": - "123 Main Street Redmond, WA 98052", "text": "123 Main Street Redmond, WA - 98052", "boundingBox": [319.9, 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], - "page": 1, "confidence": 0.986}, "MerchantPhoneNumber": {"type": "phoneNumber", - "text": "123-456-7890", "boundingBox": [306, 1005, 617, 1011, 615.9, 1070, - 304.9, 1064], "page": 1, "confidence": 0.99}, "TransactionDate": {"type": - "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, - 1223.5, 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985}, - "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": "13:59", - "boundingBox": [518, 1225, 628.1, 1227, 627, 1291, 516.8, 1289], "page": 1, - "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": "object", - "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM (Black)", - "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, - 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": {"type": - "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, 1784.6, - 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], - "page": 1, "confidence": 0.858}, "Name": {"type": "string", "valueString": - "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, 626.6, 2014, - 628, 2077, 361.4, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": {"type": - "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, - 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:28Z", + "lastUpdatedDateTime": "2020-09-14T22:44:30Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:receipt", + "pageRange": [1, 1], "fields": {"ReceiptType": {"type": "string", "valueString": + "Itemized", "confidence": 0.659}, "MerchantName": {"type": "string", "valueString": + "Contoso Contoso", "text": "Contoso Contoso", "boundingBox": [349.3, 241.3, + 1058, 284.4, 1033.5, 687.1, 324.8, 644], "page": 1, "confidence": 0.516}, + "MerchantAddress": {"type": "string", "valueString": "123 Main Street Redmond, + WA 98052", "text": "123 Main Street Redmond, WA 98052", "boundingBox": [319.9, + 689.9, 750.7, 697.5, 747.8, 865.6, 317, 858], "page": 1, "confidence": 0.986}, + "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": + [306, 1005, 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99}, + "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", + "boundingBox": [304, 1224, 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": + 0.985}, "TransactionTime": {"type": "time", "valueTime": "13:59:00", "text": + "13:59", "boundingBox": [518, 1225, 628, 1228, 627, 1290, 517, 1289], "page": + 1, "confidence": 0.968}, "Items": {"type": "array", "valueArray": [{"type": + "object", "valueObject": {"Name": {"type": "string", "valueString": "8GB RAM + (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, + 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + 0.559}}}, {"type": "object", "valueObject": {"Quantity": {"type": "number", + "valueNumber": 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, + 2084, 322, 2084], "page": 1, "confidence": 0.858}, "Name": {"type": "string", + "valueString": "SurfacePen", "text": "SurfacePen", "boundingBox": [360, 2020, + 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": 0.858}, "TotalPrice": + {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, + 2028, 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386}}}]}, "Subtotal": {"type": "number", "valueNumber": 1098.99, "text": "1098.99", - "boundingBox": [963, 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": - 1, "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": + "boundingBox": [963, 2260, 1136, 2254, 1137, 2320, 966, 2325], "page": 1, + "confidence": 0.964}, "Tax": {"type": "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": 0.713}, "Total": {"type": "number", "valueNumber": - 1203.39, "text": "1203.39", "boundingBox": [955, 2593.9, 1123, 2611, 1116.2, - 2678.1, 948.2, 2661], "page": 1, "confidence": 0.774}}}]}}' + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774}}}]}}' headers: - apim-request-id: 608e3800-4781-4c04-ab66-840fc8b22059 + apim-request-id: 782d0094-13bb-4510-9f57-3535d03a427d + content-length: '2561' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:11 GMT + date: Mon, 14 Sep 2020 22:44:32 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '25' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/a476fd7f-3909-498f-a627-6c6a8ed7549f + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/b3eae151-05c6-4292-8431-aabd7892ab7f version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml index 43610865a5db..e1515741d756 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_jpg.yaml @@ -2,49 +2,51 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-allinone.jpg"}''' headers: + Accept: + - application/json Content-Length: - '172' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: 7b62454b-0d3e-4fa7-8f2f-733320a92429 + apim-request-id: 2fc87015-aef2-41a8-bff9-93c538e1c745 content-length: '0' - date: Fri, 10 Jul 2020 18:54:12 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b62454b-0d3e-4fa7-8f2f-733320a92429 + date: Mon, 14 Sep 2020 22:44:30 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/2fc87015-aef2-41a8-bff9-93c538e1c745 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '155' + x-envoy-upstream-service-time: '336' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b62454b-0d3e-4fa7-8f2f-733320a92429 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/2fc87015-aef2-41a8-bff9-93c538e1c745 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:12Z", - "lastUpdatedDateTime": "2020-07-10T18:54:14Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [635, 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", - "boundingBox": [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, - {"text": "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], - "words": [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, - 297, 636], "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": - [300, 675, 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": - [302, 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:30Z", + "lastUpdatedDateTime": "2020-09-14T22:44:32Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.6893, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [635, + 510, 1086, 461, 1098, 558, 643, 604], "words": [{"text": "Contoso", "boundingBox": + [639, 510, 1087, 461, 1098, 551, 646, 604], "confidence": 0.955}]}, {"text": + "Contoso", "boundingBox": [305, 574, 519, 624, 504, 686, 291, 634], "words": + [{"text": "Contoso", "boundingBox": [311, 575, 517, 623, 503, 686, 297, 636], + "confidence": 0.435}]}, {"text": "123 Main Street", "boundingBox": [300, 675, + 703, 767, 686, 844, 284, 749], "words": [{"text": "123", "boundingBox": [302, + 676, 390, 695, 375, 770, 287, 751], "confidence": 0.935}, {"text": "Main", "boundingBox": [405, 698, 528, 726, 512, 802, 390, 774], "confidence": 0.958}, {"text": "Street", "boundingBox": [542, 730, 702, 767, 685, 845, 527, 806], "confidence": 0.959}]}, {"text": "Redmond, WA 98052", "boundingBox": [290, @@ -77,7 +79,7 @@ interactions: 504, 1920, 307, 1920], "confidence": 0.885}, {"text": "&", "boundingBox": [523, 1841, 568, 1842, 566, 1921, 521, 1921], "confidence": 0.799}, {"text": "EGGS", "boundingBox": [585, 1842, 746, 1843, 744, 1924, 583, 1921], "confidence": - 0.948}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, + 0.949}]}, {"text": "Sunny-side-up", "boundingBox": [347, 1975, 751, 1977, 751, 2061, 347, 2060], "words": [{"text": "Sunny-side-up", "boundingBox": [348, 1975, 749, 1979, 747, 2061, 348, 2061], "confidence": 0.946}]}, {"text": "$9.5", "boundingBox": [1135, 1955, 1262, 1952, 1263, 2035, 1136, 2039], "words": @@ -119,53 +121,53 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "valuePhoneNumber": "+19876543210", "text": "987-654-3210", - "boundingBox": [278, 1004, 656.3, 1054.7, 646.8, 1125.3, 268.5, 1074.7], "page": - 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": + "boundingBox": [278, 1004, 656, 1057, 647, 1123, 271, 1075], "page": 1, "confidence": + 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": - [265.1, 1228.4, 525, 1247, 518.9, 1332.1, 259, 1313.5], "page": 1, "confidence": - 0.99, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": - {"type": "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": - [541, 1248, 677.3, 1261.5, 668.9, 1346.5, 532.6, 1333], "page": 1, "confidence": - 0.977, "elements": ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": - "array", "valueArray": [{"type": "object", "valueObject": {"Quantity": {"type": - "number", "text": "1", "boundingBox": [245.1, 1581.5, 300.9, 1585.1, 295, - 1676, 239.2, 1672.4], "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, + [267, 1229, 525, 1247, 517, 1332, 259, 1313], "page": 1, "confidence": 0.99, + "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": + "time", "valueTime": "13:59:00", "text": "13:59", "boundingBox": [541, 1248, + 677, 1263, 669, 1345, 533, 1333], "page": 1, "confidence": 0.977, "elements": + ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": + [{"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [245, 1583, 299, 1585, 295, 1676, 241, 1671], + "page": 1, "confidence": 0.92, "elements": ["#/readResults/0/lines/7/words/0"]}, "Name": {"type": "string", "valueString": "Cappuccino", "text": "Cappuccino", - "boundingBox": [322, 1586, 654.2, 1601.1, 650, 1693, 317.8, 1678], "page": - 1, "confidence": 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, - "TotalPrice": {"type": "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": - [1107.7, 1584, 1263, 1574, 1268.3, 1656, 1113, 1666], "page": 1, "confidence": - 0.918, "elements": ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", - "valueObject": {"Quantity": {"type": "number", "text": "1", "boundingBox": - [232, 1834, 286.6, 1835, 285, 1921, 230.4, 1920], "page": 1, "confidence": - 0.858, "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": - "string", "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": - [308, 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": - 0.916, "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", - "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "text": - "$9.5", "boundingBox": [1133.9, 1955, 1257, 1952, 1259.1, 2036, 1136, 2039], - "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, + "boundingBox": [322, 1586, 654, 1605, 648, 1689, 318, 1678], "page": 1, "confidence": + 0.923, "elements": ["#/readResults/0/lines/7/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 2.2, "text": "$2.20", "boundingBox": [1108, 1584, + 1263, 1574, 1268, 1656, 1113, 1666], "page": 1, "confidence": 0.918, "elements": + ["#/readResults/0/lines/8/words/0"]}}}, {"type": "object", "valueObject": + {"Quantity": {"type": "number", "valueNumber": 1, "text": "1", "boundingBox": + [232, 1834, 286, 1836, 285, 1920, 231, 1920], "page": 1, "confidence": 0.858, + "elements": ["#/readResults/0/lines/9/words/0"]}, "Name": {"type": "string", + "valueString": "BACON & EGGS", "text": "BACON & EGGS", "boundingBox": [308, + 1836, 746, 1841.4, 745, 1925.4, 307, 1920], "page": 1, "confidence": 0.916, + "elements": ["#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2", + "#/readResults/0/lines/9/words/3"]}, "TotalPrice": {"type": "number", "valueNumber": + 9.5, "text": "$9.5", "boundingBox": [1135, 1955, 1257, 1952, 1259, 2036, 1136, + 2039], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/11/words/0"]}}}]}, "Subtotal": {"type": "number", "valueNumber": 11.7, "text": "11.70", "boundingBox": - [1146, 2221, 1297.3, 2223, 1296, 2319, 1144.7, 2317], "page": 1, "confidence": + [1146, 2221, 1297, 2223, 1296, 2319, 1145, 2317], "page": 1, "confidence": 0.955, "elements": ["#/readResults/0/lines/13/words/1"]}, "Tax": {"type": "number", "valueNumber": 1.17, "text": "1.17", "boundingBox": [1190, 2359, 1304, 2359, 1304, 2456, 1190, 2456], "page": 1, "confidence": 0.979, "elements": ["#/readResults/0/lines/15/words/1"]}, "Tip": {"type": "number", "valueNumber": - 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267.7, 2485, 1264, 2591, - 1090.3, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, + 1.63, "text": "1.63", "boundingBox": [1094, 2479, 1267, 2485, 1264, 2591, + 1091, 2585], "page": 1, "confidence": 0.941, "elements": ["#/readResults/0/lines/17/words/1"]}, "Total": {"type": "number", "valueNumber": 14.5, "text": "$14.50", "boundingBox": - [1034.2, 2617, 1387.5, 2638.2, 1380, 2763, 1026.7, 2741.8], "page": 1, "confidence": + [1034, 2620, 1384, 2638, 1380, 2763, 1030, 2739], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/19/words/0"]}}}]}}' headers: - apim-request-id: 34d98fb8-d55b-45bd-939b-b3c1af4803f1 + apim-request-id: f761a4bb-386d-44bc-b760-5af452283be9 + content-length: '8501' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:17 GMT + date: Mon, 14 Sep 2020 22:44:35 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '14' + x-envoy-upstream-service-time: '31' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/7b62454b-0d3e-4fa7-8f2f-733320a92429 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/2fc87015-aef2-41a8-bff9-93c538e1c745 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml index 94c4c699cacf..78d0638fd83e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipt_url_transform_png.yaml @@ -2,49 +2,51 @@ interactions: - request: body: 'b''{"source": "https://raw.githubusercontent.com/Azure/azure-sdk-for-python/master/sdk/formrecognizer/azure-ai-formrecognizer/tests/sample_forms/receipt/contoso-receipt.png"}''' headers: + Accept: + - application/json Content-Length: - '171' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true response: body: string: '' headers: - apim-request-id: cf0c234a-a06f-4480-a19d-5abf98faa2e6 + apim-request-id: 5af301b6-2cc0-498a-b91f-ef4afcc68640 content-length: '0' - date: Fri, 10 Jul 2020 18:54:18 GMT - operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cf0c234a-a06f-4480-a19d-5abf98faa2e6 + date: Mon, 14 Sep 2020 22:44:25 GMT + operation-location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/5af301b6-2cc0-498a-b91f-ef4afcc68640 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '289' + x-envoy-upstream-service-time: '267' status: code: 202 message: Accepted - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cf0c234a-a06f-4480-a19d-5abf98faa2e6 + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/5af301b6-2cc0-498a-b91f-ef4afcc68640 response: body: - string: '{"status": "succeeded", "createdDateTime": "2020-07-10T18:54:18Z", - "lastUpdatedDateTime": "2020-07-10T18:54:21Z", "analyzeResult": {"version": - "2.0.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": - 3000, "unit": "pixel", "language": "en", "lines": [{"text": "Contoso", "boundingBox": - [619, 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", - "boundingBox": [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, - {"text": "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], - "words": [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, - 325, 644], "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": - [319, 690, 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": - [323, 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", + string: '{"status": "succeeded", "createdDateTime": "2020-09-14T22:44:26Z", + "lastUpdatedDateTime": "2020-09-14T22:44:27Z", "analyzeResult": {"version": + "2.1.0", "readResults": [{"page": 1, "angle": 0.2511, "width": 1688, "height": + 3000, "unit": "pixel", "lines": [{"text": "Contoso", "boundingBox": [619, + 291, 1051, 284, 1053, 384, 620, 396], "words": [{"text": "Contoso", "boundingBox": + [623, 292, 1051, 284, 1052, 383, 624, 397], "confidence": 0.959}]}, {"text": + "Contoso", "boundingBox": [322, 591, 501, 601, 498, 654, 319, 644], "words": + [{"text": "Contoso", "boundingBox": [328, 591, 500, 602, 498, 654, 325, 644], + "confidence": 0.727}]}, {"text": "123 Main Street", "boundingBox": [319, 690, + 655, 695, 654, 757, 318, 752], "words": [{"text": "123", "boundingBox": [323, + 690, 387, 692, 383, 754, 319, 753], "confidence": 0.958}, {"text": "Main", "boundingBox": [399, 692, 502, 694, 498, 756, 395, 754], "confidence": 0.958}, {"text": "Street", "boundingBox": [514, 695, 656, 698, 653, 758, 510, 756], "confidence": 0.958}]}, {"text": "Redmond, WA 98052", "boundingBox": [317, @@ -127,49 +129,48 @@ interactions: "#/readResults/0/lines/2/words/1", "#/readResults/0/lines/2/words/2", "#/readResults/0/lines/3/words/0", "#/readResults/0/lines/3/words/1", "#/readResults/0/lines/3/words/2"]}, "MerchantPhoneNumber": {"type": "phoneNumber", "text": "123-456-7890", "boundingBox": [306, 1005, - 617, 1011, 615.9, 1070, 304.9, 1064], "page": 1, "confidence": 0.99, "elements": + 617, 1012, 615, 1069, 305, 1064], "page": 1, "confidence": 0.99, "elements": ["#/readResults/0/lines/4/words/0"]}, "TransactionDate": {"type": "date", - "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [303.2, 1223.5, - 506, 1224, 505.8, 1289, 303, 1288.5], "page": 1, "confidence": 0.985, "elements": + "valueDate": "2019-06-10", "text": "6/10/2019", "boundingBox": [304, 1224, + 506, 1224, 504, 1289, 303, 1288], "page": 1, "confidence": 0.985, "elements": ["#/readResults/0/lines/5/words/0"]}, "TransactionTime": {"type": "time", - "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628.1, - 1227, 627, 1291, 516.8, 1289], "page": 1, "confidence": 0.968, "elements": - ["#/readResults/0/lines/5/words/1"]}, "Items": {"type": "array", "valueArray": - [{"type": "object", "valueObject": {"Name": {"type": "string", "valueString": - "8GB RAM (Black)", "text": "8GB RAM (Black)", "boundingBox": [370.7, 1781.5, - 731, 1785, 730.3, 1854, 370, 1850.6], "page": 1, "confidence": 0.916, "elements": - ["#/readResults/0/lines/9/words/0", "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, - "TotalPrice": {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": - [939, 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": + "valueTime": "13:59:00", "text": "13:59", "boundingBox": [518, 1225, 628, + 1228, 627, 1290, 517, 1289], "page": 1, "confidence": 0.968, "elements": ["#/readResults/0/lines/5/words/1"]}, + "Items": {"type": "array", "valueArray": [{"type": "object", "valueObject": + {"Name": {"type": "string", "valueString": "8GB RAM (Black)", "text": "8GB + RAM (Black)", "boundingBox": [370.7, 1781.5, 731, 1785, 730.3, 1854, 370, + 1850.6], "page": 1, "confidence": 0.916, "elements": ["#/readResults/0/lines/9/words/0", + "#/readResults/0/lines/9/words/1", "#/readResults/0/lines/9/words/2"]}, "TotalPrice": + {"type": "number", "valueNumber": 999, "text": "$999.00", "boundingBox": [939, + 1784.6, 1134.4, 1788.3, 1133, 1863, 937.6, 1859.3], "page": 1, "confidence": 0.559, "elements": ["#/readResults/0/lines/10/words/0", "#/readResults/0/lines/10/words/1"]}}}, - {"type": "object", "valueObject": {"Quantity": {"type": "number", "text": - "1", "boundingBox": [320.8, 2020.5, 348, 2020, 349.2, 2084, 322, 2084.5], + {"type": "object", "valueObject": {"Quantity": {"type": "number", "valueNumber": + 1, "text": "1", "boundingBox": [321, 2021, 348, 2020, 349, 2084, 322, 2084], "page": 1, "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/0"]}, "Name": {"type": "string", "valueString": "SurfacePen", "text": "SurfacePen", - "boundingBox": [360, 2020, 626.6, 2014, 628, 2077, 361.4, 2083], "page": 1, - "confidence": 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": - {"type": "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, - 2028, 1127, 2028, 1127, 2091, 1007, 2091], "page": 1, "confidence": 0.386, - "elements": ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": - "number", "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, - 2259.5, 1136, 2254, 1138.1, 2320, 965.1, 2325.5], "page": 1, "confidence": - 0.964, "elements": ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": - "number", "valueNumber": 104.4, "text": "$104.40", "boundingBox": [942.6, - 2367.5, 1132, 2363.7, 1133.4, 2434.2, 944, 2438], "page": 1, "confidence": - 0.713, "elements": ["#/readResults/0/lines/16/words/0", "#/readResults/0/lines/16/words/1"]}, - "Total": {"type": "number", "valueNumber": 1203.39, "text": "1203.39", "boundingBox": - [955, 2593.9, 1123, 2611, 1116.2, 2678.1, 948.2, 2661], "page": 1, "confidence": - 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' + "boundingBox": [360, 2020, 626, 2014, 628, 2077, 362, 2083], "page": 1, "confidence": + 0.858, "elements": ["#/readResults/0/lines/11/words/1"]}, "TotalPrice": {"type": + "number", "valueNumber": 99.99, "text": "99.99", "boundingBox": [1007, 2028, + 1127, 2028, 1126, 2091, 1007, 2091], "page": 1, "confidence": 0.386, "elements": + ["#/readResults/0/lines/12/words/1"]}}}]}, "Subtotal": {"type": "number", + "valueNumber": 1098.99, "text": "1098.99", "boundingBox": [963, 2260, 1136, + 2254, 1137, 2320, 966, 2325], "page": 1, "confidence": 0.964, "elements": + ["#/readResults/0/lines/14/words/1"]}, "Tax": {"type": "number", "valueNumber": + 104.4, "text": "$104.40", "boundingBox": [942.6, 2367.5, 1132, 2363.7, 1133.4, + 2434.2, 944, 2438], "page": 1, "confidence": 0.713, "elements": ["#/readResults/0/lines/16/words/0", + "#/readResults/0/lines/16/words/1"]}, "Total": {"type": "number", "valueNumber": + 1203.39, "text": "1203.39", "boundingBox": [955, 2594, 1123, 2611, 1115, 2678, + 949, 2661], "page": 1, "confidence": 0.774, "elements": ["#/readResults/0/lines/18/words/1"]}}}]}}' headers: - apim-request-id: 67a5a27f-c665-49c2-a8df-a66ef98e7e70 + apim-request-id: d2cc0c70-0d28-43ff-b080-e40d661caa78 + content-length: '8807' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:23 GMT + date: Mon, 14 Sep 2020 22:44:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '51' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyzeResults/cf0c234a-a06f-4480-a19d-5abf98faa2e6 + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyzeResults/5af301b6-2cc0-498a-b91f-ef4afcc68640 version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml index a1934ea906e4..cd5912c29b74 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_receipt_from_url_async.test_receipts_encoded_url.yaml @@ -2,29 +2,31 @@ interactions: - request: body: 'b''{"source": "https://fakeuri.com/blank%20space"}''' headers: + Accept: + - application/json Content-Length: - '47' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false response: body: string: '{"error": {"code": "FailedToDownloadImage", "innerError": {"requestId": - "58ece1db-cd7a-472c-8fbd-a726fb02c211"}, "message": "Failed to download image + "3fd11330-e352-4cd6-b95f-df0dbe584298"}, "message": "Failed to download image from input URL."}}' headers: - apim-request-id: 58ece1db-cd7a-472c-8fbd-a726fb02c211 + apim-request-id: 3fd11330-e352-4cd6-b95f-df0dbe584298 + content-length: '161' content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:54:27 GMT + date: Mon, 14 Sep 2020 22:44:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '3896' + x-envoy-upstream-service-time: '3810' status: code: 400 message: Bad Request - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/prebuilt/receipt/analyze?includeTextDetails=false + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/prebuilt/receipt/analyze?includeTextDetails=false version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml index 1b706ec0b698..61e3de6f6a07 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_polling_interval.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 242c51a3-1570-4166-8cf9-142aa4fc39e7 + - ba8bf5db-c180-4976-908c-830b5fa0910d content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:33 GMT + - Mon, 14 Sep 2020 21:00:50 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee98d2c4-f46e-4c10-93db-c369084966b3 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/05e5ae2d-7d17-4160-9dd3-056338b22ad1 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '70' + - '72' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee98d2c4-f46e-4c10-93db-c369084966b3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/05e5ae2d-7d17-4160-9dd3-056338b22ad1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee98d2c4-f46e-4c10-93db-c369084966b3", "status": - "creating", "createdDateTime": "2020-07-10T18:57:33Z", "lastUpdatedDateTime": - "2020-07-10T18:57:33Z"}}' + string: '{"modelInfo": {"modelId": "05e5ae2d-7d17-4160-9dd3-056338b22ad1", "status": + "creating", "createdDateTime": "2020-09-14T21:00:50Z", "lastUpdatedDateTime": + "2020-09-14T21:00:50Z"}}' headers: apim-request-id: - - 2fd57252-2f8b-4b67-8d7e-3f0ef78e3a2a + - 2a56c42d-5fd7-4a95-8674-3fbc72fda7e3 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:40 GMT + - Mon, 14 Sep 2020 21:00:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '688' + - '17' status: code: 200 message: OK @@ -84,31 +84,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee98d2c4-f46e-4c10-93db-c369084966b3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/05e5ae2d-7d17-4160-9dd3-056338b22ad1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee98d2c4-f46e-4c10-93db-c369084966b3", "status": - "ready", "createdDateTime": "2020-07-10T18:57:33Z", "lastUpdatedDateTime": - "2020-07-10T18:57:43Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "05e5ae2d-7d17-4160-9dd3-056338b22ad1", "status": + "ready", "createdDateTime": "2020-09-14T21:00:50Z", "lastUpdatedDateTime": + "2020-09-14T21:01:02Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 58426e93-b9be-4080-93cc-c29a05e9cd14 + - f3991463-8e28-4494-a0ec-de69437e78a2 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:46 GMT + - Mon, 14 Sep 2020 21:01:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,7 +116,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '18' status: code: 200 message: OK @@ -125,7 +125,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -135,27 +135,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - b8a37f18-8953-48ab-9664-85e58a4191e1 + - cb0aa472-e798-4f08-8cce-9d12ec67cd6b content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:46 GMT + - Mon, 14 Sep 2020 21:01:02 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7d6f692b-b636-4ee3-8b65-2b1dc158a634 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '94' + - '45' status: code: 201 message: Created @@ -169,21 +169,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7d6f692b-b636-4ee3-8b65-2b1dc158a634?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7ee01e6c-0089-4441-91d0-86fd49a13209", "status": - "creating", "createdDateTime": "2020-07-10T18:57:47Z", "lastUpdatedDateTime": - "2020-07-10T18:57:47Z"}}' + string: '{"modelInfo": {"modelId": "7d6f692b-b636-4ee3-8b65-2b1dc158a634", "status": + "creating", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:03Z"}}' headers: apim-request-id: - - 09fdd088-e9e4-458f-bec5-734a4a171052 + - 2a412dec-551f-4530-b131-39a563ff6afa content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:52 GMT + - Mon, 14 Sep 2020 21:01:07 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -191,7 +191,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '16' status: code: 200 message: OK @@ -205,21 +205,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7d6f692b-b636-4ee3-8b65-2b1dc158a634?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7ee01e6c-0089-4441-91d0-86fd49a13209", "status": - "creating", "createdDateTime": "2020-07-10T18:57:47Z", "lastUpdatedDateTime": - "2020-07-10T18:57:47Z"}}' + string: '{"modelInfo": {"modelId": "7d6f692b-b636-4ee3-8b65-2b1dc158a634", "status": + "creating", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:03Z"}}' headers: apim-request-id: - - f9044926-ab94-47e1-ba8d-35924dd2050e + - 73a1179d-8cc3-4e90-8f44-3156d901afe9 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:56 GMT + - Mon, 14 Sep 2020 21:01:13 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -227,7 +227,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '16' status: code: 200 message: OK @@ -241,31 +241,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7ee01e6c-0089-4441-91d0-86fd49a13209?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/7d6f692b-b636-4ee3-8b65-2b1dc158a634?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7ee01e6c-0089-4441-91d0-86fd49a13209", "status": - "ready", "createdDateTime": "2020-07-10T18:57:47Z", "lastUpdatedDateTime": - "2020-07-10T18:57:57Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "7d6f692b-b636-4ee3-8b65-2b1dc158a634", "status": + "ready", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:15Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - ac11e7ef-0f25-4f8b-86c6-d798e668ed62 + - e30472b9-5ef2-42da-a440-ed040a730285 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:02 GMT + - Mon, 14 Sep 2020 21:01:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -273,7 +273,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml index 0684b202af68..a5b3e90e5fe6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_train_multipage_w_labels_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - ba5dfe1d-9560-4c92-be07-4922679436e9 + - af98a41b-0c8d-48ab-9b9c-ac53ca22df46 content-length: - '0' date: - - Fri, 10 Jul 2020 18:58:03 GMT + - Mon, 14 Sep 2020 21:00:40 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a457bc7d-89f0-4a04-9ed4-11c03cbe260c + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34b82479-ad8b-44c8-a3d6-0a8e59b6fb1f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '70' + - '146' status: code: 201 message: Created @@ -48,37 +48,38 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a457bc7d-89f0-4a04-9ed4-11c03cbe260c?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/34b82479-ad8b-44c8-a3d6-0a8e59b6fb1f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a457bc7d-89f0-4a04-9ed4-11c03cbe260c", "status": - "ready", "createdDateTime": "2020-07-10T18:58:03Z", "lastUpdatedDateTime": - "2020-07-10T18:58:05Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "34b82479-ad8b-44c8-a3d6-0a8e59b6fb1f", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T21:00:41Z", + "lastUpdatedDateTime": "2020-09-14T21:00:43Z"}, "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": []}}' headers: apim-request-id: - - 8f9cfb84-c1ba-4574-846b-98e723b907cd + - e1f571b2-6c7d-4a92-9799-11c603cccb97 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:07 GMT + - Mon, 14 Sep 2020 21:00:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '78' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml index 66e5c22c33f4..903ef4e46a5d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 9a336b61-4580-4824-81eb-3efb07bad24e + - f88396b9-d7db-4873-8503-3f7d6b95557d content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:04 GMT + - Mon, 14 Sep 2020 21:00:43 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b093f01d-dca8-4b45-9e74-2ea43ec69737 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aaa2228e-e8a5-44ed-90ae-1876b2d2e075 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '138' status: code: 201 message: Created @@ -48,21 +48,57 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aaa2228e-e8a5-44ed-90ae-1876b2d2e075?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "aaa2228e-e8a5-44ed-90ae-1876b2d2e075", "status": + "creating", "createdDateTime": "2020-09-14T21:00:43Z", "lastUpdatedDateTime": + "2020-09-14T21:00:43Z"}}' + headers: + apim-request-id: + - fe753ce4-13d8-4c01-af1f-1cd445245b26 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 21:00:48 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '43' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b093f01d-dca8-4b45-9e74-2ea43ec69737?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aaa2228e-e8a5-44ed-90ae-1876b2d2e075?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b093f01d-dca8-4b45-9e74-2ea43ec69737", "status": - "creating", "createdDateTime": "2020-07-10T18:57:04Z", "lastUpdatedDateTime": - "2020-07-10T18:57:04Z"}}' + string: '{"modelInfo": {"modelId": "aaa2228e-e8a5-44ed-90ae-1876b2d2e075", "status": + "creating", "createdDateTime": "2020-09-14T21:00:43Z", "lastUpdatedDateTime": + "2020-09-14T21:00:43Z"}}' headers: apim-request-id: - - d9185ea0-0280-47b4-9427-524244ef4151 + - e8d9b9fc-f0e6-416f-a98a-6716814c32df content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:09 GMT + - Mon, 14 Sep 2020 21:00:54 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '44' status: code: 200 message: OK @@ -84,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b093f01d-dca8-4b45-9e74-2ea43ec69737?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aaa2228e-e8a5-44ed-90ae-1876b2d2e075?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b093f01d-dca8-4b45-9e74-2ea43ec69737", "status": - "ready", "createdDateTime": "2020-07-10T18:57:04Z", "lastUpdatedDateTime": - "2020-07-10T18:57:13Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "aaa2228e-e8a5-44ed-90ae-1876b2d2e075", "status": + "ready", "createdDateTime": "2020-09-14T21:00:43Z", "lastUpdatedDateTime": + "2020-09-14T21:00:55Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - fdbd1e23-a4b2-4326-96be-fd252144ed0a + - a3145c0c-437d-44bd-918d-2a70b7b79609 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:14 GMT + - Mon, 14 Sep 2020 21:00:58 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -116,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '63' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml index 69e669a8e9ef..7255445332a5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_auth_bad_key.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,30 +14,20 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: - - fe64a99b-5562-41c0-8707-00375f27d76c content-length: - - '225' - content-type: - - application/json + - '224' date: - - Fri, 10 Jul 2020 18:57:15 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - www-authenticate: - - AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: - - nosniff + - Mon, 14 Sep 2020 21:01:19 GMT status: code: 401 - message: Access Denied + message: PermissionDenied version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml index e854c245ef24..e48837ecc9dd 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_encoded_url.yaml @@ -4,7 +4,7 @@ interactions: "", "includeSubFolders": false}, "useLabelFile": false}''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 0ef22750-69bb-417f-8604-97ed763b323e + - aae0068c-0a25-44e0-abd5-1a0d8d011877 content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:20 GMT + - Mon, 14 Sep 2020 21:00:59 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '2278' + - '44' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 039204ed-d41e-4b64-8160-f493059dedbf + - f38b7b08-72ca-4607-83c4-70630049895e content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:26 GMT + - Mon, 14 Sep 2020 21:01:04 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '18' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - c7afd920-c98f-4353-9361-e241dafbeae7 + - 62b44ce1-d140-4e8b-8f23-c79ea38850af content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:32 GMT + - Mon, 14 Sep 2020 21:01:09 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '979' + - '18' status: code: 200 message: OK @@ -120,21 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 464bb4db-3495-46e4-b30e-03c890395935 + - 0b7abdd5-1731-47cd-a8fc-680ddb25519f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:36 GMT + - Mon, 14 Sep 2020 21:01:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '61' + - '16' status: code: 200 message: OK @@ -156,21 +156,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 9e2f0a09-1187-4146-b2fc-2d06c1e5a92d + - f77da97e-1bfb-40b7-8747-c625f3260fa5 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:42 GMT + - Mon, 14 Sep 2020 21:01:20 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -178,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '54' + - '14' status: code: 200 message: OK @@ -192,21 +192,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 0c3a98d1-4ad5-4b8b-8e72-b1bb6a432b0c + - 4d4cb3eb-d98e-43af-90fc-f341fada330b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:47 GMT + - Mon, 14 Sep 2020 21:01:25 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -214,7 +214,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '19' + - '13' status: code: 200 message: OK @@ -228,21 +228,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 8af29261-b704-456d-9a88-18d705df0a30 + - e2e00681-ff18-4038-9ab5-7b5ac0e538cf content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:53 GMT + - Mon, 14 Sep 2020 21:01:30 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -250,7 +250,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '21' + - '13' status: code: 200 message: OK @@ -264,21 +264,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 851cc43d-c1a1-46e4-8877-12dbfa929891 + - c2312133-d3ce-4e88-b627-91fe1badd460 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:57 GMT + - Mon, 14 Sep 2020 21:01:36 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -286,7 +286,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '13' status: code: 200 message: OK @@ -300,21 +300,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - bbbe988c-633b-41a7-becc-ade51c227f65 + - 08124048-8952-4b27-850d-656643a98bcc content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:02 GMT + - Mon, 14 Sep 2020 21:01:41 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -336,57 +336,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' - headers: - apim-request-id: - - 2ca901de-9f56-4a14-8502-fd6cf100c79d - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:07 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '45' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - c53e61de-a7a1-4c1d-ad56-810b3b92a7fc + - 3f8e8591-641f-46b3-b506-eacd1d824aaf content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:14 GMT + - Mon, 14 Sep 2020 21:01:45 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -394,7 +358,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '731' + - '14' status: code: 200 message: OK @@ -408,21 +372,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - ad61e436-cb00-4f38-8536-a2eb6e446560 + - 795a2355-8b69-4815-8b48-361096cbc07f content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:18 GMT + - Mon, 14 Sep 2020 21:01:51 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -430,7 +394,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '13' status: code: 200 message: OK @@ -444,21 +408,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 04be675b-9e20-4c62-a142-723d139394e4 + - 80356951-66b7-4136-a25b-12df85577b95 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:24 GMT + - Mon, 14 Sep 2020 21:01:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -466,7 +430,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '14' status: code: 200 message: OK @@ -480,21 +444,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 4073846e-0ba8-4b43-b666-4c269d245558 + - f0ac231d-afd9-4b88-9409-1162a51bea55 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:30 GMT + - Mon, 14 Sep 2020 21:02:01 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -502,7 +466,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '15' status: code: 200 message: OK @@ -516,21 +480,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 151e8b17-7aa0-4624-9f6f-366d709be127 + - 076607ec-ec1b-42da-951a-3f9f9f51752c content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:35 GMT + - Mon, 14 Sep 2020 21:02:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -538,43 +502,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '50' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' - headers: - apim-request-id: - - 522dc494-4894-4cf6-9b79-3bca24c53a52 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:41 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '932' + - '16' status: code: 200 message: OK @@ -588,21 +516,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - 4b1ca73c-95f1-4d22-a50f-1fd326409a5b + - e29202c1-4fc6-403f-b1d5-62f7ff220b02 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:45 GMT + - Mon, 14 Sep 2020 21:02:12 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -610,7 +538,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '153' + - '18' status: code: 200 message: OK @@ -624,21 +552,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "creating", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:57:18Z"}}' + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "creating", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:01:00Z"}}' headers: apim-request-id: - - e5109e2f-ab90-414f-93e6-84b32472be15 + - ccb08b33-f56c-4846-a1a7-8154ae13f406 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:52 GMT + - Mon, 14 Sep 2020 21:02:17 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -646,7 +574,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1486' + - '16' status: code: 200 message: OK @@ -660,23 +588,23 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ee6b5782-88de-406d-86ea-8a8e0c409931?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/844435f5-a0b7-4167-a718-75c5b1023458?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ee6b5782-88de-406d-86ea-8a8e0c409931", "status": - "invalid", "createdDateTime": "2020-07-10T18:57:18Z", "lastUpdatedDateTime": - "2020-07-10T18:58:52Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "844435f5-a0b7-4167-a718-75c5b1023458", "status": + "invalid", "createdDateTime": "2020-09-14T21:01:00Z", "lastUpdatedDateTime": + "2020-09-14T21:02:22Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2012", "message": "Unable to list blobs on the Azure blob storage account."}]}}' headers: apim-request-id: - - d637c561-74b8-4ca7-adbe-dd97ef81c8fa + - 1d3e746a-9bae-436c-9c1d-323e70d9218d content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:57 GMT + - Mon, 14 Sep 2020 21:02:22 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml index 4e67cdf2d4ee..b19f751f29a4 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - c01f28e7-e11b-4199-826c-cc1b26fee289 + - 13e8e03a-5a7d-4fd7-ad5c-a60ac8a647e9 content-length: - '0' date: - - Fri, 10 Jul 2020 18:58:59 GMT + - Mon, 14 Sep 2020 21:01:04 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/478597ff-4025-4777-873c-7a75cc577b5f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '849' + - '44' status: code: 201 message: Created @@ -48,57 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": - "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": - "2020-07-10T18:58:59Z"}}' - headers: - apim-request-id: - - 17564263-c3cf-493e-acea-99d727b68e02 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:59:05 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '772' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/478597ff-4025-4777-873c-7a75cc577b5f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": - "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": - "2020-07-10T18:58:59Z"}}' + string: '{"modelInfo": {"modelId": "478597ff-4025-4777-873c-7a75cc577b5f", "status": + "creating", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:03Z"}}' headers: apim-request-id: - - bd20064a-ede4-4f1a-91b8-cc953f869b75 + - fc2721c9-222f-4239-a11d-a916061f9340 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:10 GMT + - Mon, 14 Sep 2020 21:01:08 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '18' status: code: 200 message: OK @@ -120,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/478597ff-4025-4777-873c-7a75cc577b5f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": - "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": - "2020-07-10T18:58:59Z"}}' + string: '{"modelInfo": {"modelId": "478597ff-4025-4777-873c-7a75cc577b5f", "status": + "creating", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:03Z"}}' headers: apim-request-id: - - cc758aab-113b-4701-a57c-a68cc4fd4ecb + - d4bbc83f-d576-4c0f-9a9f-4db024d45ac8 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:15 GMT + - Mon, 14 Sep 2020 21:01:14 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '17' status: code: 200 message: OK @@ -156,21 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/478597ff-4025-4777-873c-7a75cc577b5f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": - "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": - "2020-07-10T18:58:59Z"}}' + string: '{"modelInfo": {"modelId": "478597ff-4025-4777-873c-7a75cc577b5f", "status": + "creating", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:03Z"}}' headers: apim-request-id: - - a1135ef6-d8e1-42a5-b7f1-c6a100523f93 + - 28d6e5fc-037a-4683-b1c4-091a72baeb5e content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:25 GMT + - Mon, 14 Sep 2020 21:01:19 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -178,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '5205' + - '16' status: code: 200 message: OK @@ -192,21 +156,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/478597ff-4025-4777-873c-7a75cc577b5f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": - "creating", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": - "2020-07-10T18:58:59Z"}}' + string: '{"modelInfo": {"modelId": "478597ff-4025-4777-873c-7a75cc577b5f", "status": + "creating", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:03Z"}}' headers: apim-request-id: - - 04a2e287-9f7a-4b76-af37-fb4fe98b4276 + - c6e0a046-02c4-4e9f-a230-8ce9d1782d12 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:31 GMT + - Mon, 14 Sep 2020 21:01:24 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -214,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '48' + - '15' status: code: 200 message: OK @@ -228,14 +192,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/cbae38ba-efd1-4868-8ba3-6f35bb77af85?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/478597ff-4025-4777-873c-7a75cc577b5f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "cbae38ba-efd1-4868-8ba3-6f35bb77af85", "status": - "ready", "createdDateTime": "2020-07-10T18:58:59Z", "lastUpdatedDateTime": - "2020-07-10T18:59:14Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "478597ff-4025-4777-873c-7a75cc577b5f", "status": + "ready", "createdDateTime": "2020-09-14T21:01:03Z", "lastUpdatedDateTime": + "2020-09-14T21:01:28Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -246,11 +210,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 196b4c72-280e-4a2f-86b7-604ce9f23e7b + - 13f9d1fa-c591-48f4-88a1-ec9da02d159b content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:37 GMT + - Mon, 14 Sep 2020 21:01:29 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -258,7 +222,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '852' + - '14' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml index 0c360b5d26e3..3cfea6cf4d97 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 2722f471-8eaa-4c81-9ada-9b47439d1496 + - 6e3a8135-c61b-4edf-9203-e4281eaa5286 content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:29 GMT + - Mon, 14 Sep 2020 21:02:23 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aff0a4df-4846-48f9-92ce-4e3dbc37eb6d strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '782' + - '41' status: code: 201 message: Created @@ -48,21 +48,57 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aff0a4df-4846-48f9-92ce-4e3dbc37eb6d?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "aff0a4df-4846-48f9-92ce-4e3dbc37eb6d", "status": + "creating", "createdDateTime": "2020-09-14T21:02:23Z", "lastUpdatedDateTime": + "2020-09-14T21:02:23Z"}}' + headers: + apim-request-id: + - 5abb644f-904c-4adb-a886-ba4871c155c6 + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Sep 2020 21:02:27 GMT + strict-transport-security: + - max-age=31536000; includeSubDomains; preload + transfer-encoding: + - chunked + x-content-type-options: + - nosniff + x-envoy-upstream-service-time: + - '16' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aff0a4df-4846-48f9-92ce-4e3dbc37eb6d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": - "creating", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": - "2020-07-10T18:57:28Z"}}' + string: '{"modelInfo": {"modelId": "aff0a4df-4846-48f9-92ce-4e3dbc37eb6d", "status": + "creating", "createdDateTime": "2020-09-14T21:02:23Z", "lastUpdatedDateTime": + "2020-09-14T21:02:23Z"}}' headers: apim-request-id: - - b26bb1fa-78f2-4352-a9b7-d3bf78bc9033 + - 898459ac-a67f-4a59-8528-fb90490673f2 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:33 GMT + - Mon, 14 Sep 2020 21:02:33 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '57' + - '26' status: code: 200 message: OK @@ -84,21 +120,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aff0a4df-4846-48f9-92ce-4e3dbc37eb6d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": - "creating", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": - "2020-07-10T18:57:28Z"}}' + string: '{"modelInfo": {"modelId": "aff0a4df-4846-48f9-92ce-4e3dbc37eb6d", "status": + "creating", "createdDateTime": "2020-09-14T21:02:23Z", "lastUpdatedDateTime": + "2020-09-14T21:02:23Z"}}' headers: apim-request-id: - - f02c6635-6c53-4f06-8484-5636c9215123 + - 9b108a68-789d-4837-8d84-7fb82770f3d3 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:39 GMT + - Mon, 14 Sep 2020 21:02:38 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +142,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '53' + - '15' status: code: 200 message: OK @@ -120,21 +156,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aff0a4df-4846-48f9-92ce-4e3dbc37eb6d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": - "creating", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": - "2020-07-10T18:57:28Z"}}' + string: '{"modelInfo": {"modelId": "aff0a4df-4846-48f9-92ce-4e3dbc37eb6d", "status": + "creating", "createdDateTime": "2020-09-14T21:02:23Z", "lastUpdatedDateTime": + "2020-09-14T21:02:23Z"}}' headers: apim-request-id: - - 19d7b830-bce2-4dec-8952-567be39970f8 + - 6c9ad38a-fe89-42a3-9c6f-7953355d82d7 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:44 GMT + - Mon, 14 Sep 2020 21:02:43 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -142,7 +178,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '16' status: code: 200 message: OK @@ -156,14 +192,14 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/a335cff6-a80c-4a72-886a-4299dc132f84?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/aff0a4df-4846-48f9-92ce-4e3dbc37eb6d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "a335cff6-a80c-4a72-886a-4299dc132f84", "status": - "ready", "createdDateTime": "2020-07-10T18:57:28Z", "lastUpdatedDateTime": - "2020-07-10T18:57:44Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "aff0a4df-4846-48f9-92ce-4e3dbc37eb6d", "status": + "ready", "createdDateTime": "2020-09-14T21:02:23Z", "lastUpdatedDateTime": + "2020-09-14T21:02:46Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -174,11 +210,11 @@ interactions: "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - be9a8ba5-4f01-4014-af5c-3dd861a85d4e + - 70c5e416-8fc1-4114-a70b-99637fec4d03 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:50 GMT + - Mon, 14 Sep 2020 21:02:49 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -186,7 +222,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '51' + - '18' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml index 8465b0be44b7..c782c7310b96 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_multipage_with_labels.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 16b198cc-b6c7-487b-aa17-43834afdd0fd + - e853f11b-1001-49cc-a05a-28a63e9d53b7 content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:50 GMT + - Mon, 14 Sep 2020 21:01:29 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/22cc53a1-ce73-47ee-be21-be945f2df481 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/312488f5-3a88-4f14-9bd0-ebbf6cd1ab02 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '38' status: code: 201 message: Created @@ -48,37 +48,38 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/22cc53a1-ce73-47ee-be21-be945f2df481?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/312488f5-3a88-4f14-9bd0-ebbf6cd1ab02?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "22cc53a1-ce73-47ee-be21-be945f2df481", "status": - "ready", "createdDateTime": "2020-07-10T18:57:50Z", "lastUpdatedDateTime": - "2020-07-10T18:57:54Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "312488f5-3a88-4f14-9bd0-ebbf6cd1ab02", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T21:01:30Z", + "lastUpdatedDateTime": "2020-09-14T21:01:32Z"}, "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": []}}' headers: apim-request-id: - - 99320637-70eb-44fc-8c1b-85824ef099fc + - 5ca5912c-56c5-4ef7-b56f-0237ba0b42b3 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:57:55 GMT + - Mon, 14 Sep 2020 21:01:35 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -86,7 +87,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '16' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml index e61deea93449..d20c0cdfbb5c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - bb5492a4-d195-432c-8d20-b10662d115a1 + - c958484f-ea68-4502-8038-bba0f5b4e0d9 content-length: - '0' date: - - Fri, 10 Jul 2020 18:57:55 GMT + - Mon, 14 Sep 2020 22:51:40 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e058dfbf-a1c9-4536-b9eb-78de79088dad strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '63' status: code: 201 message: Created @@ -48,21 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e058dfbf-a1c9-4536-b9eb-78de79088dad?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b22424b6-2918-4a13-af2c-76b8352cdc8b", "status": - "creating", "createdDateTime": "2020-07-10T18:57:56Z", "lastUpdatedDateTime": - "2020-07-10T18:57:56Z"}}' + string: '{"modelInfo": {"modelId": "e058dfbf-a1c9-4536-b9eb-78de79088dad", "status": + "creating", "createdDateTime": "2020-09-14T22:51:40Z", "lastUpdatedDateTime": + "2020-09-14T22:51:40Z"}}' headers: apim-request-id: - - c2834bba-a25b-4175-87b6-d47d9e5677fd + - 5f5567e2-fbf5-4ab7-8d0f-3aab9264edb9 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:00 GMT + - Mon, 14 Sep 2020 22:51:44 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -70,7 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '47' + - '14' status: code: 200 message: OK @@ -84,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e058dfbf-a1c9-4536-b9eb-78de79088dad?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b22424b6-2918-4a13-af2c-76b8352cdc8b", "status": - "creating", "createdDateTime": "2020-07-10T18:57:56Z", "lastUpdatedDateTime": - "2020-07-10T18:57:56Z"}}' + string: '{"modelInfo": {"modelId": "e058dfbf-a1c9-4536-b9eb-78de79088dad", "status": + "creating", "createdDateTime": "2020-09-14T22:51:40Z", "lastUpdatedDateTime": + "2020-09-14T22:51:40Z"}}' headers: apim-request-id: - - 1f0562d4-d2c0-4255-a785-2d239d5fbc4a + - 7a332492-9815-4ef8-83cb-c5b6b1c935f1 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:05 GMT + - Mon, 14 Sep 2020 22:51:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -106,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '46' + - '14' status: code: 200 message: OK @@ -120,31 +120,31 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/b22424b6-2918-4a13-af2c-76b8352cdc8b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/e058dfbf-a1c9-4536-b9eb-78de79088dad?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "b22424b6-2918-4a13-af2c-76b8352cdc8b", "status": - "ready", "createdDateTime": "2020-07-10T18:57:56Z", "lastUpdatedDateTime": - "2020-07-10T18:58:06Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "e058dfbf-a1c9-4536-b9eb-78de79088dad", "status": + "ready", "createdDateTime": "2020-09-14T22:51:40Z", "lastUpdatedDateTime": + "2020-09-14T22:51:52Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 24cd8f26-bace-432b-9c21-50491012a5c6 + - 8067d682-4109-4f8b-8872-65a84e90c997 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:11 GMT + - Mon, 14 Sep 2020 22:51:55 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -152,7 +152,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '45' + - '13' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml index b2b01ab8853c..fe4f9d80662b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_files_filter.yaml @@ -4,7 +4,7 @@ interactions: true}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 74fd1e7e-d314-46f3-bc0d-2caba0b8991f + - 57c9a675-7fb9-432a-b5c7-7f7834008a8f content-length: - '0' date: - - Fri, 10 Jul 2020 18:58:11 GMT + - Mon, 14 Sep 2020 21:01:35 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d5d97d55-82a7-4a15-b5e1-c320905a7b3f strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '41' status: code: 201 message: Created @@ -48,165 +48,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' - headers: - apim-request-id: - - b7773f81-bd5f-45d6-b783-0557af727bca - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:17 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' - headers: - apim-request-id: - - c190dd7d-5477-4c96-adce-f174acc0a4e6 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:22 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' - headers: - apim-request-id: - - 981c527f-98c8-4191-8b92-c80e29106d78 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:27 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '49' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' - headers: - apim-request-id: - - b8760296-4baa-4ac7-9901-558099fb55c2 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:32 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '49' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d5d97d55-82a7-4a15-b5e1-c320905a7b3f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' + string: '{"modelInfo": {"modelId": "d5d97d55-82a7-4a15-b5e1-c320905a7b3f", "status": + "creating", "createdDateTime": "2020-09-14T21:01:36Z", "lastUpdatedDateTime": + "2020-09-14T21:01:36Z"}}' headers: apim-request-id: - - 01327a0d-872e-4553-a5fc-de014b3184da + - 182c5b8e-bcb4-44e2-b2d0-4b0593a7abbb content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:37 GMT + - Mon, 14 Sep 2020 21:01:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -214,43 +70,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' - headers: - apim-request-id: - - 3286d3dd-6b8c-4027-9053-931022f54483 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:58:43 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' + - '16' status: code: 200 message: OK @@ -264,21 +84,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d5d97d55-82a7-4a15-b5e1-c320905a7b3f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' + string: '{"modelInfo": {"modelId": "d5d97d55-82a7-4a15-b5e1-c320905a7b3f", "status": + "creating", "createdDateTime": "2020-09-14T21:01:36Z", "lastUpdatedDateTime": + "2020-09-14T21:01:36Z"}}' headers: apim-request-id: - - dcba9956-52a6-4817-9f0d-a02da46c99fa + - c7dafb0b-f265-4dad-9907-6f037bc0bdb4 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:48 GMT + - Mon, 14 Sep 2020 21:01:46 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -286,7 +106,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '20' + - '16' status: code: 200 message: OK @@ -300,21 +120,32 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d5d97d55-82a7-4a15-b5e1-c320905a7b3f?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' + string: '{"modelInfo": {"modelId": "d5d97d55-82a7-4a15-b5e1-c320905a7b3f", "status": + "ready", "createdDateTime": "2020-09-14T21:01:36Z", "lastUpdatedDateTime": + "2020-09-14T21:01:49Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "subfolder/Form_6.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 5b465775-8298-4ff0-80ce-5ba25535caae + - 6382650e-5f69-4509-9e51-593889eae528 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:53 GMT + - Mon, 14 Sep 2020 21:01:50 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -322,46 +153,49 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '14' status: code: 200 message: OK - request: - body: null + body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "subfolder", + "includeSubFolders": true}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: - keep-alive + Content-Length: + - '296' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' + string: '' headers: apim-request-id: - - c2e672b2-014f-408c-9f5a-99dd8ea7acd0 - content-type: - - application/json; charset=utf-8 + - c73a015a-7993-4d4b-a819-34ff6a8961ca + content-length: + - '0' date: - - Fri, 10 Jul 2020 18:58:58 GMT + - Mon, 14 Sep 2020 21:01:51 GMT + location: + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9f007769-ee85-44ae-a978-c87796a61475 strict-transport-security: - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '16' + - '41' status: - code: 200 - message: OK + code: 201 + message: Created - request: body: null headers: @@ -372,21 +206,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9f007769-ee85-44ae-a978-c87796a61475?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "creating", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}}' + string: '{"modelInfo": {"modelId": "9f007769-ee85-44ae-a978-c87796a61475", "status": + "creating", "createdDateTime": "2020-09-14T21:01:51Z", "lastUpdatedDateTime": + "2020-09-14T21:01:51Z"}}' headers: apim-request-id: - - 2aae5104-944f-4d6c-8bb7-23b51e22d430 + - 79187434-45f9-4149-89fc-06adb3deb5ce content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:03 GMT + - Mon, 14 Sep 2020 21:01:56 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -394,7 +228,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '23' + - '15' status: code: 200 message: OK @@ -408,32 +242,21 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fe7d756b-b445-41d6-a861-e2f4e443a114?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9f007769-ee85-44ae-a978-c87796a61475?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fe7d756b-b445-41d6-a861-e2f4e443a114", "status": - "ready", "createdDateTime": "2020-07-10T18:58:12Z", "lastUpdatedDateTime": - "2020-07-10T18:59:04Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "subfolder/Form_6.jpg", - "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"modelInfo": {"modelId": "9f007769-ee85-44ae-a978-c87796a61475", "status": + "creating", "createdDateTime": "2020-09-14T21:01:51Z", "lastUpdatedDateTime": + "2020-09-14T21:01:51Z"}}' headers: apim-request-id: - - 9795ab2d-dcf9-4322-b5bc-9e4691e273ff + - ebb98b79-ac63-41ce-9252-1d6c8438f326 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:08 GMT + - Mon, 14 Sep 2020 21:02:02 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -441,49 +264,10 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '17' + - '15' status: code: 200 message: OK -- request: - body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "subfolder", - "includeSubFolders": true}, "useLabelFile": false}\''''' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '296' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models - response: - body: - string: '' - headers: - apim-request-id: - - 38246281-de76-4c3f-9fe4-54b58b8cd4d5 - content-length: - - '0' - date: - - Fri, 10 Jul 2020 18:59:08 GMT - location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/66a3596f-3c1d-4c3f-ba5a-03624d76af23 - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '109' - status: - code: 201 - message: Created - request: body: null headers: @@ -494,25 +278,25 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/66a3596f-3c1d-4c3f-ba5a-03624d76af23?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9f007769-ee85-44ae-a978-c87796a61475?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "66a3596f-3c1d-4c3f-ba5a-03624d76af23", "status": - "ready", "createdDateTime": "2020-07-10T18:59:09Z", "lastUpdatedDateTime": - "2020-07-10T18:59:13Z"}, "keys": {"clusters": {"0": ["Address:", "Company + string: '{"modelInfo": {"modelId": "9f007769-ee85-44ae-a978-c87796a61475", "status": + "ready", "createdDateTime": "2020-09-14T21:01:51Z", "lastUpdatedDateTime": + "2020-09-14T21:02:02Z"}, "keys": {"clusters": {"0": ["Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Name:", "Phone:", "Purchase Order #:", "Quantity", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "subfolder/Form_6.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: apim-request-id: - - 53651b78-3439-4a8d-833f-a8c26039ea78 + - 3057b4f9-ccee-4f78-88c5-fc339208bbb0 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:14 GMT + - Mon, 14 Sep 2020 21:02:06 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -520,7 +304,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '901' + - '16' status: code: 200 message: OK @@ -529,7 +313,7 @@ interactions: "includeSubFolders": false}, "useLabelFile": false}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -539,27 +323,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - decce70e-4a03-4161-a4f9-4e854feef04d + - cf33fd4b-d6c4-4512-b9fd-8cc970e5ffa7 content-length: - '0' date: - - Fri, 10 Jul 2020 18:59:16 GMT + - Mon, 14 Sep 2020 21:02:07 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/56ca8bd1-76ff-45f5-bf9b-2f029e9bf77e strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '1107' + - '63' status: code: 201 message: Created @@ -573,132 +357,24 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": - "creating", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": - "2020-07-10T18:59:16Z"}}' - headers: - apim-request-id: - - 8d0e4566-fd6d-4f6f-8abf-af597b3305d8 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:59:21 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '17' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": - "creating", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": - "2020-07-10T18:59:16Z"}}' - headers: - apim-request-id: - - 91d853a4-07d3-41f9-a250-f321bbbaeab1 - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:59:26 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '19' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/56ca8bd1-76ff-45f5-bf9b-2f029e9bf77e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": - "creating", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": - "2020-07-10T18:59:16Z"}}' - headers: - apim-request-id: - - 147f0bbc-90fb-4453-8a85-9bc53c4c2d2d - content-type: - - application/json; charset=utf-8 - date: - - Fri, 10 Jul 2020 18:59:31 GMT - strict-transport-security: - - max-age=31536000; includeSubDomains; preload - transfer-encoding: - - chunked - x-content-type-options: - - nosniff - x-envoy-upstream-service-time: - - '23' - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/276c317e-5931-45b7-9ee6-413f1ad89ac7?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "276c317e-5931-45b7-9ee6-413f1ad89ac7", "status": - "invalid", "createdDateTime": "2020-07-10T18:59:16Z", "lastUpdatedDateTime": - "2020-07-10T18:59:32Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "56ca8bd1-76ff-45f5-bf9b-2f029e9bf77e", "status": + "invalid", "createdDateTime": "2020-09-14T21:02:07Z", "lastUpdatedDateTime": + "2020-09-14T21:02:07Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2014", "message": "No valid blobs found in the specified Azure blob container. Please conform to the document format/size/page/dimensions requirements."}]}}' headers: apim-request-id: - - aad66651-f1a5-4a57-ab91-8cb0c941c87c + - 966ae020-eb9e-4e55-8c29-b438bc35d747 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:59:36 GMT + - Mon, 14 Sep 2020 21:02:11 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -706,7 +382,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '18' + - '17' x-ms-cs-error-code: - '2014' status: diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml index d47721b747db..119ccd282058 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 97f439bb-6f4c-46c9-ae22-3cb84d378cac + - 5eea82c3-0cb9-47c4-a20b-281b88512730 content-length: - '0' date: - - Fri, 10 Jul 2020 18:58:09 GMT + - Mon, 14 Sep 2020 21:01:35 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/69938daf-d966-48dd-868c-3d0fd287b049 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b9e43625-c8a3-4d22-a847-b93f59030d10 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '71' + - '44' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/69938daf-d966-48dd-868c-3d0fd287b049?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/b9e43625-c8a3-4d22-a847-b93f59030d10?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "69938daf-d966-48dd-868c-3d0fd287b049", "status": - "ready", "createdDateTime": "2020-07-10T18:58:09Z", "lastUpdatedDateTime": - "2020-07-10T18:58:12Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "b9e43625-c8a3-4d22-a847-b93f59030d10", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T21:01:36Z", + "lastUpdatedDateTime": "2020-09-14T21:01:37Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - b02b67f4-790f-498d-9563-880d099ff818 + - 27d1d514-2d6a-4365-9fdc-f08166e8e306 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:14 GMT + - Mon, 14 Sep 2020 21:01:40 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '955' + - '14' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml index 6e227a315d08..90352c87606e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training.test_training_with_labels_transform.yaml @@ -4,7 +4,7 @@ interactions: false}, "useLabelFile": true}\''''' headers: Accept: - - '*/*' + - application/json Accept-Encoding: - gzip, deflate Connection: @@ -14,27 +14,27 @@ interactions: Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: apim-request-id: - - 182c2d02-7ef4-46b1-b14a-328e6acc9e1b + - c97dfebb-d696-45b3-a0c2-da2dc6c65e44 content-length: - '0' date: - - Fri, 10 Jul 2020 18:58:15 GMT + - Mon, 14 Sep 2020 21:02:12 GMT location: - - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31f9ba9a-929c-4129-b6ce-fcbe5ab23ad2 + - https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/afac0980-5c3c-49e7-b773-d3c35d8775f0 strict-transport-security: - max-age=31536000; includeSubDomains; preload x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '68' + - '41' status: code: 201 message: Created @@ -48,35 +48,35 @@ interactions: Connection: - keep-alive User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/31f9ba9a-929c-4129-b6ce-fcbe5ab23ad2?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/afac0980-5c3c-49e7-b773-d3c35d8775f0?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "31f9ba9a-929c-4129-b6ce-fcbe5ab23ad2", "status": - "ready", "createdDateTime": "2020-07-10T18:58:15Z", "lastUpdatedDateTime": - "2020-07-10T18:58:18Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "afac0980-5c3c-49e7-b773-d3c35d8775f0", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T21:02:13Z", + "lastUpdatedDateTime": "2020-09-14T21:02:15Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: apim-request-id: - - 2c2c725f-a49b-4852-a078-00cb03911069 + - 137eab29-6b69-4921-bb9e-b8cd292af414 content-type: - application/json; charset=utf-8 date: - - Fri, 10 Jul 2020 18:58:21 GMT + - Mon, 14 Sep 2020 21:02:18 GMT strict-transport-security: - max-age=31536000; includeSubDomains; preload transfer-encoding: @@ -84,7 +84,7 @@ interactions: x-content-type-options: - nosniff x-envoy-upstream-service-time: - - '968' + - '17' status: code: 200 message: OK diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml index d6d59542c5c2..49edf28a1d37 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_polling_interval.yaml @@ -3,154 +3,105 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 532da8f9-e5cc-4c25-979f-ec74db9078c2 + apim-request-id: 8170b34e-90f8-4778-a4dd-487b81fe63fb content-length: '0' - date: Fri, 10 Jul 2020 18:59:37 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b + date: Mon, 14 Sep 2020 22:20:37 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '64' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b", "status": - "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": - "2020-07-10T18:59:37Z"}}' - headers: - apim-request-id: a6c96cbc-394e-4fbe-a447-3e4743dff671 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:44 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '1827' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b", "status": - "ready", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": - "2020-07-10T18:59:49Z"}, "keys": {"clusters": {"0": ["Additional Notes:", - "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + string: '{"modelInfo": {"modelId": "9c53bd59-bb02-4577-9afb-67c3e7a25b05", "status": + "creating", "createdDateTime": "2020-09-14T22:20:37Z", "lastUpdatedDateTime": + "2020-09-14T22:20:37Z"}}' headers: - apim-request-id: 1121811a-42a3-4a98-9945-77f7b07d2dbe + apim-request-id: 16be28d6-c237-47a1-8886-be45f7bb7f86 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:51 GMT + date: Mon, 14 Sep 2020 22:20:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '50' + x-envoy-upstream-service-time: '20' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d2f9b7bd-c8a6-4450-a246-dfea0ca7c36b?includeKeys=true -- request: - body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": - false}, "useLabelFile": false}\''''' - headers: - Content-Length: - - '288' - Content-Type: - - application/json - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models - response: - body: - string: '' - headers: - apim-request-id: a3c2d47d-da70-4645-9734-f38b1ed1c284 - content-length: '0' - date: Fri, 10 Jul 2020 18:59:51 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0 - strict-transport-security: max-age=31536000; includeSubDomains; preload - x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' - status: - code: 201 - message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": - "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": - "2020-07-10T18:59:52Z"}}' + string: '{"modelInfo": {"modelId": "9c53bd59-bb02-4577-9afb-67c3e7a25b05", "status": + "creating", "createdDateTime": "2020-09-14T22:20:37Z", "lastUpdatedDateTime": + "2020-09-14T22:20:37Z"}}' headers: - apim-request-id: a8f69864-2259-45d1-8d4b-706db491b788 + apim-request-id: 917dc8c4-7f1d-42b3-8d83-0bb5a7699bfa content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:58 GMT + date: Mon, 14 Sep 2020 22:20:49 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '995' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": - "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": - "2020-07-10T18:59:52Z"}}' - headers: - apim-request-id: 22087eaf-f20f-4ea2-b2ce-998c3aa068a1 + string: '{"modelInfo": {"modelId": "9c53bd59-bb02-4577-9afb-67c3e7a25b05", "status": + "ready", "createdDateTime": "2020-09-14T22:20:37Z", "lastUpdatedDateTime": + "2020-09-14T22:20:51Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 3460c13f-8aae-4c74-b411-925209040307 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:02 GMT + date: Mon, 14 Sep 2020 22:20:55 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -158,111 +109,116 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/9c53bd59-bb02-4577-9afb-67c3e7a25b05?includeKeys=true - request: - body: null + body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": + false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json + Content-Length: + - '288' + Content-Type: + - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: POST + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: - string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": - "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": - "2020-07-10T18:59:52Z"}}' + string: '' headers: - apim-request-id: 113fe960-b7f6-489d-bf1a-7dace3bc4571 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:08 GMT + apim-request-id: b35fe3ae-e54a-48e6-b3ba-8e9445f16e15 + content-length: '0' + date: Mon, 14 Sep 2020 22:20:55 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1 strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '161' + x-envoy-upstream-service-time: '39' status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + code: 201 + message: Created + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": - "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": - "2020-07-10T18:59:52Z"}}' + string: '{"modelInfo": {"modelId": "8fdab59f-3038-4163-9c7d-9750894332e1", "status": + "creating", "createdDateTime": "2020-09-14T22:20:56Z", "lastUpdatedDateTime": + "2020-09-14T22:20:56Z"}}' headers: - apim-request-id: 80c732bd-9b5c-4073-bd4a-d8d003e79b63 + apim-request-id: 5fc38ff3-b89a-4577-b2ed-ffc8307c8378 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:13 GMT + date: Mon, 14 Sep 2020 22:21:01 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": - "creating", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": - "2020-07-10T18:59:52Z"}}' + string: '{"modelInfo": {"modelId": "8fdab59f-3038-4163-9c7d-9750894332e1", "status": + "creating", "createdDateTime": "2020-09-14T22:20:56Z", "lastUpdatedDateTime": + "2020-09-14T22:20:56Z"}}' headers: - apim-request-id: 0439dedb-9b9b-4c8f-8528-2211efedbeac + apim-request-id: 58dc06ce-d36e-42f2-ad17-acaeb85fbbc7 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:18 GMT + date: Mon, 14 Sep 2020 22:21:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "1067aebb-eaa1-4469-ac61-e9573fcf81a0", "status": - "ready", "createdDateTime": "2020-07-10T18:59:52Z", "lastUpdatedDateTime": - "2020-07-10T19:00:22Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "8fdab59f-3038-4163-9c7d-9750894332e1", "status": + "ready", "createdDateTime": "2020-09-14T22:20:56Z", "lastUpdatedDateTime": + "2020-09-14T22:21:08Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' - headers: - apim-request-id: 8c8e46fe-bfb6-4e63-b086-9997393cb2ea + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' + headers: + apim-request-id: 2133ca15-98f1-454c-92d8-8efafa7fcee6 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:23 GMT + date: Mon, 14 Sep 2020 22:21:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '49' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/1067aebb-eaa1-4469-ac61-e9573fcf81a0?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/8fdab59f-3038-4163-9c7d-9750894332e1?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml index 0077304c77a2..4fbee7d49bdf 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_train_multipage_w_lbls_trnsfrm.yaml @@ -3,67 +3,70 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: db463be5-4574-460d-ac5f-f0c4fe6b1f30 + apim-request-id: 13c21521-c142-4a5b-bcf4-42dedeb58f2b content-length: '0' - date: Fri, 10 Jul 2020 18:58:21 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7c639cf-2c24-4664-be20-d518f3fc5f81 + date: Mon, 14 Sep 2020 22:20:38 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/80305b66-9afb-42b2-8924-b8c16ac09428 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '73' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7c639cf-2c24-4664-be20-d518f3fc5f81?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/80305b66-9afb-42b2-8924-b8c16ac09428?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "d7c639cf-2c24-4664-be20-d518f3fc5f81", "status": - "ready", "createdDateTime": "2020-07-10T18:58:22Z", "lastUpdatedDateTime": - "2020-07-10T18:58:27Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "80305b66-9afb-42b2-8924-b8c16ac09428", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T22:20:38Z", + "lastUpdatedDateTime": "2020-09-14T22:20:40Z"}, "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": []}}' headers: - apim-request-id: 1a0cc889-4cff-4bc9-a157-d7ef863a3aac + apim-request-id: 3cf4e803-233d-433b-8241-bca44cf0a58d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:58:27 GMT + date: Mon, 14 Sep 2020 22:20:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '18' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/d7c639cf-2c24-4664-be20-d518f3fc5f81?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/80305b66-9afb-42b2-8924-b8c16ac09428?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml index 84a6612d8971..843961281015 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training.yaml @@ -3,85 +3,111 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: f99b00b0-2747-435e-ad7a-bacdcece4c60 + apim-request-id: 44cde0e2-3687-41e2-ba00-92064b66b65a content-length: '0' - date: Fri, 10 Jul 2020 18:58:32 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8 + date: Mon, 14 Sep 2020 22:20:37 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '5165' + x-envoy-upstream-service-time: '40' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "44d04738-f4c7-4b92-bd1f-442d80b10db4", "status": + "creating", "createdDateTime": "2020-09-14T22:20:38Z", "lastUpdatedDateTime": + "2020-09-14T22:20:38Z"}}' + headers: + apim-request-id: 7fc94683-209a-4c86-9168-f2b0176ec49d + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 22:20:42 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "65d2d3fd-caee-4208-87c1-d2020a6c1af8", "status": - "creating", "createdDateTime": "2020-07-10T18:58:28Z", "lastUpdatedDateTime": - "2020-07-10T18:58:28Z"}}' + string: '{"modelInfo": {"modelId": "44d04738-f4c7-4b92-bd1f-442d80b10db4", "status": + "creating", "createdDateTime": "2020-09-14T22:20:38Z", "lastUpdatedDateTime": + "2020-09-14T22:20:38Z"}}' headers: - apim-request-id: 75390e12-a1d4-4426-98a9-081caa3b0bfc + apim-request-id: b2c7af20-b650-4528-b0e2-4c727437e2f9 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:58:37 GMT + date: Mon, 14 Sep 2020 22:20:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "65d2d3fd-caee-4208-87c1-d2020a6c1af8", "status": - "ready", "createdDateTime": "2020-07-10T18:58:28Z", "lastUpdatedDateTime": - "2020-07-10T18:58:42Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "44d04738-f4c7-4b92-bd1f-442d80b10db4", "status": + "ready", "createdDateTime": "2020-09-14T22:20:38Z", "lastUpdatedDateTime": + "2020-09-14T22:20:50Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 910fea9a-2b47-4e59-80d7-162689e30527 + apim-request-id: d0523247-c921-40d0-ba2f-e311bc70b9d3 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:58:44 GMT + date: Mon, 14 Sep 2020 22:20:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '997' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/65d2d3fd-caee-4208-87c1-d2020a6c1af8?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/44d04738-f4c7-4b92-bd1f-442d80b10db4?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml index 69b192e04777..de099e4e9ab0 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_auth_bad_key.yaml @@ -3,29 +3,26 @@ interactions: body: 'b''{"source": "xx", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}''' headers: + Accept: + - application/json Content-Length: - '99' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '{"error": {"code": "401", "message": "Access denied due to invalid subscription key or wrong API endpoint. Make sure to provide a valid key for an active subscription and use a correct regional API endpoint for your resource."}}' headers: - apim-request-id: 0669b984-9525-4ff0-b85b-7a390844193c - content-length: '225' - content-type: application/json - date: Fri, 10 Jul 2020 18:58:44 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - www-authenticate: AzureApiManagementKey realm="https://centraluseuap.api.cognitive.microsoft.com/formrecognizer",name="Ocp-Apim-Subscription-Key",type="header" - x-content-type-options: nosniff + content-length: '224' + date: Mon, 14 Sep 2020 22:21:12 GMT status: code: 401 - message: Access Denied - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + message: PermissionDenied + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml index 2736d3b98c52..33648a1ebd87 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_encoded_url.yaml @@ -3,165 +3,167 @@ interactions: body: 'b''{"source": "https://fakeuri.com/blank%20space", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}''' headers: + Accept: + - application/json Content-Length: - '130' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 445ab792-7815-4b19-8add-70a7a0757af6 + apim-request-id: 6f699864-9911-4617-afce-156712db02c0 content-length: '0' - date: Fri, 10 Jul 2020 18:59:06 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f + date: Mon, 14 Sep 2020 22:20:53 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '71' + x-envoy-upstream-service-time: '42' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: eeea1259-da4e-4f30-8ca8-54399122d93b + apim-request-id: 83fc89ab-5a9b-4ee0-a724-4dc0d08e6d02 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:10 GMT + date: Mon, 14 Sep 2020 22:20:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '169' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 444584b9-6000-4bfb-95ad-c2649b4717ba + apim-request-id: 1ce52014-d2e9-4a4d-9e6d-9cf8b403e946 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:15 GMT + date: Mon, 14 Sep 2020 22:21:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: dd4ae566-4b1c-4445-bc60-937fb96eb2e4 + apim-request-id: c392fac5-307e-45b6-a448-01bec2ab7bee content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:21 GMT + date: Mon, 14 Sep 2020 22:21:09 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '65' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 34055f8a-e2e4-4563-9097-577427a0aea1 + apim-request-id: be9eb9aa-c096-4fb2-9011-a1d7de05decb content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:26 GMT + date: Mon, 14 Sep 2020 22:21:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '171' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 09155328-dc40-42f0-aead-868c01049828 + apim-request-id: 0342c1f4-6607-4dfe-9a06-8ff9a0b6fd47 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:34 GMT + date: Mon, 14 Sep 2020 22:21:19 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '2141' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: f22068b3-db54-45e8-bed6-3f7f22e2cba0 + apim-request-id: a9bbc4f3-f462-40bf-a7e9-117406fd8494 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:38 GMT + date: Mon, 14 Sep 2020 22:21:24 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -169,248 +171,296 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: b9bb7923-6ff9-4c3c-abbc-4a05e145c185 + apim-request-id: 127258d2-70fd-4aef-a16e-a2fc69279248 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:44 GMT + date: Mon, 14 Sep 2020 22:21:30 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 1b496966-f263-426e-bb98-03bbad445d4b + apim-request-id: 59464570-5d65-4817-bd09-b14d8a2220d3 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:49 GMT + date: Mon, 14 Sep 2020 22:21:34 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 19b2996a-2ae0-40f1-9a64-156306f29417 + apim-request-id: a28e6741-b808-42b0-a0c2-772647d6d56f content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:55 GMT + date: Mon, 14 Sep 2020 22:21:39 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '901' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: d0d2ffb2-4a4c-43f9-b353-7a703d83218a + apim-request-id: 83e4d2b4-00b6-4714-bfbd-aee5974a07e7 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:00 GMT + date: Mon, 14 Sep 2020 22:21:44 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '15' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' + headers: + apim-request-id: 7173ca1c-cbae-4805-9782-0d92bf686158 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 22:21:50 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '15' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' + headers: + apim-request-id: b8f5706e-7ab5-4bab-b27d-a25278bb9a0c + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 22:21:55 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 27e8e084-706d-4661-8457-a70602ea6ea7 + apim-request-id: 7acc6933-54e8-461f-912a-3bb58bc40027 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:05 GMT + date: Mon, 14 Sep 2020 22:22:00 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '40' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: c193a8f1-4803-4a49-bcd6-ac369abe0962 + apim-request-id: 9acf0dd4-0b39-4e59-bbdb-f51751a29720 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:11 GMT + date: Mon, 14 Sep 2020 22:22:06 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 6fd40fa5-2061-4d04-92cc-e15d086b5def + apim-request-id: b1f0b2a4-954d-4540-920e-00e743b7e7dc content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:15 GMT + date: Mon, 14 Sep 2020 22:22:11 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '238' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 84473b1f-a368-4869-a4ac-bae526e163f7 + apim-request-id: 37d288bc-665b-4c6e-9b93-689a7114e66f content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:21 GMT + date: Mon, 14 Sep 2020 22:22:16 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "creating", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T18:59:06Z"}}' + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "creating", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:20:54Z"}}' headers: - apim-request-id: 1ff97455-383b-4493-b82c-3907419a2e05 + apim-request-id: 73c1ea82-d84a-41de-888e-715e958ce23a content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:26 GMT + date: Mon, 14 Sep 2020 22:22:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '53' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "fc13e581-e163-4d2c-96bd-d935537fbf6f", "status": - "invalid", "createdDateTime": "2020-07-10T18:59:06Z", "lastUpdatedDateTime": - "2020-07-10T19:00:31Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "d1fe2e06-6ce1-4956-a696-1019671f0a6c", "status": + "invalid", "createdDateTime": "2020-09-14T22:20:54Z", "lastUpdatedDateTime": + "2020-09-14T22:22:25Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2012", "message": "Unable to list blobs on the Azure blob storage account."}]}}' headers: - apim-request-id: 1a335d9c-6123-4a50-b46b-3e36f7dd6fdc + apim-request-id: 926afca4-ebec-47c1-b76b-167aa0de5c87 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:31 GMT + date: Mon, 14 Sep 2020 22:22:26 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '14' x-ms-cs-error-code: '2012' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/fc13e581-e163-4d2c-96bd-d935537fbf6f?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/d1fe2e06-6ce1-4956-a696-1019671f0a6c?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml index 706c6f899e06..3c2df0087347 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage.yaml @@ -3,113 +3,139 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '301' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 34f4d98c-1ab3-43a6-bc1a-c74d30126972 + apim-request-id: 81da3dc6-db1a-4385-8c4b-4148f469c45f content-length: '0' - date: Fri, 10 Jul 2020 18:59:37 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283 + date: Mon, 14 Sep 2020 22:21:04 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '74' + x-envoy-upstream-service-time: '37' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "5d3136de-9ab5-42fe-b73f-d0fe80f4b526", "status": + "creating", "createdDateTime": "2020-09-14T22:21:05Z", "lastUpdatedDateTime": + "2020-09-14T22:21:05Z"}}' + headers: + apim-request-id: 9ce0168d-41d0-49a1-af10-91b43e3e9752 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 22:21:10 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": - "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": - "2020-07-10T18:59:37Z"}}' + string: '{"modelInfo": {"modelId": "5d3136de-9ab5-42fe-b73f-d0fe80f4b526", "status": + "creating", "createdDateTime": "2020-09-14T22:21:05Z", "lastUpdatedDateTime": + "2020-09-14T22:21:05Z"}}' headers: - apim-request-id: f0f6e8bf-3a31-4ae7-b0f7-2d4a5f6dd272 + apim-request-id: 2fe5cadb-a311-4619-a39f-2d9255949d5b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:42 GMT + date: Mon, 14 Sep 2020 22:21:14 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": - "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": - "2020-07-10T18:59:37Z"}}' + string: '{"modelInfo": {"modelId": "5d3136de-9ab5-42fe-b73f-d0fe80f4b526", "status": + "creating", "createdDateTime": "2020-09-14T22:21:05Z", "lastUpdatedDateTime": + "2020-09-14T22:21:05Z"}}' headers: - apim-request-id: b676beb5-12d0-4410-80cb-b9d495391ddb + apim-request-id: 901da276-9da9-438e-8b7a-7ce68b2a51dc content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:48 GMT + date: Mon, 14 Sep 2020 22:21:20 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": - "creating", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": - "2020-07-10T18:59:37Z"}}' + string: '{"modelInfo": {"modelId": "5d3136de-9ab5-42fe-b73f-d0fe80f4b526", "status": + "creating", "createdDateTime": "2020-09-14T22:21:05Z", "lastUpdatedDateTime": + "2020-09-14T22:21:05Z"}}' headers: - apim-request-id: e09bd4dc-bdfe-418f-bc17-e728ab6b37d3 + apim-request-id: b097d947-d900-4400-bfd6-881b48e36d1d content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:53 GMT + date: Mon, 14 Sep 2020 22:21:25 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '788' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "debac28e-0abf-4357-ba59-bc3734a3f283", "status": - "ready", "createdDateTime": "2020-07-10T18:59:37Z", "lastUpdatedDateTime": - "2020-07-10T18:59:55Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "5d3136de-9ab5-42fe-b73f-d0fe80f4b526", "status": + "ready", "createdDateTime": "2020-09-14T22:21:05Z", "lastUpdatedDateTime": + "2020-09-14T22:21:30Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -119,15 +145,15 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 6a7a4af6-1531-4605-a5eb-b1c588227c84 + apim-request-id: 4a17e45d-598d-4483-aef9-e8090e5d1293 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 18:59:58 GMT + date: Mon, 14 Sep 2020 22:21:29 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/debac28e-0abf-4357-ba59-bc3734a3f283?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/5d3136de-9ab5-42fe-b73f-d0fe80f4b526?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml index 6d2f1ca6691c..26d9c8cf9b88 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_transform.yaml @@ -3,89 +3,139 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '301' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 0b2b0194-6880-48f1-ab2c-b27ca979c60a + apim-request-id: 3a283ef4-61c9-4e0e-a925-8b3b157e29ec content-length: '0' - date: Fri, 10 Jul 2020 19:00:32 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7 + date: Mon, 14 Sep 2020 22:22:27 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '117' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c38aab33-2ad6-41c0-ac5f-2d28ddb4571a", "status": + "creating", "createdDateTime": "2020-09-14T22:22:27Z", "lastUpdatedDateTime": + "2020-09-14T22:22:27Z"}}' + headers: + apim-request-id: ab105c70-ca66-40fe-b00d-e969bc6529a3 + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 22:22:32 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '17' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true +- request: + body: null + headers: + User-Agent: + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) + method: GET + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true + response: + body: + string: '{"modelInfo": {"modelId": "c38aab33-2ad6-41c0-ac5f-2d28ddb4571a", "status": + "creating", "createdDateTime": "2020-09-14T22:22:27Z", "lastUpdatedDateTime": + "2020-09-14T22:22:27Z"}}' + headers: + apim-request-id: 7f81bb89-1af8-4a04-b76d-6730ef377a8d + content-type: application/json; charset=utf-8 + date: Mon, 14 Sep 2020 22:22:37 GMT + strict-transport-security: max-age=31536000; includeSubDomains; preload + transfer-encoding: chunked + x-content-type-options: nosniff + x-envoy-upstream-service-time: '14' + status: + code: 200 + message: OK + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "697a0e43-a4f6-4c7b-80ac-878da38059d7", "status": - "creating", "createdDateTime": "2020-07-10T19:00:32Z", "lastUpdatedDateTime": - "2020-07-10T19:00:32Z"}}' + string: '{"modelInfo": {"modelId": "c38aab33-2ad6-41c0-ac5f-2d28ddb4571a", "status": + "creating", "createdDateTime": "2020-09-14T22:22:27Z", "lastUpdatedDateTime": + "2020-09-14T22:22:27Z"}}' headers: - apim-request-id: be6bfb67-04be-488f-be75-72f7ed1aa910 + apim-request-id: 9319b933-f5d4-409a-90b4-c01a032a5aa0 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:37 GMT + date: Mon, 14 Sep 2020 22:22:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "697a0e43-a4f6-4c7b-80ac-878da38059d7", "status": - "creating", "createdDateTime": "2020-07-10T19:00:32Z", "lastUpdatedDateTime": - "2020-07-10T19:00:32Z"}}' + string: '{"modelInfo": {"modelId": "c38aab33-2ad6-41c0-ac5f-2d28ddb4571a", "status": + "creating", "createdDateTime": "2020-09-14T22:22:27Z", "lastUpdatedDateTime": + "2020-09-14T22:22:27Z"}}' headers: - apim-request-id: ebc22f1b-3516-43e1-841f-4ec653a8976b + apim-request-id: 2eb64e62-c3ce-4e1e-9feb-5adc4a161f7b content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:42 GMT + date: Mon, 14 Sep 2020 22:22:47 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "697a0e43-a4f6-4c7b-80ac-878da38059d7", "status": - "ready", "createdDateTime": "2020-07-10T19:00:32Z", "lastUpdatedDateTime": - "2020-07-10T19:00:46Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice + string: '{"modelInfo": {"modelId": "c38aab33-2ad6-41c0-ac5f-2d28ddb4571a", "status": + "ready", "createdDateTime": "2020-09-14T22:22:27Z", "lastUpdatedDateTime": + "2020-09-14T22:22:51Z"}, "keys": {"clusters": {"0": ["Address:", "Invoice For:", "Item", "Price", "Quantity", "Redmond, WA", "Signature:", "Subtotal:", "Tax:", "Tip:", "Total:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "multipage_invoice1.pdf", "pages": 3, "errors": [], "status": "succeeded"}, @@ -95,15 +145,15 @@ interactions: 3, "errors": [], "status": "succeeded"}, {"documentName": "multipage_invoice5.pdf", "pages": 3, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: f88ab64f-f12a-471d-82ef-2079b4fd3711 + apim-request-id: 262de083-7eb2-45f8-8273-7444a7f31dc8 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:47 GMT + date: Mon, 14 Sep 2020 22:22:52 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/697a0e43-a4f6-4c7b-80ac-878da38059d7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c38aab33-2ad6-41c0-ac5f-2d28ddb4571a?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml index 79a21fa55244..4ca18eb589b6 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_multipage_with_labels.yaml @@ -3,67 +3,70 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '300' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 0065a544-c0c1-4b18-88c0-b4773cd1b412 + apim-request-id: 30e53574-e2d5-44e8-ac9f-3fa37a1a8b98 content-length: '0' - date: Fri, 10 Jul 2020 19:00:25 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/912674ba-d5f0-40d7-912b-471871d3b8f7 + date: Mon, 14 Sep 2020 22:21:31 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ab571bf5-34af-42c3-8da4-91f261a43b9e strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '912' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/912674ba-d5f0-40d7-912b-471871d3b8f7?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ab571bf5-34af-42c3-8da4-91f261a43b9e?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "912674ba-d5f0-40d7-912b-471871d3b8f7", "status": - "ready", "createdDateTime": "2020-07-10T19:00:24Z", "lastUpdatedDateTime": - "2020-07-10T19:00:28Z"}, "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": []}}' + string: '{"modelInfo": {"modelId": "ab571bf5-34af-42c3-8da4-91f261a43b9e", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T22:21:31Z", + "lastUpdatedDateTime": "2020-09-14T22:21:33Z"}, "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": []}}' headers: - apim-request-id: 1792f338-debf-4bb0-a8a8-235c92ff17c5 + apim-request-id: 01b1cbc0-f2ae-441c-9946-98d1fe2c11cd content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:30 GMT + date: Mon, 14 Sep 2020 22:21:36 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '17' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/912674ba-d5f0-40d7-912b-471871d3b8f7?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ab571bf5-34af-42c3-8da4-91f261a43b9e?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml index 93f457fac8bf..64c5bdca1a59 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_transform.yaml @@ -3,109 +3,111 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '288' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 56dcafd4-98a2-4fd6-83d0-7142bb71351b + apim-request-id: 1b8b220c-1a6c-4f58-a491-fbafca5ddc5a content-length: '0' - date: Fri, 10 Jul 2020 19:00:04 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea + date: Mon, 14 Sep 2020 22:21:11 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '6025' + x-envoy-upstream-service-time: '42' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "791ac27c-ed29-4e04-b5e4-0bab0f01f8ea", "status": - "creating", "createdDateTime": "2020-07-10T19:00:05Z", "lastUpdatedDateTime": - "2020-07-10T19:00:05Z"}}' + string: '{"modelInfo": {"modelId": "683591d5-ab50-4a65-99b7-fb10dce2a1cc", "status": + "creating", "createdDateTime": "2020-09-14T22:21:12Z", "lastUpdatedDateTime": + "2020-09-14T22:21:12Z"}}' headers: - apim-request-id: 208b2565-9301-4a02-9e3e-7517e95af23f + apim-request-id: 55bca0dc-775e-481d-a122-7d933c401771 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:10 GMT + date: Mon, 14 Sep 2020 22:21:17 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '47' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "791ac27c-ed29-4e04-b5e4-0bab0f01f8ea", "status": - "creating", "createdDateTime": "2020-07-10T19:00:05Z", "lastUpdatedDateTime": - "2020-07-10T19:00:05Z"}}' + string: '{"modelInfo": {"modelId": "683591d5-ab50-4a65-99b7-fb10dce2a1cc", "status": + "creating", "createdDateTime": "2020-09-14T22:21:12Z", "lastUpdatedDateTime": + "2020-09-14T22:21:12Z"}}' headers: - apim-request-id: b371b411-7b5f-4697-8f86-90ef227875fa + apim-request-id: bdd958b1-6694-4c90-bec0-66d76ebaf2fd content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:15 GMT + date: Mon, 14 Sep 2020 22:21:21 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' + x-envoy-upstream-service-time: '13' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "791ac27c-ed29-4e04-b5e4-0bab0f01f8ea", "status": - "ready", "createdDateTime": "2020-07-10T19:00:05Z", "lastUpdatedDateTime": - "2020-07-10T19:00:15Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "683591d5-ab50-4a65-99b7-fb10dce2a1cc", "status": + "ready", "createdDateTime": "2020-09-14T22:21:12Z", "lastUpdatedDateTime": + "2020-09-14T22:21:24Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}], "errors": []}}' + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 4d5ee810-2362-49ee-8a7d-9c5bd17c6537 + apim-request-id: 6fc9f0fe-f610-4b8b-b0b9-2880c45881ef content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:20 GMT + date: Mon, 14 Sep 2020 22:21:27 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/791ac27c-ed29-4e04-b5e4-0bab0f01f8ea?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/683591d5-ab50-4a65-99b7-fb10dce2a1cc?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml index 2e25887c9387..70db03b3b65f 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_files_filter.yaml @@ -3,117 +3,71 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": true}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 886f0b69-730b-4333-b30a-d838cc372e20 + apim-request-id: d94ea037-5ca7-49cd-b57a-6dd8f6a20fa8 content-length: '0' - date: Fri, 10 Jul 2020 19:00:21 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee + date: Mon, 14 Sep 2020 22:21:28 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '92' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:21Z"}}' + string: '{"modelInfo": {"modelId": "2c95a6c8-6e54-4ab5-a042-bfef01359fea", "status": + "creating", "createdDateTime": "2020-09-14T22:21:28Z", "lastUpdatedDateTime": + "2020-09-14T22:21:28Z"}}' headers: - apim-request-id: d9df1048-4811-41db-9736-b0d8c39d8cf6 + apim-request-id: 2ac9666f-de5a-483f-b3e2-775e7611112c content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:26 GMT + date: Mon, 14 Sep 2020 22:21:33 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '19' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:21Z"}}' - headers: - apim-request-id: 282d77da-eb23-4c6f-bac8-9ac2b0629fff - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:31 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:21Z"}}' - headers: - apim-request-id: 1bdb6c83-772c-430b-8826-56685416fcb2 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:36 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '21' + x-envoy-upstream-service-time: '16' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:21Z"}}' + string: '{"modelInfo": {"modelId": "2c95a6c8-6e54-4ab5-a042-bfef01359fea", "status": + "creating", "createdDateTime": "2020-09-14T22:21:28Z", "lastUpdatedDateTime": + "2020-09-14T22:21:28Z"}}' headers: - apim-request-id: 9a143af5-e53e-45d9-b0b3-a1b6759c636c + apim-request-id: 61b1434e-16cc-4186-b805-8f552c86a0c6 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:41 GMT + date: Mon, 14 Sep 2020 22:21:38 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff @@ -121,222 +75,178 @@ interactions: status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:21Z"}}' - headers: - apim-request-id: 3d008d3c-b610-45bd-b89f-c5e1b1cbbf08 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:46 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "creating", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:21Z"}}' - headers: - apim-request-id: d73d3f64-24f3-4b3a-8528-b79f7fc79a85 - content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:52 GMT - strict-transport-security: max-age=31536000; includeSubDomains; preload - transfer-encoding: chunked - x-content-type-options: nosniff - x-envoy-upstream-service-time: '16' - status: - code: 200 - message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true -- request: - body: null - headers: - User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true - response: - body: - string: '{"modelInfo": {"modelId": "ca5bda2a-f7c6-43be-adb4-1a6199a86aee", "status": - "ready", "createdDateTime": "2020-07-10T19:00:21Z", "lastUpdatedDateTime": - "2020-07-10T19:00:33Z"}, "keys": {"clusters": {"0": ["Additional Notes:", + string: '{"modelInfo": {"modelId": "2c95a6c8-6e54-4ab5-a042-bfef01359fea", "status": + "ready", "createdDateTime": "2020-09-14T22:21:28Z", "lastUpdatedDateTime": + "2020-09-14T22:21:41Z"}, "keys": {"clusters": {"0": ["Additional Notes:", "Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Email:", - "Hero Limited", "Name:", "Phone:", "Purchase Order", "Purchase Order #:", - "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped From", "Shipped - To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, - "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": - 1, "errors": [], "status": "succeeded"}, {"documentName": "subfolder/Form_6.jpg", + "Ft Lauderdale, FL Phone:", "Hero Limited", "Name:", "Phone:", "Purchase Order", + "Purchase Order #:", "Quantity", "SUBTOTAL", "Seattle, WA 93849 Phone:", "Shipped + From", "Shipped To", "TAX", "TOTAL", "Total", "Unit Price", "Vendor Name:", + "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "Form_1.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_2.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_3.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_4.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "errors": [], "status": "succeeded"}, {"documentName": "subfolder/Form_6.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 93b25f2a-e79c-4854-acbe-51b6d0a33997 + apim-request-id: b3bf2593-5655-49a3-b1f0-fae4f68ea43e content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:57 GMT + date: Mon, 14 Sep 2020 22:21:43 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '18' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/ca5bda2a-f7c6-43be-adb4-1a6199a86aee?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/2c95a6c8-6e54-4ab5-a042-bfef01359fea?includeKeys=true - request: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "subfolder", "includeSubFolders": true}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '296' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 28be00d2-a79a-4bff-a9ad-feff1f6f3cb4 + apim-request-id: 3754e53a-c160-4489-aeaa-f06cd85091a4 content-length: '0' - date: Fri, 10 Jul 2020 19:00:57 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3 + date: Mon, 14 Sep 2020 22:21:43 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '181' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3147eb57-5e40-418a-a192-7de7839934e3", "status": - "creating", "createdDateTime": "2020-07-10T19:00:57Z", "lastUpdatedDateTime": - "2020-07-10T19:00:57Z"}}' + string: '{"modelInfo": {"modelId": "c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b", "status": + "creating", "createdDateTime": "2020-09-14T22:21:43Z", "lastUpdatedDateTime": + "2020-09-14T22:21:43Z"}}' headers: - apim-request-id: 65eb1151-efd7-4b50-874e-b44320a0742a + apim-request-id: 95f82d54-edb8-4f6e-b9be-b34f78d6e90e content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:01:02 GMT + date: Mon, 14 Sep 2020 22:21:48 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '48' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b?includeKeys=true - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "3147eb57-5e40-418a-a192-7de7839934e3", "status": - "ready", "createdDateTime": "2020-07-10T19:00:57Z", "lastUpdatedDateTime": - "2020-07-10T19:01:03Z"}, "keys": {"clusters": {"0": ["Address:", "Company + string: '{"modelInfo": {"modelId": "c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b", "status": + "ready", "createdDateTime": "2020-09-14T22:21:43Z", "lastUpdatedDateTime": + "2020-09-14T22:21:50Z"}, "keys": {"clusters": {"0": ["Address:", "Company Name:", "Company Phone:", "Dated As:", "Details", "Name:", "Phone:", "Purchase Order #:", "Quantity", "Total", "Unit Price", "Vendor Name:", "Website:"]}}, "trainResult": {"trainingDocuments": [{"documentName": "subfolder/Form_6.jpg", "pages": 1, "errors": [], "status": "succeeded"}], "errors": []}}' headers: - apim-request-id: 44bfb32e-3d8c-4f95-abef-6812cacf1dd8 + apim-request-id: 21303f17-43bb-4f85-a41a-6340324f1a52 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:01:08 GMT + date: Mon, 14 Sep 2020 22:21:53 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '835' + x-envoy-upstream-service-time: '15' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/3147eb57-5e40-418a-a192-7de7839934e3?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/c0a1e1a7-bf1b-4f5f-bda9-7355ab18be1b?includeKeys=true - request: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "xxx", "includeSubFolders": false}, "useLabelFile": false}\''''' headers: + Accept: + - application/json Content-Length: - '291' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 3c5f853e-f83c-46a2-9ec9-b584f7143877 + apim-request-id: d8deb65c-46ec-4d4e-a52a-ad494d692b3a content-length: '0' - date: Fri, 10 Jul 2020 19:01:09 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bb95b4f6-97e9-48a4-8485-812e148c2513 + date: Mon, 14 Sep 2020 22:21:53 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0c7415c-ea32-42c3-8e51-3e31672ec44d strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '714' + x-envoy-upstream-service-time: '39' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bb95b4f6-97e9-48a4-8485-812e148c2513?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0c7415c-ea32-42c3-8e51-3e31672ec44d?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "bb95b4f6-97e9-48a4-8485-812e148c2513", "status": - "invalid", "createdDateTime": "2020-07-10T19:01:09Z", "lastUpdatedDateTime": - "2020-07-10T19:01:10Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": + string: '{"modelInfo": {"modelId": "a0c7415c-ea32-42c3-8e51-3e31672ec44d", "status": + "invalid", "createdDateTime": "2020-09-14T22:21:54Z", "lastUpdatedDateTime": + "2020-09-14T22:21:54Z"}, "keys": {"clusters": {}}, "trainResult": {"trainingDocuments": [], "errors": [{"code": "2014", "message": "No valid blobs found in the specified Azure blob container. Please conform to the document format/size/page/dimensions requirements."}]}}' headers: - apim-request-id: 747ef181-61ee-4280-a829-d8bb666c97c1 + apim-request-id: f358aa8c-e59c-418f-ad9e-ee9ea4912667 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:01:14 GMT + date: Mon, 14 Sep 2020 22:21:58 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '859' + x-envoy-upstream-service-time: '15' x-ms-cs-error-code: '2014' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/bb95b4f6-97e9-48a4-8485-812e148c2513?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/a0c7415c-ea32-42c3-8e51-3e31672ec44d?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml index dbe6f5a3e1c2..b34a2b9f991b 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels.yaml @@ -3,65 +3,67 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: ff956a90-01ea-4a80-9c6a-956b9f767689 + apim-request-id: 0b8fd395-093e-4775-aa4d-9288a2b5e0b7 content-length: '0' - date: Fri, 10 Jul 2020 19:01:16 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c164fece-b3f1-460f-b3f8-e9ee86574c51 + date: Mon, 14 Sep 2020 22:21:59 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ed77ab68-b223-40de-9a62-78c3b3489d54 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '45' + x-envoy-upstream-service-time: '43' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c164fece-b3f1-460f-b3f8-e9ee86574c51?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ed77ab68-b223-40de-9a62-78c3b3489d54?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "c164fece-b3f1-460f-b3f8-e9ee86574c51", "status": - "ready", "createdDateTime": "2020-07-10T19:01:16Z", "lastUpdatedDateTime": - "2020-07-10T19:01:18Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "ed77ab68-b223-40de-9a62-78c3b3489d54", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T22:22:00Z", + "lastUpdatedDateTime": "2020-09-14T22:22:02Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: c8c598a1-6947-4499-a3eb-855520e3dfac + apim-request-id: 81475cbf-9dbb-4e06-b1bd-8df780f024ab content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:01:21 GMT + date: Mon, 14 Sep 2020 22:22:04 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '20' + x-envoy-upstream-service-time: '17' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/c164fece-b3f1-460f-b3f8-e9ee86574c51?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/ed77ab68-b223-40de-9a62-78c3b3489d54?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml index 0bddfbb42f69..1481bc4fb593 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/recordings/test_training_async.test_training_with_labels_transform.yaml @@ -3,65 +3,67 @@ interactions: body: 'b''b\''{"source": "containersasurl", "sourceFilter": {"prefix": "", "includeSubFolders": false}, "useLabelFile": true}\''''' headers: + Accept: + - application/json Content-Length: - '287' Content-Type: - application/json User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: POST - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models response: body: string: '' headers: - apim-request-id: 1fb37500-40c8-45d3-9a90-2c1a4f74539d + apim-request-id: 3158636d-28bc-40f8-88ec-4c286fa0110a content-length: '0' - date: Fri, 10 Jul 2020 19:00:35 GMT - location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7acb3752-3266-4dcf-91e9-1189cdf98e38 + date: Mon, 14 Sep 2020 22:21:36 GMT + location: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4c209102-eaf7-4a08-a32d-49bc5f8ec289 strict-transport-security: max-age=31536000; includeSubDomains; preload x-content-type-options: nosniff - x-envoy-upstream-service-time: '5099' + x-envoy-upstream-service-time: '47' status: code: 201 message: Created - url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.0/custom/models + url: https://centraluseuap.api.cognitive.microsoft.com//formrecognizer/v2.1-preview.1/custom/models - request: body: null headers: User-Agent: - - azsdk-python-ai-formrecognizer/1.0.0b5 Python/3.7.3 (Windows-10-10.0.18362-SP0) + - azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.7.3 (Windows-10-10.0.19041-SP0) method: GET - uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7acb3752-3266-4dcf-91e9-1189cdf98e38?includeKeys=true + uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4c209102-eaf7-4a08-a32d-49bc5f8ec289?includeKeys=true response: body: - string: '{"modelInfo": {"modelId": "7acb3752-3266-4dcf-91e9-1189cdf98e38", "status": - "ready", "createdDateTime": "2020-07-10T19:00:30Z", "lastUpdatedDateTime": - "2020-07-10T19:00:39Z"}, "trainResult": {"averageModelAccuracy": 0.973, "trainingDocuments": - [{"documentName": "Form_1.jpg", "pages": 1, "status": "succeeded"}, {"documentName": - "Form_2.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_3.jpg", - "pages": 1, "status": "succeeded"}, {"documentName": "Form_4.jpg", "pages": - 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", "pages": 1, "status": - "succeeded"}], "fields": [{"fieldName": "CompanyAddress", "accuracy": 0.8}, - {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": "CompanyPhoneNumber", - "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": 1.0}, {"fieldName": - "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": 1.0}, {"fieldName": - "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", "accuracy": - 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": "Signature", - "accuracy": 1.0}, {"fieldName": "Subtotal", "accuracy": 1.0}, {"fieldName": - "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": 1.0}, {"fieldName": - "VendorName", "accuracy": 1.0}, {"fieldName": "Website", "accuracy": 1.0}], - "errors": []}}' + string: '{"modelInfo": {"modelId": "4c209102-eaf7-4a08-a32d-49bc5f8ec289", "attributes": + {"isComposed": false}, "status": "ready", "createdDateTime": "2020-09-14T22:21:36Z", + "lastUpdatedDateTime": "2020-09-14T22:21:38Z"}, "trainResult": {"averageModelAccuracy": + 0.96, "trainingDocuments": [{"documentName": "Form_1.jpg", "pages": 1, "status": + "succeeded"}, {"documentName": "Form_2.jpg", "pages": 1, "status": "succeeded"}, + {"documentName": "Form_3.jpg", "pages": 1, "status": "succeeded"}, {"documentName": + "Form_4.jpg", "pages": 1, "status": "succeeded"}, {"documentName": "Form_5.jpg", + "pages": 1, "status": "succeeded"}], "fields": [{"fieldName": "CompanyAddress", + "accuracy": 0.8}, {"fieldName": "CompanyName", "accuracy": 1.0}, {"fieldName": + "CompanyPhoneNumber", "accuracy": 1.0}, {"fieldName": "DatedAs", "accuracy": + 1.0}, {"fieldName": "Email", "accuracy": 0.8}, {"fieldName": "Merchant", "accuracy": + 1.0}, {"fieldName": "PhoneNumber", "accuracy": 1.0}, {"fieldName": "PurchaseOrderNumber", + "accuracy": 1.0}, {"fieldName": "Quantity", "accuracy": 1.0}, {"fieldName": + "Signature", "accuracy": 0.8}, {"fieldName": "Subtotal", "accuracy": 1.0}, + {"fieldName": "Tax", "accuracy": 1.0}, {"fieldName": "Total", "accuracy": + 1.0}, {"fieldName": "VendorName", "accuracy": 1.0}, {"fieldName": "Website", + "accuracy": 1.0}], "errors": []}}' headers: - apim-request-id: 22b04da9-9460-421a-ac33-927c2f009336 + apim-request-id: 04773b6e-29f6-4b8b-89c6-81dace7cbc05 content-type: application/json; charset=utf-8 - date: Fri, 10 Jul 2020 19:00:40 GMT + date: Mon, 14 Sep 2020 22:21:41 GMT strict-transport-security: max-age=31536000; includeSubDomains; preload transfer-encoding: chunked x-content-type-options: nosniff - x-envoy-upstream-service-time: '15' + x-envoy-upstream-service-time: '14' status: code: 200 message: OK - url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.0/custom/models/7acb3752-3266-4dcf-91e9-1189cdf98e38?includeKeys=true + url: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/custom/models/4c209102-eaf7-4a08-a32d-49bc5f8ec289?includeKeys=true version: 1 diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content.py index f4e86ac4c03f..8d682426a14e 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content.py @@ -138,7 +138,7 @@ def test_content_stream_transform_pdf(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -178,7 +178,7 @@ def test_content_stream_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -230,7 +230,7 @@ def test_content_multipage_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -293,7 +293,7 @@ def test_content_multipage_table_span_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_async.py index 9a2dc3cd153a..3f011f2f200d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_async.py @@ -162,7 +162,7 @@ async def test_content_stream_transform_pdf(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -204,7 +204,7 @@ async def test_content_stream_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -261,7 +261,7 @@ async def test_content_multipage_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -327,7 +327,7 @@ async def test_content_multipage_table_span_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url.py index 6c22b94259b1..fb9474565925 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url.py @@ -65,7 +65,7 @@ def test_content_url_transform_pdf(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -99,7 +99,7 @@ def test_content_url_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -145,7 +145,7 @@ def test_content_multipage_transform_url(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -201,7 +201,7 @@ def test_content_multipage_table_span_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py index 10e727bf120f..a3fd89f63920 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_content_from_url_async.py @@ -77,7 +77,7 @@ async def test_content_url_transform_pdf(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -113,7 +113,7 @@ async def test_content_url_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -161,7 +161,7 @@ async def test_content_multipage_transform_url(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) @@ -220,7 +220,7 @@ async def test_content_multipage_table_span_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_layout = prepare_content_result(analyze_result) responses.append(analyze_result) responses.append(extracted_layout) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py index 0b8adaf38bb4..8604bd345f22 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model.py @@ -113,7 +113,7 @@ def test_copy_model_transform(self, client, container_sas_url, location, resourc raw_response = [] def callback(response, _, headers): - copy_result = client._client._deserialize(CopyOperationResult, response) + copy_result = client._deserialize(CopyOperationResult, response) model_info = CustomFormModelInfo._from_generated(copy_result, target["modelId"]) raw_response.append(copy_result) raw_response.append(model_info) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model_async.py index 0aa92f1f9dcd..a55791e3fca5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_copy_model_async.py @@ -109,7 +109,7 @@ async def test_copy_model_fail_bad_model_id(self, client, container_sas_url, loc @GlobalClientPreparer(training=True, copy=True) async def test_copy_model_transform(self, client, container_sas_url, location, resource_id): def callback(response, _, headers): - copy_result = client._client._deserialize(CopyOperationResult, response) + copy_result = client._deserialize(CopyOperationResult, response) model_info = CustomFormModelInfo._from_generated(copy_result, target["modelId"]) raw_response.append(copy_result) raw_response.append(model_info) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms.py index 9cacd7473387..c210f0af8db5 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms.py @@ -240,7 +240,7 @@ def test_custom_form_unlabeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -277,7 +277,7 @@ def test_custom_form_multipage_unlabeled_transform(self, client, container_sas_u responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -315,7 +315,7 @@ def test_custom_form_labeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -352,7 +352,7 @@ def test_custom_form_multipage_labeled_transform(self, client, container_sas_url responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -416,7 +416,7 @@ def test_custom_form_multipage_vendor_set_unlabeled_transform(self, client, cont responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -455,7 +455,7 @@ def test_custom_form_multipage_vendor_set_labeled_transform(self, client, contai responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py index f1333b0b7e88..25ad211cb985 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_async.py @@ -259,7 +259,7 @@ async def test_form_unlabeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -299,7 +299,7 @@ async def test_custom_forms_multipage_unlabeled_transform(self, client, containe responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -340,7 +340,7 @@ async def test_form_labeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -380,7 +380,7 @@ async def test_custom_forms_multipage_labeled_transform(self, client, container_ responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -450,7 +450,7 @@ async def test_custom_form_multipage_vendor_set_unlabeled_transform(self, client responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -494,7 +494,7 @@ async def test_custom_form_multipage_vendor_set_labeled_transform(self, client, myfile = fd.read() def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py index 46f14149a5a3..dd1d8696dd35 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url.py @@ -193,7 +193,7 @@ def test_custom_form_unlabeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -227,7 +227,7 @@ def test_custom_form_multipage_unlabeled_transform(self, client, container_sas_u responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -263,7 +263,7 @@ def test_form_labeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -297,7 +297,7 @@ def test_custom_form_multipage_labeled_transform(self, client, container_sas_url responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -357,7 +357,7 @@ def test_custom_form_multipage_vendor_set_unlabeled_transform(self, client, cont responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -393,7 +393,7 @@ def test_custom_form_multipage_vendor_set_labeled_transform(self, client, contai responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py index 6aeaa3f78347..53411cfe41f9 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_custom_forms_from_url_async.py @@ -211,7 +211,7 @@ async def test_form_unlabeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -248,7 +248,7 @@ async def test_multipage_unlabeled_transform(self, client, container_sas_url, bl responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -286,7 +286,7 @@ async def test_form_labeled_transform(self, client, container_sas_url): responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -323,7 +323,7 @@ async def test_multipage_labeled_transform(self, client, container_sas_url, blob responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -387,7 +387,7 @@ async def test_custom_form_multipage_vendor_set_unlabeled_transform(self, client responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) @@ -425,7 +425,7 @@ async def test_custom_form_multipage_vendor_set_labeled_transform(self, client, responses = [] def callback(raw_response, _, headers): - analyze_result = fr_client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = fr_client._deserialize(AnalyzeOperationResult, raw_response) form = prepare_form_result(analyze_result, model.model_id) responses.append(analyze_result) responses.append(form) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py index 6da44b7f72e5..75591a8a47e1 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_mgmt.py @@ -164,8 +164,8 @@ def test_get_form_recognizer_client(self, resource_group, location, form_recogni @GlobalFormRecognizerAccountPreparer() def test_api_version_form_training_client(self, resource_group, location, form_recognizer_account, form_recognizer_account_key): with self.assertRaises(ValueError): - ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), api_version="v9.1") + ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), api_version="9.1") # these do not raise - ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), api_version="v2.0") + ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), api_version="2.0") ftc = FormTrainingClient(endpoint=form_recognizer_account, credential=AzureKeyCredential(form_recognizer_account_key), api_version=FormRecognizerApiVersion.V2_0) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py new file mode 100644 index 000000000000..707d4b4c3778 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi.py @@ -0,0 +1,46 @@ + +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ + +import functools +from testcase import FormRecognizerTest +from testcase import GlobalFormRecognizerAccountPreparer +from testcase import GlobalClientPreparer as _GlobalClientPreparer +from azure.ai.formrecognizer import FormRecognizerClient, FormTrainingClient, FormRecognizerApiVersion + +FormRecognizerClientPreparer = functools.partial(_GlobalClientPreparer, FormRecognizerClient) +FormTrainingClientPreparer = functools.partial(_GlobalClientPreparer, FormTrainingClient) + +class TestMultiapi(FormRecognizerTest): + @GlobalFormRecognizerAccountPreparer() + @FormRecognizerClientPreparer() + def test_default_api_version_form_recognizer_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormTrainingClientPreparer() + def test_default_api_version_form_training_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormRecognizerClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_0}) + def test_v2_0_form_recognizer_client(self, client): + assert "v2.0" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormTrainingClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_0}) + def test_v2_0_form_training_client(self, client): + assert "v2.0" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormRecognizerClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_1_PREVIEW_1}) + def test_v2_1_preview_1_form_recognizer_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormTrainingClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_1_PREVIEW_1}) + def test_v2_1_preview_1_form_training_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py new file mode 100644 index 000000000000..ed1120432fa5 --- /dev/null +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_multiapi_async.py @@ -0,0 +1,47 @@ + +# coding=utf-8 +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ + +import functools +from testcase import GlobalFormRecognizerAccountPreparer +from testcase import GlobalClientPreparer as _GlobalClientPreparer +from asynctestcase import AsyncFormRecognizerTest +from azure.ai.formrecognizer.aio import FormRecognizerClient, FormTrainingClient +from azure.ai.formrecognizer import FormRecognizerApiVersion + +FormRecognizerClientPreparer = functools.partial(_GlobalClientPreparer, FormRecognizerClient) +FormTrainingClientPreparer = functools.partial(_GlobalClientPreparer, FormTrainingClient) + +class TestMultiapi(AsyncFormRecognizerTest): + @GlobalFormRecognizerAccountPreparer() + @FormRecognizerClientPreparer() + def test_default_api_version_form_recognizer_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormTrainingClientPreparer() + def test_default_api_version_form_training_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormRecognizerClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_0}) + def test_v2_0_form_recognizer_client(self, client): + assert "v2.0" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormTrainingClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_0}) + def test_v2_0_form_training_client(self, client): + assert "v2.0" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormRecognizerClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_1_PREVIEW_1}) + def test_v2_1_preview_1_form_recognizer_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url + + @GlobalFormRecognizerAccountPreparer() + @FormTrainingClientPreparer(client_kwargs={"api_version": FormRecognizerApiVersion.V2_1_PREVIEW_1}) + def test_v2_1_preview_1_form_training_client(self, client): + assert "v2.1-preview.1" in client._client._client._base_url diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py index b6174f5c1469..dc963c1f6090 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py @@ -139,7 +139,7 @@ def test_receipt_stream_transform_png(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -193,7 +193,7 @@ def test_receipt_stream_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -354,7 +354,7 @@ def test_receipt_multipage_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py index 90d912ce19e9..99b208ccf12c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_async.py @@ -162,7 +162,7 @@ async def test_receipt_stream_transform_png(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -217,7 +217,7 @@ async def test_receipt_stream_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -381,7 +381,7 @@ async def test_receipt_multipage_transform(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py index 902b2929a7cb..3697c20e993c 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url.py @@ -87,7 +87,7 @@ def test_receipt_url_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -139,7 +139,7 @@ def test_receipt_url_transform_png(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -292,7 +292,7 @@ def test_receipt_multipage_transform_url(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py index 00c30101b42a..c9d5b5559031 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt_from_url_async.py @@ -112,7 +112,7 @@ async def test_receipt_url_transform_jpg(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -164,7 +164,7 @@ async def test_receipt_url_transform_png(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) @@ -324,7 +324,7 @@ async def test_receipt_multipage_transform_url(self, client): responses = [] def callback(raw_response, _, headers): - analyze_result = client._client._deserialize(AnalyzeOperationResult, raw_response) + analyze_result = client._deserialize(AnalyzeOperationResult, raw_response) extracted_receipt = prepare_receipt(analyze_result) responses.append(analyze_result) responses.append(extracted_receipt) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training.py index 525d9efe909f..4fe0e83f6a6d 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training.py @@ -106,8 +106,8 @@ def test_training_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) @@ -125,8 +125,8 @@ def test_training_multipage_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) @@ -192,8 +192,8 @@ def test_training_with_labels_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) @@ -211,8 +211,8 @@ def test_train_multipage_w_labels_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) diff --git a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training_async.py b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training_async.py index 2aa4220e30e2..c6b55dac1976 100644 --- a/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training_async.py +++ b/sdk/formrecognizer/azure-ai-formrecognizer/tests/test_training_async.py @@ -113,8 +113,8 @@ async def test_training_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) @@ -136,8 +136,8 @@ async def test_training_multipage_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) @@ -203,8 +203,8 @@ async def test_training_with_labels_transform(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model) @@ -223,8 +223,8 @@ async def test_train_multipage_w_lbls_trnsfrm(self, client, container_sas_url): raw_response = [] - def callback(response): - raw_model = client._client._deserialize(Model, response) + def callback(response, _, headers): + raw_model = client._deserialize(Model, response) custom_model = CustomFormModel._from_generated(raw_model) raw_response.append(raw_model) raw_response.append(custom_model)