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
@@ -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::V1_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An object describing whether the image contains adult-oriented content
|
10
|
+
# and/or is racy.
|
11
|
+
#
|
12
|
+
class AdultInfo
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Boolean] A value indicating if the image contains
|
17
|
+
# adult-oriented content.
|
18
|
+
attr_accessor :is_adult_content
|
19
|
+
|
20
|
+
# @return [Boolean] A value indicating if the image is race.
|
21
|
+
attr_accessor :is_racy_content
|
22
|
+
|
23
|
+
# @return [Float] Score from 0 to 1 that indicates how much of adult
|
24
|
+
# content is within the image.
|
25
|
+
attr_accessor :adult_score
|
26
|
+
|
27
|
+
# @return [Float] Score from 0 to 1 that indicates how suggestive is the
|
28
|
+
# image.
|
29
|
+
attr_accessor :racy_score
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for AdultInfo 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: 'AdultInfo',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'AdultInfo',
|
44
|
+
model_properties: {
|
45
|
+
is_adult_content: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'isAdultContent',
|
49
|
+
type: {
|
50
|
+
name: 'Boolean'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
is_racy_content: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
serialized_name: 'isRacyContent',
|
57
|
+
type: {
|
58
|
+
name: 'Boolean'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
adult_score: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'adultScore',
|
65
|
+
type: {
|
66
|
+
name: 'Double'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
racy_score: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'racyScore',
|
73
|
+
type: {
|
74
|
+
name: 'Double'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,26 @@
|
|
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 AzureRegions
|
10
|
+
#
|
11
|
+
module AzureRegions
|
12
|
+
Westus = "westus"
|
13
|
+
Westeurope = "westeurope"
|
14
|
+
Southeastasia = "southeastasia"
|
15
|
+
Eastus2 = "eastus2"
|
16
|
+
Westcentralus = "westcentralus"
|
17
|
+
Westus2 = "westus2"
|
18
|
+
Eastus = "eastus"
|
19
|
+
Southcentralus = "southcentralus"
|
20
|
+
Northeurope = "northeurope"
|
21
|
+
Eastasia = "eastasia"
|
22
|
+
Australiaeast = "australiaeast"
|
23
|
+
Brazilsouth = "brazilsouth"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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 identified category.
|
10
|
+
#
|
11
|
+
class Category
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the category.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [Float] Scoring of the category.
|
19
|
+
attr_accessor :score
|
20
|
+
|
21
|
+
# @return [CategoryDetail] Additional category detail if available.
|
22
|
+
attr_accessor :detail
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for Category class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'Category',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'Category',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
score: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'score',
|
50
|
+
type: {
|
51
|
+
name: 'Double'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
detail: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'detail',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'CategoryDetail'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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 additional category details.
|
10
|
+
#
|
11
|
+
class CategoryDetail
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CelebritiesModel>] An array of celebrities if any
|
16
|
+
# identified.
|
17
|
+
attr_accessor :celebrities
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for CategoryDetail class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'CategoryDetail',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'CategoryDetail',
|
32
|
+
model_properties: {
|
33
|
+
celebrities: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'celebrities',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'CelebritiesModelElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'CelebritiesModel'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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 possible celebrity identification.
|
10
|
+
#
|
11
|
+
class CelebritiesModel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the celebrity.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [Float] Level of confidence ranging from 0 to 1.
|
19
|
+
attr_accessor :confidence
|
20
|
+
|
21
|
+
# @return [FaceRectangle]
|
22
|
+
attr_accessor :face_rectangle
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for CelebritiesModel class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'CelebritiesModel',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'CelebritiesModel',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
confidence: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'confidence',
|
50
|
+
type: {
|
51
|
+
name: 'Double'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
face_rectangle: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'faceRectangle',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
class_name: 'FaceRectangle'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,98 @@
|
|
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 providing additional metadata describing color attributes.
|
10
|
+
#
|
11
|
+
class ColorInfo
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Possible dominant foreground color.
|
16
|
+
attr_accessor :dominant_color_foreground
|
17
|
+
|
18
|
+
# @return [String] Possible dominant background color.
|
19
|
+
attr_accessor :dominant_color_background
|
20
|
+
|
21
|
+
# @return [Array<String>] An array of possible dominant colors.
|
22
|
+
attr_accessor :dominant_colors
|
23
|
+
|
24
|
+
# @return [String] Possible accent color.
|
25
|
+
attr_accessor :accent_color
|
26
|
+
|
27
|
+
# @return [Boolean] A value indicating if the image is black and white.
|
28
|
+
attr_accessor :is_bwimg
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ColorInfo class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'ColorInfo',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ColorInfo',
|
43
|
+
model_properties: {
|
44
|
+
dominant_color_foreground: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'dominantColorForeground',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
dominant_color_background: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'dominantColorBackground',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
dominant_colors: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'dominantColors',
|
64
|
+
type: {
|
65
|
+
name: 'Sequence',
|
66
|
+
element: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
serialized_name: 'StringElementType',
|
70
|
+
type: {
|
71
|
+
name: 'String'
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
},
|
76
|
+
accent_color: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'accentColor',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
is_bwimg: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'isBWImg',
|
88
|
+
type: {
|
89
|
+
name: 'Boolean'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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
|
+
# Model object.
|
10
|
+
#
|
11
|
+
#
|
12
|
+
class ComputerVisionError
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [ComputerVisionErrorCodes] The error code. Possible values
|
17
|
+
# include: 'InvalidImageUrl', 'InvalidImageFormat', 'InvalidImageSize',
|
18
|
+
# 'NotSupportedVisualFeature', 'NotSupportedImage', 'InvalidDetails',
|
19
|
+
# 'NotSupportedLanguage', 'BadArgument', 'FailedToProcess', 'Timeout',
|
20
|
+
# 'InternalServerError', 'Unspecified', 'StorageException'
|
21
|
+
attr_accessor :code
|
22
|
+
|
23
|
+
# @return [String] A message explaining the error reported by the
|
24
|
+
# service.
|
25
|
+
attr_accessor :message
|
26
|
+
|
27
|
+
# @return [String] A unique request identifier.
|
28
|
+
attr_accessor :request_id
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for ComputerVisionError class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'ComputerVisionError',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'ComputerVisionError',
|
43
|
+
model_properties: {
|
44
|
+
code: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: true,
|
47
|
+
serialized_name: 'code',
|
48
|
+
type: {
|
49
|
+
name: 'Enum',
|
50
|
+
module: 'ComputerVisionErrorCodes'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
message: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: true,
|
56
|
+
serialized_name: 'message',
|
57
|
+
type: {
|
58
|
+
name: 'String'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
request_id: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'requestId',
|
65
|
+
type: {
|
66
|
+
name: 'String'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|