Asynchronous - OCR Documentation API
Create inference by uploading file
POSThttps://longrun-api.visai.ai/v1/job/ocrdoc/predict/files
Header
X-API-Key string required
Your API key
multipart/form-data
form-data body
Request Body
- files Filerequired
Image or document raw files in a form of multi-part form data using the key name files.
optionalSend with the form of multi-part form data
box_threshold float
Default value: 0.4
Adjusting the box_threshold value, ranged between 0 to 1, affects the detection of text in documents. A lower value allows the model to detect more bounding boxes, while a higher value reduces detection sensitivity. It is recommended to start with the default value of 0.4 and gradually increment the value by 0.1 until achieving the desired result for the document being used. (Number between 0 - 1)
Responses
- 200
application/json
Schema
Example (from schema)
object
job_id string
ID of the inference job
{
"job_id": "<job-id>"
}
Loading...