This project is read-only.

Creating Templated Posture from scratch

Apr 16, 2012 at 2:52 AM

I may not be getting something, but what about when you want to create a templated posture from recorded Kinect skeleton data?  The Constructor requires a kbStream which I don't have.  The blog post say "give it some templates (using the [Capture T] button or using a previously saved file)", but I want to say "record" and then create a new template from the skeleton data.

  public TemplatedPostureDetector(string postureName, Stream kbStream) : base(4)
            this.postureName = postureName;
            learningMachine = new LearningMachine(kbStream);

I am understanding the library correctly, if I want to have multiple templated posture I need to create an array to store them in an when I'm processing a frame call something like this:

if (arrayTemplatedPostureDector.Length > 0)
foreach (TemplatedPostureDetector _templatePostureDetector in arrayTemplatedPostureDector)
Apr 17, 2012 at 1:05 PM
Edited Apr 17, 2012 at 1:06 PM

System.IO.StreamWriter(filename path here)

I think thats what he means but it looks like in code he loops through all the skeletons points and saves the location of those joints to file during the whole gesture