return average color

This commit is contained in:
j 2010-09-04 15:41:57 +02:00
parent 32558967e0
commit 5e2ea9551a
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ def average_color(prefix):
for i in range(0, len(pixels)):
p = np.sum(pixels[i], axis=0) / frames
color += p
print list(color)
return list(color)
def get_distance(rgb0, rgb1):
dst = math.sqrt(pow(rgb0[0] - rgb1[0], 2) + pow(rgb0[0] - rgb1[0], 2) + pow(rgb0[0] - rgb1[0], 2))