Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computer Vision SDK 3.2 (0.9.0) #18762

Merged
merged 2 commits into from
May 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
@@ -1,5 +1,12 @@
# Release History

## 0.9.0 (2021-05-31)

**Breaking changes**

- Operation ComputerVisionClientOperationsMixin.read has a new signature
- Operation ComputerVisionClientOperationsMixin.read_in_stream has a new signature

## 0.8.0 (2021-03-22)

**Features**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ def __init__(
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '3.2'
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@
'Gender',
'ComputerVisionErrorCodes',
'ComputerVisionInnerErrorCodeValue',
'DescriptionExclude',
'OcrLanguages',
'VisualFeatureTypes',
'Details',
'OperationStatusCodes',
'TextRecognitionResultDimensionUnit',
'TextStyle',
'DescriptionExclude',
'OcrLanguages',
'VisualFeatureTypes',
'OcrDetectionLanguage',
'Details',
]
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,26 @@ class ComputerVisionInnerErrorCodeValue(str, Enum):
storage_exception = "StorageException"


class OperationStatusCodes(str, Enum):

not_started = "notStarted"
running = "running"
failed = "failed"
succeeded = "succeeded"


class TextRecognitionResultDimensionUnit(str, Enum):

pixel = "pixel"
inch = "inch"


class TextStyle(str, Enum):

other = "other"
handwriting = "handwriting"


class DescriptionExclude(str, Enum):

celebrities = "Celebrities"
Expand Down Expand Up @@ -99,32 +119,6 @@ class VisualFeatureTypes(str, Enum):
brands = "Brands"


class Details(str, Enum):

celebrities = "Celebrities"
landmarks = "Landmarks"


class OperationStatusCodes(str, Enum):

not_started = "notStarted"
running = "running"
failed = "failed"
succeeded = "succeeded"


class TextRecognitionResultDimensionUnit(str, Enum):

pixel = "pixel"
inch = "inch"


class TextStyle(str, Enum):

other = "other"
handwriting = "handwriting"


class OcrDetectionLanguage(str, Enum):

af = "af"
Expand Down Expand Up @@ -200,3 +194,9 @@ class OcrDetectionLanguage(str, Enum):
zh_hans = "zh-Hans"
zh_hant = "zh-Hant"
zu = "zu"


class Details(str, Enum):

celebrities = "Celebrities"
landmarks = "Landmarks"
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AnalyzeResults(Model):

_validation = {
'version': {'required': True},
'model_version': {'required': True},
'model_version': {'required': True, 'pattern': r'^(latest|\d{4}-\d{2}-\d{2})(-preview)?$'},
'read_results': {'required': True},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AnalyzeResults(Model):

_validation = {
'version': {'required': True},
'model_version': {'required': True},
'model_version': {'required': True, 'pattern': r'^(latest|\d{4}-\d{2}-\d{2})(-preview)?$'},
'read_results': {'required': True},
}

Expand Down
Loading