mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 12:40:05 +08:00
57d4c86b2b
Also, removed the one from modules/python/src2/cv.py and cleared its executable bit, since it's not a script.
10 lines
207 B
Python
Executable File
10 lines
207 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import cv2.cv as 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)
|