From 007cc4fd5c277d30ea1dc3cfb3b0c96c9c152493 Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Sun, 13 Nov 2016 17:13:36 +0100 Subject: [PATCH] do not import matplotlib in brother_ql.reader --- brother_ql/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brother_ql/reader.py b/brother_ql/reader.py index e65e3b8..98500f9 100755 --- a/brother_ql/reader.py +++ b/brother_ql/reader.py @@ -7,7 +7,6 @@ import sys from PIL import Image import numpy as np -from matplotlib import pyplot as plt logger = logging.getLogger(__name__) @@ -280,6 +279,7 @@ class BrotherQLReader(object): array = np.fliplr(array) im = Image.fromarray(array) im = im.point(lambda x: 0 if x == 1 else 255, '1') # -> Monocolor and invert + #from matplotlib import pyplot as plt #plt.imshow(im) #plt.show() img_name = 'page{:04d}.png'.format(self.page)