android - Smartphone accelerometer gestures algorightms -
android - Smartphone accelerometer gestures algorightms -
i developing simple mobile app iphone , android platform , looking algorithms allow me trigger events (functions) when observe gesture using internal accelerometer. work phonegap utilizes html5 , javascript reads 3 coordinates (x,y , z) accelerometer on pre-set interval (e.g. every 0.04 sec.).
i wrote simple function detects shaking motion , works quite fine primitive (it detects shaking, not direction) - , want observe other gestures such as: - tilt (to left/right) - shake up/down - shake left/right - circular motion - turn upside downwards - etc....
does have algorithms (or @ to the lowest degree mathematical formulas/functions) can calculate (detect) kind of gestures based on input values have (x,y,z , time interval each call)?
i looking code in programming language (i rewrite javascript myself. in advance!
dynamic time warping (dtw) job, recommend using fast dynamic time warping (fast dtw). mobile scenarios, fastdtw applicable! detailed version, take @ research paper: http://cs.fit.edu/~pkc/papers/tdm04.pdf
edit: time ago, wrote thesis 3d gestures controlling devices in smart-home setting. see in action here (there link pdf, too). used fastdtw recognizing gestures on iphone.
android iphone cordova accelerometer gesture-recognition
Comments
Post a Comment