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