cloudmersive-image-recognition-api-client 1.4.6 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +17 -6
- data/cloudmersive-image-recognition-api-client.gemspec +3 -3
- data/docs/ArtisticApi.md +2 -2
- data/docs/ConvertApi.md +7 -7
- data/docs/CreateHandwritingRequest.md +11 -0
- data/docs/DrawTextInstance.md +1 -1
- data/docs/EditApi.md +147 -11
- data/docs/FaceApi.md +8 -8
- data/docs/FilterApi.md +8 -8
- data/docs/ImageSimilarityComparisonResponse.md +10 -0
- data/docs/ImageSimilarityHashDistanceRequest.md +9 -0
- data/docs/ImageSimilarityHashDistanceResponse.md +9 -0
- data/docs/ImageSimilarityHashResponse.md +9 -0
- data/docs/InfoApi.md +2 -2
- data/docs/NsfwApi.md +1 -1
- data/docs/RecognizeApi.md +187 -11
- data/docs/ResizeApi.md +4 -4
- data/docs/TextGenerationApi.md +63 -0
- data/lib/cloudmersive-image-recognition-api-client.rb +7 -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 +30 -37
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +199 -58
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +31 -38
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +34 -42
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +10 -12
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +6 -7
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +214 -45
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +14 -16
- data/lib/cloudmersive-image-recognition-api-client/api/text_generation_api.rb +77 -0
- 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/create_handwriting_request.rb +216 -0
- 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 +7 -10
- 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 +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_comparison_response.rb +206 -0
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +196 -0
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_response.rb +196 -0
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_response.rb +196 -0
- 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 +8 -8
- data/spec/api/edit_api_spec.rb +47 -13
- data/spec/api/face_api_spec.rb +8 -8
- data/spec/api/filter_api_spec.rb +9 -9
- data/spec/api/info_api_spec.rb +3 -3
- data/spec/api/nsfw_api_spec.rb +2 -2
- data/spec/api/recognize_api_spec.rb +49 -10
- data/spec/api/resize_api_spec.rb +5 -5
- data/spec/api/text_generation_api_spec.rb +47 -0
- 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/create_handwriting_request_spec.rb +59 -0
- 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 +5 -6
- 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 +11 -12
- data/spec/models/image_similarity_comparison_response_spec.rb +53 -0
- data/spec/models/image_similarity_hash_distance_request_spec.rb +47 -0
- data/spec/models/image_similarity_hash_distance_response_spec.rb +47 -0
- data/spec/models/image_similarity_hash_response_spec.rb +47 -0
- 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 +20 -2
@@ -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
|
|
@@ -27,7 +27,6 @@ module CloudmersiveImageRecognitionApiClient
|
|
27
27
|
# Height in pixels of the text item
|
28
28
|
attr_accessor :height
|
29
29
|
|
30
|
-
|
31
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
32
31
|
def self.attribute_map
|
33
32
|
{
|
@@ -54,7 +53,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
54
53
|
return unless attributes.is_a?(Hash)
|
55
54
|
|
56
55
|
# convert string to symbol for hash key
|
57
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
58
57
|
|
59
58
|
if attributes.has_key?(:'LeftX')
|
60
59
|
self.left_x = attributes[:'LeftX']
|
@@ -71,20 +70,19 @@ module CloudmersiveImageRecognitionApiClient
|
|
71
70
|
if attributes.has_key?(:'Height')
|
72
71
|
self.height = attributes[:'Height']
|
73
72
|
end
|
74
|
-
|
75
73
|
end
|
76
74
|
|
77
75
|
# Show invalid properties with the reasons. Usually used together with valid?
|
78
76
|
# @return Array for valid properties with the reasons
|
79
77
|
def list_invalid_properties
|
80
78
|
invalid_properties = Array.new
|
81
|
-
|
79
|
+
invalid_properties
|
82
80
|
end
|
83
81
|
|
84
82
|
# Check to see if the all the properties in the model are valid
|
85
83
|
# @return true if the model is valid
|
86
84
|
def valid?
|
87
|
-
|
85
|
+
true
|
88
86
|
end
|
89
87
|
|
90
88
|
# Checks equality by comparing each attribute.
|
@@ -117,10 +115,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
117
115
|
return nil unless attributes.is_a?(Hash)
|
118
116
|
self.class.swagger_types.each_pair do |key, type|
|
119
117
|
if type =~ /\AArray<(.*)>/i
|
120
|
-
# check to ensure the input is an array given that the
|
118
|
+
# check to ensure the input is an array given that the attribute
|
121
119
|
# is documented as an array but the input is not
|
122
120
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
123
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
121
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
124
122
|
end
|
125
123
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
126
124
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -202,7 +200,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
202
200
|
# @return [Hash] Returns the value in the form of hash
|
203
201
|
def _to_hash(value)
|
204
202
|
if value.is_a?(Array)
|
205
|
-
value.compact.map{ |v| _to_hash(v) }
|
203
|
+
value.compact.map { |v| _to_hash(v) }
|
206
204
|
elsif value.is_a?(Hash)
|
207
205
|
{}.tap do |hash|
|
208
206
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -215,5 +213,4 @@ module CloudmersiveImageRecognitionApiClient
|
|
215
213
|
end
|
216
214
|
|
217
215
|
end
|
218
|
-
|
219
216
|
end
|
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.5'
|
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,7 +51,7 @@ 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
|
@@ -64,7 +64,7 @@ describe 'ConvertApi' do
|
|
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
|
@@ -94,7 +128,7 @@ describe 'EditApi' do
|
|
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
|
@@ -106,7 +140,7 @@ describe 'EditApi' do
|
|
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
|
@@ -118,7 +152,7 @@ describe 'EditApi' do
|
|
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
|
@@ -134,7 +168,7 @@ describe 'EditApi' do
|
|
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
|
138
172
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
173
|
end
|
140
174
|
end
|
@@ -146,7 +180,7 @@ describe 'EditApi' do
|
|
146
180
|
# @param [Hash] opts the optional parameters
|
147
181
|
# @return [String]
|
148
182
|
describe 'edit_invert test' do
|
149
|
-
it
|
183
|
+
it 'should work' do
|
150
184
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
185
|
end
|
152
186
|
end
|
@@ -158,7 +192,7 @@ describe 'EditApi' do
|
|
158
192
|
# @param [Hash] opts the optional parameters
|
159
193
|
# @return [String]
|
160
194
|
describe 'edit_remove_exif_data test' do
|
161
|
-
it
|
195
|
+
it 'should work' do
|
162
196
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
197
|
end
|
164
198
|
end
|
@@ -170,7 +204,7 @@ describe 'EditApi' do
|
|
170
204
|
# @param [Hash] opts the optional parameters
|
171
205
|
# @return [String]
|
172
206
|
describe 'edit_remove_transparency test' do
|
173
|
-
it
|
207
|
+
it 'should work' do
|
174
208
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
209
|
end
|
176
210
|
end
|
@@ -183,7 +217,7 @@ describe 'EditApi' do
|
|
183
217
|
# @param [Hash] opts the optional parameters
|
184
218
|
# @return [String]
|
185
219
|
describe 'edit_rotate test' do
|
186
|
-
it
|
220
|
+
it 'should work' do
|
187
221
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
188
222
|
end
|
189
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,7 +40,7 @@ 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
|
@@ -52,7 +52,7 @@ describe 'FaceApi' do
|
|
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
|
@@ -64,7 +64,7 @@ describe 'FaceApi' do
|
|
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,7 +88,7 @@ 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
|
@@ -100,7 +100,7 @@ describe 'FaceApi' do
|
|
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
|
@@ -112,7 +112,7 @@ describe 'FaceApi' do
|
|
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
|