azure_cognitiveservices_computervision 0.18.0 → 0.20.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +5 -5
  2. data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +33 -1
  3. data/lib/2.0/generated/azure_cognitiveservices_computervision.rb +15 -11
  4. data/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +365 -7
  5. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/detected_brand.rb +73 -0
  6. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +20 -0
  7. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/line.rb +6 -7
  8. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/read_operation_result.rb +69 -0
  9. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +5 -6
  10. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +1 -1
  11. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_recognition_result.rb +114 -0
  12. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_recognition_result_confidence_class.rb +16 -0
  13. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_recognition_result_dimension_unit.rb +16 -0
  14. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +1 -0
  15. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb +20 -8
  16. data/lib/2.1/generated/azure_cognitiveservices_computervision.rb +74 -0
  17. data/lib/2.1/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +3253 -0
  18. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/adult_info.rb +105 -0
  19. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/area_of_interest_result.rb +72 -0
  20. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/bounding_rect.rb +83 -0
  21. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
  22. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/category_detail.rb +77 -0
  23. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +70 -0
  24. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +79 -0
  25. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
  26. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +69 -0
  27. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/description_exclude.rb +16 -0
  28. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/details.rb +16 -0
  29. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/detect_result.rb +79 -0
  30. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_brand.rb +73 -0
  31. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/detected_object.rb +86 -0
  32. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +70 -0
  33. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/face_description.rb +72 -0
  34. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +83 -0
  35. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/gender.rb +16 -0
  36. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +212 -0
  37. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
  38. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
  39. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +76 -0
  40. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
  41. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_tag.rb +68 -0
  42. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
  43. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
  44. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +79 -0
  45. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb +58 -0
  46. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/line.rb +85 -0
  47. data/lib/{2.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb → 2.1/generated/azure_cognitiveservices_computervision/models/list_models_result.rb} +13 -13
  48. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
  49. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/object_hierarchy.rb +73 -0
  50. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
  51. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
  52. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
  53. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +105 -0
  54. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
  55. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/read_operation_result.rb +69 -0
  56. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
  57. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +61 -0
  58. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
  59. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_mode.rb +16 -0
  60. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_result.rb +114 -0
  61. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_result_confidence_class.rb +16 -0
  62. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/text_recognition_result_dimension_unit.rb +16 -0
  63. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +23 -0
  64. data/lib/2.1/generated/azure_cognitiveservices_computervision/models/word.rb +78 -0
  65. data/lib/2.1/generated/azure_cognitiveservices_computervision/module_definition.rb +9 -0
  66. data/lib/azure_cognitiveservices_computervision.rb +1 -0
  67. data/lib/profiles/latest/modules/computervision_profile_module.rb +116 -96
  68. data/lib/version.rb +1 -1
  69. metadata +60 -6
@@ -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 celebrities.
10
+ #
11
+ class CelebrityResults
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<CelebritiesModel>] List of celebrities recognized in the
16
+ # image.
17
+ attr_accessor :celebrities
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 CelebrityResults 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: 'CelebrityResults',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'CelebrityResults',
38
+ model_properties: {
39
+ celebrities: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'celebrities',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'CelebritiesModelElementType',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'CelebritiesModel'
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,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_1
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,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_1
7
+ module Models
8
+ #
9
+ # Details about the API request error.
10
+ #
11
+ class ComputerVisionError
12
+
13
+ include MsRestAzure
14
+
15
+ # @return The error code.
16
+ attr_accessor :code
17
+
18
+ # @return [String] A message explaining the error reported by the
19
+ # service.
20
+ attr_accessor :message
21
+
22
+ # @return [String] A unique request identifier.
23
+ attr_accessor :request_id
24
+
25
+
26
+ #
27
+ # Mapper for ComputerVisionError 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: 'ComputerVisionError',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'ComputerVisionError',
38
+ model_properties: {
39
+ code: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: 'code',
43
+ type: {
44
+ name: 'Object'
45
+ }
46
+ },
47
+ message: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ serialized_name: 'message',
51
+ type: {
52
+ name: 'String'
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
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ 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 DescriptionExclude
10
+ #
11
+ module DescriptionExclude
12
+ Celebrities = "Celebrities"
13
+ Landmarks = "Landmarks"
14
+ end
15
+ end
16
+ 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 Details
10
+ #
11
+ module Details
12
+ Celebrities = "Celebrities"
13
+ Landmarks = "Landmarks"
14
+ end
15
+ end
16
+ 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::V2_1
7
+ module Models
8
+ #
9
+ # Result of a DetectImage call.
10
+ #
11
+ class DetectResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<DetectedObject>] An array of detected objects.
16
+ attr_accessor :objects
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 DetectResult 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: 'DetectResult',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'DetectResult',
37
+ model_properties: {
38
+ objects: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'objects',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'DetectedObjectElementType',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'DetectedObject'
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,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
+ # A brand detected in an image.
10
+ #
11
+ class DetectedBrand
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Label for the brand.
16
+ attr_accessor :name
17
+
18
+ # @return [Float] Confidence score of having observed the brand in the
19
+ # image, as a value ranging from 0 to 1.
20
+ attr_accessor :confidence
21
+
22
+ # @return [BoundingRect] Approximate location of the detected brand.
23
+ attr_accessor :rectangle
24
+
25
+
26
+ #
27
+ # Mapper for DetectedBrand 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: 'DetectedBrand',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'DetectedBrand',
38
+ model_properties: {
39
+ name: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'name',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ confidence: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'confidence',
53
+ type: {
54
+ name: 'Double'
55
+ }
56
+ },
57
+ rectangle: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'rectangle',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'BoundingRect'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,86 @@
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 in an image.
10
+ #
11
+ class DetectedObject
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [BoundingRect] Approximate location of the detected object.
16
+ attr_accessor :rectangle
17
+
18
+ # @return [String] Label for the object.
19
+ attr_accessor :object
20
+
21
+ # @return [Float] Confidence score of having observed the object in the
22
+ # image, as a value ranging from 0 to 1.
23
+ attr_accessor :confidence
24
+
25
+ # @return [ObjectHierarchy] The parent object, from a taxonomy
26
+ # perspective.
27
+ # The parent object is a more generic form of this object. For example,
28
+ # a 'bulldog' would have a parent of 'dog'.
29
+ attr_accessor :parent
30
+
31
+
32
+ #
33
+ # Mapper for DetectedObject 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: 'DetectedObject',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'DetectedObject',
44
+ model_properties: {
45
+ rectangle: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'rectangle',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'BoundingRect'
53
+ }
54
+ },
55
+ object: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'object',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ confidence: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'confidence',
67
+ type: {
68
+ name: 'Double'
69
+ }
70
+ },
71
+ parent: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'parent',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'ObjectHierarchy'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end