From 5e2ea9551aad9041d1e2bb82d0b5a89a741be308 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 4 Sep 2010 15:41:57 +0200 Subject: [PATCH] return average color --- pandora/archive/extract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 6326258f..10e9609b 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -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))