ocrapi
  1. ImageOcr
ocrapi
  • ImageOcr
    • Convert a scanned image into words with location
      POST
    • Convert a scanned image into words with location
      POST
    • Convert a scanned image into text
      POST
    • Recognize a photo of a business card, extract key business information
      POST
    • Recognize a photo of a form, extract key fields and business information
      POST
    • Recognize a photo of a form, extract key fields using stored templates
      POST
    • Recognize a photo of a receipt, extract key business information
      POST
    • Convert a photo of a document or receipt into words with location
      POST
    • Convert a photo of a document into text
      POST
  • PdfOcr
    • Convert a PDF into text lines with location
      POST
    • Convert a PDF into words with location
      POST
    • Converts an uploaded PDF file into text via Optical Character Recognition.
      POST
  • Preprocessing
    • Convert an image of text into a binarized (light and dark) view
      POST
    • Convert an image of text into a binary (light and dark) view with ML
      POST
    • Get the angle of the page / document / receipt
      POST
    • Detect and unrotate a document image
      POST
    • Detect and unrotate a document image (advanced)
      POST
    • Detect and unskew a photo of a document
      POST
  • Receipts
    • Convert a photo of a receipt into a CSV file containing structured information from the receipt
      POST
  1. ImageOcr

Convert a scanned image into text

POST
/ocr/image/toText
Converts an uploaded image in common formats such as JPEG, PNG into text via Optical Character Recognition. This API is intended to be run on scanned documents. If you want to OCR photos (e.g. taken with a smart phone camera), be sure to use the photo/toText API instead, as it is designed to unskew the image first. Note: for free tier API keys, it is required to add a credit card to your account for security reasons, to use the free tier key with this API.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.cloudmersive.com/ocr/image/toText' \
--form 'imageFile=@""'
Response Response Example
{
    "MeanConfidenceLevel": 0,
    "TextResult": "string"
}

Request

Header Params

Body Params multipart/form-data

Responses

🟢200OK
application/json
Body

Modified at 2023-08-15 09:12:04
Previous
Convert a scanned image into words with location
Next
Recognize a photo of a business card, extract key business information
Built with