Skip to main content

A short description of your package

Project description

Coverage

codecov

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

  1. if Mask[i][j] == 0,this point is cannot be changed
  2. if Mask[i][j] == 1,this point is dont care
  3. if Mask[i][j] == 2,this point is padding
  4. if Mask[i][j] == 3,this point is data
  5. if Mask[i][j] == 4,this point is ecc
  6. if Mask[i][j] == 5,this point remain bits

in short, if mask[i][j] == [1, 2, 4], this point can change

Qrcode

  1. Create Object To create an object where the constructor takes a string that you want to encode

    from Qart import Qrcode
    
    Qr = Qrcode("Accepted")
    
  2. 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")
    
  3. Show Show QRcode use matplotlib

    Qr.show()
    

Qart

  1. 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")
    
  2. 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")
    
  3. Show Show QRcode use matplotlib

    Qr.show()
    

Image

  1. Load Image

    from Qart import Image
    img = Image("1.png")
    
  2. Set Moudlenums (option)

    from Qart import Image
    img.SetModuleNums(MoudleNums: int)
    
  3. Show Four mode, "RGB" "Grayscale" "OTSU" "Modulebase"

    from Qart import Image
    img.show("OTSU")
    

Reference

  1. QArt Codes
  2. thonky

Project details


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.20.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

Qart-0.0.20-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file Qart-0.0.20.tar.gz.

File metadata

  • Download URL: Qart-0.0.20.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for Qart-0.0.20.tar.gz
Algorithm Hash digest
SHA256 9b766106a19ded847392e3e2aca74d74923c2db41a68175826ce6056e1f90b85
MD5 6a094b5d4ecdd596e86c7248e1305024
BLAKE2b-256 eab84f1af1cf1c14e0053ee4ad24f473abb7fb339797798f5a678679fe0099e0

See more details on using hashes here.

File details

Details for the file Qart-0.0.20-py3-none-any.whl.

File metadata

  • Download URL: Qart-0.0.20-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for Qart-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 bd36bb16af534daed908a7cc0552ca2107738f784b7c909fb0c607823a53a79c
MD5 e5628d17380a8ed2a32e325ae937e9c5
BLAKE2b-256 3a95ef5e4f9bc749f16f748b8e2e61a563af85563533896c86e5ad5391f7a26e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page