barcode1d op• 데이터 종류: 없음 → table(인자만으로 정해지는 연산자 —— 이미지나 데이터 입력을 받지 않습니다)
• 호출: import fullseye as fs; fs.ledger.encode_barcode1d(text, symbology='code128', *, wide_ratio=2.5, check_digit=False, gs1=False)(구현을 직접 호출하려면 import barcode1d; barcode1d.encode_barcode1d(text, symbology='code128', *, wide_ratio=2.5, check_digit=False, gs1=False), 원장에서 가져오려면 opssymbol.get("encode_barcode1d"))
• GPU: 없음(CPU 참조 구현만)
문자열을 1차원 바코드의 요소 폭(모듈 단위)으로 부호화한다(table).
> 아래 상세 설명은 원문입니다 —— 요약과 제목은 번역되어 있습니다.
Encode text as a 1-D symbol. Returns a table: symbology, text (the human-readable data, e.g. EAN-13 with its check digit), widths (element widths in modules, first element a bar, quiet zones excluded), quiet (left, right) in modules, n_modules (symbol length without quiet zones), edges (cumulative element boundaries starting at the left quiet-zone edge = 0), values (symbol character values, Code 128 only) and wide_ratio (two-width symbologies).
symbology: "ean13" (12 or 13 digits; the 13th must be the check digit), "upca" (11 or 12 digits), "code128" (ASCII 32..126, automatic code sets B / C; gs1=True puts FNC1 first and maps '\x1d' to FNC1 — GS1-128), "code39" (0-9 A-Z - . space $ / + %, start/stop * added, optional mod-43 check with check_digit=True), "itf" (an even number of digits; check_digit=True appends the GS1 mod-10 check to make the count even). wide_ratio (two-width symbologies) must lie in [2.0, 3.0].
空の入力(text == "")は ValueError(理由: 符号化する中身が無い)。拒否(ValueError): 文字列でない、未知のシンボル体系、字種の外の文字、桁数違い、検査数字の不一致、wide_ratio が [2.0, 3.0] の外。
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.
• poc_symbol_package_1d — py -3.11 examples/poc_symbol_package_1d.py
table 를 입력으로 받는 것)render_symbol · symbol_read_trials · symbol_read_pod · ocr_classify · ocr_read_line · ocr_read_trials
barcode1d)ean_check_digit · barcode_scan_profiles · decode_barcode_profile · read_barcode1d
*Provenance: barcode1d.py — SYMBOL 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.