code128cgen-生成Code128c条码-Damian Dennis

code128cgen-生成Code128c条码-Damian Dennis

发布:2020-12-23 13:38:21.388545

做者:Damian Dennis

做者邮箱:damiandennis@gmail.com

首页:https://github.com/damiandennis/code128cgen

文档:None

下载连接

Code128c Generator

A simple barcode generator (full python solution)python

This library makes use of Pillow to generate the barcode image.git

Installation

python -m pip install code128cgen

Usage

from code128cgen import generate_bar_widths, write_barcode_to_image_file, write_barcode_to_image

test_str_unicode = '12345678'
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

查询时间:4.813ms
渲染时间:4.938ms

本文同步分享在 博客“zhenruyan”(other)。
若有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一块儿分享。github

相关文章
相关标签/搜索