aspose_imaging_cloud 20.4 → 20.5

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: 5d46eef69f92f400060326401f8ccb6c29b25e0d7e27cd909a50fa004896cab1
4
- data.tar.gz: 348829aefd13171c6e3e71d5c26feccf5e6e9b3460babfbdc77f28b5f320e32e
3
+ metadata.gz: d2857535b2bf1f5bd09cb9635e1d8fcf407854d9288d1cc9a227f7f9928b3fae
4
+ data.tar.gz: 751c33587e825c4ebb37f24cfe2f5e485e3205659bf62b015c50baa9303e729e
5
5
  SHA512:
6
- metadata.gz: ed8adaadb408a8de46989eaff2adaf8699e1bf416cf2d865a52d229147e466f3b1331088dafc43d8741e39e4491e18048a9fa81022ce4eab046f60474fd4f3e9
7
- data.tar.gz: cce3a7350807638bac4649e8ffab6de39ddd10d7aa76d23b0f8c974c7c234d85ae5986194efc43fd687f343b686cc316f7b3c8f8ab0d0131c2dd75fc4f773486
6
+ metadata.gz: 33afd3fdfaa74ff3ad5108128b22e86ef6442ddb5cccc8183cd80adf1aa3057708206c5641be8f9a71c43c772169c802b0e36131d8934ce9cee67d8113a9eefb
7
+ data.tar.gz: 73f075fccc69946452f4aef137956e9bc4be8624124596324371ef1d7988aa217d3bce7953a7e77a14806de2a2e33ca6e9289ac5514e87ef55cd01f5c723c7ec
data/README.md CHANGED
@@ -31,7 +31,7 @@ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.or
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'aspose-imaging-cloud', '~> 20.4'
34
+ gem 'aspose-imaging-cloud', '~> 20.5'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -83,7 +83,7 @@ end
83
83
 
84
84
  ## Documentation for API Endpoints
85
85
 
86
- All URIs are relative to *https://localhost:57972/v3.0*
86
+ All URIs are relative to *https://api.aspose.cloud/v3.0*
87
87
 
88
88
  Class | Method | HTTP request | Description
89
89
  ------------ | ------------- | ------------- | -------------
@@ -99,7 +99,8 @@ Class | Method | HTTP request | Description
99
99
  *AsposeImagingCloud::ImagingApi* | [**create_folder**](docs/ImagingApi.md#create_folder) | **PUT** /imaging/storage/folder/{path} | Create the folder
100
100
  *AsposeImagingCloud::ImagingApi* | [**create_grayscaled_image**](docs/ImagingApi.md#create_grayscaled_image) | **POST** /imaging/grayscale | Grayscales an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
101
101
  *AsposeImagingCloud::ImagingApi* | [**create_image_features**](docs/ImagingApi.md#create_image_features) | **POST** /imaging/ai/imageSearch/{searchContextId}/features | Extract images features and add them to search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
102
- *AsposeImagingCloud::ImagingApi* | [**create_image_frame**](docs/ImagingApi.md#create_image_frame) | **POST** /imaging/frames/{frameId} | Get separate frame from existing TIFF image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
102
+ *AsposeImagingCloud::ImagingApi* | [**create_image_frame**](docs/ImagingApi.md#create_image_frame) | **POST** /imaging/frames/{frameId} | Get separate frame from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
103
+ *AsposeImagingCloud::ImagingApi* | [**create_image_frame_range**](docs/ImagingApi.md#create_image_frame_range) | **POST** /imaging/frames/range | Get separate frame from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
103
104
  *AsposeImagingCloud::ImagingApi* | [**create_image_search**](docs/ImagingApi.md#create_image_search) | **POST** /imaging/ai/imageSearch/create | Create new search context.
104
105
  *AsposeImagingCloud::ImagingApi* | [**create_image_tag**](docs/ImagingApi.md#create_image_tag) | **POST** /imaging/ai/imageSearch/{searchContextId}/addTag | Add tag and reference image to search context. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
105
106
  *AsposeImagingCloud::ImagingApi* | [**create_modified_bmp**](docs/ImagingApi.md#create_modified_bmp) | **POST** /imaging/bmp | Update parameters of BMP image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
@@ -112,10 +113,12 @@ Class | Method | HTTP request | Description
112
113
  *AsposeImagingCloud::ImagingApi* | [**create_modified_tiff**](docs/ImagingApi.md#create_modified_tiff) | **POST** /imaging/tiff | Update parameters of TIFF image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
113
114
  *AsposeImagingCloud::ImagingApi* | [**create_modified_web_p**](docs/ImagingApi.md#create_modified_web_p) | **POST** /imaging/webp | Update parameters of WEBP image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
114
115
  *AsposeImagingCloud::ImagingApi* | [**create_modified_wmf**](docs/ImagingApi.md#create_modified_wmf) | **POST** /imaging/wmf | Process existing WMF image using given parameters. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
116
+ *AsposeImagingCloud::ImagingApi* | [**create_object_bounds**](docs/ImagingApi.md#create_object_bounds) | **POST** /imaging/ai/objectdetection/bounds | Detects objects bounds. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
115
117
  *AsposeImagingCloud::ImagingApi* | [**create_resized_image**](docs/ImagingApi.md#create_resized_image) | **POST** /imaging/resize | Resize an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
116
118
  *AsposeImagingCloud::ImagingApi* | [**create_rotate_flipped_image**](docs/ImagingApi.md#create_rotate_flipped_image) | **POST** /imaging/rotateflip | Rotate and/or flip an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
117
119
  *AsposeImagingCloud::ImagingApi* | [**create_saved_image_as**](docs/ImagingApi.md#create_saved_image_as) | **POST** /imaging/saveAs | Export existing image to another format. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
118
120
  *AsposeImagingCloud::ImagingApi* | [**create_updated_image**](docs/ImagingApi.md#create_updated_image) | **POST** /imaging/updateImage | 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.
121
+ *AsposeImagingCloud::ImagingApi* | [**create_visual_object_bounds**](docs/ImagingApi.md#create_visual_object_bounds) | **POST** /imaging/ai/objectdetection/visualbounds | Detect objects bounds and draw them on the original image
119
122
  *AsposeImagingCloud::ImagingApi* | [**create_web_site_image_features**](docs/ImagingApi.md#create_web_site_image_features) | **POST** /imaging/ai/imageSearch/{searchContextId}/features/web | Extract images features from web page and add them to search context
120
123
  *AsposeImagingCloud::ImagingApi* | [**crop_image**](docs/ImagingApi.md#crop_image) | **GET** /imaging/{name}/crop | Crop an existing image.
121
124
  *AsposeImagingCloud::ImagingApi* | [**delete_file**](docs/ImagingApi.md#delete_file) | **DELETE** /imaging/storage/file/{path} | Delete file
@@ -126,7 +129,7 @@ Class | Method | HTTP request | Description
126
129
  *AsposeImagingCloud::ImagingApi* | [**deskew_image**](docs/ImagingApi.md#deskew_image) | **GET** /imaging/{name}/deskew | Deskew an existing image.
127
130
  *AsposeImagingCloud::ImagingApi* | [**download_file**](docs/ImagingApi.md#download_file) | **GET** /imaging/storage/file/{path} | Download file
128
131
  *AsposeImagingCloud::ImagingApi* | [**extract_image_features**](docs/ImagingApi.md#extract_image_features) | **GET** /imaging/ai/imageSearch/{searchContextId}/image2features | Extract features from image without adding to search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
129
- *AsposeImagingCloud::ImagingApi* | [**extract_image_frame_properties**](docs/ImagingApi.md#extract_image_frame_properties) | **POST** /imaging/frames/{frameId}/properties | Get separate frame properties of existing TIFF image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
132
+ *AsposeImagingCloud::ImagingApi* | [**extract_image_frame_properties**](docs/ImagingApi.md#extract_image_frame_properties) | **POST** /imaging/frames/{frameId}/properties | Get separate frame properties of existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
130
133
  *AsposeImagingCloud::ImagingApi* | [**extract_image_properties**](docs/ImagingApi.md#extract_image_properties) | **POST** /imaging/properties | Get properties of an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
131
134
  *AsposeImagingCloud::ImagingApi* | [**filter_effect_image**](docs/ImagingApi.md#filter_effect_image) | **PUT** /imaging/{name}/filterEffect | Apply filtering effects to an existing image.
132
135
  *AsposeImagingCloud::ImagingApi* | [**find_image_duplicates**](docs/ImagingApi.md#find_image_duplicates) | **GET** /imaging/ai/imageSearch/{searchContextId}/findDuplicates | Find images duplicates.
@@ -136,8 +139,9 @@ Class | Method | HTTP request | Description
136
139
  *AsposeImagingCloud::ImagingApi* | [**get_file_versions**](docs/ImagingApi.md#get_file_versions) | **GET** /imaging/storage/version/{path} | Get file versions
137
140
  *AsposeImagingCloud::ImagingApi* | [**get_files_list**](docs/ImagingApi.md#get_files_list) | **GET** /imaging/storage/folder/{path} | Get all files and folders within a folder
138
141
  *AsposeImagingCloud::ImagingApi* | [**get_image_features**](docs/ImagingApi.md#get_image_features) | **GET** /imaging/ai/imageSearch/{searchContextId}/features | Gets image features from search context.
139
- *AsposeImagingCloud::ImagingApi* | [**get_image_frame**](docs/ImagingApi.md#get_image_frame) | **GET** /imaging/{name}/frames/{frameId} | Get separate frame from existing TIFF image.
140
- *AsposeImagingCloud::ImagingApi* | [**get_image_frame_properties**](docs/ImagingApi.md#get_image_frame_properties) | **GET** /imaging/{name}/frames/{frameId}/properties | Get separate frame properties of existing TIFF image.
142
+ *AsposeImagingCloud::ImagingApi* | [**get_image_frame**](docs/ImagingApi.md#get_image_frame) | **GET** /imaging/{name}/frames/{frameId} | Get separate frame from existing image.
143
+ *AsposeImagingCloud::ImagingApi* | [**get_image_frame_properties**](docs/ImagingApi.md#get_image_frame_properties) | **GET** /imaging/{name}/frames/{frameId}/properties | Get separate frame properties of existing image.
144
+ *AsposeImagingCloud::ImagingApi* | [**get_image_frame_range**](docs/ImagingApi.md#get_image_frame_range) | **GET** /imaging/{name}/frames/range | Get frames range from existing image.
141
145
  *AsposeImagingCloud::ImagingApi* | [**get_image_properties**](docs/ImagingApi.md#get_image_properties) | **GET** /imaging/{name}/properties | Get properties of an image.
142
146
  *AsposeImagingCloud::ImagingApi* | [**get_image_search_status**](docs/ImagingApi.md#get_image_search_status) | **GET** /imaging/ai/imageSearch/{searchContextId}/status | Gets the search context status.
143
147
  *AsposeImagingCloud::ImagingApi* | [**get_search_image**](docs/ImagingApi.md#get_search_image) | **GET** /imaging/ai/imageSearch/{searchContextId}/image | Get image from search context
@@ -154,6 +158,7 @@ Class | Method | HTTP request | Description
154
158
  *AsposeImagingCloud::ImagingApi* | [**modify_wmf**](docs/ImagingApi.md#modify_wmf) | **GET** /imaging/{name}/wmf | Process existing WMF image using given parameters.
155
159
  *AsposeImagingCloud::ImagingApi* | [**move_file**](docs/ImagingApi.md#move_file) | **PUT** /imaging/storage/file/move/{srcPath} | Move file
156
160
  *AsposeImagingCloud::ImagingApi* | [**move_folder**](docs/ImagingApi.md#move_folder) | **PUT** /imaging/storage/folder/move/{srcPath} | Move folder
161
+ *AsposeImagingCloud::ImagingApi* | [**object_bounds**](docs/ImagingApi.md#object_bounds) | **GET** /imaging/ai/objectdetection/bounds | Detect objects' bounds
157
162
  *AsposeImagingCloud::ImagingApi* | [**object_exists**](docs/ImagingApi.md#object_exists) | **GET** /imaging/storage/exist/{path} | Check if file or folder exists
158
163
  *AsposeImagingCloud::ImagingApi* | [**resize_image**](docs/ImagingApi.md#resize_image) | **GET** /imaging/{name}/resize | Resize an existing image.
159
164
  *AsposeImagingCloud::ImagingApi* | [**rotate_flip_image**](docs/ImagingApi.md#rotate_flip_image) | **GET** /imaging/{name}/rotateflip | Rotate and/or flip an existing image.
@@ -163,11 +168,14 @@ Class | Method | HTTP request | Description
163
168
  *AsposeImagingCloud::ImagingApi* | [**update_image_features**](docs/ImagingApi.md#update_image_features) | **PUT** /imaging/ai/imageSearch/{searchContextId}/features | Update images features in search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
164
169
  *AsposeImagingCloud::ImagingApi* | [**update_search_image**](docs/ImagingApi.md#update_search_image) | **PUT** /imaging/ai/imageSearch/{searchContextId}/image | Update image and images features in search context. Image data may be passed as zero-indexed multipart/form-data content or as raw body stream.
165
170
  *AsposeImagingCloud::ImagingApi* | [**upload_file**](docs/ImagingApi.md#upload_file) | **PUT** /imaging/storage/file/{path} | Upload file
171
+ *AsposeImagingCloud::ImagingApi* | [**visual_object_bounds**](docs/ImagingApi.md#visual_object_bounds) | **GET** /imaging/ai/objectdetection/visualbounds | Detect objects bounds and draw them on the original image
166
172
 
167
173
 
168
174
  ## Documentation for Models
169
175
 
170
176
  - [AsposeImagingCloud::BmpProperties](docs/BmpProperties.md)
177
+ - [AsposeImagingCloud::DetectedObject](docs/DetectedObject.md)
178
+ - [AsposeImagingCloud::DetectedObjectList](docs/DetectedObjectList.md)
171
179
  - [AsposeImagingCloud::DicomProperties](docs/DicomProperties.md)
172
180
  - [AsposeImagingCloud::DiscUsage](docs/DiscUsage.md)
173
181
  - [AsposeImagingCloud::DjvuProperties](docs/DjvuProperties.md)
@@ -193,6 +201,7 @@ Class | Method | HTTP request | Description
193
201
  - [AsposeImagingCloud::OdgProperties](docs/OdgProperties.md)
194
202
  - [AsposeImagingCloud::PngProperties](docs/PngProperties.md)
195
203
  - [AsposeImagingCloud::PsdProperties](docs/PsdProperties.md)
204
+ - [AsposeImagingCloud::Rectangle](docs/Rectangle.md)
196
205
  - [AsposeImagingCloud::SearchContextStatus](docs/SearchContextStatus.md)
197
206
  - [AsposeImagingCloud::SearchResult](docs/SearchResult.md)
198
207
  - [AsposeImagingCloud::SearchResultsSet](docs/SearchResultsSet.md)
@@ -32,6 +32,8 @@ require_relative './aspose-imaging-cloud/configuration'
32
32
 
33
33
  # Models
34
34
  require_relative './aspose-imaging-cloud/models/bmp_properties'
35
+ require_relative './aspose-imaging-cloud/models/detected_object'
36
+ require_relative './aspose-imaging-cloud/models/detected_object_list'
35
37
  require_relative './aspose-imaging-cloud/models/dicom_properties'
36
38
  require_relative './aspose-imaging-cloud/models/disc_usage'
37
39
  require_relative './aspose-imaging-cloud/models/djvu_properties'
@@ -57,6 +59,7 @@ require_relative './aspose-imaging-cloud/models/odg_page'
57
59
  require_relative './aspose-imaging-cloud/models/odg_properties'
58
60
  require_relative './aspose-imaging-cloud/models/png_properties'
59
61
  require_relative './aspose-imaging-cloud/models/psd_properties'
62
+ require_relative './aspose-imaging-cloud/models/rectangle'
60
63
  require_relative './aspose-imaging-cloud/models/search_context_status'
61
64
  require_relative './aspose-imaging-cloud/models/search_result'
62
65
  require_relative './aspose-imaging-cloud/models/search_results_set'
@@ -89,19 +92,18 @@ require_relative './aspose-imaging-cloud/models/requests/add_search_image_reques
89
92
  require_relative './aspose-imaging-cloud/models/requests/append_tiff_request'
90
93
  require_relative './aspose-imaging-cloud/models/requests/compare_images_request'
91
94
  require_relative './aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request'
92
- require_relative './aspose-imaging-cloud/models/requests/create_fax_tiff_request'
93
- require_relative './aspose-imaging-cloud/models/requests/find_similar_images_request'
94
95
  require_relative './aspose-imaging-cloud/models/requests/copy_file_request'
95
96
  require_relative './aspose-imaging-cloud/models/requests/copy_folder_request'
96
97
  require_relative './aspose-imaging-cloud/models/requests/create_cropped_image_request'
97
98
  require_relative './aspose-imaging-cloud/models/requests/create_deskewed_image_request'
99
+ require_relative './aspose-imaging-cloud/models/requests/create_fax_tiff_request'
98
100
  require_relative './aspose-imaging-cloud/models/requests/create_folder_request'
99
101
  require_relative './aspose-imaging-cloud/models/requests/create_grayscaled_image_request'
100
102
  require_relative './aspose-imaging-cloud/models/requests/create_image_features_request'
103
+ require_relative './aspose-imaging-cloud/models/requests/create_image_frame_range_request'
101
104
  require_relative './aspose-imaging-cloud/models/requests/create_image_frame_request'
102
105
  require_relative './aspose-imaging-cloud/models/requests/create_image_search_request'
103
106
  require_relative './aspose-imaging-cloud/models/requests/create_image_tag_request'
104
- require_relative './aspose-imaging-cloud/models/requests/move_file_request'
105
107
  require_relative './aspose-imaging-cloud/models/requests/create_modified_bmp_request'
106
108
  require_relative './aspose-imaging-cloud/models/requests/create_modified_emf_request'
107
109
  require_relative './aspose-imaging-cloud/models/requests/create_modified_gif_request'
@@ -112,11 +114,12 @@ require_relative './aspose-imaging-cloud/models/requests/create_modified_svg_req
112
114
  require_relative './aspose-imaging-cloud/models/requests/create_modified_tiff_request'
113
115
  require_relative './aspose-imaging-cloud/models/requests/create_modified_web_p_request'
114
116
  require_relative './aspose-imaging-cloud/models/requests/create_modified_wmf_request'
115
- require_relative './aspose-imaging-cloud/models/requests/find_image_duplicates_request'
117
+ require_relative './aspose-imaging-cloud/models/requests/create_object_bounds_request'
116
118
  require_relative './aspose-imaging-cloud/models/requests/create_resized_image_request'
117
119
  require_relative './aspose-imaging-cloud/models/requests/create_rotate_flipped_image_request'
118
120
  require_relative './aspose-imaging-cloud/models/requests/create_saved_image_as_request'
119
121
  require_relative './aspose-imaging-cloud/models/requests/create_updated_image_request'
122
+ require_relative './aspose-imaging-cloud/models/requests/create_visual_object_bounds_request'
120
123
  require_relative './aspose-imaging-cloud/models/requests/create_web_site_image_features_request'
121
124
  require_relative './aspose-imaging-cloud/models/requests/crop_image_request'
122
125
  require_relative './aspose-imaging-cloud/models/requests/delete_file_request'
@@ -127,22 +130,25 @@ require_relative './aspose-imaging-cloud/models/requests/delete_search_image_req
127
130
  require_relative './aspose-imaging-cloud/models/requests/deskew_image_request'
128
131
  require_relative './aspose-imaging-cloud/models/requests/download_file_request'
129
132
  require_relative './aspose-imaging-cloud/models/requests/extract_image_features_request'
133
+ require_relative './aspose-imaging-cloud/models/requests/extract_image_frame_properties_request'
130
134
  require_relative './aspose-imaging-cloud/models/requests/extract_image_properties_request'
131
- require_relative './aspose-imaging-cloud/models/requests/modify_gif_request'
132
- require_relative './aspose-imaging-cloud/models/requests/get_image_frame_range_request'
133
- require_relative './aspose-imaging-cloud/models/requests/object_exists_request'
134
- require_relative './aspose-imaging-cloud/models/requests/create_modified_web_p_request'
135
+ require_relative './aspose-imaging-cloud/models/requests/filter_effect_image_request'
136
+ require_relative './aspose-imaging-cloud/models/requests/find_images_by_tags_request'
137
+ require_relative './aspose-imaging-cloud/models/requests/find_image_duplicates_request'
138
+ require_relative './aspose-imaging-cloud/models/requests/find_similar_images_request'
135
139
  require_relative './aspose-imaging-cloud/models/requests/get_disc_usage_request'
136
140
  require_relative './aspose-imaging-cloud/models/requests/get_files_list_request'
137
141
  require_relative './aspose-imaging-cloud/models/requests/get_file_versions_request'
138
142
  require_relative './aspose-imaging-cloud/models/requests/get_image_features_request'
139
143
  require_relative './aspose-imaging-cloud/models/requests/get_image_frame_properties_request'
144
+ require_relative './aspose-imaging-cloud/models/requests/get_image_frame_range_request'
140
145
  require_relative './aspose-imaging-cloud/models/requests/get_image_frame_request'
141
146
  require_relative './aspose-imaging-cloud/models/requests/get_image_properties_request'
142
147
  require_relative './aspose-imaging-cloud/models/requests/get_image_search_status_request'
148
+ require_relative './aspose-imaging-cloud/models/requests/get_object_bounds_request'
143
149
  require_relative './aspose-imaging-cloud/models/requests/get_search_image_request'
150
+ require_relative './aspose-imaging-cloud/models/requests/get_visual_object_bounds_request'
144
151
  require_relative './aspose-imaging-cloud/models/requests/grayscale_image_request'
145
- require_relative './aspose-imaging-cloud/models/requests/extract_image_frame_properties_request'
146
152
  require_relative './aspose-imaging-cloud/models/requests/http_request'
147
153
  require_relative './aspose-imaging-cloud/models/requests/imaging_request'
148
154
  require_relative './aspose-imaging-cloud/models/requests/modify_bmp_request'
@@ -153,25 +159,12 @@ require_relative './aspose-imaging-cloud/models/requests/modify_jpeg_request'
153
159
  require_relative './aspose-imaging-cloud/models/requests/modify_psd_request'
154
160
  require_relative './aspose-imaging-cloud/models/requests/modify_svg_request'
155
161
  require_relative './aspose-imaging-cloud/models/requests/modify_tiff_request'
156
- require_relative './aspose-imaging-cloud/models/requests/filter_effect_image_request'
157
162
  require_relative './aspose-imaging-cloud/models/requests/modify_web_p_request'
158
163
  require_relative './aspose-imaging-cloud/models/requests/modify_wmf_request'
159
- require_relative './aspose-imaging-cloud/models/requests/download_file_request'
164
+ require_relative './aspose-imaging-cloud/models/requests/move_file_request'
160
165
  require_relative './aspose-imaging-cloud/models/requests/move_folder_request'
161
- require_relative './aspose-imaging-cloud/models/requests/convert_tiff_to_fax_request'
162
- require_relative './aspose-imaging-cloud/models/requests/create_modified_psd_request'
163
- require_relative './aspose-imaging-cloud/models/requests/find_images_by_tags_request'
164
- require_relative './aspose-imaging-cloud/models/requests/append_tiff_request'
165
- require_relative './aspose-imaging-cloud/models/requests/crop_image_request'
166
- require_relative './aspose-imaging-cloud/models/requests/create_modified_wmf_request'
167
- require_relative './aspose-imaging-cloud/models/requests/copy_folder_request'
168
- require_relative './aspose-imaging-cloud/models/requests/copy_file_request'
169
- require_relative './aspose-imaging-cloud/models/requests/create_image_frame_range_request'
170
- require_relative './aspose-imaging-cloud/models/requests/create_web_site_image_features_request'
171
- require_relative './aspose-imaging-cloud/models/requests/add_search_image_request'
172
- require_relative './aspose-imaging-cloud/models/requests/get_file_versions_request'
173
- require_relative './aspose-imaging-cloud/models/requests/create_folder_request'
174
- require_relative './aspose-imaging-cloud/models/requests/create_image_tag_request'
166
+ require_relative './aspose-imaging-cloud/models/requests/object_bounds_request'
167
+ require_relative './aspose-imaging-cloud/models/requests/object_exists_request'
175
168
  require_relative './aspose-imaging-cloud/models/requests/resize_image_request'
176
169
  require_relative './aspose-imaging-cloud/models/requests/rotate_flip_image_request'
177
170
  require_relative './aspose-imaging-cloud/models/requests/save_image_as_request'
@@ -180,4 +173,5 @@ require_relative './aspose-imaging-cloud/models/requests/update_image_features_r
180
173
  require_relative './aspose-imaging-cloud/models/requests/update_image_request'
181
174
  require_relative './aspose-imaging-cloud/models/requests/update_search_image_request'
182
175
  require_relative './aspose-imaging-cloud/models/requests/upload_file_request'
176
+ require_relative './aspose-imaging-cloud/models/requests/visual_object_bounds_request'
183
177
 
@@ -151,7 +151,7 @@ module AsposeImagingCloud
151
151
  make_request(http_request, :POST, 'File')
152
152
  end
153
153
 
154
- # Get separate frame from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
154
+ # Get frames range from existing image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
155
155
  # @param [create_image_frame_rangeRequest] request Request object.
156
156
  # @return [File]
157
157
  def create_image_frame_range(request)
@@ -256,6 +256,14 @@ module AsposeImagingCloud
256
256
  make_request(http_request, :POST, 'File')
257
257
  end
258
258
 
259
+ # Detects objects bounds. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
260
+ # @param [create_object_boundsRequest] request Request object.
261
+ # @return [DetectedObjectList]
262
+ def create_object_bounds(request)
263
+ http_request = request.to_http_info(@api_client.config)
264
+ make_request(http_request, :POST, 'DetectedObjectList')
265
+ end
266
+
259
267
  # Resize an image. Image data is passed as zero-indexed multipart/form-data content or as raw body stream.
260
268
  # @param [create_resized_imageRequest] request Request object.
261
269
  # @return [File]
@@ -288,6 +296,14 @@ module AsposeImagingCloud
288
296
  make_request(http_request, :POST, 'File')
289
297
  end
290
298
 
299
+ # 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
300
+ # @param [create_visual_object_boundsRequest] request Request object.
301
+ # @return [File]
302
+ def create_visual_object_bounds(request)
303
+ http_request = request.to_http_info(@api_client.config)
304
+ make_request(http_request, :POST, 'File')
305
+ end
306
+
291
307
  # Extract images features from web page and add them to search context
292
308
  # @param [create_web_site_image_featuresRequest] request Request object.
293
309
  # @return [nil]
@@ -494,6 +510,14 @@ module AsposeImagingCloud
494
510
  make_request(http_request, :GET, 'SearchContextStatus')
495
511
  end
496
512
 
513
+ # Detects objects' bounds
514
+ # @param [get_object_boundsRequest] request Request object.
515
+ # @return [DetectedObjectList]
516
+ def get_object_bounds(request)
517
+ http_request = request.to_http_info(@api_client.config)
518
+ make_request(http_request, :GET, 'DetectedObjectList')
519
+ end
520
+
497
521
  # Get image from search context
498
522
  # @param [get_search_imageRequest] request Request object.
499
523
  # @return [File]
@@ -502,6 +526,14 @@ module AsposeImagingCloud
502
526
  make_request(http_request, :GET, 'File')
503
527
  end
504
528
 
529
+ # Detects objects bounds and draw them on the original image
530
+ # @param [get_visual_object_boundsRequest] request Request object.
531
+ # @return [File]
532
+ def get_visual_object_bounds(request)
533
+ http_request = request.to_http_info(@api_client.config)
534
+ make_request(http_request, :GET, 'File')
535
+ end
536
+
505
537
  # Grayscale an existing image.
506
538
  # @param [grayscale_imageRequest] request Request object.
507
539
  # @return [File]
@@ -54,7 +54,7 @@ module AsposeImagingCloud
54
54
  @config = Configuration.new(app_key, app_sid, base_url, api_version, debug)
55
55
  @default_headers = {
56
56
  'x-aspose-client' => 'ruby sdk',
57
- 'x-aspose-version' => '20.4'
57
+ 'x-aspose-version' => '20.5'
58
58
  }
59
59
  end
60
60
 
@@ -0,0 +1,228 @@
1
+ # ----------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="detected_object.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 'date'
28
+
29
+ module AsposeImagingCloud
30
+ class DetectedObject
31
+ attr_accessor :label
32
+
33
+ attr_accessor :score
34
+
35
+ attr_accessor :bounds
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'label' => :'Label',
41
+ :'score' => :'Score',
42
+ :'bounds' => :'Bounds'
43
+ }
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.swagger_types
48
+ {
49
+ :'label' => :'String',
50
+ :'score' => :'Float',
51
+ :'bounds' => :'Rectangle'
52
+ }
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ return unless attributes.is_a?(Hash)
59
+
60
+ # convert string to symbol for hash key
61
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
+
63
+ if attributes.has_key?(:'Label')
64
+ self.label = attributes[:'Label']
65
+ end
66
+
67
+ if attributes.has_key?(:'Score')
68
+ self.score = attributes[:'Score']
69
+ end
70
+
71
+ if attributes.has_key?(:'Bounds')
72
+ self.bounds = attributes[:'Bounds']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ if @score.nil?
81
+ invalid_properties.push('invalid value for "score", score cannot be nil.')
82
+ end
83
+
84
+ if @bounds.nil?
85
+ invalid_properties.push('invalid value for "bounds", bounds cannot be nil.')
86
+ end
87
+
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ return false if @score.nil?
95
+ return false if @bounds.nil?
96
+ true
97
+ end
98
+
99
+ # Checks equality by comparing each attribute.
100
+ # @param [Object] Object to be compared
101
+ def ==(o)
102
+ return true if self.equal?(o)
103
+ self.class == o.class &&
104
+ label == o.label &&
105
+ score == o.score &&
106
+ bounds == o.bounds
107
+ end
108
+
109
+ # @see the `==` method
110
+ # @param [Object] Object to be compared
111
+ def eql?(o)
112
+ self == o
113
+ end
114
+
115
+ # Calculates hash code according to all attributes.
116
+ # @return [Fixnum] Hash code
117
+ def hash
118
+ [label, score, bounds].hash
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ self.class.swagger_types.each_pair do |key, type|
127
+ attribute_key = self.class.attribute_map[key]
128
+ attribute_key = (attribute_key[0, 1].downcase + attribute_key[1..-1]).to_sym
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[attribute_key].is_a?(Array)
133
+ self.send("#{key}=", attributes[attribute_key].map { |v| _deserialize($1, v) })
134
+ end
135
+ elsif !attributes[attribute_key].nil?
136
+ self.send("#{key}=", _deserialize(type, attributes[attribute_key]))
137
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
138
+ end
139
+
140
+ self
141
+ end
142
+
143
+ # Deserializes the data based on type
144
+ # @param string type Data type
145
+ # @param string value Value to be deserialized
146
+ # @return [Object] Deserialized data
147
+ def _deserialize(type, value)
148
+ case type.to_sym
149
+ when :DateTime
150
+ DateTime.parse(value)
151
+ when :Date
152
+ Date.parse(value)
153
+ when :String
154
+ value.to_s
155
+ when :Integer
156
+ value.to_i
157
+ when :Float
158
+ value.to_f
159
+ when :BOOLEAN
160
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
161
+ true
162
+ else
163
+ false
164
+ end
165
+ when :Object
166
+ # generic object (usually a Hash), return directly
167
+ value
168
+ when /\AArray<(?<inner_type>.+)>\z/
169
+ inner_type = Regexp.last_match[:inner_type]
170
+ value.map { |v| _deserialize(inner_type, v) }
171
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
172
+ k_type = Regexp.last_match[:k_type]
173
+ v_type = Regexp.last_match[:v_type]
174
+ {}.tap do |hash|
175
+ value.each do |k, v|
176
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
177
+ end
178
+ end
179
+ else # model
180
+ temp_model = AsposeImagingCloud.const_get(type).new
181
+ temp_model.build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ next if value.nil?
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+ end