C# Blob tracking
Posted: 05 February 2011 09:20 PM   [ Ignore ]
Rank
Joined  2009-05-18
Total Posts:  95
New Member

Hello everyone,
I have a C# (EMGU) program that subtracts background from a camera video image
and generates nice clean blobs for the foreground.
Now I need a blob tracker, that will assign ID to the blobs.
Anyone know a C# library that tracks blobs ?

Thanks,
SW

Profile
 
 
Posted: 06 February 2011 02:15 AM   [ Ignore ]   [ # 1 ]
RankRankRankRank
Joined  2009-08-21
Total Posts:  561
Elite

Hey , it will not be difficult to write a tracker yourself. Why dont you jump into CCV codebase and see how the Tracking.cpp works? everything is in there wink ! And you can ask in the forum if you have any doubt smile

 Signature 

~~Amit~~

Website - Twitter - Facebook

Profile
 
 
Posted: 14 March 2011 09:30 AM   [ Ignore ]   [ # 2 ]
Rank
Joined  2009-05-18
Total Posts:  95
New Member

Tracking.cpp is a mess.
It is overly complex, it has a KNN algorithm but doesn’t actually do KNN.
I ended up writing my own, its not really complicated.

Profile
 
 
Posted: 14 March 2011 02:37 PM   [ Ignore ]   [ # 3 ]
Avatar
RankRank
Joined  2008-11-28
Total Posts:  122
Member

If you still need help, I think I can help you, ShacharWeis. I recently did this exact thing, but in a different programming language. The porting, if you choose to do so, wouldn’t be hard, as I wrote my tracking script in a BASIC programming language. Anyway, if you’re interested, let me know, and I’ll PM you some code.

P.S. -> My code works well, but it needs optimization as it LAGs slightly. It works by scanning every line from the source image (webcam) and ‘seeing’ where there’s white and then traveling through the white space to calculate the blob’s centroid and x and y coordinates.

Just let me know… wink

Profile
 
 
Posted: 14 March 2011 02:39 PM   [ Ignore ]   [ # 4 ]
Rank
Joined  2009-05-18
Total Posts:  95
New Member

You can try EMGU, it is a wrapper for OpenCV.
It is C#, I’m not sure about Basic.
Very easy to use.
And it will give you a nice contour finder, that is highly optimized.

Profile
 
 
Posted: 07 April 2011 01:57 AM   [ Ignore ]   [ # 5 ]
Rank
Joined  2011-04-06
Total Posts:  1
New Member

ou can try EMGU, it is a wrapper for OpenCV.
It is C#, I’m not sure about Basic.
Very easy to use.
And it will give you a nice contour finder, that is highly optimized.

sory, but you can show more about how to use ? thank you, i very need that

 Signature 

y8 dog, barbies games dress up ,couple dress up games for girls

Profile
 
 
Posted: 07 April 2011 02:19 AM   [ Ignore ]   [ # 6 ]
RankRankRankRank
Joined  2009-08-21
Total Posts:  561
Elite
ShacharWeis - 14 March 2011 09:30 AM

Tracking.cpp is a mess.
It is overly complex, it has a KNN algorithm but doesn’t actually do KNN.
I ended up writing my own, its not really complicated.

Tracking.cpp is not a mess or complex , it is just big(just bigger than small if you have c++ experience) , it handles handling of every possible case and does a better tracking wink!

 Signature 

~~Amit~~

Website - Twitter - Facebook

Profile
 
 
Posted: 22 May 2011 08:54 PM   [ Ignore ]   [ # 7 ]
Rank
Joined  2007-11-19
Total Posts:  47
New Member

Hi, guys

recently I do need to write my own tracking, yes, I am planning to use EMGU as well

The table is FTIR, I am able to catch the finger in the air, but how exactly shall I notify the client the finger is actually touching the table. I am lost in there.

Can anyone give me any hint? thanks

Profile