Read QR code from image using WeChat QR code reader in OpenCV
Project description
Read QR code
Description
This is a simple python script that reads a QR code from an image and prints the result. It uses the WeChat QR code reader API in openCV to read the QR code from a CV2 image.
Installation
- Install using pip:
pip install readQR
Usage
from readQR import ReadQR
import readQR.wechat_artefacts as artefacts
import cv2
art_dir = artefacts.__path__[0]
img = cv2.imread('test.png')
reader = ReadQR(artefact_path=art_dir)
show = None # Set to "single" or "continuous" to show the image with the QR code highlighted for single or continuous frames (video)
result = reader.decode(img, show=show)
[print(r) for r in result]
Sample input and output images
Input images
Output images
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
None
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
readQR-0.0.1.tar.gz
(924.7 kB
view details)
Built Distribution
readQR-0.0.1-py3-none-any.whl
(923.1 kB
view details)
File details
Details for the file readQR-0.0.1.tar.gz
.
File metadata
- Download URL: readQR-0.0.1.tar.gz
- Upload date:
- Size: 924.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57360c265e04c213c02e8697e14b47101b21d5244533b1fc11a4dce4f3016242 |
|
MD5 | c4f3e6f66858364ca74b2238dc33e825 |
|
BLAKE2b-256 | 1787b73b831ea95a88bf93bee326235e24f88ddd22fe1a1e43afdb385fd91579 |
File details
Details for the file readQR-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: readQR-0.0.1-py3-none-any.whl
- Upload date:
- Size: 923.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50f715f05ebf389f48e32381d1a1ffb7e93c1a345e52a20557f74802e5fb0eb3 |
|
MD5 | 443349ee0ad7e2beb5ae8470fed84793 |
|
BLAKE2b-256 | a1c1b56abbb00430c63f4cdae4044ae25c9abd46512ecfa41c456b0ef3dda629 |