cloudmersive-image-recognition-api-client 1.4.6 → 2.0.1
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
- metadata +3 -145
- data/Gemfile +0 -7
- data/README.md +0 -184
- data/Rakefile +0 -8
- data/cloudmersive-image-recognition-api-client.gemspec +0 -45
- data/docs/AgeDetectionResult.md +0 -10
- data/docs/ArtisticApi.md +0 -66
- data/docs/ColorResult.md +0 -10
- data/docs/ConvertApi.md +0 -396
- data/docs/DetectedLicensePlate.md +0 -14
- data/docs/DetectedObject.md +0 -13
- data/docs/DominantColorResult.md +0 -9
- data/docs/DrawPolygonInstance.md +0 -11
- data/docs/DrawPolygonRequest.md +0 -10
- data/docs/DrawRectangleInstance.md +0 -14
- data/docs/DrawRectangleRequest.md +0 -10
- data/docs/DrawTextInstance.md +0 -15
- data/docs/DrawTextRequest.md +0 -10
- data/docs/EditApi.md +0 -704
- data/docs/Face.md +0 -11
- data/docs/FaceApi.md +0 -396
- data/docs/FaceCompareResponse.md +0 -11
- data/docs/FaceLocateResponse.md +0 -11
- data/docs/FaceLocateWithLandmarksResponse.md +0 -11
- data/docs/FaceMatch.md +0 -13
- data/docs/FacePoint.md +0 -9
- data/docs/FaceWithLandmarks.md +0 -20
- data/docs/FilterApi.md +0 -478
- data/docs/FindSymbolResult.md +0 -13
- data/docs/FineTextDetectionResult.md +0 -10
- data/docs/FineTextItem.md +0 -18
- data/docs/GenderDetectionResult.md +0 -10
- data/docs/ImageDescriptionResponse.md +0 -11
- data/docs/ImageMetadata.md +0 -17
- data/docs/ImageMetadataExifValue.md +0 -10
- data/docs/InfoApi.md +0 -118
- data/docs/NsfwApi.md +0 -63
- data/docs/NsfwResult.md +0 -10
- data/docs/ObjectDetectionResult.md +0 -10
- data/docs/PersonWithAge.md +0 -11
- data/docs/PersonWithGender.md +0 -10
- data/docs/PolygonPoint.md +0 -9
- data/docs/RecognitionOutcome.md +0 -9
- data/docs/RecognizeApi.md +0 -455
- data/docs/ResizeApi.md +0 -130
- data/docs/TextDetectionResult.md +0 -10
- data/docs/TextItem.md +0 -11
- data/docs/VehicleLicensePlateDetectionResult.md +0 -10
- data/git_push.sh +0 -55
- data/lib/cloudmersive-image-recognition-api-client.rb +0 -82
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +0 -85
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +0 -421
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +0 -765
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +0 -422
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +0 -533
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +0 -135
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +0 -79
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +0 -481
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +0 -159
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +0 -389
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +0 -38
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +0 -201
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +0 -249
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +0 -259
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +0 -227
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +0 -221
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +0 -327
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +0 -239
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +0 -289
- data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +0 -281
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +0 -218
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -209
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +0 -199
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +0 -219
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +0 -211
- data/lib/cloudmersive-image-recognition-api-client/version.rb +0 -15
- data/spec/api/artistic_api_spec.rb +0 -48
- data/spec/api/convert_api_spec.rb +0 -120
- data/spec/api/edit_api_spec.rb +0 -191
- data/spec/api/face_api_spec.rb +0 -120
- data/spec/api/filter_api_spec.rb +0 -141
- data/spec/api/info_api_spec.rb +0 -59
- data/spec/api/nsfw_api_spec.rb +0 -47
- data/spec/api/recognize_api_spec.rb +0 -133
- data/spec/api/resize_api_spec.rb +0 -63
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/age_detection_result_spec.rb +0 -54
- data/spec/models/color_result_spec.rb +0 -54
- data/spec/models/detected_license_plate_spec.rb +0 -78
- data/spec/models/detected_object_spec.rb +0 -72
- data/spec/models/dominant_color_result_spec.rb +0 -48
- data/spec/models/draw_polygon_instance_spec.rb +0 -60
- data/spec/models/draw_polygon_request_spec.rb +0 -54
- data/spec/models/draw_rectangle_instance_spec.rb +0 -78
- data/spec/models/draw_rectangle_request_spec.rb +0 -54
- data/spec/models/draw_text_instance_spec.rb +0 -84
- data/spec/models/draw_text_request_spec.rb +0 -54
- data/spec/models/face_compare_response_spec.rb +0 -60
- data/spec/models/face_locate_response_spec.rb +0 -60
- data/spec/models/face_locate_with_landmarks_response_spec.rb +0 -60
- data/spec/models/face_match_spec.rb +0 -72
- data/spec/models/face_point_spec.rb +0 -48
- data/spec/models/face_spec.rb +0 -60
- data/spec/models/face_with_landmarks_spec.rb +0 -114
- data/spec/models/find_symbol_result_spec.rb +0 -72
- data/spec/models/fine_text_detection_result_spec.rb +0 -54
- data/spec/models/fine_text_item_spec.rb +0 -102
- data/spec/models/gender_detection_result_spec.rb +0 -54
- data/spec/models/image_description_response_spec.rb +0 -60
- data/spec/models/image_metadata_exif_value_spec.rb +0 -54
- data/spec/models/image_metadata_spec.rb +0 -96
- data/spec/models/nsfw_result_spec.rb +0 -54
- data/spec/models/object_detection_result_spec.rb +0 -54
- data/spec/models/person_with_age_spec.rb +0 -60
- data/spec/models/person_with_gender_spec.rb +0 -54
- data/spec/models/polygon_point_spec.rb +0 -48
- data/spec/models/recognition_outcome_spec.rb +0 -48
- data/spec/models/text_detection_result_spec.rb +0 -54
- data/spec/models/text_item_spec.rb +0 -60
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +0 -54
- data/spec/spec_helper.rb +0 -111
data/spec/api/face_api_spec.rb
DELETED
@@ -1,120 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::FaceApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'FaceApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of FaceApi' do
|
30
|
-
it 'should create an instance of FaceApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::FaceApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for face_compare
|
36
|
-
# Compare and match faces
|
37
|
-
# Find the faces in an input image, and compare against a reference image to determine if there is a match against the face in the reference image. The reference image (second parameter) should contain exactly one face.
|
38
|
-
# @param input_image Image file to perform the operation on; this image can contain one or more faces which will be matched against face provided in the second image. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param match_face Image of a single face to compare and match against.
|
40
|
-
# @param [Hash] opts the optional parameters
|
41
|
-
# @return [FaceCompareResponse]
|
42
|
-
describe 'face_compare test' do
|
43
|
-
it "should work" do
|
44
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
# unit tests for face_crop_first
|
49
|
-
# Crop image to face with square crop
|
50
|
-
# Crop an image to the face (rectangular crop). If there is more than one face present, choose the first one.
|
51
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
52
|
-
# @param [Hash] opts the optional parameters
|
53
|
-
# @return [String]
|
54
|
-
describe 'face_crop_first test' do
|
55
|
-
it "should work" do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# unit tests for face_crop_first_round
|
61
|
-
# Crop image to face with round crop
|
62
|
-
# Crop an image to the face (circular/round crop). If there is more than one face present, choose the first one.
|
63
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
64
|
-
# @param [Hash] opts the optional parameters
|
65
|
-
# @return [String]
|
66
|
-
describe 'face_crop_first_round test' do
|
67
|
-
it "should work" do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# unit tests for face_detect_age
|
73
|
-
# Detect the age of people in an image
|
74
|
-
# Identify the age, position, and size of human faces in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
|
75
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
76
|
-
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [AgeDetectionResult]
|
78
|
-
describe 'face_detect_age test' do
|
79
|
-
it "should work" do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# unit tests for face_detect_gender
|
85
|
-
# Detect the gender of people in an image
|
86
|
-
# Identify the gender, position, and size of human faces in an image, along with a recognition confidence level. People in the image should be facing the camera.
|
87
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [GenderDetectionResult]
|
90
|
-
describe 'face_detect_gender test' do
|
91
|
-
it "should work" do
|
92
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# unit tests for face_locate
|
97
|
-
# Detect and find faces in an image
|
98
|
-
# Locate the positions of all faces in an image
|
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 [FaceLocateResponse]
|
102
|
-
describe 'face_locate test' do
|
103
|
-
it "should work" do
|
104
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# unit tests for face_locate_with_landmarks
|
109
|
-
# Detect and find faces and landmarks eyes and nose and mouth in image
|
110
|
-
# Locate the positions of all faces in an image, along with the eyes, eye brows, nose and mouth components of each
|
111
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
112
|
-
# @param [Hash] opts the optional parameters
|
113
|
-
# @return [FaceLocateWithLandmarksResponse]
|
114
|
-
describe 'face_locate_with_landmarks test' do
|
115
|
-
it "should work" do
|
116
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
end
|
data/spec/api/filter_api_spec.rb
DELETED
@@ -1,141 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::FilterApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'FilterApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of FilterApi' do
|
30
|
-
it 'should create an instance of FilterApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::FilterApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for filter_black_and_white
|
36
|
-
# Convert image to black-and-white grayscale
|
37
|
-
# Remove color from the image by converting to a grayscale, black-and-white image
|
38
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [String]
|
41
|
-
describe 'filter_black_and_white test' do
|
42
|
-
it "should work" do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for filter_despeckle
|
48
|
-
# Despeckle to remove point noise from the image
|
49
|
-
# Remove point noise / despeckle the input image
|
50
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [String]
|
53
|
-
describe 'filter_despeckle test' do
|
54
|
-
it "should work" do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# unit tests for filter_edge_detect
|
60
|
-
# Detect and highlight edges in an image
|
61
|
-
# Perform an edge detection operation on the input image
|
62
|
-
# @param radius Radius in pixels of the edge detection operation; a larger radius will produce a greater effect
|
63
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
64
|
-
# @param [Hash] opts the optional parameters
|
65
|
-
# @return [String]
|
66
|
-
describe 'filter_edge_detect test' do
|
67
|
-
it "should work" do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# unit tests for filter_emboss
|
73
|
-
# Emboss an image
|
74
|
-
# Perform an emboss operation on the input image
|
75
|
-
# @param radius Radius in pixels of the emboss operation; a larger radius will produce a greater effect
|
76
|
-
# @param sigma Sigma, or variance, of the emboss operation
|
77
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
78
|
-
# @param [Hash] opts the optional parameters
|
79
|
-
# @return [String]
|
80
|
-
describe 'filter_emboss test' do
|
81
|
-
it "should work" do
|
82
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
|
-
# unit tests for filter_gaussian_blur
|
87
|
-
# Perform a guassian blur on the input image
|
88
|
-
# Perform a gaussian blur on the input image
|
89
|
-
# @param radius Radius in pixels of the blur operation; a larger radius will produce a greater blur effect
|
90
|
-
# @param sigma Sigma, or variance, of the gaussian blur operation
|
91
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
92
|
-
# @param [Hash] opts the optional parameters
|
93
|
-
# @return [String]
|
94
|
-
describe 'filter_gaussian_blur test' do
|
95
|
-
it "should work" do
|
96
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
# unit tests for filter_motion_blur
|
101
|
-
# Perform a motion blur on the input image
|
102
|
-
# Perform a motion blur on the input image at a specific angle
|
103
|
-
# @param radius Radius in pixels of the blur operation; a larger radius will produce a greater blur effect
|
104
|
-
# @param sigma Sigma, or variance, of the motion blur operation
|
105
|
-
# @param angle Angle of the motion blur in degrees
|
106
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
107
|
-
# @param [Hash] opts the optional parameters
|
108
|
-
# @return [String]
|
109
|
-
describe 'filter_motion_blur test' do
|
110
|
-
it "should work" do
|
111
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
112
|
-
end
|
113
|
-
end
|
114
|
-
|
115
|
-
# unit tests for filter_posterize
|
116
|
-
# Posterize the image by reducing distinct colors
|
117
|
-
# Reduce the unique number of colors in the image to the specified level
|
118
|
-
# @param levels Number of unique colors to retain in the output image
|
119
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
120
|
-
# @param [Hash] opts the optional parameters
|
121
|
-
# @return [String]
|
122
|
-
describe 'filter_posterize test' do
|
123
|
-
it "should work" do
|
124
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
# unit tests for filter_swirl
|
129
|
-
# Swirl distort the image
|
130
|
-
# Swirl distort the image by the specified number of degrees
|
131
|
-
# @param degrees Degrees of swirl
|
132
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
133
|
-
# @param [Hash] opts the optional parameters
|
134
|
-
# @return [String]
|
135
|
-
describe 'filter_swirl test' do
|
136
|
-
it "should work" do
|
137
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
138
|
-
end
|
139
|
-
end
|
140
|
-
|
141
|
-
end
|
data/spec/api/info_api_spec.rb
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::InfoApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'InfoApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::InfoApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of InfoApi' do
|
30
|
-
it 'should create an instance of InfoApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::InfoApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for info_get_dominant_color
|
36
|
-
# Returns the dominant colors of the image
|
37
|
-
# Uses advanced image processing to extract the top 5 dominant colors in the image, returned in the order of dominance with the most-dominant color first. These are the primary perceptual colors used in the image as perceived by a viewer.
|
38
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [DominantColorResult]
|
41
|
-
describe 'info_get_dominant_color test' do
|
42
|
-
it "should work" do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for info_get_metadata
|
48
|
-
# Returns the image metadata including EXIF and resolution
|
49
|
-
# Returns the metadata information on the image, including file type, EXIF (if available), and resolution.
|
50
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @return [ImageMetadata]
|
53
|
-
describe 'info_get_metadata test' do
|
54
|
-
it "should work" do
|
55
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
end
|
data/spec/api/nsfw_api_spec.rb
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::NsfwApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'NsfwApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::NsfwApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of NsfwApi' do
|
30
|
-
it 'should create an instance of NsfwApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::NsfwApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for nsfw_classify
|
36
|
-
# Not safe for work NSFW racy content classification
|
37
|
-
# Classify an image into Not Safe For Work (NSFW)/Porn/Racy content and Safe Content.
|
38
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [NsfwResult]
|
41
|
-
describe 'nsfw_classify test' do
|
42
|
-
it "should work" do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
@@ -1,133 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#imageapi
|
3
|
-
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
5
|
-
|
6
|
-
OpenAPI spec version: v1
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 2.3.1
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'spec_helper'
|
14
|
-
require 'json'
|
15
|
-
|
16
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::RecognizeApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'RecognizeApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of RecognizeApi' do
|
30
|
-
it 'should create an instance of RecognizeApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::RecognizeApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for recognize_describe
|
36
|
-
# Describe an image in natural language
|
37
|
-
# Generate an English language text description of the image as a sentence.
|
38
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
39
|
-
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [ImageDescriptionResponse]
|
41
|
-
describe 'recognize_describe test' do
|
42
|
-
it "should work" do
|
43
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
# unit tests for recognize_detect_and_unskew_document
|
48
|
-
# Detect and unskew a photo of a document
|
49
|
-
# Detect and unskew a photo of a document (e.g. taken on a cell phone) into a perfectly square image. Great for document scanning applications; once unskewed, this image is perfect for converting to PDF using the Convert API or optical character recognition using the OCR API.
|
50
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
51
|
-
# @param [Hash] opts the optional parameters
|
52
|
-
# @option opts [String] :post_processing_effect Optional, post-processing effects to apply to the email, default is None. Possible values are None and BlackAndWhite (force the image into a black and white view to aid in OCR operations).
|
53
|
-
# @return [String]
|
54
|
-
describe 'recognize_detect_and_unskew_document test' do
|
55
|
-
it "should work" do
|
56
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# unit tests for recognize_detect_objects
|
61
|
-
# Detect objects including types and locations in an image
|
62
|
-
# Identify the position, size and description of objects in an image, along with a recognition confidence level. Detects both human people and objects in an image.
|
63
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
64
|
-
# @param [Hash] opts the optional parameters
|
65
|
-
# @return [ObjectDetectionResult]
|
66
|
-
describe 'recognize_detect_objects test' do
|
67
|
-
it "should work" do
|
68
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
-
end
|
70
|
-
end
|
71
|
-
|
72
|
-
# unit tests for recognize_detect_people
|
73
|
-
# Detect people including locations in an image
|
74
|
-
# Identify the position, and size of human people in an image, along with a recognition confidence level. People in the image do NOT need to be facing the camera; they can be facing away, edge-on, etc.
|
75
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
76
|
-
# @param [Hash] opts the optional parameters
|
77
|
-
# @return [ObjectDetectionResult]
|
78
|
-
describe 'recognize_detect_people test' do
|
79
|
-
it "should work" do
|
80
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
# unit tests for recognize_detect_text_fine
|
85
|
-
# Detect fine text in a photo of a document
|
86
|
-
# Identify the position, and size of small/fine text within a photograph of a document. Identify the location of small text in a photo - such as words and other forms of high density text. Can be used on a scan of a document or a photograph (e.g. smartphone camera) of a document, page or receipt. For OCR purposes - please see our Deep Learning OCR APIs.
|
87
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
88
|
-
# @param [Hash] opts the optional parameters
|
89
|
-
# @return [FineTextDetectionResult]
|
90
|
-
describe 'recognize_detect_text_fine test' do
|
91
|
-
it "should work" do
|
92
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# unit tests for recognize_detect_text_large
|
97
|
-
# Detect large text in a photo
|
98
|
-
# Identify the position, and size of large text within a photograph. Identify the location of large text in a photo - such as signs, titles, etc. and other forms of large, low-density text. Not suitable for high-density text (e.g. scans of documents, receipts, etc.) for OCR purposes - for OCR, please see our Deep Learning OCR APIs.
|
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 [TextDetectionResult]
|
102
|
-
describe 'recognize_detect_text_large test' do
|
103
|
-
it "should work" do
|
104
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
-
end
|
106
|
-
end
|
107
|
-
|
108
|
-
# unit tests for recognize_detect_vehicle_license_plates
|
109
|
-
# Detect vehicle license plates in an image
|
110
|
-
# Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera.
|
111
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
112
|
-
# @param [Hash] opts the optional parameters
|
113
|
-
# @return [VehicleLicensePlateDetectionResult]
|
114
|
-
describe 'recognize_detect_vehicle_license_plates test' do
|
115
|
-
it "should work" do
|
116
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
# unit tests for recognize_find_symbol
|
121
|
-
# Find the location of a symbol in an image
|
122
|
-
# Determine if an image contains a symbol, and if so, the location of that symbol in the image.
|
123
|
-
# @param input_image Image file to search through for the target image.
|
124
|
-
# @param target_image Image to find in the input image.
|
125
|
-
# @param [Hash] opts the optional parameters
|
126
|
-
# @return [FindSymbolResult]
|
127
|
-
describe 'recognize_find_symbol test' do
|
128
|
-
it "should work" do
|
129
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
130
|
-
end
|
131
|
-
end
|
132
|
-
|
133
|
-
end
|