
Detects layout regions on each page Image with PP-DocLayout (PaddleX) and emits one detection per region as geometry-only [Rectangle<Double>] or [BoundingBox] carrying the model's 23-category layout class id and confidence, fixed at deploy by the consumer.
A page read from a file is scanned for layout regions and the region boxes are published as JSON for a structure-aware consumer.
Each detected region is cropped from the page for region-restricted OCR downstream.
A live webcam page stream is scanned and the region boxes are published as JSON.
use_gpu set true selects the first GPU at startup and requires an actual GPU; there is no silent CPU fallback for this knob.[BoundingBox] arm carries the model's own layout label id from the 23-category map, while the [Rectangle<Double>] arm carries no class.paddlex_models and paddlex_revision are cache-seeding hints; the list must contain layout_model_name, otherwise the missing model directory is downloaded at first run.threshold drives recall directly; lower values keep more regions but admit noise. layout_nms, layout_unclip_ratio, and layout_merge_bboxes_mode shape overlapping and nested detections.Automated release