aspose_imaging_cloud 19.12 → 20.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -12
- data/lib/aspose-imaging-cloud.rb +75 -59
- data/lib/aspose-imaging-cloud/api/imaging_api.rb +93 -5
- data/lib/aspose-imaging-cloud/api_client.rb +2 -2
- data/lib/aspose-imaging-cloud/api_error.rb +2 -2
- data/lib/aspose-imaging-cloud/configuration.rb +1 -1
- data/lib/aspose-imaging-cloud/models/big_rectangular_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/bilateral_smoothing_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/bmp_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/convolution_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/deconvolution_filter_properties.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/dicom_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/disc_usage.rb +1 -1
- data/lib/aspose-imaging-cloud/models/djvu_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/dng_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/error.rb +1 -1
- data/lib/aspose-imaging-cloud/models/error_details.rb +1 -1
- data/lib/aspose-imaging-cloud/models/exif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/file_version.rb +1 -1
- data/lib/aspose-imaging-cloud/models/file_versions.rb +1 -1
- data/lib/aspose-imaging-cloud/models/files_list.rb +1 -1
- data/lib/aspose-imaging-cloud/models/files_upload_result.rb +1 -1
- data/lib/aspose-imaging-cloud/models/filter_properties_base.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gauss_wiener_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gaussian_blur_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/gif_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_duplicates.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_duplicates_set.rb +1 -1
- data/lib/aspose-imaging-cloud/models/image_features.rb +1 -1
- data/lib/aspose-imaging-cloud/models/imaging_response.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jfif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg2000_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg_exif_data.rb +1 -1
- data/lib/aspose-imaging-cloud/models/jpeg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/median_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/motion_wiener_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/object_exist.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_metadata.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_page.rb +1 -1
- data/lib/aspose-imaging-cloud/models/odg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/png_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/psd_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/rectangle.rb +247 -0
- data/lib/aspose-imaging-cloud/models/requests/add_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/append_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/compare_images_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/copy_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/copy_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_cropped_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_deskewed_image_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/create_fax_tiff_request.rb +81 -0
- data/lib/aspose-imaging-cloud/models/requests/create_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_grayscaled_image_request.rb +81 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_range_request.rb +121 -0
- data/lib/aspose-imaging-cloud/models/requests/create_image_frame_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/create_image_search_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_image_tag_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_bmp_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_emf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_gif_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg2000_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_jpeg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_psd_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_svg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_web_p_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_modified_wmf_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_resized_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_saved_image_as_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/create_updated_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/create_visual_object_bounds_request.rb +96 -0
- data/lib/aspose-imaging-cloud/models/requests/create_web_site_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/crop_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/delete_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_image_search_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/delete_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/deskew_image_request.rb +91 -0
- data/lib/aspose-imaging-cloud/models/requests/download_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/extract_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/extract_image_frame_properties_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/extract_image_properties_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/filter_effect_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/find_image_duplicates_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/find_images_by_tags_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/find_similar_images_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_disc_usage_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_file_versions_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_files_list_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_properties_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_range_request.rb +120 -0
- data/lib/aspose-imaging-cloud/models/requests/get_image_frame_request.rb +2 -2
- data/lib/aspose-imaging-cloud/models/requests/get_image_properties_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_image_search_status_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_object_bounds_request.rb +92 -0
- data/lib/aspose-imaging-cloud/models/requests/get_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/get_visual_object_bounds_request.rb +95 -0
- data/lib/aspose-imaging-cloud/models/requests/grayscale_image_request.rb +80 -0
- data/lib/aspose-imaging-cloud/models/requests/http_request.rb +2 -1
- data/lib/aspose-imaging-cloud/models/requests/imaging_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_bmp_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_emf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_gif_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg2000_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_jpeg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_psd_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_svg_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_tiff_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_web_p_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/modify_wmf_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/move_file_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/move_folder_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/object_bounds_request.rb +93 -0
- data/lib/aspose-imaging-cloud/models/requests/object_exists_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/resize_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/rotate_flip_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/save_image_as_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/storage_exists_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/update_image_features_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/update_image_request.rb +5 -10
- data/lib/aspose-imaging-cloud/models/requests/update_search_image_request.rb +1 -1
- data/lib/aspose-imaging-cloud/models/requests/upload_file_request.rb +1 -2
- data/lib/aspose-imaging-cloud/models/requests/visual_object_bounds_request.rb +94 -0
- data/lib/aspose-imaging-cloud/models/search_context_status.rb +1 -1
- data/lib/aspose-imaging-cloud/models/search_result.rb +1 -1
- data/lib/aspose-imaging-cloud/models/search_results_set.rb +1 -1
- data/lib/aspose-imaging-cloud/models/sharpen_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/small_rectangular_filter_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/storage_exist.rb +1 -1
- data/lib/aspose-imaging-cloud/models/storage_file.rb +1 -1
- data/lib/aspose-imaging-cloud/models/svg_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_frame.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_options.rb +1 -1
- data/lib/aspose-imaging-cloud/models/tiff_properties.rb +1 -1
- data/lib/aspose-imaging-cloud/models/web_p_properties.rb +1 -1
- metadata +23 -5
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_image_frame_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -31,7 +31,7 @@ module AsposeImagingCloud
|
|
31
31
|
# Request model for create_image_frame operation.
|
32
32
|
class CreateImageFrameRequest < ImagingRequest
|
33
33
|
|
34
|
-
# Get separate frame from existing
|
34
|
+
# Get separate frame 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] frame_id Number of a frame.
|
37
37
|
# @param [Integer] new_width New width.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_image_search_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_image_tag_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_bmp_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_emf_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_gif_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_jpeg2000_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_jpeg_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_psd_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_svg_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_tiff_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_web_p_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_modified_wmf_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="create_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 create_object_bounds operation.
|
32
|
+
class CreateObjectBoundsRequest < ImagingRequest
|
33
|
+
|
34
|
+
# Detects objects bounds. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
|
35
|
+
# @param [File] image_data Input image
|
36
|
+
# @param [String] method Object detection method
|
37
|
+
# @param [Integer] threshold Object detection probability threshold in percents
|
38
|
+
# @param [BOOLEAN] include_label Draw detected objects labels
|
39
|
+
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
+
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
|
41
|
+
# @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)
|
43
|
+
@image_data = image_data
|
44
|
+
@method = method
|
45
|
+
@threshold = threshold
|
46
|
+
@include_label = include_label
|
47
|
+
@include_score = include_score
|
48
|
+
@out_path = out_path
|
49
|
+
@storage = storage
|
50
|
+
end
|
51
|
+
|
52
|
+
def to_http_info(config)
|
53
|
+
# verify the required parameter 'image_data' is set
|
54
|
+
if config.client_side_validation && @image_data.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_object_bounds"
|
56
|
+
end
|
57
|
+
|
58
|
+
# resource path
|
59
|
+
local_var_path = '/imaging/ai/objectdetection/bounds'
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
query_params[:method] = @method unless @method.nil?
|
64
|
+
query_params[:threshold] = @threshold unless @threshold.nil?
|
65
|
+
query_params[:includeLabel] = @include_label unless @include_label.nil?
|
66
|
+
query_params[:includeScore] = @include_score unless @include_score.nil?
|
67
|
+
query_params[:outPath] = @out_path unless @out_path.nil?
|
68
|
+
query_params[:storage] = @storage unless @storage.nil?
|
69
|
+
|
70
|
+
# form parameters
|
71
|
+
form_params = {}
|
72
|
+
form_params['imageData'] = @image_data
|
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(['multipart/form-data'])
|
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
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_resized_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -33,16 +33,16 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Resize an 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
|
-
# @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
36
|
# @param [Integer] new_width New width.
|
38
37
|
# @param [Integer] new_height New height.
|
38
|
+
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
39
39
|
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image).
|
40
40
|
# @param [String] storage Your Aspose Cloud Storage name.
|
41
|
-
def initialize(image_data,
|
41
|
+
def initialize(image_data, new_width, new_height, format = nil, out_path = nil, storage = nil)
|
42
42
|
@image_data = image_data
|
43
|
-
@format = format
|
44
43
|
@new_width = new_width
|
45
44
|
@new_height = new_height
|
45
|
+
@format = format
|
46
46
|
@out_path = out_path
|
47
47
|
@storage = storage
|
48
48
|
end
|
@@ -53,11 +53,6 @@ module AsposeImagingCloud
|
|
53
53
|
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_resized_image"
|
54
54
|
end
|
55
55
|
|
56
|
-
# verify the required parameter 'format' is set
|
57
|
-
if config.client_side_validation && @format.nil?
|
58
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.create_resized_image"
|
59
|
-
end
|
60
|
-
|
61
56
|
# verify the required parameter 'new_width' is set
|
62
57
|
if config.client_side_validation && @new_width.nil?
|
63
58
|
raise ArgumentError, "Missing the required parameter 'new_width' when calling ImagingApi.create_resized_image"
|
@@ -73,9 +68,9 @@ module AsposeImagingCloud
|
|
73
68
|
|
74
69
|
# query parameters
|
75
70
|
query_params = {}
|
76
|
-
query_params[:format] = @format
|
77
71
|
query_params[:newWidth] = @new_width
|
78
72
|
query_params[:newHeight] = @new_height
|
73
|
+
query_params[:format] = @format unless @format.nil?
|
79
74
|
query_params[:outPath] = @out_path unless @out_path.nil?
|
80
75
|
query_params[:storage] = @storage unless @storage.nil?
|
81
76
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_rotate_flipped_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -33,14 +33,14 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Rotate and/or flip an 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
|
-
# @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
36
|
# @param [String] method RotateFlip method (Rotate180FlipNone, Rotate180FlipX, Rotate180FlipXY, Rotate180FlipY, Rotate270FlipNone, Rotate270FlipX, Rotate270FlipXY, Rotate270FlipY, Rotate90FlipNone, Rotate90FlipX, Rotate90FlipXY, Rotate90FlipY, RotateNoneFlipNone, RotateNoneFlipX, RotateNoneFlipXY, RotateNoneFlipY).
|
37
|
+
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
38
38
|
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image).
|
39
39
|
# @param [String] storage Your Aspose Cloud Storage name.
|
40
|
-
def initialize(image_data,
|
40
|
+
def initialize(image_data, method, format = nil, out_path = nil, storage = nil)
|
41
41
|
@image_data = image_data
|
42
|
-
@format = format
|
43
42
|
@method = method
|
43
|
+
@format = format
|
44
44
|
@out_path = out_path
|
45
45
|
@storage = storage
|
46
46
|
end
|
@@ -51,11 +51,6 @@ module AsposeImagingCloud
|
|
51
51
|
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_rotate_flipped_image"
|
52
52
|
end
|
53
53
|
|
54
|
-
# verify the required parameter 'format' is set
|
55
|
-
if config.client_side_validation && @format.nil?
|
56
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.create_rotate_flipped_image"
|
57
|
-
end
|
58
|
-
|
59
54
|
# verify the required parameter 'method' is set
|
60
55
|
if config.client_side_validation && @method.nil?
|
61
56
|
raise ArgumentError, "Missing the required parameter 'method' when calling ImagingApi.create_rotate_flipped_image"
|
@@ -66,8 +61,8 @@ module AsposeImagingCloud
|
|
66
61
|
|
67
62
|
# query parameters
|
68
63
|
query_params = {}
|
69
|
-
query_params[:format] = @format
|
70
64
|
query_params[:method] = @method
|
65
|
+
query_params[:format] = @format unless @format.nil?
|
71
66
|
query_params[:outPath] = @out_path unless @out_path.nil?
|
72
67
|
query_params[:storage] = @storage unless @storage.nil?
|
73
68
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_saved_image_as_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ----------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose" file="create_updated_image_request.rb">
|
3
|
-
# Copyright (c) 2018-
|
3
|
+
# Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a
|
@@ -33,7 +33,6 @@ module AsposeImagingCloud
|
|
33
33
|
|
34
34
|
# Perform scaling, cropping and flipping of an image in a single request. 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
|
-
# @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
36
|
# @param [Integer] new_width New width of the scaled image.
|
38
37
|
# @param [Integer] new_height New height of the scaled image.
|
39
38
|
# @param [Integer] x X position of start point for cropping rectangle.
|
@@ -41,11 +40,11 @@ module AsposeImagingCloud
|
|
41
40
|
# @param [Integer] rect_width Width of cropping rectangle.
|
42
41
|
# @param [Integer] rect_height Height of cropping rectangle.
|
43
42
|
# @param [String] rotate_flip_method RotateFlip method (Rotate180FlipNone, Rotate180FlipX, Rotate180FlipXY, Rotate180FlipY, Rotate270FlipNone, Rotate270FlipX, Rotate270FlipXY, Rotate270FlipY, Rotate90FlipNone, Rotate90FlipX, Rotate90FlipXY, Rotate90FlipY, RotateNoneFlipNone, RotateNoneFlipX, RotateNoneFlipXY, RotateNoneFlipY). Default is RotateNoneFlipNone.
|
43
|
+
# @param [String] format Resulting image format. Please, refer to https://docs.aspose.cloud/display/imagingcloud/Supported+File+Formats#SupportedFileFormats-CommonOperationsFormatSupportMap for possible use-cases.
|
44
44
|
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image).
|
45
45
|
# @param [String] storage Your Aspose Cloud Storage name.
|
46
|
-
def initialize(image_data,
|
46
|
+
def initialize(image_data, new_width, new_height, x, y, rect_width, rect_height, rotate_flip_method, format = nil, out_path = nil, storage = nil)
|
47
47
|
@image_data = image_data
|
48
|
-
@format = format
|
49
48
|
@new_width = new_width
|
50
49
|
@new_height = new_height
|
51
50
|
@x = x
|
@@ -53,6 +52,7 @@ module AsposeImagingCloud
|
|
53
52
|
@rect_width = rect_width
|
54
53
|
@rect_height = rect_height
|
55
54
|
@rotate_flip_method = rotate_flip_method
|
55
|
+
@format = format
|
56
56
|
@out_path = out_path
|
57
57
|
@storage = storage
|
58
58
|
end
|
@@ -63,11 +63,6 @@ module AsposeImagingCloud
|
|
63
63
|
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_updated_image"
|
64
64
|
end
|
65
65
|
|
66
|
-
# verify the required parameter 'format' is set
|
67
|
-
if config.client_side_validation && @format.nil?
|
68
|
-
raise ArgumentError, "Missing the required parameter 'format' when calling ImagingApi.create_updated_image"
|
69
|
-
end
|
70
|
-
|
71
66
|
# verify the required parameter 'new_width' is set
|
72
67
|
if config.client_side_validation && @new_width.nil?
|
73
68
|
raise ArgumentError, "Missing the required parameter 'new_width' when calling ImagingApi.create_updated_image"
|
@@ -108,7 +103,6 @@ module AsposeImagingCloud
|
|
108
103
|
|
109
104
|
# query parameters
|
110
105
|
query_params = {}
|
111
|
-
query_params[:format] = @format
|
112
106
|
query_params[:newWidth] = @new_width
|
113
107
|
query_params[:newHeight] = @new_height
|
114
108
|
query_params[:x] = @x
|
@@ -116,6 +110,7 @@ module AsposeImagingCloud
|
|
116
110
|
query_params[:rectWidth] = @rect_width
|
117
111
|
query_params[:rectHeight] = @rect_height
|
118
112
|
query_params[:rotateFlipMethod] = @rotate_flip_method
|
113
|
+
query_params[:format] = @format unless @format.nil?
|
119
114
|
query_params[:outPath] = @out_path unless @out_path.nil?
|
120
115
|
query_params[:storage] = @storage unless @storage.nil?
|
121
116
|
|
@@ -0,0 +1,96 @@
|
|
1
|
+
# ----------------------------------------------------------------------------
|
2
|
+
# <copyright company="Aspose" file="create_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 create_visual_object_bounds operation.
|
32
|
+
class CreateVisualObjectBoundsRequest < ImagingRequest
|
33
|
+
|
34
|
+
# Detects objects bounds and draw them on the original image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream
|
35
|
+
# @param [File] image_data Input image
|
36
|
+
# @param [String] method Object detection method
|
37
|
+
# @param [Integer] threshold Object detection probability threshold in percents
|
38
|
+
# @param [BOOLEAN] include_label Draw detected objects classes
|
39
|
+
# @param [BOOLEAN] include_score Draw detected objects scores
|
40
|
+
# @param [String] color Bounds, labels, and scores text color
|
41
|
+
# @param [String] out_path Path to updated file (if this is empty, response contains streamed image)
|
42
|
+
# @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)
|
44
|
+
@image_data = image_data
|
45
|
+
@method = method
|
46
|
+
@threshold = threshold
|
47
|
+
@include_label = include_label
|
48
|
+
@include_score = include_score
|
49
|
+
@color = color
|
50
|
+
@out_path = out_path
|
51
|
+
@storage = storage
|
52
|
+
end
|
53
|
+
|
54
|
+
def to_http_info(config)
|
55
|
+
# verify the required parameter 'image_data' is set
|
56
|
+
if config.client_side_validation && @image_data.nil?
|
57
|
+
raise ArgumentError, "Missing the required parameter 'image_data' when calling ImagingApi.create_visual_object_bounds"
|
58
|
+
end
|
59
|
+
|
60
|
+
# resource path
|
61
|
+
local_var_path = '/imaging/ai/objectdetection/visualbounds'
|
62
|
+
|
63
|
+
# query parameters
|
64
|
+
query_params = {}
|
65
|
+
query_params[:method] = @method unless @method.nil?
|
66
|
+
query_params[:threshold] = @threshold unless @threshold.nil?
|
67
|
+
query_params[:includeLabel] = @include_label unless @include_label.nil?
|
68
|
+
query_params[:includeScore] = @include_score unless @include_score.nil?
|
69
|
+
query_params[:color] = @color unless @color.nil?
|
70
|
+
query_params[:outPath] = @out_path unless @out_path.nil?
|
71
|
+
query_params[:storage] = @storage unless @storage.nil?
|
72
|
+
|
73
|
+
# form parameters
|
74
|
+
form_params = {}
|
75
|
+
form_params['imageData'] = @image_data
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
post_body = nil
|
79
|
+
auth_names = ['JWT']
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = {}
|
83
|
+
# HTTP header 'Accept' (if needed)
|
84
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
85
|
+
# HTTP header 'Content-Type'
|
86
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
87
|
+
|
88
|
+
AsposeImagingCloud::HttpRequest.new(local_var_path,
|
89
|
+
header_params,
|
90
|
+
query_params,
|
91
|
+
form_params,
|
92
|
+
post_body,
|
93
|
+
auth_names)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|