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,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_1
7
+ module Models
8
+ #
9
+ # An object describing a single recognized line of text.
10
+ #
11
+ class OcrLine
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Bounding box of a recognized line. The four integers
16
+ # represent the x-coordinate of the left edge, the y-coordinate of the
17
+ # top edge, width, and height of the bounding box, in the coordinate
18
+ # system of the input image, after it has been rotated around its center
19
+ # according to the detected text angle (see textAngle property), with the
20
+ # origin at the top-left corner, and the y-axis pointing down.
21
+ attr_accessor :bounding_box
22
+
23
+ # @return [Array<OcrWord>] An array of objects, where each object
24
+ # represents a recognized word.
25
+ attr_accessor :words
26
+
27
+
28
+ #
29
+ # Mapper for OcrLine class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'OcrLine',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'OcrLine',
40
+ model_properties: {
41
+ bounding_box: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'boundingBox',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ words: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'words',
53
+ type: {
54
+ name: 'Sequence',
55
+ element: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'OcrWordElementType',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'OcrWord'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -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_1
7
+ module Models
8
+ #
9
+ # A region consists of multiple lines (e.g. a column of text in a
10
+ # multi-column document).
11
+ #
12
+ class OcrRegion
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Bounding box of a recognized region. The four integers
17
+ # represent the x-coordinate of the left edge, the y-coordinate of the
18
+ # top edge, width, and height of the bounding box, in the coordinate
19
+ # system of the input image, after it has been rotated around its center
20
+ # according to the detected text angle (see textAngle property), with the
21
+ # origin at the top-left corner, and the y-axis pointing down.
22
+ attr_accessor :bounding_box
23
+
24
+ # @return [Array<OcrLine>] An array of recognized lines of text.
25
+ attr_accessor :lines
26
+
27
+
28
+ #
29
+ # Mapper for OcrRegion class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'OcrRegion',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'OcrRegion',
40
+ model_properties: {
41
+ bounding_box: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'boundingBox',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ lines: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'lines',
53
+ type: {
54
+ name: 'Sequence',
55
+ element: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'OcrLineElementType',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'OcrLine'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end
@@ -0,0 +1,105 @@
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
+ # Model object.
10
+ #
11
+ #
12
+ class OcrResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] The BCP-47 language code of the text in the image.
17
+ attr_accessor :language
18
+
19
+ # @return [Float] The angle, in radians, of the detected text with
20
+ # respect to the closest horizontal or vertical direction. After rotating
21
+ # the input image clockwise by this angle, the recognized text lines
22
+ # become horizontal or vertical. In combination with the orientation
23
+ # property it can be used to overlay recognition results correctly on the
24
+ # original image, by rotating either the original image or recognition
25
+ # results by a suitable angle around the center of the original image. If
26
+ # the angle cannot be confidently detected, this property is not present.
27
+ # If the image contains text at different angles, only part of the text
28
+ # will be recognized correctly.
29
+ attr_accessor :text_angle
30
+
31
+ # @return [String] Orientation of the text recognized in the image, if
32
+ # requested. The value (up, down, left, or right) refers to the direction
33
+ # that the top of the recognized text is facing, after the image has been
34
+ # rotated around its center according to the detected text angle (see
35
+ # textAngle property).
36
+ # If detection of the orientation was not requested, or no text is
37
+ # detected, the value is 'NotDetected'.
38
+ attr_accessor :orientation
39
+
40
+ # @return [Array<OcrRegion>] An array of objects, where each object
41
+ # represents a region of recognized text.
42
+ attr_accessor :regions
43
+
44
+
45
+ #
46
+ # Mapper for OcrResult class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'OcrResult',
54
+ type: {
55
+ name: 'Composite',
56
+ class_name: 'OcrResult',
57
+ model_properties: {
58
+ language: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'language',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ text_angle: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'textAngle',
70
+ type: {
71
+ name: 'Double'
72
+ }
73
+ },
74
+ orientation: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'orientation',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ regions: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'regions',
86
+ type: {
87
+ name: 'Sequence',
88
+ element: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'OcrRegionElementType',
92
+ type: {
93
+ name: 'Composite',
94
+ class_name: 'OcrRegion'
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ }
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,62 @@
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
+ # Information on a recognized word.
10
+ #
11
+ class OcrWord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Bounding box of a recognized word. The four integers
16
+ # represent the x-coordinate of the left edge, the y-coordinate of the
17
+ # top edge, width, and height of the bounding box, in the coordinate
18
+ # system of the input image, after it has been rotated around its center
19
+ # according to the detected text angle (see textAngle property), with the
20
+ # origin at the top-left corner, and the y-axis pointing down.
21
+ attr_accessor :bounding_box
22
+
23
+ # @return [String] String value of a recognized word.
24
+ attr_accessor :text
25
+
26
+
27
+ #
28
+ # Mapper for OcrWord class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'OcrWord',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'OcrWord',
39
+ model_properties: {
40
+ bounding_box: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'boundingBox',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ text: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'text',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ 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
+ # OCR result of the read operation.
10
+ #
11
+ class ReadOperationResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [TextOperationStatusCodes] Status of the read operation.
16
+ # Possible values include: 'NotStarted', 'Running', 'Failed', 'Succeeded'
17
+ attr_accessor :status
18
+
19
+ # @return [Array<TextRecognitionResult>] An array of text recognition
20
+ # result of the read operation.
21
+ attr_accessor :recognition_results
22
+
23
+
24
+ #
25
+ # Mapper for ReadOperationResult 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: 'ReadOperationResult',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'ReadOperationResult',
36
+ model_properties: {
37
+ status: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'status',
41
+ type: {
42
+ name: 'Enum',
43
+ module: 'TextOperationStatusCodes'
44
+ }
45
+ },
46
+ recognition_results: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'recognitionResults',
50
+ type: {
51
+ name: 'Sequence',
52
+ element: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'TextRecognitionResultElementType',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'TextRecognitionResult'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ 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
+ # The results of a image tag operation, including any tags and image
10
+ # metadata.
11
+ #
12
+ class TagResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<ImageTag>] A list of tags with confidence level.
17
+ attr_accessor :tags
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 TagResult 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: 'TagResult',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'TagResult',
38
+ model_properties: {
39
+ tags: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'tags',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'ImageTagElementType',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'ImageTag'
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