gpt4 book ai didi

python - 删除 python Barcode.py 库中条形码下方的文本

转载 作者:行者123 更新时间:2023-12-01 03:48:05 49 4
gpt4 key购买 nike

有人知道如何删除条形码下面的文字吗?条形码是使用 barcode.py 库生成的。我正在尝试 checkin https://bitbucket.org/whitie/python-barcode但找不到解决方案,在python中的条形码保存行中应该写入哪些属性:

ean = barcode.get('code39', str(row['PART']), writer=ImageWriter())

附加带有标记线的条形码图片,我想从条形码生成中删除它。 enter image description here

最佳答案

试试这个:

barcode.default_writer_options['write_text'] = False

关于python - 删除 python Barcode.py 库中条形码下方的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38659202/

49 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com