From c686a6ebe9ab1c95c759498076191af4d7629be4 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 12 Mar 2012 14:18:11 +0100 Subject: [PATCH] fix cut detection --- pandora/archive/extract.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 3e5a52f1a..3903b7951 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -364,7 +364,8 @@ def cuts(prefix): rgb0 = pixels[image0][(x - 1) % width, y] rgb1 = pixels[image1][x, y] distance += get_distance(rgb0, rgb1) - distances.append(distance / height) + distance = distance / height + distances.append(distance) if distance >= 0.025 and abs(distance - distances[frame - 1]) >= 0.05: cuts.append(frame / fps) return cuts