- Home /
custom finger gesture recognition with $1 or $P
Hello, I am making creating a game where I need to get custom finger gesture. Our teacher said we have to use the $1 or $P recognizer ( https://depts.washington.edu/aimgroup/proj/dollar/ ). But I don't know how to integrate this ( C#) in unity. Any advice or sample where it is made ? Thanks.
So, I used this, https://www.assetstore.unity3d.com/en/#!/content/21660 which is what I needed but how do you add X$$anonymous$$L files with your custom gestures ? Thanks
Answer by Paul-Jan · Apr 14, 2016 at 01:49 PM
Quoting from the source,
//Load pre-made gestures
TextAsset[] gesturesXml = Resources.LoadAll<TextAsset>("GestureSet/10-stylus-MEDIUM/");
foreach (TextAsset gestureXml in gesturesXml)
trainingSet.Add(GestureIO.ReadGestureFromXML(gestureXml.text));
//Load user custom gestures
string[] filePaths = Directory.GetFiles(Application.persistentDataPath, "*.xml");
foreach (string filePath in filePaths)
trainingSet.Add(GestureIO.ReadGestureFromFile(filePath));
So if you want to create custom gestures, you simply record them using the demo (which creates the xml file in Application.persistentDataPath), then copy that file to the GestureSet/10-styles-MEDIUM resources file or leave it in persistentDataPath.
That is, as long as you are using the demo. Your final application can load the XML file from wherever it wants to.
Your answer
Follow this Question
Related Questions
3D Gesture recognition using accelerometer 1 Answer
Help - Kinect for windows v2, Gesture recoginition 3 Answers
Custom projection matrices make shadows impossible 2 Answers
Android Custom Activity -1 Answers
customizing loading page 2 Answers