# Qr Barcode Reader

> Use when asked to scan, decode, read, or extract data from QR codes or barcodes in images.

- Skill: `majiayu000/qr-barcode-reader` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/qr-barcode-reader`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/qr-barcode-reader/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/qr-barcode-reader

---


# QR/Barcode Reader

Decode and extract data from QR codes and barcodes in images with support for multiple barcode formats.

## Purpose

Barcode scanning for:
- Inventory management and tracking
- Product information lookup
- Document verification
- Event check-in systems
- Automated data entry

## Features

- **Multiple Formats**: QR Code, EAN-13, Code128, Code39, UPC-A, DataMatrix
- **Batch Processing**: Scan multiple images in one operation
- **Data Extraction**: Decode to text, URLs, structured data
- **Image Preprocessing**: Auto-rotation, enhancement for better recognition
- **Validation**: Verify barcode checksums
- **Export**: JSON, CSV output with decoded data

## Quick Start

```python
from qr_barcode_reader import QRBarcodeReader

# Read QR code
reader = QRBarcodeReader()
result = reader.read_image('qr_code.png')
print(result.data)  # Decoded text

# Batch read directory
results = reader.read_directory('images/', formats=['qr', 'ean13'])
```

## CLI Usage

```bash
# Read single image
python qr_barcode_reader.py image.png

# Batch read directory
python qr_barcode_reader.py images/*.png --output results.json
```

