AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

How to do background subtractor code in C# ?

The forum is to discuss topics related to different areas of image processing and computer vision.

How to do background subtractor code in C# ?

Postby ramclinton » Tue Jan 10, 2017 8:36 am

Hi guys,

I'm working on my final project in college. I am still a beginner in C #, I want to detect motion using background subtraction.
But i don't know how to make the code. If anyone could help me? or suggestion to make the code in c #?

Best regards,
Clinton
ramclinton
 
Posts: 4
Joined: Tue Jan 10, 2017 8:18 am

Re: How to do background subtractor code in C# ?

Postby andrew.kirillov » Tue Jan 10, 2017 10:13 am

Hello,

You can start from this article. The you can check samples/code of the AForge.NET Framework.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3245
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: How to do background subtractor code in C# ?

Postby ramclinton » Tue Jan 10, 2017 4:53 pm

Thank you so much Mr. Andrew, i will try that.

And how about learning rate ? how to add a learning rate
to the code in that article (https://www.codeproject.com/Articles/10 ... Algorithms) ?
I hope someday, if i have a problen about the code,
you can help me again Mr. Andrew..

Best regards
clinton
ramclinton
 
Posts: 4
Joined: Tue Jan 10, 2017 8:18 am

Re: How to do background subtractor code in C# ?

Postby andrew.kirillov » Tue Jan 10, 2017 9:17 pm

Not sure what are you talking about. That article says nothing about learning rate. Did you read it?
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3245
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: How to do background subtractor code in C# ?

Postby ramclinton » Wed Jan 11, 2017 1:51 am

Pardon me, i just newbie but i had been read it,
i mean like this Mr. Andrew :
Computer Vision: background subtraction.

video illustrates the behaviour of the simplest imaginable background subtraction, which does adjust to a changing background:

background = (1-α)background + α*newframe

For the video illustration, the speed of adjustment was sped up by a factor of 1000x (α=0.1).
α is learning rate.

Thank you for your respon Mr. Andrew,
best regards,
clinton
ramclinton
 
Posts: 4
Joined: Tue Jan 10, 2017 8:18 am




Return to Image Processing and Computer Vision