-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from bd6c66b615b94480a1458dde3a8bc42f3a689548 (#2645)
ComputerVision - collection of fixes * fix ocr language parameter to fix [bug](Azure/azure-sdk-for-net#4083) * language parameter missing for /tag path * language parameter missing for /models/*/analyze path * make /models/*/analyze return a more generic type * add specific types for /models/*/analyze to return for current models
- Loading branch information
1 parent
a203d19
commit 56ef731
Showing
13 changed files
with
271 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...-computervision/azure/cognitiveservices/vision/computervision/models/celebrity_results.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class CelebrityResults(Model): | ||
"""List of celebrities recognized in the image. | ||
:param celebrities: | ||
:type celebrities: | ||
list[~azure.cognitiveservices.vision.computervision.models.CelebritiesModel] | ||
:param request_id: Id of the REST API request. | ||
:type request_id: str | ||
:param metadata: | ||
:type metadata: | ||
~azure.cognitiveservices.vision.computervision.models.ImageMetadata | ||
""" | ||
|
||
_attribute_map = { | ||
'celebrities': {'key': 'celebrities', 'type': '[CelebritiesModel]'}, | ||
'request_id': {'key': 'requestId', 'type': 'str'}, | ||
'metadata': {'key': 'metadata', 'type': 'ImageMetadata'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(CelebrityResults, self).__init__(**kwargs) | ||
self.celebrities = kwargs.get('celebrities', None) | ||
self.request_id = kwargs.get('request_id', None) | ||
self.metadata = kwargs.get('metadata', None) |
38 changes: 38 additions & 0 deletions
38
...putervision/azure/cognitiveservices/vision/computervision/models/celebrity_results_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class CelebrityResults(Model): | ||
"""List of celebrities recognized in the image. | ||
:param celebrities: | ||
:type celebrities: | ||
list[~azure.cognitiveservices.vision.computervision.models.CelebritiesModel] | ||
:param request_id: Id of the REST API request. | ||
:type request_id: str | ||
:param metadata: | ||
:type metadata: | ||
~azure.cognitiveservices.vision.computervision.models.ImageMetadata | ||
""" | ||
|
||
_attribute_map = { | ||
'celebrities': {'key': 'celebrities', 'type': '[CelebritiesModel]'}, | ||
'request_id': {'key': 'requestId', 'type': 'str'}, | ||
'metadata': {'key': 'metadata', 'type': 'ImageMetadata'}, | ||
} | ||
|
||
def __init__(self, *, celebrities=None, request_id: str=None, metadata=None, **kwargs) -> None: | ||
super(CelebrityResults, self).__init__(**kwargs) | ||
self.celebrities = celebrities | ||
self.request_id = request_id | ||
self.metadata = metadata |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...n-computervision/azure/cognitiveservices/vision/computervision/models/landmark_results.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class LandmarkResults(Model): | ||
"""List of landmarks recognized in the image. | ||
:param landmarks: | ||
:type landmarks: | ||
list[~azure.cognitiveservices.vision.computervision.models.LandmarkResultsLandmarksItem] | ||
:param request_id: Id of the REST API request. | ||
:type request_id: str | ||
:param metadata: | ||
:type metadata: | ||
~azure.cognitiveservices.vision.computervision.models.ImageMetadata | ||
""" | ||
|
||
_attribute_map = { | ||
'landmarks': {'key': 'landmarks', 'type': '[LandmarkResultsLandmarksItem]'}, | ||
'request_id': {'key': 'requestId', 'type': 'str'}, | ||
'metadata': {'key': 'metadata', 'type': 'ImageMetadata'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(LandmarkResults, self).__init__(**kwargs) | ||
self.landmarks = kwargs.get('landmarks', None) | ||
self.request_id = kwargs.get('request_id', None) | ||
self.metadata = kwargs.get('metadata', None) |
32 changes: 32 additions & 0 deletions
32
...n/azure/cognitiveservices/vision/computervision/models/landmark_results_landmarks_item.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class LandmarkResultsLandmarksItem(Model): | ||
"""A landmark recognized in the image. | ||
:param name: Name of the landmark. | ||
:type name: str | ||
:param confidence: Confidence level for the landmark recognition. | ||
:type confidence: float | ||
""" | ||
|
||
_attribute_map = { | ||
'name': {'key': 'name', 'type': 'str'}, | ||
'confidence': {'key': 'confidence', 'type': 'float'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(LandmarkResultsLandmarksItem, self).__init__(**kwargs) | ||
self.name = kwargs.get('name', None) | ||
self.confidence = kwargs.get('confidence', None) |
Oops, something went wrong.