
Detects layout regions (title, text, table, figure, formula, caption) on a page Image with DocLayout-YOLO and emits one detection per region as [BoundingBox] (with class id) or geometry-only [Rectangle<Double>], fixed at deploy by the consumer.
A scanned page is split into structural regions and each region box is cropped for region-restricted OCR downstream.
PDF pages are detected and the region boxes with layout class are published as JSON for a structure-export consumer.
[BoundingBox] arm carries the layout class id, while the [Rectangle<Double>] arm carries geometry only and no class.confidence drops regions scoring below it; lower it to recover faint regions at the cost of false positives. img_size is the square inference resolution and should suit the checkpoint (1024 for DocStructBench).Image short-circuits to an empty list without running the model.device set to GPU on a host without CUDA falls back to CPU, where per-page latency climbs sharply.Automated release