360 Secure SkillHub
360 安全技能中心

Image To Markdown

该 Skill 调用 mineru-open-api 命令行工具的 flash-extract 命令,对本地或 URL 图片(PNG、JPG、JPEG、WebP、BMP、TIFF,单张不超过 10MB)做 OCR 文字提取,输出 Markdown 文本,支持语言提示与保存到指定目录。图片会上传至云端处理,无需 API 密钥;批量或更高精度需改用带认证的 extract 子命令。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add image-to-markdown
Metadata
name
image_to_markdown
description
Image to Markdown - extract text from images (PNG, JPG, WebP) to Markdown with OCR. Use when reading text from screenshots, photos, scanned pages, or any image file.
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"]}]}}

Image to Markdown - OCR Extract Text from Images

Extract text from images to Markdown using MinerU Open API. No API key required.

Quick Start

# Extract text from a local image
mineru-open-api flash-extract screenshot.png

# Extract text from an image URL (no download needed)
mineru-open-api flash-extract https://example.com/image.png

# Save to file
mineru-open-api flash-extract photo.jpg -o ./output/

# Specify language for better accuracy
mineru-open-api flash-extract scan.jpg --language en

Language Rule

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

Capabilities

  • OCR text extraction from PNG, JPG, JPEG, 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 per image

When to Use

  • User asks to "read", "extract", or "OCR" an image
  • User shares a screenshot and asks what it says
  • User wants text from a photo of a document or whiteboard
  • User needs image content converted to Markdown

CLI Reference

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

Data Privacy

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

Notes

  • Output is Markdown text extracted via OCR
  • For higher precision or batch processing, use mineru-open-api extract (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