mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
204 B
13 lines
204 B
15 years ago
|
import cv
|
||
|
import time
|
||
|
|
||
|
cv.NamedWindow("camera", 1)
|
||
|
|
||
|
capture = cv.CaptureFromCAM(0)
|
||
|
|
||
|
while True:
|
||
|
img = cv.QueryFrame(capture)
|
||
|
cv.ShowImage("camera", img)
|
||
|
if cv.WaitKey(10) == 27:
|
||
|
break
|