fullseye

qr_encode — SYMBOL datacode2d op

使い方

文字列を QR Code(Model 2)のモジュール格子と符号語の対応に符号化する(table)。

Encode text as a QR Code (Model 2) module grid.

Parameters

text : str 符号化する文字列 / the text. Byte mode stores UTF-8 (no ECI). ec_level : {“L”, “M”, “Q”, “H”} 誤り訂正レベル / error-correction level. version : int or None 1..40。None なら収まる最小 / 1..40, or None for the smallest that fits. mask : int or None 0..7。None なら 4 規則の減点が最小のもの / 0..7, or None to pick by penalty. mode : {“numeric”, “alphanumeric”, “byte”} or None None なら文字種から自動 / None to choose from the characters.

Returns

dict modules (N,N) uint8 (1=暗/dark), size, version, ec_level, mask, mode, text, blocks [(n_data, n_ec)…], n_data_codewords, n_ec_codewords, function_mask (N,N) bool, codeword_index (N,N) int16 (-1 = 機能/余り / function or remainder), codewords (interleaved list).

詳しい使い方ガイド

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(table を入力に取れる)

render_symbol · symbol_read_trials · symbol_read_pod · ocr_classify · ocr_read_line · ocr_read_trials

同カテゴリ(datacode2d)

qr_decode_modules · qr_locate · qr_sample · qr_read · dm_encode · dm_decode_modules · dm_locate · dm_sample


Provenance: qrsym.py — SYMBOL operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.