azure_cognitiveservices_computervision 0.20.0 → 0.20.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +1 -1
- data/lib/2.1/generated/azure_cognitiveservices_computervision.rb +74 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +3253 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/adult_info.rb +105 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/area_of_interest_result.rb +72 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/bounding_rect.rb +83 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/category_detail.rb +77 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +70 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +79 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +69 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/description_exclude.rb +16 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/details.rb +16 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/detect_result.rb +79 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb +73 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_object.rb +86 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +70 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/face_description.rb +72 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +83 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/gender.rb +16 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +212 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +76 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_tag.rb +68 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +79 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb +58 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb +85 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/list_models_result.rb +56 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/object_hierarchy.rb +73 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +105 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/read_operation_result.rb +69 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +61 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_mode.rb +16 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_result.rb +114 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_result_confidence_class.rb +16 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_result_dimension_unit.rb +16 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +23 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/models/word.rb +78 -0
- data/lib/2.1/generated/azure_cognitiveservices_computervision/module_definition.rb +9 -0
- data/lib/azure_cognitiveservices_computervision.rb +1 -0
- data/lib/profiles/latest/modules/computervision_profile_module.rb +97 -93
- data/lib/version.rb +1 -1
- metadata +53 -3
@@ -0,0 +1,70 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ComputerVision::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of image analysis using a specific domain model including
|
10
|
+
# additional metadata.
|
11
|
+
#
|
12
|
+
class DomainModelResults
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return Model-specific response.
|
17
|
+
attr_accessor :result
|
18
|
+
|
19
|
+
# @return [String] Id of the REST API request.
|
20
|
+
attr_accessor :request_id
|
21
|
+
|
22
|
+
# @return [ImageMetadata]
|
23
|
+
attr_accessor :metadata
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for DomainModelResults class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'DomainModelResults',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'DomainModelResults',
|
38
|
+
model_properties: {
|
39
|
+
result: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'result',
|
43
|
+
type: {
|
44
|
+
name: 'Object'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
request_id: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'requestId',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
metadata: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'metadata',
|
59
|
+
type: {
|
60
|
+
name: 'Composite',
|
61
|
+
class_name: 'ImageMetadata'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ComputerVision::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object describing a face identified in the image.
|
10
|
+
#
|
11
|
+
class FaceDescription
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] Possible age of the face.
|
16
|
+
attr_accessor :age
|
17
|
+
|
18
|
+
# @return [Gender] Possible gender of the face. Possible values include:
|
19
|
+
# 'Male', 'Female'
|
20
|
+
attr_accessor :gender
|
21
|
+
|
22
|
+
# @return [FaceRectangle] Rectangle in the image containing the
|
23
|
+
# identified face.
|
24
|
+
attr_accessor :face_rectangle
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for FaceDescription class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'FaceDescription',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'FaceDescription',
|
39
|
+
model_properties: {
|
40
|
+
age: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'age',
|
44
|
+
type: {
|
45
|
+
name: 'Number'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
gender: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'gender',
|
52
|
+
type: {
|
53
|
+
name: 'Enum',
|
54
|
+
module: 'Gender'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
face_rectangle: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'faceRectangle',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'FaceRectangle'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ComputerVision::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object describing face rectangle.
|
10
|
+
#
|
11
|
+
class FaceRectangle
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] X-coordinate of the top left point of the face, in
|
16
|
+
# pixels.
|
17
|
+
attr_accessor :left
|
18
|
+
|
19
|
+
# @return [Integer] Y-coordinate of the top left point of the face, in
|
20
|
+
# pixels.
|
21
|
+
attr_accessor :top
|
22
|
+
|
23
|
+
# @return [Integer] Width measured from the top-left point of the face,
|
24
|
+
# in pixels.
|
25
|
+
attr_accessor :width
|
26
|
+
|
27
|
+
# @return [Integer] Height measured from the top-left point of the face,
|
28
|
+
# in pixels.
|
29
|
+
attr_accessor :height
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for FaceRectangle class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'FaceRectangle',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'FaceRectangle',
|
44
|
+
model_properties: {
|
45
|
+
left: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'left',
|
49
|
+
type: {
|
50
|
+
name: 'Number'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
top: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'top',
|
57
|
+
type: {
|
58
|
+
name: 'Number'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
width: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'width',
|
65
|
+
type: {
|
66
|
+
name: 'Number'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
height: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'height',
|
73
|
+
type: {
|
74
|
+
name: 'Number'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ComputerVision::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for Gender
|
10
|
+
#
|
11
|
+
module Gender
|
12
|
+
Male = "Male"
|
13
|
+
Female = "Female"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,212 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::CognitiveServices::ComputerVision::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of AnalyzeImage operation.
|
10
|
+
#
|
11
|
+
class ImageAnalysis
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Category>] An array indicating identified categories.
|
16
|
+
attr_accessor :categories
|
17
|
+
|
18
|
+
# @return [AdultInfo] An object describing whether the image contains
|
19
|
+
# adult-oriented content and/or is racy.
|
20
|
+
attr_accessor :adult
|
21
|
+
|
22
|
+
# @return [ColorInfo] An object providing additional metadata describing
|
23
|
+
# color attributes.
|
24
|
+
attr_accessor :color
|
25
|
+
|
26
|
+
# @return [ImageType] An object providing possible image types and
|
27
|
+
# matching confidence levels.
|
28
|
+
attr_accessor :image_type
|
29
|
+
|
30
|
+
# @return [Array<ImageTag>] A list of tags with confidence level.
|
31
|
+
attr_accessor :tags
|
32
|
+
|
33
|
+
# @return [ImageDescriptionDetails] A collection of content tags, along
|
34
|
+
# with a list of captions sorted by confidence level, and image metadata.
|
35
|
+
attr_accessor :description
|
36
|
+
|
37
|
+
# @return [Array<FaceDescription>] An array of possible faces within the
|
38
|
+
# image.
|
39
|
+
attr_accessor :faces
|
40
|
+
|
41
|
+
# @return [Array<DetectedObject>] Array of objects describing what was
|
42
|
+
# detected in the image.
|
43
|
+
attr_accessor :objects
|
44
|
+
|
45
|
+
# @return [Array<DetectedBrand>] Array of brands detected in the image.
|
46
|
+
attr_accessor :brands
|
47
|
+
|
48
|
+
# @return [String] Id of the REST API request.
|
49
|
+
attr_accessor :request_id
|
50
|
+
|
51
|
+
# @return [ImageMetadata]
|
52
|
+
attr_accessor :metadata
|
53
|
+
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for ImageAnalysis class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'ImageAnalysis',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'ImageAnalysis',
|
67
|
+
model_properties: {
|
68
|
+
categories: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'categories',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'CategoryElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'Category'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
adult: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'adult',
|
89
|
+
type: {
|
90
|
+
name: 'Composite',
|
91
|
+
class_name: 'AdultInfo'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
color: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'color',
|
98
|
+
type: {
|
99
|
+
name: 'Composite',
|
100
|
+
class_name: 'ColorInfo'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
image_type: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'imageType',
|
107
|
+
type: {
|
108
|
+
name: 'Composite',
|
109
|
+
class_name: 'ImageType'
|
110
|
+
}
|
111
|
+
},
|
112
|
+
tags: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'tags',
|
116
|
+
type: {
|
117
|
+
name: 'Sequence',
|
118
|
+
element: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'ImageTagElementType',
|
122
|
+
type: {
|
123
|
+
name: 'Composite',
|
124
|
+
class_name: 'ImageTag'
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
},
|
129
|
+
description: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: false,
|
132
|
+
serialized_name: 'description',
|
133
|
+
type: {
|
134
|
+
name: 'Composite',
|
135
|
+
class_name: 'ImageDescriptionDetails'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
faces: {
|
139
|
+
client_side_validation: true,
|
140
|
+
required: false,
|
141
|
+
serialized_name: 'faces',
|
142
|
+
type: {
|
143
|
+
name: 'Sequence',
|
144
|
+
element: {
|
145
|
+
client_side_validation: true,
|
146
|
+
required: false,
|
147
|
+
serialized_name: 'FaceDescriptionElementType',
|
148
|
+
type: {
|
149
|
+
name: 'Composite',
|
150
|
+
class_name: 'FaceDescription'
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
},
|
155
|
+
objects: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'objects',
|
159
|
+
type: {
|
160
|
+
name: 'Sequence',
|
161
|
+
element: {
|
162
|
+
client_side_validation: true,
|
163
|
+
required: false,
|
164
|
+
serialized_name: 'DetectedObjectElementType',
|
165
|
+
type: {
|
166
|
+
name: 'Composite',
|
167
|
+
class_name: 'DetectedObject'
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
},
|
172
|
+
brands: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: false,
|
175
|
+
serialized_name: 'brands',
|
176
|
+
type: {
|
177
|
+
name: 'Sequence',
|
178
|
+
element: {
|
179
|
+
client_side_validation: true,
|
180
|
+
required: false,
|
181
|
+
serialized_name: 'DetectedBrandElementType',
|
182
|
+
type: {
|
183
|
+
name: 'Composite',
|
184
|
+
class_name: 'DetectedBrand'
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
},
|
189
|
+
request_id: {
|
190
|
+
client_side_validation: true,
|
191
|
+
required: false,
|
192
|
+
serialized_name: 'requestId',
|
193
|
+
type: {
|
194
|
+
name: 'String'
|
195
|
+
}
|
196
|
+
},
|
197
|
+
metadata: {
|
198
|
+
client_side_validation: true,
|
199
|
+
required: false,
|
200
|
+
serialized_name: 'metadata',
|
201
|
+
type: {
|
202
|
+
name: 'Composite',
|
203
|
+
class_name: 'ImageMetadata'
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|