mirror of
https://github.com/Aroy-Art/Learning-Python.git
synced 2024-12-26 14:06:10 +01:00
Fixed typo
This commit is contained in:
parent
d630a32acb
commit
5564da5137
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ def getAvarageL(image):
|
||||||
return np.average(im.reshape(w*h))
|
return np.average(im.reshape(w*h))
|
||||||
|
|
||||||
|
|
||||||
def covertImageToAscii(fileName, cols, scale, moreLevels, invert):
|
def convertImageToAscii(fileName, cols, scale, moreLevels, invert):
|
||||||
global gscale1, gscale2
|
global gscale1, gscale2
|
||||||
|
|
||||||
image = Image.open(fileName).convert('L')
|
image = Image.open(fileName).convert('L')
|
||||||
|
@ -107,7 +107,7 @@ def main():
|
||||||
|
|
||||||
print('Generating ASCII art...')
|
print('Generating ASCII art...')
|
||||||
|
|
||||||
aimg = covertImageToAscii(imgFile, cols, scale, args.moreLevels, args.invert)
|
aimg = convertImageToAscii(imgFile, cols, scale, args.moreLevels, args.invert)
|
||||||
|
|
||||||
f = open(outFile, 'w')
|
f = open(outFile, 'w')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue