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

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: '09e66581d0716f5a2d0f5a57640342a49b0a00aa5ba64a3c010e4818562a80d9'
4
- data.tar.gz: 2e394527ba03d8210a54c16915e4746f984789b122b004373773091cbb33ccaf
3
+ metadata.gz: 3e720f75607bf15602cf53ddd46928616c5ea103bd9a18dce4f56c8e06ed62eb
4
+ data.tar.gz: 26ab7464ab6505d2c8854146abab327184f4b70ceea9d9ad131dd50556ed061d
5
5
  SHA512:
6
- metadata.gz: cf8acbc1f58132548c05597322f2f67717c08e0d044f9f8a24048baaf2982ad025356bb270fc2ef495b6c60ecad1ff683ba894af93d29b78e4cd4543e1d16d7d
7
- data.tar.gz: e568b1634ffc43f802d15f06f42b4966d119280d1fa4cef1d0245428fef68267db826e811fd755ce45f92db84bb2549d7a0eeea7b220b97f6fb4947244821edb
6
+ metadata.gz: 87e8c82a5b98f80d0359899d1e86be9d9e0beee4723878b043386449bee740071e9c460822042d31032dbf6224de9a405449a49094dea0cf3833f8040c194869
7
+ data.tar.gz: bb199080d30b714069fb0301b004b50393db7aab9747fd64210dc7b613553aeb3adbfb46c1883bb4c08f94961b7094fee442cd681c8e009e1d88e0dbbac0f0e1
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.1
10
+ - Package version: 1.4.2
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.1.gem
26
+ gem install ./cloudmersive-image-recognition-api-client-1.4.2.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.1.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.2.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.1'
34
+ gem 'cloudmersive-image-recognition-api-client', '~> 1.4.2'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -86,6 +86,9 @@ All URIs are relative to *https://api.cloudmersive.com*
86
86
  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
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_gif**](docs/ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
90
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_jpg**](docs/ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG/JPEG format
91
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_png**](docs/ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
89
92
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_auto_orient**](docs/EditApi.md#edit_auto_orient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data
90
93
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_basic**](docs/EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
91
94
  *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
@@ -0,0 +1,176 @@
1
+ # CloudmersiveImageRecognitionApiClient::ConvertApi
2
+
3
+ All URIs are relative to *https://api.cloudmersive.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**convert_to_gif**](ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
8
+ [**convert_to_jpg**](ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG/JPEG format
9
+ [**convert_to_png**](ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
10
+
11
+
12
+ # **convert_to_gif**
13
+ > String convert_to_gif(image_file)
14
+
15
+ Convert input image to GIF format
16
+
17
+ Converts the input image into GIF format. 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.
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'cloudmersive-image-recognition-api-client'
23
+ # setup authorization
24
+ CloudmersiveImageRecognitionApiClient.configure do |config|
25
+ # Configure API key authorization: Apikey
26
+ config.api_key['Apikey'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Apikey'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
32
+
33
+ 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.
34
+
35
+
36
+ begin
37
+ #Convert input image to GIF format
38
+ result = api_instance.convert_to_gif(image_file)
39
+ p result
40
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
41
+ puts "Exception when calling ConvertApi->convert_to_gif: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
50
+
51
+ ### Return type
52
+
53
+ **String**
54
+
55
+ ### Authorization
56
+
57
+ [Apikey](../README.md#Apikey)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: multipart/form-data
62
+ - **Accept**: image/gif
63
+
64
+
65
+
66
+ # **convert_to_jpg**
67
+ > String convert_to_jpg(quality, image_file)
68
+
69
+ Convert input image to JPG/JPEG format
70
+
71
+ 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.
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'cloudmersive-image-recognition-api-client'
77
+ # setup authorization
78
+ CloudmersiveImageRecognitionApiClient.configure do |config|
79
+ # Configure API key authorization: Apikey
80
+ config.api_key['Apikey'] = 'YOUR API KEY'
81
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
82
+ #config.api_key_prefix['Apikey'] = 'Bearer'
83
+ end
84
+
85
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
86
+
87
+ quality = 56 # Integer | Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
88
+
89
+ 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.
90
+
91
+
92
+ begin
93
+ #Convert input image to JPG/JPEG format
94
+ result = api_instance.convert_to_jpg(quality, image_file)
95
+ p result
96
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
97
+ puts "Exception when calling ConvertApi->convert_to_jpg: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+ Name | Type | Description | Notes
104
+ ------------- | ------------- | ------------- | -------------
105
+ **quality** | **Integer**| Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75 |
106
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
107
+
108
+ ### Return type
109
+
110
+ **String**
111
+
112
+ ### Authorization
113
+
114
+ [Apikey](../README.md#Apikey)
115
+
116
+ ### HTTP request headers
117
+
118
+ - **Content-Type**: multipart/form-data
119
+ - **Accept**: image/jpg
120
+
121
+
122
+
123
+ # **convert_to_png**
124
+ > String convert_to_png(image_file)
125
+
126
+ Convert input image to PNG format
127
+
128
+ Converts the input image into PNG format. Transparency is preserved when present. 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.
129
+
130
+ ### Example
131
+ ```ruby
132
+ # load the gem
133
+ require 'cloudmersive-image-recognition-api-client'
134
+ # setup authorization
135
+ CloudmersiveImageRecognitionApiClient.configure do |config|
136
+ # Configure API key authorization: Apikey
137
+ config.api_key['Apikey'] = 'YOUR API KEY'
138
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
139
+ #config.api_key_prefix['Apikey'] = 'Bearer'
140
+ end
141
+
142
+ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
143
+
144
+ 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.
145
+
146
+
147
+ begin
148
+ #Convert input image to PNG format
149
+ result = api_instance.convert_to_png(image_file)
150
+ p result
151
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
152
+ puts "Exception when calling ConvertApi->convert_to_png: #{e}"
153
+ end
154
+ ```
155
+
156
+ ### Parameters
157
+
158
+ Name | Type | Description | Notes
159
+ ------------- | ------------- | ------------- | -------------
160
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
161
+
162
+ ### Return type
163
+
164
+ **String**
165
+
166
+ ### Authorization
167
+
168
+ [Apikey](../README.md#Apikey)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: multipart/form-data
173
+ - **Accept**: image/png
174
+
175
+
176
+
data/docs/FilterApi.md CHANGED
@@ -363,7 +363,7 @@ Name | Type | Description | Notes
363
363
 
364
364
 
365
365
  # **filter_posterize**
366
- > Object filter_posterize(levels)
366
+ > String filter_posterize(levels, image_file)
367
367
 
368
368
  Posterize the image by reducing distinct colors
369
369
 
@@ -385,10 +385,12 @@ api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
385
385
 
386
386
  levels = 56 # Integer | Number of unique colors to retain in the output image
387
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
+
388
390
 
389
391
  begin
390
392
  #Posterize the image by reducing distinct colors
391
- result = api_instance.filter_posterize(levels)
393
+ result = api_instance.filter_posterize(levels, image_file)
392
394
  p result
393
395
  rescue CloudmersiveImageRecognitionApiClient::ApiError => e
394
396
  puts "Exception when calling FilterApi->filter_posterize: #{e}"
@@ -400,10 +402,11 @@ end
400
402
  Name | Type | Description | Notes
401
403
  ------------- | ------------- | ------------- | -------------
402
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. |
403
406
 
404
407
  ### Return type
405
408
 
406
- **Object**
409
+ **String**
407
410
 
408
411
  ### Authorization
409
412
 
@@ -411,7 +414,7 @@ Name | Type | Description | Notes
411
414
 
412
415
  ### HTTP request headers
413
416
 
414
- - **Content-Type**: Not defined
417
+ - **Content-Type**: multipart/form-data
415
418
  - **Accept**: application/octet-stream
416
419
 
417
420
 
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **match_score** | **Float** | Score between 0.0 and 1.0 that measures how closely the symbol matched; scores above 0.2 are good | [optional]
7
8
  **x_left** | **Integer** | X location of the left edge of the found location in pixels | [optional]
8
9
  **y_top** | **Integer** | Y location of the top edge of the found location in pixels | [optional]
9
10
  **width** | **Integer** | Width of the found location in pixels | [optional]
@@ -52,6 +52,7 @@ require 'cloudmersive-image-recognition-api-client/models/vehicle_license_plate_
52
52
 
53
53
  # APIs
54
54
  require 'cloudmersive-image-recognition-api-client/api/artistic_api'
55
+ require 'cloudmersive-image-recognition-api-client/api/convert_api'
55
56
  require 'cloudmersive-image-recognition-api-client/api/edit_api'
56
57
  require 'cloudmersive-image-recognition-api-client/api/face_api'
57
58
  require 'cloudmersive-image-recognition-api-client/api/filter_api'
@@ -0,0 +1,197 @@
1
+ =begin
2
+ #imageapi
3
+
4
+ #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require "uri"
14
+
15
+ module CloudmersiveImageRecognitionApiClient
16
+ class ConvertApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Convert input image to GIF format
24
+ # Converts the input image into GIF format. 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.
25
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [String]
28
+ def convert_to_gif(image_file, opts = {})
29
+ data, _status_code, _headers = convert_to_gif_with_http_info(image_file, opts)
30
+ return data
31
+ end
32
+
33
+ # Convert input image to GIF format
34
+ # Converts the input image into GIF format. 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.
35
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
38
+ def convert_to_gif_with_http_info(image_file, opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_gif ..."
41
+ end
42
+ # verify the required parameter 'image_file' is set
43
+ if @api_client.config.client_side_validation && image_file.nil?
44
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_gif"
45
+ end
46
+ # resource path
47
+ local_var_path = "/image/convert/to/gif"
48
+
49
+ # query parameters
50
+ query_params = {}
51
+
52
+ # header parameters
53
+ header_params = {}
54
+ # HTTP header 'Accept' (if needed)
55
+ header_params['Accept'] = @api_client.select_header_accept(['image/gif'])
56
+ # HTTP header 'Content-Type'
57
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
58
+
59
+ # form parameters
60
+ form_params = {}
61
+ form_params["imageFile"] = image_file
62
+
63
+ # http body (model)
64
+ post_body = nil
65
+ auth_names = ['Apikey']
66
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
67
+ :header_params => header_params,
68
+ :query_params => query_params,
69
+ :form_params => form_params,
70
+ :body => post_body,
71
+ :auth_names => auth_names,
72
+ :return_type => 'String')
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_gif\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Convert input image to JPG/JPEG format
80
+ # 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.
81
+ # @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
82
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [String]
85
+ def convert_to_jpg(quality, image_file, opts = {})
86
+ data, _status_code, _headers = convert_to_jpg_with_http_info(quality, image_file, opts)
87
+ return data
88
+ end
89
+
90
+ # Convert input image to JPG/JPEG format
91
+ # 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.
92
+ # @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
93
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
96
+ def convert_to_jpg_with_http_info(quality, image_file, opts = {})
97
+ if @api_client.config.debugging
98
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_jpg ..."
99
+ end
100
+ # verify the required parameter 'quality' is set
101
+ if @api_client.config.client_side_validation && quality.nil?
102
+ fail ArgumentError, "Missing the required parameter 'quality' when calling ConvertApi.convert_to_jpg"
103
+ end
104
+ # verify the required parameter 'image_file' is set
105
+ if @api_client.config.client_side_validation && image_file.nil?
106
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_jpg"
107
+ end
108
+ # resource path
109
+ local_var_path = "/image/convert/to/jpg/{quality}".sub('{' + 'quality' + '}', quality.to_s)
110
+
111
+ # query parameters
112
+ query_params = {}
113
+
114
+ # header parameters
115
+ header_params = {}
116
+ # HTTP header 'Accept' (if needed)
117
+ header_params['Accept'] = @api_client.select_header_accept(['image/jpg'])
118
+ # HTTP header 'Content-Type'
119
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
120
+
121
+ # form parameters
122
+ form_params = {}
123
+ form_params["imageFile"] = image_file
124
+
125
+ # http body (model)
126
+ post_body = nil
127
+ auth_names = ['Apikey']
128
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
129
+ :header_params => header_params,
130
+ :query_params => query_params,
131
+ :form_params => form_params,
132
+ :body => post_body,
133
+ :auth_names => auth_names,
134
+ :return_type => 'String')
135
+ if @api_client.config.debugging
136
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_jpg\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
137
+ end
138
+ return data, status_code, headers
139
+ end
140
+
141
+ # Convert input image to PNG format
142
+ # Converts the input image into PNG format. Transparency is preserved when present. 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.
143
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [String]
146
+ def convert_to_png(image_file, opts = {})
147
+ data, _status_code, _headers = convert_to_png_with_http_info(image_file, opts)
148
+ return data
149
+ end
150
+
151
+ # Convert input image to PNG format
152
+ # Converts the input image into PNG format. Transparency is preserved when present. 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.
153
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
154
+ # @param [Hash] opts the optional parameters
155
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
156
+ def convert_to_png_with_http_info(image_file, opts = {})
157
+ if @api_client.config.debugging
158
+ @api_client.config.logger.debug "Calling API: ConvertApi.convert_to_png ..."
159
+ end
160
+ # verify the required parameter 'image_file' is set
161
+ if @api_client.config.client_side_validation && image_file.nil?
162
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling ConvertApi.convert_to_png"
163
+ end
164
+ # resource path
165
+ local_var_path = "/image/convert/to/png"
166
+
167
+ # query parameters
168
+ query_params = {}
169
+
170
+ # header parameters
171
+ header_params = {}
172
+ # HTTP header 'Accept' (if needed)
173
+ header_params['Accept'] = @api_client.select_header_accept(['image/png'])
174
+ # HTTP header 'Content-Type'
175
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
176
+
177
+ # form parameters
178
+ form_params = {}
179
+ form_params["imageFile"] = image_file
180
+
181
+ # http body (model)
182
+ post_body = nil
183
+ auth_names = ['Apikey']
184
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
185
+ :header_params => header_params,
186
+ :query_params => query_params,
187
+ :form_params => form_params,
188
+ :body => post_body,
189
+ :auth_names => auth_names,
190
+ :return_type => 'String')
191
+ if @api_client.config.debugging
192
+ @api_client.config.logger.debug "API called: ConvertApi#convert_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
193
+ end
194
+ return data, status_code, headers
195
+ end
196
+ end
197
+ end
@@ -407,19 +407,21 @@ module CloudmersiveImageRecognitionApiClient
407
407
  # Posterize the image by reducing distinct colors
408
408
  # Reduce the unique number of colors in the image to the specified level
409
409
  # @param levels Number of unique colors to retain in the output image
410
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
410
411
  # @param [Hash] opts the optional parameters
411
- # @return [Object]
412
- def filter_posterize(levels, opts = {})
413
- data, _status_code, _headers = filter_posterize_with_http_info(levels, opts)
412
+ # @return [String]
413
+ def filter_posterize(levels, image_file, opts = {})
414
+ data, _status_code, _headers = filter_posterize_with_http_info(levels, image_file, opts)
414
415
  return data
415
416
  end
416
417
 
417
418
  # Posterize the image by reducing distinct colors
418
419
  # Reduce the unique number of colors in the image to the specified level
419
420
  # @param levels Number of unique colors to retain in the output image
421
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
420
422
  # @param [Hash] opts the optional parameters
421
- # @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
422
- def filter_posterize_with_http_info(levels, opts = {})
423
+ # @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
424
+ def filter_posterize_with_http_info(levels, image_file, opts = {})
423
425
  if @api_client.config.debugging
424
426
  @api_client.config.logger.debug "Calling API: FilterApi.filter_posterize ..."
425
427
  end
@@ -427,6 +429,10 @@ module CloudmersiveImageRecognitionApiClient
427
429
  if @api_client.config.client_side_validation && levels.nil?
428
430
  fail ArgumentError, "Missing the required parameter 'levels' when calling FilterApi.filter_posterize"
429
431
  end
432
+ # verify the required parameter 'image_file' is set
433
+ if @api_client.config.client_side_validation && image_file.nil?
434
+ fail ArgumentError, "Missing the required parameter 'image_file' when calling FilterApi.filter_posterize"
435
+ end
430
436
  # resource path
431
437
  local_var_path = "/image/filter/posterize"
432
438
 
@@ -438,9 +444,12 @@ module CloudmersiveImageRecognitionApiClient
438
444
  header_params = {}
439
445
  # HTTP header 'Accept' (if needed)
440
446
  header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
447
+ # HTTP header 'Content-Type'
448
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
441
449
 
442
450
  # form parameters
443
451
  form_params = {}
452
+ form_params["imageFile"] = image_file
444
453
 
445
454
  # http body (model)
446
455
  post_body = nil
@@ -451,7 +460,7 @@ module CloudmersiveImageRecognitionApiClient
451
460
  :form_params => form_params,
452
461
  :body => post_body,
453
462
  :auth_names => auth_names,
454
- :return_type => 'Object')
463
+ :return_type => 'String')
455
464
  if @api_client.config.debugging
456
465
  @api_client.config.logger.debug "API called: FilterApi#filter_posterize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
457
466
  end
@@ -18,6 +18,9 @@ module CloudmersiveImageRecognitionApiClient
18
18
  # True if successful, false otherwise
19
19
  attr_accessor :successful
20
20
 
21
+ # Score between 0.0 and 1.0 that measures how closely the symbol matched; scores above 0.2 are good
22
+ attr_accessor :match_score
23
+
21
24
  # X location of the left edge of the found location in pixels
22
25
  attr_accessor :x_left
23
26
 
@@ -35,6 +38,7 @@ module CloudmersiveImageRecognitionApiClient
35
38
  def self.attribute_map
36
39
  {
37
40
  :'successful' => :'Successful',
41
+ :'match_score' => :'MatchScore',
38
42
  :'x_left' => :'XLeft',
39
43
  :'y_top' => :'YTop',
40
44
  :'width' => :'Width',
@@ -46,6 +50,7 @@ module CloudmersiveImageRecognitionApiClient
46
50
  def self.swagger_types
47
51
  {
48
52
  :'successful' => :'BOOLEAN',
53
+ :'match_score' => :'Float',
49
54
  :'x_left' => :'Integer',
50
55
  :'y_top' => :'Integer',
51
56
  :'width' => :'Integer',
@@ -65,6 +70,10 @@ module CloudmersiveImageRecognitionApiClient
65
70
  self.successful = attributes[:'Successful']
66
71
  end
67
72
 
73
+ if attributes.has_key?(:'MatchScore')
74
+ self.match_score = attributes[:'MatchScore']
75
+ end
76
+
68
77
  if attributes.has_key?(:'XLeft')
69
78
  self.x_left = attributes[:'XLeft']
70
79
  end
@@ -102,6 +111,7 @@ module CloudmersiveImageRecognitionApiClient
102
111
  return true if self.equal?(o)
103
112
  self.class == o.class &&
104
113
  successful == o.successful &&
114
+ match_score == o.match_score &&
105
115
  x_left == o.x_left &&
106
116
  y_top == o.y_top &&
107
117
  width == o.width &&
@@ -117,7 +127,7 @@ module CloudmersiveImageRecognitionApiClient
117
127
  # Calculates hash code according to all attributes.
118
128
  # @return [Fixnum] Hash code
119
129
  def hash
120
- [successful, x_left, y_top, width, height].hash
130
+ [successful, match_score, x_left, y_top, width, height].hash
121
131
  end
122
132
 
123
133
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module CloudmersiveImageRecognitionApiClient
14
- VERSION = "1.4.1"
14
+ VERSION = "1.4.2"
15
15
  end
@@ -0,0 +1,72 @@
1
+ =begin
2
+ #imageapi
3
+
4
+ #Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersiveImageRecognitionApiClient::ConvertApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ConvertApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ConvertApi' do
30
+ it 'should create an instance of ConvertApi' do
31
+ expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::ConvertApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for convert_to_gif
36
+ # Convert input image to GIF format
37
+ # Converts the input image into GIF format. 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.
38
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [String]
41
+ describe 'convert_to_gif test' do
42
+ it "should work" do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for convert_to_jpg
48
+ # Convert input image to JPG/JPEG format
49
+ # 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.
50
+ # @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
51
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [String]
54
+ describe 'convert_to_jpg test' do
55
+ it "should work" do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for convert_to_png
61
+ # Convert input image to PNG format
62
+ # Converts the input image into PNG format. Transparency is preserved when present. 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.
63
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [String]
66
+ describe 'convert_to_png test' do
67
+ it "should work" do
68
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
+ end
70
+ end
71
+
72
+ end
@@ -116,8 +116,9 @@ describe 'FilterApi' do
116
116
  # Posterize the image by reducing distinct colors
117
117
  # Reduce the unique number of colors in the image to the specified level
118
118
  # @param levels Number of unique colors to retain in the output image
119
+ # @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
119
120
  # @param [Hash] opts the optional parameters
120
- # @return [Object]
121
+ # @return [String]
121
122
  describe 'filter_posterize test' do
122
123
  it "should work" do
123
124
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,6 +38,12 @@ describe 'FindSymbolResult' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "match_score"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  describe 'test attribute "x_left"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-image-recognition-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
@@ -206,6 +206,7 @@ files:
206
206
  - "./docs/AgeDetectionResult.md"
207
207
  - "./docs/ArtisticApi.md"
208
208
  - "./docs/ColorResult.md"
209
+ - "./docs/ConvertApi.md"
209
210
  - "./docs/DetectedLicensePlate.md"
210
211
  - "./docs/DetectedObject.md"
211
212
  - "./docs/DominantColorResult.md"
@@ -246,6 +247,7 @@ files:
246
247
  - "./git_push.sh"
247
248
  - "./lib/cloudmersive-image-recognition-api-client.rb"
248
249
  - "./lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb"
250
+ - "./lib/cloudmersive-image-recognition-api-client/api/convert_api.rb"
249
251
  - "./lib/cloudmersive-image-recognition-api-client/api/edit_api.rb"
250
252
  - "./lib/cloudmersive-image-recognition-api-client/api/face_api.rb"
251
253
  - "./lib/cloudmersive-image-recognition-api-client/api/filter_api.rb"
@@ -290,6 +292,7 @@ files:
290
292
  - "./lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb"
291
293
  - "./lib/cloudmersive-image-recognition-api-client/version.rb"
292
294
  - "./spec/api/artistic_api_spec.rb"
295
+ - "./spec/api/convert_api_spec.rb"
293
296
  - "./spec/api/edit_api_spec.rb"
294
297
  - "./spec/api/face_api_spec.rb"
295
298
  - "./spec/api/filter_api_spec.rb"