← 返回 Skills 市场
82
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pdf-qr-extractor
功能描述
Extracts and saves QR codes from each page of a PDF by converting pages to images and detecting QR regions with padding.
使用说明 (SKILL.md)
PDF QR Code Extractor
从 PDF 文件中提取每一页的图片,并检测、裁剪保存其中的二维码。
功能
- 将 PDF 每一页转换为图片
- 使用 OpenCV + pyzbar 检测并裁剪二维码区域
- 二维码周围留有 10 像素白边(padding),便于扫码识别
- 保存到指定目录
使用方法
请帮我提取 PDF 中的二维码:[PDF文件路径]
例如:
请帮我提取 PDF 中的二维码:D:/pdftest/text.pdf
或者指定输出目录:
请帮我提取 PDF 中的二维码:D:/pdftest/text.pdf,输出到 ./my_qr
依赖安装
需要先安装依赖:
pip install fitz PyMuPDF opencv-python numpy pyzbar --break-system-packages
输出结构
输出目录/
├── qr_page_1_1.png # 二维码图片
├── qr_page_2_1.png
├── text.pdf_pages/ # PDF页面图片(中间文件)
│ ├── page_1.png
│ └── page_2.png
适用场景
客户提供的 PDF 文件中包含生成的二维码,需要批量提取保存。
安全使用建议
This skill appears to do what it says and runs locally. Before installing/running: (1) review and run the included script on non-sensitive test PDFs; (2) install Python dependencies in an isolated virtual environment (avoid --break-system-packages unless you understand its effect); (3) ensure the system zbar library is installed for pyzbar to work; (4) be mindful that the script will write image files to disk (ensure output path permissions are appropriate). If you need stricter isolation, run it inside a disposable VM or container.
能力标签
能力评估
Purpose & Capability
Name/description, SKILL.md, README, and the included script all describe PDF->image conversion and QR detection using PyMuPDF (fitz), OpenCV and pyzbar. Required capabilities and files align with the stated purpose; no unrelated credentials or system accesses are requested.
Instruction Scope
Runtime instructions are narrowly scoped: convert PDF pages to images, detect/crop QR regions, add padding, and save files to an output directory. The SKILL.md and script only read the provided PDF and write image files; they do not attempt to read other system files, environment variables, or send data externally.
Install Mechanism
This is an instruction-only skill (no automated install). SKILL.md asks the user to pip install fitz PyMuPDF opencv-python numpy pyzbar. That is expected, but note: (1) pyzbar typically requires a system zbar library (native dependency) which is not mentioned; (2) listing both "fitz" and "PyMuPDF" is redundant/confusing (PyMuPDF provides the fitz module); (3) the pip suggestion includes --break-system-packages, which alters system package isolation and should be used cautiously. These are installation/usability notes rather than indicators of malicious behavior.
Credentials
The skill requests no environment variables or credentials. The script only reads the provided PDF path and writes output files; requested access is proportional to the functionality.
Persistence & Privilege
always is false and the skill does not request persistent or elevated platform privileges, nor does it modify other skills or global agent settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pdf-qr-extractor - 安装完成后,直接呼叫该 Skill 的名称或使用
/pdf-qr-extractor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
PDF QR Extractor 是什么?
Extracts and saves QR codes from each page of a PDF by converting pages to images and detecting QR regions with padding. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 PDF QR Extractor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pdf-qr-extractor」即可一键安装,无需额外配置。
PDF QR Extractor 是免费的吗?
是的,PDF QR Extractor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
PDF QR Extractor 支持哪些平台?
PDF QR Extractor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 PDF QR Extractor?
由 mywebliu(@mywebliu)开发并维护,当前版本 v1.0.0。
推荐 Skills