cloudmersive-image-recognition-api-client 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -19
  3. data/cloudmersive-image-recognition-api-client.gemspec +1 -1
  4. data/docs/AgeDetectionResult.md +1 -1
  5. data/docs/AiImageDetectionApi.md +63 -0
  6. data/docs/ConvertApi.md +58 -3
  7. data/docs/FaceApi.md +4 -4
  8. data/docs/FineTextItem.md +1 -0
  9. data/docs/ImageAiDetectionResult.md +10 -0
  10. data/docs/ImageSimilarityComparisonResponse.md +10 -0
  11. data/docs/ImageSimilarityHashDistanceRequest.md +9 -0
  12. data/docs/ImageSimilarityHashDistanceResponse.md +9 -0
  13. data/docs/ImageSimilarityHashResponse.md +9 -0
  14. data/docs/NsfwAdvancedResult.md +19 -0
  15. data/docs/NsfwApi.md +169 -4
  16. data/docs/PersonWithAge.md +4 -1
  17. data/docs/RecognizeApi.md +124 -58
  18. data/docs/ResizeApi.md +55 -0
  19. data/docs/TextItem.md +1 -0
  20. data/lib/cloudmersive-image-recognition-api-client/api/ai_image_detection_api.rb +78 -0
  21. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +1 -1
  22. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +58 -3
  23. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +1 -1
  24. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +8 -8
  25. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +1 -1
  26. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +1 -1
  27. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +170 -5
  28. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +171 -104
  29. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +56 -1
  30. data/lib/cloudmersive-image-recognition-api-client/api/text_generation_api.rb +1 -1
  31. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +1 -1
  32. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
  33. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +1 -1
  34. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +3 -3
  35. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +1 -1
  36. data/lib/cloudmersive-image-recognition-api-client/models/create_handwriting_request.rb +1 -1
  37. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +1 -1
  38. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +1 -1
  39. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +1 -1
  40. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +1 -1
  41. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +1 -1
  42. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +1 -1
  43. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +1 -1
  44. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +1 -1
  45. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +1 -1
  46. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +1 -1
  47. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +1 -1
  48. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +1 -1
  49. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +1 -1
  50. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +1 -1
  51. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +1 -1
  52. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +1 -1
  53. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +1 -1
  54. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +12 -2
  55. data/lib/cloudmersive-image-recognition-api-client/models/{person_with_gender.rb → image_ai_detection_result.rb} +25 -25
  56. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +1 -1
  57. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +1 -1
  58. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +1 -1
  59. data/lib/cloudmersive-image-recognition-api-client/models/{detected_object.rb → image_similarity_comparison_response.rb} +25 -55
  60. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +196 -0
  61. data/lib/cloudmersive-image-recognition-api-client/models/{object_detection_result.rb → image_similarity_hash_distance_response.rb} +12 -24
  62. data/lib/cloudmersive-image-recognition-api-client/models/{gender_detection_result.rb → image_similarity_hash_response.rb} +12 -24
  63. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_advanced_result.rb +296 -0
  64. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +1 -1
  65. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +36 -5
  66. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +1 -1
  67. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +1 -1
  68. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +1 -1
  69. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +12 -2
  70. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +1 -1
  71. data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
  72. data/lib/cloudmersive-image-recognition-api-client.rb +8 -5
  73. data/spec/api/ai_image_detection_api_spec.rb +47 -0
  74. data/spec/api/artistic_api_spec.rb +1 -1
  75. data/spec/api/convert_api_spec.rb +14 -2
  76. data/spec/api/edit_api_spec.rb +1 -1
  77. data/spec/api/face_api_spec.rb +4 -4
  78. data/spec/api/filter_api_spec.rb +1 -1
  79. data/spec/api/info_api_spec.rb +1 -1
  80. data/spec/api/nsfw_api_spec.rb +39 -3
  81. data/spec/api/recognize_api_spec.rb +40 -25
  82. data/spec/api/resize_api_spec.rb +13 -1
  83. data/spec/api/text_generation_api_spec.rb +1 -1
  84. data/spec/api_client_spec.rb +1 -1
  85. data/spec/configuration_spec.rb +1 -1
  86. data/spec/models/age_detection_result_spec.rb +1 -1
  87. data/spec/models/color_result_spec.rb +1 -1
  88. data/spec/models/create_handwriting_request_spec.rb +1 -1
  89. data/spec/models/detected_license_plate_spec.rb +1 -1
  90. data/spec/models/dominant_color_result_spec.rb +1 -1
  91. data/spec/models/draw_polygon_instance_spec.rb +1 -1
  92. data/spec/models/draw_polygon_request_spec.rb +1 -1
  93. data/spec/models/draw_rectangle_instance_spec.rb +1 -1
  94. data/spec/models/draw_rectangle_request_spec.rb +1 -1
  95. data/spec/models/draw_text_instance_spec.rb +1 -1
  96. data/spec/models/draw_text_request_spec.rb +1 -1
  97. data/spec/models/face_compare_response_spec.rb +1 -1
  98. data/spec/models/face_locate_response_spec.rb +1 -1
  99. data/spec/models/face_locate_with_landmarks_response_spec.rb +1 -1
  100. data/spec/models/face_match_spec.rb +1 -1
  101. data/spec/models/face_point_spec.rb +1 -1
  102. data/spec/models/face_spec.rb +1 -1
  103. data/spec/models/face_with_landmarks_spec.rb +1 -1
  104. data/spec/models/find_symbol_result_spec.rb +1 -1
  105. data/spec/models/fine_text_detection_result_spec.rb +1 -1
  106. data/spec/models/fine_text_item_spec.rb +7 -1
  107. data/spec/models/{person_with_gender_spec.rb → image_ai_detection_result_spec.rb} +10 -10
  108. data/spec/models/image_description_response_spec.rb +1 -1
  109. data/spec/models/image_metadata_exif_value_spec.rb +1 -1
  110. data/spec/models/image_metadata_spec.rb +1 -1
  111. data/spec/models/{gender_detection_result_spec.rb → image_similarity_comparison_response_spec.rb} +9 -9
  112. data/spec/models/image_similarity_hash_distance_request_spec.rb +47 -0
  113. data/spec/models/{object_detection_result_spec.rb → image_similarity_hash_distance_response_spec.rb} +8 -14
  114. data/spec/models/image_similarity_hash_response_spec.rb +47 -0
  115. data/spec/models/nsfw_advanced_result_spec.rb +107 -0
  116. data/spec/models/nsfw_result_spec.rb +1 -1
  117. data/spec/models/person_with_age_spec.rb +19 -1
  118. data/spec/models/polygon_point_spec.rb +1 -1
  119. data/spec/models/recognition_outcome_spec.rb +1 -1
  120. data/spec/models/text_detection_result_spec.rb +1 -1
  121. data/spec/models/text_item_spec.rb +7 -1
  122. data/spec/models/vehicle_license_plate_detection_result_spec.rb +1 -1
  123. data/spec/spec_helper.rb +1 -1
  124. metadata +39 -30
  125. data/docs/DetectedObject.md +0 -13
  126. data/docs/GenderDetectionResult.md +0 -10
  127. data/docs/ObjectDetectionResult.md +0 -10
  128. data/docs/PersonWithGender.md +0 -10
  129. data/spec/models/detected_object_spec.rb +0 -71
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -15,6 +15,9 @@ require 'date'
15
15
  module CloudmersiveImageRecognitionApiClient
16
16
  # Individual instance of text occuring in an image; one piece of text
17
17
  class FineTextItem
18
+ # Detected text in the image
19
+ attr_accessor :detected_text
20
+
18
21
  # X coordinate of the top/left text location; 0 represents the left edge of the input image
19
22
  attr_accessor :top_left_x
20
23
 
@@ -51,6 +54,7 @@ module CloudmersiveImageRecognitionApiClient
51
54
  # Attribute mapping from ruby-style variable name to JSON key.
52
55
  def self.attribute_map
53
56
  {
57
+ :'detected_text' => :'DetectedText',
54
58
  :'top_left_x' => :'TopLeftX',
55
59
  :'top_left_y' => :'TopLeftY',
56
60
  :'top_right_x' => :'TopRightX',
@@ -68,6 +72,7 @@ module CloudmersiveImageRecognitionApiClient
68
72
  # Attribute type mapping.
69
73
  def self.swagger_types
70
74
  {
75
+ :'detected_text' => :'String',
71
76
  :'top_left_x' => :'Integer',
72
77
  :'top_left_y' => :'Integer',
73
78
  :'top_right_x' => :'Integer',
@@ -90,6 +95,10 @@ module CloudmersiveImageRecognitionApiClient
90
95
  # convert string to symbol for hash key
91
96
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
92
97
 
98
+ if attributes.has_key?(:'DetectedText')
99
+ self.detected_text = attributes[:'DetectedText']
100
+ end
101
+
93
102
  if attributes.has_key?(:'TopLeftX')
94
103
  self.top_left_x = attributes[:'TopLeftX']
95
104
  end
@@ -153,6 +162,7 @@ module CloudmersiveImageRecognitionApiClient
153
162
  def ==(o)
154
163
  return true if self.equal?(o)
155
164
  self.class == o.class &&
165
+ detected_text == o.detected_text &&
156
166
  top_left_x == o.top_left_x &&
157
167
  top_left_y == o.top_left_y &&
158
168
  top_right_x == o.top_right_x &&
@@ -175,7 +185,7 @@ module CloudmersiveImageRecognitionApiClient
175
185
  # Calculates hash code according to all attributes.
176
186
  # @return [Fixnum] Hash code
177
187
  def hash
178
- [top_left_x, top_left_y, top_right_x, top_right_y, bottom_left_x, bottom_left_y, bottom_right_x, bottom_right_y, width, height, angle].hash
188
+ [detected_text, top_left_x, top_left_y, top_right_x, top_right_y, bottom_left_x, bottom_left_y, bottom_right_x, bottom_right_y, width, height, angle].hash
179
189
  end
180
190
 
181
191
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -13,32 +13,32 @@ Swagger Codegen version: 2.4.14
13
13
  require 'date'
14
14
 
15
15
  module CloudmersiveImageRecognitionApiClient
16
- # A person identified in an image gender classification operation
17
- class PersonWithGender
18
- # Location and other information about the person's face corresponding to this age classification
19
- attr_accessor :face_location
16
+ # Result of performing an AI Image detection
17
+ class ImageAiDetectionResult
18
+ # True if the image is clean (not AI generated) and false otherwise
19
+ attr_accessor :clean_result
20
20
 
21
- # Confidence level of gender classification; possible values are between 0.0 and 1.0; higher is better, with values > 0.50 being high confidence results
22
- attr_accessor :gender_classification_confidence
21
+ # Risk score between 0.0 (no risk) and 1.0 (highest risk), with anything over 0.8 being high risk
22
+ attr_accessor :ai_generated_risk_score
23
23
 
24
- # The person's identified gender; possible values are \"Male\", \"Female\" and \"Unknown\"
25
- attr_accessor :gender_class
24
+ # Tool used to generate the image, if identified (this cannot always be identified)
25
+ attr_accessor :ai_source
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
28
28
  def self.attribute_map
29
29
  {
30
- :'face_location' => :'FaceLocation',
31
- :'gender_classification_confidence' => :'GenderClassificationConfidence',
32
- :'gender_class' => :'GenderClass'
30
+ :'clean_result' => :'CleanResult',
31
+ :'ai_generated_risk_score' => :'AiGeneratedRiskScore',
32
+ :'ai_source' => :'AiSource'
33
33
  }
34
34
  end
35
35
 
36
36
  # Attribute type mapping.
37
37
  def self.swagger_types
38
38
  {
39
- :'face_location' => :'Face',
40
- :'gender_classification_confidence' => :'Float',
41
- :'gender_class' => :'String'
39
+ :'clean_result' => :'BOOLEAN',
40
+ :'ai_generated_risk_score' => :'Float',
41
+ :'ai_source' => :'String'
42
42
  }
43
43
  end
44
44
 
@@ -50,16 +50,16 @@ module CloudmersiveImageRecognitionApiClient
50
50
  # convert string to symbol for hash key
51
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
52
 
53
- if attributes.has_key?(:'FaceLocation')
54
- self.face_location = attributes[:'FaceLocation']
53
+ if attributes.has_key?(:'CleanResult')
54
+ self.clean_result = attributes[:'CleanResult']
55
55
  end
56
56
 
57
- if attributes.has_key?(:'GenderClassificationConfidence')
58
- self.gender_classification_confidence = attributes[:'GenderClassificationConfidence']
57
+ if attributes.has_key?(:'AiGeneratedRiskScore')
58
+ self.ai_generated_risk_score = attributes[:'AiGeneratedRiskScore']
59
59
  end
60
60
 
61
- if attributes.has_key?(:'GenderClass')
62
- self.gender_class = attributes[:'GenderClass']
61
+ if attributes.has_key?(:'AiSource')
62
+ self.ai_source = attributes[:'AiSource']
63
63
  end
64
64
  end
65
65
 
@@ -81,9 +81,9 @@ module CloudmersiveImageRecognitionApiClient
81
81
  def ==(o)
82
82
  return true if self.equal?(o)
83
83
  self.class == o.class &&
84
- face_location == o.face_location &&
85
- gender_classification_confidence == o.gender_classification_confidence &&
86
- gender_class == o.gender_class
84
+ clean_result == o.clean_result &&
85
+ ai_generated_risk_score == o.ai_generated_risk_score &&
86
+ ai_source == o.ai_source
87
87
  end
88
88
 
89
89
  # @see the `==` method
@@ -95,7 +95,7 @@ module CloudmersiveImageRecognitionApiClient
95
95
  # Calculates hash code according to all attributes.
96
96
  # @return [Fixnum] Hash code
97
97
  def hash
98
- [face_location, gender_classification_confidence, gender_class].hash
98
+ [clean_result, ai_generated_risk_score, ai_source].hash
99
99
  end
100
100
 
101
101
  # Builds the object from hash
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #imageapi
3
3
 
4
- #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
4
+ #Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -13,47 +13,32 @@ Swagger Codegen version: 2.4.14
13
13
  require 'date'
14
14
 
15
15
  module CloudmersiveImageRecognitionApiClient
16
- # Single object instance, and associated details, detected in an image
17
- class DetectedObject
18
- # Class of the object. Example values are \"person\", \"car\", \"dining table\", etc.
19
- attr_accessor :object_class_name
16
+ # Result of performing an image similarity operation
17
+ class ImageSimilarityComparisonResponse
18
+ # True if successful, false otherwise
19
+ attr_accessor :successful
20
20
 
21
- # Height, in pixels, of the object
22
- attr_accessor :height
21
+ # True if images are similar, false otherwise
22
+ attr_accessor :are_images_similar
23
23
 
24
- # Width, in pixels, of the object
25
- attr_accessor :width
26
-
27
- # Confidence score of detected object; possible values are between 0.0 and 1.0; values closer to 1.0 are higher confidence
28
- attr_accessor :score
29
-
30
- # X location, in pixels, of the left side location of the object, with the right side being X + Width
31
- attr_accessor :x
32
-
33
- # Y location, in pixels, of the top side location of the object, with the bottom side being Y + Height
34
- attr_accessor :y
24
+ # Similarity score between 0.0 and 1.0, with 1.0 meaning highly similar and 0.0 meaning highly dissimilar
25
+ attr_accessor :image_similarity_score
35
26
 
36
27
  # Attribute mapping from ruby-style variable name to JSON key.
37
28
  def self.attribute_map
38
29
  {
39
- :'object_class_name' => :'ObjectClassName',
40
- :'height' => :'Height',
41
- :'width' => :'Width',
42
- :'score' => :'Score',
43
- :'x' => :'X',
44
- :'y' => :'Y'
30
+ :'successful' => :'Successful',
31
+ :'are_images_similar' => :'AreImagesSimilar',
32
+ :'image_similarity_score' => :'ImageSimilarityScore'
45
33
  }
46
34
  end
47
35
 
48
36
  # Attribute type mapping.
49
37
  def self.swagger_types
50
38
  {
51
- :'object_class_name' => :'String',
52
- :'height' => :'Integer',
53
- :'width' => :'Integer',
54
- :'score' => :'Float',
55
- :'x' => :'Integer',
56
- :'y' => :'Integer'
39
+ :'successful' => :'BOOLEAN',
40
+ :'are_images_similar' => :'BOOLEAN',
41
+ :'image_similarity_score' => :'Float'
57
42
  }
58
43
  end
59
44
 
@@ -65,28 +50,16 @@ module CloudmersiveImageRecognitionApiClient
65
50
  # convert string to symbol for hash key
66
51
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
67
52
 
68
- if attributes.has_key?(:'ObjectClassName')
69
- self.object_class_name = attributes[:'ObjectClassName']
70
- end
71
-
72
- if attributes.has_key?(:'Height')
73
- self.height = attributes[:'Height']
74
- end
75
-
76
- if attributes.has_key?(:'Width')
77
- self.width = attributes[:'Width']
78
- end
79
-
80
- if attributes.has_key?(:'Score')
81
- self.score = attributes[:'Score']
53
+ if attributes.has_key?(:'Successful')
54
+ self.successful = attributes[:'Successful']
82
55
  end
83
56
 
84
- if attributes.has_key?(:'X')
85
- self.x = attributes[:'X']
57
+ if attributes.has_key?(:'AreImagesSimilar')
58
+ self.are_images_similar = attributes[:'AreImagesSimilar']
86
59
  end
87
60
 
88
- if attributes.has_key?(:'Y')
89
- self.y = attributes[:'Y']
61
+ if attributes.has_key?(:'ImageSimilarityScore')
62
+ self.image_similarity_score = attributes[:'ImageSimilarityScore']
90
63
  end
91
64
  end
92
65
 
@@ -108,12 +81,9 @@ module CloudmersiveImageRecognitionApiClient
108
81
  def ==(o)
109
82
  return true if self.equal?(o)
110
83
  self.class == o.class &&
111
- object_class_name == o.object_class_name &&
112
- height == o.height &&
113
- width == o.width &&
114
- score == o.score &&
115
- x == o.x &&
116
- y == o.y
84
+ successful == o.successful &&
85
+ are_images_similar == o.are_images_similar &&
86
+ image_similarity_score == o.image_similarity_score
117
87
  end
118
88
 
119
89
  # @see the `==` method
@@ -125,7 +95,7 @@ module CloudmersiveImageRecognitionApiClient
125
95
  # Calculates hash code according to all attributes.
126
96
  # @return [Fixnum] Hash code
127
97
  def hash
128
- [object_class_name, height, width, score, x, y].hash
98
+ [successful, are_images_similar, image_similarity_score].hash
129
99
  end
130
100
 
131
101
  # Builds the object from hash