简体   繁体   English

如何从特征点识别预定义手势

[英]How to recognize predefined gesture from feature points

I'm working on a hand gesture recognition project. 我正在做一个手势识别项目。 Till now I'm able to detect the centre of the hand and able to track the hand for some consecutive frames and I'm able to get a list of points Like 到现在为止,我能够检测到手的中心并能够连续几帧跟踪手,并且可以获得点列表,例如

1 1个

在此处输入图片说明

2 2

在此处输入图片说明

Now I want to recognize the path as a gesture like for #1 RIGHT for #2 CIRCLE How should I do it ? 现在,我想将路径识别为类似#2的#1 RIGHT之类的手势我应该如何做? and It should include a method to add other gestures to . 并且应该包括一种将其他手势添加到的方法。 Can I use SVM for this purpose? 我可以为此使用SVM吗? I feel it can be done by using FSM but I can't get how to implement it . 我觉得可以通过使用FSM来完成,但是我不知道如何实现它。 I'm using Python and Opencv . 我正在使用Python和Opencv。 Thanx in Advance! 提前感谢!

There are various ways to approach this, but I believe that the easiest is to use a template matching approach. 有多种方法可以解决此问题,但我认为最简单的方法是使用模板匹配方法。

For each gesture, have a sample that you compare to, and the result is simply the one most resembling the current sample. 对于每个手势,都有一个您要比较的样本,其结果就是最类似于当前样本的样本。

For the comparison between a sample and a template, a good and simple to implement algorithm is the Dynamic Time Warping (DTW) https://en.wikipedia.org/wiki/Dynamic_time_warping 为了在样本和模板之间进行比较,一种很好且易于实现的算法是动态时间规整(DTW) https://en.wikipedia.org/wiki/Dynamic_time_warping

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM