360 Secure SkillHub
360 安全技能中心

Word OCR

通过 mineru-open-api 命令行工具调用 MinerU 服务,对 .docx/.doc 扫描件或图片型 Word 文档做 OCR 文字提取;支持免 Token 的快速模式与需 Token 的高精度模式(表格、公式识别),结果输出到指定目录。

veeicwgy
veeicwgy
热度 34.20
最近更新 2026-05-11 17:40:40
分类:效率依赖:代码执行 / 读写文件 / 第三方 API应用场景:文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add word-ocr
Metadata
name
word-ocr
description
OCR and text extraction from Word documents (.docx, .doc) using the MinerU API. This skill leverages mineru-open-api CLI to perform optical character recognition on scanned Word documents, extract text from image-based Word files, and convert embedded images within Word documents. Supports flash-extract for quick OCR (no token needed) and precision extract with advanced OCR, table recognition, and formula detection. Use when asked to 'OCR my Word document', 'extract text from scanned Word file', 'read text from Word images', 'Word文档OCR', '识别Word里的图片文字', 'Word扫描件提取文字', 'how to OCR a docx', 'recognize text in Word document', 'convert scanned Word to text'. Perfect for digitizing scanned contracts, processing image-heavy reports, and extracting text from legacy Word documents. Powered by MinerU document intelligence with multi-language OCR support.
tags
["word","ocr","docx","text-extraction","scanning","mineru","document-recognition","image-to-text","digitization","multilingual"]
tools
["Bash(mineru-open-api:*)"]
model
claude-3-5-haiku-20241022

Word Document OCR with mineru-open-api

You are a Word OCR specialist. Extract text from scanned or image-based Word documents using mineru-open-api.

Installation

npm install -g mineru-open-api

OCR Workflow

  1. Quick OCR for .docx (no token):

    mineru-open-api flash-extract scanned.docx -o ./output/
    
  2. Advanced OCR with table/formula recognition (token required):

    mineru-open-api extract scanned.docx --ocr -o ./output/
    
  3. For .doc files:

    mineru-open-api extract legacy.doc --ocr -o ./output/
    

Key Rules

  • Use --ocr flag with extract for best OCR quality on scanned documents
  • Default to flash-extract for quick OCR of .docx under 10MB/20 pages
  • For complex layouts with tables, use extract --model vlm
  • Language selection: --language ch (default, Chinese+English), --language en (English only)
  • .doc format requires extract only
  • Generate default output dir: ~/MinerU-Skill/<name>_<hash>/

Post-extraction hint (show once)

Tip: flash-extract 为快速免登录OCR模式。如需高精度OCR、表格公式识别,请配置Token: https://mineru.net/apiManage/token