
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
cloudmersive-image-recognition-api-client
Advanced tools
CloudmersiveImageRecognitionApiClient - the Ruby gem for the imageapi
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.
This SDK is automatically generated by the Swagger Codegen project:
To build the Ruby code into a gem:
gem build cloudmersive-image-recognition-api-client.gemspec
Then either install the gem locally:
gem install ./cloudmersive-image-recognition-api-client-2.1.0.gem
(for development, run gem install --dev ./cloudmersive-image-recognition-api-client-2.1.0.gem to install the development dependencies)
or publish the gem to a gem hosting service, e.g. RubyGems.
Finally add this to the Gemfile:
gem 'cloudmersive-image-recognition-api-client', '~> 2.1.0'
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
gem 'cloudmersive-image-recognition-api-client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
Include the Ruby code directly using -I as follows:
ruby -Ilib script.rb
Please follow the installation procedure and then run the following code:
# Load the gem
require 'cloudmersive-image-recognition-api-client'
# Setup authorization
CloudmersiveImageRecognitionApiClient.configure do |config|
# Configure API key authorization: Apikey
config.api_key['Apikey'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Apikey'] = 'Bearer'
end
api_instance = CloudmersiveImageRecognitionApiClient::AiImageDetectionApi.new
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.
begin
#Detect if an input image was generated using AI
result = api_instance.ai_image_detection_detect_file(image_file)
p result
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
puts "Exception when calling AiImageDetectionApi->ai_image_detection_detect_file: #{e}"
end
All URIs are relative to https://api.cloudmersive.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CloudmersiveImageRecognitionApiClient::AiImageDetectionApi | ai_image_detection_detect_file | POST /image/ai-detection/file | Detect if an input image was generated using AI |
| CloudmersiveImageRecognitionApiClient::ArtisticApi | artistic_painting | POST /image/artistic/painting/{style} | Transform an image into an artistic painting automatically |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_bmp | POST /image/convert/to/bmp | Convert input image to Bitmap BMP format |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_gif | POST /image/convert/to/gif | Convert input image to GIF format |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_jpg | POST /image/convert/to/jpg/{quality} | Convert input image to JPG, JPEG format at specific quality |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_jpg_default_quality | POST /image/convert/to/jpg | Convert input image to JPG, JPEG format |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_photoshop | POST /image/convert/to/psd | Convert input image to Photoshop PSD format |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_png | POST /image/convert/to/png | Convert input image to PNG format |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_tiff | POST /image/convert/to/tiff | Convert input image to TIFF format |
| CloudmersiveImageRecognitionApiClient::ConvertApi | convert_to_web_p | POST /image/convert/to/webp | Convert input image to WebP format |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_auto_orient | POST /image/edit/auto-orient/remove-exif | Normalizes image rotation and removes EXIF rotation data |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_composite_basic | POST /image/edit/composite/{location} | Composite two images together |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_composite_precise | POST /image/edit/composite/precise | Composite two images together precisely |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_contrast_adaptive | POST /image/edit/contrast/{gamma}/adaptive | Adaptively adjust the contrast of the image to be more appealing and easy to see |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_crop_circle | POST /image/edit/crop/circle/{left}/{top}/{radius} | Crop an image to an circular area |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_crop_rectangle | POST /image/edit/crop/rectangle/{left}/{top}/{width}/{height} | Crop an image to a rectangular area |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_draw_polygon | POST /image/edit/draw/polygon | Draw a polygon onto an image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_draw_rectangle | POST /image/edit/draw/rectangle | Draw a rectangle onto an image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_draw_text | POST /image/edit/draw/text | Draw text onto an image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_drop_shadow | POST /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity} | Add a customizeable drop shadow to an image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_invert | POST /image/edit/invert | Invert, negate the colors in the image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_remove_exif_data | POST /image/edit/remove-exif | Remove EXIF data from the image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_remove_transparency | POST /image/edit/remove-transparency | Remove transparency from the image |
| CloudmersiveImageRecognitionApiClient::EditApi | edit_rotate | POST /image/edit/rotate/{degrees}/angle | Rotate an image any number of degrees |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_compare | POST /image/face/compare-and-match | Compare and match faces |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_crop_first | POST /image/face/crop/first | Crop image to face with square crop |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_crop_first_round | POST /image/face/crop/first/round | Crop image to face with round crop |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_detect_age | POST /image/face/detect-age | Detect the age of people in an image |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_detect_gender | POST /image/face/detect-gender | Detect the gender of people in an image |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_locate | POST /image/face/locate | Detect and find faces in an image |
| CloudmersiveImageRecognitionApiClient::FaceApi | face_locate_with_landmarks | POST /image/face/locate-with-landmarks | Detect and find faces and landmarks eyes and nose and mouth in image |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_black_and_white | POST /image/filter/black-and-white | Convert image to black-and-white grayscale |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_despeckle | POST /image/filter/despeckle | Despeckle to remove point noise from the image |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_edge_detect | POST /image/filter/edge-detect/{radius} | Detect and highlight edges in an image |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_emboss | POST /image/filter/emboss/{radius}/{sigma} | Emboss an image |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_gaussian_blur | POST /image/filter/blur/guassian/{radius}/{sigma} | Perform a guassian blur on the input image |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_motion_blur | POST /image/filter/blur/motion/{radius}/{sigma}/{angle} | Perform a motion blur on the input image |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_posterize | POST /image/filter/posterize | Posterize the image by reducing distinct colors |
| CloudmersiveImageRecognitionApiClient::FilterApi | filter_swirl | POST /image/filter/swirl | Swirl distort the image |
| CloudmersiveImageRecognitionApiClient::InfoApi | info_get_dominant_color | POST /image/get-info/dominant-color | Returns the dominant colors of the image |
| CloudmersiveImageRecognitionApiClient::InfoApi | info_get_metadata | POST /image/get-info/metadata | Returns the image metadata including EXIF and resolution |
| CloudmersiveImageRecognitionApiClient::NsfwApi | nsfw_classify | POST /image/nsfw/classify | Not safe for work (NSFW) content classification for Images |
| CloudmersiveImageRecognitionApiClient::NsfwApi | nsfw_classify_advanced | POST /image/nsfw/classify/advanced | Advanced content moderation and not safe for work (NSFW) content classification for Images |
| CloudmersiveImageRecognitionApiClient::NsfwApi | nsfw_classify_document | POST /image/nsfw/classify/document | Not safe for work (NSFW) content classification for Documents |
| CloudmersiveImageRecognitionApiClient::NsfwApi | nsfw_classify_video | POST /image/nsfw/classify/video | Not safe for work (NSFW) content classification for Video |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_describe | POST /image/recognize/describe | Describe an image in natural language |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_detect_and_unskew_document | POST /image/recognize/detect-document/unskew | Detect and unskew a photo of a document |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_detect_text_fine | POST /image/recognize/detect-text/fine | Detect fine text in a photo of a document |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_detect_text_large | POST /image/recognize/detect-text/large | Detect large text in a photo |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_detect_vehicle_license_plates | POST /image/recognize/detect-vehicle-license-plates | Detect vehicle license plates in an image |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_find_symbol | POST /image/recognize/find/symbol | Find the location of a symbol in an image |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_similarity_compare | POST /image/recognize/similarity/compare | Compare two images for similarity |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_similarity_hash | POST /image/recognize/similarity/hash | Generate a perceptual image hash |
| CloudmersiveImageRecognitionApiClient::RecognizeApi | recognize_similarity_hash_distance | POST /image/recognize/similarity/hash/distance | Calculates the similarity between two perceptual image hashes |
| CloudmersiveImageRecognitionApiClient::ResizeApi | resize_post | POST /image/resize/preserveAspectRatio/{maxWidth}/{maxHeight} | Resize an image while preserving aspect ratio |
| CloudmersiveImageRecognitionApiClient::ResizeApi | resize_resize_ai_super_sampling | POST /image/resize/ai/target | Resize an image with AI super sampling |
| CloudmersiveImageRecognitionApiClient::ResizeApi | resize_resize_simple | POST /image/resize/target/{width}/{height} | Resize an image |
| CloudmersiveImageRecognitionApiClient::TextGenerationApi | text_generation_create_handwriting_png | POST /image/text/create/handwriting/png | Create an image of handwriting in PNG format |
FAQs
Unknown package
We found that cloudmersive-image-recognition-api-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.