Beispiel #1
0
        public void Snapshot()
        {
            var bytes    = cameraProvider.ConnectedCamera.TakeSnapshot();
            var snapshot = new PupilReactionSnapshot
            {
                Image        = bytes,
                DateTime     = DateTime.Now,
                ExposureTime = cameraProvider.ConnectedCamera.ExposureTime,
                Gain         = cameraProvider.ConnectedCamera.Gain,
                PixelFormat  = cameraProvider.ConnectedCamera.PixelFormat,
                PWM          = behavior.CurrentBright
            };

            snapshotStorage.Add(snapshot);
        }
Beispiel #2
0
 public void Add(PupilReactionSnapshot snapshot)
 {
     snapshots.Add(snapshot);
 }