界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
文档与办公 · SKILL.md

cli-and-scripts

cli-and-scripts

【文档与办公】Use docTR's installed OCR CLI and safe bundled helper scripts for single-document and batch OCR.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: cli-and-scripts description: "Use docTR's installed OCR CLI and safe bundled helper scripts for single-document and batch OCR." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

CLI and Scripts

Use this sub-skill when the task is about running docTR from a shell instead of writing a custom Python pipeline.

Route here for

  • Exact doctr-cli arguments, defaults, JSON output behavior, and parser/runtime errors.
  • Single-file OCR with a safe helper that can run offline with --no-pretrained or load trained weights with --pretrained.
  • Batch OCR over a file or directory with explicit txt, json, or xml output.
  • CLI/script troubleshooting: missing entry point, import failures, unsupported inputs, failed output writes, model-name errors, or model download/cache issues.

Runtime files

Boundaries

  • For equivalent Python API design, route to the core OCR/KIE sub-skill rather than expanding CLI snippets here.
  • For document object schemas, rendering, hOCR/XML interpretation, Markdown/HTML export, and table/KIE result semantics, route to the document IO/export sub-skill.
  • For training, evaluation, datasets, or benchmark scripts, route to the datasets/training/evaluation sub-skill.

Safety defaults

The bundled helpers default to --no-pretrained, which avoids intentional model-weight downloads and is useful for parser/import/offline smoke checks. Use --pretrained only when the runtime is allowed to load or download trained model weights and cache them through the installed backend.

我的收藏