Exemple #1
0
        public LocalCameraDevice(string aCameraName, string MonikerString, int aCameraID)
        {
            CameraName  = aCameraName;
            CameraID    = aCameraID;
            videoDevice = new VideoCaptureDevice(MonikerString);

            // Console.WriteLine("[" + CameraID + "]: " + CameraName + " created ");

            videoDevice.NewFrame += new NewFrameEventHandler(NewFrameAcquired);

            Statistics = new LocalCameraDeviceStatistics(this, 1000);

            State = CameraState.CAMERA_STOPPED;
        }
        public LocalCameraDevice(string aCameraName, string MonikerString, int aCameraID)
        {
            CameraName = aCameraName;
            CameraID = aCameraID;
            videoDevice = new VideoCaptureDevice(MonikerString);

               // Console.WriteLine("[" + CameraID + "]: " + CameraName + " created ");

            videoDevice.NewFrame += new NewFrameEventHandler(NewFrameAcquired);

            Statistics = new LocalCameraDeviceStatistics(this, 1000);

            State = CameraState.CAMERA_STOPPED;
        }