Пример #1
0
        /// <summary>
        /// Captures an image using webcam. (Based on metricam library)
        /// </summary>
        /// <returns>Image object as captured</returns>
        static Image CaptureImage()
        {
            WebCam camera = new WebCam();

            camera.Connect();
            Image image = camera.GetBitmap();

            camera.Disconnect();
            return(image);
        }