Cloudmersive Preprocessing API

The Preprocessing API from Cloudmersive — 6 operation(s) for preprocessing.

Operations 6

POST /ocr/preprocessing/image/binarize Convert an image of text into a binarized (light and dark) view #
POST /ocr/preprocessing/image/binarize/advanced Convert an image of text into a binary (light and dark) view with ML #
POST /ocr/preprocessing/image/get-page-angle Get the angle of the page / document / receipt #
POST /ocr/preprocessing/image/unrotate Detect and unrotate a document image #
POST /ocr/preprocessing/image/unrotate/advanced Detect and unrotate a document image (advanced) #
POST /ocr/preprocessing/image/unskew Detect and unskew a photo of a document #

Documentation

📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Virus%20Scan%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Security%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Spam%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Phishing%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=CDR%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Fraud%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=DLP%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Convert%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Barcode%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Image%20Recognition%20and%20Processing%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Natural%20Language%20Processing%20(NLP)%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Optical%20Character%20Recognition%20(OCR)%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Speech%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Validate%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Video%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Currency%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Config%20API
📖
Documentation
https://api-console.cloudmersive.com/swagger/index.html?urls.primaryName=Data%20Integration%20API

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cloudmersive:cloudmersive-preprocessing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cloudmersive-preprocessing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: ocrapi Preprocessing API
  description: The powerful Optical Character Recognition (OCR) APIs let you convert scanned images of pages into recognized text.
servers:
- url: http://localhost
tags:
- name: Preprocessing
paths:
  /ocr/preprocessing/image/binarize:
    post:
      tags:
      - Preprocessing
      summary: Convert an image of text into a binarized (light and dark) view
      description: Perform an adaptive binarization algorithm on the input image to prepare it for further OCR operations.
      operationId: Preprocessing_Binarize
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                format: byte
                type: string
            text/json:
              schema:
                format: byte
                type: string
            application/xml:
              schema:
                format: byte
                type: string
            text/xml:
              schema:
                format: byte
                type: string
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /ocr/preprocessing/image/binarize/advanced:
    post:
      tags:
      - Preprocessing
      summary: Convert an image of text into a binary (light and dark) view with ML
      description: Perform an advanced adaptive, Deep Learning-based binarization algorithm on the input image to prepare it for further OCR operations. Provides enhanced accuracy than adaptive binarization. Image will be upsampled to 300 DPI if it has a DPI below 300.
      operationId: Preprocessing_BinarizeAdvanced
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                format: byte
                type: string
            text/json:
              schema:
                format: byte
                type: string
            application/xml:
              schema:
                format: byte
                type: string
            text/xml:
              schema:
                format: byte
                type: string
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /ocr/preprocessing/image/get-page-angle:
    post:
      tags:
      - Preprocessing
      summary: Get the angle of the page / document / receipt
      description: Analyzes a photo or image of a document and identifies the rotation angle of the page.
      operationId: Preprocessing_GetPageAngle
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetPageAngleResult'
            text/json:
              schema:
                $ref: '#/components/schemas/GetPageAngleResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/GetPageAngleResult'
            text/xml:
              schema:
                $ref: '#/components/schemas/GetPageAngleResult'
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /ocr/preprocessing/image/unrotate:
    post:
      tags:
      - Preprocessing
      summary: Detect and unrotate a document image
      description: Detect and unrotate an image of a document (e.g. that was scanned at an angle). Great for document scanning applications; once unskewed, this image is perfect for converting to PDF using the Convert API or optical character recognition using the OCR API.
      operationId: Preprocessing_Unrotate
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                format: byte
                type: string
            text/json:
              schema:
                format: byte
                type: string
            application/xml:
              schema:
                format: byte
                type: string
            text/xml:
              schema:
                format: byte
                type: string
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /ocr/preprocessing/image/unrotate/advanced:
    post:
      tags:
      - Preprocessing
      summary: Detect and unrotate a document image (advanced)
      description: Detect and unrotate an image of a document (e.g. that was scanned at an angle) using deep learning. Great for document scanning applications; once unskewed, this image is perfect for converting to PDF using the Convert API or optical character recognition using the OCR API.
      operationId: Preprocessing_UnrotateAdvanced
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                format: byte
                type: string
            text/json:
              schema:
                format: byte
                type: string
            application/xml:
              schema:
                format: byte
                type: string
            text/xml:
              schema:
                format: byte
                type: string
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
  /ocr/preprocessing/image/unskew:
    post:
      tags:
      - Preprocessing
      summary: Detect and unskew a photo of a document
      description: Detect and unskew a photo of a document (e.g. taken on a cell phone) into a perfectly square image. Great for document scanning applications; once unskewed, this image is perfect for converting to PDF using the Convert API or optical character recognition using the OCR API.
      operationId: Preprocessing_Unskew
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                format: byte
                type: string
            text/json:
              schema:
                format: byte
                type: string
            application/xml:
              schema:
                format: byte
                type: string
            text/xml:
              schema:
                format: byte
                type: string
      security:
      - Apikey: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                imageFile:
                  type: string
                  description: Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.
                  format: binary
              required:
              - imageFile
components:
  schemas:
    GetPageAngleResult:
      description: Result of performing a get-page-angle operation
      type: object
      properties:
        Successful:
          description: True if the operation was successful, false otherwise
          type: boolean
        Angle:
          format: double
          description: Angle of the page in radians; 0 represents perfectly horizontal
          type: number
  securitySchemes:
    Apikey:
      type: apiKey
      description: API Key Authentication
      name: Apikey
      in: header
x-provenance:
  method: harvested
  publisher: Cloudmersive
  source: https://api.cloudmersive.com/ocr/docs/v1/swagger
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)