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 ce262f29aea3..9840fe4aeb0c 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 @@ -335,13 +335,13 @@ def begin_recognize_business_cards_from_url(self, business_card_url, **kwargs): "only available for API version V2_1_PREVIEW and up" ) raise e - + @distributed_trace def begin_recognize_id_documents(self, id_document, **kwargs): # type: (Union[bytes, IO[bytes]], Any) -> LROPoller[List[RecognizedForm]] - """Extract field text and semantic values from a given ID document. - The input document must be of one of the supported content types - 'application/pdf', - 'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'. + """Extract field text and semantic values from a given ID document. + The input document must be of one of the supported content types - 'application/pdf', + 'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'. Alternatively, use 'application/json' type to specify the location (Uri) of the document to be analyzed. @@ -370,7 +370,7 @@ def begin_recognize_id_documents(self, id_document, **kwargs): .. versionadded:: v2.1-preview The *begin_recognize_id_documents* client method - + .. admonition:: Example: .. literalinclude:: ../samples/sample_recognize_id_documents.py @@ -406,11 +406,10 @@ def begin_recognize_id_documents(self, id_document, **kwargs): ) raise e - @distributed_trace def begin_recognize_id_documents_from_url(self, id_document_url, **kwargs): # type: (str, Any) -> LROPoller[List[RecognizedForm]] - """Extract field text and semantic values from a given ID document. + """Extract field text and semantic values from a given ID document. The input document must be the location (URL) of the ID document to be analyzed. See fields found on an ID document here: 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 954f55efc7bc..3430e4f86cb7 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 @@ -341,14 +341,14 @@ async def begin_recognize_business_cards_from_url( "API version V2_1_PREVIEW and up" ) raise e - + @distributed_trace_async async def begin_recognize_id_documents( self, id_document, **kwargs: Any ) -> AsyncLROPoller[List[RecognizedForm]]: - """Extract field text and semantic values from a given ID document. - The input document must be of one of the supported content types - 'application/pdf', - 'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'. + """Extract field text and semantic values from a given ID document. + The input document must be of one of the supported content types - 'application/pdf', + 'image/jpeg', 'image/png', 'image/tiff' or 'image/bmp'. Alternatively, use 'application/json' type to specify the location (Uri) of the document to be analyzed. @@ -418,7 +418,7 @@ async def begin_recognize_id_documents( async def begin_recognize_id_documents_from_url( self, id_document_url: str, **kwargs: Any ) -> AsyncLROPoller[List[RecognizedForm]]: - """Extract field text and semantic values from a given ID document. + """Extract field text and semantic values from a given ID document. The input document must be the location (URL) of the ID document to be analyzed. See fields found on an ID document here: