1

I am trying to get webcam integration working with a WPF application. There have been a few questions here about getting a webcam functioning in WPF, in this case for image capture. Many people recommend the VideoCaptureElement from the WPF MediaKit. We are currently using this, however it doesn't appear to be particularly performant, there is high CPU usage, and the application experiences slow down after regular use of the camera.

We are looking into either integrating a Silverlight hosted solution, or an ActiveX webcam control hosted using a WindowsFormsHost. Has anyone successfully used either approach in a WPF application?

xmedeko
  • 7,336
  • 6
  • 55
  • 85
devdigital
  • 34,151
  • 9
  • 98
  • 120
  • 1
    Looks like this Codeplex project http://wpfcap.codeplex.com/ provides a Webcam control for WPF that cares for CPU usage. – Ucodia Oct 24 '11 at 14:31
  • There is also another WPF Webcam project on CodePlex called Easy Web Cam. http://easywebcam.codeplex.com/ Have you tried any of these other options? – Bryant Oct 24 '11 at 15:30

1 Answers1

2

We decided to drop WPF MediaKit because it proved not to work on certain cameras (to do with pixel formats), and the project wasn't actively being developed.

Instead, we are now using the Capture class in the Emgu CV project, which works very well. There are lots of articles online about using Emgu CV to perform webcam integration.

devdigital
  • 34,151
  • 9
  • 98
  • 120
  • What about to use MS Expression Encoder 4? It is free 100% and we can sure it will support ANY WebCam... – NoWar Feb 07 '13 at 18:43
  • 1
    You can see an example using Emgu CV here - http://fewtutorials.bravesites.com/entries/emgu-cv-c/level-1---lets-make-a-camera-application – devdigital Feb 07 '13 at 20:06
  • Thanks for answer... I have downloaded source code http://www.box.com/s/s3o8unva0sdlma9zl5p5 and it has some errors... I am guessing to use MS Expression Encoder SDK solution... It is stable 100% – NoWar Feb 07 '13 at 20:53