code128agen-代碼128A條碼的生成-Damian Dennis

code128agen-代碼128A條碼的生成-Damian Dennis

發佈:2020-12-23 13:38:09.715925

做者:Damian Dennis

做者郵箱:damiandennis@gmail.com

首頁:https://github.com/damiandennis/code128agen

文檔:None

下載連接

Code128a Generator

A simple barcode generator (full python solution)python

This library makes use of Pillow to generate the barcode image, it also fully supports extended ASCII which I found most other libraries did not support except GNU barcode in raw mode.git

Installation

python -m pip install code128agen

Usage

from code128agen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image

test_str_unicode = '12345678ÐEª2345FD'
bars = generate_bar_widths(test_str_unicode) # generates the bar widths for generating image.
pil_image = write_barcode_to_image(bars) # if you want to manipulation the image with PIL.
write_barcode_to_image_file(bars, 'test.png') # writes out file to specified file name.
Copy from pypi.org

查詢時間:7.597ms
渲染時間:7.824ms

本文同步分享在 博客「zhenruyan」(other)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。github

相關文章
相關標籤/搜索