cloudmersive-image-recognition-api-client 1.4.6 → 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.
- checksums.yaml +4 -4
- metadata +3 -145
- data/Gemfile +0 -7
- data/README.md +0 -184
- data/Rakefile +0 -8
- data/cloudmersive-image-recognition-api-client.gemspec +0 -45
- data/docs/AgeDetectionResult.md +0 -10
- data/docs/ArtisticApi.md +0 -66
- data/docs/ColorResult.md +0 -10
- data/docs/ConvertApi.md +0 -396
- data/docs/DetectedLicensePlate.md +0 -14
- data/docs/DetectedObject.md +0 -13
- data/docs/DominantColorResult.md +0 -9
- data/docs/DrawPolygonInstance.md +0 -11
- data/docs/DrawPolygonRequest.md +0 -10
- data/docs/DrawRectangleInstance.md +0 -14
- data/docs/DrawRectangleRequest.md +0 -10
- data/docs/DrawTextInstance.md +0 -15
- data/docs/DrawTextRequest.md +0 -10
- data/docs/EditApi.md +0 -704
- data/docs/Face.md +0 -11
- data/docs/FaceApi.md +0 -396
- data/docs/FaceCompareResponse.md +0 -11
- data/docs/FaceLocateResponse.md +0 -11
- data/docs/FaceLocateWithLandmarksResponse.md +0 -11
- data/docs/FaceMatch.md +0 -13
- data/docs/FacePoint.md +0 -9
- data/docs/FaceWithLandmarks.md +0 -20
- data/docs/FilterApi.md +0 -478
- data/docs/FindSymbolResult.md +0 -13
- data/docs/FineTextDetectionResult.md +0 -10
- data/docs/FineTextItem.md +0 -18
- data/docs/GenderDetectionResult.md +0 -10
- data/docs/ImageDescriptionResponse.md +0 -11
- data/docs/ImageMetadata.md +0 -17
- data/docs/ImageMetadataExifValue.md +0 -10
- data/docs/InfoApi.md +0 -118
- data/docs/NsfwApi.md +0 -63
- data/docs/NsfwResult.md +0 -10
- data/docs/ObjectDetectionResult.md +0 -10
- data/docs/PersonWithAge.md +0 -11
- data/docs/PersonWithGender.md +0 -10
- data/docs/PolygonPoint.md +0 -9
- data/docs/RecognitionOutcome.md +0 -9
- data/docs/RecognizeApi.md +0 -455
- data/docs/ResizeApi.md +0 -130
- data/docs/TextDetectionResult.md +0 -10
- data/docs/TextItem.md +0 -11
- data/docs/VehicleLicensePlateDetectionResult.md +0 -10
- data/git_push.sh +0 -55
- data/lib/cloudmersive-image-recognition-api-client.rb +0 -82
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +0 -85
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +0 -421
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +0 -765
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +0 -422
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +0 -533
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +0 -135
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +0 -79
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +0 -481
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +0 -159
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +0 -201
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +0 -259
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +0 -327
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +0 -289
- data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +0 -281
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +0 -218
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/version.rb +0 -15
- data/spec/api/artistic_api_spec.rb +0 -48
- data/spec/api/convert_api_spec.rb +0 -120
- data/spec/api/edit_api_spec.rb +0 -191
- data/spec/api/face_api_spec.rb +0 -120
- data/spec/api/filter_api_spec.rb +0 -141
- data/spec/api/info_api_spec.rb +0 -59
- data/spec/api/nsfw_api_spec.rb +0 -47
- data/spec/api/recognize_api_spec.rb +0 -133
- data/spec/api/resize_api_spec.rb +0 -63
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/age_detection_result_spec.rb +0 -54
- data/spec/models/color_result_spec.rb +0 -54
- data/spec/models/detected_license_plate_spec.rb +0 -78
- data/spec/models/detected_object_spec.rb +0 -72
- data/spec/models/dominant_color_result_spec.rb +0 -48
- data/spec/models/draw_polygon_instance_spec.rb +0 -60
- data/spec/models/draw_polygon_request_spec.rb +0 -54
- data/spec/models/draw_rectangle_instance_spec.rb +0 -78
- data/spec/models/draw_rectangle_request_spec.rb +0 -54
- data/spec/models/draw_text_instance_spec.rb +0 -84
- data/spec/models/draw_text_request_spec.rb +0 -54
- data/spec/models/face_compare_response_spec.rb +0 -60
- data/spec/models/face_locate_response_spec.rb +0 -60
- data/spec/models/face_locate_with_landmarks_response_spec.rb +0 -60
- data/spec/models/face_match_spec.rb +0 -72
- data/spec/models/face_point_spec.rb +0 -48
- data/spec/models/face_spec.rb +0 -60
- data/spec/models/face_with_landmarks_spec.rb +0 -114
- data/spec/models/find_symbol_result_spec.rb +0 -72
- data/spec/models/fine_text_detection_result_spec.rb +0 -54
- data/spec/models/fine_text_item_spec.rb +0 -102
- data/spec/models/gender_detection_result_spec.rb +0 -54
- data/spec/models/image_description_response_spec.rb +0 -60
- data/spec/models/image_metadata_exif_value_spec.rb +0 -54
- data/spec/models/image_metadata_spec.rb +0 -96
- data/spec/models/nsfw_result_spec.rb +0 -54
- data/spec/models/object_detection_result_spec.rb +0 -54
- data/spec/models/person_with_age_spec.rb +0 -60
- data/spec/models/person_with_gender_spec.rb +0 -54
- data/spec/models/polygon_point_spec.rb +0 -48
- data/spec/models/recognition_outcome_spec.rb +0 -48
- data/spec/models/text_detection_result_spec.rb +0 -54
- data/spec/models/text_item_spec.rb +0 -60
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +0 -54
- data/spec/spec_helper.rb +0 -111
data/docs/FacePoint.md
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::FacePoint
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**x** | **Integer** | X location, where 0 is the left-most pixel | [optional]
|
7
|
-
**y** | **Integer** | Y location, where 0 is the top-most pixel | [optional]
|
8
|
-
|
9
|
-
|
data/docs/FaceWithLandmarks.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::FaceWithLandmarks
|
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
|
-
**left_eyebrow** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the left eyebrow (the eyebrow cloesest to the left side of the picture) | [optional]
|
11
|
-
**right_eyebrow** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the right eyebrow (the eyebrow cloesest to the right side of the picture) | [optional]
|
12
|
-
**left_eye** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the left eye (the eye closest to the left side of the picture) | [optional]
|
13
|
-
**right_eye** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the right eye (the eye closest to the right side of the picture) | [optional]
|
14
|
-
**bottom_and_sides_of_face** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the bottom and sides of the face (cheeks and chin) | [optional]
|
15
|
-
**nose_bridge** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the nose bridge (the vertical portion of the nose) | [optional]
|
16
|
-
**nose_bottom** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the bottom (nostrils) of the nose | [optional]
|
17
|
-
**lips_inner_outline** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the inner outline of the lips | [optional]
|
18
|
-
**lips_outer_outline** | [**Array<FacePoint>**](FacePoint.md) | Point locations of the outer outline of the lips | [optional]
|
19
|
-
|
20
|
-
|
data/docs/FilterApi.md
DELETED
@@ -1,478 +0,0 @@
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::FilterApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.cloudmersive.com*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**filter_black_and_white**](FilterApi.md#filter_black_and_white) | **POST** /image/filter/black-and-white | Convert image to black-and-white grayscale
|
8
|
-
[**filter_despeckle**](FilterApi.md#filter_despeckle) | **POST** /image/filter/despeckle | Despeckle to remove point noise from the image
|
9
|
-
[**filter_edge_detect**](FilterApi.md#filter_edge_detect) | **POST** /image/filter/edge-detect/{radius} | Detect and highlight edges in an image
|
10
|
-
[**filter_emboss**](FilterApi.md#filter_emboss) | **POST** /image/filter/emboss/{radius}/{sigma} | Emboss an image
|
11
|
-
[**filter_gaussian_blur**](FilterApi.md#filter_gaussian_blur) | **POST** /image/filter/blur/guassian/{radius}/{sigma} | Perform a guassian blur on the input image
|
12
|
-
[**filter_motion_blur**](FilterApi.md#filter_motion_blur) | **POST** /image/filter/blur/motion/{radius}/{sigma}/{angle} | Perform a motion blur on the input image
|
13
|
-
[**filter_posterize**](FilterApi.md#filter_posterize) | **POST** /image/filter/posterize | Posterize the image by reducing distinct colors
|
14
|
-
[**filter_swirl**](FilterApi.md#filter_swirl) | **POST** /image/filter/swirl | Swirl distort the image
|
15
|
-
|
16
|
-
|
17
|
-
# **filter_black_and_white**
|
18
|
-
> String filter_black_and_white(image_file)
|
19
|
-
|
20
|
-
Convert image to black-and-white grayscale
|
21
|
-
|
22
|
-
Remove color from the image by converting to a grayscale, black-and-white image
|
23
|
-
|
24
|
-
### Example
|
25
|
-
```ruby
|
26
|
-
# load the gem
|
27
|
-
require 'cloudmersive-image-recognition-api-client'
|
28
|
-
# setup authorization
|
29
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
30
|
-
# Configure API key authorization: Apikey
|
31
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
32
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
33
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
34
|
-
end
|
35
|
-
|
36
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
37
|
-
|
38
|
-
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.
|
39
|
-
|
40
|
-
|
41
|
-
begin
|
42
|
-
#Convert image to black-and-white grayscale
|
43
|
-
result = api_instance.filter_black_and_white(image_file)
|
44
|
-
p result
|
45
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
46
|
-
puts "Exception when calling FilterApi->filter_black_and_white: #{e}"
|
47
|
-
end
|
48
|
-
```
|
49
|
-
|
50
|
-
### Parameters
|
51
|
-
|
52
|
-
Name | Type | Description | Notes
|
53
|
-
------------- | ------------- | ------------- | -------------
|
54
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
55
|
-
|
56
|
-
### Return type
|
57
|
-
|
58
|
-
**String**
|
59
|
-
|
60
|
-
### Authorization
|
61
|
-
|
62
|
-
[Apikey](../README.md#Apikey)
|
63
|
-
|
64
|
-
### HTTP request headers
|
65
|
-
|
66
|
-
- **Content-Type**: multipart/form-data
|
67
|
-
- **Accept**: application/octet-stream
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
# **filter_despeckle**
|
72
|
-
> String filter_despeckle(image_file)
|
73
|
-
|
74
|
-
Despeckle to remove point noise from the image
|
75
|
-
|
76
|
-
Remove point noise / despeckle the input image
|
77
|
-
|
78
|
-
### Example
|
79
|
-
```ruby
|
80
|
-
# load the gem
|
81
|
-
require 'cloudmersive-image-recognition-api-client'
|
82
|
-
# setup authorization
|
83
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
84
|
-
# Configure API key authorization: Apikey
|
85
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
86
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
87
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
88
|
-
end
|
89
|
-
|
90
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
91
|
-
|
92
|
-
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.
|
93
|
-
|
94
|
-
|
95
|
-
begin
|
96
|
-
#Despeckle to remove point noise from the image
|
97
|
-
result = api_instance.filter_despeckle(image_file)
|
98
|
-
p result
|
99
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
100
|
-
puts "Exception when calling FilterApi->filter_despeckle: #{e}"
|
101
|
-
end
|
102
|
-
```
|
103
|
-
|
104
|
-
### Parameters
|
105
|
-
|
106
|
-
Name | Type | Description | Notes
|
107
|
-
------------- | ------------- | ------------- | -------------
|
108
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
109
|
-
|
110
|
-
### Return type
|
111
|
-
|
112
|
-
**String**
|
113
|
-
|
114
|
-
### Authorization
|
115
|
-
|
116
|
-
[Apikey](../README.md#Apikey)
|
117
|
-
|
118
|
-
### HTTP request headers
|
119
|
-
|
120
|
-
- **Content-Type**: multipart/form-data
|
121
|
-
- **Accept**: application/octet-stream
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
# **filter_edge_detect**
|
126
|
-
> String filter_edge_detect(radius, image_file)
|
127
|
-
|
128
|
-
Detect and highlight edges in an image
|
129
|
-
|
130
|
-
Perform an edge detection operation on the input image
|
131
|
-
|
132
|
-
### Example
|
133
|
-
```ruby
|
134
|
-
# load the gem
|
135
|
-
require 'cloudmersive-image-recognition-api-client'
|
136
|
-
# setup authorization
|
137
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
138
|
-
# Configure API key authorization: Apikey
|
139
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
140
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
141
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
142
|
-
end
|
143
|
-
|
144
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
145
|
-
|
146
|
-
radius = 56 # Integer | Radius in pixels of the edge detection operation; a larger radius will produce a greater effect
|
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
|
-
#Detect and highlight edges in an image
|
153
|
-
result = api_instance.filter_edge_detect(radius, image_file)
|
154
|
-
p result
|
155
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
156
|
-
puts "Exception when calling FilterApi->filter_edge_detect: #{e}"
|
157
|
-
end
|
158
|
-
```
|
159
|
-
|
160
|
-
### Parameters
|
161
|
-
|
162
|
-
Name | Type | Description | Notes
|
163
|
-
------------- | ------------- | ------------- | -------------
|
164
|
-
**radius** | **Integer**| Radius in pixels of the edge detection operation; a larger radius will produce a greater effect |
|
165
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
166
|
-
|
167
|
-
### Return type
|
168
|
-
|
169
|
-
**String**
|
170
|
-
|
171
|
-
### Authorization
|
172
|
-
|
173
|
-
[Apikey](../README.md#Apikey)
|
174
|
-
|
175
|
-
### HTTP request headers
|
176
|
-
|
177
|
-
- **Content-Type**: multipart/form-data
|
178
|
-
- **Accept**: application/octet-stream
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
# **filter_emboss**
|
183
|
-
> String filter_emboss(radius, sigma, image_file)
|
184
|
-
|
185
|
-
Emboss an image
|
186
|
-
|
187
|
-
Perform an emboss operation on the input image
|
188
|
-
|
189
|
-
### Example
|
190
|
-
```ruby
|
191
|
-
# load the gem
|
192
|
-
require 'cloudmersive-image-recognition-api-client'
|
193
|
-
# setup authorization
|
194
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
195
|
-
# Configure API key authorization: Apikey
|
196
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
197
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
198
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
199
|
-
end
|
200
|
-
|
201
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
202
|
-
|
203
|
-
radius = 56 # Integer | Radius in pixels of the emboss operation; a larger radius will produce a greater effect
|
204
|
-
|
205
|
-
sigma = 56 # Integer | Sigma, or variance, of the emboss operation
|
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
|
-
#Emboss an image
|
212
|
-
result = api_instance.filter_emboss(radius, sigma, image_file)
|
213
|
-
p result
|
214
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
215
|
-
puts "Exception when calling FilterApi->filter_emboss: #{e}"
|
216
|
-
end
|
217
|
-
```
|
218
|
-
|
219
|
-
### Parameters
|
220
|
-
|
221
|
-
Name | Type | Description | Notes
|
222
|
-
------------- | ------------- | ------------- | -------------
|
223
|
-
**radius** | **Integer**| Radius in pixels of the emboss operation; a larger radius will produce a greater effect |
|
224
|
-
**sigma** | **Integer**| Sigma, or variance, of the emboss operation |
|
225
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
226
|
-
|
227
|
-
### Return type
|
228
|
-
|
229
|
-
**String**
|
230
|
-
|
231
|
-
### Authorization
|
232
|
-
|
233
|
-
[Apikey](../README.md#Apikey)
|
234
|
-
|
235
|
-
### HTTP request headers
|
236
|
-
|
237
|
-
- **Content-Type**: multipart/form-data
|
238
|
-
- **Accept**: application/octet-stream
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
# **filter_gaussian_blur**
|
243
|
-
> String filter_gaussian_blur(radius, sigma, image_file)
|
244
|
-
|
245
|
-
Perform a guassian blur on the input image
|
246
|
-
|
247
|
-
Perform a gaussian blur on the input image
|
248
|
-
|
249
|
-
### Example
|
250
|
-
```ruby
|
251
|
-
# load the gem
|
252
|
-
require 'cloudmersive-image-recognition-api-client'
|
253
|
-
# setup authorization
|
254
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
255
|
-
# Configure API key authorization: Apikey
|
256
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
257
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
258
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
259
|
-
end
|
260
|
-
|
261
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
262
|
-
|
263
|
-
radius = 56 # Integer | Radius in pixels of the blur operation; a larger radius will produce a greater blur effect
|
264
|
-
|
265
|
-
sigma = 56 # Integer | Sigma, or variance, of the gaussian blur operation
|
266
|
-
|
267
|
-
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.
|
268
|
-
|
269
|
-
|
270
|
-
begin
|
271
|
-
#Perform a guassian blur on the input image
|
272
|
-
result = api_instance.filter_gaussian_blur(radius, sigma, image_file)
|
273
|
-
p result
|
274
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
275
|
-
puts "Exception when calling FilterApi->filter_gaussian_blur: #{e}"
|
276
|
-
end
|
277
|
-
```
|
278
|
-
|
279
|
-
### Parameters
|
280
|
-
|
281
|
-
Name | Type | Description | Notes
|
282
|
-
------------- | ------------- | ------------- | -------------
|
283
|
-
**radius** | **Integer**| Radius in pixels of the blur operation; a larger radius will produce a greater blur effect |
|
284
|
-
**sigma** | **Integer**| Sigma, or variance, of the gaussian blur operation |
|
285
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
286
|
-
|
287
|
-
### Return type
|
288
|
-
|
289
|
-
**String**
|
290
|
-
|
291
|
-
### Authorization
|
292
|
-
|
293
|
-
[Apikey](../README.md#Apikey)
|
294
|
-
|
295
|
-
### HTTP request headers
|
296
|
-
|
297
|
-
- **Content-Type**: multipart/form-data
|
298
|
-
- **Accept**: application/octet-stream
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
# **filter_motion_blur**
|
303
|
-
> String filter_motion_blur(radius, sigma, angle, image_file)
|
304
|
-
|
305
|
-
Perform a motion blur on the input image
|
306
|
-
|
307
|
-
Perform a motion blur on the input image at a specific angle
|
308
|
-
|
309
|
-
### Example
|
310
|
-
```ruby
|
311
|
-
# load the gem
|
312
|
-
require 'cloudmersive-image-recognition-api-client'
|
313
|
-
# setup authorization
|
314
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
315
|
-
# Configure API key authorization: Apikey
|
316
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
317
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
318
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
319
|
-
end
|
320
|
-
|
321
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
322
|
-
|
323
|
-
radius = 56 # Integer | Radius in pixels of the blur operation; a larger radius will produce a greater blur effect
|
324
|
-
|
325
|
-
sigma = 56 # Integer | Sigma, or variance, of the motion blur operation
|
326
|
-
|
327
|
-
angle = 56 # Integer | Angle of the motion blur in degrees
|
328
|
-
|
329
|
-
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.
|
330
|
-
|
331
|
-
|
332
|
-
begin
|
333
|
-
#Perform a motion blur on the input image
|
334
|
-
result = api_instance.filter_motion_blur(radius, sigma, angle, image_file)
|
335
|
-
p result
|
336
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
337
|
-
puts "Exception when calling FilterApi->filter_motion_blur: #{e}"
|
338
|
-
end
|
339
|
-
```
|
340
|
-
|
341
|
-
### Parameters
|
342
|
-
|
343
|
-
Name | Type | Description | Notes
|
344
|
-
------------- | ------------- | ------------- | -------------
|
345
|
-
**radius** | **Integer**| Radius in pixels of the blur operation; a larger radius will produce a greater blur effect |
|
346
|
-
**sigma** | **Integer**| Sigma, or variance, of the motion blur operation |
|
347
|
-
**angle** | **Integer**| Angle of the motion blur in degrees |
|
348
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
349
|
-
|
350
|
-
### Return type
|
351
|
-
|
352
|
-
**String**
|
353
|
-
|
354
|
-
### Authorization
|
355
|
-
|
356
|
-
[Apikey](../README.md#Apikey)
|
357
|
-
|
358
|
-
### HTTP request headers
|
359
|
-
|
360
|
-
- **Content-Type**: multipart/form-data
|
361
|
-
- **Accept**: application/octet-stream
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
# **filter_posterize**
|
366
|
-
> String filter_posterize(levels, image_file)
|
367
|
-
|
368
|
-
Posterize the image by reducing distinct colors
|
369
|
-
|
370
|
-
Reduce the unique number of colors in the image to the specified level
|
371
|
-
|
372
|
-
### Example
|
373
|
-
```ruby
|
374
|
-
# load the gem
|
375
|
-
require 'cloudmersive-image-recognition-api-client'
|
376
|
-
# setup authorization
|
377
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
378
|
-
# Configure API key authorization: Apikey
|
379
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
380
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
381
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
382
|
-
end
|
383
|
-
|
384
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
385
|
-
|
386
|
-
levels = 56 # Integer | Number of unique colors to retain in the output image
|
387
|
-
|
388
|
-
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.
|
389
|
-
|
390
|
-
|
391
|
-
begin
|
392
|
-
#Posterize the image by reducing distinct colors
|
393
|
-
result = api_instance.filter_posterize(levels, image_file)
|
394
|
-
p result
|
395
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
396
|
-
puts "Exception when calling FilterApi->filter_posterize: #{e}"
|
397
|
-
end
|
398
|
-
```
|
399
|
-
|
400
|
-
### Parameters
|
401
|
-
|
402
|
-
Name | Type | Description | Notes
|
403
|
-
------------- | ------------- | ------------- | -------------
|
404
|
-
**levels** | **Integer**| Number of unique colors to retain in the output image |
|
405
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
406
|
-
|
407
|
-
### Return type
|
408
|
-
|
409
|
-
**String**
|
410
|
-
|
411
|
-
### Authorization
|
412
|
-
|
413
|
-
[Apikey](../README.md#Apikey)
|
414
|
-
|
415
|
-
### HTTP request headers
|
416
|
-
|
417
|
-
- **Content-Type**: multipart/form-data
|
418
|
-
- **Accept**: application/octet-stream
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
# **filter_swirl**
|
423
|
-
> String filter_swirl(degrees, image_file)
|
424
|
-
|
425
|
-
Swirl distort the image
|
426
|
-
|
427
|
-
Swirl distort the image by the specified number of degrees
|
428
|
-
|
429
|
-
### Example
|
430
|
-
```ruby
|
431
|
-
# load the gem
|
432
|
-
require 'cloudmersive-image-recognition-api-client'
|
433
|
-
# setup authorization
|
434
|
-
CloudmersiveImageRecognitionApiClient.configure do |config|
|
435
|
-
# Configure API key authorization: Apikey
|
436
|
-
config.api_key['Apikey'] = 'YOUR API KEY'
|
437
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
438
|
-
#config.api_key_prefix['Apikey'] = 'Bearer'
|
439
|
-
end
|
440
|
-
|
441
|
-
api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
442
|
-
|
443
|
-
degrees = 56 # Integer | Degrees of swirl
|
444
|
-
|
445
|
-
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.
|
446
|
-
|
447
|
-
|
448
|
-
begin
|
449
|
-
#Swirl distort the image
|
450
|
-
result = api_instance.filter_swirl(degrees, image_file)
|
451
|
-
p result
|
452
|
-
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
|
453
|
-
puts "Exception when calling FilterApi->filter_swirl: #{e}"
|
454
|
-
end
|
455
|
-
```
|
456
|
-
|
457
|
-
### Parameters
|
458
|
-
|
459
|
-
Name | Type | Description | Notes
|
460
|
-
------------- | ------------- | ------------- | -------------
|
461
|
-
**degrees** | **Integer**| Degrees of swirl |
|
462
|
-
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
463
|
-
|
464
|
-
### Return type
|
465
|
-
|
466
|
-
**String**
|
467
|
-
|
468
|
-
### Authorization
|
469
|
-
|
470
|
-
[Apikey](../README.md#Apikey)
|
471
|
-
|
472
|
-
### HTTP request headers
|
473
|
-
|
474
|
-
- **Content-Type**: multipart/form-data
|
475
|
-
- **Accept**: application/octet-stream
|
476
|
-
|
477
|
-
|
478
|
-
|