视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
document-io-and-exports【文档与办公】Load docTR inputs and interpret or export Document, Page, KIE, table, and reading-order outputs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task is about docTR document inputs, page arrays, result-object structure, or output conversion after OCR/KIE inference.
DocumentFile.from_pdf, DocumentFile.from_images, DocumentFile.from_url, read_pdf, read_img_as_numpy, read_img_as_tensor, decode_img_as_tensor, or read_html.Document, Page, KIEDocument, KIEPage, Block, Line, Word, Prediction, Artefact, LayoutElement, Table, and TableCell outputs.html or viz extras, show() dependencies, unsupported export formats, or hOCR limitations.ocr_predictor / kie_predictor, model architectures, device placement, or batch sizing; route to ../core-ocr-and-kie/SKILL.md.../models-and-customization/SKILL.md.../cli-and-scripts/SKILL.md.references/io-and-export-reference.md for input APIs, expected page array contracts, object schema, reading-order semantics, and export workflows.references/troubleshooting.md when loading, visualization, JSON/XML, KIE, table, or format-dispatch behavior is surprising.scripts/inspect_document_export.py for a safe local smoke inspection of DocumentFile loading and synthetic Document/KIEDocument exports. The script does not run predictors or download model weights.DocumentFile.* returns a list of pages; each page is normally a NumPy uint8 array with shape (H, W, 3) in RGB order.DocumentFile.from_pdf(...) rasterizes every PDF page; page index in the result corresponds to the input page order.DocumentFile.from_url(...) needs the html extra because it uses WeasyPrint to render a URL to PDF before rasterization.show() on Document, Page, KIEDocument, and KIEPage needs the viz extra because it uses visualization dependencies.render(), export(), export_as_xml(), Markdown, AsciiDoc, HTML, and export_as(...) share reading-order linearization by default.Table/TableCell) as well as exportable text grids; table text is not duplicated in regular page blocks when table detection is used.blocks -> lines -> words, while KIE pages group predictions by semantic class name.