11 lines
181 B
Python
11 lines
181 B
Python
import opencv
|
|
|
|
capture = opencv.VideoCapture(0)
|
|
img = opencv.Mat()
|
|
|
|
while True:
|
|
capture.read(img)
|
|
opencv.imshow("camera",img)
|
|
if opencv.waitKey(10) == 27:
|
|
break
|