cloudmersive-image-recognition-api-client 2.0.5 → 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 (130) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -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/NsfwAdvancedResult.md +19 -0
  11. data/docs/NsfwApi.md +169 -4
  12. data/docs/PersonWithAge.md +4 -1
  13. data/docs/RecognizeApi.md +0 -110
  14. data/docs/ResizeApi.md +55 -0
  15. data/docs/TextItem.md +1 -0
  16. data/lib/cloudmersive-image-recognition-api-client/api/ai_image_detection_api.rb +78 -0
  17. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +1 -1
  18. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +58 -3
  19. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +1 -1
  20. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +8 -8
  21. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +1 -1
  22. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +1 -1
  23. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +170 -5
  24. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +1 -111
  25. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +56 -1
  26. data/lib/cloudmersive-image-recognition-api-client/api/text_generation_api.rb +1 -1
  27. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +1 -1
  28. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
  29. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +1 -1
  30. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +3 -3
  31. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +1 -1
  32. data/lib/cloudmersive-image-recognition-api-client/models/create_handwriting_request.rb +1 -1
  33. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +1 -1
  34. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +1 -1
  35. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +1 -1
  36. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +1 -1
  37. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +1 -1
  38. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +1 -1
  39. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +1 -1
  40. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +1 -1
  41. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +1 -1
  42. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +1 -1
  43. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +1 -1
  44. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +1 -1
  45. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +1 -1
  46. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +1 -1
  47. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +1 -1
  48. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +1 -1
  49. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +1 -1
  50. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +12 -2
  51. data/lib/cloudmersive-image-recognition-api-client/models/{gender_detection_result.rb → image_ai_detection_result.rb} +25 -27
  52. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +1 -1
  53. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +1 -1
  54. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +1 -1
  55. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_comparison_response.rb +1 -1
  56. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +1 -1
  57. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_response.rb +1 -1
  58. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_response.rb +1 -1
  59. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_advanced_result.rb +296 -0
  60. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +1 -1
  61. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +36 -5
  62. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +1 -1
  63. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +1 -1
  64. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +1 -1
  65. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +12 -2
  66. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +1 -1
  67. data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
  68. data/lib/cloudmersive-image-recognition-api-client.rb +4 -5
  69. data/spec/api/ai_image_detection_api_spec.rb +47 -0
  70. data/spec/api/artistic_api_spec.rb +1 -1
  71. data/spec/api/convert_api_spec.rb +14 -2
  72. data/spec/api/edit_api_spec.rb +1 -1
  73. data/spec/api/face_api_spec.rb +4 -4
  74. data/spec/api/filter_api_spec.rb +1 -1
  75. data/spec/api/info_api_spec.rb +1 -1
  76. data/spec/api/nsfw_api_spec.rb +39 -3
  77. data/spec/api/recognize_api_spec.rb +1 -25
  78. data/spec/api/resize_api_spec.rb +13 -1
  79. data/spec/api/text_generation_api_spec.rb +1 -1
  80. data/spec/api_client_spec.rb +1 -1
  81. data/spec/configuration_spec.rb +1 -1
  82. data/spec/models/age_detection_result_spec.rb +1 -1
  83. data/spec/models/color_result_spec.rb +1 -1
  84. data/spec/models/create_handwriting_request_spec.rb +1 -1
  85. data/spec/models/detected_license_plate_spec.rb +1 -1
  86. data/spec/models/dominant_color_result_spec.rb +1 -1
  87. data/spec/models/draw_polygon_instance_spec.rb +1 -1
  88. data/spec/models/draw_polygon_request_spec.rb +1 -1
  89. data/spec/models/draw_rectangle_instance_spec.rb +1 -1
  90. data/spec/models/draw_rectangle_request_spec.rb +1 -1
  91. data/spec/models/draw_text_instance_spec.rb +1 -1
  92. data/spec/models/draw_text_request_spec.rb +1 -1
  93. data/spec/models/face_compare_response_spec.rb +1 -1
  94. data/spec/models/face_locate_response_spec.rb +1 -1
  95. data/spec/models/face_locate_with_landmarks_response_spec.rb +1 -1
  96. data/spec/models/face_match_spec.rb +1 -1
  97. data/spec/models/face_point_spec.rb +1 -1
  98. data/spec/models/face_spec.rb +1 -1
  99. data/spec/models/face_with_landmarks_spec.rb +1 -1
  100. data/spec/models/find_symbol_result_spec.rb +1 -1
  101. data/spec/models/fine_text_detection_result_spec.rb +1 -1
  102. data/spec/models/fine_text_item_spec.rb +7 -1
  103. data/spec/models/{person_with_gender_spec.rb → image_ai_detection_result_spec.rb} +10 -10
  104. data/spec/models/image_description_response_spec.rb +1 -1
  105. data/spec/models/image_metadata_exif_value_spec.rb +1 -1
  106. data/spec/models/image_metadata_spec.rb +1 -1
  107. data/spec/models/image_similarity_comparison_response_spec.rb +1 -1
  108. data/spec/models/image_similarity_hash_distance_request_spec.rb +1 -1
  109. data/spec/models/image_similarity_hash_distance_response_spec.rb +1 -1
  110. data/spec/models/image_similarity_hash_response_spec.rb +1 -1
  111. data/spec/models/nsfw_advanced_result_spec.rb +107 -0
  112. data/spec/models/nsfw_result_spec.rb +1 -1
  113. data/spec/models/person_with_age_spec.rb +19 -1
  114. data/spec/models/polygon_point_spec.rb +1 -1
  115. data/spec/models/recognition_outcome_spec.rb +1 -1
  116. data/spec/models/text_detection_result_spec.rb +1 -1
  117. data/spec/models/text_item_spec.rb +7 -1
  118. data/spec/models/vehicle_license_plate_detection_result_spec.rb +1 -1
  119. data/spec/spec_helper.rb +1 -1
  120. metadata +27 -30
  121. data/docs/DetectedObject.md +0 -13
  122. data/docs/GenderDetectionResult.md +0 -10
  123. data/docs/ObjectDetectionResult.md +0 -10
  124. data/docs/PersonWithGender.md +0 -10
  125. data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -236
  126. data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -208
  127. data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -206
  128. data/spec/models/detected_object_spec.rb +0 -71
  129. data/spec/models/gender_detection_result_spec.rb +0 -53
  130. data/spec/models/object_detection_result_spec.rb +0 -53
data/docs/RecognizeApi.md CHANGED
@@ -6,8 +6,6 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**recognize_describe**](RecognizeApi.md#recognize_describe) | **POST** /image/recognize/describe | Describe an image in natural language
8
8
  [**recognize_detect_and_unskew_document**](RecognizeApi.md#recognize_detect_and_unskew_document) | **POST** /image/recognize/detect-document/unskew | Detect and unskew a photo of a document
9
- [**recognize_detect_objects**](RecognizeApi.md#recognize_detect_objects) | **POST** /image/recognize/detect-objects | Detect objects including types and locations in an image
10
- [**recognize_detect_people**](RecognizeApi.md#recognize_detect_people) | **POST** /image/recognize/detect-people | Detect people including locations in an image
11
9
  [**recognize_detect_text_fine**](RecognizeApi.md#recognize_detect_text_fine) | **POST** /image/recognize/detect-text/fine | Detect fine text in a photo of a document
12
10
  [**recognize_detect_text_large**](RecognizeApi.md#recognize_detect_text_large) | **POST** /image/recognize/detect-text/large | Detect large text in a photo
13
11
  [**recognize_detect_vehicle_license_plates**](RecognizeApi.md#recognize_detect_vehicle_license_plates) | **POST** /image/recognize/detect-vehicle-license-plates | Detect vehicle license plates in an image
@@ -129,114 +127,6 @@ Name | Type | Description | Notes
129
127
 
130
128
 
131
129
 
132
- # **recognize_detect_objects**
133
- > ObjectDetectionResult recognize_detect_objects(image_file)
134
-
135
- Detect objects including types and locations in an image
136
-
137
- Identify the position, size and description of objects in an image, along with a recognition confidence level. Detects both human people and objects in an image.
138
-
139
- ### Example
140
- ```ruby
141
- # load the gem
142
- require 'cloudmersive-image-recognition-api-client'
143
- # setup authorization
144
- CloudmersiveImageRecognitionApiClient.configure do |config|
145
- # Configure API key authorization: Apikey
146
- config.api_key['Apikey'] = 'YOUR API KEY'
147
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
148
- #config.api_key_prefix['Apikey'] = 'Bearer'
149
- end
150
-
151
- api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
152
-
153
- image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
154
-
155
-
156
- begin
157
- #Detect objects including types and locations in an image
158
- result = api_instance.recognize_detect_objects(image_file)
159
- p result
160
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
161
- puts "Exception when calling RecognizeApi->recognize_detect_objects: #{e}"
162
- end
163
- ```
164
-
165
- ### Parameters
166
-
167
- Name | Type | Description | Notes
168
- ------------- | ------------- | ------------- | -------------
169
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
170
-
171
- ### Return type
172
-
173
- [**ObjectDetectionResult**](ObjectDetectionResult.md)
174
-
175
- ### Authorization
176
-
177
- [Apikey](../README.md#Apikey)
178
-
179
- ### HTTP request headers
180
-
181
- - **Content-Type**: multipart/form-data
182
- - **Accept**: application/json, text/json, application/xml, text/xml
183
-
184
-
185
-
186
- # **recognize_detect_people**
187
- > ObjectDetectionResult recognize_detect_people(image_file)
188
-
189
- Detect people including locations in an image
190
-
191
- Identify the position, and size of human people in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
192
-
193
- ### Example
194
- ```ruby
195
- # load the gem
196
- require 'cloudmersive-image-recognition-api-client'
197
- # setup authorization
198
- CloudmersiveImageRecognitionApiClient.configure do |config|
199
- # Configure API key authorization: Apikey
200
- config.api_key['Apikey'] = 'YOUR API KEY'
201
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
202
- #config.api_key_prefix['Apikey'] = 'Bearer'
203
- end
204
-
205
- api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
206
-
207
- image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
208
-
209
-
210
- begin
211
- #Detect people including locations in an image
212
- result = api_instance.recognize_detect_people(image_file)
213
- p result
214
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
215
- puts "Exception when calling RecognizeApi->recognize_detect_people: #{e}"
216
- end
217
- ```
218
-
219
- ### Parameters
220
-
221
- Name | Type | Description | Notes
222
- ------------- | ------------- | ------------- | -------------
223
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
224
-
225
- ### Return type
226
-
227
- [**ObjectDetectionResult**](ObjectDetectionResult.md)
228
-
229
- ### Authorization
230
-
231
- [Apikey](../README.md#Apikey)
232
-
233
- ### HTTP request headers
234
-
235
- - **Content-Type**: multipart/form-data
236
- - **Accept**: application/json, text/json, application/xml, text/xml
237
-
238
-
239
-
240
130
  # **recognize_detect_text_fine**
241
131
  > FineTextDetectionResult recognize_detect_text_fine(image_file)
242
132
 
data/docs/ResizeApi.md CHANGED
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**resize_post**](ResizeApi.md#resize_post) | **POST** /image/resize/preserveAspectRatio/{maxWidth}/{maxHeight} | Resize an image while preserving aspect ratio
8
+ [**resize_resize_ai_super_sampling**](ResizeApi.md#resize_resize_ai_super_sampling) | **POST** /image/resize/ai/target | Resize an image with AI super sampling
8
9
  [**resize_resize_simple**](ResizeApi.md#resize_resize_simple) | **POST** /image/resize/target/{width}/{height} | Resize an image
9
10
 
10
11
 
@@ -68,6 +69,60 @@ Name | Type | Description | Notes
68
69
 
69
70
 
70
71
 
72
+ # **resize_resize_ai_super_sampling**
73
+ > String resize_resize_ai_super_sampling(image_file)
74
+
75
+ Resize an image with AI super sampling
76
+
77
+ Use AI super sampling to resize a small or low resolution image to twice the size. Input image should be PNG or JPG, and smaller than 200 x 200 pixels (larger images will be resized down). Consumes 20 API calls.
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'cloudmersive-image-recognition-api-client'
83
+ # setup authorization
84
+ CloudmersiveImageRecognitionApiClient.configure do |config|
85
+ # Configure API key authorization: Apikey
86
+ config.api_key['Apikey'] = 'YOUR API KEY'
87
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
88
+ #config.api_key_prefix['Apikey'] = 'Bearer'
89
+ end
90
+
91
+ api_instance = CloudmersiveImageRecognitionApiClient::ResizeApi.new
92
+
93
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
94
+
95
+
96
+ begin
97
+ #Resize an image with AI super sampling
98
+ result = api_instance.resize_resize_ai_super_sampling(image_file)
99
+ p result
100
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
101
+ puts "Exception when calling ResizeApi->resize_resize_ai_super_sampling: #{e}"
102
+ end
103
+ ```
104
+
105
+ ### Parameters
106
+
107
+ Name | Type | Description | Notes
108
+ ------------- | ------------- | ------------- | -------------
109
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
110
+
111
+ ### Return type
112
+
113
+ **String**
114
+
115
+ ### Authorization
116
+
117
+ [Apikey](../README.md#Apikey)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: multipart/form-data
122
+ - **Accept**: application/octet-stream
123
+
124
+
125
+
71
126
  # **resize_resize_simple**
72
127
  > String resize_resize_simple(width, height, image_file)
73
128
 
data/docs/TextItem.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **detected_text** | **String** | Text detected in the image | [optional]
6
7
  **left_x** | **Integer** | Left X coordinate of the text location; 0 represents the left edge of the input image | [optional]
7
8
  **top_y** | **Integer** | Top Y coordinate of the text location; 0 represents the top edge of the input image | [optional]
8
9
  **width** | **Integer** | Width in pixels of the text item | [optional]
@@ -0,0 +1,78 @@
1
+ =begin
2
+ #imageapi
3
+
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
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CloudmersiveImageRecognitionApiClient
16
+ class AiImageDetectionApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Detect if an input image was generated using AI
23
+ # Detects if the input image was generated using AI tools.
24
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [ImageAiDetectionResult]
27
+ def ai_image_detection_detect_file(image_file, opts = {})
28
+ data, _status_code, _headers = ai_image_detection_detect_file_with_http_info(image_file, opts)
29
+ data
30
+ end
31
+
32
+ # Detect if an input image was generated using AI
33
+ # Detects if the input image was generated using AI tools.
34
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ImageAiDetectionResult, Fixnum, Hash)>] ImageAiDetectionResult data, response status code and response headers
37
+ def ai_image_detection_detect_file_with_http_info(image_file, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: AiImageDetectionApi.ai_image_detection_detect_file ...'
40
+ end
41
+ # verify the required parameter 'image_file' is set
42
+ if @api_client.config.client_side_validation && image_file.nil?
43
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling AiImageDetectionApi.ai_image_detection_detect_file"
44
+ end
45
+ # resource path
46
+ local_var_path = '/image/ai-detection/file'
47
+
48
+ # query parameters
49
+ query_params = {}
50
+
51
+ # header parameters
52
+ header_params = {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = {}
60
+ form_params['imageFile'] = image_file
61
+
62
+ # http body (model)
63
+ post_body = nil
64
+ auth_names = ['Apikey']
65
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => 'ImageAiDetectionResult')
72
+ if @api_client.config.debugging
73
+ @api_client.config.logger.debug "API called: AiImageDetectionApi#ai_image_detection_detect_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
74
+ end
75
+ return data, status_code, headers
76
+ end
77
+ end
78
+ end
@@ -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
 
@@ -129,7 +129,7 @@ module CloudmersiveImageRecognitionApiClient
129
129
  end
130
130
  return data, status_code, headers
131
131
  end
132
- # Convert input image to JPG, JPEG format
132
+ # Convert input image to JPG, JPEG format at specific quality
133
133
  # Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
134
134
  # @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
135
135
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -140,7 +140,7 @@ module CloudmersiveImageRecognitionApiClient
140
140
  data
141
141
  end
142
142
 
143
- # Convert input image to JPG, JPEG format
143
+ # Convert input image to JPG, JPEG format at specific quality
144
144
  # Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
145
145
  # @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
146
146
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -190,6 +190,61 @@ module CloudmersiveImageRecognitionApiClient
190
190
  end
191
191
  return data, status_code, headers
192
192
  end
193
+ # Convert input image to JPG, JPEG format
194
+ # Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
195
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
196
+ # @param [Hash] opts the optional parameters
197
+ # @return [Object]
198
+ def convert_to_jpg_default_quality(image_file, opts = {})
199
+ data, _status_code, _headers = convert_to_jpg_default_quality_with_http_info(image_file, opts)
200
+ data
201
+ end
202
+
203
+ # Convert input image to JPG, JPEG format
204
+ # Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
205
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
206
+ # @param [Hash] opts the optional parameters
207
+ # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
208
+ def convert_to_jpg_default_quality_with_http_info(image_file, opts = {})
209
+ if @api_client.config.debugging
210
+ @api_client.config.logger.debug 'Calling API: ConvertApi.convert_to_jpg_default_quality ...'
211
+ end
212
+ # verify the required parameter 'image_file' is set
213
+ if @api_client.config.client_side_validation && image_file.nil?
214
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_jpg_default_quality"
215
+ end
216
+ # resource path
217
+ local_var_path = '/image/convert/to/jpg'
218
+
219
+ # query parameters
220
+ query_params = {}
221
+
222
+ # header parameters
223
+ header_params = {}
224
+ # HTTP header 'Accept' (if needed)
225
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
226
+ # HTTP header 'Content-Type'
227
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
228
+
229
+ # form parameters
230
+ form_params = {}
231
+ form_params['imageFile'] = image_file
232
+
233
+ # http body (model)
234
+ post_body = nil
235
+ auth_names = ['Apikey']
236
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
237
+ :header_params => header_params,
238
+ :query_params => query_params,
239
+ :form_params => form_params,
240
+ :body => post_body,
241
+ :auth_names => auth_names,
242
+ :return_type => 'Object')
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_jpg_default_quality\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
245
+ end
246
+ return data, status_code, headers
247
+ end
193
248
  # Convert input image to Photoshop PSD format
194
249
  # Converts the input image into PSD format. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
195
250
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
@@ -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
 
@@ -192,7 +192,7 @@ module CloudmersiveImageRecognitionApiClient
192
192
  return data, status_code, headers
193
193
  end
194
194
  # Detect the age of people in an image
195
- # Identify the age, position, and size of human faces in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
195
+ # Identify the age, position, and size of human faces in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc. Input image should be a PNG or JPG. Consumes 20 API calls.
196
196
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
197
197
  # @param [Hash] opts the optional parameters
198
198
  # @return [AgeDetectionResult]
@@ -202,7 +202,7 @@ module CloudmersiveImageRecognitionApiClient
202
202
  end
203
203
 
204
204
  # Detect the age of people in an image
205
- # Identify the age, position, and size of human faces in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
205
+ # Identify the age, position, and size of human faces in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc. Input image should be a PNG or JPG. Consumes 20 API calls.
206
206
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
207
207
  # @param [Hash] opts the optional parameters
208
208
  # @return [Array<(AgeDetectionResult, Fixnum, Hash)>] AgeDetectionResult data, response status code and response headers
@@ -247,20 +247,20 @@ module CloudmersiveImageRecognitionApiClient
247
247
  return data, status_code, headers
248
248
  end
249
249
  # Detect the gender of people in an image
250
- # Identify the gender, position, and size of human faces in an image, along with a recognition confidence level. People in the image should be facing the camera.
250
+ # Identify the gender, position, and size of human faces in an image, along with a recognition confidence level. People in the image should be facing the camera. Input image should be a PNG or JPG. Consumes 20 API calls.
251
251
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
252
252
  # @param [Hash] opts the optional parameters
253
- # @return [GenderDetectionResult]
253
+ # @return [AgeDetectionResult]
254
254
  def face_detect_gender(image_file, opts = {})
255
255
  data, _status_code, _headers = face_detect_gender_with_http_info(image_file, opts)
256
256
  data
257
257
  end
258
258
 
259
259
  # Detect the gender of people in an image
260
- # Identify the gender, position, and size of human faces in an image, along with a recognition confidence level. People in the image should be facing the camera.
260
+ # Identify the gender, position, and size of human faces in an image, along with a recognition confidence level. People in the image should be facing the camera. Input image should be a PNG or JPG. Consumes 20 API calls.
261
261
  # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
262
262
  # @param [Hash] opts the optional parameters
263
- # @return [Array<(GenderDetectionResult, Fixnum, Hash)>] GenderDetectionResult data, response status code and response headers
263
+ # @return [Array<(AgeDetectionResult, Fixnum, Hash)>] AgeDetectionResult data, response status code and response headers
264
264
  def face_detect_gender_with_http_info(image_file, opts = {})
265
265
  if @api_client.config.debugging
266
266
  @api_client.config.logger.debug 'Calling API: FaceApi.face_detect_gender ...'
@@ -295,7 +295,7 @@ module CloudmersiveImageRecognitionApiClient
295
295
  :form_params => form_params,
296
296
  :body => post_body,
297
297
  :auth_names => auth_names,
298
- :return_type => 'GenderDetectionResult')
298
+ :return_type => 'AgeDetectionResult')
299
299
  if @api_client.config.debugging
300
300
  @api_client.config.logger.debug "API called: FaceApi#face_detect_gender\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
301
301
  end
@@ -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