Skip to content
Snippets Groups Projects
Commit bd4097f0 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Changed variable name

parent 5690b9e0
No related branches found
No related tags found
No related merge requests found
......@@ -55,9 +55,9 @@ folder = '../images/faulty/'
if not os.path.exists(folder):
os.mkdir(folder)
for filename, l in classified.iteritems():
if len(l) == 1:
for filename, chars in classified.iteritems():
if len(chars) == 1:
imsave('%s%s' % (folder, filename), char.image.data, cmap='gray')
else:
for i, char in enumerate(l):
for i, char in enumerate(chars):
imsave('%s%s_%d' % (folder, filename, i), char.image.data, cmap='gray')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment