azure_cognitiveservices_computervision 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +1 -1
  3. data/lib/2.0/generated/azure_cognitiveservices_computervision.rb +30 -26
  4. data/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +1229 -627
  5. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb +3 -3
  6. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/area_of_interest_result.rb +72 -0
  7. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/bounding_rect.rb +83 -0
  8. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category.rb +1 -1
  9. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +3 -2
  10. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +3 -2
  11. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +3 -9
  12. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/detect_result.rb +79 -0
  13. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/detected_object.rb +86 -0
  14. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +1 -1
  15. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +2 -1
  16. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +8 -4
  17. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +30 -5
  18. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb +2 -2
  19. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +4 -4
  20. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb +4 -4
  21. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_type.rb +4 -4
  22. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +1 -1
  23. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +3 -2
  24. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb +3 -2
  25. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/model_description.rb +2 -2
  26. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/object_hierarchy.rb +73 -0
  27. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +1 -1
  28. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +3 -3
  29. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +1 -0
  30. data/lib/profiles/latest/modules/computervision_profile_module.rb +99 -83
  31. data/lib/version.rb +1 -1
  32. metadata +7 -3
  33. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb +0 -27
@@ -17,11 +17,11 @@ module Azure::CognitiveServices::ComputerVision::V2_0
17
17
  # adult-oriented content.
18
18
  attr_accessor :is_adult_content
19
19
 
20
- # @return [Boolean] A value indicating if the image is race.
20
+ # @return [Boolean] A value indicating if the image is racy.
21
21
  attr_accessor :is_racy_content
22
22
 
23
- # @return [Float] Score from 0 to 1 that indicates how much of adult
24
- # content is within the image.
23
+ # @return [Float] Score from 0 to 1 that indicates how much the content
24
+ # is considered adult-oriented within the image.
25
25
  attr_accessor :adult_score
26
26
 
27
27
  # @return [Float] Score from 0 to 1 that indicates how suggestive is the
@@ -0,0 +1,72 @@
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
+ # Result of AreaOfInterest operation.
10
+ #
11
+ class AreaOfInterestResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [BoundingRect] A bounding box for an area of interest inside an
16
+ # image.
17
+ attr_accessor :area_of_interest
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 AreaOfInterestResult 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: 'AreaOfInterestResult',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'AreaOfInterestResult',
38
+ model_properties: {
39
+ area_of_interest: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ read_only: true,
43
+ serialized_name: 'areaOfInterest',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'BoundingRect'
47
+ }
48
+ },
49
+ request_id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'requestId',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ metadata: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'metadata',
61
+ type: {
62
+ name: 'Composite',
63
+ class_name: 'ImageMetadata'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -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
+ # A bounding box for an area inside an image.
10
+ #
11
+ class BoundingRect
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] X-coordinate of the top left point of the area, in
16
+ # pixels.
17
+ attr_accessor :x
18
+
19
+ # @return [Integer] Y-coordinate of the top left point of the area, in
20
+ # pixels.
21
+ attr_accessor :y
22
+
23
+ # @return [Integer] Width measured from the top-left point of the area,
24
+ # in pixels.
25
+ attr_accessor :w
26
+
27
+ # @return [Integer] Height measured from the top-left point of the area,
28
+ # in pixels.
29
+ attr_accessor :h
30
+
31
+
32
+ #
33
+ # Mapper for BoundingRect 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: 'BoundingRect',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'BoundingRect',
44
+ model_properties: {
45
+ x: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'x',
49
+ type: {
50
+ name: 'Number'
51
+ }
52
+ },
53
+ y: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'y',
57
+ type: {
58
+ name: 'Number'
59
+ }
60
+ },
61
+ w: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'w',
65
+ type: {
66
+ name: 'Number'
67
+ }
68
+ },
69
+ h: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'h',
73
+ type: {
74
+ name: 'Number'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ end
@@ -18,7 +18,7 @@ module Azure::CognitiveServices::ComputerVision::V2_0
18
18
  # @return [Float] Scoring of the category.
19
19
  attr_accessor :score
20
20
 
21
- # @return [CategoryDetail]
21
+ # @return [CategoryDetail] Details of the identified category.
22
22
  attr_accessor :detail
23
23
 
24
24
 
@@ -15,10 +15,11 @@ module Azure::CognitiveServices::ComputerVision::V2_0
15
15
  # @return [String] Name of the celebrity.
16
16
  attr_accessor :name
17
17
 
18
- # @return [Float] Level of confidence ranging from 0 to 1.
18
+ # @return [Float] Confidence level for the celebrity recognition as a
19
+ # value ranging from 0 to 1.
19
20
  attr_accessor :confidence
20
21
 
21
- # @return [FaceRectangle]
22
+ # @return [FaceRectangle] Location of the identified face in the image.
22
23
  attr_accessor :face_rectangle
23
24
 
24
25
 
@@ -6,13 +6,14 @@
6
6
  module Azure::CognitiveServices::ComputerVision::V2_0
7
7
  module Models
8
8
  #
9
- # List of celebrities recognized in the image.
9
+ # Result of domain-specific classifications for the domain of celebrities.
10
10
  #
11
11
  class CelebrityResults
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Array<CelebritiesModel>]
15
+ # @return [Array<CelebritiesModel>] List of celebrities recognized in the
16
+ # image.
16
17
  attr_accessor :celebrities
17
18
 
18
19
  # @return [String] Id of the REST API request.
@@ -6,18 +6,13 @@
6
6
  module Azure::CognitiveServices::ComputerVision::V2_0
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # Details about the API request error.
11
10
  #
12
11
  class ComputerVisionError
13
12
 
14
13
  include MsRestAzure
15
14
 
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'
15
+ # @return The error code.
21
16
  attr_accessor :code
22
17
 
23
18
  # @return [String] A message explaining the error reported by the
@@ -46,8 +41,7 @@ module Azure::CognitiveServices::ComputerVision::V2_0
46
41
  required: true,
47
42
  serialized_name: 'code',
48
43
  type: {
49
- name: 'Enum',
50
- module: 'ComputerVisionErrorCodes'
44
+ name: 'Object'
51
45
  }
52
46
  },
53
47
  message: {
@@ -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_0
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,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_0
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
@@ -13,7 +13,7 @@ module Azure::CognitiveServices::ComputerVision::V2_0
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return Model-specific response
16
+ # @return Model-specific response.
17
17
  attr_accessor :result
18
18
 
19
19
  # @return [String] Id of the REST API request.
@@ -19,7 +19,8 @@ module Azure::CognitiveServices::ComputerVision::V2_0
19
19
  # 'Male', 'Female'
20
20
  attr_accessor :gender
21
21
 
22
- # @return [FaceRectangle]
22
+ # @return [FaceRectangle] Rectangle in the image containing the
23
+ # identified face.
23
24
  attr_accessor :face_rectangle
24
25
 
25
26
 
@@ -12,16 +12,20 @@ module Azure::CognitiveServices::ComputerVision::V2_0
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Integer] X-coordinate of the top left point of the face.
15
+ # @return [Integer] X-coordinate of the top left point of the face, in
16
+ # pixels.
16
17
  attr_accessor :left
17
18
 
18
- # @return [Integer] Y-coordinate of the top left point of the face.
19
+ # @return [Integer] Y-coordinate of the top left point of the face, in
20
+ # pixels.
19
21
  attr_accessor :top
20
22
 
21
- # @return [Integer] Width measured from the top-left point of the face.
23
+ # @return [Integer] Width measured from the top-left point of the face,
24
+ # in pixels.
22
25
  attr_accessor :width
23
26
 
24
- # @return [Integer] Height measured from the top-left point of the face.
27
+ # @return [Integer] Height measured from the top-left point of the face,
28
+ # in pixels.
25
29
  attr_accessor :height
26
30
 
27
31