cloudmersive-image-recognition-api-client 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e2095ea8f44a903e3b903da62341d7a9fca5755dfaac0a39894bab482c820cb
4
- data.tar.gz: d6e3716427694cef84dba7a54ce2b57f224703aa442edec9018e82c26a421a06
3
+ metadata.gz: e90eb06de12d1160d9bb53db9b5d59e9b514f142d9388cec3d1f6913fef758e7
4
+ data.tar.gz: 278c816110f015337d10da734895b621c1115f9da29839ffabcbdc1133ae36d7
5
5
  SHA512:
6
- metadata.gz: 44168c0a0609e71b2a6df046eaa4ccd306a8a44fa77a2502c57b9f3f1122a096cb405ca803624b79b97fffafac093c03f8231d49b4103bb69bef48c6ba4d066b
7
- data.tar.gz: d26836b1940dca6be62c7ab93d46e26d376f566844a9554315b36f9f68dab4afad563fef5d91787aa5ea4c19e99eeab1ae82c926ba94bdb52e8fb12621480d87
6
+ metadata.gz: 3bd1c649c6d4de21512bc8c99a31b4e284344f1713b32695a7ed43b151cede3d60e16b4446c8f899ed105a96ff16c8a61bc357c3cf57f7e8f40659f622240d8f
7
+ data.tar.gz: 03753ae66a22bc85734176445eda80e68a823f2631a53aee673ac16ec7f740f4843f87b73ab3b8d0f2a25649730e1ee65b2da1fad71ae44b1e3fbeeef5a7325f
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.3.3
10
+ - Package version: 1.3.4
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.3.3.gem
26
+ gem install ./cloudmersive-image-recognition-api-client-1.3.4.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.3.3.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.3.4.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.3.3'
34
+ gem 'cloudmersive-image-recognition-api-client', '~> 1.3.4'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
87
87
  ------------ | ------------- | ------------- | -------------
88
88
  *CloudmersiveImageRecognitionApiClient::ArtisticApi* | [**artistic_painting**](docs/ArtisticApi.md#artistic_painting) | **POST** /image/artistic/painting/{style} | Transform an image into an artistic painting automatically
89
89
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_basic**](docs/EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
90
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_contrast_adaptive**](docs/EditApi.md#edit_contrast_adaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see
90
91
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_rectangle**](docs/EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw rectangle onto an image
91
92
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_text**](docs/EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
92
93
  *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_compare**](docs/FaceApi.md#face_compare) | **POST** /image/face/compare-and-match | Compare and match faces
@@ -5,6 +5,7 @@ All URIs are relative to *https://api.cloudmersive.com*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**edit_composite_basic**](EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
8
+ [**edit_contrast_adaptive**](EditApi.md#edit_contrast_adaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see
8
9
  [**edit_draw_rectangle**](EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw rectangle onto an image
9
10
  [**edit_draw_text**](EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
10
11
 
@@ -69,6 +70,63 @@ Name | Type | Description | Notes
69
70
 
70
71
 
71
72
 
73
+ # **edit_contrast_adaptive**
74
+ > String edit_contrast_adaptive(gamma, image_file)
75
+
76
+ Adaptively adjust the contrast of the image to be more appealing and easy to see
77
+
78
+ Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
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::EditApi.new
93
+
94
+ gamma = 1.2 # Float | Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
95
+
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
+
98
+
99
+ begin
100
+ #Adaptively adjust the contrast of the image to be more appealing and easy to see
101
+ result = api_instance.edit_contrast_adaptive(gamma, image_file)
102
+ p result
103
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
104
+ puts "Exception when calling EditApi->edit_contrast_adaptive: #{e}"
105
+ end
106
+ ```
107
+
108
+ ### Parameters
109
+
110
+ Name | Type | Description | Notes
111
+ ------------- | ------------- | ------------- | -------------
112
+ **gamma** | **Float**| Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast. |
113
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
114
+
115
+ ### Return type
116
+
117
+ **String**
118
+
119
+ ### Authorization
120
+
121
+ [Apikey](../README.md#Apikey)
122
+
123
+ ### HTTP request headers
124
+
125
+ - **Content-Type**: multipart/form-data
126
+ - **Accept**: image/png
127
+
128
+
129
+
72
130
  # **edit_draw_rectangle**
73
131
  > String edit_draw_rectangle(request)
74
132
 
@@ -89,6 +89,68 @@ module CloudmersiveImageRecognitionApiClient
89
89
  return data, status_code, headers
90
90
  end
91
91
 
92
+ # Adaptively adjust the contrast of the image to be more appealing and easy to see
93
+ # Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
94
+ # @param gamma Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
95
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
96
+ # @param [Hash] opts the optional parameters
97
+ # @return [String]
98
+ def edit_contrast_adaptive(gamma, image_file, opts = {})
99
+ data, _status_code, _headers = edit_contrast_adaptive_with_http_info(gamma, image_file, opts)
100
+ return data
101
+ end
102
+
103
+ # Adaptively adjust the contrast of the image to be more appealing and easy to see
104
+ # Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
105
+ # @param gamma Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
106
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
107
+ # @param [Hash] opts the optional parameters
108
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
109
+ def edit_contrast_adaptive_with_http_info(gamma, image_file, opts = {})
110
+ if @api_client.config.debugging
111
+ @api_client.config.logger.debug "Calling API: EditApi.edit_contrast_adaptive ..."
112
+ end
113
+ # verify the required parameter 'gamma' is set
114
+ if @api_client.config.client_side_validation && gamma.nil?
115
+ fail ArgumentError, "Missing the required parameter 'gamma' when calling EditApi.edit_contrast_adaptive"
116
+ end
117
+ # verify the required parameter 'image_file' is set
118
+ if @api_client.config.client_side_validation && image_file.nil?
119
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling EditApi.edit_contrast_adaptive"
120
+ end
121
+ # resource path
122
+ local_var_path = "/image/edit/contrast/{gamma}/adaptive".sub('{' + 'gamma' + '}', gamma.to_s)
123
+
124
+ # query parameters
125
+ query_params = {}
126
+
127
+ # header parameters
128
+ header_params = {}
129
+ # HTTP header 'Accept' (if needed)
130
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
131
+ # HTTP header 'Content-Type'
132
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
133
+
134
+ # form parameters
135
+ form_params = {}
136
+ form_params["imageFile"] = image_file
137
+
138
+ # http body (model)
139
+ post_body = nil
140
+ auth_names = ['Apikey']
141
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
142
+ :header_params => header_params,
143
+ :query_params => query_params,
144
+ :form_params => form_params,
145
+ :body => post_body,
146
+ :auth_names => auth_names,
147
+ :return_type => 'String')
148
+ if @api_client.config.debugging
149
+ @api_client.config.logger.debug "API called: EditApi#edit_contrast_adaptive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
150
+ end
151
+ return data, status_code, headers
152
+ end
153
+
92
154
  # Draw rectangle onto an image
93
155
  # Draw one or more rectangles, with customized visuals, onto an image
94
156
  # @param request
@@ -11,5 +11,5 @@ Swagger Codegen version: unset
11
11
  =end
12
12
 
13
13
  module CloudmersiveImageRecognitionApiClient
14
- VERSION = "1.3.3"
14
+ VERSION = "1.3.4"
15
15
  end
@@ -46,6 +46,19 @@ describe 'EditApi' do
46
46
  end
47
47
  end
48
48
 
49
+ # unit tests for edit_contrast_adaptive
50
+ # Adaptively adjust the contrast of the image to be more appealing and easy to see
51
+ # Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
52
+ # @param gamma Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
53
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
54
+ # @param [Hash] opts the optional parameters
55
+ # @return [String]
56
+ describe 'edit_contrast_adaptive test' do
57
+ it "should work" do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
49
62
  # unit tests for edit_draw_rectangle
50
63
  # Draw rectangle onto an image
51
64
  # Draw one or more rectangles, with customized visuals, onto an image
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-image-recognition-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-06 00:00:00.000000000 Z
11
+ date: 2019-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus