# HG changeset patch # User Nicolas Saunier # Date 1318875410 14400 # Node ID 8e7b354666ecbe2638ce38666980f4b96b49ebb6 # Parent e99f6c44a655c1bf00228536c178a53848e58aca corrected bug in to get images from video diff -r e99f6c44a655 -r 8e7b354666ec python/cvutils.py --- a/python/cvutils.py Mon Oct 17 00:07:18 2011 -0400 +++ b/python/cvutils.py Mon Oct 17 14:16:50 2011 -0400 @@ -103,10 +103,11 @@ if capture.isOpened(): ret = False while len(images)0: - images.append(img) + if img.size>0: + images.append(img) return images def printCvMat(cvmat, out = stdout):