opencv/tests/python/leak1.py

8 lines
174 B
Python
Raw Normal View History

2011-01-19 08:25:24 +08:00
import cv
import numpy as np
cv.NamedWindow('Leak')
while 1:
leak = np.random.random((480, 640)) * 255
cv.ShowImage('Leak', leak.astype(np.uint8))
cv.WaitKey(10)