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

Recognize a photo of a form, extract key fields using stored templates

POST
/ocr/photo/recognize/form/advanced
Analyzes a photograph of a form as input, and outputs key business fields and information. Customzie data to be extracted by defining fields for the form. Uses template definitions stored in Cloudmersive Configuration; to configure stored templates in a configuration bucket, log into Cloudmersive Management Portal and navigate to Settings > API Configuration > Create Bucket. 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/recognize/form/advanced' \
--form 'imageFile=@""'
Response Response Example
{
    "BestMatchFormSettingName": "string",
    "Diagnostics": [
        "string"
    ],
    "FieldValueExtractionResult": [
        {
            "FieldValues": [
                {
                    "BoundingPoints": [
                        {
                            "X": 0,
                            "Y": 0
                        }
                    ],
                    "ConfidenceLevel": 0,
                    "Height": 0,
                    "Text": "string",
                    "Width": 0,
                    "XLeft": 0,
                    "YTop": 0
                }
            ],
            "TargetField": {
                "AllowNumericDigits": true,
                "AlternateAnchor": "string",
                "AnchorMode": "string",
                "BottomAnchor": "string",
                "DataType": "string",
                "FieldID": "string",
                "HorizontalAlignmentType": "string",
                "Ignore": [
                    "string"
                ],
                "LeftAnchor": "string",
                "MinimumCharacterCount": 0,
                "Options": "string",
                "TargetDigitCount": 0,
                "TargetFieldHeight_Relative": 0,
                "TargetFieldHorizontalAdjustment": 0,
                "TargetFieldVerticalAdjustment": 0,
                "TargetFieldWidth_Relative": 0,
                "TopAnchor": "string",
                "VerticalAlignmentType": "string"
            }
        }
    ],
    "Successful": true,
    "TableValueExtractionResults": [
        {
            "TableDefinition": {
                "ColumnDefinitions": [
                    {
                        "AllowNumericDigits": true,
                        "AnchorMode": "string",
                        "ColumnID": "string",
                        "DataType": "string",
                        "MinimumCharacterCount": 0,
                        "TopAnchor": "string"
                    }
                ],
                "TableID": "string",
                "TargetRowHeight_Relative": 0,
                "TargetTableHeight_Relative": 0
            },
            "TableRowsResult": [
                {
                    "TableRowCellsResult": [
                        {
                            "CellValues": [
                                {
                                    "BoundingPoints": [
                                        {
                                            "X": 0,
                                            "Y": 0
                                        }
                                    ],
                                    "ConfidenceLevel": 0,
                                    "Height": 0,
                                    "Text": "string",
                                    "Width": 0,
                                    "XLeft": 0,
                                    "YTop": 0
                                }
                            ],
                            "ColumnID": "string"
                        }
                    ]
                }
            ]
        }
    ]
}

Request

Header Params

Body Params multipart/form-data

Responses

🟢200OK
application/json
Body

Modified at 2023-08-15 09:12:04
Previous
Recognize a photo of a form, extract key fields and business information
Next
Recognize a photo of a receipt, extract key business information
Built with