Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Skeleton tracking (http://www.chiefdelphi.com/forums/showthread.php?t=129718)

faust1706 07-06-2014 13:50

Skeleton tracking
 
I am wondering what is a good library to do skeleton tracking on. I was thinking openni, but it is not longer funded. My team has kinects and asus xtions. We have tracked stuff in depth before (balls in this year's game), and have tracked colored hands to control the robot, but we do not want to reinvent the wheel and write a custom skeleton tracking program. So: could someone please direct me to a good library?

adciv 10-06-2014 16:30

Re: Skeleton tracking
 
You can use the Kinect Library with the Kinect. Microsoft offers it for download, but I believe it's C#/Windows only. Do you need Linux support? Also, the drivers station added support in 2012.

yash101 10-06-2014 22:59

Re: Skeleton tracking
 
I haven't played around with it, but doesn't the Kinect SDK (Windows) contain the functions required to make a robust skeletal tracker? Otherwise, i guess you could use OpenCV and perform it the hard way -- have a seperate filter for each part. basically create a skin tracker and have a blur with quite a high kernel so it breaks the skin up into parts. Use findcontours() with color detection for skin. Instead of boundRect(), use minAreaRect() and change the bounding rectangle vector from vector<Rect> to vector<RotatedRect>. The syntax for minAreaRect() is exactly the same as boundRect(), so nothing much to worry about there! Get the angle of rotation from the RotatedRect, RotatedRect.angle, i believe. That way, you can get the angle of each limb. Classify the body into different parts. I think, if I understand, that t2bl2r() function that you wrote does something similar. This way, you will get the angle of the limbs, along with the center point of the limb, because minAreaRect() stores the center point. The only problems I can think of are that when you get too far, the blur will cause the part to disappear. You can, for sure, come up with a better algorithm, but this is what I thought of off the top of my head.

I am just wondering, why am I receiving the message,
PHP Code:

Your IP has been banned due to its location and needs to be unbanned by an administrator
Please send an e-mail to webmasterthis domain, and explain what FRC team you are onwhere you are located

? I am on vacation, in India.

faust1706 12-06-2014 17:04

Re: Skeleton tracking
 
checking up: we got it to work with the kinect sdk for windows and skel track. Most of the battle is setting everything up. Here is the code for sdk: http://pastebin.com/1s0QQwvw

Environment: Visual C# Express 2010

yash101 13-06-2014 05:42

Re: Skeleton tracking
 
Are you guys using Windows now? C# is platform specific to Windows only. I prefer to use Linux because it is much cheaper to get it to run. You don't need quite as impressive of hardware. But it's funny how i'm still working on getting the kinect to work! :yikes:

faust1706 13-06-2014 14:37

Re: Skeleton tracking
 
I am aware of the limitations of c#, but this has to run on the driver station, so it has to be in windows. Luckily we have a mentor who develops in c# for a living, so it shouldn't be too hard. Really the only thing left is to send the coordinates of the right and left hand over to labview via udp.

brennonbrimhall 15-06-2014 23:01

Re: Skeleton tracking
 
I've been researching Skeltrack. It may be worth a look for you.

faust1706 16-06-2014 00:02

Re: Skeleton tracking
 
Quote:

Originally Posted by brennonbrimhall (Post 1390015)
I've been researching Skeltrack. It may be worth a look for you.

That's what we ended up using in the end :D I'm going to post a picture of our interface here soon

brennonbrimhall 16-06-2014 08:03

Re: Skeleton tracking
 
Quote:

Originally Posted by faust1706 (Post 1390019)
That's what we ended up using in the end :D I'm going to post a picture of our interface here soon

Sorry. I must have skipped right past that post.

Are you planning to release your code?

faust1706 16-06-2014 13:52

Re: Skeleton tracking
 
Yes, once we test everything. We are still debating about what the best user interface is. It will be released before.july 4th for sure.

yash101 19-06-2014 13:00

Re: Skeleton tracking
 
Sweet! I'm learning C# now. I am trying to get Visual Studio to work within Linux and hopefully C# too.

I do not know about KFW, however!


All times are GMT -5. The time now is 02:35.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi