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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/1.0/generated/azure_cognitiveservices_computervision.rb +19 -17
  3. data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +220 -132
  4. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/azure_regions.rb +4 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category.rb +1 -1
  6. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +78 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +6 -16
  8. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +3 -2
  9. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/{language1.rb → gender.rb} +4 -4
  10. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +5 -7
  11. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +1 -1
  12. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +1 -1
  13. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +1 -1
  14. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +78 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/landmark_results_landmarks_item.rb +57 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +2 -3
  17. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +1 -1
  18. data/lib/2.0/generated/azure_cognitiveservices_computervision.rb +65 -0
  19. data/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +2257 -0
  20. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb +83 -0
  21. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
  22. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category_detail.rb +77 -0
  23. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +69 -0
  24. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +78 -0
  25. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
  26. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +75 -0
  27. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb +27 -0
  28. data/lib/{1.0/generated/azure_cognitiveservices_computervision/models/domain_models.rb → 2.0/generated/azure_cognitiveservices_computervision/models/details.rb} +3 -3
  29. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +70 -0
  30. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +71 -0
  31. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +79 -0
  32. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/gender.rb +16 -0
  33. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +167 -0
  34. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
  35. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
  36. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +76 -0
  37. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
  38. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb +68 -0
  39. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
  40. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
  41. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +78 -0
  42. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb +57 -0
  43. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/line.rb +86 -0
  44. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/list_models_result.rb +56 -0
  45. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
  46. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
  47. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
  48. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
  49. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +103 -0
  50. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
  51. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb +56 -0
  52. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
  53. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +62 -0
  54. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
  55. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_recognition_mode.rb +16 -0
  56. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +21 -0
  57. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb +66 -0
  58. data/lib/2.0/generated/azure_cognitiveservices_computervision/module_definition.rb +9 -0
  59. data/lib/azure_cognitiveservices_computervision.rb +1 -0
  60. data/lib/profiles/latest/modules/computervision_profile_module.rb +103 -95
  61. data/lib/version.rb +1 -1
  62. metadata +49 -6
@@ -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 landmarks recognized in the image.
10
+ #
11
+ class LandmarkResults
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<LandmarksModel>]
16
+ attr_accessor :landmarks
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 LandmarkResults 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: 'LandmarkResults',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'LandmarkResults',
37
+ model_properties: {
38
+ landmarks: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'landmarks',
42
+ type: {
43
+ name: 'Sequence',
44
+ element: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'LandmarksModelElementType',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'LandmarksModel'
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,57 @@
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 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.
19
+ attr_accessor :confidence
20
+
21
+
22
+ #
23
+ # Mapper for LandmarksModel 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: 'LandmarksModel',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'LandmarksModel',
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
+ confidence: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'confidence',
47
+ type: {
48
+ name: 'Double'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ 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
+ # Model object.
10
+ #
11
+ #
12
+ class Line
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<Integer>]
17
+ attr_accessor :bounding_box
18
+
19
+ # @return [String]
20
+ attr_accessor :text
21
+
22
+ # @return [Array<Word>]
23
+ attr_accessor :words
24
+
25
+
26
+ #
27
+ # Mapper for Line 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: 'Line',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Line',
38
+ model_properties: {
39
+ bounding_box: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'boundingBox',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'NumberElementType',
49
+ type: {
50
+ name: 'Number'
51
+ }
52
+ }
53
+ }
54
+ },
55
+ text: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'text',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ words: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'words',
67
+ type: {
68
+ name: 'Sequence',
69
+ element: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'WordElementType',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'Word'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ 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_0
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_0
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]
16
+ attr_accessor :name
17
+
18
+ # @return [Array<String>]
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,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_0
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
@@ -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
+ # 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