cloudmersive-image-recognition-api-client 1.4.0 → 1.4.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '09e66581d0716f5a2d0f5a57640342a49b0a00aa5ba64a3c010e4818562a80d9'
|
4
|
+
data.tar.gz: 2e394527ba03d8210a54c16915e4746f984789b122b004373773091cbb33ccaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf8acbc1f58132548c05597322f2f67717c08e0d044f9f8a24048baaf2982ad025356bb270fc2ef495b6c60ecad1ff683ba894af93d29b78e4cd4543e1d16d7d
|
7
|
+
data.tar.gz: e568b1634ffc43f802d15f06f42b4966d119280d1fa4cef1d0245428fef68267db826e811fd755ce45f92db84bb2549d7a0eeea7b220b97f6fb4947244821edb
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Image Recognition and Processing APIs let you use Machine Learning to recognize
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: v1
|
10
|
-
- Package version: 1.4.
|
10
|
+
- Package version: 1.4.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build cloudmersive-image-recognition-api-client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./cloudmersive-image-recognition-api-client-1.4.
|
26
|
+
gem install ./cloudmersive-image-recognition-api-client-1.4.1.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.1.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'cloudmersive-image-recognition-api-client', '~> 1.4.
|
34
|
+
gem 'cloudmersive-image-recognition-api-client', '~> 1.4.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -93,7 +93,7 @@ Class | Method | HTTP request | Description
|
|
93
93
|
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_polygon**](docs/EditApi.md#edit_draw_polygon) | **POST** /image/edit/draw/polygon | Draw a polygon onto an image
|
94
94
|
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_rectangle**](docs/EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
|
95
95
|
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_text**](docs/EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
|
96
|
-
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_drop_shadow**](docs/EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{
|
96
|
+
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_drop_shadow**](docs/EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image
|
97
97
|
*CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_rotate**](docs/EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
|
98
98
|
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_compare**](docs/FaceApi.md#face_compare) | **POST** /image/face/compare-and-match | Compare and match faces
|
99
99
|
*CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first**](docs/FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face (square)
|
data/docs/EditApi.md
CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
|
|
11
11
|
[**edit_draw_polygon**](EditApi.md#edit_draw_polygon) | **POST** /image/edit/draw/polygon | Draw a polygon onto an image
|
12
12
|
[**edit_draw_rectangle**](EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
|
13
13
|
[**edit_draw_text**](EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
|
14
|
-
[**edit_drop_shadow**](EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{
|
14
|
+
[**edit_drop_shadow**](EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image
|
15
15
|
[**edit_rotate**](EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
|
16
16
|
|
17
17
|
|
@@ -435,9 +435,9 @@ end
|
|
435
435
|
|
436
436
|
api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
437
437
|
|
438
|
-
x = 56 # Integer |
|
438
|
+
x = 56 # Integer |
|
439
439
|
|
440
|
-
y = 56 # Integer |
|
440
|
+
y = 56 # Integer |
|
441
441
|
|
442
442
|
sigma = 56 # Integer | Sigma (blur distance) of the drop shadow
|
443
443
|
|
@@ -459,8 +459,8 @@ end
|
|
459
459
|
|
460
460
|
Name | Type | Description | Notes
|
461
461
|
------------- | ------------- | ------------- | -------------
|
462
|
-
**x** | **Integer**|
|
463
|
-
**y** | **Integer**|
|
462
|
+
**x** | **Integer**| |
|
463
|
+
**y** | **Integer**| |
|
464
464
|
**sigma** | **Integer**| Sigma (blur distance) of the drop shadow |
|
465
465
|
**opacity** | **Integer**| Opacity of the drop shadow; 0 is 0% and 100 is 100% |
|
466
466
|
**image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
|
@@ -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
|
458
|
+
# @param y
|
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
|
472
|
+
# @param y
|
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.
|
@@ -500,7 +500,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
500
500
|
fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_drop_shadow"
|
501
501
|
end
|
502
502
|
# resource path
|
503
|
-
local_var_path = "/image/edit/drop-shadow/{
|
503
|
+
local_var_path = "/image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity}".sub('{' + 'X' + '}', x.to_s).sub('{' + 'Y' + '}', y.to_s).sub('{' + 'sigma' + '}', sigma.to_s).sub('{' + 'opacity' + '}', opacity.to_s)
|
504
504
|
|
505
505
|
# query parameters
|
506
506
|
query_params = {}
|
data/spec/api/edit_api_spec.rb
CHANGED
@@ -126,8 +126,8 @@ describe 'EditApi' do
|
|
126
126
|
# unit tests for edit_drop_shadow
|
127
127
|
# Add a customizeable drop shadow to an image
|
128
128
|
# Add a customizeable drop shadow to the image
|
129
|
-
# @param x
|
130
|
-
# @param y
|
129
|
+
# @param x
|
130
|
+
# @param y
|
131
131
|
# @param sigma Sigma (blur distance) of the drop shadow
|
132
132
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
133
133
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|