cloudmersive-image-recognition-api-client 2.0.5 → 2.1.0
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/README.md +19 -19
- data/cloudmersive-image-recognition-api-client.gemspec +1 -1
- data/docs/AgeDetectionResult.md +1 -1
- data/docs/AiImageDetectionApi.md +63 -0
- data/docs/ConvertApi.md +58 -3
- data/docs/FaceApi.md +4 -4
- data/docs/FineTextItem.md +1 -0
- data/docs/ImageAiDetectionResult.md +10 -0
- data/docs/NsfwAdvancedResult.md +19 -0
- data/docs/NsfwApi.md +169 -4
- data/docs/PersonWithAge.md +4 -1
- data/docs/RecognizeApi.md +0 -110
- data/docs/ResizeApi.md +55 -0
- data/docs/TextItem.md +1 -0
- data/lib/cloudmersive-image-recognition-api-client/api/ai_image_detection_api.rb +78 -0
- data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +58 -3
- data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +8 -8
- data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +170 -5
- data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +1 -111
- data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +56 -1
- data/lib/cloudmersive-image-recognition-api-client/api/text_generation_api.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api_client.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/configuration.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +3 -3
- data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/create_handwriting_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +12 -2
- data/lib/cloudmersive-image-recognition-api-client/models/{gender_detection_result.rb → image_ai_detection_result.rb} +25 -27
- data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_comparison_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_response.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_advanced_result.rb +296 -0
- data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +36 -5
- data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +12 -2
- data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +1 -1
- data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
- data/lib/cloudmersive-image-recognition-api-client.rb +4 -5
- data/spec/api/ai_image_detection_api_spec.rb +47 -0
- data/spec/api/artistic_api_spec.rb +1 -1
- data/spec/api/convert_api_spec.rb +14 -2
- data/spec/api/edit_api_spec.rb +1 -1
- data/spec/api/face_api_spec.rb +4 -4
- data/spec/api/filter_api_spec.rb +1 -1
- data/spec/api/info_api_spec.rb +1 -1
- data/spec/api/nsfw_api_spec.rb +39 -3
- data/spec/api/recognize_api_spec.rb +1 -25
- data/spec/api/resize_api_spec.rb +13 -1
- data/spec/api/text_generation_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/age_detection_result_spec.rb +1 -1
- data/spec/models/color_result_spec.rb +1 -1
- data/spec/models/create_handwriting_request_spec.rb +1 -1
- data/spec/models/detected_license_plate_spec.rb +1 -1
- data/spec/models/dominant_color_result_spec.rb +1 -1
- data/spec/models/draw_polygon_instance_spec.rb +1 -1
- data/spec/models/draw_polygon_request_spec.rb +1 -1
- data/spec/models/draw_rectangle_instance_spec.rb +1 -1
- data/spec/models/draw_rectangle_request_spec.rb +1 -1
- data/spec/models/draw_text_instance_spec.rb +1 -1
- data/spec/models/draw_text_request_spec.rb +1 -1
- data/spec/models/face_compare_response_spec.rb +1 -1
- data/spec/models/face_locate_response_spec.rb +1 -1
- data/spec/models/face_locate_with_landmarks_response_spec.rb +1 -1
- data/spec/models/face_match_spec.rb +1 -1
- data/spec/models/face_point_spec.rb +1 -1
- data/spec/models/face_spec.rb +1 -1
- data/spec/models/face_with_landmarks_spec.rb +1 -1
- data/spec/models/find_symbol_result_spec.rb +1 -1
- data/spec/models/fine_text_detection_result_spec.rb +1 -1
- data/spec/models/fine_text_item_spec.rb +7 -1
- data/spec/models/{person_with_gender_spec.rb → image_ai_detection_result_spec.rb} +10 -10
- data/spec/models/image_description_response_spec.rb +1 -1
- data/spec/models/image_metadata_exif_value_spec.rb +1 -1
- data/spec/models/image_metadata_spec.rb +1 -1
- data/spec/models/image_similarity_comparison_response_spec.rb +1 -1
- data/spec/models/image_similarity_hash_distance_request_spec.rb +1 -1
- data/spec/models/image_similarity_hash_distance_response_spec.rb +1 -1
- data/spec/models/image_similarity_hash_response_spec.rb +1 -1
- data/spec/models/nsfw_advanced_result_spec.rb +107 -0
- data/spec/models/nsfw_result_spec.rb +1 -1
- data/spec/models/person_with_age_spec.rb +19 -1
- data/spec/models/polygon_point_spec.rb +1 -1
- data/spec/models/recognition_outcome_spec.rb +1 -1
- data/spec/models/text_detection_result_spec.rb +1 -1
- data/spec/models/text_item_spec.rb +7 -1
- data/spec/models/vehicle_license_plate_detection_result_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +27 -30
- data/docs/DetectedObject.md +0 -13
- data/docs/GenderDetectionResult.md +0 -10
- data/docs/ObjectDetectionResult.md +0 -10
- data/docs/PersonWithGender.md +0 -10
- data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +0 -236
- data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +0 -208
- data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +0 -206
- data/spec/models/detected_object_spec.rb +0 -71
- data/spec/models/gender_detection_result_spec.rb +0 -53
- data/spec/models/object_detection_result_spec.rb +0 -53
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -32,6 +32,12 @@ describe 'FineTextItem' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::FineTextItem)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
describe 'test attribute "detected_text"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
describe 'test attribute "top_left_x"' do
|
|
36
42
|
it 'should work' do
|
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -14,37 +14,37 @@ require 'spec_helper'
|
|
|
14
14
|
require 'json'
|
|
15
15
|
require 'date'
|
|
16
16
|
|
|
17
|
-
# Unit tests for CloudmersiveImageRecognitionApiClient::
|
|
17
|
+
# Unit tests for CloudmersiveImageRecognitionApiClient::ImageAiDetectionResult
|
|
18
18
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
|
-
describe '
|
|
20
|
+
describe 'ImageAiDetectionResult' do
|
|
21
21
|
before do
|
|
22
22
|
# run before each test
|
|
23
|
-
@instance = CloudmersiveImageRecognitionApiClient::
|
|
23
|
+
@instance = CloudmersiveImageRecognitionApiClient::ImageAiDetectionResult.new
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
after do
|
|
27
27
|
# run after each test
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test an instance of
|
|
31
|
-
it 'should create an instance of
|
|
32
|
-
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::
|
|
30
|
+
describe 'test an instance of ImageAiDetectionResult' do
|
|
31
|
+
it 'should create an instance of ImageAiDetectionResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::ImageAiDetectionResult)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
-
describe 'test attribute "
|
|
35
|
+
describe 'test attribute "clean_result"' do
|
|
36
36
|
it 'should work' do
|
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "ai_generated_risk_score"' do
|
|
42
42
|
it 'should work' do
|
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
44
|
end
|
|
45
45
|
end
|
|
46
46
|
|
|
47
|
-
describe 'test attribute "
|
|
47
|
+
describe 'test attribute "ai_source"' do
|
|
48
48
|
it 'should work' do
|
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
50
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#imageapi
|
|
3
|
+
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and 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.4.14
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersiveImageRecognitionApiClient::NsfwAdvancedResult
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'NsfwAdvancedResult' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveImageRecognitionApiClient::NsfwAdvancedResult.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of NsfwAdvancedResult' do
|
|
31
|
+
it 'should create an instance of NsfwAdvancedResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::NsfwAdvancedResult)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "clean_result"' 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
|
+
describe 'test attribute "contains_nudity"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "contains_graphic_violence"' 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
|
+
describe 'test attribute "contains_non_graphic_violence"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "contains_self_harm"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
describe 'test attribute "contains_hate"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe 'test attribute "contains_potential_illegal_activity"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
describe 'test attribute "contains_medical_imagery"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
describe 'test attribute "contains_profanity"' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
describe 'test attribute "score"' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
describe 'test attribute "classification_outcome"' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -56,4 +56,22 @@ describe 'PersonWithAge' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
describe 'test attribute "gender_classification"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "gender_female_confidence"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
describe 'test attribute "gender_male_confidence"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
59
77
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -32,6 +32,12 @@ describe 'TextItem' do
|
|
|
32
32
|
expect(@instance).to be_instance_of(CloudmersiveImageRecognitionApiClient::TextItem)
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
|
+
describe 'test attribute "detected_text"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
35
41
|
describe 'test attribute "left_x"' do
|
|
36
42
|
it 'should work' do
|
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#imageapi
|
|
3
3
|
|
|
4
|
-
#Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
4
|
+
#Image Recognition and Processing APIs let you use Artificial Intelligence and Machine Learning to recognize and process images, and also perform useful image modification operations.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-image-recognition-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -34,42 +34,42 @@ dependencies:
|
|
|
34
34
|
name: json
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: 2.1.0
|
|
40
37
|
- - "~>"
|
|
41
38
|
- !ruby/object:Gem::Version
|
|
42
39
|
version: '2.1'
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: 2.1.0
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - ">="
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 2.1.0
|
|
50
47
|
- - "~>"
|
|
51
48
|
- !ruby/object:Gem::Version
|
|
52
49
|
version: '2.1'
|
|
50
|
+
- - ">="
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: 2.1.0
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: rspec
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
|
-
- - ">="
|
|
58
|
-
- !ruby/object:Gem::Version
|
|
59
|
-
version: 3.6.0
|
|
60
57
|
- - "~>"
|
|
61
58
|
- !ruby/object:Gem::Version
|
|
62
59
|
version: '3.6'
|
|
60
|
+
- - ">="
|
|
61
|
+
- !ruby/object:Gem::Version
|
|
62
|
+
version: 3.6.0
|
|
63
63
|
type: :development
|
|
64
64
|
prerelease: false
|
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
66
|
requirements:
|
|
67
|
-
- - ">="
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: 3.6.0
|
|
70
67
|
- - "~>"
|
|
71
68
|
- !ruby/object:Gem::Version
|
|
72
69
|
version: '3.6'
|
|
70
|
+
- - ">="
|
|
71
|
+
- !ruby/object:Gem::Version
|
|
72
|
+
version: 3.6.0
|
|
73
73
|
- !ruby/object:Gem::Dependency
|
|
74
74
|
name: vcr
|
|
75
75
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -204,12 +204,12 @@ files:
|
|
|
204
204
|
- "./Rakefile"
|
|
205
205
|
- "./cloudmersive-image-recognition-api-client.gemspec"
|
|
206
206
|
- "./docs/AgeDetectionResult.md"
|
|
207
|
+
- "./docs/AiImageDetectionApi.md"
|
|
207
208
|
- "./docs/ArtisticApi.md"
|
|
208
209
|
- "./docs/ColorResult.md"
|
|
209
210
|
- "./docs/ConvertApi.md"
|
|
210
211
|
- "./docs/CreateHandwritingRequest.md"
|
|
211
212
|
- "./docs/DetectedLicensePlate.md"
|
|
212
|
-
- "./docs/DetectedObject.md"
|
|
213
213
|
- "./docs/DominantColorResult.md"
|
|
214
214
|
- "./docs/DrawPolygonInstance.md"
|
|
215
215
|
- "./docs/DrawPolygonRequest.md"
|
|
@@ -230,7 +230,7 @@ files:
|
|
|
230
230
|
- "./docs/FindSymbolResult.md"
|
|
231
231
|
- "./docs/FineTextDetectionResult.md"
|
|
232
232
|
- "./docs/FineTextItem.md"
|
|
233
|
-
- "./docs/
|
|
233
|
+
- "./docs/ImageAiDetectionResult.md"
|
|
234
234
|
- "./docs/ImageDescriptionResponse.md"
|
|
235
235
|
- "./docs/ImageMetadata.md"
|
|
236
236
|
- "./docs/ImageMetadataExifValue.md"
|
|
@@ -239,11 +239,10 @@ files:
|
|
|
239
239
|
- "./docs/ImageSimilarityHashDistanceResponse.md"
|
|
240
240
|
- "./docs/ImageSimilarityHashResponse.md"
|
|
241
241
|
- "./docs/InfoApi.md"
|
|
242
|
+
- "./docs/NsfwAdvancedResult.md"
|
|
242
243
|
- "./docs/NsfwApi.md"
|
|
243
244
|
- "./docs/NsfwResult.md"
|
|
244
|
-
- "./docs/ObjectDetectionResult.md"
|
|
245
245
|
- "./docs/PersonWithAge.md"
|
|
246
|
-
- "./docs/PersonWithGender.md"
|
|
247
246
|
- "./docs/PolygonPoint.md"
|
|
248
247
|
- "./docs/RecognitionOutcome.md"
|
|
249
248
|
- "./docs/RecognizeApi.md"
|
|
@@ -254,6 +253,7 @@ files:
|
|
|
254
253
|
- "./docs/VehicleLicensePlateDetectionResult.md"
|
|
255
254
|
- "./git_push.sh"
|
|
256
255
|
- "./lib/cloudmersive-image-recognition-api-client.rb"
|
|
256
|
+
- "./lib/cloudmersive-image-recognition-api-client/api/ai_image_detection_api.rb"
|
|
257
257
|
- "./lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb"
|
|
258
258
|
- "./lib/cloudmersive-image-recognition-api-client/api/convert_api.rb"
|
|
259
259
|
- "./lib/cloudmersive-image-recognition-api-client/api/edit_api.rb"
|
|
@@ -271,7 +271,6 @@ files:
|
|
|
271
271
|
- "./lib/cloudmersive-image-recognition-api-client/models/color_result.rb"
|
|
272
272
|
- "./lib/cloudmersive-image-recognition-api-client/models/create_handwriting_request.rb"
|
|
273
273
|
- "./lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb"
|
|
274
|
-
- "./lib/cloudmersive-image-recognition-api-client/models/detected_object.rb"
|
|
275
274
|
- "./lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb"
|
|
276
275
|
- "./lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb"
|
|
277
276
|
- "./lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb"
|
|
@@ -289,7 +288,7 @@ files:
|
|
|
289
288
|
- "./lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb"
|
|
290
289
|
- "./lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb"
|
|
291
290
|
- "./lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb"
|
|
292
|
-
- "./lib/cloudmersive-image-recognition-api-client/models/
|
|
291
|
+
- "./lib/cloudmersive-image-recognition-api-client/models/image_ai_detection_result.rb"
|
|
293
292
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb"
|
|
294
293
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb"
|
|
295
294
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb"
|
|
@@ -297,16 +296,16 @@ files:
|
|
|
297
296
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb"
|
|
298
297
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_response.rb"
|
|
299
298
|
- "./lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_response.rb"
|
|
299
|
+
- "./lib/cloudmersive-image-recognition-api-client/models/nsfw_advanced_result.rb"
|
|
300
300
|
- "./lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb"
|
|
301
|
-
- "./lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb"
|
|
302
301
|
- "./lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb"
|
|
303
|
-
- "./lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb"
|
|
304
302
|
- "./lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb"
|
|
305
303
|
- "./lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb"
|
|
306
304
|
- "./lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb"
|
|
307
305
|
- "./lib/cloudmersive-image-recognition-api-client/models/text_item.rb"
|
|
308
306
|
- "./lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb"
|
|
309
307
|
- "./lib/cloudmersive-image-recognition-api-client/version.rb"
|
|
308
|
+
- "./spec/api/ai_image_detection_api_spec.rb"
|
|
310
309
|
- "./spec/api/artistic_api_spec.rb"
|
|
311
310
|
- "./spec/api/convert_api_spec.rb"
|
|
312
311
|
- "./spec/api/edit_api_spec.rb"
|
|
@@ -323,7 +322,6 @@ files:
|
|
|
323
322
|
- "./spec/models/color_result_spec.rb"
|
|
324
323
|
- "./spec/models/create_handwriting_request_spec.rb"
|
|
325
324
|
- "./spec/models/detected_license_plate_spec.rb"
|
|
326
|
-
- "./spec/models/detected_object_spec.rb"
|
|
327
325
|
- "./spec/models/dominant_color_result_spec.rb"
|
|
328
326
|
- "./spec/models/draw_polygon_instance_spec.rb"
|
|
329
327
|
- "./spec/models/draw_polygon_request_spec.rb"
|
|
@@ -341,7 +339,7 @@ files:
|
|
|
341
339
|
- "./spec/models/find_symbol_result_spec.rb"
|
|
342
340
|
- "./spec/models/fine_text_detection_result_spec.rb"
|
|
343
341
|
- "./spec/models/fine_text_item_spec.rb"
|
|
344
|
-
- "./spec/models/
|
|
342
|
+
- "./spec/models/image_ai_detection_result_spec.rb"
|
|
345
343
|
- "./spec/models/image_description_response_spec.rb"
|
|
346
344
|
- "./spec/models/image_metadata_exif_value_spec.rb"
|
|
347
345
|
- "./spec/models/image_metadata_spec.rb"
|
|
@@ -349,10 +347,9 @@ files:
|
|
|
349
347
|
- "./spec/models/image_similarity_hash_distance_request_spec.rb"
|
|
350
348
|
- "./spec/models/image_similarity_hash_distance_response_spec.rb"
|
|
351
349
|
- "./spec/models/image_similarity_hash_response_spec.rb"
|
|
350
|
+
- "./spec/models/nsfw_advanced_result_spec.rb"
|
|
352
351
|
- "./spec/models/nsfw_result_spec.rb"
|
|
353
|
-
- "./spec/models/object_detection_result_spec.rb"
|
|
354
352
|
- "./spec/models/person_with_age_spec.rb"
|
|
355
|
-
- "./spec/models/person_with_gender_spec.rb"
|
|
356
353
|
- "./spec/models/polygon_point_spec.rb"
|
|
357
354
|
- "./spec/models/recognition_outcome_spec.rb"
|
|
358
355
|
- "./spec/models/text_detection_result_spec.rb"
|
|
@@ -363,7 +360,7 @@ homepage: https://www.cloudmersive.com/image-recognition-and-processing-api
|
|
|
363
360
|
licenses:
|
|
364
361
|
- Apache 2.0
|
|
365
362
|
metadata: {}
|
|
366
|
-
post_install_message:
|
|
363
|
+
post_install_message:
|
|
367
364
|
rdoc_options: []
|
|
368
365
|
require_paths:
|
|
369
366
|
- lib
|
|
@@ -378,8 +375,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
378
375
|
- !ruby/object:Gem::Version
|
|
379
376
|
version: '0'
|
|
380
377
|
requirements: []
|
|
381
|
-
rubygems_version: 3.
|
|
382
|
-
signing_key:
|
|
378
|
+
rubygems_version: 3.5.16
|
|
379
|
+
signing_key:
|
|
383
380
|
specification_version: 4
|
|
384
381
|
summary: Advanced Machine Learning APIs for recognizing and processing images.
|
|
385
382
|
test_files: []
|
data/docs/DetectedObject.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::DetectedObject
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**object_class_name** | **String** | Class of the object. Example values are \"person\", \"car\", \"dining table\", etc. | [optional]
|
|
7
|
-
**height** | **Integer** | Height, in pixels, of the object | [optional]
|
|
8
|
-
**width** | **Integer** | Width, in pixels, of the object | [optional]
|
|
9
|
-
**score** | **Float** | Confidence score of detected object; possible values are between 0.0 and 1.0; values closer to 1.0 are higher confidence | [optional]
|
|
10
|
-
**x** | **Integer** | X location, in pixels, of the left side location of the object, with the right side being X + Width | [optional]
|
|
11
|
-
**y** | **Integer** | Y location, in pixels, of the top side location of the object, with the bottom side being Y + Height | [optional]
|
|
12
|
-
|
|
13
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::GenderDetectionResult
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
|
|
7
|
-
**person_with_gender** | [**Array<PersonWithGender>**](PersonWithGender.md) | People in the image annotated with gender information | [optional]
|
|
8
|
-
**people_identified** | **Integer** | Number of people identified in the image with a gender | [optional]
|
|
9
|
-
|
|
10
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::ObjectDetectionResult
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**successful** | **BOOLEAN** | Was the image processed successfully? | [optional]
|
|
7
|
-
**objects** | [**Array<DetectedObject>**](DetectedObject.md) | Array of objects detected in the scene | [optional]
|
|
8
|
-
**object_count** | **Integer** | Number of objects detected in the scene | [optional]
|
|
9
|
-
|
|
10
|
-
|
data/docs/PersonWithGender.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# CloudmersiveImageRecognitionApiClient::PersonWithGender
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
Name | Type | Description | Notes
|
|
5
|
-
------------ | ------------- | ------------- | -------------
|
|
6
|
-
**face_location** | [**Face**](Face.md) | Location and other information about the person's face corresponding to this age classification | [optional]
|
|
7
|
-
**gender_classification_confidence** | **Float** | Confidence level of gender classification; possible values are between 0.0 and 1.0; higher is better, with values &gt; 0.50 being high confidence results | [optional]
|
|
8
|
-
**gender_class** | **String** | The person's identified gender; possible values are \"Male\", \"Female\" and \"Unknown\" | [optional]
|
|
9
|
-
|
|
10
|
-
|