예제 #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);
     }
 }
예제 #3
0
 public void OnImageCaptured(IFrameSource frameSource,
                             Frame frame, double fps)
 {
     ImgVideo.Dispatcher.BeginInvoke(
         (Action)(() => ImgVideo.Source = ImageDataConverter.BitmapToBitmapSource(frame.Image)));
 }
예제 #4
0
 private void _frameSource_NewFrame(IFrameSource frameSource, Frame frame, double fps)
 {
     BitMaps.Add(frame.Image);
 }
예제 #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++;

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