Qart to blend image and qrcode
Project description
A package to blend image and Qrcode
Install
pip install Qart
Usage
InformationMask
if object inherit Qrcode can use this method
Return a numpy array sizeof module nums
- if Mask[i][j] == 0,this point is cannot be changed
- if Mask[i][j] == 1,this point is dont care
- if Mask[i][j] == 2,this point is padding
- if Mask[i][j] == 3,this point is data
- if Mask[i][j] == 4,this point is ecc
- if Mask[i][j] == 5,this point remain bits
in short, if mask[i][j] == [1, 2, 4], this point can change
Qrcode
-
Create Object To create an object where the constructor takes a string that you want to encode
from Qart import Qrcode Qr = Qrcode("Accepted")
-
Generate
- The first parameter is the version of the QR code to be generated.
- The second parameter is the error correction level of the QR code to be generated.
- The third parameter is the version of the mask 0 ~ 7. (option)
- The fourth parameter is the mode of the positioning point can use "Normal" and "Micro". (option)
Qr.generate(6, "L", mask = 0, mode = "Normal")
-
Show Show QRcode use matplotlib
Qr.show()
Qart
-
Create Object To create an object where the constructor takes a string or numpy array that you want to encode
from Qart import Qart Qr = Qart("Accepted")
-
Generate
- The first parameter is the path of the image to be merged.
- The second parameter is the version of the QR code to be generated.
- The third parameter is the error correction level of the QR code to be generated.
- The fourth parameter is the version of the mask 0 ~ 7. (option)
- The fifth parameter is the mode of the positioning point can use "Normal" and "Micro". (option)
Qr.generate("img.png", 6, "L", mask = 0, mode = "Normal")
-
Show Show QRcode use matplotlib
Qr.show()
Image
-
Load Image
from Qart import Image img = Image("1.png")
-
Set Moudlenums (option)
from Qart import Image img.SetModuleNums(MoudleNums: int)
-
Show Four mode, "RGB" "Grayscale" "OTSU" "Modulebase"
from Qart import Image img.show("OTSU")
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
Built Distribution
File details
Details for the file Qart-0.0.14.tar.gz
.
File metadata
- Download URL: Qart-0.0.14.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c46d6b32b5c5dd247309ba3414082bae429ee5a20909e06e39dd3fb5aea0397d |
|
MD5 | 54848539d77ee910e1389044525f7f93 |
|
BLAKE2b-256 | 8bc0be9940cc0590a99541e24ff46ce8e94bb0f1afe75846d5853da2170f09f8 |
File details
Details for the file Qart-0.0.14-py3-none-any.whl
.
File metadata
- Download URL: Qart-0.0.14-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22d1cd338b02d34ab6568a97a7068d7c7d356b9544524f4d8241d94bc8de1822 |
|
MD5 | 4d42ea7ceb316ccedb83fb3c7e97bb9e |
|
BLAKE2b-256 | 1e2996b1858b172964bd352ef8a8ee56692cc1d42ce5e15f29548b365d1658ee |