ranzan
ranzan

Reputation: 51

Background subtraction using Emgu CV

How can I implement background subtraction using Emgu CV?

Upvotes: 2

Views: 6828

Answers (3)

Tifa
Tifa

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

Chris
Chris

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

Related Questions