Ocr Detect
POST
/ocr/detect
const url = 'https://example.com/ocr/detect';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"image":"example","model":"paddleocr-vl","variant":"example","min_confidence":0.5}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/ocr/detect \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "image": "example", "model": "paddleocr-vl", "variant": "example", "min_confidence": 0.5 }'Fast text detection triage — returns bounding boxes, no OCR recognition.
Runs classic PaddleOCR DBNet (~50 ms) to detect text regions in an image. Use this to triage multi-image documents before sending only text-bearing pages to expensive full OCR (2–30 s each).
Only supported by paddleocr-vl (the only deployment with the classic PaddleOCR detector loaded alongside the VL pipeline).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
OCRDetectResponse
object
has_text
required
Has Text
Whether any text regions were detected
boolean
num_regions
required
Num Regions
Number of detected text regions
integer
regions
Regions
Detected text regions with bounding boxes
Array<object>
DetectedRegionobject
bbox
required
Bbox
Bounding box [x, y, width, height] in pixels
Array<number>
confidence
required
Confidence
Detection confidence score (0–1)
number
processing_time_ms
required
Processing Time Ms
End-to-end processing time in milliseconds
integer
Examplegenerated
{ "has_text": true, "num_regions": 1, "regions": [ { "bbox": [ 1 ], "confidence": 1 } ], "processing_time_ms": 1}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}