From ab7b50d3ca0ce4f30102502eb4987db963188ceb Mon Sep 17 00:00:00 2001 From: James Bowman Date: Thu, 10 Jun 2010 23:58:55 +0000 Subject: [PATCH] FindContours on black image, ticket 303 --- tests/python/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/python/test.py b/tests/python/test.py index 986f0a91a..4301abc88 100644 --- a/tests/python/test.py +++ b/tests/python/test.py @@ -464,6 +464,11 @@ class FunctionTests(OpenCVTests): scratch = cv.CreateImage((800,800), 8, 1) cv.SetZero(scratch) seq = cv.FindContours(scratch, storage, cv.CV_RETR_TREE, cv.CV_CHAIN_APPROX_SIMPLE) + x = len(seq) + if seq: + pass + for s in seq: + pass for trial in range(10): scratch = cv.CreateImage((800,800), 8, 1)