aspose_imaging_cloud 20.5 → 20.12
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
- data/README.md +5 -7
- data/lib/aspose-imaging-cloud.rb +5 -4
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +34 -27
- data/lib/aspose-imaging-cloud/api_client.rb +5 -5
- data/lib/aspose-imaging-cloud/configuration.rb +6 -6
- data/lib/aspose-imaging-cloud/models/available_labels_list.rb +204 -0
- data/lib/aspose-imaging-cloud/models/detected_object_list.rb +3 -3
- data/lib/aspose-imaging-cloud/models/dicom_properties.rb +4 -64
- data/lib/aspose-imaging-cloud/models/eps_properties.rb +241 -0
- data/lib/aspose-imaging-cloud/models/imaging_response.rb +11 -1
- data/lib/aspose-imaging-cloud/models/requests/{save_image_as_request.rb → convert_image_request.rb} +7 -7
- data/lib/aspose-imaging-cloud/models/requests/{create_saved_image_as_request.rb → create_converted_image_request.rb} +7 -7
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/{object_bounds_request.rb → get_available_labels_request.rb} +9 -28
- data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +7 -1
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +1 -0
- metadata +9 -7
- data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +0 -94
@@ -77,6 +77,9 @@ module AsposeImagingCloud
|
|
77
77
|
# Gets or sets the SVG properties.
|
78
78
|
attr_accessor :svg_properties
|
79
79
|
|
80
|
+
# Gets or sets the EPS properties.
|
81
|
+
attr_accessor :eps_properties
|
82
|
+
|
80
83
|
# Gets or sets the horizontal resolution of an image.
|
81
84
|
attr_accessor :horizontal_resolution
|
82
85
|
|
@@ -105,6 +108,7 @@ module AsposeImagingCloud
|
|
105
108
|
:'dng_properties' => :'DngProperties',
|
106
109
|
:'odg_properties' => :'OdgProperties',
|
107
110
|
:'svg_properties' => :'SvgProperties',
|
111
|
+
:'eps_properties' => :'EpsProperties',
|
108
112
|
:'horizontal_resolution' => :'HorizontalResolution',
|
109
113
|
:'vertical_resolution' => :'VerticalResolution',
|
110
114
|
:'is_cached' => :'IsCached'
|
@@ -130,6 +134,7 @@ module AsposeImagingCloud
|
|
130
134
|
:'dng_properties' => :'DngProperties',
|
131
135
|
:'odg_properties' => :'OdgProperties',
|
132
136
|
:'svg_properties' => :'SvgProperties',
|
137
|
+
:'eps_properties' => :'EpsProperties',
|
133
138
|
:'horizontal_resolution' => :'Float',
|
134
139
|
:'vertical_resolution' => :'Float',
|
135
140
|
:'is_cached' => :'BOOLEAN'
|
@@ -208,6 +213,10 @@ module AsposeImagingCloud
|
|
208
213
|
self.svg_properties = attributes[:'SvgProperties']
|
209
214
|
end
|
210
215
|
|
216
|
+
if attributes.has_key?(:'EpsProperties')
|
217
|
+
self.eps_properties = attributes[:'EpsProperties']
|
218
|
+
end
|
219
|
+
|
211
220
|
if attributes.has_key?(:'HorizontalResolution')
|
212
221
|
self.horizontal_resolution = attributes[:'HorizontalResolution']
|
213
222
|
end
|
@@ -285,6 +294,7 @@ module AsposeImagingCloud
|
|
285
294
|
dng_properties == o.dng_properties &&
|
286
295
|
odg_properties == o.odg_properties &&
|
287
296
|
svg_properties == o.svg_properties &&
|
297
|
+
eps_properties == o.eps_properties &&
|
288
298
|
horizontal_resolution == o.horizontal_resolution &&
|
289
299
|
vertical_resolution == o.vertical_resolution &&
|
290
300
|
is_cached == o.is_cached
|
@@ -299,7 +309,7 @@ module AsposeImagingCloud
|
|
299
309
|
# Calculates hash code according to all attributes.
|
300
310
|
# @return [Fixnum] Hash code
|
301
311
|
def hash
|
302
|
-
[height, width, bits_per_pixel, bmp_properties, gif_properties, jpeg_properties, png_properties, tiff_properties, psd_properties, djvu_properties, web_p_properties, jpeg2000_properties, dicom_properties, dng_properties, odg_properties, svg_properties, horizontal_resolution, vertical_resolution, is_cached].hash
|
312
|
+
[height, width, bits_per_pixel, bmp_properties, gif_properties, jpeg_properties, png_properties, tiff_properties, psd_properties, djvu_properties, web_p_properties, jpeg2000_properties, dicom_properties, dng_properties, odg_properties, svg_properties, eps_properties, horizontal_resolution, vertical_resolution, is_cached].hash
|
303
313
|
end
|
304
314
|
|
305
315
|
# Builds the object from hash
|
data/lib/aspose-imaging-cloud/models/requests/{save_image_as_request.rb → convert_image_request.rb}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose" file="
|
2
|
+
# <copyright company="Aspose" file="convert_image_request.rb">
|
3
3
|
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
@@ -28,10 +28,10 @@ require_relative './imaging_request'
|
|
28
28
|
require_relative './http_request'
|
29
29
|
|
30
30
|
module AsposeImagingCloud
|
31
|
-
# Request model for
|
32
|
-
class
|
31
|
+
# Request model for convert_image operation.
|
32
|
+
class ConvertImageRequest < ImagingRequest
|
33
33
|
|
34
|
-
#
|
34
|
+
# Convert existing image to another format.
|
35
35
|
# @param [String] name Filename of image.
|
36
36
|
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
37
37
|
# @param [String] folder Folder with image to process.
|
@@ -46,16 +46,16 @@ module AsposeImagingCloud
|
|
46
46
|
def to_http_info(config)
|
47
47
|
# verify the required parameter 'name' is set
|
48
48
|
if config.client_side_validation && @name.nil?
|
49
|
-
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.
|
49
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.convert_image"
|
50
50
|
end
|
51
51
|
|
52
52
|
# verify the required parameter 'format' is set
|
53
53
|
if config.client_side_validation && @format.nil?
|
54
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.
|
54
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.convert_image"
|
55
55
|
end
|
56
56
|
|
57
57
|
# resource path
|
58
|
-
local_var_path = '/imaging/{name}/
|
58
|
+
local_var_path = '/imaging/{name}/convert'.sub('{' + 'name' + '}', @name.to_s)
|
59
59
|
|
60
60
|
# query parameters
|
61
61
|
query_params = {}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose" file="
|
2
|
+
# <copyright company="Aspose" file="create_converted_image_request.rb">
|
3
3
|
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
@@ -28,10 +28,10 @@ require_relative './imaging_request'
|
|
28
28
|
require_relative './http_request'
|
29
29
|
|
30
30
|
module AsposeImagingCloud
|
31
|
-
# Request model for
|
32
|
-
class
|
31
|
+
# Request model for create_converted_image operation.
|
32
|
+
class CreateConvertedImageRequest < ImagingRequest
|
33
33
|
|
34
|
-
#
|
34
|
+
# Convert existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
|
35
35
|
# @param [File] image_data Input image
|
36
36
|
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
37
37
|
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image).
|
@@ -46,16 +46,16 @@ module AsposeImagingCloud
|
|
46
46
|
def to_http_info(config)
|
47
47
|
# verify the required parameter 'image_data' is set
|
48
48
|
if config.client_side_validation && @image_data.nil?
|
49
|
-
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.
|
49
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_converted_image"
|
50
50
|
end
|
51
51
|
|
52
52
|
# verify the required parameter 'format' is set
|
53
53
|
if config.client_side_validation && @format.nil?
|
54
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.
|
54
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.create_converted_image"
|
55
55
|
end
|
56
56
|
|
57
57
|
# resource path
|
58
|
-
local_var_path = '/imaging/
|
58
|
+
local_var_path = '/imaging/convert'
|
59
59
|
|
60
60
|
# query parameters
|
61
61
|
query_params = {}
|
@@ -31,7 +31,7 @@ module AsposeImagingCloud
|
|
31
31
|
# Request model for create_image_frame_range operation.
|
32
32
|
class CreateImageFrameRangeRequest < ImagingRequest
|
33
33
|
|
34
|
-
# Get
|
34
|
+
# Get frames range from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
|
35
35
|
# @param [File] image_data Input image
|
36
36
|
# @param [Integer] start_frame_id Index of the first frame in range.
|
37
37
|
# @param [Integer] end_frame_id Index of the last frame in range.
|
@@ -37,14 +37,18 @@ module AsposeImagingCloud
|
|
37
37
|
# @param [Integer] threshold Object detection probability threshold in percents
|
38
38
|
# @param [BOOLEAN] include_label Draw detected objects labels
|
39
39
|
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
+
# @param [String] allowed_labels Comma-separated list of allowed labels
|
41
|
+
# @param [String] blocked_labels Comma-separated list of blocked labels
|
40
42
|
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
|
41
43
|
# @param [String] storage Your Aspose Cloud Storage name.
|
42
|
-
def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, out_path = nil, storage = nil)
|
44
|
+
def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, out_path = nil, storage = nil)
|
43
45
|
@image_data = image_data
|
44
46
|
@method = method
|
45
47
|
@threshold = threshold
|
46
48
|
@include_label = include_label
|
47
49
|
@include_score = include_score
|
50
|
+
@allowed_labels = allowed_labels
|
51
|
+
@blocked_labels = blocked_labels
|
48
52
|
@out_path = out_path
|
49
53
|
@storage = storage
|
50
54
|
end
|
@@ -64,6 +68,8 @@ module AsposeImagingCloud
|
|
64
68
|
query_params[:threshold] = @threshold unless @threshold.nil?
|
65
69
|
query_params[:includeLabel] = @include_label unless @include_label.nil?
|
66
70
|
query_params[:includeScore] = @include_score unless @include_score.nil?
|
71
|
+
query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
|
72
|
+
query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
|
67
73
|
query_params[:outPath] = @out_path unless @out_path.nil?
|
68
74
|
query_params[:storage] = @storage unless @storage.nil?
|
69
75
|
|
@@ -37,15 +37,19 @@ module AsposeImagingCloud
|
|
37
37
|
# @param [Integer] threshold Object detection probability threshold in percents
|
38
38
|
# @param [BOOLEAN] include_label Draw detected objects classes
|
39
39
|
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
+
# @param [String] allowed_labels Comma-separated list of allowed labels
|
41
|
+
# @param [String] blocked_labels Comma-separated list of blocked labels
|
40
42
|
# @param [String] color Bounds, labels, and scores text color
|
41
43
|
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
|
42
44
|
# @param [String] storage Your Aspose Cloud Storage name.
|
43
|
-
def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, color = nil, out_path = nil, storage = nil)
|
45
|
+
def initialize(image_data, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, color = nil, out_path = nil, storage = nil)
|
44
46
|
@image_data = image_data
|
45
47
|
@method = method
|
46
48
|
@threshold = threshold
|
47
49
|
@include_label = include_label
|
48
50
|
@include_score = include_score
|
51
|
+
@allowed_labels = allowed_labels
|
52
|
+
@blocked_labels = blocked_labels
|
49
53
|
@color = color
|
50
54
|
@out_path = out_path
|
51
55
|
@storage = storage
|
@@ -66,6 +70,8 @@ module AsposeImagingCloud
|
|
66
70
|
query_params[:threshold] = @threshold unless @threshold.nil?
|
67
71
|
query_params[:includeLabel] = @include_label unless @include_label.nil?
|
68
72
|
query_params[:includeScore] = @include_score unless @include_score.nil?
|
73
|
+
query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
|
74
|
+
query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
|
69
75
|
query_params[:color] = @color unless @color.nil?
|
70
76
|
query_params[:outPath] = @out_path unless @out_path.nil?
|
71
77
|
query_params[:storage] = @storage unless @storage.nil?
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose" file="
|
2
|
+
# <copyright company="Aspose" file="get_available_labels_request.rb">
|
3
3
|
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
@@ -28,45 +28,26 @@ require_relative './imaging_request'
|
|
28
28
|
require_relative './http_request'
|
29
29
|
|
30
30
|
module AsposeImagingCloud
|
31
|
-
# Request model for
|
32
|
-
class
|
31
|
+
# Request model for get_available_labels operation.
|
32
|
+
class GetAvailableLabelsRequest < ImagingRequest
|
33
33
|
|
34
|
-
#
|
35
|
-
# @param [String] name Image file name.
|
34
|
+
# Gets available labels for selected object detection method.
|
36
35
|
# @param [String] method Object detection method
|
37
|
-
|
38
|
-
# @param [BOOLEAN] include_class Return detected objects classes
|
39
|
-
# @param [BOOLEAN] include_score Return detected objects score
|
40
|
-
# @param [String] folder Folder
|
41
|
-
# @param [String] storage Storage
|
42
|
-
def initialize(name, method = nil, threshold = nil, include_class = nil, include_score = nil, folder = nil, storage = nil)
|
43
|
-
@name = name
|
36
|
+
def initialize(method)
|
44
37
|
@method = method
|
45
|
-
@threshold = threshold
|
46
|
-
@include_class = include_class
|
47
|
-
@include_score = include_score
|
48
|
-
@folder = folder
|
49
|
-
@storage = storage
|
50
38
|
end
|
51
39
|
|
52
40
|
def to_http_info(config)
|
53
|
-
# verify the required parameter '
|
54
|
-
if config.client_side_validation && @
|
55
|
-
raise ArgumentError, "Missing the required parameter '
|
41
|
+
# verify the required parameter 'method' is set
|
42
|
+
if config.client_side_validation && @method.nil?
|
43
|
+
raise ArgumentError, "Missing the required parameter 'method' when calling ImagingApi.get_available_labels"
|
56
44
|
end
|
57
45
|
|
58
46
|
# resource path
|
59
|
-
local_var_path = '/imaging/ai/objectdetection/
|
47
|
+
local_var_path = '/imaging/ai/objectdetection/availablelabels/{method}'.sub('{' + 'method' + '}', @method.to_s)
|
60
48
|
|
61
49
|
# query parameters
|
62
50
|
query_params = {}
|
63
|
-
query_params[:name] = @name
|
64
|
-
query_params[:method] = @method unless @method.nil?
|
65
|
-
query_params[:threshold] = @threshold unless @threshold.nil?
|
66
|
-
query_params[:includeClass] = @include_class unless @include_class.nil?
|
67
|
-
query_params[:includeScore] = @include_score unless @include_score.nil?
|
68
|
-
query_params[:folder] = @folder unless @folder.nil?
|
69
|
-
query_params[:storage] = @storage unless @storage.nil?
|
70
51
|
|
71
52
|
# form parameters
|
72
53
|
form_params = {}
|
@@ -37,14 +37,18 @@ module AsposeImagingCloud
|
|
37
37
|
# @param [Integer] threshold Object detection probability threshold in percents
|
38
38
|
# @param [BOOLEAN] include_label Return detected objects labels
|
39
39
|
# @param [BOOLEAN] include_score Return detected objects score
|
40
|
+
# @param [String] allowed_labels Comma-separated list of allowed labels
|
41
|
+
# @param [String] blocked_labels Comma-separated list of blocked labels
|
40
42
|
# @param [String] folder Folder
|
41
43
|
# @param [String] storage Storage
|
42
|
-
def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, folder = nil, storage = nil)
|
44
|
+
def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, folder = nil, storage = nil)
|
43
45
|
@name = name
|
44
46
|
@method = method
|
45
47
|
@threshold = threshold
|
46
48
|
@include_label = include_label
|
47
49
|
@include_score = include_score
|
50
|
+
@allowed_labels = allowed_labels
|
51
|
+
@blocked_labels = blocked_labels
|
48
52
|
@folder = folder
|
49
53
|
@storage = storage
|
50
54
|
end
|
@@ -64,6 +68,8 @@ module AsposeImagingCloud
|
|
64
68
|
query_params[:threshold] = @threshold unless @threshold.nil?
|
65
69
|
query_params[:includeLabel] = @include_label unless @include_label.nil?
|
66
70
|
query_params[:includeScore] = @include_score unless @include_score.nil?
|
71
|
+
query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
|
72
|
+
query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
|
67
73
|
query_params[:folder] = @folder unless @folder.nil?
|
68
74
|
query_params[:storage] = @storage unless @storage.nil?
|
69
75
|
|
@@ -37,15 +37,19 @@ module AsposeImagingCloud
|
|
37
37
|
# @param [Integer] threshold Object detection probability threshold in percents
|
38
38
|
# @param [BOOLEAN] include_label Draw detected objects labels
|
39
39
|
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
+
# @param [String] allowed_labels Comma-separated list of allowed labels
|
41
|
+
# @param [String] blocked_labels Comma-separated list of blocked labels
|
40
42
|
# @param [String] color Bounds, labels, and scores text color
|
41
43
|
# @param [String] folder The folder.
|
42
44
|
# @param [String] storage The storage.
|
43
|
-
def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, color = nil, folder = nil, storage = nil)
|
45
|
+
def initialize(name, method = nil, threshold = nil, include_label = nil, include_score = nil, allowed_labels = nil, blocked_labels = nil, color = nil, folder = nil, storage = nil)
|
44
46
|
@name = name
|
45
47
|
@method = method
|
46
48
|
@threshold = threshold
|
47
49
|
@include_label = include_label
|
48
50
|
@include_score = include_score
|
51
|
+
@allowed_labels = allowed_labels
|
52
|
+
@blocked_labels = blocked_labels
|
49
53
|
@color = color
|
50
54
|
@folder = folder
|
51
55
|
@storage = storage
|
@@ -66,6 +70,8 @@ module AsposeImagingCloud
|
|
66
70
|
query_params[:threshold] = @threshold unless @threshold.nil?
|
67
71
|
query_params[:includeLabel] = @include_label unless @include_label.nil?
|
68
72
|
query_params[:includeScore] = @include_score unless @include_score.nil?
|
73
|
+
query_params[:allowedLabels] = @allowed_labels unless @allowed_labels.nil?
|
74
|
+
query_params[:blockedLabels] = @blocked_labels unless @blocked_labels.nil?
|
69
75
|
query_params[:color] = @color unless @color.nil?
|
70
76
|
query_params[:folder] = @folder unless @folder.nil?
|
71
77
|
query_params[:storage] = @storage unless @storage.nil?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_imaging_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '20.
|
4
|
+
version: '20.12'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergei Zubov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
|
@@ -18,7 +18,8 @@ description: |2
|
|
18
18
|
|
19
19
|
This repository contains Aspose.Imaging Cloud Ruby SDK source code. This SDK allows you to work with Aspose.Imaging Cloud REST APIs in your Ruby applications quickly and easily, with zero initial cost.
|
20
20
|
|
21
|
-
To use this SDK, you will need
|
21
|
+
To use this SDK, you will need Client ID and Client Key which can be looked up at Aspose Cloud Dashboard (free
|
22
|
+
registration in Aspose Cloud is required for this).
|
22
23
|
|
23
24
|
The solution is updated using code generator.
|
24
25
|
email: sergei.zubov@aspose.com
|
@@ -33,6 +34,7 @@ files:
|
|
33
34
|
- lib/aspose-imaging-cloud/api_client.rb
|
34
35
|
- lib/aspose-imaging-cloud/api_error.rb
|
35
36
|
- lib/aspose-imaging-cloud/configuration.rb
|
37
|
+
- lib/aspose-imaging-cloud/models/available_labels_list.rb
|
36
38
|
- lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb
|
37
39
|
- lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb
|
38
40
|
- lib/aspose-imaging-cloud/models/bmp_properties.rb
|
@@ -44,6 +46,7 @@ files:
|
|
44
46
|
- lib/aspose-imaging-cloud/models/disc_usage.rb
|
45
47
|
- lib/aspose-imaging-cloud/models/djvu_properties.rb
|
46
48
|
- lib/aspose-imaging-cloud/models/dng_properties.rb
|
49
|
+
- lib/aspose-imaging-cloud/models/eps_properties.rb
|
47
50
|
- lib/aspose-imaging-cloud/models/error.rb
|
48
51
|
- lib/aspose-imaging-cloud/models/error_details.rb
|
49
52
|
- lib/aspose-imaging-cloud/models/exif_data.rb
|
@@ -75,9 +78,11 @@ files:
|
|
75
78
|
- lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb
|
76
79
|
- lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb
|
77
80
|
- lib/aspose-imaging-cloud/models/requests/compare_images_request.rb
|
81
|
+
- lib/aspose-imaging-cloud/models/requests/convert_image_request.rb
|
78
82
|
- lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb
|
79
83
|
- lib/aspose-imaging-cloud/models/requests/copy_file_request.rb
|
80
84
|
- lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb
|
85
|
+
- lib/aspose-imaging-cloud/models/requests/create_converted_image_request.rb
|
81
86
|
- lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb
|
82
87
|
- lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb
|
83
88
|
- lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb
|
@@ -101,7 +106,6 @@ files:
|
|
101
106
|
- lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb
|
102
107
|
- lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb
|
103
108
|
- lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb
|
104
|
-
- lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb
|
105
109
|
- lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb
|
106
110
|
- lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb
|
107
111
|
- lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb
|
@@ -120,6 +124,7 @@ files:
|
|
120
124
|
- lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb
|
121
125
|
- lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb
|
122
126
|
- lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb
|
127
|
+
- lib/aspose-imaging-cloud/models/requests/get_available_labels_request.rb
|
123
128
|
- lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb
|
124
129
|
- lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb
|
125
130
|
- lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb
|
@@ -147,17 +152,14 @@ files:
|
|
147
152
|
- lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb
|
148
153
|
- lib/aspose-imaging-cloud/models/requests/move_file_request.rb
|
149
154
|
- lib/aspose-imaging-cloud/models/requests/move_folder_request.rb
|
150
|
-
- lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb
|
151
155
|
- lib/aspose-imaging-cloud/models/requests/object_exists_request.rb
|
152
156
|
- lib/aspose-imaging-cloud/models/requests/resize_image_request.rb
|
153
157
|
- lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb
|
154
|
-
- lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb
|
155
158
|
- lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb
|
156
159
|
- lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb
|
157
160
|
- lib/aspose-imaging-cloud/models/requests/update_image_request.rb
|
158
161
|
- lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb
|
159
162
|
- lib/aspose-imaging-cloud/models/requests/upload_file_request.rb
|
160
|
-
- lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb
|
161
163
|
- lib/aspose-imaging-cloud/models/search_context_status.rb
|
162
164
|
- lib/aspose-imaging-cloud/models/search_result.rb
|
163
165
|
- lib/aspose-imaging-cloud/models/search_results_set.rb
|
@@ -1,94 +0,0 @@
|
|
1
|
-
# ----------------------------------------------------------------------------
|
2
|
-
# <copyright company="Aspose" file="visual_object_bounds_request.rb">
|
3
|
-
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
|
-
# </copyright>
|
5
|
-
# <summary>
|
6
|
-
# Permission is hereby granted, free of charge, to any person obtaining a
|
7
|
-
# copy of this software and associated documentation files (the "Software"),
|
8
|
-
# to deal in the Software without restriction, including without limitation
|
9
|
-
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
10
|
-
# and/or sell copies of the Software, and to permit persons to whom the
|
11
|
-
# Software is furnished to do so, subject to the following conditions:
|
12
|
-
#
|
13
|
-
# The above copyright notice and this permission notice shall be included in
|
14
|
-
# all copies or substantial portions of the Software.
|
15
|
-
#
|
16
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
22
|
-
# DEALINGS IN THE SOFTWARE.
|
23
|
-
# </summary>
|
24
|
-
# ----------------------------------------------------------------------------
|
25
|
-
|
26
|
-
|
27
|
-
require_relative './imaging_request'
|
28
|
-
require_relative './http_request'
|
29
|
-
|
30
|
-
module AsposeImagingCloud
|
31
|
-
# Request model for visual_object_bounds operation.
|
32
|
-
class VisualObjectBoundsRequest < ImagingRequest
|
33
|
-
|
34
|
-
# Detect objects bounds and draw them on the original image
|
35
|
-
# @param [String] name The image features detector.
|
36
|
-
# @param [String] method Object detection method
|
37
|
-
# @param [Integer] threshold Object detection probability threshold in percents
|
38
|
-
# @param [BOOLEAN] include_class Draw detected objects classes
|
39
|
-
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
-
# @param [String] folder The folder.
|
41
|
-
# @param [String] storage The storage.
|
42
|
-
def initialize(name, method = nil, threshold = nil, include_class = nil, include_score = nil, folder = nil, storage = nil)
|
43
|
-
@name = name
|
44
|
-
@method = method
|
45
|
-
@threshold = threshold
|
46
|
-
@include_class = include_class
|
47
|
-
@include_score = include_score
|
48
|
-
@folder = folder
|
49
|
-
@storage = storage
|
50
|
-
end
|
51
|
-
|
52
|
-
def to_http_info(config)
|
53
|
-
# verify the required parameter 'name' is set
|
54
|
-
if config.client_side_validation && @name.nil?
|
55
|
-
raise ArgumentError, "Missing the required parameter 'name' when calling ImagingApi.visual_object_bounds"
|
56
|
-
end
|
57
|
-
|
58
|
-
# resource path
|
59
|
-
local_var_path = '/imaging/ai/objectdetection/visualbounds'
|
60
|
-
|
61
|
-
# query parameters
|
62
|
-
query_params = {}
|
63
|
-
query_params[:name] = @name
|
64
|
-
query_params[:method] = @method unless @method.nil?
|
65
|
-
query_params[:threshold] = @threshold unless @threshold.nil?
|
66
|
-
query_params[:includeClass] = @include_class unless @include_class.nil?
|
67
|
-
query_params[:includeScore] = @include_score unless @include_score.nil?
|
68
|
-
query_params[:folder] = @folder unless @folder.nil?
|
69
|
-
query_params[:storage] = @storage unless @storage.nil?
|
70
|
-
|
71
|
-
# form parameters
|
72
|
-
form_params = {}
|
73
|
-
|
74
|
-
# http body (model)
|
75
|
-
post_body = nil
|
76
|
-
auth_names = ['JWT']
|
77
|
-
|
78
|
-
# header parameters
|
79
|
-
header_params = {}
|
80
|
-
# HTTP header 'Accept' (if needed)
|
81
|
-
header_params['Accept'] = select_header_accept(['application/json'])
|
82
|
-
# HTTP header 'Content-Type'
|
83
|
-
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
84
|
-
|
85
|
-
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
86
|
-
header_params,
|
87
|
-
query_params,
|
88
|
-
form_params,
|
89
|
-
post_body,
|
90
|
-
auth_names)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|