[英]How can I detect keypresses using accelerometer/gyroscope data?
A naive way of doing that would be using a basic threshold to decide if a key was pressed or not. 一种简单的方法是使用基本阈值来确定是否按下了按键。 Reading data from your plot you can think about a thresold of say 4ms^-2 for the absolute value of the acceleration.
从图中读取数据,您可以考虑将加速度的绝对值设为4ms ^ -2的阈值。
As you tagged with with machine learning I guess the naive way wasn't what you are looking for so another idea is a neural network. 当您标记了机器学习时,我想天真的方法并不是您要寻找的方法,所以另一个想法是神经网络。 The issue with this approach is that you need data to train the NN with.
这种方法的问题在于,您需要数据来训练NN。 I would make a data collection app tracking the three axis(using alll of them will make the network a bit more less naive I suppose) and the keyboard input(key pressed or not) and then train the network with all this data and see what it comes out.
我将制作一个数据收集应用程序来跟踪三个轴(使用它们的所有功能将使网络看起来更加天真)和键盘输入(是否按下键),然后使用所有这些数据训练网络,看看会发生什么它出来了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.