python条形码生成器中的条形码行不相等

2024-10-02 06:31:48 发布

您现在位置:Python中文网/ 问答频道 /正文

This is my output below:

This is expected

有时这些不相等的线条出现在我的图像中。为什么会这样?虽然它们不那么显眼,但看起来很奇怪

codee=str(code)
EAN = barcode.get_barcode_class('ean8')
ean = EAN(codee, writer=ImageWriter())
imag = ean.save('barcode')

Tags: 图像getsavecodeeanbarcodeclass线条

热门问题