Remove text below barcode in python barcode.py library

前端 未结 4 1143
星月不相逢
星月不相逢 2021-01-27 05:17

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-b

4条回答
  •  后悔当初
    2021-01-27 05:48

    This is the solution

    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})
    

提交回复
热议问题