Skip to main content

decode-qrcode

解析二维码图片并提取其中的文本内容。当用户提到二维码识别、扫二维码、读二维码、解码 QR 时使用。

来源信息

仓库
CoderWanFeng/python-office
最近来源活动
2026年10月26日 13:16
检测到的 SKILL.md 语言
中文
星标
1,370
Forks
305

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
decode_qrcode
description
解析二维码图片并提取其中的文本内容。当用户提到二维码识别、扫二维码、读二维码、解码 QR 时使用。
# decode_qrcode Skill > 解析二维码 ## 功能描述 解析二维码图片,提取二维码中的内容。 ## 所属分类 `office/skills/image/decode_qrcode/` ## 调用方式 ```python from skills.image import decode_qrcode decode_qrcode(qrcode_path='./qrcode.png') ``` ## 参数说明 | 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | `qrcode_path` | str | 是 | - | 二维码图片的路径 | ## 返回值 `str`(二维码中的文本内容;同时也会直接打印输出;未识别到二维码时为空字符串) ## 使用示例 ```python from skills.image import decode_qrcode decode_qrcode(qrcode_path='./my_qrcode.png') ``` ## 原始函数 `office.api.image.decode_qrcode`
在 GitHub 查看