cloudmersive-image-recognition-api-client 1.4.4 → 2.0.3
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/Gemfile +1 -1
- data/README.md +20 -16
- data/cloudmersive-image-recognition-api-client.gemspec +3 -3
- data/docs/ArtisticApi.md +2 -2
- data/docs/ConvertApi.md +13 -13
- data/docs/DrawTextInstance.md +1 -1
- data/docs/EditApi.md +270 -24
- data/docs/FaceApi.md +20 -20
- data/docs/FaceLocateResponse.md +1 -1
- data/docs/FilterApi.md +11 -11
- data/docs/ImageMetadata.md +2 -0
- data/docs/InfoApi.md +5 -5
- data/docs/NsfwApi.md +4 -4
- data/docs/RecognizeApi.md +17 -17
- data/docs/ResizeApi.md +10 -10
- data/lib/cloudmersive-image-recognition-api-client.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +6 -7
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +35 -42
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +315 -62
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +39 -46
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +36 -44
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +12 -14
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +8 -9
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +41 -49
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +20 -22
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +11 -9
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +2 -2
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +9 -13
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +9 -13
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +8 -11
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +9 -13
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +19 -21
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +28 -11
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
- data/spec/api/artistic_api_spec.rb +2 -2
- data/spec/api/convert_api_spec.rb +9 -9
- data/spec/api/edit_api_spec.rb +74 -16
- data/spec/api/face_api_spec.rb +12 -12
- data/spec/api/filter_api_spec.rb +10 -10
- data/spec/api/info_api_spec.rb +4 -4
- data/spec/api/nsfw_api_spec.rb +3 -3
- data/spec/api/recognize_api_spec.rb +12 -12
- data/spec/api/resize_api_spec.rb +7 -7
- data/spec/api_client_spec.rb +52 -35
- data/spec/configuration_spec.rb +9 -9
- data/spec/models/age_detection_result_spec.rb +4 -5
- data/spec/models/color_result_spec.rb +4 -5
- data/spec/models/detected_license_plate_spec.rb +8 -9
- data/spec/models/detected_object_spec.rb +7 -8
- data/spec/models/dominant_color_result_spec.rb +3 -4
- data/spec/models/draw_polygon_instance_spec.rb +5 -6
- data/spec/models/draw_polygon_request_spec.rb +4 -5
- data/spec/models/draw_rectangle_instance_spec.rb +8 -9
- data/spec/models/draw_rectangle_request_spec.rb +4 -5
- data/spec/models/draw_text_instance_spec.rb +9 -10
- data/spec/models/draw_text_request_spec.rb +4 -5
- data/spec/models/face_compare_response_spec.rb +5 -6
- data/spec/models/face_locate_response_spec.rb +9 -10
- data/spec/models/face_locate_with_landmarks_response_spec.rb +5 -6
- data/spec/models/face_match_spec.rb +7 -8
- data/spec/models/face_point_spec.rb +3 -4
- data/spec/models/face_spec.rb +5 -6
- data/spec/models/face_with_landmarks_spec.rb +14 -15
- data/spec/models/find_symbol_result_spec.rb +7 -8
- data/spec/models/fine_text_detection_result_spec.rb +4 -5
- data/spec/models/fine_text_item_spec.rb +12 -13
- data/spec/models/gender_detection_result_spec.rb +4 -5
- data/spec/models/image_description_response_spec.rb +5 -6
- data/spec/models/image_metadata_exif_value_spec.rb +4 -5
- data/spec/models/image_metadata_spec.rb +21 -10
- data/spec/models/nsfw_result_spec.rb +4 -5
- data/spec/models/object_detection_result_spec.rb +4 -5
- data/spec/models/person_with_age_spec.rb +5 -6
- data/spec/models/person_with_gender_spec.rb +4 -5
- data/spec/models/polygon_point_spec.rb +3 -4
- data/spec/models/recognition_outcome_spec.rb +3 -4
- data/spec/models/text_detection_result_spec.rb +4 -5
- data/spec/models/text_item_spec.rb +5 -6
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +4 -5
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -24,7 +24,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
24
24
|
# The number of license plates detected in the image
|
25
25
|
attr_accessor :detected_license_plate_count
|
26
26
|
|
27
|
-
|
28
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
28
|
def self.attribute_map
|
30
29
|
{
|
@@ -49,7 +48,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
49
48
|
return unless attributes.is_a?(Hash)
|
50
49
|
|
51
50
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
51
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
52
|
|
54
53
|
if attributes.has_key?(:'Successful')
|
55
54
|
self.successful = attributes[:'Successful']
|
@@ -64,20 +63,19 @@ module CloudmersiveImageRecognitionApiClient
|
|
64
63
|
if attributes.has_key?(:'DetectedLicensePlateCount')
|
65
64
|
self.detected_license_plate_count = attributes[:'DetectedLicensePlateCount']
|
66
65
|
end
|
67
|
-
|
68
66
|
end
|
69
67
|
|
70
68
|
# Show invalid properties with the reasons. Usually used together with valid?
|
71
69
|
# @return Array for valid properties with the reasons
|
72
70
|
def list_invalid_properties
|
73
71
|
invalid_properties = Array.new
|
74
|
-
|
72
|
+
invalid_properties
|
75
73
|
end
|
76
74
|
|
77
75
|
# Check to see if the all the properties in the model are valid
|
78
76
|
# @return true if the model is valid
|
79
77
|
def valid?
|
80
|
-
|
78
|
+
true
|
81
79
|
end
|
82
80
|
|
83
81
|
# Checks equality by comparing each attribute.
|
@@ -109,10 +107,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
109
107
|
return nil unless attributes.is_a?(Hash)
|
110
108
|
self.class.swagger_types.each_pair do |key, type|
|
111
109
|
if type =~ /\AArray<(.*)>/i
|
112
|
-
# check to ensure the input is an array given that the
|
110
|
+
# check to ensure the input is an array given that the attribute
|
113
111
|
# is documented as an array but the input is not
|
114
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
115
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
113
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
116
114
|
end
|
117
115
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
118
116
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -194,7 +192,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
194
192
|
# @return [Hash] Returns the value in the form of hash
|
195
193
|
def _to_hash(value)
|
196
194
|
if value.is_a?(Array)
|
197
|
-
value.compact.map{ |v| _to_hash(v) }
|
195
|
+
value.compact.map { |v| _to_hash(v) }
|
198
196
|
elsif value.is_a?(Hash)
|
199
197
|
{}.tap do |hash|
|
200
198
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -207,5 +205,4 @@ module CloudmersiveImageRecognitionApiClient
|
|
207
205
|
end
|
208
206
|
|
209
207
|
end
|
210
|
-
|
211
208
|
end
|
@@ -6,10 +6,10 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module CloudmersiveImageRecognitionApiClient
|
14
|
-
VERSION =
|
14
|
+
VERSION = '2.0.3'
|
15
15
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,7 +40,7 @@ describe 'ArtisticApi' do
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [String]
|
42
42
|
describe 'artistic_painting test' do
|
43
|
-
it
|
43
|
+
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
46
46
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'ConvertApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [String]
|
41
41
|
describe 'convert_to_bmp test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -51,20 +51,20 @@ describe 'ConvertApi' do
|
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [String]
|
53
53
|
describe 'convert_to_gif test' do
|
54
|
-
it
|
54
|
+
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
59
|
# unit tests for convert_to_jpg
|
60
|
-
# Convert input image to JPG
|
60
|
+
# Convert input image to JPG, JPEG format
|
61
61
|
# Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
|
62
62
|
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
63
63
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @return [String]
|
66
66
|
describe 'convert_to_jpg test' do
|
67
|
-
it
|
67
|
+
it 'should work' do
|
68
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
69
|
end
|
70
70
|
end
|
@@ -76,7 +76,7 @@ describe 'ConvertApi' do
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
77
|
# @return [String]
|
78
78
|
describe 'convert_to_photoshop test' do
|
79
|
-
it
|
79
|
+
it 'should work' do
|
80
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
81
|
end
|
82
82
|
end
|
@@ -88,7 +88,7 @@ describe 'ConvertApi' do
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @return [String]
|
90
90
|
describe 'convert_to_png test' do
|
91
|
-
it
|
91
|
+
it 'should work' do
|
92
92
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
93
|
end
|
94
94
|
end
|
@@ -100,7 +100,7 @@ describe 'ConvertApi' do
|
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @return [String]
|
102
102
|
describe 'convert_to_tiff test' do
|
103
|
-
it
|
103
|
+
it 'should work' do
|
104
104
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
105
|
end
|
106
106
|
end
|
@@ -112,7 +112,7 @@ describe 'ConvertApi' do
|
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [String]
|
114
114
|
describe 'convert_to_web_p test' do
|
115
|
-
it
|
115
|
+
it 'should work' do
|
116
116
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
117
|
end
|
118
118
|
end
|
data/spec/api/edit_api_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'EditApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [String]
|
41
41
|
describe 'edit_auto_orient test' do
|
42
|
-
it
|
42
|
+
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
@@ -53,7 +53,26 @@ describe 'EditApi' do
|
|
53
53
|
# @param [Hash] opts the optional parameters
|
54
54
|
# @return [String]
|
55
55
|
describe 'edit_composite_basic test' do
|
56
|
-
it
|
56
|
+
it 'should work' do
|
57
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# unit tests for edit_composite_precise
|
62
|
+
# Composite two images together precisely
|
63
|
+
# Composites two input images together; a layered image onto a base image. Position is based on distance in pixels from each side. The first image you input is the base image. The second image (the layered image) will be composited on top of this base image. Supports PNG transparency. To control padding you can include transparent pixels at the border(s) of your layered images as appropriate. Providing multiple parameters in a single axis (for example top and bottom) is not recommended, since only one of the parameters will be used per axis.
|
64
|
+
# @param base_image Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
65
|
+
# @param layered_image Image to layer on top of the base image.
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @option opts [Integer] :top Optional; Desired distance in pixels from the top of the base image to the top of the layered image.
|
68
|
+
# @option opts [Integer] :bottom Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image.
|
69
|
+
# @option opts [Integer] :left Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image.
|
70
|
+
# @option opts [Integer] :right Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image.
|
71
|
+
# @option opts [Integer] :width Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally.
|
72
|
+
# @option opts [Integer] :height Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally.
|
73
|
+
# @return [String]
|
74
|
+
describe 'edit_composite_precise test' do
|
75
|
+
it 'should work' do
|
57
76
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
77
|
end
|
59
78
|
end
|
@@ -66,7 +85,22 @@ describe 'EditApi' do
|
|
66
85
|
# @param [Hash] opts the optional parameters
|
67
86
|
# @return [String]
|
68
87
|
describe 'edit_contrast_adaptive test' do
|
69
|
-
it
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# unit tests for edit_crop_circle
|
94
|
+
# Crop an image to an circular area
|
95
|
+
# Crop an image to a target circular area
|
96
|
+
# @param left The left edge of the circular crop area in pixels (X).
|
97
|
+
# @param top The top edge of the circular crop area in pixels (Y).
|
98
|
+
# @param radius The radius of the circular crop area in pixels.
|
99
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
100
|
+
# @param [Hash] opts the optional parameters
|
101
|
+
# @return [String]
|
102
|
+
describe 'edit_crop_circle test' do
|
103
|
+
it 'should work' do
|
70
104
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
105
|
end
|
72
106
|
end
|
@@ -82,7 +116,7 @@ describe 'EditApi' do
|
|
82
116
|
# @param [Hash] opts the optional parameters
|
83
117
|
# @return [String]
|
84
118
|
describe 'edit_crop_rectangle test' do
|
85
|
-
it
|
119
|
+
it 'should work' do
|
86
120
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
121
|
end
|
88
122
|
end
|
@@ -90,11 +124,11 @@ describe 'EditApi' do
|
|
90
124
|
# unit tests for edit_draw_polygon
|
91
125
|
# Draw a polygon onto an image
|
92
126
|
# Draw one or more polygons, with customized visuals, onto an image
|
93
|
-
# @param request
|
127
|
+
# @param request Polygon drawing request parameters
|
94
128
|
# @param [Hash] opts the optional parameters
|
95
129
|
# @return [String]
|
96
130
|
describe 'edit_draw_polygon test' do
|
97
|
-
it
|
131
|
+
it 'should work' do
|
98
132
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
133
|
end
|
100
134
|
end
|
@@ -102,11 +136,11 @@ describe 'EditApi' do
|
|
102
136
|
# unit tests for edit_draw_rectangle
|
103
137
|
# Draw a rectangle onto an image
|
104
138
|
# Draw one or more rectangles, with customized visuals, onto an image
|
105
|
-
# @param request
|
139
|
+
# @param request Draw rectangle parameters
|
106
140
|
# @param [Hash] opts the optional parameters
|
107
141
|
# @return [String]
|
108
142
|
describe 'edit_draw_rectangle test' do
|
109
|
-
it
|
143
|
+
it 'should work' do
|
110
144
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
145
|
end
|
112
146
|
end
|
@@ -114,11 +148,11 @@ describe 'EditApi' do
|
|
114
148
|
# unit tests for edit_draw_text
|
115
149
|
# Draw text onto an image
|
116
150
|
# Draw one or more pieces of text, with customized visuals, onto an image
|
117
|
-
# @param request
|
151
|
+
# @param request Draw text parameters
|
118
152
|
# @param [Hash] opts the optional parameters
|
119
153
|
# @return [String]
|
120
154
|
describe 'edit_draw_text test' do
|
121
|
-
it
|
155
|
+
it 'should work' do
|
122
156
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
157
|
end
|
124
158
|
end
|
@@ -126,15 +160,39 @@ describe 'EditApi' do
|
|
126
160
|
# unit tests for edit_drop_shadow
|
127
161
|
# Add a customizeable drop shadow to an image
|
128
162
|
# Add a customizeable drop shadow to the image
|
129
|
-
# @param x
|
130
|
-
# @param y
|
163
|
+
# @param x Horizontal (X) offset of the drop shadow
|
164
|
+
# @param y Vertical (Y) offset of the drop shadow
|
131
165
|
# @param sigma Sigma (blur distance) of the drop shadow
|
132
166
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
133
167
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
134
168
|
# @param [Hash] opts the optional parameters
|
135
169
|
# @return [String]
|
136
170
|
describe 'edit_drop_shadow test' do
|
137
|
-
it
|
171
|
+
it 'should work' do
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
# unit tests for edit_invert
|
177
|
+
# Invert, negate the colors in the image
|
178
|
+
# Inverts (negates) all of the colors in the image. If the image contains transparency, the transparency will first be removed prior to inverting the image.
|
179
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
180
|
+
# @param [Hash] opts the optional parameters
|
181
|
+
# @return [String]
|
182
|
+
describe 'edit_invert test' do
|
183
|
+
it 'should work' do
|
184
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
# unit tests for edit_remove_exif_data
|
189
|
+
# Remove EXIF data from the image
|
190
|
+
# Removes any EXIF data and profiles .
|
191
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @return [String]
|
194
|
+
describe 'edit_remove_exif_data test' do
|
195
|
+
it 'should work' do
|
138
196
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
197
|
end
|
140
198
|
end
|
@@ -146,7 +204,7 @@ describe 'EditApi' do
|
|
146
204
|
# @param [Hash] opts the optional parameters
|
147
205
|
# @return [String]
|
148
206
|
describe 'edit_remove_transparency test' do
|
149
|
-
it
|
207
|
+
it 'should work' do
|
150
208
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
209
|
end
|
152
210
|
end
|
@@ -159,7 +217,7 @@ describe 'EditApi' do
|
|
159
217
|
# @param [Hash] opts the optional parameters
|
160
218
|
# @return [String]
|
161
219
|
describe 'edit_rotate test' do
|
162
|
-
it
|
220
|
+
it 'should work' do
|
163
221
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
222
|
end
|
165
223
|
end
|
data/spec/api/face_api_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.
|
9
|
+
Swagger Codegen version: 2.4.14
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,31 +40,31 @@ describe 'FaceApi' do
|
|
40
40
|
# @param [Hash] opts the optional parameters
|
41
41
|
# @return [FaceCompareResponse]
|
42
42
|
describe 'face_compare test' do
|
43
|
-
it
|
43
|
+
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
48
48
|
# unit tests for face_crop_first
|
49
|
-
# Crop image to face
|
49
|
+
# Crop image to face with square crop
|
50
50
|
# Crop an image to the face (rectangular crop). If there is more than one face present, choose the first one.
|
51
51
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
52
52
|
# @param [Hash] opts the optional parameters
|
53
53
|
# @return [String]
|
54
54
|
describe 'face_crop_first test' do
|
55
|
-
it
|
55
|
+
it 'should work' do
|
56
56
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
# unit tests for face_crop_first_round
|
61
|
-
# Crop image to face
|
61
|
+
# Crop image to face with round crop
|
62
62
|
# Crop an image to the face (circular/round crop). If there is more than one face present, choose the first one.
|
63
63
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @return [String]
|
66
66
|
describe 'face_crop_first_round test' do
|
67
|
-
it
|
67
|
+
it 'should work' do
|
68
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
69
|
end
|
70
70
|
end
|
@@ -76,7 +76,7 @@ describe 'FaceApi' do
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
77
77
|
# @return [AgeDetectionResult]
|
78
78
|
describe 'face_detect_age test' do
|
79
|
-
it
|
79
|
+
it 'should work' do
|
80
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
81
|
end
|
82
82
|
end
|
@@ -88,31 +88,31 @@ describe 'FaceApi' do
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @return [GenderDetectionResult]
|
90
90
|
describe 'face_detect_gender test' do
|
91
|
-
it
|
91
|
+
it 'should work' do
|
92
92
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
96
96
|
# unit tests for face_locate
|
97
|
-
#
|
97
|
+
# Detect and find faces in an image
|
98
98
|
# Locate the positions of all faces in an image
|
99
99
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @return [FaceLocateResponse]
|
102
102
|
describe 'face_locate test' do
|
103
|
-
it
|
103
|
+
it 'should work' do
|
104
104
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
108
|
# unit tests for face_locate_with_landmarks
|
109
|
-
#
|
109
|
+
# Detect and find faces and landmarks eyes and nose and mouth in image
|
110
110
|
# Locate the positions of all faces in an image, along with the eyes, eye brows, nose and mouth components of each
|
111
111
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
112
112
|
# @param [Hash] opts the optional parameters
|
113
113
|
# @return [FaceLocateWithLandmarksResponse]
|
114
114
|
describe 'face_locate_with_landmarks test' do
|
115
|
-
it
|
115
|
+
it 'should work' do
|
116
116
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
117
|
end
|
118
118
|
end
|