Qart to blend image and qrcode
Project description
A package to blend image and Qrcode
Install
pip install Qart
Usage
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
Qart-0.0.8.tar.gz
(17.3 kB
view details)
Built Distribution
Qart-0.0.8-py3-none-any.whl
(18.1 kB
view details)
File details
Details for the file Qart-0.0.8.tar.gz
.
File metadata
- Download URL: Qart-0.0.8.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffccb66c9b89c63bec9d5d83b67ddb543ff620ffbbbbfb4e9eb25bceb66be1ae |
|
MD5 | e6f1df03de01512d488504fe2546f330 |
|
BLAKE2b-256 | ce7b53288c3d68b8da6578e97b3a8ea41078741ebf851ae6dd8e3ff70fb139b3 |
File details
Details for the file Qart-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: Qart-0.0.8-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12c0ecf6a1a16729465ca5b42c56069d07ff82e158a7688cbc454d335858230 |
|
MD5 | b46f31159cbe671a3fedc6e18004aceb |
|
BLAKE2b-256 | 554771491b967176ffc8efe23005ebf8176857b92e030db36b3eaeae5536fcd0 |