cloudmersive-image-recognition-api-client 2.0.4 → 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 +26 -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/ImageSimilarityComparisonResponse.md +10 -0
- data/docs/ImageSimilarityHashDistanceRequest.md +9 -0
- data/docs/ImageSimilarityHashDistanceResponse.md +9 -0
- data/docs/ImageSimilarityHashResponse.md +9 -0
- data/docs/NsfwAdvancedResult.md +19 -0
- data/docs/NsfwApi.md +169 -4
- data/docs/PersonWithAge.md +4 -1
- data/docs/RecognizeApi.md +124 -58
- 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 +171 -104
- 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/{person_with_gender.rb → image_ai_detection_result.rb} +25 -25
- 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/{detected_object.rb → image_similarity_comparison_response.rb} +25 -55
- data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +196 -0
- data/lib/cloudmersive-image-recognition-api-client/models/{object_detection_result.rb → image_similarity_hash_distance_response.rb} +12 -24
- data/lib/cloudmersive-image-recognition-api-client/models/{gender_detection_result.rb → image_similarity_hash_response.rb} +12 -24
- 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 +8 -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 +40 -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/{gender_detection_result_spec.rb → image_similarity_comparison_response_spec.rb} +9 -9
- data/spec/models/image_similarity_hash_distance_request_spec.rb +47 -0
- data/spec/models/{object_detection_result_spec.rb → image_similarity_hash_distance_response_spec.rb} +8 -14
- data/spec/models/image_similarity_hash_response_spec.rb +47 -0
- 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 +39 -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/spec/models/detected_object_spec.rb +0 -71
|
@@ -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
|
|
|
@@ -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
|
|
data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.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
|
|
|
@@ -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
|
|
|
@@ -15,6 +15,9 @@ require 'date'
|
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
|
16
16
|
# Individual instance of text occuring in an image; one piece of text
|
|
17
17
|
class FineTextItem
|
|
18
|
+
# Detected text in the image
|
|
19
|
+
attr_accessor :detected_text
|
|
20
|
+
|
|
18
21
|
# X coordinate of the top/left text location; 0 represents the left edge of the input image
|
|
19
22
|
attr_accessor :top_left_x
|
|
20
23
|
|
|
@@ -51,6 +54,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
51
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
55
|
def self.attribute_map
|
|
53
56
|
{
|
|
57
|
+
:'detected_text' => :'DetectedText',
|
|
54
58
|
:'top_left_x' => :'TopLeftX',
|
|
55
59
|
:'top_left_y' => :'TopLeftY',
|
|
56
60
|
:'top_right_x' => :'TopRightX',
|
|
@@ -68,6 +72,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
68
72
|
# Attribute type mapping.
|
|
69
73
|
def self.swagger_types
|
|
70
74
|
{
|
|
75
|
+
:'detected_text' => :'String',
|
|
71
76
|
:'top_left_x' => :'Integer',
|
|
72
77
|
:'top_left_y' => :'Integer',
|
|
73
78
|
:'top_right_x' => :'Integer',
|
|
@@ -90,6 +95,10 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
90
95
|
# convert string to symbol for hash key
|
|
91
96
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
92
97
|
|
|
98
|
+
if attributes.has_key?(:'DetectedText')
|
|
99
|
+
self.detected_text = attributes[:'DetectedText']
|
|
100
|
+
end
|
|
101
|
+
|
|
93
102
|
if attributes.has_key?(:'TopLeftX')
|
|
94
103
|
self.top_left_x = attributes[:'TopLeftX']
|
|
95
104
|
end
|
|
@@ -153,6 +162,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
153
162
|
def ==(o)
|
|
154
163
|
return true if self.equal?(o)
|
|
155
164
|
self.class == o.class &&
|
|
165
|
+
detected_text == o.detected_text &&
|
|
156
166
|
top_left_x == o.top_left_x &&
|
|
157
167
|
top_left_y == o.top_left_y &&
|
|
158
168
|
top_right_x == o.top_right_x &&
|
|
@@ -175,7 +185,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
175
185
|
# Calculates hash code according to all attributes.
|
|
176
186
|
# @return [Fixnum] Hash code
|
|
177
187
|
def hash
|
|
178
|
-
[top_left_x, top_left_y, top_right_x, top_right_y, bottom_left_x, bottom_left_y, bottom_right_x, bottom_right_y, width, height, angle].hash
|
|
188
|
+
[detected_text, top_left_x, top_left_y, top_right_x, top_right_y, bottom_left_x, bottom_left_y, bottom_right_x, bottom_right_y, width, height, angle].hash
|
|
179
189
|
end
|
|
180
190
|
|
|
181
191
|
# Builds the object from hash
|
|
@@ -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
|
|
|
@@ -13,32 +13,32 @@ Swagger Codegen version: 2.4.14
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
|
16
|
-
#
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
16
|
+
# Result of performing an AI Image detection
|
|
17
|
+
class ImageAiDetectionResult
|
|
18
|
+
# True if the image is clean (not AI generated) and false otherwise
|
|
19
|
+
attr_accessor :clean_result
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# Risk score between 0.0 (no risk) and 1.0 (highest risk), with anything over 0.8 being high risk
|
|
22
|
+
attr_accessor :ai_generated_risk_score
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
24
|
+
# Tool used to generate the image, if identified (this cannot always be identified)
|
|
25
|
+
attr_accessor :ai_source
|
|
26
26
|
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
32
|
-
:'
|
|
30
|
+
:'clean_result' => :'CleanResult',
|
|
31
|
+
:'ai_generated_risk_score' => :'AiGeneratedRiskScore',
|
|
32
|
+
:'ai_source' => :'AiSource'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
# Attribute type mapping.
|
|
37
37
|
def self.swagger_types
|
|
38
38
|
{
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
39
|
+
:'clean_result' => :'BOOLEAN',
|
|
40
|
+
:'ai_generated_risk_score' => :'Float',
|
|
41
|
+
:'ai_source' => :'String'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -50,16 +50,16 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
50
50
|
# convert string to symbol for hash key
|
|
51
51
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
52
52
|
|
|
53
|
-
if attributes.has_key?(:'
|
|
54
|
-
self.
|
|
53
|
+
if attributes.has_key?(:'CleanResult')
|
|
54
|
+
self.clean_result = attributes[:'CleanResult']
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
if attributes.has_key?(:'
|
|
58
|
-
self.
|
|
57
|
+
if attributes.has_key?(:'AiGeneratedRiskScore')
|
|
58
|
+
self.ai_generated_risk_score = attributes[:'AiGeneratedRiskScore']
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
if attributes.has_key?(:'
|
|
62
|
-
self.
|
|
61
|
+
if attributes.has_key?(:'AiSource')
|
|
62
|
+
self.ai_source = attributes[:'AiSource']
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
@@ -81,9 +81,9 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
81
81
|
def ==(o)
|
|
82
82
|
return true if self.equal?(o)
|
|
83
83
|
self.class == o.class &&
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
clean_result == o.clean_result &&
|
|
85
|
+
ai_generated_risk_score == o.ai_generated_risk_score &&
|
|
86
|
+
ai_source == o.ai_source
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# @see the `==` method
|
|
@@ -95,7 +95,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
95
95
|
# Calculates hash code according to all attributes.
|
|
96
96
|
# @return [Fixnum] Hash code
|
|
97
97
|
def hash
|
|
98
|
-
[
|
|
98
|
+
[clean_result, ai_generated_risk_score, ai_source].hash
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
# Builds the object from hash
|
|
@@ -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
|
|
|
@@ -13,47 +13,32 @@ Swagger Codegen version: 2.4.14
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module CloudmersiveImageRecognitionApiClient
|
|
16
|
-
#
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
16
|
+
# Result of performing an image similarity operation
|
|
17
|
+
class ImageSimilarityComparisonResponse
|
|
18
|
+
# True if successful, false otherwise
|
|
19
|
+
attr_accessor :successful
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# True if images are similar, false otherwise
|
|
22
|
+
attr_accessor :are_images_similar
|
|
23
23
|
|
|
24
|
-
#
|
|
25
|
-
attr_accessor :
|
|
26
|
-
|
|
27
|
-
# Confidence score of detected object; possible values are between 0.0 and 1.0; values closer to 1.0 are higher confidence
|
|
28
|
-
attr_accessor :score
|
|
29
|
-
|
|
30
|
-
# X location, in pixels, of the left side location of the object, with the right side being X + Width
|
|
31
|
-
attr_accessor :x
|
|
32
|
-
|
|
33
|
-
# Y location, in pixels, of the top side location of the object, with the bottom side being Y + Height
|
|
34
|
-
attr_accessor :y
|
|
24
|
+
# Similarity score between 0.0 and 1.0, with 1.0 meaning highly similar and 0.0 meaning highly dissimilar
|
|
25
|
+
attr_accessor :image_similarity_score
|
|
35
26
|
|
|
36
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
28
|
def self.attribute_map
|
|
38
29
|
{
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
42
|
-
:'score' => :'Score',
|
|
43
|
-
:'x' => :'X',
|
|
44
|
-
:'y' => :'Y'
|
|
30
|
+
:'successful' => :'Successful',
|
|
31
|
+
:'are_images_similar' => :'AreImagesSimilar',
|
|
32
|
+
:'image_similarity_score' => :'ImageSimilarityScore'
|
|
45
33
|
}
|
|
46
34
|
end
|
|
47
35
|
|
|
48
36
|
# Attribute type mapping.
|
|
49
37
|
def self.swagger_types
|
|
50
38
|
{
|
|
51
|
-
:'
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'score' => :'Float',
|
|
55
|
-
:'x' => :'Integer',
|
|
56
|
-
:'y' => :'Integer'
|
|
39
|
+
:'successful' => :'BOOLEAN',
|
|
40
|
+
:'are_images_similar' => :'BOOLEAN',
|
|
41
|
+
:'image_similarity_score' => :'Float'
|
|
57
42
|
}
|
|
58
43
|
end
|
|
59
44
|
|
|
@@ -65,28 +50,16 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
65
50
|
# convert string to symbol for hash key
|
|
66
51
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
67
52
|
|
|
68
|
-
if attributes.has_key?(:'
|
|
69
|
-
self.
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
if attributes.has_key?(:'Height')
|
|
73
|
-
self.height = attributes[:'Height']
|
|
74
|
-
end
|
|
75
|
-
|
|
76
|
-
if attributes.has_key?(:'Width')
|
|
77
|
-
self.width = attributes[:'Width']
|
|
78
|
-
end
|
|
79
|
-
|
|
80
|
-
if attributes.has_key?(:'Score')
|
|
81
|
-
self.score = attributes[:'Score']
|
|
53
|
+
if attributes.has_key?(:'Successful')
|
|
54
|
+
self.successful = attributes[:'Successful']
|
|
82
55
|
end
|
|
83
56
|
|
|
84
|
-
if attributes.has_key?(:'
|
|
85
|
-
self.
|
|
57
|
+
if attributes.has_key?(:'AreImagesSimilar')
|
|
58
|
+
self.are_images_similar = attributes[:'AreImagesSimilar']
|
|
86
59
|
end
|
|
87
60
|
|
|
88
|
-
if attributes.has_key?(:'
|
|
89
|
-
self.
|
|
61
|
+
if attributes.has_key?(:'ImageSimilarityScore')
|
|
62
|
+
self.image_similarity_score = attributes[:'ImageSimilarityScore']
|
|
90
63
|
end
|
|
91
64
|
end
|
|
92
65
|
|
|
@@ -108,12 +81,9 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
108
81
|
def ==(o)
|
|
109
82
|
return true if self.equal?(o)
|
|
110
83
|
self.class == o.class &&
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
score == o.score &&
|
|
115
|
-
x == o.x &&
|
|
116
|
-
y == o.y
|
|
84
|
+
successful == o.successful &&
|
|
85
|
+
are_images_similar == o.are_images_similar &&
|
|
86
|
+
image_similarity_score == o.image_similarity_score
|
|
117
87
|
end
|
|
118
88
|
|
|
119
89
|
# @see the `==` method
|
|
@@ -125,7 +95,7 @@ module CloudmersiveImageRecognitionApiClient
|
|
|
125
95
|
# Calculates hash code according to all attributes.
|
|
126
96
|
# @return [Fixnum] Hash code
|
|
127
97
|
def hash
|
|
128
|
-
[
|
|
98
|
+
[successful, are_images_similar, image_similarity_score].hash
|
|
129
99
|
end
|
|
130
100
|
|
|
131
101
|
# Builds the object from hash
|