Przeglądaj źródła

Updated so we quit creating local variable pix when we output the image size into words.txt

david 5 lat temu
rodzic
commit
32c7af0c46
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      dataLoad.py

+ 2 - 2
dataLoad.py

@@ -363,7 +363,7 @@ def autotrain(difficult):
                 key_word[f'{difficult}_{x}'] = word
                 im = Image.open(fname)
                 imager.output_image(im)
-                pix = im.load()
+                # pix = im.load()
                 size = im.size
                 with open('words.txt', 'a') as f:
                     f.write(f'{difficult}_{x} = {size[0]} x {size[1]} is {word}\n')
@@ -373,7 +373,7 @@ def autotrain(difficult):
                 # Output the image
                 im = Image.open(fname)
                 imager.output_image(im)
-                pix = im.load()
+                # pix = im.load()
                 size = im.size
                 # img_s = output_image(pix, size)
                 # for l in img_s: