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 landmarks.
10
+ #
11
+ class LandmarkResults
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<LandmarksModel>] List of landmarks recognized in the
16
+ # image.
17
+ attr_accessor :landmarks
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 LandmarkResults 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: 'LandmarkResults',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'LandmarkResults',
38
+ model_properties: {
39
+ landmarks: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'landmarks',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'LandmarksModelElementType',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'LandmarksModel'
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,58 @@
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 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 as a
19
+ # value ranging from 0 to 1.
20
+ attr_accessor :confidence
21
+
22
+
23
+ #
24
+ # Mapper for LandmarksModel class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'LandmarksModel',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'LandmarksModel',
35
+ model_properties: {
36
+ name: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'name',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ confidence: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'confidence',
48
+ type: {
49
+ name: 'Double'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,85 @@
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 representing a recognized text line.
10
+ #
11
+ class Line
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Float>] Bounding box of a recognized line.
16
+ attr_accessor :bounding_box
17
+
18
+ # @return [String] The text content of the line.
19
+ attr_accessor :text
20
+
21
+ # @return [Array<Word>] List of words in the text line.
22
+ attr_accessor :words
23
+
24
+
25
+ #
26
+ # Mapper for Line 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: 'Line',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'Line',
37
+ model_properties: {
38
+ bounding_box: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'boundingBox',
42
+ type: {
43
+ name: 'Sequence',
44
+ element: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'FloatElementType',
48
+ type: {
49
+ name: 'Double'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ text: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'text',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ words: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'words',
66
+ type: {
67
+ name: 'Sequence',
68
+ element: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'WordElementType',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'Word'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -3,46 +3,46 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::CognitiveServices::ComputerVision::V2_0
6
+ module Azure::CognitiveServices::ComputerVision::V2_1
7
7
  module Models
8
8
  #
9
- # Model object.
9
+ # Result of the List Domain Models operation.
10
10
  #
11
- #
12
- class RecognitionResult
11
+ class ListModelsResult
13
12
 
14
13
  include MsRestAzure
15
14
 
16
- # @return [Array<Line>]
17
- attr_accessor :lines
15
+ # @return [Array<ModelDescription>] An array of supported models.
16
+ attr_accessor :models_property
18
17
 
19
18
 
20
19
  #
21
- # Mapper for RecognitionResult class as Ruby Hash.
20
+ # Mapper for ListModelsResult class as Ruby Hash.
22
21
  # This will be used for serialization/deserialization.
23
22
  #
24
23
  def self.mapper()
25
24
  {
26
25
  client_side_validation: true,
27
26
  required: false,
28
- serialized_name: 'RecognitionResult',
27
+ serialized_name: 'ListModelsResult',
29
28
  type: {
30
29
  name: 'Composite',
31
- class_name: 'RecognitionResult',
30
+ class_name: 'ListModelsResult',
32
31
  model_properties: {
33
- lines: {
32
+ models_property: {
34
33
  client_side_validation: true,
35
34
  required: false,
36
- serialized_name: 'lines',
35
+ read_only: true,
36
+ serialized_name: 'models',
37
37
  type: {
38
38
  name: 'Sequence',
39
39
  element: {
40
40
  client_side_validation: true,
41
41
  required: false,
42
- serialized_name: 'LineElementType',
42
+ serialized_name: 'ModelDescriptionElementType',
43
43
  type: {
44
44
  name: 'Composite',
45
- class_name: 'Line'
45
+ class_name: 'ModelDescription'
46
46
  }
47
47
  }
48
48
  }
@@ -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_1
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] The name of the model.
16
+ attr_accessor :name
17
+
18
+ # @return [Array<String>] Categories of the model.
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,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
+ # An object detected inside an image.
10
+ #
11
+ class ObjectHierarchy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Label for the object.
16
+ attr_accessor :object
17
+
18
+ # @return [Float] Confidence score of having observed the object in the
19
+ # image, as a value ranging from 0 to 1.
20
+ attr_accessor :confidence
21
+
22
+ # @return [ObjectHierarchy] The parent object, from a taxonomy
23
+ # perspective.
24
+ # The parent object is a more generic form of this object. For example,
25
+ # a 'bulldog' would have a parent of 'dog'.
26
+ attr_accessor :parent
27
+
28
+
29
+ #
30
+ # Mapper for ObjectHierarchy class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'ObjectHierarchy',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'ObjectHierarchy',
41
+ model_properties: {
42
+ object: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'object',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ confidence: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'confidence',
54
+ type: {
55
+ name: 'Double'
56
+ }
57
+ },
58
+ parent: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'parent',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ObjectHierarchy'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ end
71
+ end
72
+ end
73
+ 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_1
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