cloudmersive-image-recognition-api-client 1.4.2 → 2.0.1

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 (138) hide show
  1. checksums.yaml +4 -4
  2. metadata +3 -139
  3. data/Gemfile +0 -7
  4. data/README.md +0 -174
  5. data/Rakefile +0 -8
  6. data/cloudmersive-image-recognition-api-client.gemspec +0 -45
  7. data/docs/AgeDetectionResult.md +0 -10
  8. data/docs/ArtisticApi.md +0 -66
  9. data/docs/ColorResult.md +0 -10
  10. data/docs/ConvertApi.md +0 -176
  11. data/docs/DetectedLicensePlate.md +0 -14
  12. data/docs/DetectedObject.md +0 -13
  13. data/docs/DominantColorResult.md +0 -9
  14. data/docs/DrawPolygonInstance.md +0 -11
  15. data/docs/DrawPolygonRequest.md +0 -10
  16. data/docs/DrawRectangleInstance.md +0 -14
  17. data/docs/DrawRectangleRequest.md +0 -10
  18. data/docs/DrawTextInstance.md +0 -15
  19. data/docs/DrawTextRequest.md +0 -10
  20. data/docs/EditApi.md +0 -539
  21. data/docs/Face.md +0 -11
  22. data/docs/FaceApi.md +0 -396
  23. data/docs/FaceCompareResponse.md +0 -11
  24. data/docs/FaceLocateResponse.md +0 -11
  25. data/docs/FaceLocateWithLandmarksResponse.md +0 -11
  26. data/docs/FaceMatch.md +0 -13
  27. data/docs/FacePoint.md +0 -9
  28. data/docs/FaceWithLandmarks.md +0 -20
  29. data/docs/FilterApi.md +0 -478
  30. data/docs/FindSymbolResult.md +0 -13
  31. data/docs/FineTextDetectionResult.md +0 -10
  32. data/docs/FineTextItem.md +0 -18
  33. data/docs/GenderDetectionResult.md +0 -10
  34. data/docs/ImageDescriptionResponse.md +0 -11
  35. data/docs/InfoApi.md +0 -63
  36. data/docs/NsfwApi.md +0 -63
  37. data/docs/NsfwResult.md +0 -10
  38. data/docs/ObjectDetectionResult.md +0 -10
  39. data/docs/PersonWithAge.md +0 -11
  40. data/docs/PersonWithGender.md +0 -10
  41. data/docs/PolygonPoint.md +0 -9
  42. data/docs/RecognitionOutcome.md +0 -9
  43. data/docs/RecognizeApi.md +0 -455
  44. data/docs/ResizeApi.md +0 -130
  45. data/docs/TextDetectionResult.md +0 -10
  46. data/docs/TextItem.md +0 -11
  47. data/docs/VehicleLicensePlateDetectionResult.md +0 -10
  48. data/git_push.sh +0 -55
  49. data/lib/cloudmersive-image-recognition-api-client.rb +0 -80
  50. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +0 -85
  51. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +0 -197
  52. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +0 -597
  53. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +0 -422
  54. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +0 -533
  55. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +0 -79
  56. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +0 -79
  57. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +0 -481
  58. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +0 -159
  59. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +0 -389
  60. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +0 -38
  61. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +0 -209
  62. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +0 -211
  63. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +0 -209
  64. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +0 -249
  65. data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -239
  66. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +0 -201
  67. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +0 -221
  68. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +0 -227
  69. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +0 -249
  70. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +0 -227
  71. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +0 -259
  72. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +0 -227
  73. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +0 -219
  74. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +0 -221
  75. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +0 -220
  76. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +0 -221
  77. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +0 -239
  78. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +0 -199
  79. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +0 -327
  80. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +0 -239
  81. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +0 -211
  82. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +0 -289
  83. data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +0 -211
  84. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +0 -219
  85. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +0 -209
  86. data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -211
  87. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +0 -218
  88. data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -209
  89. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +0 -199
  90. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +0 -199
  91. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +0 -211
  92. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +0 -219
  93. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +0 -211
  94. data/lib/cloudmersive-image-recognition-api-client/version.rb +0 -15
  95. data/spec/api/artistic_api_spec.rb +0 -48
  96. data/spec/api/convert_api_spec.rb +0 -72
  97. data/spec/api/edit_api_spec.rb +0 -155
  98. data/spec/api/face_api_spec.rb +0 -120
  99. data/spec/api/filter_api_spec.rb +0 -141
  100. data/spec/api/info_api_spec.rb +0 -47
  101. data/spec/api/nsfw_api_spec.rb +0 -47
  102. data/spec/api/recognize_api_spec.rb +0 -133
  103. data/spec/api/resize_api_spec.rb +0 -63
  104. data/spec/api_client_spec.rb +0 -226
  105. data/spec/configuration_spec.rb +0 -42
  106. data/spec/models/age_detection_result_spec.rb +0 -54
  107. data/spec/models/color_result_spec.rb +0 -54
  108. data/spec/models/detected_license_plate_spec.rb +0 -78
  109. data/spec/models/detected_object_spec.rb +0 -72
  110. data/spec/models/dominant_color_result_spec.rb +0 -48
  111. data/spec/models/draw_polygon_instance_spec.rb +0 -60
  112. data/spec/models/draw_polygon_request_spec.rb +0 -54
  113. data/spec/models/draw_rectangle_instance_spec.rb +0 -78
  114. data/spec/models/draw_rectangle_request_spec.rb +0 -54
  115. data/spec/models/draw_text_instance_spec.rb +0 -84
  116. data/spec/models/draw_text_request_spec.rb +0 -54
  117. data/spec/models/face_compare_response_spec.rb +0 -60
  118. data/spec/models/face_locate_response_spec.rb +0 -60
  119. data/spec/models/face_locate_with_landmarks_response_spec.rb +0 -60
  120. data/spec/models/face_match_spec.rb +0 -72
  121. data/spec/models/face_point_spec.rb +0 -48
  122. data/spec/models/face_spec.rb +0 -60
  123. data/spec/models/face_with_landmarks_spec.rb +0 -114
  124. data/spec/models/find_symbol_result_spec.rb +0 -72
  125. data/spec/models/fine_text_detection_result_spec.rb +0 -54
  126. data/spec/models/fine_text_item_spec.rb +0 -102
  127. data/spec/models/gender_detection_result_spec.rb +0 -54
  128. data/spec/models/image_description_response_spec.rb +0 -60
  129. data/spec/models/nsfw_result_spec.rb +0 -54
  130. data/spec/models/object_detection_result_spec.rb +0 -54
  131. data/spec/models/person_with_age_spec.rb +0 -60
  132. data/spec/models/person_with_gender_spec.rb +0 -54
  133. data/spec/models/polygon_point_spec.rb +0 -48
  134. data/spec/models/recognition_outcome_spec.rb +0 -48
  135. data/spec/models/text_detection_result_spec.rb +0 -54
  136. data/spec/models/text_item_spec.rb +0 -60
  137. data/spec/models/vehicle_license_plate_detection_result_spec.rb +0 -54
  138. data/spec/spec_helper.rb +0 -111
@@ -1,11 +0,0 @@
1
- # CloudmersiveImageRecognitionApiClient::Face
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **left_x** | **Integer** | X coordinate of the left side of the face | [optional]
7
- **top_y** | **Integer** | Y coordinate of the top side of the face | [optional]
8
- **right_x** | **Integer** | X coordinate of the right side of the face | [optional]
9
- **bottom_y** | **Integer** | Y coordinate of the bottom side of the face | [optional]
10
-
11
-
@@ -1,396 +0,0 @@
1
- # CloudmersiveImageRecognitionApiClient::FaceApi
2
-
3
- All URIs are relative to *https://api.cloudmersive.com*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**face_compare**](FaceApi.md#face_compare) | **POST** /image/face/compare-and-match | Compare and match faces
8
- [**face_crop_first**](FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face (square)
9
- [**face_crop_first_round**](FaceApi.md#face_crop_first_round) | **POST** /image/face/crop/first/round | Crop image to face (round)
10
- [**face_detect_age**](FaceApi.md#face_detect_age) | **POST** /image/face/detect-age | Detect the age of people in an image
11
- [**face_detect_gender**](FaceApi.md#face_detect_gender) | **POST** /image/face/detect-gender | Detect the gender of people in an image
12
- [**face_locate**](FaceApi.md#face_locate) | **POST** /image/face/locate | Find faces in an image
13
- [**face_locate_with_landmarks**](FaceApi.md#face_locate_with_landmarks) | **POST** /image/face/locate-with-landmarks | Find faces and face landmarks (eyes, eye brows, nose, mouth) in an image
14
-
15
-
16
- # **face_compare**
17
- > FaceCompareResponse face_compare(input_image, match_face)
18
-
19
- Compare and match faces
20
-
21
- Find the faces in an input image, and compare against a reference image to determine if there is a match against the face in the reference image. The reference image (second parameter) should contain exactly one face.
22
-
23
- ### Example
24
- ```ruby
25
- # load the gem
26
- require 'cloudmersive-image-recognition-api-client'
27
- # setup authorization
28
- CloudmersiveImageRecognitionApiClient.configure do |config|
29
- # Configure API key authorization: Apikey
30
- config.api_key['Apikey'] = 'YOUR API KEY'
31
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
32
- #config.api_key_prefix['Apikey'] = 'Bearer'
33
- end
34
-
35
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
36
-
37
- input_image = File.new("/path/to/file.txt") # File | Image file to perform the operation on; this image can contain one or more faces which will be matched against face provided in the second image. Common file formats such as PNG, JPEG are supported.
38
-
39
- match_face = File.new("/path/to/file.txt") # File | Image of a single face to compare and match against.
40
-
41
-
42
- begin
43
- #Compare and match faces
44
- result = api_instance.face_compare(input_image, match_face)
45
- p result
46
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
47
- puts "Exception when calling FaceApi->face_compare: #{e}"
48
- end
49
- ```
50
-
51
- ### Parameters
52
-
53
- Name | Type | Description | Notes
54
- ------------- | ------------- | ------------- | -------------
55
- **input_image** | **File**| Image file to perform the operation on; this image can contain one or more faces which will be matched against face provided in the second image. Common file formats such as PNG, JPEG are supported. |
56
- **match_face** | **File**| Image of a single face to compare and match against. |
57
-
58
- ### Return type
59
-
60
- [**FaceCompareResponse**](FaceCompareResponse.md)
61
-
62
- ### Authorization
63
-
64
- [Apikey](../README.md#Apikey)
65
-
66
- ### HTTP request headers
67
-
68
- - **Content-Type**: multipart/form-data
69
- - **Accept**: application/json, text/json, application/xml, text/xml
70
-
71
-
72
-
73
- # **face_crop_first**
74
- > String face_crop_first(image_file)
75
-
76
- Crop image to face (square)
77
-
78
- Crop an image to the face (rectangular crop). If there is more than one face present, choose the first one.
79
-
80
- ### Example
81
- ```ruby
82
- # load the gem
83
- require 'cloudmersive-image-recognition-api-client'
84
- # setup authorization
85
- CloudmersiveImageRecognitionApiClient.configure do |config|
86
- # Configure API key authorization: Apikey
87
- config.api_key['Apikey'] = 'YOUR API KEY'
88
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
89
- #config.api_key_prefix['Apikey'] = 'Bearer'
90
- end
91
-
92
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
93
-
94
- 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.
95
-
96
-
97
- begin
98
- #Crop image to face (square)
99
- result = api_instance.face_crop_first(image_file)
100
- p result
101
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
102
- puts "Exception when calling FaceApi->face_crop_first: #{e}"
103
- end
104
- ```
105
-
106
- ### Parameters
107
-
108
- Name | Type | Description | Notes
109
- ------------- | ------------- | ------------- | -------------
110
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
111
-
112
- ### Return type
113
-
114
- **String**
115
-
116
- ### Authorization
117
-
118
- [Apikey](../README.md#Apikey)
119
-
120
- ### HTTP request headers
121
-
122
- - **Content-Type**: multipart/form-data
123
- - **Accept**: application/octet-stream
124
-
125
-
126
-
127
- # **face_crop_first_round**
128
- > String face_crop_first_round(image_file)
129
-
130
- Crop image to face (round)
131
-
132
- Crop an image to the face (circular/round crop). If there is more than one face present, choose the first one.
133
-
134
- ### Example
135
- ```ruby
136
- # load the gem
137
- require 'cloudmersive-image-recognition-api-client'
138
- # setup authorization
139
- CloudmersiveImageRecognitionApiClient.configure do |config|
140
- # Configure API key authorization: Apikey
141
- config.api_key['Apikey'] = 'YOUR API KEY'
142
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
143
- #config.api_key_prefix['Apikey'] = 'Bearer'
144
- end
145
-
146
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
147
-
148
- 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.
149
-
150
-
151
- begin
152
- #Crop image to face (round)
153
- result = api_instance.face_crop_first_round(image_file)
154
- p result
155
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
156
- puts "Exception when calling FaceApi->face_crop_first_round: #{e}"
157
- end
158
- ```
159
-
160
- ### Parameters
161
-
162
- Name | Type | Description | Notes
163
- ------------- | ------------- | ------------- | -------------
164
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
165
-
166
- ### Return type
167
-
168
- **String**
169
-
170
- ### Authorization
171
-
172
- [Apikey](../README.md#Apikey)
173
-
174
- ### HTTP request headers
175
-
176
- - **Content-Type**: multipart/form-data
177
- - **Accept**: application/octet-stream
178
-
179
-
180
-
181
- # **face_detect_age**
182
- > AgeDetectionResult face_detect_age(image_file)
183
-
184
- Detect the age of people in an image
185
-
186
- 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.
187
-
188
- ### Example
189
- ```ruby
190
- # load the gem
191
- require 'cloudmersive-image-recognition-api-client'
192
- # setup authorization
193
- CloudmersiveImageRecognitionApiClient.configure do |config|
194
- # Configure API key authorization: Apikey
195
- config.api_key['Apikey'] = 'YOUR API KEY'
196
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
- #config.api_key_prefix['Apikey'] = 'Bearer'
198
- end
199
-
200
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
201
-
202
- 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.
203
-
204
-
205
- begin
206
- #Detect the age of people in an image
207
- result = api_instance.face_detect_age(image_file)
208
- p result
209
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
210
- puts "Exception when calling FaceApi->face_detect_age: #{e}"
211
- end
212
- ```
213
-
214
- ### Parameters
215
-
216
- Name | Type | Description | Notes
217
- ------------- | ------------- | ------------- | -------------
218
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
219
-
220
- ### Return type
221
-
222
- [**AgeDetectionResult**](AgeDetectionResult.md)
223
-
224
- ### Authorization
225
-
226
- [Apikey](../README.md#Apikey)
227
-
228
- ### HTTP request headers
229
-
230
- - **Content-Type**: multipart/form-data
231
- - **Accept**: application/json, text/json, application/xml, text/xml
232
-
233
-
234
-
235
- # **face_detect_gender**
236
- > GenderDetectionResult face_detect_gender(image_file)
237
-
238
- Detect the gender of people in an image
239
-
240
- 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.
241
-
242
- ### Example
243
- ```ruby
244
- # load the gem
245
- require 'cloudmersive-image-recognition-api-client'
246
- # setup authorization
247
- CloudmersiveImageRecognitionApiClient.configure do |config|
248
- # Configure API key authorization: Apikey
249
- config.api_key['Apikey'] = 'YOUR API KEY'
250
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
251
- #config.api_key_prefix['Apikey'] = 'Bearer'
252
- end
253
-
254
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
255
-
256
- 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.
257
-
258
-
259
- begin
260
- #Detect the gender of people in an image
261
- result = api_instance.face_detect_gender(image_file)
262
- p result
263
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
264
- puts "Exception when calling FaceApi->face_detect_gender: #{e}"
265
- end
266
- ```
267
-
268
- ### Parameters
269
-
270
- Name | Type | Description | Notes
271
- ------------- | ------------- | ------------- | -------------
272
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
273
-
274
- ### Return type
275
-
276
- [**GenderDetectionResult**](GenderDetectionResult.md)
277
-
278
- ### Authorization
279
-
280
- [Apikey](../README.md#Apikey)
281
-
282
- ### HTTP request headers
283
-
284
- - **Content-Type**: multipart/form-data
285
- - **Accept**: application/json, text/json, application/xml, text/xml
286
-
287
-
288
-
289
- # **face_locate**
290
- > FaceLocateResponse face_locate(image_file)
291
-
292
- Find faces in an image
293
-
294
- Locate the positions of all faces in an image
295
-
296
- ### Example
297
- ```ruby
298
- # load the gem
299
- require 'cloudmersive-image-recognition-api-client'
300
- # setup authorization
301
- CloudmersiveImageRecognitionApiClient.configure do |config|
302
- # Configure API key authorization: Apikey
303
- config.api_key['Apikey'] = 'YOUR API KEY'
304
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
305
- #config.api_key_prefix['Apikey'] = 'Bearer'
306
- end
307
-
308
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
309
-
310
- 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.
311
-
312
-
313
- begin
314
- #Find faces in an image
315
- result = api_instance.face_locate(image_file)
316
- p result
317
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
318
- puts "Exception when calling FaceApi->face_locate: #{e}"
319
- end
320
- ```
321
-
322
- ### Parameters
323
-
324
- Name | Type | Description | Notes
325
- ------------- | ------------- | ------------- | -------------
326
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
327
-
328
- ### Return type
329
-
330
- [**FaceLocateResponse**](FaceLocateResponse.md)
331
-
332
- ### Authorization
333
-
334
- [Apikey](../README.md#Apikey)
335
-
336
- ### HTTP request headers
337
-
338
- - **Content-Type**: multipart/form-data
339
- - **Accept**: application/json, text/json, application/xml, text/xml
340
-
341
-
342
-
343
- # **face_locate_with_landmarks**
344
- > FaceLocateWithLandmarksResponse face_locate_with_landmarks(image_file)
345
-
346
- Find faces and face landmarks (eyes, eye brows, nose, mouth) in an image
347
-
348
- Locate the positions of all faces in an image, along with the eyes, eye brows, nose and mouth components of each
349
-
350
- ### Example
351
- ```ruby
352
- # load the gem
353
- require 'cloudmersive-image-recognition-api-client'
354
- # setup authorization
355
- CloudmersiveImageRecognitionApiClient.configure do |config|
356
- # Configure API key authorization: Apikey
357
- config.api_key['Apikey'] = 'YOUR API KEY'
358
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
359
- #config.api_key_prefix['Apikey'] = 'Bearer'
360
- end
361
-
362
- api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
363
-
364
- 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.
365
-
366
-
367
- begin
368
- #Find faces and face landmarks (eyes, eye brows, nose, mouth) in an image
369
- result = api_instance.face_locate_with_landmarks(image_file)
370
- p result
371
- rescue CloudmersiveImageRecognitionApiClient::ApiError => e
372
- puts "Exception when calling FaceApi->face_locate_with_landmarks: #{e}"
373
- end
374
- ```
375
-
376
- ### Parameters
377
-
378
- Name | Type | Description | Notes
379
- ------------- | ------------- | ------------- | -------------
380
- **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
381
-
382
- ### Return type
383
-
384
- [**FaceLocateWithLandmarksResponse**](FaceLocateWithLandmarksResponse.md)
385
-
386
- ### Authorization
387
-
388
- [Apikey](../README.md#Apikey)
389
-
390
- ### HTTP request headers
391
-
392
- - **Content-Type**: multipart/form-data
393
- - **Accept**: application/json, text/json, application/xml, text/xml
394
-
395
-
396
-
@@ -1,11 +0,0 @@
1
- # CloudmersiveImageRecognitionApiClient::FaceCompareResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
- **faces** | [**Array<FaceMatch>**](FaceMatch.md) | Array of faces found in the input image | [optional]
8
- **face_count** | **Integer** | Number of faces found in the image | [optional]
9
- **error_details** | **String** | Details of any errors that occurred | [optional]
10
-
11
-
@@ -1,11 +0,0 @@
1
- # CloudmersiveImageRecognitionApiClient::FaceLocateResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **error_details** | **String** | | [optional]
7
- **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
8
- **faces** | [**Array<Face>**](Face.md) | Array of faces found in the image | [optional]
9
- **face_count** | **Integer** | Number of faces found in the image | [optional]
10
-
11
-
@@ -1,11 +0,0 @@
1
- # CloudmersiveImageRecognitionApiClient::FaceLocateWithLandmarksResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
- **faces** | [**Array<FaceWithLandmarks>**](FaceWithLandmarks.md) | Array of faces found in the image | [optional]
8
- **face_count** | **Integer** | Number of faces found in the image | [optional]
9
- **error_details** | **String** | Details of any errors that occurred | [optional]
10
-
11
-
@@ -1,13 +0,0 @@
1
- # CloudmersiveImageRecognitionApiClient::FaceMatch
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **left_x** | **Integer** | X coordinate of the left side of the face | [optional]
7
- **top_y** | **Integer** | Y coordinate of the top side of the face | [optional]
8
- **right_x** | **Integer** | X coordinate of the right side of the face | [optional]
9
- **bottom_y** | **Integer** | Y coordinate of the bottom side of the face | [optional]
10
- **high_confidence_match** | **BOOLEAN** | True if there is a high confidence match, false otherwise | [optional]
11
- **match_score** | **Float** | Match score from 0.0 to 1.0 with higher scores indicating a greater match; scores above 0.7 indicate a match | [optional]
12
-
13
-