Skip to main content
POST
/
recognition
Perform text recognition
curl --request POST \
  --url https://ocr-api.trace.so/recognition/ \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=<string>' \
  --form files.items='@example-file'
[
  {
    "name": "<string>",
    "value": "<string>",
    "confidence": 123
  }
]

Query Parameters

recognition_model
string
default:crnn_vgg16_bn

Recognition architecture to use. See the models page for available options.

recognition_batch_size
integer
default:128

Number of text crops processed in parallel during recognition. Decrease if you run into memory issues on large batches.

Body

multipart/form-data
files
file[]

One or more files to process. Accepts JPEG, PNG, and PDF formats.

Response

Successful Response

name
string
required
Example:

"example.jpg"

value
string
required
Example:

"Hello"

confidence
number
required
Example:

0.99