Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudmersive-image-recognition-api-client

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudmersive-image-recognition-api-client

  • 2.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

cloudmersive-image-recognition-api-client

CloudmersiveImageRecognitionApiClient - the Ruby gem for the imageapi

Image Recognition and Processing APIs let you use Machine Learning to recognize and process images, and also perform useful image modification operations.

This SDK is automatically generated by the Swagger Codegen project:

  • API version: v1
  • Package version: 2.0.5
  • Build package: io.swagger.codegen.languages.RubyClientCodegen

Installation

Build a gem

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.0.5.gem

(for development, run gem install --dev ./cloudmersive-image-recognition-api-client-2.0.5.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.0.5'

Install from Git

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

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

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::ArtisticApi.new

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\".

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
  #Transform an image into an artistic painting automatically
  result = api_instance.artistic_painting(style, image_file)
  p result
rescue CloudmersiveImageRecognitionApiClient::ApiError => e
  puts "Exception when calling ArtisticApi->artistic_painting: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.cloudmersive.com

ClassMethodHTTP requestDescription
CloudmersiveImageRecognitionApiClient::ArtisticApiartistic_paintingPOST /image/artistic/painting/{style}Transform an image into an artistic painting automatically
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_bmpPOST /image/convert/to/bmpConvert input image to Bitmap BMP format
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_gifPOST /image/convert/to/gifConvert input image to GIF format
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_jpgPOST /image/convert/to/jpg/{quality}Convert input image to JPG, JPEG format
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_photoshopPOST /image/convert/to/psdConvert input image to Photoshop PSD format
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_pngPOST /image/convert/to/pngConvert input image to PNG format
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_tiffPOST /image/convert/to/tiffConvert input image to TIFF format
CloudmersiveImageRecognitionApiClient::ConvertApiconvert_to_web_pPOST /image/convert/to/webpConvert input image to WebP format
CloudmersiveImageRecognitionApiClient::EditApiedit_auto_orientPOST /image/edit/auto-orient/remove-exifNormalizes image rotation and removes EXIF rotation data
CloudmersiveImageRecognitionApiClient::EditApiedit_composite_basicPOST /image/edit/composite/{location}Composite two images together
CloudmersiveImageRecognitionApiClient::EditApiedit_composite_precisePOST /image/edit/composite/preciseComposite two images together precisely
CloudmersiveImageRecognitionApiClient::EditApiedit_contrast_adaptivePOST /image/edit/contrast/{gamma}/adaptiveAdaptively adjust the contrast of the image to be more appealing and easy to see
CloudmersiveImageRecognitionApiClient::EditApiedit_crop_circlePOST /image/edit/crop/circle/{left}/{top}/{radius}Crop an image to an circular area
CloudmersiveImageRecognitionApiClient::EditApiedit_crop_rectanglePOST /image/edit/crop/rectangle/{left}/{top}/{width}/{height}Crop an image to a rectangular area
CloudmersiveImageRecognitionApiClient::EditApiedit_draw_polygonPOST /image/edit/draw/polygonDraw a polygon onto an image
CloudmersiveImageRecognitionApiClient::EditApiedit_draw_rectanglePOST /image/edit/draw/rectangleDraw a rectangle onto an image
CloudmersiveImageRecognitionApiClient::EditApiedit_draw_textPOST /image/edit/draw/textDraw text onto an image
CloudmersiveImageRecognitionApiClient::EditApiedit_drop_shadowPOST /image/edit/drop-shadow/{X}/{Y}/{sigma}/{opacity}Add a customizeable drop shadow to an image
CloudmersiveImageRecognitionApiClient::EditApiedit_invertPOST /image/edit/invertInvert, negate the colors in the image
CloudmersiveImageRecognitionApiClient::EditApiedit_remove_exif_dataPOST /image/edit/remove-exifRemove EXIF data from the image
CloudmersiveImageRecognitionApiClient::EditApiedit_remove_transparencyPOST /image/edit/remove-transparencyRemove transparency from the image
CloudmersiveImageRecognitionApiClient::EditApiedit_rotatePOST /image/edit/rotate/{degrees}/angleRotate an image any number of degrees
CloudmersiveImageRecognitionApiClient::FaceApiface_comparePOST /image/face/compare-and-matchCompare and match faces
CloudmersiveImageRecognitionApiClient::FaceApiface_crop_firstPOST /image/face/crop/firstCrop image to face with square crop
CloudmersiveImageRecognitionApiClient::FaceApiface_crop_first_roundPOST /image/face/crop/first/roundCrop image to face with round crop
CloudmersiveImageRecognitionApiClient::FaceApiface_detect_agePOST /image/face/detect-ageDetect the age of people in an image
CloudmersiveImageRecognitionApiClient::FaceApiface_detect_genderPOST /image/face/detect-genderDetect the gender of people in an image
CloudmersiveImageRecognitionApiClient::FaceApiface_locatePOST /image/face/locateDetect and find faces in an image
CloudmersiveImageRecognitionApiClient::FaceApiface_locate_with_landmarksPOST /image/face/locate-with-landmarksDetect and find faces and landmarks eyes and nose and mouth in image
CloudmersiveImageRecognitionApiClient::FilterApifilter_black_and_whitePOST /image/filter/black-and-whiteConvert image to black-and-white grayscale
CloudmersiveImageRecognitionApiClient::FilterApifilter_despecklePOST /image/filter/despeckleDespeckle to remove point noise from the image
CloudmersiveImageRecognitionApiClient::FilterApifilter_edge_detectPOST /image/filter/edge-detect/{radius}Detect and highlight edges in an image
CloudmersiveImageRecognitionApiClient::FilterApifilter_embossPOST /image/filter/emboss/{radius}/{sigma}Emboss an image
CloudmersiveImageRecognitionApiClient::FilterApifilter_gaussian_blurPOST /image/filter/blur/guassian/{radius}/{sigma}Perform a guassian blur on the input image
CloudmersiveImageRecognitionApiClient::FilterApifilter_motion_blurPOST /image/filter/blur/motion/{radius}/{sigma}/{angle}Perform a motion blur on the input image
CloudmersiveImageRecognitionApiClient::FilterApifilter_posterizePOST /image/filter/posterizePosterize the image by reducing distinct colors
CloudmersiveImageRecognitionApiClient::FilterApifilter_swirlPOST /image/filter/swirlSwirl distort the image
CloudmersiveImageRecognitionApiClient::InfoApiinfo_get_dominant_colorPOST /image/get-info/dominant-colorReturns the dominant colors of the image
CloudmersiveImageRecognitionApiClient::InfoApiinfo_get_metadataPOST /image/get-info/metadataReturns the image metadata including EXIF and resolution
CloudmersiveImageRecognitionApiClient::NsfwApinsfw_classifyPOST /image/nsfw/classifyNot safe for work NSFW racy content classification
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_describePOST /image/recognize/describeDescribe an image in natural language
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_detect_and_unskew_documentPOST /image/recognize/detect-document/unskewDetect and unskew a photo of a document
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_detect_objectsPOST /image/recognize/detect-objectsDetect objects including types and locations in an image
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_detect_peoplePOST /image/recognize/detect-peopleDetect people including locations in an image
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_detect_text_finePOST /image/recognize/detect-text/fineDetect fine text in a photo of a document
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_detect_text_largePOST /image/recognize/detect-text/largeDetect large text in a photo
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_detect_vehicle_license_platesPOST /image/recognize/detect-vehicle-license-platesDetect vehicle license plates in an image
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_find_symbolPOST /image/recognize/find/symbolFind the location of a symbol in an image
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_similarity_comparePOST /image/recognize/similarity/compareCompare two images for similarity
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_similarity_hashPOST /image/recognize/similarity/hashGenerate a perceptual image hash
CloudmersiveImageRecognitionApiClient::RecognizeApirecognize_similarity_hash_distancePOST /image/recognize/similarity/hash/distanceCalculates the similarity between two perceptual image hashes
CloudmersiveImageRecognitionApiClient::ResizeApiresize_postPOST /image/resize/preserveAspectRatio/{maxWidth}/{maxHeight}Resize an image while preserving aspect ratio
CloudmersiveImageRecognitionApiClient::ResizeApiresize_resize_simplePOST /image/resize/target/{width}/{height}Resize an image
CloudmersiveImageRecognitionApiClient::TextGenerationApitext_generation_create_handwriting_pngPOST /image/text/create/handwriting/pngCreate an image of handwriting in PNG format

Documentation for Models

Documentation for Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

FAQs

Package last updated on 03 Apr 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc