public WebCam() { wcc = new WebCamCapture(); wcc.TimeToCapture_milliseconds = 30; wcc.CaptureHeight = 240; wcc.CaptureWidth = 320; wcc.ImageCaptured += new WebCamCapture.WebCamEventHandler(wcc_ImageCaptured); wcc.Start(0); }
public WebCamVideoSource(float fps, int width, int height) { wcc = new WebCamCapture(); wcc.TimeToCapture_milliseconds = (int)((1f / fps) * 1000);//50hz wcc.CaptureHeight = height; wcc.CaptureWidth = width; wcc.ImageCaptured += new WebCamCapture.WebCamEventHandler(wcc_ImageCaptured); }
public WebCamVideoSource() { wcc = new WebCamCapture(); wcc.TimeToCapture_milliseconds = 20;//50hz wcc.CaptureHeight = 240; wcc.CaptureWidth = 320; wcc.ImageCaptured += new WebCamCapture.WebCamEventHandler(wcc_ImageCaptured); }