Skip to content

Commit 022f655

Browse files
author
Rakshith Bhyravabhotla
authored
Computer Vision 0.7.0 release (#14269)
* Release for 0.7 * version and changelog
1 parent 1ba7a75 commit 022f655

File tree

5 files changed

+25
-19
lines changed

5 files changed

+25
-19
lines changed

sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 0.7.0 (2020-10-08)
4+
5+
**Features**
6+
7+
- Supports 3.1 service version
8+
39
## 0.6.0 (2020-05-18)
410

511
**Features**

sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_computer_vision_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
super(ComputerVisionClient, self).__init__(self.config.credentials, self.config)
3939

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

sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
raise ValueError("Parameter 'endpoint' must not be None.")
3434
if credentials is None:
3535
raise ValueError("Parameter 'credentials' must not be None.")
36-
base_url = '{Endpoint}/vision/v3.0'
36+
base_url = '{Endpoint}/vision/v3.1'
3737

3838
super(ComputerVisionClientConfiguration, self).__init__(base_url)
3939

sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -726,14 +726,14 @@ def read(
726726
727727
:param url: Publicly reachable URL of an image.
728728
:type url: str
729-
:param language: The BCP-47 language code of the text to be detected
730-
in the image. In future versions, when language parameter is not
731-
passed, language detection will be used to determine the language.
732-
However, in the current version, missing language parameter will cause
733-
English to be used. To ensure that your document is always parsed in
734-
English without the use of language detection in the future, pass “en”
735-
in the language parameter. Possible values include: 'en', 'es', 'fr',
736-
'de', 'it', 'nl', 'pt'
729+
:param language: The BCP-47 language code of the text in the document.
730+
Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German
731+
(‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
732+
supported. Read supports auto language identification and
733+
multi-language documents, so only provide a language code if you would
734+
like to force the documented to be processed as that specific
735+
language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl',
736+
'pt'
737737
:type language: str or
738738
~azure.cognitiveservices.vision.computervision.models.OcrDetectionLanguage
739739
:param dict custom_headers: headers that will be added to the request
@@ -1513,14 +1513,14 @@ def read_in_stream(
15131513
15141514
:param image: An image stream.
15151515
:type image: Generator
1516-
:param language: The BCP-47 language code of the text to be detected
1517-
in the image. In future versions, when language parameter is not
1518-
passed, language detection will be used to determine the language.
1519-
However, in the current version, missing language parameter will cause
1520-
English to be used. To ensure that your document is always parsed in
1521-
English without the use of language detection in the future, pass “en”
1522-
in the language parameter. Possible values include: 'en', 'es', 'fr',
1523-
'de', 'it', 'nl', 'pt'
1516+
:param language: The BCP-47 language code of the text in the document.
1517+
Currently, only English ('en'), Dutch (‘nl’), French (‘fr’), German
1518+
(‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
1519+
supported. Read supports auto language identification and
1520+
multi-language documents, so only provide a language code if you would
1521+
like to force the documented to be processed as that specific
1522+
language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl',
1523+
'pt'
15241524
:type language: str or
15251525
~azure.cognitiveservices.vision.computervision.models.OcrDetectionLanguage
15261526
:param dict custom_headers: headers that will be added to the request

sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
VERSION = "0.6.0"
12+
VERSION = "0.7.0"
1313

0 commit comments

Comments
 (0)