ox.image: don't create array of identical arrays
This commit is contained in:
parent
87a89f0594
commit
cc72dc96d3
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ def getImageHash(image_file, mode):
|
|||
# 4 4 5 5 6 6 7 7
|
||||
# 4 4 5 5 6 6 7 7
|
||||
image_data = image.getdata()
|
||||
zone_values = 8 * [[]]
|
||||
zone_values = [[] for i in range(8)]
|
||||
for pixel_index, pixel_value in enumerate(image_data):
|
||||
zone_values[ZONE_INDEX[pixel_index]].append(pixel_value)
|
||||
for zone_index, pixel_values in enumerate(zone_values):
|
||||
|
|
Loading…
Reference in a new issue