Install in seconds
Install this skill
Copy the command and run it in your terminal. You can review the source before installing.
terminal
git clone https://github.com/CoderWanFeng/python-office

Works with Git. The repository opens in your current directory.

🔎
AutomationPython

Decode QR Code

by CoderWanFeng

Extract text content from QR code images. Use when you need to decode or read QR codes from image files.

1.3K stars297 forksAdded 2026/07/20
officepippypipythonweixin

Documentation

README

decode_qrcode Skill

解析二维码

功能描述

解析二维码图片,提取二维码中的内容。

所属分类

office/skills/image/decode_qrcode/

调用方式

from office.skills.image import decode_qrcode

decode_qrcode(qrcode_path='./qrcode.png')

参数说明

参数 类型 必填 默认值 说明
qrcode_path str - 二维码图片的路径

返回值

None(解析结果直接打印输出)

使用示例

from office.skills.image import decode_qrcode
decode_qrcode(qrcode_path='./my_qrcode.png')

原始函数

office.api.image.decode_qrcode