azure_cognitiveservices_computervision 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_computervision.rb +63 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +2173 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb +83 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/azure_regions.rb +26 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category_detail.rb +56 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +69 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +75 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb +27 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/details.rb +16 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +80 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_models.rb +16 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +70 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +79 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +169 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +99 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb +57 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/language1.rb +16 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/line.rb +86 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/list_models_result.rb +56 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +104 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb +56 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +62 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +21 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/word.rb +66 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_computervision/module_definition.rb +9 -0
  42. data/lib/azure_cognitiveservices_computervision.rb +6 -0
  43. data/lib/module_definition.rb +7 -0
  44. data/lib/profiles/latest/computervision_latest_profile_client.rb +38 -0
  45. data/lib/profiles/latest/computervision_module_definition.rb +8 -0
  46. data/lib/profiles/latest/modules/computervision_profile_module.rb +201 -0
  47. data/lib/version.rb +7 -0
  48. metadata +166 -0
@@ -0,0 +1,201 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_cognitiveservices_computervision'
6
+
7
+ module Azure::ComputerVision::Profiles::Latest
8
+
9
+ module Models
10
+ ImageDescriptionDetails = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageDescriptionDetails
11
+ Word = Azure::CognitiveServices::ComputerVision::V1_0::Models::Word
12
+ FaceDescription = Azure::CognitiveServices::ComputerVision::V1_0::Models::FaceDescription
13
+ RecognitionResult = Azure::CognitiveServices::ComputerVision::V1_0::Models::RecognitionResult
14
+ ImageAnalysis = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageAnalysis
15
+ FaceRectangle = Azure::CognitiveServices::ComputerVision::V1_0::Models::FaceRectangle
16
+ OcrWord = Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrWord
17
+ CategoryDetail = Azure::CognitiveServices::ComputerVision::V1_0::Models::CategoryDetail
18
+ OcrLine = Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrLine
19
+ AdultInfo = Azure::CognitiveServices::ComputerVision::V1_0::Models::AdultInfo
20
+ OcrRegion = Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrRegion
21
+ ImageType = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageType
22
+ OcrResult = Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrResult
23
+ ImageCaption = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageCaption
24
+ ModelDescription = Azure::CognitiveServices::ComputerVision::V1_0::Models::ModelDescription
25
+ Line = Azure::CognitiveServices::ComputerVision::V1_0::Models::Line
26
+ ListModelsResult = Azure::CognitiveServices::ComputerVision::V1_0::Models::ListModelsResult
27
+ CelebritiesModel = Azure::CognitiveServices::ComputerVision::V1_0::Models::CelebritiesModel
28
+ DomainModelResults = Azure::CognitiveServices::ComputerVision::V1_0::Models::DomainModelResults
29
+ ColorInfo = Azure::CognitiveServices::ComputerVision::V1_0::Models::ColorInfo
30
+ ImageDescription = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageDescription
31
+ ImageMetadata = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageMetadata
32
+ TagResult = Azure::CognitiveServices::ComputerVision::V1_0::Models::TagResult
33
+ Category = Azure::CognitiveServices::ComputerVision::V1_0::Models::Category
34
+ ComputerVisionError = Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionError
35
+ TextOperationResult = Azure::CognitiveServices::ComputerVision::V1_0::Models::TextOperationResult
36
+ ImageUrl = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageUrl
37
+ ImageTag = Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageTag
38
+ TextOperationStatusCodes = Azure::CognitiveServices::ComputerVision::V1_0::Models::TextOperationStatusCodes
39
+ ComputerVisionErrorCodes = Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionErrorCodes
40
+ VisualFeatureTypes = Azure::CognitiveServices::ComputerVision::V1_0::Models::VisualFeatureTypes
41
+ OcrLanguages = Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrLanguages
42
+ AzureRegions = Azure::CognitiveServices::ComputerVision::V1_0::Models::AzureRegions
43
+ Details = Azure::CognitiveServices::ComputerVision::V1_0::Models::Details
44
+ Language1 = Azure::CognitiveServices::ComputerVision::V1_0::Models::Language1
45
+ DomainModels = Azure::CognitiveServices::ComputerVision::V1_0::Models::DomainModels
46
+ end
47
+
48
+ #
49
+ # ComputerVisionDataClass
50
+ #
51
+ class ComputerVisionDataClass
52
+ attr_reader :configurable, :base_url, :options, :model_classes
53
+
54
+ def initialize(options = {})
55
+ if options.is_a?(Hash) && options.length == 0
56
+ @options = setup_default_options
57
+ else
58
+ @options = options
59
+ end
60
+
61
+ reset!(options)
62
+
63
+ @configurable = self
64
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
65
+ @options = options[:options].nil? ? nil:options[:options]
66
+
67
+ @client_0 = Azure::CognitiveServices::ComputerVision::V1_0::ComputerVisionClient.new(configurable.credentials, options)
68
+ if(@client_0.respond_to?(:subscription_id))
69
+ @client_0.subscription_id = configurable.subscription_id
70
+ end
71
+ add_telemetry(@client_0)
72
+
73
+ @model_classes = ModelClasses.new
74
+ end
75
+
76
+ def add_telemetry(client)
77
+ profile_information = 'Profiles/Latest/ComputerVision'
78
+ client.add_user_agent_information(profile_information)
79
+ end
80
+
81
+ def method_missing(method, *args)
82
+ if @client_0.respond_to?method
83
+ @client_0.send(method, *args)
84
+ else
85
+ super
86
+ end
87
+ end
88
+
89
+ end
90
+
91
+ class ModelClasses
92
+ def image_description_details
93
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageDescriptionDetails
94
+ end
95
+ def word
96
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::Word
97
+ end
98
+ def face_description
99
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::FaceDescription
100
+ end
101
+ def recognition_result
102
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::RecognitionResult
103
+ end
104
+ def image_analysis
105
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageAnalysis
106
+ end
107
+ def face_rectangle
108
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::FaceRectangle
109
+ end
110
+ def ocr_word
111
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrWord
112
+ end
113
+ def category_detail
114
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::CategoryDetail
115
+ end
116
+ def ocr_line
117
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrLine
118
+ end
119
+ def adult_info
120
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::AdultInfo
121
+ end
122
+ def ocr_region
123
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrRegion
124
+ end
125
+ def image_type
126
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageType
127
+ end
128
+ def ocr_result
129
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrResult
130
+ end
131
+ def image_caption
132
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageCaption
133
+ end
134
+ def model_description
135
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ModelDescription
136
+ end
137
+ def line
138
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::Line
139
+ end
140
+ def list_models_result
141
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ListModelsResult
142
+ end
143
+ def celebrities_model
144
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::CelebritiesModel
145
+ end
146
+ def domain_model_results
147
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::DomainModelResults
148
+ end
149
+ def color_info
150
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ColorInfo
151
+ end
152
+ def image_description
153
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageDescription
154
+ end
155
+ def image_metadata
156
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageMetadata
157
+ end
158
+ def tag_result
159
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::TagResult
160
+ end
161
+ def category
162
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::Category
163
+ end
164
+ def computer_vision_error
165
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionError
166
+ end
167
+ def text_operation_result
168
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::TextOperationResult
169
+ end
170
+ def image_url
171
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageUrl
172
+ end
173
+ def image_tag
174
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ImageTag
175
+ end
176
+ def text_operation_status_codes
177
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::TextOperationStatusCodes
178
+ end
179
+ def computer_vision_error_codes
180
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionErrorCodes
181
+ end
182
+ def visual_feature_types
183
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::VisualFeatureTypes
184
+ end
185
+ def ocr_languages
186
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::OcrLanguages
187
+ end
188
+ def azure_regions
189
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::AzureRegions
190
+ end
191
+ def details
192
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::Details
193
+ end
194
+ def language1
195
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::Language1
196
+ end
197
+ def domain_models
198
+ Azure::CognitiveServices::ComputerVision::V1_0::Models::DomainModels
199
+ end
200
+ end
201
+ end
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::CognitiveServices::ComputerVision
6
+ VERSION = '0.16.0'
7
+ end
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_cognitiveservices_computervision
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.16.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ms_rest_azure
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.10.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.10.0
83
+ description: Microsoft Azure Cognitive Services Computer Vision Client Library for
84
+ Ruby
85
+ email: azrubyteam@microsoft.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - LICENSE.txt
91
+ - lib/1.0/generated/azure_cognitiveservices_computervision.rb
92
+ - lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb
93
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb
94
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/azure_regions.rb
95
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/category.rb
96
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/category_detail.rb
97
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb
98
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/color_info.rb
99
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb
100
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb
101
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/details.rb
102
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb
103
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_models.rb
104
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/face_description.rb
105
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb
106
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb
107
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb
108
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description.rb
109
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb
110
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb
111
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb
112
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_type.rb
113
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/image_url.rb
114
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/language1.rb
115
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/line.rb
116
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/list_models_result.rb
117
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/model_description.rb
118
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb
119
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb
120
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb
121
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb
122
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb
123
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb
124
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb
125
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb
126
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb
127
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb
128
+ - lib/1.0/generated/azure_cognitiveservices_computervision/models/word.rb
129
+ - lib/1.0/generated/azure_cognitiveservices_computervision/module_definition.rb
130
+ - lib/azure_cognitiveservices_computervision.rb
131
+ - lib/module_definition.rb
132
+ - lib/profiles/latest/computervision_latest_profile_client.rb
133
+ - lib/profiles/latest/computervision_module_definition.rb
134
+ - lib/profiles/latest/modules/computervision_profile_module.rb
135
+ - lib/version.rb
136
+ homepage: https://aka.ms/azure-sdk-for-ruby
137
+ licenses:
138
+ - MIT
139
+ metadata:
140
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
141
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
142
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
143
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
144
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/data/azure_cognitiveservices_computervision
145
+ post_install_message:
146
+ rdoc_options: []
147
+ require_paths:
148
+ - lib
149
+ required_ruby_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: 2.0.0
154
+ required_rubygems_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ version: '0'
159
+ requirements: []
160
+ rubyforge_project:
161
+ rubygems_version: 2.5.1
162
+ signing_key:
163
+ specification_version: 4
164
+ summary: Official Ruby client library to consume Microsoft Azure Cognitive Services
165
+ Computer Vision.
166
+ test_files: []