Saturn Kinect - Motion Manager and more
- Posted: Aug 29, 2012 at 6:00 AM
- 4,593 Views
Today's project by Keyvan Saturn is still in an Alpha state, but even so it looks very promising...
Library contains classes for managing Kinect skeleton frames and detect the joint movements and detect motions by comparing skeleton motions that it can used in kinect-based games for detecting motions like Punch,Kicking,Running and etc.
Features
- Use custom Minimum Similarity Percent and Maximum Errors.
- Set delay for Skeleton Capture.
- Classes for detecting motions and comparing it with other motions.
- Classes for moving mouse cursor with hand movements.
Project Information URL: http://saturnkinect.codeplex.com/
Project Download URL: http://saturnkinect.codeplex.com/releases/
Project Source URL: http://saturnkinect.codeplex.com/releases/
Implementing Motion Manager:
using System;
using System.Collections.Generic;
using Microsoft.Kinect;
using SaturnKinect.Base;
using SaturnKinect.Interaction.Base;
using SaturnKinect.Interaction.Motion;
class Program
{
static void Main(string[] args)
{
List<SkeletonMotion> SavedMotions=new List<SkeletonMotion>(); // The Saved Motions
KinectSensor kinectSensor = KinectSensor.KinectSensors[0];
KinectManager kinectManager = new KinectManager();
kinectManager.StartSensor(kinectSensor);
SkeletonChangeManager skeletonChangeManager = new SkeletonChangeManager(
kinectManager
, 0.2f /* Detect 20 Cm joint changes */
);
MotionManager motionManager = new MotionManager(
skeletonChangeManager,
SavedMotions,
60 /* Minimum motion similarity as percent */,
0.1f /* Maximum Joint Change Similarity Error */,
60 /* Minimum skeleton change similarity as percent */,
3 /* Skeleton Change Buffer */
);
motionManager.MotionDetected+=
new MotionManager.MotionDetectedEventHandler(motionManager_MotionDetected);
}
static void motionManager_MotionDetected(SkeletonMotion motion)
{
Console.WriteLine("Motion {0} Detected !", motion.Name);
}
}
Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation,
please create a new thread in our Forums,
or
Contact Us and let us know.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?