ocrapi
  1. Schemas
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
    • Convert a PDF into words with location
    • Converts an uploaded PDF file into text via Optical Character Recognition.
  • Preprocessing
    • Convert an image of text into a binarized (light and dark) view
    • Convert an image of text into a binary (light and dark) view with ML
    • Get the angle of the page / document / receipt
    • Detect and unrotate a document image
    • Detect and unrotate a document image (advanced)
    • Detect and unskew a photo of a document
  • Receipts
    • Convert a photo of a receipt into a CSV file containing structured information from the receipt
  • Schemas
    • Schemas
      • BusinessCardRecognitionResult
      • FieldResult
      • FormDefinitionTemplate
      • FormFieldDefinition
      • FormRecognitionResult
      • FormTableColumnDefinition
      • FormTableDefinition
      • GetPageAngleResult
      • ImageToLinesWithLocationResult
      • ImageToTextResponse
      • ImageToWordsWithLocationResult
      • OcrLineElement
      • OcrPageResult
      • OcrPageResultWithLinesWithLocation
      • OcrPageResultWithWordsWithLocation
      • OcrPhotoTextElement
      • OcrWordElement
      • PdfToLinesWithLocationResult
      • PdfToTextResponse
      • PdfToWordsWithLocationResult
      • PhotoToWordsWithLocationResult
      • Point
      • ReceiptLineItem
      • ReceiptRecognitionResult
      • TableCellResult
      • TableResult
      • TableRowResult
  1. Schemas

PdfToLinesWithLocationResult

Response from an OCR to lines with location operation. Includes the confience rating and converted text result, along with the locations of the lines in the pages.

{
    "OcrPages": [
        {
            "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
                        }
                    ]
                }
            ],
            "PageNumber": 0,
            "Successful": true
        }
    ],
    "Successful": true
}
Built with