Creating .save File Problem solved

Apr 8, 2013 at 6:25 AM
I was having this problem and saw lots of people were same ....

I solved the problem

Look into recordGesture_Click(object sender, RoutedEventArgs e)

From there go to EndRecordTemplate() function.

in that function will see LearningMachine.AddPath(path);

In that function it is serializing the paths in the file.

So just create a file stream and save that stream in a new file .... and you will get your new gesture file

I used this code in LearningMachine.cs

// this function is already in code just added savethegesturefile() function
public void AddPath(RecordedPath path)
    {
        path.CloseAndPrepare();
        Paths.Add(path);
        SaveTheGestureInFile();
    }
public void SaveTheGestureInFile()
    {
        using (Stream recordStream = File.Create(@"D:\Research\Kinect Toolbox\Sources\GesturesViewer\Data\abc.save"))
        {
            Persist(recordStream);
        }
    }
Aug 11, 2013 at 4:26 PM
You have a sample file because I cannot get my gesture to work after using your code. It saves the file but fails to load it correctly is their something I am doing wrong? or do I have to go slow with the gesture?
Aug 11, 2013 at 7:21 PM
nevermind it loads it but does not detect the gesture is something wrong?
Sep 13, 2013 at 10:28 AM
I am got the same problem,It saves the file ,but not detect my custom gesture ,any one solved this error?
Feb 8, 2014 at 12:11 PM
The gesture saves, but does not detect even when you initialize everything.

Has anyone found out or made it able to detect their own saved gestures.