Detected Objects to OCR
Overview
Detected Objects to OCR node merges nearby rectangular detections into text-like regions and returns OCR-style contours, boxes, labels, and confidence.
Use this node after a character or text-fragment detector when you want reading-order merge before further processing. For full end-to-end text recognition, see OCR.
Input
Input Image
image requiredThe image frame associated with the detections. Connect this to a camera or upstream image output.
Detected Objects
array requiredList of detected objects to convert into OCR text regions. Each object must include Bounding Box (bbox: [x, y, width, height]) and Label.
Merge Mode
string requiredHow adjacent objects are merged into text regions.
Values:
TEXT_HORIZONTAL(default) — horizontal text mergeTEXT_VERTICAL— vertical text mergeCUSTOM— custom thresholds and merge direction
When Merge Mode is CUSTOM, the following fields appear:
Merge Threshold
arrayThreshold relative to object size. Adjacent objects within the threshold are merged.
- Horizontal (default
1.2, range0–10) - Vertical (default
1, range0–10)
Label Merge Direction
stringOrder used to merge labels based on object centers.
Values:
L_TO_R(default) — left to rightR_TO_L— right to leftT_TO_B— top to bottomB_TO_T— bottom to top
Output
Overlay Image
imageFrame showing merged OCR-style regions.
Detected Count
integerNumber of merged text regions.
Detected Texts
arrayMerged text regions. Each entry contains:
- Points (
contour) — region polygon points[x, y] - Bounding Box (
bbox):[x, y, width, height] - Label — merged label text
- Confidence — weighted average of the merged objects