---
name: Decode QR Code
slug: decode-qr-code
category: Automation
description: Extract text content from QR code images. Use when you need to decode or read QR codes from image files.
github: "https://github.com/CoderWanFeng/python-office/tree/develop/skills/image/decode_qrcode"
language: Python
stars: 1331
forks: 297
install: "git clone https://github.com/CoderWanFeng/python-office"
added: 2026-07-20T06:48:45.641Z
last_synced: 2026-07-28T07:00:51.589Z
canonical_url: "https://dirskills.com/skills/decode-qr-code"
---

# Decode QR Code

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

**Install:** `git clone https://github.com/CoderWanFeng/python-office`

## README

# decode_qrcode Skill

> 解析二维码

## 功能描述

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

## 所属分类

`office/skills/image/decode_qrcode/`

## 调用方式

```python
from office.skills.image import decode_qrcode

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

## 参数说明

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

## 返回值

`None`（解析结果直接打印输出）

## 使用示例

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

## 原始函数

`office.api.image.decode_qrcode`
