cloudmersive-image-recognition-api-client 1.4.4 → 2.0.3

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 (111) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +20 -16
  4. data/cloudmersive-image-recognition-api-client.gemspec +3 -3
  5. data/docs/ArtisticApi.md +2 -2
  6. data/docs/ConvertApi.md +13 -13
  7. data/docs/DrawTextInstance.md +1 -1
  8. data/docs/EditApi.md +270 -24
  9. data/docs/FaceApi.md +20 -20
  10. data/docs/FaceLocateResponse.md +1 -1
  11. data/docs/FilterApi.md +11 -11
  12. data/docs/ImageMetadata.md +2 -0
  13. data/docs/InfoApi.md +5 -5
  14. data/docs/NsfwApi.md +4 -4
  15. data/docs/RecognizeApi.md +17 -17
  16. data/docs/ResizeApi.md +10 -10
  17. data/lib/cloudmersive-image-recognition-api-client.rb +1 -1
  18. data/lib/cloudmersive-image-recognition-api-client/api/artistic_api.rb +6 -7
  19. data/lib/cloudmersive-image-recognition-api-client/api/convert_api.rb +35 -42
  20. data/lib/cloudmersive-image-recognition-api-client/api/edit_api.rb +315 -62
  21. data/lib/cloudmersive-image-recognition-api-client/api/face_api.rb +39 -46
  22. data/lib/cloudmersive-image-recognition-api-client/api/filter_api.rb +36 -44
  23. data/lib/cloudmersive-image-recognition-api-client/api/info_api.rb +12 -14
  24. data/lib/cloudmersive-image-recognition-api-client/api/nsfw_api.rb +8 -9
  25. data/lib/cloudmersive-image-recognition-api-client/api/recognize_api.rb +41 -49
  26. data/lib/cloudmersive-image-recognition-api-client/api/resize_api.rb +20 -22
  27. data/lib/cloudmersive-image-recognition-api-client/api_client.rb +11 -9
  28. data/lib/cloudmersive-image-recognition-api-client/api_error.rb +1 -1
  29. data/lib/cloudmersive-image-recognition-api-client/configuration.rb +2 -2
  30. data/lib/cloudmersive-image-recognition-api-client/models/age_detection_result.rb +7 -10
  31. data/lib/cloudmersive-image-recognition-api-client/models/color_result.rb +7 -10
  32. data/lib/cloudmersive-image-recognition-api-client/models/detected_license_plate.rb +7 -10
  33. data/lib/cloudmersive-image-recognition-api-client/models/detected_object.rb +7 -10
  34. data/lib/cloudmersive-image-recognition-api-client/models/dominant_color_result.rb +7 -10
  35. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_instance.rb +7 -10
  36. data/lib/cloudmersive-image-recognition-api-client/models/draw_polygon_request.rb +9 -13
  37. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_instance.rb +7 -10
  38. data/lib/cloudmersive-image-recognition-api-client/models/draw_rectangle_request.rb +9 -13
  39. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_instance.rb +8 -11
  40. data/lib/cloudmersive-image-recognition-api-client/models/draw_text_request.rb +9 -13
  41. data/lib/cloudmersive-image-recognition-api-client/models/face.rb +7 -10
  42. data/lib/cloudmersive-image-recognition-api-client/models/face_compare_response.rb +7 -10
  43. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_response.rb +19 -21
  44. data/lib/cloudmersive-image-recognition-api-client/models/face_locate_with_landmarks_response.rb +7 -10
  45. data/lib/cloudmersive-image-recognition-api-client/models/face_match.rb +7 -10
  46. data/lib/cloudmersive-image-recognition-api-client/models/face_point.rb +7 -10
  47. data/lib/cloudmersive-image-recognition-api-client/models/face_with_landmarks.rb +7 -10
  48. data/lib/cloudmersive-image-recognition-api-client/models/find_symbol_result.rb +7 -10
  49. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_detection_result.rb +7 -10
  50. data/lib/cloudmersive-image-recognition-api-client/models/fine_text_item.rb +7 -10
  51. data/lib/cloudmersive-image-recognition-api-client/models/gender_detection_result.rb +7 -10
  52. data/lib/cloudmersive-image-recognition-api-client/models/image_description_response.rb +7 -10
  53. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata.rb +28 -11
  54. data/lib/cloudmersive-image-recognition-api-client/models/image_metadata_exif_value.rb +7 -10
  55. data/lib/cloudmersive-image-recognition-api-client/models/nsfw_result.rb +7 -10
  56. data/lib/cloudmersive-image-recognition-api-client/models/object_detection_result.rb +7 -10
  57. data/lib/cloudmersive-image-recognition-api-client/models/person_with_age.rb +7 -10
  58. data/lib/cloudmersive-image-recognition-api-client/models/person_with_gender.rb +7 -10
  59. data/lib/cloudmersive-image-recognition-api-client/models/polygon_point.rb +7 -10
  60. data/lib/cloudmersive-image-recognition-api-client/models/recognition_outcome.rb +7 -10
  61. data/lib/cloudmersive-image-recognition-api-client/models/text_detection_result.rb +7 -10
  62. data/lib/cloudmersive-image-recognition-api-client/models/text_item.rb +7 -10
  63. data/lib/cloudmersive-image-recognition-api-client/models/vehicle_license_plate_detection_result.rb +7 -10
  64. data/lib/cloudmersive-image-recognition-api-client/version.rb +2 -2
  65. data/spec/api/artistic_api_spec.rb +2 -2
  66. data/spec/api/convert_api_spec.rb +9 -9
  67. data/spec/api/edit_api_spec.rb +74 -16
  68. data/spec/api/face_api_spec.rb +12 -12
  69. data/spec/api/filter_api_spec.rb +10 -10
  70. data/spec/api/info_api_spec.rb +4 -4
  71. data/spec/api/nsfw_api_spec.rb +3 -3
  72. data/spec/api/recognize_api_spec.rb +12 -12
  73. data/spec/api/resize_api_spec.rb +7 -7
  74. data/spec/api_client_spec.rb +52 -35
  75. data/spec/configuration_spec.rb +9 -9
  76. data/spec/models/age_detection_result_spec.rb +4 -5
  77. data/spec/models/color_result_spec.rb +4 -5
  78. data/spec/models/detected_license_plate_spec.rb +8 -9
  79. data/spec/models/detected_object_spec.rb +7 -8
  80. data/spec/models/dominant_color_result_spec.rb +3 -4
  81. data/spec/models/draw_polygon_instance_spec.rb +5 -6
  82. data/spec/models/draw_polygon_request_spec.rb +4 -5
  83. data/spec/models/draw_rectangle_instance_spec.rb +8 -9
  84. data/spec/models/draw_rectangle_request_spec.rb +4 -5
  85. data/spec/models/draw_text_instance_spec.rb +9 -10
  86. data/spec/models/draw_text_request_spec.rb +4 -5
  87. data/spec/models/face_compare_response_spec.rb +5 -6
  88. data/spec/models/face_locate_response_spec.rb +9 -10
  89. data/spec/models/face_locate_with_landmarks_response_spec.rb +5 -6
  90. data/spec/models/face_match_spec.rb +7 -8
  91. data/spec/models/face_point_spec.rb +3 -4
  92. data/spec/models/face_spec.rb +5 -6
  93. data/spec/models/face_with_landmarks_spec.rb +14 -15
  94. data/spec/models/find_symbol_result_spec.rb +7 -8
  95. data/spec/models/fine_text_detection_result_spec.rb +4 -5
  96. data/spec/models/fine_text_item_spec.rb +12 -13
  97. data/spec/models/gender_detection_result_spec.rb +4 -5
  98. data/spec/models/image_description_response_spec.rb +5 -6
  99. data/spec/models/image_metadata_exif_value_spec.rb +4 -5
  100. data/spec/models/image_metadata_spec.rb +21 -10
  101. data/spec/models/nsfw_result_spec.rb +4 -5
  102. data/spec/models/object_detection_result_spec.rb +4 -5
  103. data/spec/models/person_with_age_spec.rb +5 -6
  104. data/spec/models/person_with_gender_spec.rb +4 -5
  105. data/spec/models/polygon_point_spec.rb +3 -4
  106. data/spec/models/recognition_outcome_spec.rb +3 -4
  107. data/spec/models/text_detection_result_spec.rb +4 -5
  108. data/spec/models/text_item_spec.rb +5 -6
  109. data/spec/models/vehicle_license_plate_detection_result_spec.rb +4 -5
  110. data/spec/spec_helper.rb +1 -1
  111. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8c62bd4a59e2811d2a064f1c157bd1eeabf69517b2f74828a37c430e167d5b5
4
- data.tar.gz: 81a32ecb933c7ef55ea65fa906f017885ed9462eef988b50815bdd06c34eca17
3
+ metadata.gz: d0b96629494c49b6fdab80aee6bc5ed6042d383a7a360dee356d67462ad75371
4
+ data.tar.gz: 23ead2888a81fea8a522522c3eb5f3bfa414a9bf1f9550789af667913d72f392
5
5
  SHA512:
6
- metadata.gz: 4f86e6707e094cc9d50549887ac3a99edf7f0a88e0db9351653511415cd468e5ba5a70b9d332fac9a067c6bfbf411e91607a16de803c9d73e35ad3770d87cd59
7
- data.tar.gz: 10ec8539e812d38bbf771319994b5ac94a4c33d2fb575df786e6a4335d7021256c423704db0cc919756506051541e95a0c3fc487bec53c3c1f07ab3f5346360d
6
+ metadata.gz: f98d9ad14e246470f5b69e605ef1ae858ea75552c19d4c4060d7cb4760ba3dc61c67b5ff8466387246b94338900bf741cbecd44d48379107df0146d8ac091b88
7
+ data.tar.gz: e93c7b877e2cf7e64805dbb41253f9ccb824b504b8cb5d94bbf0d3db7eb7f1c2d1ac3af1855927823ae033f79ef7a4a6976002cdc982f1e9a65ef060bd16a949
data/Gemfile CHANGED
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.0.0'
6
+ gem 'rake', '~> 12.3.3'
7
7
  end
data/README.md CHANGED
@@ -7,7 +7,7 @@ Image Recognition and Processing APIs let you use Machine Learning to recognize
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 1.4.4
10
+ - Package version: 2.0.3
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
13
13
  ## Installation
@@ -23,15 +23,15 @@ gem build cloudmersive-image-recognition-api-client.gemspec
23
23
  Then either install the gem locally:
24
24
 
25
25
  ```shell
26
- gem install ./cloudmersive-image-recognition-api-client-1.4.4.gem
26
+ gem install ./cloudmersive-image-recognition-api-client-2.0.3.gem
27
27
  ```
28
- (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-1.4.4.gem` to install the development dependencies)
28
+ (for development, run `gem install --dev ./cloudmersive-image-recognition-api-client-2.0.3.gem` to install the development dependencies)
29
29
 
30
30
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
31
31
 
32
32
  Finally add this to the Gemfile:
33
33
 
34
- gem 'cloudmersive-image-recognition-api-client', '~> 1.4.4'
34
+ gem 'cloudmersive-image-recognition-api-client', '~> 2.0.3'
35
35
 
36
36
  ### Install from Git
37
37
 
@@ -64,9 +64,9 @@ end
64
64
 
65
65
  api_instance = CloudmersiveImageRecognitionApiClient::ArtisticApi.new
66
66
 
67
- style = "style_example" # String | The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
67
+ style = 'style_example' # String | The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
68
68
 
69
- 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.
69
+ 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.
70
70
 
71
71
 
72
72
  begin
@@ -88,30 +88,34 @@ Class | Method | HTTP request | Description
88
88
  *CloudmersiveImageRecognitionApiClient::ArtisticApi* | [**artistic_painting**](docs/ArtisticApi.md#artistic_painting) | **POST** /image/artistic/painting/{style} | Transform an image into an artistic painting automatically
89
89
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_bmp**](docs/ConvertApi.md#convert_to_bmp) | **POST** /image/convert/to/bmp | Convert input image to Bitmap BMP format
90
90
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_gif**](docs/ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
91
- *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_jpg**](docs/ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG/JPEG format
91
+ *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_jpg**](docs/ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG, JPEG format
92
92
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_photoshop**](docs/ConvertApi.md#convert_to_photoshop) | **POST** /image/convert/to/psd | Convert input image to Photoshop PSD format
93
93
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_png**](docs/ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
94
94
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_tiff**](docs/ConvertApi.md#convert_to_tiff) | **POST** /image/convert/to/tiff | Convert input image to TIFF format
95
95
  *CloudmersiveImageRecognitionApiClient::ConvertApi* | [**convert_to_web_p**](docs/ConvertApi.md#convert_to_web_p) | **POST** /image/convert/to/webp | Convert input image to WebP format
96
96
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_auto_orient**](docs/EditApi.md#edit_auto_orient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data
97
97
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_basic**](docs/EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
98
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_composite_precise**](docs/EditApi.md#edit_composite_precise) | **POST** /image/edit/composite/precise | Composite two images together precisely
98
99
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_contrast_adaptive**](docs/EditApi.md#edit_contrast_adaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see
100
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_crop_circle**](docs/EditApi.md#edit_crop_circle) | **POST** /image/edit/crop/circle/{left}/{top}/{radius} | Crop an image to an circular area
99
101
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_crop_rectangle**](docs/EditApi.md#edit_crop_rectangle) | **POST** /image/edit/crop/rectangle/{left}/{top}/{width}/{height} | Crop an image to a rectangular area
100
102
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_polygon**](docs/EditApi.md#edit_draw_polygon) | **POST** /image/edit/draw/polygon | Draw a polygon onto an image
101
103
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_rectangle**](docs/EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
102
104
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_draw_text**](docs/EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
103
105
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_drop_shadow**](docs/EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image
106
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_invert**](docs/EditApi.md#edit_invert) | **POST** /image/edit/invert | Invert, negate the colors in the image
107
+ *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_remove_exif_data**](docs/EditApi.md#edit_remove_exif_data) | **POST** /image/edit/remove-exif | Remove EXIF data from the image
104
108
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_remove_transparency**](docs/EditApi.md#edit_remove_transparency) | **POST** /image/edit/remove-transparency | Remove transparency from the image
105
109
  *CloudmersiveImageRecognitionApiClient::EditApi* | [**edit_rotate**](docs/EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
106
110
  *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_compare**](docs/FaceApi.md#face_compare) | **POST** /image/face/compare-and-match | Compare and match faces
107
- *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first**](docs/FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face (square)
108
- *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first_round**](docs/FaceApi.md#face_crop_first_round) | **POST** /image/face/crop/first/round | Crop image to face (round)
111
+ *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first**](docs/FaceApi.md#face_crop_first) | **POST** /image/face/crop/first | Crop image to face with square crop
112
+ *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_crop_first_round**](docs/FaceApi.md#face_crop_first_round) | **POST** /image/face/crop/first/round | Crop image to face with round crop
109
113
  *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_detect_age**](docs/FaceApi.md#face_detect_age) | **POST** /image/face/detect-age | Detect the age of people in an image
110
114
  *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_detect_gender**](docs/FaceApi.md#face_detect_gender) | **POST** /image/face/detect-gender | Detect the gender of people in an image
111
- *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate**](docs/FaceApi.md#face_locate) | **POST** /image/face/locate | Find faces in an image
112
- *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate_with_landmarks**](docs/FaceApi.md#face_locate_with_landmarks) | **POST** /image/face/locate-with-landmarks | Find faces and face landmarks (eyes, eye brows, nose, mouth) in an image
115
+ *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate**](docs/FaceApi.md#face_locate) | **POST** /image/face/locate | Detect and find faces in an image
116
+ *CloudmersiveImageRecognitionApiClient::FaceApi* | [**face_locate_with_landmarks**](docs/FaceApi.md#face_locate_with_landmarks) | **POST** /image/face/locate-with-landmarks | Detect and find faces and landmarks eyes and nose and mouth in image
113
117
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_black_and_white**](docs/FilterApi.md#filter_black_and_white) | **POST** /image/filter/black-and-white | Convert image to black-and-white grayscale
114
- *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_despeckle**](docs/FilterApi.md#filter_despeckle) | **POST** /image/filter/despeckle | Despeckle (remove point noise) from the image
118
+ *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_despeckle**](docs/FilterApi.md#filter_despeckle) | **POST** /image/filter/despeckle | Despeckle to remove point noise from the image
115
119
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_edge_detect**](docs/FilterApi.md#filter_edge_detect) | **POST** /image/filter/edge-detect/{radius} | Detect and highlight edges in an image
116
120
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_emboss**](docs/FilterApi.md#filter_emboss) | **POST** /image/filter/emboss/{radius}/{sigma} | Emboss an image
117
121
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_gaussian_blur**](docs/FilterApi.md#filter_gaussian_blur) | **POST** /image/filter/blur/guassian/{radius}/{sigma} | Perform a guassian blur on the input image
@@ -119,12 +123,12 @@ Class | Method | HTTP request | Description
119
123
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_posterize**](docs/FilterApi.md#filter_posterize) | **POST** /image/filter/posterize | Posterize the image by reducing distinct colors
120
124
  *CloudmersiveImageRecognitionApiClient::FilterApi* | [**filter_swirl**](docs/FilterApi.md#filter_swirl) | **POST** /image/filter/swirl | Swirl distort the image
121
125
  *CloudmersiveImageRecognitionApiClient::InfoApi* | [**info_get_dominant_color**](docs/InfoApi.md#info_get_dominant_color) | **POST** /image/get-info/dominant-color | Returns the dominant colors of the image
122
- *CloudmersiveImageRecognitionApiClient::InfoApi* | [**info_get_metadata**](docs/InfoApi.md#info_get_metadata) | **POST** /image/get-info/metadata | Returns the image metadata, including EXIF and resolution
123
- *CloudmersiveImageRecognitionApiClient::NsfwApi* | [**nsfw_classify**](docs/NsfwApi.md#nsfw_classify) | **POST** /image/nsfw/classify | Not safe for work (NSFW) racy content classification
126
+ *CloudmersiveImageRecognitionApiClient::InfoApi* | [**info_get_metadata**](docs/InfoApi.md#info_get_metadata) | **POST** /image/get-info/metadata | Returns the image metadata including EXIF and resolution
127
+ *CloudmersiveImageRecognitionApiClient::NsfwApi* | [**nsfw_classify**](docs/NsfwApi.md#nsfw_classify) | **POST** /image/nsfw/classify | Not safe for work NSFW racy content classification
124
128
  *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_describe**](docs/RecognizeApi.md#recognize_describe) | **POST** /image/recognize/describe | Describe an image in natural language
125
129
  *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_and_unskew_document**](docs/RecognizeApi.md#recognize_detect_and_unskew_document) | **POST** /image/recognize/detect-document/unskew | Detect and unskew a photo of a document
126
- *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_objects**](docs/RecognizeApi.md#recognize_detect_objects) | **POST** /image/recognize/detect-objects | Detect objects, including types and locations, in an image
127
- *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_people**](docs/RecognizeApi.md#recognize_detect_people) | **POST** /image/recognize/detect-people | Detect people, including locations, in an image
130
+ *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_objects**](docs/RecognizeApi.md#recognize_detect_objects) | **POST** /image/recognize/detect-objects | Detect objects including types and locations in an image
131
+ *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_people**](docs/RecognizeApi.md#recognize_detect_people) | **POST** /image/recognize/detect-people | Detect people including locations in an image
128
132
  *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_text_fine**](docs/RecognizeApi.md#recognize_detect_text_fine) | **POST** /image/recognize/detect-text/fine | Detect fine text in a photo of a document
129
133
  *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_text_large**](docs/RecognizeApi.md#recognize_detect_text_large) | **POST** /image/recognize/detect-text/large | Detect large text in a photo
130
134
  *CloudmersiveImageRecognitionApiClient::RecognizeApi* | [**recognize_detect_vehicle_license_plates**](docs/RecognizeApi.md#recognize_detect_vehicle_license_plates) | **POST** /image/recognize/detect-vehicle-license-plates | Detect vehicle license plates in an image
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- #
2
+
3
3
  =begin
4
4
  #imageapi
5
5
 
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: v1
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.3.1
11
+ Swagger Codegen version: 2.4.14
12
12
 
13
13
  =end
14
14
 
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://www.cloudmersive.com/image-recognition-and-processing-api"
25
25
  s.summary = "Advanced Machine Learning APIs for recognizing and processing images."
26
26
  s.description = "Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, including automatic caption generation, face recognition and NSFW classification, and also perform useful image modification operations."
27
- s.license = "Apache 2.0"
27
+ s.license = 'Apache 2.0'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
@@ -28,9 +28,9 @@ end
28
28
 
29
29
  api_instance = CloudmersiveImageRecognitionApiClient::ArtisticApi.new
30
30
 
31
- style = "style_example" # String | The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
31
+ style = 'style_example' # String | The style of the painting to apply. To start, try \"udnie\" a painting style. Possible values are: \"udnie\", \"wave\", \"la_muse\", \"rain_princess\".
32
32
 
33
- 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
+ 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.
34
34
 
35
35
 
36
36
  begin
@@ -6,7 +6,7 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**convert_to_bmp**](ConvertApi.md#convert_to_bmp) | **POST** /image/convert/to/bmp | Convert input image to Bitmap BMP format
8
8
  [**convert_to_gif**](ConvertApi.md#convert_to_gif) | **POST** /image/convert/to/gif | Convert input image to GIF format
9
- [**convert_to_jpg**](ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG/JPEG format
9
+ [**convert_to_jpg**](ConvertApi.md#convert_to_jpg) | **POST** /image/convert/to/jpg/{quality} | Convert input image to JPG, JPEG format
10
10
  [**convert_to_photoshop**](ConvertApi.md#convert_to_photoshop) | **POST** /image/convert/to/psd | Convert input image to Photoshop PSD format
11
11
  [**convert_to_png**](ConvertApi.md#convert_to_png) | **POST** /image/convert/to/png | Convert input image to PNG format
12
12
  [**convert_to_tiff**](ConvertApi.md#convert_to_tiff) | **POST** /image/convert/to/tiff | Convert input image to TIFF format
@@ -34,7 +34,7 @@ end
34
34
 
35
35
  api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
36
36
 
37
- 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.
37
+ 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
38
 
39
39
 
40
40
  begin
@@ -88,7 +88,7 @@ end
88
88
 
89
89
  api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
90
90
 
91
- 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.
91
+ 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
92
 
93
93
 
94
94
  begin
@@ -117,14 +117,14 @@ Name | Type | Description | Notes
117
117
  ### HTTP request headers
118
118
 
119
119
  - **Content-Type**: multipart/form-data
120
- - **Accept**: image/gif
120
+ - **Accept**: application/octet-stream
121
121
 
122
122
 
123
123
 
124
124
  # **convert_to_jpg**
125
125
  > String convert_to_jpg(quality, image_file)
126
126
 
127
- Convert input image to JPG/JPEG format
127
+ Convert input image to JPG, JPEG format
128
128
 
129
129
  Converts the input image into JPEG/JPG format. Customize encoding parameters. Supported input file formats include AAI, ART, ARW, AVS, BPG, BMP, BMP2, BMP3, BRF, CALS, CGM, CIN, CMYK, CMYKA, CR2, CRW, CUR, CUT, DCM, DCR, DCX, DDS, DIB, DJVU, DNG, DOT, DPX, EMF, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EXR, FAX, FIG, FITS, FPX, GIF, GPLT, GRAY, HDR, HEIC, HPGL, HRZ, ICO, ISOBRL, ISBRL6, JBIG, JNG, JP2, JPT, J2C, J2K, JPEG/JPG, JXR, MAT, MONO, MNG, M2V, MRW, MTV, NEF, ORF, OTB, P7, PALM, PAM, PBM, PCD, PCDS, PCL, PCX, PDF, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PNG, PNG8, PNG00, PNG24, PNG32, PNG48, PNG64, PNM, PPM, PSB, PSD, PTIF, PWB, RAD, RAF, RGB, RGBA, RGF, RLA, RLE, SCT, SFW, SGI, SID, SUN, SVG, TGA, TIFF, TIM, UIL, VIFF, VICAR, VBMP, WDP, WEBP, WPG, X, XBM, XCF, XPM, XWD, X3F, YCbCr, YCbCrA, YUV.
130
130
 
@@ -144,11 +144,11 @@ api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.new
144
144
 
145
145
  quality = 56 # Integer | Set the JPEG quality level; lowest quality is 1 (highest compression), highest quality (lowest compression) is 100; recommended value is 75
146
146
 
147
- 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.
147
+ 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
148
 
149
149
 
150
150
  begin
151
- #Convert input image to JPG/JPEG format
151
+ #Convert input image to JPG, JPEG format
152
152
  result = api_instance.convert_to_jpg(quality, image_file)
153
153
  p result
154
154
  rescue CloudmersiveImageRecognitionApiClient::ApiError => e
@@ -174,7 +174,7 @@ Name | Type | Description | Notes
174
174
  ### HTTP request headers
175
175
 
176
176
  - **Content-Type**: multipart/form-data
177
- - **Accept**: image/jpg
177
+ - **Accept**: application/octet-stream
178
178
 
179
179
 
180
180
 
@@ -199,7 +199,7 @@ end
199
199
 
200
200
  api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.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::ConvertApi.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
@@ -282,7 +282,7 @@ Name | Type | Description | Notes
282
282
  ### HTTP request headers
283
283
 
284
284
  - **Content-Type**: multipart/form-data
285
- - **Accept**: image/png
285
+ - **Accept**: application/octet-stream
286
286
 
287
287
 
288
288
 
@@ -307,7 +307,7 @@ end
307
307
 
308
308
  api_instance = CloudmersiveImageRecognitionApiClient::ConvertApi.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::ConvertApi.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
@@ -4,7 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **text** | **String** | Text string to draw | [optional]
7
- **font_family_name** | **String** | Font Family to use. Leave blank to default to \"Arial\". | [optional]
7
+ **font_family_name** | **String** | Font Family to use. Leave blank to default to \"Arial\". Supported fonts including Arial, Calibri, Cambria, Candara, Consolas, Constantia, Corbel, Courier New, Courier Regular, Georgia, Impact Regular, Lucida, Modern Regular, Tahoma, Times New Roman, Verdana | [optional]
8
8
  **font_size** | **Float** | Font size to use. | [optional]
9
9
  **color** | **String** | Color to use - can be a hex value (with #) or HTML common color name | [optional]
10
10
  **x** | **Float** | Pixel location of the left edge of the text location | [optional]
@@ -6,12 +6,16 @@ Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**edit_auto_orient**](EditApi.md#edit_auto_orient) | **POST** /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data
8
8
  [**edit_composite_basic**](EditApi.md#edit_composite_basic) | **POST** /image/edit/composite/{location} | Composite two images together
9
+ [**edit_composite_precise**](EditApi.md#edit_composite_precise) | **POST** /image/edit/composite/precise | Composite two images together precisely
9
10
  [**edit_contrast_adaptive**](EditApi.md#edit_contrast_adaptive) | **POST** /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see
11
+ [**edit_crop_circle**](EditApi.md#edit_crop_circle) | **POST** /image/edit/crop/circle/{left}/{top}/{radius} | Crop an image to an circular area
10
12
  [**edit_crop_rectangle**](EditApi.md#edit_crop_rectangle) | **POST** /image/edit/crop/rectangle/{left}/{top}/{width}/{height} | Crop an image to a rectangular area
11
13
  [**edit_draw_polygon**](EditApi.md#edit_draw_polygon) | **POST** /image/edit/draw/polygon | Draw a polygon onto an image
12
14
  [**edit_draw_rectangle**](EditApi.md#edit_draw_rectangle) | **POST** /image/edit/draw/rectangle | Draw a rectangle onto an image
13
15
  [**edit_draw_text**](EditApi.md#edit_draw_text) | **POST** /image/edit/draw/text | Draw text onto an image
14
16
  [**edit_drop_shadow**](EditApi.md#edit_drop_shadow) | **POST** /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image
17
+ [**edit_invert**](EditApi.md#edit_invert) | **POST** /image/edit/invert | Invert, negate the colors in the image
18
+ [**edit_remove_exif_data**](EditApi.md#edit_remove_exif_data) | **POST** /image/edit/remove-exif | Remove EXIF data from the image
15
19
  [**edit_remove_transparency**](EditApi.md#edit_remove_transparency) | **POST** /image/edit/remove-transparency | Remove transparency from the image
16
20
  [**edit_rotate**](EditApi.md#edit_rotate) | **POST** /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees
17
21
 
@@ -37,7 +41,7 @@ end
37
41
 
38
42
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
39
43
 
40
- 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.
44
+ 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
45
 
42
46
 
43
47
  begin
@@ -91,11 +95,11 @@ end
91
95
 
92
96
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
93
97
 
94
- location = "location_example" # String | Location to composite the layered images; possible values are: \"center\", \"top-left\", \"top-center\", \"top-right\", \"center-left\", \"center-right\", \"bottom-left\", \"bottom-center\", \"bottom-right\"
98
+ location = 'location_example' # String | Location to composite the layered images; possible values are: \"center\", \"top-left\", \"top-center\", \"top-right\", \"center-left\", \"center-right\", \"bottom-left\", \"bottom-center\", \"bottom-right\"
95
99
 
96
- base_image = File.new("/path/to/file.txt") # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
100
+ base_image = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
97
101
 
98
- layered_image = File.new("/path/to/file.txt") # File | Image to layer on top of the base image.
102
+ layered_image = File.new('/path/to/file.txt') # File | Image to layer on top of the base image.
99
103
 
100
104
 
101
105
  begin
@@ -126,7 +130,78 @@ Name | Type | Description | Notes
126
130
  ### HTTP request headers
127
131
 
128
132
  - **Content-Type**: multipart/form-data
129
- - **Accept**: image/png
133
+ - **Accept**: application/octet-stream
134
+
135
+
136
+
137
+ # **edit_composite_precise**
138
+ > String edit_composite_precise(base_image, layered_image, opts)
139
+
140
+ Composite two images together precisely
141
+
142
+ Composites two input images together; a layered image onto a base image. Position is based on distance in pixels from each side. The first image you input is the base image. The second image (the layered image) will be composited on top of this base image. Supports PNG transparency. To control padding you can include transparent pixels at the border(s) of your layered images as appropriate. Providing multiple parameters in a single axis (for example top and bottom) is not recommended, since only one of the parameters will be used per axis.
143
+
144
+ ### Example
145
+ ```ruby
146
+ # load the gem
147
+ require 'cloudmersive-image-recognition-api-client'
148
+ # setup authorization
149
+ CloudmersiveImageRecognitionApiClient.configure do |config|
150
+ # Configure API key authorization: Apikey
151
+ config.api_key['Apikey'] = 'YOUR API KEY'
152
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
153
+ #config.api_key_prefix['Apikey'] = 'Bearer'
154
+ end
155
+
156
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
157
+
158
+ base_image = File.new('/path/to/file.txt') # File | Image file to perform the operation on. Common file formats such as PNG, JPEG are supported.
159
+
160
+ layered_image = File.new('/path/to/file.txt') # File | Image to layer on top of the base image.
161
+
162
+ opts = {
163
+ top: 56, # Integer | Optional; Desired distance in pixels from the top of the base image to the top of the layered image.
164
+ bottom: 56, # Integer | Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image.
165
+ left: 56, # Integer | Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image.
166
+ right: 56, # Integer | Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image.
167
+ width: 56, # Integer | Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally.
168
+ height: 56 # Integer | Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally.
169
+ }
170
+
171
+ begin
172
+ #Composite two images together precisely
173
+ result = api_instance.edit_composite_precise(base_image, layered_image, opts)
174
+ p result
175
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
176
+ puts "Exception when calling EditApi->edit_composite_precise: #{e}"
177
+ end
178
+ ```
179
+
180
+ ### Parameters
181
+
182
+ Name | Type | Description | Notes
183
+ ------------- | ------------- | ------------- | -------------
184
+ **base_image** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
185
+ **layered_image** | **File**| Image to layer on top of the base image. |
186
+ **top** | **Integer**| Optional; Desired distance in pixels from the top of the base image to the top of the layered image. | [optional]
187
+ **bottom** | **Integer**| Optional; Desired distance in pixels from the bottom of the base image to the bottom of the layered image. | [optional]
188
+ **left** | **Integer**| Optional; Desired distance in pixels from the left side of the base image to the left side of the layered image. | [optional]
189
+ **right** | **Integer**| Optional; Desired distance in pixels from the right side of the base image to the right side of the layered image. | [optional]
190
+ **width** | **Integer**| Optional; Desired width of the layered image in pixels. Leave height empty or 0 to automatically scale the image proportionally. | [optional]
191
+ **height** | **Integer**| Optional; Desired height of the layered image in pixels. Leave width empty or 0 to automatically scale the image proportionally. | [optional]
192
+
193
+ ### Return type
194
+
195
+ **String**
196
+
197
+ ### Authorization
198
+
199
+ [Apikey](../README.md#Apikey)
200
+
201
+ ### HTTP request headers
202
+
203
+ - **Content-Type**: multipart/form-data
204
+ - **Accept**: application/octet-stream
130
205
 
131
206
 
132
207
 
@@ -153,7 +228,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
153
228
 
154
229
  gamma = 1.2 # Float | Gamma value to adjust the contrast in the image. Recommended value is 2.0. Values between 0.0 and 1.0 will reduce contrast, while values above 1.0 will increase contrast.
155
230
 
156
- 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.
231
+ 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.
157
232
 
158
233
 
159
234
  begin
@@ -183,7 +258,70 @@ Name | Type | Description | Notes
183
258
  ### HTTP request headers
184
259
 
185
260
  - **Content-Type**: multipart/form-data
186
- - **Accept**: image/png
261
+ - **Accept**: application/octet-stream
262
+
263
+
264
+
265
+ # **edit_crop_circle**
266
+ > String edit_crop_circle(left, top, radius, image_file)
267
+
268
+ Crop an image to an circular area
269
+
270
+ Crop an image to a target circular area
271
+
272
+ ### Example
273
+ ```ruby
274
+ # load the gem
275
+ require 'cloudmersive-image-recognition-api-client'
276
+ # setup authorization
277
+ CloudmersiveImageRecognitionApiClient.configure do |config|
278
+ # Configure API key authorization: Apikey
279
+ config.api_key['Apikey'] = 'YOUR API KEY'
280
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
281
+ #config.api_key_prefix['Apikey'] = 'Bearer'
282
+ end
283
+
284
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
285
+
286
+ left = 56 # Integer | The left edge of the circular crop area in pixels (X).
287
+
288
+ top = 56 # Integer | The top edge of the circular crop area in pixels (Y).
289
+
290
+ radius = 56 # Integer | The radius of the circular crop area in pixels.
291
+
292
+ 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.
293
+
294
+
295
+ begin
296
+ #Crop an image to an circular area
297
+ result = api_instance.edit_crop_circle(left, top, radius, image_file)
298
+ p result
299
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
300
+ puts "Exception when calling EditApi->edit_crop_circle: #{e}"
301
+ end
302
+ ```
303
+
304
+ ### Parameters
305
+
306
+ Name | Type | Description | Notes
307
+ ------------- | ------------- | ------------- | -------------
308
+ **left** | **Integer**| The left edge of the circular crop area in pixels (X). |
309
+ **top** | **Integer**| The top edge of the circular crop area in pixels (Y). |
310
+ **radius** | **Integer**| The radius of the circular crop area in pixels. |
311
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
312
+
313
+ ### Return type
314
+
315
+ **String**
316
+
317
+ ### Authorization
318
+
319
+ [Apikey](../README.md#Apikey)
320
+
321
+ ### HTTP request headers
322
+
323
+ - **Content-Type**: multipart/form-data
324
+ - **Accept**: application/octet-stream
187
325
 
188
326
 
189
327
 
@@ -216,7 +354,7 @@ width = 56 # Integer | The width of the rectangular crop area in pixels.
216
354
 
217
355
  height = 56 # Integer | The height of the rectangular crop area in pixels.
218
356
 
219
- 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.
357
+ 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.
220
358
 
221
359
 
222
360
  begin
@@ -274,7 +412,7 @@ end
274
412
 
275
413
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
276
414
 
277
- request = CloudmersiveImageRecognitionApiClient::DrawPolygonRequest.new # DrawPolygonRequest |
415
+ request = CloudmersiveImageRecognitionApiClient::DrawPolygonRequest.new # DrawPolygonRequest | Polygon drawing request parameters
278
416
 
279
417
 
280
418
  begin
@@ -290,7 +428,7 @@ end
290
428
 
291
429
  Name | Type | Description | Notes
292
430
  ------------- | ------------- | ------------- | -------------
293
- **request** | [**DrawPolygonRequest**](DrawPolygonRequest.md)| |
431
+ **request** | [**DrawPolygonRequest**](DrawPolygonRequest.md)| Polygon drawing request parameters |
294
432
 
295
433
  ### Return type
296
434
 
@@ -303,7 +441,7 @@ Name | Type | Description | Notes
303
441
  ### HTTP request headers
304
442
 
305
443
  - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
306
- - **Accept**: image/png
444
+ - **Accept**: application/octet-stream
307
445
 
308
446
 
309
447
 
@@ -328,7 +466,7 @@ end
328
466
 
329
467
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
330
468
 
331
- request = CloudmersiveImageRecognitionApiClient::DrawRectangleRequest.new # DrawRectangleRequest |
469
+ request = CloudmersiveImageRecognitionApiClient::DrawRectangleRequest.new # DrawRectangleRequest | Draw rectangle parameters
332
470
 
333
471
 
334
472
  begin
@@ -344,7 +482,7 @@ end
344
482
 
345
483
  Name | Type | Description | Notes
346
484
  ------------- | ------------- | ------------- | -------------
347
- **request** | [**DrawRectangleRequest**](DrawRectangleRequest.md)| |
485
+ **request** | [**DrawRectangleRequest**](DrawRectangleRequest.md)| Draw rectangle parameters |
348
486
 
349
487
  ### Return type
350
488
 
@@ -357,7 +495,7 @@ Name | Type | Description | Notes
357
495
  ### HTTP request headers
358
496
 
359
497
  - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
360
- - **Accept**: image/png
498
+ - **Accept**: application/octet-stream
361
499
 
362
500
 
363
501
 
@@ -382,7 +520,7 @@ end
382
520
 
383
521
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
384
522
 
385
- request = CloudmersiveImageRecognitionApiClient::DrawTextRequest.new # DrawTextRequest |
523
+ request = CloudmersiveImageRecognitionApiClient::DrawTextRequest.new # DrawTextRequest | Draw text parameters
386
524
 
387
525
 
388
526
  begin
@@ -398,7 +536,7 @@ end
398
536
 
399
537
  Name | Type | Description | Notes
400
538
  ------------- | ------------- | ------------- | -------------
401
- **request** | [**DrawTextRequest**](DrawTextRequest.md)| |
539
+ **request** | [**DrawTextRequest**](DrawTextRequest.md)| Draw text parameters |
402
540
 
403
541
  ### Return type
404
542
 
@@ -411,7 +549,7 @@ Name | Type | Description | Notes
411
549
  ### HTTP request headers
412
550
 
413
551
  - **Content-Type**: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded
414
- - **Accept**: image/png
552
+ - **Accept**: application/octet-stream
415
553
 
416
554
 
417
555
 
@@ -436,15 +574,15 @@ end
436
574
 
437
575
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
438
576
 
439
- x = 56 # Integer |
577
+ x = 56 # Integer | Horizontal (X) offset of the drop shadow
440
578
 
441
- y = 56 # Integer |
579
+ y = 56 # Integer | Vertical (Y) offset of the drop shadow
442
580
 
443
581
  sigma = 56 # Integer | Sigma (blur distance) of the drop shadow
444
582
 
445
583
  opacity = 56 # Integer | Opacity of the drop shadow; 0 is 0% and 100 is 100%
446
584
 
447
- 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.
585
+ 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.
448
586
 
449
587
 
450
588
  begin
@@ -460,8 +598,8 @@ end
460
598
 
461
599
  Name | Type | Description | Notes
462
600
  ------------- | ------------- | ------------- | -------------
463
- **x** | **Integer**| |
464
- **y** | **Integer**| |
601
+ **x** | **Integer**| Horizontal (X) offset of the drop shadow |
602
+ **y** | **Integer**| Vertical (Y) offset of the drop shadow |
465
603
  **sigma** | **Integer**| Sigma (blur distance) of the drop shadow |
466
604
  **opacity** | **Integer**| Opacity of the drop shadow; 0 is 0% and 100 is 100% |
467
605
  **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
@@ -481,6 +619,114 @@ Name | Type | Description | Notes
481
619
 
482
620
 
483
621
 
622
+ # **edit_invert**
623
+ > String edit_invert(image_file)
624
+
625
+ Invert, negate the colors in the image
626
+
627
+ Inverts (negates) all of the colors in the image. If the image contains transparency, the transparency will first be removed prior to inverting the image.
628
+
629
+ ### Example
630
+ ```ruby
631
+ # load the gem
632
+ require 'cloudmersive-image-recognition-api-client'
633
+ # setup authorization
634
+ CloudmersiveImageRecognitionApiClient.configure do |config|
635
+ # Configure API key authorization: Apikey
636
+ config.api_key['Apikey'] = 'YOUR API KEY'
637
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
638
+ #config.api_key_prefix['Apikey'] = 'Bearer'
639
+ end
640
+
641
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
642
+
643
+ 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.
644
+
645
+
646
+ begin
647
+ #Invert, negate the colors in the image
648
+ result = api_instance.edit_invert(image_file)
649
+ p result
650
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
651
+ puts "Exception when calling EditApi->edit_invert: #{e}"
652
+ end
653
+ ```
654
+
655
+ ### Parameters
656
+
657
+ Name | Type | Description | Notes
658
+ ------------- | ------------- | ------------- | -------------
659
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
660
+
661
+ ### Return type
662
+
663
+ **String**
664
+
665
+ ### Authorization
666
+
667
+ [Apikey](../README.md#Apikey)
668
+
669
+ ### HTTP request headers
670
+
671
+ - **Content-Type**: multipart/form-data
672
+ - **Accept**: application/octet-stream
673
+
674
+
675
+
676
+ # **edit_remove_exif_data**
677
+ > String edit_remove_exif_data(image_file)
678
+
679
+ Remove EXIF data from the image
680
+
681
+ Removes any EXIF data and profiles .
682
+
683
+ ### Example
684
+ ```ruby
685
+ # load the gem
686
+ require 'cloudmersive-image-recognition-api-client'
687
+ # setup authorization
688
+ CloudmersiveImageRecognitionApiClient.configure do |config|
689
+ # Configure API key authorization: Apikey
690
+ config.api_key['Apikey'] = 'YOUR API KEY'
691
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
692
+ #config.api_key_prefix['Apikey'] = 'Bearer'
693
+ end
694
+
695
+ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
696
+
697
+ 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.
698
+
699
+
700
+ begin
701
+ #Remove EXIF data from the image
702
+ result = api_instance.edit_remove_exif_data(image_file)
703
+ p result
704
+ rescue CloudmersiveImageRecognitionApiClient::ApiError => e
705
+ puts "Exception when calling EditApi->edit_remove_exif_data: #{e}"
706
+ end
707
+ ```
708
+
709
+ ### Parameters
710
+
711
+ Name | Type | Description | Notes
712
+ ------------- | ------------- | ------------- | -------------
713
+ **image_file** | **File**| Image file to perform the operation on. Common file formats such as PNG, JPEG are supported. |
714
+
715
+ ### Return type
716
+
717
+ **String**
718
+
719
+ ### Authorization
720
+
721
+ [Apikey](../README.md#Apikey)
722
+
723
+ ### HTTP request headers
724
+
725
+ - **Content-Type**: multipart/form-data
726
+ - **Accept**: application/octet-stream
727
+
728
+
729
+
484
730
  # **edit_remove_transparency**
485
731
  > String edit_remove_transparency(image_file)
486
732
 
@@ -502,7 +748,7 @@ end
502
748
 
503
749
  api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
504
750
 
505
- 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.
751
+ 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.
506
752
 
507
753
 
508
754
  begin
@@ -558,7 +804,7 @@ api_instance = CloudmersiveImageRecognitionApiClient::EditApi.new
558
804
 
559
805
  degrees = 1.2 # Float | Degrees to rotate the image; values range from 0.0 to 360.0.
560
806
 
561
- 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.
807
+ 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.
562
808
 
563
809
 
564
810
  begin