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 words with location

POST
/ocr/image/to/lines-with-location
Converts an uploaded image in common formats such as JPEG, PNG into lines/text with location information and other metdata 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/to/lines-with-location' \
--form 'imageFile=@""'
Response Response Example
{
    "Lines": [
        {
            "LineText": "string",
            "Words": [
                {
                    "BlockNumber": 0,
                    "ConfidenceLevel": 0,
                    "Height": 0,
                    "LineNumber": 0,
                    "PageNumber": 0,
                    "ParagraphNumber": 0,
                    "Width": 0,
                    "WordNumber": 0,
                    "WordText": "string",
                    "XLeft": 0,
                    "YTop": 0
                }
            ]
        }
    ],
    "Successful": true
}

Request

Header Params

Body Params multipart/form-data

Responses

🟢200OK
application/json
Body

Modified at 2023-08-15 09:12:04
Next
Convert a scanned image into words with location
Built with