mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
FindContours on black image, ticket 303
This commit is contained in:
parent
a7faa9afa4
commit
ab7b50d3ca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user