360 Secure SkillHub
360 安全技能中心

Scan To Markdown

这是基于MinerU Open API的免费OCR CLI工具,可提取扫描件、图片、手写笔记等的文本并转为Markdown。支持PDF、PNG、JPG等格式,兼容本地文件与网络URL,可指定识别语言,无需API密钥,文件处理后即删除不存储。典型场景包括扫描PDF转可编辑文本、照片页面提取文字、手写笔记电子化,通过CLI命令操作,可指定输出路径。

tanis90
tanis90
热度 53.49
最近更新 2026-05-11 17:36:07
分类:效率依赖:代码执行 / 第三方 API / 读写文件应用场景:文件转换 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add scan-to-markdown
Metadata
name
scan-to-markdown
description
OCR document extraction - extract text from scanned documents, photos, and images using OCR. Use when reading scanned PDFs, photographed pages, handwritten notes, or any document that needs optical character recognition.
homepage
https://mineru.net
metadata
{"openclaw":{"emoji":"🔍","requires":{"bins":["mineru-open-api"]},"install":[{"id":"npm","kind":"node","package":"mineru-open-api","bins":["mineru-open-api"],"label":"Install via npm"},{"id":"uv","kind":"uv","package":"mineru-open-api","bins":["mineru-open-api"],"label":"Install via uv"},{"id":"go","kind":"go","package":"github.com/opendatalab/MinerU-Ecosystem/cli/mineru-open-api","bins":["mineru-open-api"],"label":"Install via go install","os":["darwin","linux"]}]}}

Scan to Markdown - OCR for Scanned Docs

Extract text from scanned documents and images using OCR via MinerU Open API. No API key required.

Quick Start

# Scan to Markdown - OCR for Scanned Docs
mineru-open-api flash-extract scanned.pdf

# Scan to Markdown - OCR for Scanned Docs
mineru-open-api flash-extract page-photo.jpg

# Scan to Markdown - OCR for Scanned Docs
mineru-open-api flash-extract https://example.com/scanned.pdf

# Scan to Markdown - OCR for Scanned Docs
mineru-open-api flash-extract scanned.pdf --language en

# Scan to Markdown - OCR for Scanned Docs
mineru-open-api flash-extract scanned.pdf -o ./output/

Language Rule

You MUST reply to the user in the SAME language they use. This is non-negotiable.

Capabilities

  • OCR for scanned PDFs, photographed documents, images
  • Supports PDF, PNG, JPG, WebP, BMP, TIFF
  • Supports both local files and URLs directly
  • Language hint with --language (default: ch, use en for English)
  • No API key, no signup, no authentication
  • Max 10MB / 20 pages per document

When to Use

  • User asks to "OCR" a document or image
  • User has a scanned PDF that needs text extraction
  • User shares a photo of a page and wants the text
  • User mentions "scan", "handwriting", or "recognize text"

CLI Reference

Run mineru-open-api flash-extract --help for all available options.

Data Privacy

  • flash-extract uploads the document to MinerU's cloud API for processing and returns the result. No account or API key is required.
  • Documents are processed in real-time and are not stored after extraction.
  • For details, see https://mineru.net

Notes

  • Best results with clear, high-resolution scans
  • For higher precision OCR with full layout preservation, use mineru-open-api extract --ocr (requires auth via mineru-open-api auth)
  • If the CLI cannot be installed via npm/uv/go, download it from https://mineru.net/ecosystem?tab=cli