Beispiel #1
0
 private void OnImageCaptured(object sender, CameraEventArgs e)
 {
     if (IsCapturing && this.NewFrame != null)
     {
         var frame = new Frame(e.Image);
         this.NewFrame(this, frame, e.CameraFps);
     }
 }
 private void OnImageCaptured(object sender, CameraEventArgs e)
 {
     var handler = this.NewFrame;
     if (IsCapturing && handler != null)
     {
         var frame = new Frame(e.Image);
         handler(this, frame, e.CameraFps);
     }
 }
Beispiel #3
0
 public void OnImageCaptured(IFrameSource frameSource,
                             Frame frame, double fps)
 {
     ImgVideo.Dispatcher.BeginInvoke(
         (Action)(() => ImgVideo.Source = ImageDataConverter.BitmapToBitmapSource(frame.Image)));
 }
Beispiel #4
0
 private void _frameSource_NewFrame(IFrameSource frameSource, Frame frame, double fps)
 {
     BitMaps.Add(frame.Image);
 }
Beispiel #5
0
        public void OnImageCaptured(IFrameSource frameSource, Frame frame, double fps)
        {
            _latestFrame = frame.Image;
            histograms = BitmapConverting.getHistoGrams(_latestFrame, 8, 8);

            BitmapConverting.markRedSectors(_latestFrame, histograms, 8, 8);
            pictureBoxDisplay.Invalidate();
            
            frameIndex++;

            
        }
 public void OnImageCaptured(IFrameSource frameSource,
     Frame frame, double fps)
 {          
     ImgVideo.Dispatcher.BeginInvoke(
         (Action) (() => ImgVideo.Source = ImageDataConverter.BitmapToBitmapSource(frame.Image)));
 }