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 photo of a document into text

POST
/ocr/photo/toText
Converts an uploaded photo of a document in common formats such as JPEG, PNG into text via Optical Character Recognition. This API is intended to be run on photos of documents, e.g. taken with a smartphone and supports cases where other content, such as a desk, are in the frame and the camera is crooked. If you want to OCR a scanned image, use the image/toText API call instead as it is designed for scanned images. 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/photo/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 photo of a document or receipt into words with location
Next
Convert a PDF into text lines with location
Built with