init matches dicts on convert

This commit is contained in:
Gordon Shumway 2019-04-26 03:51:09 -04:00 committed by GitHub
parent 6447aada32
commit 1b4ddcd2a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -42,8 +42,6 @@ class ASCII(callbacks.Plugin):
self.__parent = super(ASCII, self)
self.__parent.__init__(irc)
self.colors = 83
self.matches = {}
self.matches16 = {}
self.ircColors= {
(11.5497, 31.8768, 18.1739):16,
(17.5866, 15.7066, 25.9892):17,
@ -358,6 +356,8 @@ class ASCII(callbacks.Plugin):
image2 = image2.convert('RGB')
lumamap = np.array(image)
colormap = np.array(image2)
self.matches = {}
self.matches16 = {}
# ascii image is a list of character strings
aimg = []
# generate list of dimensions
@ -488,6 +488,8 @@ class ASCII(callbacks.Plugin):
image2 = image2.convert('RGB')
lumamap = np.array(image)
colormap = np.array(image2)
self.matches = {}
self.matches16 = {}
# ascii image is a list of character strings
aimg = []
# generate list of dimensions