跳到正文
cccskills
免费在 GitHub 公开

doctr

Use python-doctr (docTR) for OCR/KIE inference, document IO/export, model customization, datasets/training/evaluation, CLI helpers, deployment, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

集成工具DockerHugging Face
查看安装方法

包含的文件(35)

  • SKILL.md5.2 KB
  • references/package-overview.md4.7 KB
  • references/repo-provenance.md2.1 KB
  • references/repo-routing-metadata.json308 B
  • references/troubleshooting.md5.0 KB
  • scripts/doctr_env_check.py5.7 KB
  • sub-skills/cli-and-scripts/references/cli-reference.md4.7 KB
  • sub-skills/cli-and-scripts/references/script-adaptations.md6.5 KB
  • sub-skills/cli-and-scripts/references/troubleshooting.md5.0 KB
  • sub-skills/cli-and-scripts/scripts/doctr_batch_ocr.py10.4 KB
  • sub-skills/cli-and-scripts/scripts/doctr_cli_env.py5.7 KB
  • sub-skills/cli-and-scripts/scripts/doctr_quick_ocr.py8.5 KB
  • sub-skills/cli-and-scripts/SKILL.md2.2 KB
  • sub-skills/core-ocr-and-kie/references/ocr-kie-workflows.md12.7 KB
  • sub-skills/core-ocr-and-kie/references/troubleshooting.md9.2 KB
  • sub-skills/core-ocr-and-kie/scripts/ocr_api_smoke.py8.9 KB
  • sub-skills/core-ocr-and-kie/SKILL.md2.6 KB
  • sub-skills/datasets-training-and-evaluation/references/data-formats.md11.6 KB
  • sub-skills/datasets-training-and-evaluation/references/evaluation-and-training.md10.1 KB
  • sub-skills/datasets-training-and-evaluation/references/training-scripts.md10.0 KB
  • sub-skills/datasets-training-and-evaluation/references/troubleshooting.md9.6 KB
  • sub-skills/datasets-training-and-evaluation/scripts/validate_doctr_labels.py20.1 KB
  • sub-skills/datasets-training-and-evaluation/SKILL.md3.7 KB
  • sub-skills/deployment-and-contrib/references/api-and-demo.md7.7 KB
  • sub-skills/deployment-and-contrib/references/contrib-and-hub.md7.4 KB
  • sub-skills/deployment-and-contrib/references/troubleshooting.md7.7 KB
  • sub-skills/deployment-and-contrib/SKILL.md2.8 KB
  • sub-skills/document-io-and-exports/references/io-and-export-reference.md12.6 KB
  • sub-skills/document-io-and-exports/references/troubleshooting.md8.1 KB
  • sub-skills/document-io-and-exports/scripts/inspect_document_export.py11.3 KB
  • sub-skills/document-io-and-exports/SKILL.md3.2 KB
  • sub-skills/models-and-customization/references/model-catalog-and-customization.md15.9 KB
  • sub-skills/models-and-customization/references/optimization-and-export.md9.2 KB
  • sub-skills/models-and-customization/references/troubleshooting.md10.8 KB
  • sub-skills/models-and-customization/SKILL.md2.7 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

docTR repo skill

Use this skill when a task involves python-doctr / docTR: document OCR, key information extraction, text detection/recognition, layout or table parsing, docTR datasets, model customization, command-line OCR, optional deployment surfaces, or docTR-specific errors.

This is a router. Keep detailed work in the linked sub-skills and references.

Quick install and import check

Typical install commands:

pip install python-doctr
pip install "python-doctr[viz,html,contrib]"  # only when visualization, HTML input, or contrib ONNXRuntime helpers are needed

Minimal import/metadata check:

python - <<'PY'
from importlib.metadata import version
import doctr
from doctr.io import DocumentFile
from doctr.models import ocr_predictor
print("python-doctr", version("python-doctr"), "doctr", doctr.__version__)
print(DocumentFile, ocr_predictor)
PY

Run scripts/doctr_env_check.py for a safe package/CLI/backend diagnostic before debugging installation, optional extras, CUDA/MPS, or entry-point problems.

Route by task

User taskRead
End-to-end OCR or KIE with ocr_predictor / kie_predictor, rotation/layout/table flags, device/batch choices, or output sanity checkssub-skills/core-ocr-and-kie/SKILL.md
Loading PDFs/images/URLs/arrays; interpreting Document, Page, KIEDocument, reading order, JSON/text/XML/Markdown/HTML exports, or table gridssub-skills/document-io-and-exports/SKILL.md
Choosing standalone model factories, supported architectures, custom weights, vocabs/whitelists, Hugging Face Hub, ONNX export, half precision, torch.compile, CUDA/MPSsub-skills/models-and-customization/SKILL.md
Dataset schemas, built-in/custom datasets, synthetic generators, transforms, validation, training/evaluation/latency contracts, metrics, DDP/GPU caveatssub-skills/datasets-training-and-evaluation/SKILL.md
Installed doctr-cli, single-document/batch OCR command helpers, output files, parser defaults, and CLI/script troubleshootingsub-skills/cli-and-scripts/SKILL.md
Optional FastAPI/Streamlit/Docker deployment, doctr.contrib, ArtefactDetector, optional extras, or Hugging Face publishing/loadingsub-skills/deployment-and-contrib/SKILL.md

Read shared references

Operating rules

  • Prefer public package APIs and bundled helpers in this skill tree. Do not require future agents to open or run original repo docs, notebooks, scripts, tests, or checkout paths.
  • Treat pretrained=False as shape/API smoke mode only; random-weight OCR is not meaningful.
  • Treat pretrained=True and many default backbones as possible first-use network/cache events. Confirm the user's offline/network policy before running them.
  • CPU is enough for required package and skill verification. CUDA/MPS are optional acceleration paths unless the user explicitly needs GPU performance, half precision, DDP, or a device-specific issue.
  • Install optional extras only for selected tasks: viz for show()/interactive plotting, html for URL/HTML input, contrib for ONNXRuntime-backed contrib utilities.
  • For training/evaluation, validate labels and run one-sample/one-batch checks before launching long jobs. This skill distills training contracts but does not bundle heavyweight training scripts.
  • For services, Docker, Hub push, downloads, credentials, or long-running GPU work, stop and confirm permissions/resources before executing.

Common first actions

  • OCR a file in Python: use DocumentFile.from_pdf() or DocumentFile.from_images(), build ocr_predictor(pretrained=True), run result = predictor(doc), then inspect result.render() or result.export().
  • Offline API smoke: use the core OCR sub-skill's ocr_api_smoke.py with no pretrained weights.
  • CLI JSON OCR: use doctr-cli --input_path INPUT --output results.json when model downloads are allowed; use the bundled CLI helper with --no-pretrained only for parser/API smoke.
  • Validate custom labels: use sub-skills/datasets-training-and-evaluation/scripts/validate_doctr_labels.py before training or evaluation.
  • Diagnose install/backend: run scripts/doctr_env_check.py --json.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3382026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题