Skip to main content

imageapi

Project description

cloudmersive_image_api_client

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

This Python package provides a native API client for Cloudmersive Image Recognition and Processing

  • API version: v1
  • Package version: 2.0.8
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import cloudmersive_image_api_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import cloudmersive_image_api_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import cloudmersive_image_api_client
from cloudmersive_image_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_image_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_image_api_client.ArtisticApi(cloudmersive_image_api_client.ApiClient(configuration))
style = 'style_example' # str | 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 = '/path/to/file.txt' # file | Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.

try:
    # Transform an image into an artistic painting automatically
    api_response = api_instance.artistic_painting(style, image_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ArtisticApi->artistic_painting: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
ArtisticApi artistic_painting POST /image/artistic/painting/{style} Transform an image into an artistic painting automatically
EditApi edit_auto_orient POST /image/edit/auto-orient/remove-exif Normalizes image rotation and removes EXIF rotation data
EditApi edit_composite_basic POST /image/edit/composite/{location} Composite two images together
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
EditApi edit_draw_polygon POST /image/edit/draw/polygon Draw a polygon onto an image
EditApi edit_draw_rectangle POST /image/edit/draw/rectangle Draw a rectangle onto an image
EditApi edit_draw_text POST /image/edit/draw/text Draw text onto an image
EditApi edit_rotate POST /image/edit/rotate/{degrees}/angle Rotate an image any number of degrees
FaceApi face_compare POST /image/face/compare-and-match Compare and match faces
FaceApi face_crop_first POST /image/face/crop/first Crop image to face (square)
FaceApi face_crop_first_round POST /image/face/crop/first/round Crop image to face (round)
FaceApi face_detect_age POST /image/face/detect-age Detect the age of people in an image
FaceApi face_detect_gender POST /image/face/detect-gender Detect the gender of people in an image
FaceApi face_locate POST /image/face/locate Find faces in an image
FaceApi face_locate_with_landmarks POST /image/face/locate-with-landmarks Find faces and face landmarks (eyes, eye brows, nose, mouth) in an image
NsfwApi nsfw_classify POST /image/nsfw/classify Not safe for work (NSFW) racy content classification
RecognizeApi recognize_describe POST /image/recognize/describe Describe an image in natural language
RecognizeApi recognize_detect_and_unskew_document POST /image/recognize/detect-document/unskew Detect and unskew a photo of a document
RecognizeApi recognize_detect_objects POST /image/recognize/detect-objects Detect objects, including types and locations, in an image
RecognizeApi recognize_detect_people POST /image/recognize/detect-people Detect people, including locations, in an image
RecognizeApi recognize_detect_text_fine POST /image/recognize/detect-text/fine Detect fine text in a photo of a document
RecognizeApi recognize_detect_text_large POST /image/recognize/detect-text/large Detect large text in a photo
RecognizeApi recognize_detect_vehicle_license_plates POST /image/recognize/detect-vehicle-license-plates Detect vehicle license plates in an image
ResizeApi resize_post POST /image/resize/preserveAspectRatio/{maxWidth}/{maxHeight} Resize an image with parameters

Documentation For Models

Documentation For Authorization

Apikey

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

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cloudmersive_image_api_client-2.0.8.tar.gz (39.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page