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,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::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of domain-specific classifications for the domain of landmarks.
|
10
|
+
#
|
11
|
+
class LandmarkResults
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<LandmarksModel>] List of landmarks recognized in the
|
16
|
+
# image.
|
17
|
+
attr_accessor :landmarks
|
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 LandmarkResults 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: 'LandmarkResults',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'LandmarkResults',
|
38
|
+
model_properties: {
|
39
|
+
landmarks: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'landmarks',
|
43
|
+
type: {
|
44
|
+
name: 'Sequence',
|
45
|
+
element: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'LandmarksModelElementType',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'LandmarksModel'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
},
|
56
|
+
request_id: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'requestId',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
metadata: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'metadata',
|
68
|
+
type: {
|
69
|
+
name: 'Composite',
|
70
|
+
class_name: 'ImageMetadata'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,58 @@
|
|
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
|
+
# A landmark recognized in the image.
|
10
|
+
#
|
11
|
+
class LandmarksModel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the landmark.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [Float] Confidence level for the landmark recognition as a
|
19
|
+
# value ranging from 0 to 1.
|
20
|
+
attr_accessor :confidence
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for LandmarksModel class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'LandmarksModel',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'LandmarksModel',
|
35
|
+
model_properties: {
|
36
|
+
name: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'name',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
confidence: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'confidence',
|
48
|
+
type: {
|
49
|
+
name: 'Double'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,85 @@
|
|
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 representing a recognized text line.
|
10
|
+
#
|
11
|
+
class Line
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Float>] Bounding box of a recognized line.
|
16
|
+
attr_accessor :bounding_box
|
17
|
+
|
18
|
+
# @return [String] The text content of the line.
|
19
|
+
attr_accessor :text
|
20
|
+
|
21
|
+
# @return [Array<Word>] List of words in the text line.
|
22
|
+
attr_accessor :words
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for Line 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: 'Line',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'Line',
|
37
|
+
model_properties: {
|
38
|
+
bounding_box: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'boundingBox',
|
42
|
+
type: {
|
43
|
+
name: 'Sequence',
|
44
|
+
element: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'FloatElementType',
|
48
|
+
type: {
|
49
|
+
name: 'Double'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
text: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'text',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
words: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'words',
|
66
|
+
type: {
|
67
|
+
name: 'Sequence',
|
68
|
+
element: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'WordElementType',
|
72
|
+
type: {
|
73
|
+
name: 'Composite',
|
74
|
+
class_name: 'Word'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
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::V2_1
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Result of the List Domain Models operation.
|
10
|
+
#
|
11
|
+
class ListModelsResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<ModelDescription>] An array of supported models.
|
16
|
+
attr_accessor :models_property
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ListModelsResult class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ListModelsResult',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ListModelsResult',
|
31
|
+
model_properties: {
|
32
|
+
models_property: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'models',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'ModelDescriptionElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'ModelDescription'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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 supported model by name and categories.
|
10
|
+
#
|
11
|
+
class ModelDescription
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the model.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [Array<String>] Categories of the model.
|
19
|
+
attr_accessor :categories
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ModelDescription class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'ModelDescription',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ModelDescription',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'name',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
categories: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'categories',
|
47
|
+
type: {
|
48
|
+
name: 'Sequence',
|
49
|
+
element: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'StringElementType',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,73 @@
|
|
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 detected inside an image.
|
10
|
+
#
|
11
|
+
class ObjectHierarchy
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Label for the object.
|
16
|
+
attr_accessor :object
|
17
|
+
|
18
|
+
# @return [Float] Confidence score of having observed the object in the
|
19
|
+
# image, as a value ranging from 0 to 1.
|
20
|
+
attr_accessor :confidence
|
21
|
+
|
22
|
+
# @return [ObjectHierarchy] The parent object, from a taxonomy
|
23
|
+
# perspective.
|
24
|
+
# The parent object is a more generic form of this object. For example,
|
25
|
+
# a 'bulldog' would have a parent of 'dog'.
|
26
|
+
attr_accessor :parent
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for ObjectHierarchy class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'ObjectHierarchy',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'ObjectHierarchy',
|
41
|
+
model_properties: {
|
42
|
+
object: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'object',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
confidence: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'confidence',
|
54
|
+
type: {
|
55
|
+
name: 'Double'
|
56
|
+
}
|
57
|
+
},
|
58
|
+
parent: {
|
59
|
+
client_side_validation: true,
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'parent',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'ObjectHierarchy'
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,41 @@
|
|
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 OcrLanguages
|
10
|
+
#
|
11
|
+
module OcrLanguages
|
12
|
+
Unk = "unk"
|
13
|
+
ZhHans = "zh-Hans"
|
14
|
+
ZhHant = "zh-Hant"
|
15
|
+
Cs = "cs"
|
16
|
+
Da = "da"
|
17
|
+
Nl = "nl"
|
18
|
+
En = "en"
|
19
|
+
Fi = "fi"
|
20
|
+
Fr = "fr"
|
21
|
+
De = "de"
|
22
|
+
El = "el"
|
23
|
+
Hu = "hu"
|
24
|
+
It = "it"
|
25
|
+
Ja = "ja"
|
26
|
+
Ko = "ko"
|
27
|
+
Nb = "nb"
|
28
|
+
Pl = "pl"
|
29
|
+
Pt = "pt"
|
30
|
+
Ru = "ru"
|
31
|
+
Es = "es"
|
32
|
+
Sv = "sv"
|
33
|
+
Tr = "tr"
|
34
|
+
Ar = "ar"
|
35
|
+
Ro = "ro"
|
36
|
+
SrCyrl = "sr-Cyrl"
|
37
|
+
SrLatn = "sr-Latn"
|
38
|
+
Sk = "sk"
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|