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] == 4,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
Qart-0.0.9.tar.gz
(17.6 kB
view details)
Built Distribution
Qart-0.0.9-py3-none-any.whl
(18.3 kB
view details)
File details
Details for the file Qart-0.0.9.tar.gz
.
File metadata
- Download URL: Qart-0.0.9.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7712d5b4bac352e6ebb388e2bcaa107374266803f37f140fdd3ea7376a6f26 |
|
MD5 | 7618b31933aabe82b3578f4be0c7c457 |
|
BLAKE2b-256 | f3ac0a79c82d09b8d8c698f9b18c6cd4df49d2dd5c2782c31f7cc8a6a70370f4 |
File details
Details for the file Qart-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: Qart-0.0.9-py3-none-any.whl
- Upload date:
- Size: 18.3 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 | 497ae4f601923835f8088591c525f899db07c067c5be641ec4e17efaa6b1f651 |
|
MD5 | dd91b18629797fafe441a3b65db885c6 |
|
BLAKE2b-256 | 9ba2981229020e8a608b895605325d0416c813d4e9520e24c2f94f9c42a5b90e |