Reputation: 51
How can I implement background subtraction using Emgu CV?
Upvotes: 2
Views: 6828
Reputation: 314
This question is old but in case someone is looking for a simple answer.
I had the same problem but on EmguCV 3.1.0 using the class Named BackgroundSubtractor
(Link to the class) did the work for me.
Hope it can help someone
Upvotes: 0
Reputation: 3482
Yes this is quite possible take a look at the "MotionDetection" example provided with EMGU this should get you started.
Effectively the code that removes the foreground is effectively named "_forgroundDetector" it is the "_motionHistory" that presents stores what movement has occurred.
The example has everything you need if you have trouble running it let me know,
Cheer
Chris
See:Removing background from _capture.QueryFrame()
Upvotes: 3