在pythonBarcode.py库中的条形码下方删除文本 [英] Remove text below barcode in python barcode.py library

查看:163
本文介绍了在pythonBarcode.py库中的条形码下方删除文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Does anyone know how to remove text below a bar-code? Bar-code is generated using barcode.py library. I was trying to check in https://bitbucket.org/whitie/python-barcode but could not find solution,what properties should be written in barcode saving line in python:

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

将带有标记线的条形码图片附加到我想从条形码生成中删除的内容.

Attaching barcode picture with marked line what i would like to remove from barcode generation.

推荐答案

请尝试以下操作: 条形码.default_writer_options ['write_text'] = False

try this: barcode.default_writer_options['write_text'] = False

这篇关于在pythonBarcode.py库中的条形码下方删除文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆