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