Initial pass at some boost python bindings.
This commit is contained in:
10
samples/python/boost/camera.py
Normal file
10
samples/python/boost/camera.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import opencv
|
||||
|
||||
capture = opencv.VideoCapture(0)
|
||||
img = opencv.Mat()
|
||||
|
||||
while True:
|
||||
capture.read(img)
|
||||
opencv.imshow("camera",img)
|
||||
if opencv.waitKey(10) == 27:
|
||||
break
|
Reference in New Issue
Block a user