qr-barcode-reader
Use when asked to scan, decode, read, or extract data from QR codes or barcodes in images.
When & Why to Use This Skill
This Claude skill provides a robust solution for scanning, decoding, and extracting data from QR codes and various barcode formats (including EAN-13, Code128, and UPC-A) within images. It features batch processing capabilities and image enhancement to ensure high accuracy in data retrieval, effectively converting visual identifiers into structured, actionable information for automated workflows.
Use Cases
- Inventory Management: Streamline warehouse operations by scanning barcodes from images to track and update stock levels automatically.
- Product Information Lookup: Quickly retrieve detailed product data and pricing by decoding UPC or EAN barcodes from retail photos.
- Event & Document Verification: Enhance check-in systems and document security by extracting data from QR codes on tickets or official papers.
- Automated Data Entry: Reduce manual input errors by batch-processing images to convert visual codes into structured JSON or CSV formats for database integration.
| name | qr-barcode-reader |
|---|---|
| description | Use when asked to scan, decode, read, or extract data from QR codes or barcodes in images. |
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
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
# Read single image
python qr_barcode_reader.py image.png
# Batch read directory
python qr_barcode_reader.py images/*.png --output results.json