cloudmersive-image-recognition-api-client 1.4.6 → 2.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +17 -6
  4. data/cloudmersive-image-recognition-api-client.gemspec +3 -3
  5. data/docs/ArtisticApi.md +2 -2
  6. data/docs/ConvertApi.md +7 -7
  7. data/docs/CreateHandwritingRequest.md +11 -0
  8. data/docs/DrawTextInstance.md +1 -1
  9. data/docs/EditApi.md +147 -11
  10. data/docs/FaceApi.md +8 -8
  11. data/docs/FilterApi.md +8 -8
  12. data/docs/ImageSimilarityComparisonResponse.md +10 -0
  13. data/docs/ImageSimilarityHashDistanceRequest.md +9 -0
  14. data/docs/ImageSimilarityHashDistanceResponse.md +9 -0
  15. data/docs/ImageSimilarityHashResponse.md +9 -0
  16. data/docs/InfoApi.md +2 -2
  17. data/docs/NsfwApi.md +1 -1
  18. data/docs/RecognizeApi.md +187 -11
  19. data/docs/ResizeApi.md +4 -4
  20. data/docs/TextGenerationApi.md +63 -0
  21. data/lib/cloudmersive-image-recognition-api-client.rb +7 -1
  22. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +6 -7
  23. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +30 -37
  24. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +199 -58
  25. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +31 -38
  26. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +34 -42
  27. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +10 -12
  28. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +6 -7
  29. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +214 -45
  30. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +14 -16
  31. data/lib/cloudmersive-image-recognition-api-client/api/text_generation_api.rb +77 -0
  32. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +11 -9
  33. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
  34. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +2 -2
  35. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +7 -10
  36. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +7 -10
  37. data/lib/cloudmersive-image-recognition-api-client/models/create_handwriting_request.rb +216 -0
  38. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +7 -10
  39. data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +7 -10
  40. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +7 -10
  41. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +7 -10
  42. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +9 -13
  43. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +7 -10
  44. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +9 -13
  45. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +8 -11
  46. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +9 -13
  47. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +7 -10
  48. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +7 -10
  49. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +7 -10
  50. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +7 -10
  51. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +7 -10
  52. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +7 -10
  53. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +7 -10
  54. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +7 -10
  55. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +7 -10
  56. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +7 -10
  57. data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +7 -10
  58. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +7 -10
  59. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +7 -10
  60. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
  61. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_comparison_response.rb +206 -0
  62. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_request.rb +196 -0
  63. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_distance_response.rb +196 -0
  64. data/lib/cloudmersive-image-recognition-api-client/models/image_similarity_hash_response.rb +196 -0
  65. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +7 -10
  66. data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +7 -10
  67. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +7 -10
  68. data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +7 -10
  69. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +7 -10
  70. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +7 -10
  71. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +7 -10
  72. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +7 -10
  73. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +7 -10
  74. data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
  75. data/spec/api/artistic_api_spec.rb +2 -2
  76. data/spec/api/convert_api_spec.rb +8 -8
  77. data/spec/api/edit_api_spec.rb +47 -13
  78. data/spec/api/face_api_spec.rb +8 -8
  79. data/spec/api/filter_api_spec.rb +9 -9
  80. data/spec/api/info_api_spec.rb +3 -3
  81. data/spec/api/nsfw_api_spec.rb +2 -2
  82. data/spec/api/recognize_api_spec.rb +49 -10
  83. data/spec/api/resize_api_spec.rb +5 -5
  84. data/spec/api/text_generation_api_spec.rb +47 -0
  85. data/spec/api_client_spec.rb +52 -35
  86. data/spec/configuration_spec.rb +9 -9
  87. data/spec/models/age_detection_result_spec.rb +4 -5
  88. data/spec/models/color_result_spec.rb +4 -5
  89. data/spec/models/create_handwriting_request_spec.rb +59 -0
  90. data/spec/models/detected_license_plate_spec.rb +8 -9
  91. data/spec/models/detected_object_spec.rb +7 -8
  92. data/spec/models/dominant_color_result_spec.rb +3 -4
  93. data/spec/models/draw_polygon_instance_spec.rb +5 -6
  94. data/spec/models/draw_polygon_request_spec.rb +4 -5
  95. data/spec/models/draw_rectangle_instance_spec.rb +8 -9
  96. data/spec/models/draw_rectangle_request_spec.rb +4 -5
  97. data/spec/models/draw_text_instance_spec.rb +9 -10
  98. data/spec/models/draw_text_request_spec.rb +4 -5
  99. data/spec/models/face_compare_response_spec.rb +5 -6
  100. data/spec/models/face_locate_response_spec.rb +5 -6
  101. data/spec/models/face_locate_with_landmarks_response_spec.rb +5 -6
  102. data/spec/models/face_match_spec.rb +7 -8
  103. data/spec/models/face_point_spec.rb +3 -4
  104. data/spec/models/face_spec.rb +5 -6
  105. data/spec/models/face_with_landmarks_spec.rb +14 -15
  106. data/spec/models/find_symbol_result_spec.rb +7 -8
  107. data/spec/models/fine_text_detection_result_spec.rb +4 -5
  108. data/spec/models/fine_text_item_spec.rb +12 -13
  109. data/spec/models/gender_detection_result_spec.rb +4 -5
  110. data/spec/models/image_description_response_spec.rb +5 -6
  111. data/spec/models/image_metadata_exif_value_spec.rb +4 -5
  112. data/spec/models/image_metadata_spec.rb +11 -12
  113. data/spec/models/image_similarity_comparison_response_spec.rb +53 -0
  114. data/spec/models/image_similarity_hash_distance_request_spec.rb +47 -0
  115. data/spec/models/image_similarity_hash_distance_response_spec.rb +47 -0
  116. data/spec/models/image_similarity_hash_response_spec.rb +47 -0
  117. data/spec/models/nsfw_result_spec.rb +4 -5
  118. data/spec/models/object_detection_result_spec.rb +4 -5
  119. data/spec/models/person_with_age_spec.rb +5 -6
  120. data/spec/models/person_with_gender_spec.rb +4 -5
  121. data/spec/models/polygon_point_spec.rb +3 -4
  122. data/spec/models/recognition_outcome_spec.rb +3 -4
  123. data/spec/models/text_detection_result_spec.rb +4 -5
  124. data/spec/models/text_item_spec.rb +5 -6
  125. data/spec/models/vehicle_license_plate_detection_result_spec.rb +4 -5
  126. data/spec/spec_helper.rb +1 -1
  127. metadata +20 -2
data/docs/FaceApi.md CHANGED
@@ -34,9 +34,9 @@ end
34
34
 
35
35
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
36
36
 
37
- input_image = File.new("/path/to/file.txt") # File | 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.
37
+ input_image = File.new('/path/to/file.txt') # File | 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.
38
38
 
39
- match_face = File.new("/path/to/file.txt") # File | Image of a single face to compare and match against.
39
+ match_face = File.new('/path/to/file.txt') # File | Image of a single face to compare and match against.
40
40
 
41
41
 
42
42
  begin
@@ -91,7 +91,7 @@ end
91
91
 
92
92
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
93
93
 
94
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
94
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
95
95
 
96
96
 
97
97
  begin
@@ -145,7 +145,7 @@ end
145
145
 
146
146
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
147
147
 
148
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
148
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
149
149
 
150
150
 
151
151
  begin
@@ -199,7 +199,7 @@ end
199
199
 
200
200
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
201
201
 
202
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
202
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
203
203
 
204
204
 
205
205
  begin
@@ -253,7 +253,7 @@ end
253
253
 
254
254
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
255
255
 
256
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
256
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
257
257
 
258
258
 
259
259
  begin
@@ -307,7 +307,7 @@ end
307
307
 
308
308
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
309
309
 
310
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
310
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
311
311
 
312
312
 
313
313
  begin
@@ -361,7 +361,7 @@ end
361
361
 
362
362
  api_instance = CloudmersiveImageRecognitionApiClient::FaceApi.new
363
363
 
364
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
364
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
365
365
 
366
366
 
367
367
  begin
data/docs/FilterApi.md CHANGED
@@ -35,7 +35,7 @@ end
35
35
 
36
36
  api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
37
37
 
38
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
38
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
39
39
 
40
40
 
41
41
  begin
@@ -89,7 +89,7 @@ end
89
89
 
90
90
  api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
91
91
 
92
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
92
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
93
93
 
94
94
 
95
95
  begin
@@ -145,7 +145,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
145
145
 
146
146
  radius = 56 # Integer | Radius in pixels of the edge detection operation; a larger radius will produce a greater effect
147
147
 
148
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
148
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
149
149
 
150
150
 
151
151
  begin
@@ -204,7 +204,7 @@ radius = 56 # Integer | Radius in pixels of the emboss operation; a larger radiu
204
204
 
205
205
  sigma = 56 # Integer | Sigma, or variance, of the emboss operation
206
206
 
207
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
207
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
208
208
 
209
209
 
210
210
  begin
@@ -264,7 +264,7 @@ radius = 56 # Integer | Radius in pixels of the blur operation; a larger radius
264
264
 
265
265
  sigma = 56 # Integer | Sigma, or variance, of the gaussian blur operation
266
266
 
267
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
267
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
268
268
 
269
269
 
270
270
  begin
@@ -326,7 +326,7 @@ sigma = 56 # Integer | Sigma, or variance, of the motion blur operation
326
326
 
327
327
  angle = 56 # Integer | Angle of the motion blur in degrees
328
328
 
329
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
329
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
330
330
 
331
331
 
332
332
  begin
@@ -385,7 +385,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
385
385
 
386
386
  levels = 56 # Integer | Number of unique colors to retain in the output image
387
387
 
388
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
388
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
389
389
 
390
390
 
391
391
  begin
@@ -442,7 +442,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::FilterApi.new
442
442
 
443
443
  degrees = 56 # Integer | Degrees of swirl
444
444
 
445
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
445
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
446
446
 
447
447
 
448
448
  begin
@@ -0,0 +1,10 @@
1
+ # CloudmersiveImageRecognitionApiClient::ImageSimilarityComparisonResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **are_images_similar** | **BOOLEAN** | True if images are similar, false otherwise | [optional]
8
+ **image_similarity_score** | **Float** | Similarity score between 0.0 and 1.0, with 1.0 meaning highly similar and 0.0 meaning highly dissimilar | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveImageRecognitionApiClient::ImageSimilarityHashDistanceRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **image_hash1** | **String** | Image hash computed using Cloudmersive Image Hashing API | [optional]
7
+ **image_hash2** | **String** | Image hash computed using Cloudmersive Image Hashing API | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveImageRecognitionApiClient::ImageSimilarityHashDistanceResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **image_similarity_score** | **Float** | Similarity score between 0.0 and 1.0, with 1.0 meaning highly similar and 0.0 meaning highly dissimilar | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveImageRecognitionApiClient::ImageSimilarityHashResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **image_hash** | **String** | String representing image perceptual hash value; values with smaller Hamming Distances are more similar than ones with large Hamming Distances | [optional]
8
+
9
+
data/docs/InfoApi.md CHANGED
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  api_instance = CloudmersiveImageRecognitionApiClient::InfoApi.new
31
31
 
32
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
32
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
33
33
 
34
34
 
35
35
  begin
@@ -83,7 +83,7 @@ end
83
83
 
84
84
  api_instance = CloudmersiveImageRecognitionApiClient::InfoApi.new
85
85
 
86
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
86
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
87
87
 
88
88
 
89
89
  begin
data/docs/NsfwApi.md CHANGED
@@ -28,7 +28,7 @@ end
28
28
 
29
29
  api_instance = CloudmersiveImageRecognitionApiClient::NsfwApi.new
30
30
 
31
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
31
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
32
32
 
33
33
 
34
34
  begin
data/docs/RecognizeApi.md CHANGED
@@ -12,6 +12,9 @@ Method | HTTP request | Description
12
12
  [**recognize_detect_text_large**](RecognizeApi.md#recognize_detect_text_large) | **POST** /image/recognize/detect-text/large | Detect large text in a photo
13
13
  [**recognize_detect_vehicle_license_plates**](RecognizeApi.md#recognize_detect_vehicle_license_plates) | **POST** /image/recognize/detect-vehicle-license-plates | Detect vehicle license plates in an image
14
14
  [**recognize_find_symbol**](RecognizeApi.md#recognize_find_symbol) | **POST** /image/recognize/find/symbol | Find the location of a symbol in an image
15
+ [**recognize_similarity_compare**](RecognizeApi.md#recognize_similarity_compare) | **POST** /image/recognize/similarity/compare | Compare two images for similarity
16
+ [**recognize_similarity_hash**](RecognizeApi.md#recognize_similarity_hash) | **POST** /image/recognize/similarity/hash | Generate a perceptual image hash
17
+ [**recognize_similarity_hash_distance**](RecognizeApi.md#recognize_similarity_hash_distance) | **POST** /image/recognize/similarity/hash/distance | Calculates the similarity between two perceptual image hashes
15
18
 
16
19
 
17
20
  # **recognize_describe**
@@ -35,7 +38,7 @@ end
35
38
 
36
39
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
37
40
 
38
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
41
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
39
42
 
40
43
 
41
44
  begin
@@ -89,10 +92,10 @@ end
89
92
 
90
93
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
91
94
 
92
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
95
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
93
96
 
94
97
  opts = {
95
- post_processing_effect: "post_processing_effect_example" # String | Optional, post-processing effects to apply to the email, default is None. Possible values are None and BlackAndWhite (force the image into a black and white view to aid in OCR operations).
98
+ post_processing_effect: 'post_processing_effect_example' # String | Optional, post-processing effects to apply to the email, default is None. Possible values are None and BlackAndWhite (force the image into a black and white view to aid in OCR operations).
96
99
  }
97
100
 
98
101
  begin
@@ -147,7 +150,7 @@ end
147
150
 
148
151
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
149
152
 
150
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
153
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
151
154
 
152
155
 
153
156
  begin
@@ -201,7 +204,7 @@ end
201
204
 
202
205
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
203
206
 
204
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
207
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
205
208
 
206
209
 
207
210
  begin
@@ -255,7 +258,7 @@ end
255
258
 
256
259
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
257
260
 
258
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
261
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
259
262
 
260
263
 
261
264
  begin
@@ -309,7 +312,7 @@ end
309
312
 
310
313
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
311
314
 
312
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
315
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
313
316
 
314
317
 
315
318
  begin
@@ -347,7 +350,7 @@ Name | Type | Description | Notes
347
350
 
348
351
  Detect vehicle license plates in an image
349
352
 
350
- Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera.
353
+ Identify the position, and size, and content of vehicle license plates in an image. License plates should be within 15-20 degrees on-axis to the camera. Supported image formats are JPG, PNG and BMP.
351
354
 
352
355
  ### Example
353
356
  ```ruby
@@ -363,7 +366,7 @@ end
363
366
 
364
367
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
365
368
 
366
- image_file = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
369
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
367
370
 
368
371
 
369
372
  begin
@@ -417,9 +420,9 @@ end
417
420
 
418
421
  api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
419
422
 
420
- input_image = File.new("/path/to/file.txt") # File | Image file to search through for the target image.
423
+ input_image = File.new('/path/to/file.txt') # File | Image file to search through for the target image.
421
424
 
422
- target_image = File.new("/path/to/file.txt") # File | Image to find in the input image.
425
+ target_image = File.new('/path/to/file.txt') # File | Image to find in the input image.
423
426
 
424
427
 
425
428
  begin
@@ -453,3 +456,176 @@ Name | Type | Description | Notes
453
456
 
454
457
 
455
458
 
459
+ # **recognize_similarity_compare**
460
+ > String recognize_similarity_compare(base_image, comparison_image, opts)
461
+
462
+ Compare two images for similarity
463
+
464
+ Generates an image similarity score using Deep Learning between 0.0 and 1.0, values closer to 1.0 indicate greater similarity
465
+
466
+ ### Example
467
+ ```ruby
468
+ # load the gem
469
+ require 'cloudmersive-image-recognition-api-client'
470
+ # setup authorization
471
+ CloudmersiveImageRecognitionApiClient.configure do |config|
472
+ # Configure API key authorization: Apikey
473
+ config.api_key['Apikey'] = 'YOUR API KEY'
474
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
475
+ #config.api_key_prefix['Apikey'] = 'Bearer'
476
+ end
477
+
478
+ api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
479
+
480
+ base_image = File.new('/path/to/file.txt') # File | Image file to compare against. Common file formats such as PNG, JPEG are supported.
481
+
482
+ comparison_image = File.new('/path/to/file.txt') # File | Image to compare to the base image.
483
+
484
+ opts = {
485
+ recognition_mode: 'recognition_mode_example' # String | Optional, specify the recognition mode; possible values are Normal, Basic and Advanced. Default is Normal.
486
+ }
487
+
488
+ begin
489
+ #Compare two images for similarity
490
+ result = api_instance.recognize_similarity_compare(base_image, comparison_image, opts)
491
+ p result
492
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
493
+ puts "Exception when calling RecognizeApi->recognize_similarity_compare: #{e}"
494
+ end
495
+ ```
496
+
497
+ ### Parameters
498
+
499
+ Name | Type | Description | Notes
500
+ ------------- | ------------- | ------------- | -------------
501
+ **base_image** | **File**| Image file to compare against. Common file formats such as PNG, JPEG are supported. |
502
+ **comparison_image** | **File**| Image to compare to the base image. |
503
+ **recognition_mode** | **String**| Optional, specify the recognition mode; possible values are Normal, Basic and Advanced. Default is Normal. | [optional]
504
+
505
+ ### Return type
506
+
507
+ **String**
508
+
509
+ ### Authorization
510
+
511
+ [Apikey](../README.md#Apikey)
512
+
513
+ ### HTTP request headers
514
+
515
+ - **Content-Type**: multipart/form-data
516
+ - **Accept**: application/json, text/json, application/xml, text/xml
517
+
518
+
519
+
520
+ # **recognize_similarity_hash**
521
+ > ImageSimilarityHashResponse recognize_similarity_hash(image_file, opts)
522
+
523
+ Generate a perceptual image hash
524
+
525
+ Generates a hash value for the image; hash values that are closer together in terms of Hamming Distance are more similar.
526
+
527
+ ### Example
528
+ ```ruby
529
+ # load the gem
530
+ require 'cloudmersive-image-recognition-api-client'
531
+ # setup authorization
532
+ CloudmersiveImageRecognitionApiClient.configure do |config|
533
+ # Configure API key authorization: Apikey
534
+ config.api_key['Apikey'] = 'YOUR API KEY'
535
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
536
+ #config.api_key_prefix['Apikey'] = 'Bearer'
537
+ end
538
+
539
+ api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
540
+
541
+ image_file = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
542
+
543
+ opts = {
544
+ recognition_mode: 'recognition_mode_example' # String | Optional, specify the recognition mode; possible values are Normal, Basic and Advanced. Default is Normal.
545
+ }
546
+
547
+ begin
548
+ #Generate a perceptual image hash
549
+ result = api_instance.recognize_similarity_hash(image_file, opts)
550
+ p result
551
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
552
+ puts "Exception when calling RecognizeApi->recognize_similarity_hash: #{e}"
553
+ end
554
+ ```
555
+
556
+ ### Parameters
557
+
558
+ Name | Type | Description | Notes
559
+ ------------- | ------------- | ------------- | -------------
560
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
561
+ **recognition_mode** | **String**| Optional, specify the recognition mode; possible values are Normal, Basic and Advanced. Default is Normal. | [optional]
562
+
563
+ ### Return type
564
+
565
+ [**ImageSimilarityHashResponse**](ImageSimilarityHashResponse.md)
566
+
567
+ ### Authorization
568
+
569
+ [Apikey](../README.md#Apikey)
570
+
571
+ ### HTTP request headers
572
+
573
+ - **Content-Type**: multipart/form-data
574
+ - **Accept**: application/json, text/json, application/xml, text/xml
575
+
576
+
577
+
578
+ # **recognize_similarity_hash_distance**
579
+ > ImageSimilarityHashDistanceResponse recognize_similarity_hash_distance(request)
580
+
581
+ Calculates the similarity between two perceptual image hashes
582
+
583
+ Calculates the similarity between two perceptual image hashes by computing the Hamming Distance between them.
584
+
585
+ ### Example
586
+ ```ruby
587
+ # load the gem
588
+ require 'cloudmersive-image-recognition-api-client'
589
+ # setup authorization
590
+ CloudmersiveImageRecognitionApiClient.configure do |config|
591
+ # Configure API key authorization: Apikey
592
+ config.api_key['Apikey'] = 'YOUR API KEY'
593
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
594
+ #config.api_key_prefix['Apikey'] = 'Bearer'
595
+ end
596
+
597
+ api_instance = CloudmersiveImageRecognitionApiClient::RecognizeApi.new
598
+
599
+ request = CloudmersiveImageRecognitionApiClient::ImageSimilarityHashDistanceRequest.new # ImageSimilarityHashDistanceRequest |
600
+
601
+
602
+ begin
603
+ #Calculates the similarity between two perceptual image hashes
604
+ result = api_instance.recognize_similarity_hash_distance(request)
605
+ p result
606
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
607
+ puts "Exception when calling RecognizeApi->recognize_similarity_hash_distance: #{e}"
608
+ end
609
+ ```
610
+
611
+ ### Parameters
612
+
613
+ Name | Type | Description | Notes
614
+ ------------- | ------------- | ------------- | -------------
615
+ **request** | [**ImageSimilarityHashDistanceRequest**](ImageSimilarityHashDistanceRequest.md)| |
616
+
617
+ ### Return type
618
+
619
+ [**ImageSimilarityHashDistanceResponse**](ImageSimilarityHashDistanceResponse.md)
620
+
621
+ ### Authorization
622
+
623
+ [Apikey](../README.md#Apikey)
624
+
625
+ ### HTTP request headers
626
+
627
+ - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
628
+ - **Accept**: application/json, text/json, application/xml, text/xml
629
+
630
+
631
+