Qreader
A pure python reader for QR codes
Install / Use
/learn @ewino/QreaderREADME
qreader
A pure python reader for QR codes. Made to be compatible to Python 2.7 to 3.6+.
We use the easy-to-install Pillow package to load the pictures, so lots of picture formats are supported.
Status
The package is a work in progress. It can currently decode right-side-up QR codes images generated on a computer (not pictures of printed codes).
Features left to be implemented:
- QR data error correction (currently being researched and implemented)
- image recognition to recognize QR codes in camera pictures
Usage
qreader.read(source) # source can be a file-like object, a PIL image, or a path to a local file
For example:
import qreader
from urllib.request import urlopen
url = 'https://upload.wikimedia.org/wikipedia/commons/8/8f/Qr-2.png'
data = qreader.read(urlopen(url))
print(data) # prints "Version 2"
Any ideas or issues will be gladly received in the issues panel or by PMing me (ewino)
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
