Skip to content

Commit

Permalink
Computer Vision 0.7.0 release (#14269)
Browse files Browse the repository at this point in the history
* Release for 0.7

* version and changelog
  • Loading branch information
rakshith91 authored Oct 6, 2020
1 parent 1ba7a75 commit 022f655
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 0.7.0 (2020-10-08)

**Features**

- Supports 3.1 service version

## 0.6.0 (2020-05-18)

**Features**
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.6.0"
VERSION = "0.7.0"

0 comments on commit 022f655

Please sign in to comment.