Converts a photo of a document or receipt in common formats such as JPEG, PNG into words/text with location information and other metdata via Optical Character Recognition. This API is intended to be run on photographs of documents. If you want to OCR scanned documents (e.g. taken with a scanner), be sure to use the image/toText API instead, as it is designed for that use case. 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.
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 photo of a document or receipt into words with location
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
{
"type": "object",
"properties": {
"diagnostics": {
"type": "string"
},
"language": {
"type": "string"
},
"preprocessing": {
"type": "string"
},
"recognitionMode": {
"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
{
"type": "object",
"description": "Result of an photo to words-with-location OCR operation",
"properties": {
"DiagnosticImage": {
"type": "string",
"format": "byte",
"description": "Typically null. To analyze OCR performance, enable diagnostic mode by adding the HTTP header \"DiagnosticMode\" with the value \"true\". When this is true, a diagnostic image showing the details of the OCR result will be set in PNG format into DiagnosticImage."
},
"Successful": {
"type": "boolean",
"description": "True if successful, false otherwise"
},
"TextElements": {
"type": "array",
"description": "Word elements in the image",
"items": {
"type": "object",
"description": "A single text in an OCR document",
"properties": {
"BoundingPoints": {
"type": "array",
"description": "Points that form the bounding polygon around the text",
"items": {
"type": "object",
"description": "Point location in 2D in an image, where 0, 0 represents the top/left corner of the image",
"properties": {
"X": {
"type": "integer",
"format": "int32",
"description": "X location in 2D in the image, where 0 represents the left edge of the image"
},
"Y": {
"type": "integer",
"format": "int32",
"description": "Y location in 2D in the image, where 0 represents the top edge of the image"
}
}
}
},
"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"
},
"Text": {
"type": "string",
"description": "Text of the word"
},
"Width": {
"type": "integer",
"format": "int32",
"description": "Width of the word in pixels"
},
"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"
}
}
}
}
}
}