I would like to capture a single frame and save the frame in a directory.
Could someone help me getting started? So far I just have conection to the web camera:
import cv2.cv as 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
cv.DestroyAllWindows()
Can I use cv.VideoCapture(0) somehow in the code above?
There is documentation for OpenCv here: http://docs.opencv.org/

New Topic/Question
Reply



MultiQuote



|