DocLayout-YOLO is an efficient and robust document layout analysis method based on YOLO, optimized for detecting document elements like text, tables, figures, and titles. Current version 0.0.4, pre-release stage with irregular cadence.
pip install doclayout-yoloVerified import paths — ran on the pinned version, not inferred.
Detect document layout elements (e.g., text, table, figure) in an image. The function returns a list of detected objects with bounding boxes and labels.
Run offline: download model file manually and specify model path via `detect_layout(image, model_path='path/to/model.pt')`.
Use `pip install doclayout-yolo==0.0.4` and check release notes before upgrading.
Upgrade to >=0.0.2 and use `from doclayout_yolo import detect_layout`.