azure_cognitiveservices_computervision 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/1.0/generated/azure_cognitiveservices_computervision.rb +19 -17
- data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +220 -132
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/azure_regions.rb +4 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +78 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +6 -16
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +3 -2
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/{language1.rb → gender.rb} +4 -4
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +5 -7
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +1 -1
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +78 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/landmark_results_landmarks_item.rb +57 -0
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +2 -3
- data/lib/1.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_computervision.rb +65 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +2257 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb +83 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category_detail.rb +77 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +69 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +78 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +75 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb +27 -0
- data/lib/{1.0/generated/azure_cognitiveservices_computervision/models/domain_models.rb → 2.0/generated/azure_cognitiveservices_computervision/models/details.rb} +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +70 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +71 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +79 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/gender.rb +16 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +167 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +76 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb +68 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +78 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb +57 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/line.rb +86 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/list_models_result.rb +56 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +103 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb +56 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +62 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_recognition_mode.rb +16 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +21 -0
- data/lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb +66 -0
- data/lib/2.0/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 +103 -95
- data/lib/version.rb +1 -1
- metadata +49 -6
@@ -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_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,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::V2_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]
|
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,77 @@
|
|
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_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
|
+
# @return [Array<LandmarksModel>] An array of landmarks if any
|
20
|
+
# identified.
|
21
|
+
attr_accessor :landmarks
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for CategoryDetail class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'CategoryDetail',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'CategoryDetail',
|
36
|
+
model_properties: {
|
37
|
+
celebrities: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'celebrities',
|
41
|
+
type: {
|
42
|
+
name: 'Sequence',
|
43
|
+
element: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'CelebritiesModelElementType',
|
47
|
+
type: {
|
48
|
+
name: 'Composite',
|
49
|
+
class_name: 'CelebritiesModel'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
landmarks: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'landmarks',
|
58
|
+
type: {
|
59
|
+
name: 'Sequence',
|
60
|
+
element: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'LandmarksModelElementType',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'LandmarksModel'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
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::V2_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,78 @@
|
|
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_0
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of celebrities recognized in the image.
|
10
|
+
#
|
11
|
+
class CelebrityResults
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CelebritiesModel>]
|
16
|
+
attr_accessor :celebrities
|
17
|
+
|
18
|
+
# @return [String] Id of the REST API request.
|
19
|
+
attr_accessor :request_id
|
20
|
+
|
21
|
+
# @return [ImageMetadata]
|
22
|
+
attr_accessor :metadata
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for CelebrityResults 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: 'CelebrityResults',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'CelebrityResults',
|
37
|
+
model_properties: {
|
38
|
+
celebrities: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'celebrities',
|
42
|
+
type: {
|
43
|
+
name: 'Sequence',
|
44
|
+
element: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'CelebritiesModelElementType',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'CelebritiesModel'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
request_id: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
serialized_name: 'requestId',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
metadata: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'metadata',
|
67
|
+
type: {
|
68
|
+
name: 'Composite',
|
69
|
+
class_name: 'ImageMetadata'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
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::V2_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
|