import barcode
from barcode.writer import ImageWriter
code=input("Enter Code")
EAN = barcode.get_barcode_class('ean8')
ean = EAN(code, writer=ImageWriter())
imag = ean.save('barcode')
Sometimes these unequal lines appears in my image. Why is that so? They are not that visible though, but it seems quite odd when they appear multiple times. The same thing happens when I try to print code 128 and code 39.
My output:
Expected Output:
import barcode
from barcode.writer import ImageWriter
code=input("Enter Code")
EAN = barcode.get_barcode_class('ean8')
ean = EAN(code, writer=ImageWriter())
imag = ean.save('barcode')
Sometimes these unequal lines appears in my image. Why is that so? They are not that visible though, but it seems quite odd when they appear multiple times. The same thing happens when I try to print code 128 and code 39.
My output:

Expected Output:
