aspose_imaging_cloud 20.4 → 20.5
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 +15 -6
- data/lib/aspose-imaging-cloud.rb +19 -25
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +33 -1
- data/lib/aspose-imaging-cloud/api_client.rb +1 -1
- data/lib/aspose-imaging-cloud/models/detected_object.rb +228 -0
- data/lib/aspose-imaging-cloud/models/detected_object_list.rb +204 -0
- data/lib/aspose-imaging-cloud/models/rectangle.rb +247 -0
- data/lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +96 -0
- data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +95 -0
- data/lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +0 -1
- data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +94 -0
- metadata +12 -3
@@ -0,0 +1,94 @@
|
|
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
|
+
|
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.5'
|
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-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: |2
|
14
14
|
|
@@ -38,6 +38,8 @@ files:
|
|
38
38
|
- lib/aspose-imaging-cloud/models/bmp_properties.rb
|
39
39
|
- lib/aspose-imaging-cloud/models/convolution_filter_properties.rb
|
40
40
|
- lib/aspose-imaging-cloud/models/deconvolution_filter_properties.rb
|
41
|
+
- lib/aspose-imaging-cloud/models/detected_object.rb
|
42
|
+
- lib/aspose-imaging-cloud/models/detected_object_list.rb
|
41
43
|
- lib/aspose-imaging-cloud/models/dicom_properties.rb
|
42
44
|
- lib/aspose-imaging-cloud/models/disc_usage.rb
|
43
45
|
- lib/aspose-imaging-cloud/models/djvu_properties.rb
|
@@ -69,6 +71,7 @@ files:
|
|
69
71
|
- lib/aspose-imaging-cloud/models/odg_properties.rb
|
70
72
|
- lib/aspose-imaging-cloud/models/png_properties.rb
|
71
73
|
- lib/aspose-imaging-cloud/models/psd_properties.rb
|
74
|
+
- lib/aspose-imaging-cloud/models/rectangle.rb
|
72
75
|
- lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb
|
73
76
|
- lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb
|
74
77
|
- lib/aspose-imaging-cloud/models/requests/compare_images_request.rb
|
@@ -95,10 +98,12 @@ files:
|
|
95
98
|
- lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb
|
96
99
|
- lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb
|
97
100
|
- lib/aspose-imaging-cloud/models/requests/create_modified_wmf_request.rb
|
101
|
+
- lib/aspose-imaging-cloud/models/requests/create_object_bounds_request.rb
|
98
102
|
- lib/aspose-imaging-cloud/models/requests/create_resized_image_request.rb
|
99
103
|
- lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb
|
100
104
|
- lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb
|
101
105
|
- lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb
|
106
|
+
- lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb
|
102
107
|
- lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb
|
103
108
|
- lib/aspose-imaging-cloud/models/requests/crop_image_request.rb
|
104
109
|
- lib/aspose-imaging-cloud/models/requests/delete_file_request.rb
|
@@ -124,7 +129,9 @@ files:
|
|
124
129
|
- lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb
|
125
130
|
- lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb
|
126
131
|
- lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb
|
132
|
+
- lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb
|
127
133
|
- lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb
|
134
|
+
- lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb
|
128
135
|
- lib/aspose-imaging-cloud/models/requests/grayscale_image_request.rb
|
129
136
|
- lib/aspose-imaging-cloud/models/requests/http_request.rb
|
130
137
|
- lib/aspose-imaging-cloud/models/requests/imaging_request.rb
|
@@ -140,6 +147,7 @@ files:
|
|
140
147
|
- lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb
|
141
148
|
- lib/aspose-imaging-cloud/models/requests/move_file_request.rb
|
142
149
|
- lib/aspose-imaging-cloud/models/requests/move_folder_request.rb
|
150
|
+
- lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb
|
143
151
|
- lib/aspose-imaging-cloud/models/requests/object_exists_request.rb
|
144
152
|
- lib/aspose-imaging-cloud/models/requests/resize_image_request.rb
|
145
153
|
- lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb
|
@@ -149,6 +157,7 @@ files:
|
|
149
157
|
- lib/aspose-imaging-cloud/models/requests/update_image_request.rb
|
150
158
|
- lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb
|
151
159
|
- lib/aspose-imaging-cloud/models/requests/upload_file_request.rb
|
160
|
+
- lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb
|
152
161
|
- lib/aspose-imaging-cloud/models/search_context_status.rb
|
153
162
|
- lib/aspose-imaging-cloud/models/search_result.rb
|
154
163
|
- lib/aspose-imaging-cloud/models/search_results_set.rb
|
@@ -175,7 +184,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
175
184
|
requirements:
|
176
185
|
- - ">="
|
177
186
|
- !ruby/object:Gem::Version
|
178
|
-
version:
|
187
|
+
version: 2.5.1
|
179
188
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
189
|
requirements:
|
181
190
|
- - ">="
|