Use OCR to extract text from Word (.docx) files that contain scanned pages or image-embedded content, using MinerU.
npm install -g mineru-open-api
# or via Go (macOS/Linux):
go install github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api@latest
# OCR extraction from .docx (requires token)
mineru-open-api extract report.docx --ocr -o ./out/
# With VLM model for better accuracy on complex image layouts
mineru-open-api extract report.docx --ocr --model vlm -o ./out/
Token required:
mineru-open-api auth # Interactive token setup
export MINERU_TOKEN="your-token" # Or via environment variable
Create token at: https://mineru.net/apiManage/token
extract (requires token)--ocr flag to enable OCR on image-embedded content--model vlm for complex or mixed-content documents--language (default: ch, use en for English)flash-extract — use extract with --ocr.docx has a normal text layer, OCR is not needed — use doc-extract instead-o to save to a file or directory共 1 个版本