Skip to main content

An rMQR Code Generetor

Project description

An rMQR Code Generator

reop-url

This is an rMQR Code image generator implemented in Python. This is implemented based on ISO/IEC 23941:2022.

Important Notice

Please verify an image generated by this software whether it can decode correctly before use.

Basic Usage

from rmqrcode import rMQR
import rmqrcode

data = "https://oudon.xyz"
qr = rMQR.fit(
    data,
    ecc=rmqrcode.ErrorCorrectionLevel.M,
    fit_strategy=rmqrcode.FitStrategy.MINIMIZE_WIDTH
)

The ecc parameter is an enum value of rmqrcode.ErrorCorrectionLevel to select error correction level. The following values are available:

  • ErrorCorrectionLevel.M: Approx. 15% Recovery Capacity.
  • ErrorCorrectionLevel.H: Approx. 30% Recovery Capacity.

The fit_strategy parameter is enum value of rmqrcode.FitStrategy to specify how to determine size of rMQR Code. The following values are available:

  • FitStrategy.MINIMIZE_WIDTH: Try to minimize width.
  • FitStrategy.MINIMIZE_HEIGHT: Try to minimize height.
  • FitStrategy.BALANCED: Try to keep balance of width and height.

Here is an example of images genereated by each fit strategies for data Test test test: Example of fit strategies

Advanced Usage

Select rMQR Code size manually

To select rMQR Code size manually, use rMQR() constructor.

qr = rMQR('R11x139', ErrorCorrectionLevel.H)
qr.make("https://oudon.xyz")

The word "QR Code" is registered trademark of DENSO WAVE Incorporated.
http://www.denso-wave.com/qrcode/faqpatent-e.html

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

rmqrcode-0.1.0.tar.gz (11.9 kB view hashes)

Uploaded Source

Built Distribution

rmqrcode-0.1.0-py3-none-any.whl (14.1 kB view hashes)

Uploaded Python 3

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