mirror of
https://github.com/opencv/opencv.git
synced 2026-09-11 21:01:33 -05:00
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
|