cloudmersive-image-recognition-api-client 1.4.4 → 1.4.5
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.
- checksums.yaml +4 -4
- data/README.md +14 -14
- data/docs/ConvertApi.md +6 -6
- data/docs/EditApi.md +15 -15
- data/docs/FaceApi.md +12 -12
- data/docs/FaceLocateResponse.md +1 -1
- data/docs/FilterApi.md +3 -3
- data/docs/ImageMetadata.md +2 -0
- data/docs/InfoApi.md +3 -3
- data/docs/NsfwApi.md +3 -3
- data/docs/RecognizeApi.md +6 -6
- data/docs/ResizeApi.md +6 -6
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +5 -5
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +15 -15
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +8 -8
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +2 -2
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +2 -2
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +2 -2
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +4 -4
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +6 -6
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +14 -13
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +21 -1
- data/lib/cloudmersive-image-recognition-api-client/version.rb +1 -1
- data/spec/api/convert_api_spec.rb +1 -1
- data/spec/api/edit_api_spec.rb +5 -5
- data/spec/api/face_api_spec.rb +4 -4
- data/spec/api/filter_api_spec.rb +1 -1
- data/spec/api/info_api_spec.rb +1 -1
- data/spec/api/nsfw_api_spec.rb +1 -1
- data/spec/api/recognize_api_spec.rb +2 -2
- data/spec/api/resize_api_spec.rb +2 -2
- data/spec/models/face_locate_response_spec.rb +4 -4
- data/spec/models/image_metadata_spec.rb +12 -0
- metadata +2 -2
data/docs/ResizeApi.md
CHANGED
|
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
|
|
|
64
64
|
### HTTP request headers
|
|
65
65
|
|
|
66
66
|
- **Content-Type**: multipart/form-data
|
|
67
|
-
- **Accept**:
|
|
67
|
+
- **Accept**: application/octet-stream
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
@@ -89,9 +89,9 @@ end
|
|
|
89
89
|
|
|
90
90
|
api_instance = CloudmersiveImageRecognitionApiClient::ResizeApi.new
|
|
91
91
|
|
|
92
|
-
width = 56 # Integer |
|
|
92
|
+
width = 56 # Integer | Width of the output image - final image will be exactly this width
|
|
93
93
|
|
|
94
|
-
height = 56 # Integer |
|
|
94
|
+
height = 56 # Integer | Height of the output image - final image will be exactly this height
|
|
95
95
|
|
|
96
96
|
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.
|
|
97
97
|
|
|
@@ -109,8 +109,8 @@ end
|
|
|
109
109
|
|
|
110
110
|
Name | Type | Description | Notes
|
|
111
111
|
------------- | ------------- | ------------- | -------------
|
|
112
|
-
**width** | **Integer**|
|
|
113
|
-
**height** | **Integer**|
|
|
112
|
+
**width** | **Integer**| Width of the output image - final image will be exactly this width |
|
|
113
|
+
**height** | **Integer**| Height of the output image - final image will be exactly this height |
|
|
114
114
|
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
|
115
115
|
|
|
116
116
|
### Return type
|
|
@@ -124,7 +124,7 @@ Name | Type | Description | Notes
|
|
|
124
124
|
### HTTP request headers
|
|
125
125
|
|
|
126
126
|
- **Content-Type**: multipart/form-data
|
|
127
|
-
- **Accept**:
|
|
127
|
+
- **Accept**: application/octet-stream
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
@@ -108,7 +108,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
108
108
|
# header parameters
|
|
109
109
|
header_params = {}
|
|
110
110
|
# HTTP header 'Accept' (if needed)
|
|
111
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
112
112
|
# HTTP header 'Content-Type'
|
|
113
113
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
114
114
|
|
|
@@ -132,7 +132,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
132
132
|
return data, status_code, headers
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
# Convert input image to JPG
|
|
135
|
+
# Convert input image to JPG, JPEG format
|
|
136
136
|
# 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.
|
|
137
137
|
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
|
138
138
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
@@ -143,7 +143,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
143
143
|
return data
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
# Convert input image to JPG
|
|
146
|
+
# Convert input image to JPG, JPEG format
|
|
147
147
|
# 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.
|
|
148
148
|
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
|
149
149
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
@@ -170,7 +170,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
170
170
|
# header parameters
|
|
171
171
|
header_params = {}
|
|
172
172
|
# HTTP header 'Accept' (if needed)
|
|
173
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
173
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
174
174
|
# HTTP header 'Content-Type'
|
|
175
175
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
176
176
|
|
|
@@ -282,7 +282,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
282
282
|
# header parameters
|
|
283
283
|
header_params = {}
|
|
284
284
|
# HTTP header 'Accept' (if needed)
|
|
285
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
285
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
286
286
|
# HTTP header 'Content-Type'
|
|
287
287
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
288
288
|
|
|
@@ -120,7 +120,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
120
120
|
# header parameters
|
|
121
121
|
header_params = {}
|
|
122
122
|
# HTTP header 'Accept' (if needed)
|
|
123
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
124
124
|
# HTTP header 'Content-Type'
|
|
125
125
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
126
126
|
|
|
@@ -183,7 +183,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
183
183
|
# header parameters
|
|
184
184
|
header_params = {}
|
|
185
185
|
# HTTP header 'Accept' (if needed)
|
|
186
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
187
187
|
# HTTP header 'Content-Type'
|
|
188
188
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
189
189
|
|
|
@@ -289,7 +289,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
289
289
|
|
|
290
290
|
# Draw a polygon onto an image
|
|
291
291
|
# Draw one or more polygons, with customized visuals, onto an image
|
|
292
|
-
# @param request
|
|
292
|
+
# @param request Polygon drawing request parameters
|
|
293
293
|
# @param [Hash] opts the optional parameters
|
|
294
294
|
# @return [String]
|
|
295
295
|
def edit_draw_polygon(request, opts = {})
|
|
@@ -299,7 +299,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
299
299
|
|
|
300
300
|
# Draw a polygon onto an image
|
|
301
301
|
# Draw one or more polygons, with customized visuals, onto an image
|
|
302
|
-
# @param request
|
|
302
|
+
# @param request Polygon drawing request parameters
|
|
303
303
|
# @param [Hash] opts the optional parameters
|
|
304
304
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
305
305
|
def edit_draw_polygon_with_http_info(request, opts = {})
|
|
@@ -319,7 +319,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
319
319
|
# header parameters
|
|
320
320
|
header_params = {}
|
|
321
321
|
# HTTP header 'Accept' (if needed)
|
|
322
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
322
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
323
323
|
# HTTP header 'Content-Type'
|
|
324
324
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
|
325
325
|
|
|
@@ -344,7 +344,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
344
344
|
|
|
345
345
|
# Draw a rectangle onto an image
|
|
346
346
|
# Draw one or more rectangles, with customized visuals, onto an image
|
|
347
|
-
# @param request
|
|
347
|
+
# @param request Draw rectangle parameters
|
|
348
348
|
# @param [Hash] opts the optional parameters
|
|
349
349
|
# @return [String]
|
|
350
350
|
def edit_draw_rectangle(request, opts = {})
|
|
@@ -354,7 +354,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
354
354
|
|
|
355
355
|
# Draw a rectangle onto an image
|
|
356
356
|
# Draw one or more rectangles, with customized visuals, onto an image
|
|
357
|
-
# @param request
|
|
357
|
+
# @param request Draw rectangle parameters
|
|
358
358
|
# @param [Hash] opts the optional parameters
|
|
359
359
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
360
360
|
def edit_draw_rectangle_with_http_info(request, opts = {})
|
|
@@ -374,7 +374,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
374
374
|
# header parameters
|
|
375
375
|
header_params = {}
|
|
376
376
|
# HTTP header 'Accept' (if needed)
|
|
377
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
377
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
378
378
|
# HTTP header 'Content-Type'
|
|
379
379
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
|
380
380
|
|
|
@@ -399,7 +399,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
399
399
|
|
|
400
400
|
# Draw text onto an image
|
|
401
401
|
# Draw one or more pieces of text, with customized visuals, onto an image
|
|
402
|
-
# @param request
|
|
402
|
+
# @param request Draw text parameters
|
|
403
403
|
# @param [Hash] opts the optional parameters
|
|
404
404
|
# @return [String]
|
|
405
405
|
def edit_draw_text(request, opts = {})
|
|
@@ -409,7 +409,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
409
409
|
|
|
410
410
|
# Draw text onto an image
|
|
411
411
|
# Draw one or more pieces of text, with customized visuals, onto an image
|
|
412
|
-
# @param request
|
|
412
|
+
# @param request Draw text parameters
|
|
413
413
|
# @param [Hash] opts the optional parameters
|
|
414
414
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
415
415
|
def edit_draw_text_with_http_info(request, opts = {})
|
|
@@ -429,7 +429,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
429
429
|
# header parameters
|
|
430
430
|
header_params = {}
|
|
431
431
|
# HTTP header 'Accept' (if needed)
|
|
432
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
432
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
433
433
|
# HTTP header 'Content-Type'
|
|
434
434
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'text/json', 'application/xml', 'text/xml', 'application/x-www-form-urlencoded'])
|
|
435
435
|
|
|
@@ -454,8 +454,8 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
454
454
|
|
|
455
455
|
# Add a customizeable drop shadow to an image
|
|
456
456
|
# Add a customizeable drop shadow to the image
|
|
457
|
-
# @param x
|
|
458
|
-
# @param y
|
|
457
|
+
# @param x Horizontal (X) offset of the drop shadow
|
|
458
|
+
# @param y Vertical (Y) offset of the drop shadow
|
|
459
459
|
# @param sigma Sigma (blur distance) of the drop shadow
|
|
460
460
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
|
461
461
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
@@ -468,8 +468,8 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
468
468
|
|
|
469
469
|
# Add a customizeable drop shadow to an image
|
|
470
470
|
# Add a customizeable drop shadow to the image
|
|
471
|
-
# @param x
|
|
472
|
-
# @param y
|
|
471
|
+
# @param x Horizontal (X) offset of the drop shadow
|
|
472
|
+
# @param y Vertical (Y) offset of the drop shadow
|
|
473
473
|
# @param sigma Sigma (blur distance) of the drop shadow
|
|
474
474
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
|
475
475
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
@@ -83,7 +83,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
-
# Crop image to face
|
|
86
|
+
# Crop image to face with square crop
|
|
87
87
|
# Crop an image to the face (rectangular crop). If there is more than one face present, choose the first one.
|
|
88
88
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
89
89
|
# @param [Hash] opts the optional parameters
|
|
@@ -93,7 +93,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
93
93
|
return data
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
# Crop image to face
|
|
96
|
+
# Crop image to face with square crop
|
|
97
97
|
# Crop an image to the face (rectangular crop). If there is more than one face present, choose the first one.
|
|
98
98
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
99
99
|
# @param [Hash] opts the optional parameters
|
|
@@ -139,7 +139,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
139
139
|
return data, status_code, headers
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
# Crop image to face
|
|
142
|
+
# Crop image to face with round crop
|
|
143
143
|
# Crop an image to the face (circular/round crop). If there is more than one face present, choose the first one.
|
|
144
144
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
145
145
|
# @param [Hash] opts the optional parameters
|
|
@@ -149,7 +149,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
149
149
|
return data
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
-
# Crop image to face
|
|
152
|
+
# Crop image to face with round crop
|
|
153
153
|
# Crop an image to the face (circular/round crop). If there is more than one face present, choose the first one.
|
|
154
154
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
155
155
|
# @param [Hash] opts the optional parameters
|
|
@@ -307,7 +307,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
307
307
|
return data, status_code, headers
|
|
308
308
|
end
|
|
309
309
|
|
|
310
|
-
#
|
|
310
|
+
# Detect and find faces in an image
|
|
311
311
|
# Locate the positions of all faces in an image
|
|
312
312
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
313
313
|
# @param [Hash] opts the optional parameters
|
|
@@ -317,7 +317,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
317
317
|
return data
|
|
318
318
|
end
|
|
319
319
|
|
|
320
|
-
#
|
|
320
|
+
# Detect and find faces in an image
|
|
321
321
|
# Locate the positions of all faces in an image
|
|
322
322
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
323
323
|
# @param [Hash] opts the optional parameters
|
|
@@ -363,7 +363,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
363
363
|
return data, status_code, headers
|
|
364
364
|
end
|
|
365
365
|
|
|
366
|
-
#
|
|
366
|
+
# Detect and find faces and landmarks eyes and nose and mouth in image
|
|
367
367
|
# Locate the positions of all faces in an image, along with the eyes, eye brows, nose and mouth components of each
|
|
368
368
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
369
369
|
# @param [Hash] opts the optional parameters
|
|
@@ -373,7 +373,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
373
373
|
return data
|
|
374
374
|
end
|
|
375
375
|
|
|
376
|
-
#
|
|
376
|
+
# Detect and find faces and landmarks eyes and nose and mouth in image
|
|
377
377
|
# Locate the positions of all faces in an image, along with the eyes, eye brows, nose and mouth components of each
|
|
378
378
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
379
379
|
# @param [Hash] opts the optional parameters
|
|
@@ -76,7 +76,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
76
76
|
return data, status_code, headers
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
# Despeckle
|
|
79
|
+
# Despeckle to remove point noise from the image
|
|
80
80
|
# Remove point noise / despeckle the input image
|
|
81
81
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
82
82
|
# @param [Hash] opts the optional parameters
|
|
@@ -86,7 +86,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
86
86
|
return data
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
# Despeckle
|
|
89
|
+
# Despeckle to remove point noise from the image
|
|
90
90
|
# Remove point noise / despeckle the input image
|
|
91
91
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
@@ -76,7 +76,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
76
76
|
return data, status_code, headers
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
-
# Returns the image metadata
|
|
79
|
+
# Returns the image metadata including EXIF and resolution
|
|
80
80
|
# Returns the metadata information on the image, including file type, EXIF (if available), and resolution.
|
|
81
81
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
82
82
|
# @param [Hash] opts the optional parameters
|
|
@@ -86,7 +86,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
86
86
|
return data
|
|
87
87
|
end
|
|
88
88
|
|
|
89
|
-
# Returns the image metadata
|
|
89
|
+
# Returns the image metadata including EXIF and resolution
|
|
90
90
|
# Returns the metadata information on the image, including file type, EXIF (if available), and resolution.
|
|
91
91
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
|
@@ -20,7 +20,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
-
# Not safe for work
|
|
23
|
+
# Not safe for work NSFW racy content classification
|
|
24
24
|
# Classify an image into Not Safe For Work (NSFW)/Porn/Racy content and Safe Content.
|
|
25
25
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
@@ -30,7 +30,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
30
30
|
return data
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
-
# Not safe for work
|
|
33
|
+
# Not safe for work NSFW racy content classification
|
|
34
34
|
# Classify an image into Not Safe For Work (NSFW)/Porn/Racy content and Safe Content.
|
|
35
35
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
|
@@ -135,7 +135,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
135
135
|
return data, status_code, headers
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
# Detect objects
|
|
138
|
+
# Detect objects including types and locations in an image
|
|
139
139
|
# 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.
|
|
140
140
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
141
141
|
# @param [Hash] opts the optional parameters
|
|
@@ -145,7 +145,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
145
145
|
return data
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
# Detect objects
|
|
148
|
+
# Detect objects including types and locations in an image
|
|
149
149
|
# 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.
|
|
150
150
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
151
151
|
# @param [Hash] opts the optional parameters
|
|
@@ -191,7 +191,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
191
191
|
return data, status_code, headers
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
# Detect people
|
|
194
|
+
# Detect people including locations in an image
|
|
195
195
|
# 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.
|
|
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
|
|
@@ -201,7 +201,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
201
201
|
return data
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
# Detect people
|
|
204
|
+
# Detect people including locations in an image
|
|
205
205
|
# 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.
|
|
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
|
|
@@ -64,7 +64,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
64
64
|
# header parameters
|
|
65
65
|
header_params = {}
|
|
66
66
|
# HTTP header 'Accept' (if needed)
|
|
67
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
67
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
68
68
|
# HTTP header 'Content-Type'
|
|
69
69
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
70
70
|
|
|
@@ -90,8 +90,8 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
90
90
|
|
|
91
91
|
# Resize an image
|
|
92
92
|
# Resize an image to a specific width and specific height
|
|
93
|
-
# @param width
|
|
94
|
-
# @param height
|
|
93
|
+
# @param width Width of the output image - final image will be exactly this width
|
|
94
|
+
# @param height Height of the output image - final image will be exactly this height
|
|
95
95
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
97
97
|
# @return [String]
|
|
@@ -102,8 +102,8 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
102
102
|
|
|
103
103
|
# Resize an image
|
|
104
104
|
# Resize an image to a specific width and specific height
|
|
105
|
-
# @param width
|
|
106
|
-
# @param height
|
|
105
|
+
# @param width Width of the output image - final image will be exactly this width
|
|
106
|
+
# @param height Height of the output image - final image will be exactly this height
|
|
107
107
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
|
108
108
|
# @param [Hash] opts the optional parameters
|
|
109
109
|
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
|
@@ -132,7 +132,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
132
132
|
# header parameters
|
|
133
133
|
header_params = {}
|
|
134
134
|
# HTTP header 'Accept' (if needed)
|
|
135
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
|
136
136
|
# HTTP header 'Content-Type'
|
|
137
137
|
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
138
138
|
|
|
@@ -15,8 +15,6 @@ require 'date'
|
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
|
16
16
|
# Results of locating faces in an image
|
|
17
17
|
class FaceLocateResponse
|
|
18
|
-
attr_accessor :error_details
|
|
19
|
-
|
|
20
18
|
# True if the operation was successful, false otherwise
|
|
21
19
|
attr_accessor :successful
|
|
22
20
|
|
|
@@ -26,24 +24,27 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
26
24
|
# Number of faces found in the image
|
|
27
25
|
attr_accessor :face_count
|
|
28
26
|
|
|
27
|
+
# Details of any errors that occurred
|
|
28
|
+
attr_accessor :error_details
|
|
29
|
+
|
|
29
30
|
|
|
30
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
32
|
def self.attribute_map
|
|
32
33
|
{
|
|
33
|
-
:'error_details' => :'ErrorDetails',
|
|
34
34
|
:'successful' => :'Successful',
|
|
35
35
|
:'faces' => :'Faces',
|
|
36
|
-
:'face_count' => :'FaceCount'
|
|
36
|
+
:'face_count' => :'FaceCount',
|
|
37
|
+
:'error_details' => :'ErrorDetails'
|
|
37
38
|
}
|
|
38
39
|
end
|
|
39
40
|
|
|
40
41
|
# Attribute type mapping.
|
|
41
42
|
def self.swagger_types
|
|
42
43
|
{
|
|
43
|
-
:'error_details' => :'String',
|
|
44
44
|
:'successful' => :'BOOLEAN',
|
|
45
45
|
:'faces' => :'Array<Face>',
|
|
46
|
-
:'face_count' => :'Integer'
|
|
46
|
+
:'face_count' => :'Integer',
|
|
47
|
+
:'error_details' => :'String'
|
|
47
48
|
}
|
|
48
49
|
end
|
|
49
50
|
|
|
@@ -55,10 +56,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
55
56
|
# convert string to symbol for hash key
|
|
56
57
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
57
58
|
|
|
58
|
-
if attributes.has_key?(:'ErrorDetails')
|
|
59
|
-
self.error_details = attributes[:'ErrorDetails']
|
|
60
|
-
end
|
|
61
|
-
|
|
62
59
|
if attributes.has_key?(:'Successful')
|
|
63
60
|
self.successful = attributes[:'Successful']
|
|
64
61
|
end
|
|
@@ -73,6 +70,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
73
70
|
self.face_count = attributes[:'FaceCount']
|
|
74
71
|
end
|
|
75
72
|
|
|
73
|
+
if attributes.has_key?(:'ErrorDetails')
|
|
74
|
+
self.error_details = attributes[:'ErrorDetails']
|
|
75
|
+
end
|
|
76
|
+
|
|
76
77
|
end
|
|
77
78
|
|
|
78
79
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -93,10 +94,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
93
94
|
def ==(o)
|
|
94
95
|
return true if self.equal?(o)
|
|
95
96
|
self.class == o.class &&
|
|
96
|
-
error_details == o.error_details &&
|
|
97
97
|
successful == o.successful &&
|
|
98
98
|
faces == o.faces &&
|
|
99
|
-
face_count == o.face_count
|
|
99
|
+
face_count == o.face_count &&
|
|
100
|
+
error_details == o.error_details
|
|
100
101
|
end
|
|
101
102
|
|
|
102
103
|
# @see the `==` method
|
|
@@ -108,7 +109,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
108
109
|
# Calculates hash code according to all attributes.
|
|
109
110
|
# @return [Fixnum] Hash code
|
|
110
111
|
def hash
|
|
111
|
-
[
|
|
112
|
+
[successful, faces, face_count, error_details].hash
|
|
112
113
|
end
|
|
113
114
|
|
|
114
115
|
# Builds the object from hash
|