vibe.review.parsing.layout.yolo_layout¶
YOLO11 Document Layout inference helpers for layout fallback.
This module provides inference wrappers for YOLO11 Document Layout that return layout elements in page coordinate space (points).
LayoutElement ¶
Single YOLO layout detection result.
from_dict ¶
from_dict(data: dict[str, Any]) -> LayoutElement
Reconstruct layout element from dictionary.
LayoutPageResult ¶
YOLO layout detections for a single page.
from_dict ¶
from_dict(data: dict[str, Any]) -> LayoutPageResult
Reconstruct page layout results from dictionary.
YoloLayoutConfig ¶
Configuration for YOLO11 Document Layout inference.
YoloLayoutDetector ¶
YOLO11 Document Layout inference with cached page results.
detect_page ¶
detect_page(pdf_path: Path, page_info: PageInfo) -> LayoutPageResult | None
Run layout detection on a single page, returning result or None.
detect_pages ¶
detect_pages(pdf_path: Path, page_infos: list[PageInfo]) -> dict[int, LayoutPageResult]
Run layout detection on multiple pages, returning dict by page number.
create_detector ¶
create_detector(config: YoloLayoutConfig | None = None, cache_dir: Path | None = None) -> YoloLayoutDetector
Create a YOLO11 Document Layout detector.
| Parameters: |
|
|---|
| Returns: |
|
|---|