cloudmersive-image-recognition-api-client 1.4.3 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +19 -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 +188 -23
- 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 +215 -59
- 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 +51 -15
- 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.2'
|
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,7 @@ 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
57
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
58
58
|
end
|
59
59
|
end
|
@@ -66,7 +66,7 @@ describe 'EditApi' do
|
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
67
|
# @return [String]
|
68
68
|
describe 'edit_contrast_adaptive test' do
|
69
|
-
it
|
69
|
+
it 'should work' do
|
70
70
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
71
|
end
|
72
72
|
end
|
@@ -82,7 +82,7 @@ describe 'EditApi' do
|
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
83
|
# @return [String]
|
84
84
|
describe 'edit_crop_rectangle test' do
|
85
|
-
it
|
85
|
+
it 'should work' do
|
86
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
87
|
end
|
88
88
|
end
|
@@ -90,11 +90,11 @@ describe 'EditApi' do
|
|
90
90
|
# unit tests for edit_draw_polygon
|
91
91
|
# Draw a polygon onto an image
|
92
92
|
# Draw one or more polygons, with customized visuals, onto an image
|
93
|
-
# @param request
|
93
|
+
# @param request Polygon drawing request parameters
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @return [String]
|
96
96
|
describe 'edit_draw_polygon test' do
|
97
|
-
it
|
97
|
+
it 'should work' do
|
98
98
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
99
|
end
|
100
100
|
end
|
@@ -102,11 +102,11 @@ describe 'EditApi' do
|
|
102
102
|
# unit tests for edit_draw_rectangle
|
103
103
|
# Draw a rectangle onto an image
|
104
104
|
# Draw one or more rectangles, with customized visuals, onto an image
|
105
|
-
# @param request
|
105
|
+
# @param request Draw rectangle parameters
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
107
|
# @return [String]
|
108
108
|
describe 'edit_draw_rectangle test' do
|
109
|
-
it
|
109
|
+
it 'should work' do
|
110
110
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
111
|
end
|
112
112
|
end
|
@@ -114,11 +114,11 @@ describe 'EditApi' do
|
|
114
114
|
# unit tests for edit_draw_text
|
115
115
|
# Draw text onto an image
|
116
116
|
# Draw one or more pieces of text, with customized visuals, onto an image
|
117
|
-
# @param request
|
117
|
+
# @param request Draw text parameters
|
118
118
|
# @param [Hash] opts the optional parameters
|
119
119
|
# @return [String]
|
120
120
|
describe 'edit_draw_text test' do
|
121
|
-
it
|
121
|
+
it 'should work' do
|
122
122
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
123
|
end
|
124
124
|
end
|
@@ -126,15 +126,51 @@ describe 'EditApi' do
|
|
126
126
|
# unit tests for edit_drop_shadow
|
127
127
|
# Add a customizeable drop shadow to an image
|
128
128
|
# Add a customizeable drop shadow to the image
|
129
|
-
# @param x
|
130
|
-
# @param y
|
129
|
+
# @param x Horizontal (X) offset of the drop shadow
|
130
|
+
# @param y Vertical (Y) offset of the drop shadow
|
131
131
|
# @param sigma Sigma (blur distance) of the drop shadow
|
132
132
|
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
133
133
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
134
134
|
# @param [Hash] opts the optional parameters
|
135
135
|
# @return [String]
|
136
136
|
describe 'edit_drop_shadow test' do
|
137
|
-
it
|
137
|
+
it 'should work' do
|
138
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# unit tests for edit_invert
|
143
|
+
# Invert, negate the colors in the image
|
144
|
+
# 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.
|
145
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @return [String]
|
148
|
+
describe 'edit_invert test' do
|
149
|
+
it 'should work' do
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# unit tests for edit_remove_exif_data
|
155
|
+
# Remove EXIF data from the image
|
156
|
+
# Removes any EXIF data and profiles .
|
157
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
158
|
+
# @param [Hash] opts the optional parameters
|
159
|
+
# @return [String]
|
160
|
+
describe 'edit_remove_exif_data test' do
|
161
|
+
it 'should work' do
|
162
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# unit tests for edit_remove_transparency
|
167
|
+
# Remove transparency from the image
|
168
|
+
# Removes any active transparency in the image. Effectively renders the image at the same resolution, in the same file format, over a white background, thus removing transparency.
|
169
|
+
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
170
|
+
# @param [Hash] opts the optional parameters
|
171
|
+
# @return [String]
|
172
|
+
describe 'edit_remove_transparency test' do
|
173
|
+
it 'should work' do
|
138
174
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
175
|
end
|
140
176
|
end
|
@@ -147,7 +183,7 @@ describe 'EditApi' do
|
|
147
183
|
# @param [Hash] opts the optional parameters
|
148
184
|
# @return [String]
|
149
185
|
describe 'edit_rotate test' do
|
150
|
-
it
|
186
|
+
it 'should work' do
|
151
187
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
188
|
end
|
153
189
|
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
|
data/spec/api/filter_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,19 +39,19 @@ describe 'FilterApi' do
|
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @return [String]
|
41
41
|
describe 'filter_black_and_white 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
|
46
46
|
|
47
47
|
# unit tests for filter_despeckle
|
48
|
-
# Despeckle
|
48
|
+
# Despeckle to remove point noise from the image
|
49
49
|
# Remove point noise / despeckle the input image
|
50
50
|
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
52
|
# @return [String]
|
53
53
|
describe 'filter_despeckle 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
|
@@ -64,7 +64,7 @@ describe 'FilterApi' do
|
|
64
64
|
# @param [Hash] opts the optional parameters
|
65
65
|
# @return [String]
|
66
66
|
describe 'filter_edge_detect 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
|
@@ -78,7 +78,7 @@ describe 'FilterApi' do
|
|
78
78
|
# @param [Hash] opts the optional parameters
|
79
79
|
# @return [String]
|
80
80
|
describe 'filter_emboss test' do
|
81
|
-
it
|
81
|
+
it 'should work' do
|
82
82
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
83
|
end
|
84
84
|
end
|
@@ -92,7 +92,7 @@ describe 'FilterApi' do
|
|
92
92
|
# @param [Hash] opts the optional parameters
|
93
93
|
# @return [String]
|
94
94
|
describe 'filter_gaussian_blur test' do
|
95
|
-
it
|
95
|
+
it 'should work' do
|
96
96
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
97
|
end
|
98
98
|
end
|
@@ -107,7 +107,7 @@ describe 'FilterApi' do
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
108
108
|
# @return [String]
|
109
109
|
describe 'filter_motion_blur test' do
|
110
|
-
it
|
110
|
+
it 'should work' do
|
111
111
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
112
|
end
|
113
113
|
end
|
@@ -120,7 +120,7 @@ describe 'FilterApi' do
|
|
120
120
|
# @param [Hash] opts the optional parameters
|
121
121
|
# @return [String]
|
122
122
|
describe 'filter_posterize test' do
|
123
|
-
it
|
123
|
+
it 'should work' do
|
124
124
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
125
|
end
|
126
126
|
end
|
@@ -133,7 +133,7 @@ describe 'FilterApi' do
|
|
133
133
|
# @param [Hash] opts the optional parameters
|
134
134
|
# @return [String]
|
135
135
|
describe 'filter_swirl test' do
|
136
|
-
it
|
136
|
+
it 'should work' do
|
137
137
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
138
138
|
end
|
139
139
|
end
|