cloudmersive-image-recognition-api-client 1.4.2 → 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 -139
- data/Gemfile +0 -7
- data/README.md +0 -174
- 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 -176
- 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 -539
- 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/InfoApi.md +0 -63
- 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 -80
- 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 -197
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +0 -597
- 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 -79
- 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 -220
- 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/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 -72
- data/spec/api/edit_api_spec.rb +0 -155
- 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 -47
- 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/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
@@ -1,72 +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::ConvertApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'ConvertApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of ConvertApi' do
|
30
|
-
it 'should create an instance of ConvertApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::ConvertApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for convert_to_gif
|
36
|
-
# Convert input image to GIF format
|
37
|
-
# Converts the input image into GIF format. 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.
|
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 'convert_to_gif 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 convert_to_jpg
|
48
|
-
# Convert input image to JPG/JPEG format
|
49
|
-
# 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.
|
50
|
-
# @param quality Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
|
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 'convert_to_jpg 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 convert_to_png
|
61
|
-
# Convert input image to PNG format
|
62
|
-
# Converts the input image into PNG format. Transparency is preserved when present. 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.
|
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 'convert_to_png 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
|
-
end
|
data/spec/api/edit_api_spec.rb
DELETED
@@ -1,155 +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::EditApi
|
17
|
-
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
-
# Please update as you see appropriate
|
19
|
-
describe 'EditApi' do
|
20
|
-
before do
|
21
|
-
# run before each test
|
22
|
-
@instance = CloudmersiveImageRecognitionApiClient::EditApi.new
|
23
|
-
end
|
24
|
-
|
25
|
-
after do
|
26
|
-
# run after each test
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'test an instance of EditApi' do
|
30
|
-
it 'should create an instance of EditApi' do
|
31
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::EditApi)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
# unit tests for edit_auto_orient
|
36
|
-
# Normalizes image rotation and removes EXIF rotation data
|
37
|
-
# Automatically orients the input image based on EXIF information and then removes the EXIF information. EXIF is an additional set of information stored in some images taken with cell phone cameras based on the orientation of the camera. By normalizing rotation and removing EXIF data these images become much easier to process.
|
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 'edit_auto_orient 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 edit_composite_basic
|
48
|
-
# Composite two images together
|
49
|
-
# Composites two input images together; a layered image onto a base image. 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.
|
50
|
-
# @param location Location to composite the layered images; possible values are: \"center\", \"top-left\", \"top-center\", \"top-right\", \"center-left\", \"center-right\", \"bottom-left\", \"bottom-center\", \"bottom-right\"
|
51
|
-
# @param base_image Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
52
|
-
# @param layered_image Image to layer on top of the base image.
|
53
|
-
# @param [Hash] opts the optional parameters
|
54
|
-
# @return [String]
|
55
|
-
describe 'edit_composite_basic test' do
|
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_contrast_adaptive
|
62
|
-
# Adaptively adjust the contrast of the image to be more appealing and easy to see
|
63
|
-
# Uses Gamma to adjust the contrast adaptively the way the human eye sees the world. Results significantly improve the viewability and visual appeal of the image.
|
64
|
-
# @param gamma Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
|
65
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
66
|
-
# @param [Hash] opts the optional parameters
|
67
|
-
# @return [String]
|
68
|
-
describe 'edit_contrast_adaptive test' do
|
69
|
-
it "should work" do
|
70
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# unit tests for edit_crop_rectangle
|
75
|
-
# Crop an image to a rectangular area
|
76
|
-
# Crop an image to a target rectangular area
|
77
|
-
# @param left The left edge of the rectangular crop area in pixels (X).
|
78
|
-
# @param top The top edge of the rectangular crop area in pixels (Y).
|
79
|
-
# @param width The width of the rectangular crop area in pixels.
|
80
|
-
# @param height The height of the rectangular crop area in pixels.
|
81
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
82
|
-
# @param [Hash] opts the optional parameters
|
83
|
-
# @return [String]
|
84
|
-
describe 'edit_crop_rectangle test' do
|
85
|
-
it "should work" do
|
86
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
|
-
end
|
88
|
-
end
|
89
|
-
|
90
|
-
# unit tests for edit_draw_polygon
|
91
|
-
# Draw a polygon onto an image
|
92
|
-
# Draw one or more polygons, with customized visuals, onto an image
|
93
|
-
# @param request
|
94
|
-
# @param [Hash] opts the optional parameters
|
95
|
-
# @return [String]
|
96
|
-
describe 'edit_draw_polygon test' do
|
97
|
-
it "should work" do
|
98
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
-
end
|
100
|
-
end
|
101
|
-
|
102
|
-
# unit tests for edit_draw_rectangle
|
103
|
-
# Draw a rectangle onto an image
|
104
|
-
# Draw one or more rectangles, with customized visuals, onto an image
|
105
|
-
# @param request
|
106
|
-
# @param [Hash] opts the optional parameters
|
107
|
-
# @return [String]
|
108
|
-
describe 'edit_draw_rectangle test' do
|
109
|
-
it "should work" do
|
110
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
-
end
|
112
|
-
end
|
113
|
-
|
114
|
-
# unit tests for edit_draw_text
|
115
|
-
# Draw text onto an image
|
116
|
-
# Draw one or more pieces of text, with customized visuals, onto an image
|
117
|
-
# @param request
|
118
|
-
# @param [Hash] opts the optional parameters
|
119
|
-
# @return [String]
|
120
|
-
describe 'edit_draw_text test' do
|
121
|
-
it "should work" do
|
122
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
# unit tests for edit_drop_shadow
|
127
|
-
# Add a customizeable drop shadow to an image
|
128
|
-
# Add a customizeable drop shadow to the image
|
129
|
-
# @param x
|
130
|
-
# @param y
|
131
|
-
# @param sigma Sigma (blur distance) of the drop shadow
|
132
|
-
# @param opacity Opacity of the drop shadow; 0 is 0% and 100 is 100%
|
133
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
134
|
-
# @param [Hash] opts the optional parameters
|
135
|
-
# @return [String]
|
136
|
-
describe 'edit_drop_shadow test' do
|
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_rotate
|
143
|
-
# Rotate an image any number of degrees
|
144
|
-
# Rotates an image by an arbitrary number of degrees
|
145
|
-
# @param degrees Degrees to rotate the image; values range from 0.0 to 360.0.
|
146
|
-
# @param image_file Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
|
147
|
-
# @param [Hash] opts the optional parameters
|
148
|
-
# @return [String]
|
149
|
-
describe 'edit_rotate test' do
|
150
|
-
it "should work" do
|
151
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
|
-
end
|
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 (square)
|
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 (round)
|
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
|
-
# 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
|
-
# Find faces and face landmarks (eyes, eye brows, nose, mouth) in an 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 (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
|