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

ora*_*gas 3 python barcode python-2.7

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

ean = barcode.get('code39', str(row['PART']), writer=ImageWriter())
Run Code Online (Sandbox Code Playgroud)

附上带有标记线的条形码图片,我想从条形码生成中删除这些内容。 在此输入图像描述

小智 7

尝试这个:

barcode.default_writer_options['write_text'] = False
Run Code Online (Sandbox Code Playgroud)


Fra*_*ran 5

这就是解决方案

import barcode
from barcode.writer import ImageWriter
ITF = barcode.get_barcode_class('itf')
itf = ITF('30573190692203003169482900832115201911297', writer=ImageWriter())
fullname = itf.save('itf_barcode', options={"write_text": False})
Run Code Online (Sandbox Code Playgroud)