azure_cognitiveservices_computervision 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision.rb +63 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +2173 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb +83 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/azure_regions.rb +26 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category_detail.rb +56 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +69 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +75 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb +27 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/details.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +80 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_models.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +70 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +79 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +169 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +99 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/language1.rb +16 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/line.rb +86 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/list_models_result.rb +56 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +104 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb +56 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +62 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +21 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/word.rb +66 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/module_definition.rb +9 -0
- data/lib/azure_cognitiveservices_computervision.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/computervision_latest_profile_client.rb +38 -0
- data/lib/profiles/latest/computervision_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/computervision_profile_module.rb +201 -0
- data/lib/version.rb +7 -0
- metadata +166 -0
data/lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb
ADDED
@@ -0,0 +1,27 @@
|
|
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::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for ComputerVisionErrorCodes
|
10
|
+
#
|
11
|
+
module ComputerVisionErrorCodes
|
12
|
+
InvalidImageUrl = "InvalidImageUrl"
|
13
|
+
InvalidImageFormat = "InvalidImageFormat"
|
14
|
+
InvalidImageSize = "InvalidImageSize"
|
15
|
+
NotSupportedVisualFeature = "NotSupportedVisualFeature"
|
16
|
+
NotSupportedImage = "NotSupportedImage"
|
17
|
+
InvalidDetails = "InvalidDetails"
|
18
|
+
NotSupportedLanguage = "NotSupportedLanguage"
|
19
|
+
BadArgument = "BadArgument"
|
20
|
+
FailedToProcess = "FailedToProcess"
|
21
|
+
Timeout = "Timeout"
|
22
|
+
InternalServerError = "InternalServerError"
|
23
|
+
Unspecified = "Unspecified"
|
24
|
+
StorageException = "StorageException"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
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::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for Details
|
10
|
+
#
|
11
|
+
module Details
|
12
|
+
Celebrities = "Celebrities"
|
13
|
+
Landmarks = "Landmarks"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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::V1_0
|
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 [Array<CelebritiesModel>] An array of possible celebritied
|
17
|
+
# identified in the image.
|
18
|
+
attr_accessor :celebrities
|
19
|
+
|
20
|
+
# @return [String] Id of the REST API request.
|
21
|
+
attr_accessor :request_id
|
22
|
+
|
23
|
+
# @return [ImageMetadata] Additional image metadata
|
24
|
+
attr_accessor :metadata
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for DomainModelResults 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: 'DomainModelResults',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'DomainModelResults',
|
39
|
+
model_properties: {
|
40
|
+
celebrities: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'result.celebrities',
|
44
|
+
type: {
|
45
|
+
name: 'Sequence',
|
46
|
+
element: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'CelebritiesModelElementType',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'CelebritiesModel'
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
request_id: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'requestId',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
metadata: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'metadata',
|
69
|
+
type: {
|
70
|
+
name: 'Composite',
|
71
|
+
class_name: 'ImageMetadata'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
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::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for DomainModels
|
10
|
+
#
|
11
|
+
module DomainModels
|
12
|
+
Celebrities = "Celebrities"
|
13
|
+
Landmarks = "Landmarks"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -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::V1_0
|
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 [Enum] Possible gender of the face. Possible values include:
|
19
|
+
# 'Male', 'Female'
|
20
|
+
attr_accessor :gender
|
21
|
+
|
22
|
+
# @return [FaceRectangle]
|
23
|
+
attr_accessor :face_rectangle
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for FaceDescription 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: 'FaceDescription',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'FaceDescription',
|
38
|
+
model_properties: {
|
39
|
+
age: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'age',
|
43
|
+
type: {
|
44
|
+
name: 'Number'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
gender: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
serialized_name: 'gender',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
face_rectangle: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'faceRectangle',
|
59
|
+
type: {
|
60
|
+
name: 'Composite',
|
61
|
+
class_name: 'FaceRectangle'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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::V1_0
|
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.
|
16
|
+
attr_accessor :left
|
17
|
+
|
18
|
+
# @return [Integer] Y-coordinate of the top left point of the face.
|
19
|
+
attr_accessor :top
|
20
|
+
|
21
|
+
# @return [Integer] Width measured from the top-left point of the face.
|
22
|
+
attr_accessor :width
|
23
|
+
|
24
|
+
# @return [Integer] Height measured from the top-left point of the face.
|
25
|
+
attr_accessor :height
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for FaceRectangle class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'FaceRectangle',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'FaceRectangle',
|
40
|
+
model_properties: {
|
41
|
+
left: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'left',
|
45
|
+
type: {
|
46
|
+
name: 'Number'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
top: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'top',
|
53
|
+
type: {
|
54
|
+
name: 'Number'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
width: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'width',
|
61
|
+
type: {
|
62
|
+
name: 'Number'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
height: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'height',
|
69
|
+
type: {
|
70
|
+
name: 'Number'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,169 @@
|
|
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::V1_0
|
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] A property scoring on whether the image is
|
19
|
+
# adult-oriented and/or racy.
|
20
|
+
attr_accessor :adult
|
21
|
+
|
22
|
+
# @return [ColorInfo] A property scoring on color spectrums.
|
23
|
+
attr_accessor :color
|
24
|
+
|
25
|
+
# @return [ImageType] A property indicating type of image (whether it's
|
26
|
+
# clipart or line drawing)
|
27
|
+
attr_accessor :image_type
|
28
|
+
|
29
|
+
# @return [Array<ImageTag>] A list of tags with confidence level.
|
30
|
+
attr_accessor :tags
|
31
|
+
|
32
|
+
# @return [ImageDescriptionDetails] Description of the image.
|
33
|
+
attr_accessor :description
|
34
|
+
|
35
|
+
# @return [Array<FaceDescription>] An array of possible faces within the
|
36
|
+
# image.
|
37
|
+
attr_accessor :faces
|
38
|
+
|
39
|
+
# @return [String] Id of the request for tracking purposes.
|
40
|
+
attr_accessor :request_id
|
41
|
+
|
42
|
+
# @return [ImageMetadata] Image metadata
|
43
|
+
attr_accessor :metadata
|
44
|
+
|
45
|
+
|
46
|
+
#
|
47
|
+
# Mapper for ImageAnalysis class as Ruby Hash.
|
48
|
+
# This will be used for serialization/deserialization.
|
49
|
+
#
|
50
|
+
def self.mapper()
|
51
|
+
{
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'ImageAnalysis',
|
55
|
+
type: {
|
56
|
+
name: 'Composite',
|
57
|
+
class_name: 'ImageAnalysis',
|
58
|
+
model_properties: {
|
59
|
+
categories: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'categories',
|
63
|
+
type: {
|
64
|
+
name: 'Sequence',
|
65
|
+
element: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'CategoryElementType',
|
69
|
+
type: {
|
70
|
+
name: 'Composite',
|
71
|
+
class_name: 'Category'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
adult: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'adult',
|
80
|
+
type: {
|
81
|
+
name: 'Composite',
|
82
|
+
class_name: 'AdultInfo'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
color: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'color',
|
89
|
+
type: {
|
90
|
+
name: 'Composite',
|
91
|
+
class_name: 'ColorInfo'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
image_type: {
|
95
|
+
client_side_validation: true,
|
96
|
+
required: false,
|
97
|
+
serialized_name: 'imageType',
|
98
|
+
type: {
|
99
|
+
name: 'Composite',
|
100
|
+
class_name: 'ImageType'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
tags: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'tags',
|
107
|
+
type: {
|
108
|
+
name: 'Sequence',
|
109
|
+
element: {
|
110
|
+
client_side_validation: true,
|
111
|
+
required: false,
|
112
|
+
serialized_name: 'ImageTagElementType',
|
113
|
+
type: {
|
114
|
+
name: 'Composite',
|
115
|
+
class_name: 'ImageTag'
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
},
|
120
|
+
description: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'description',
|
124
|
+
type: {
|
125
|
+
name: 'Composite',
|
126
|
+
class_name: 'ImageDescriptionDetails'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
faces: {
|
130
|
+
client_side_validation: true,
|
131
|
+
required: false,
|
132
|
+
serialized_name: 'faces',
|
133
|
+
type: {
|
134
|
+
name: 'Sequence',
|
135
|
+
element: {
|
136
|
+
client_side_validation: true,
|
137
|
+
required: false,
|
138
|
+
serialized_name: 'FaceDescriptionElementType',
|
139
|
+
type: {
|
140
|
+
name: 'Composite',
|
141
|
+
class_name: 'FaceDescription'
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
},
|
146
|
+
request_id: {
|
147
|
+
client_side_validation: true,
|
148
|
+
required: false,
|
149
|
+
serialized_name: 'requestId',
|
150
|
+
type: {
|
151
|
+
name: 'String'
|
152
|
+
}
|
153
|
+
},
|
154
|
+
metadata: {
|
155
|
+
client_side_validation: true,
|
156
|
+
required: false,
|
157
|
+
serialized_name: 'metadata',
|
158
|
+
type: {
|
159
|
+
name: 'Composite',
|
160
|
+
class_name: 'ImageMetadata'
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
}
|
165
|
+
}
|
166
|
+
end
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|