Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
super(ComputerVisionClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '3.0'
self.api_version = '3.1'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(
raise ValueError("Parameter 'endpoint' must not be None.")
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
base_url = '{Endpoint}/vision/v3.0'
base_url = '{Endpoint}/vision/v3.1'

super(ComputerVisionClientConfiguration, self).__init__(base_url)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -726,14 +726,14 @@ def read(

:param url: Publicly reachable URL of an image.
:type url: str
:param language: The BCP-47 language code of the text to be detected
in the image. In future versions, when language parameter is not
passed, language detection will be used to determine the language.
However, in the current version, missing language parameter will cause
English to be used. To ensure that your document is always parsed in
English without the use of language detection in the future, pass “en”
in the language parameter. Possible values include: 'en', 'es', 'fr',
'de', 'it', 'nl', 'pt'
:param language: The BCP-47 language code of the text in the document.
Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German
(‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
supported. Read supports auto language identification and
multi-language documents, so only provide a language code if you would
like to force the documented to be processed as that specific
language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl',
'pt'
:type language: str or
~azure.cognitiveservices.vision.computervision.models.OcrDetectionLanguage
:param dict custom_headers: headers that will be added to the request
Expand Down Expand Up @@ -1513,14 +1513,14 @@ def read_in_stream(

:param image: An image stream.
:type image: Generator
:param language: The BCP-47 language code of the text to be detected
in the image. In future versions, when language parameter is not
passed, language detection will be used to determine the language.
However, in the current version, missing language parameter will cause
English to be used. To ensure that your document is always parsed in
English without the use of language detection in the future, pass “en”
in the language parameter. Possible values include: 'en', 'es', 'fr',
'de', 'it', 'nl', 'pt'
:param language: The BCP-47 language code of the text in the document.
Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German
(‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
supported. Read supports auto language identification and
multi-language documents, so only provide a language code if you would
like to force the documented to be processed as that specific
language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl',
'pt'
:type language: str or
~azure.cognitiveservices.vision.computervision.models.OcrDetectionLanguage
:param dict custom_headers: headers that will be added to the request
Expand Down