Diff of /ecgSignalsToImage.py [000000] .. [9e019c]

Switch to unified view

a b/ecgSignalsToImage.py
1
for count, i in enumerate(array):
2
  fig = plt.figure(frameon=False)
3
  plt.plot(i) 
4
  plt.xticks([]), plt.yticks([])
5
  for spine in plt.gca().spines.values():
6
     spine.set_visible(False)
7
8
  filename = directory + '/' + str(count)+'.png'
9
  fig.savefig(filename)
10
  im_gray = cv2.imread(filename, cv2.IMREAD_GRAYSCALE)
11
  im_gray = cv2.resize(im_gray, (128, 128), interpolation = cv2.INTER_LANCZOS4)
12
  cv2.imwrite(filename, im_gray)
13