Converts a PDF 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.
643 matches
18 actions
ocrapi
18 actions
- Convert a PDF into text lines with locationPOSTv1.0.0
- Convert a PDF into words with locationPOSTv1.0.0
- Convert a photo of a document into textPOSTv1.0.0
- Convert a photo of a document or receipt into words with locationPOSTv1.0.0
- Convert a photo of a receipt into a CSV file containing structured information from the receiptPOSTv1.0.0
- Convert a scanned image into textPOSTv1.0.0
- Convert a scanned image into words with locationPOSTv1.0.0
- Convert a scanned image into words with locationPOSTv1.0.0
- Convert an image of text into a binarized (light and dark) viewPOSTv1.0.0
- Convert an image of text into a binary (light and dark) view with MLPOSTv1.0.0
- Detect and unrotate a document imagePOSTv1.0.0
- Detect and unrotate a document image (advanced)POSTv1.0.0
- Detect and unskew a photo of a documentPOSTv1.0.0
- Get the angle of the page / document / receiptPOSTv1.0.0
- Recognize a photo of a business card, extract key business informationPOSTv1.0.0
- Recognize a photo of a form, extract key fields and business informationPOSTv1.0.0
- Recognize a photo of a form, extract key fields using stored templatesPOSTv1.0.0
- Recognize a photo of a receipt, extract key business informationPOSTv1.0.0
Other/ocrapi
Convert a PDF into text lines with location
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
{
"type": "object",
"properties": {
"language": {
"type": "string"
},
"preprocessing": {
"type": "string"
}
},
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
{
"type": "object",
"description": "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.",
"properties": {
"OcrPages": {
"type": "array",
"description": "OCR results for each page",
"items": {
"type": "object",
"description": "OCR results of a page, including lines of text and their location",
"properties": {
"Lines": {
"type": "array",
"description": "Word elements in the image",
"items": {
"type": "object",
"description": "A contiguous line of text in an OCR document",
"properties": {
"LineText": {
"type": "string",
"description": "Text of the line"
},
"Words": {
"type": "array",
"description": "Word objects in the line",
"items": {
"type": "object",
"description": "A single word in an OCR document",
"properties": {
"BlockNumber": {
"type": "integer",
"format": "int32",
"description": "Index of the containing block"
},
"ConfidenceLevel": {
"type": "number",
"format": "double",
"description": "Confidence level of the machine learning result; possible values are 0.0 (lowest accuracy) - 1.0 (highest accuracy)"
},
"Height": {
"type": "integer",
"format": "int32",
"description": "Height of the word in pixels"
},
"LineNumber": {
"type": "integer",
"format": "int32",
"description": "Line number of the word"
},
"PageNumber": {
"type": "integer",
"format": "int32",
"description": "Index of the containing page"
},
"ParagraphNumber": {
"type": "integer",
"format": "int32",
"description": "Index of the containing paragraph"
},
"Width": {
"type": "integer",
"format": "int32",
"description": "Width of the word in pixels"
},
"WordNumber": {
"type": "integer",
"format": "int32",
"description": "Index of the word in the line"
},
"WordText": {
"type": "string",
"description": "Text of the word"
},
"XLeft": {
"type": "integer",
"format": "int32",
"description": "X location of the left edge of the word in pixels"
},
"YTop": {
"type": "integer",
"format": "int32",
"description": "Y location of the top edge of the word in pixels"
}
}
}
}
}
}
},
"PageNumber": {
"type": "integer",
"format": "int32",
"description": "Page number of the page that was OCR-ed, starting with 1 for the first page in the PDF file"
},
"Successful": {
"type": "boolean",
"description": "True if successful, false otherwise"
}
}
}
},
"Successful": {
"type": "boolean",
"description": "True if successful, false otherwise"
}
}
}