视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
layout-parser【文档与办公】Routes LayoutParser workflows for document layout objects, document I/O, visualization, OCR, and layout-detection model wrappers.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
LayoutParser is a document-image analysis toolkit for layout objects, page/token loading, OCR parsing, visualization, and layout-detection model wrappers.
Use this root skill as a router. Read the owning sub-skill for detailed API notes, workflow steps, and troubleshooting.
Base install:
pip install layoutparser
OCR support:
pip install "layoutparser[ocr]"
Layout-model support:
pip install "layoutparser[layoutmodels]"
pip install "layoutparser[effdet]"
pip install "layoutparser[paddledetection]"
Detectron2 still uses its own backend install path:
pip install layoutparser torchvision
pip install "detectron2@git+https://github.com/facebookresearch/detectron2.git@v0.5#egg=detectron2"
For local inspection from a checkout, prefer an isolated environment and an editable install in that private environment rather than mutating the source repository.
Minimal import checks:
python -c "import layoutparser as lp; print(lp.__version__)"
python -c "from layoutparser import Layout, Rectangle; print(Layout([Rectangle(0, 0, 10, 10)]))"
If backend availability is uncertain, run the bundled inspector:
python scripts/inspect_backends.py
For a local smoke check that stays inside synthetic data, use:
python scripts/smoke_layoutparser_core.py
layout-objectsRead this for:
Interval, Rectangle, Quadrilateral, TextBlock, and Layoutunion, intersect, relative_to, condition_on, is_inLayout sorting, filtering, serialization, and line/category groupinglayout-ioRead this for:
load_json, load_dict, load_csv, load_dataframe, load_pdfblock_type, and layout export/import issuesvisualizationRead this for:
draw_box and draw_textlayout-modelsRead this for:
AutoLayoutModelDetectron2LayoutModel, EfficientDetLayoutModel, and PaddleDetectionLayoutModellp:// config parsing, model catalogs, label maps, and backend selectionocrRead this for:
TesseractAgent, TesseractFeatureTypeGCVAgent, GCVFeatureTypereferences/api-reference.md for the top-level public API map.references/workflows.md for cross-sub-skill document workflows.references/repo-provenance.md before checking staleness or refreshing.references/repo-routing-metadata.json only when verifying managed
repo-skills-router placement.Read references/troubleshooting.md when you see any of these:
pkg_resources / setuptools issues around google-cloud-vision==1tesseract or credential problemspdf2image / poppler problemsInvalidShapeError, NotSupportedShapeError, or layout validation errorslp:// parsing failures