简体   繁体   English

如何使用加速度计/陀螺仪数据检测按键?

[英]How can I detect keypresses using accelerometer/gyroscope data?

When plotting gyroscope accelerometer data you can detect when the user presses a key. 在绘制陀螺仪加速度计数据时,您可以检测用户何时按下一个键。

But how do I detect it programmatically or using RapidMiner? 但是,如何通过编程方式或使用RapidMiner进行检测? 在此处输入图片说明

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.

相关问题 使用陀螺仪和加速度计计算位置 - Calculating location using gyroscope & accelerometer 如何在 Python 中访问手机的加速度计和陀螺仪? - How do I access my phone's accelerometer and gyroscope in Python? 如何使用应用程序获取Android移动设备的传感器读数(例如,加速度计,陀螺仪,GPS,照相机馈送)? - How do I get sensor readings of an android mobile (eg. accelerometer, gyroscope, GPS, Camera feed) using app? 在Android可穿戴设备上连续感应加速度计和陀螺仪数据 - Continous Sensing of Accelerometer and Gyroscope Data on Android Wearable Android:同时从加速度计和陀螺仪获取数据 - Android: Getting data simultaneously from Accelerometer and Gyroscope Microsoft Band 2 Data停止了加速度计和陀螺仪的流式传输 - Microsoft Band 2 Data stops streaming for accelerometer and gyroscope 从记录的加速度计/陀螺仪数据中消除噪声 - Removing Noise from recorded accelerometer/gyroscope data 如何用加速度计和陀螺仪通过手机测量汽车的速度? - How to measure the speed of car by phone with accelerometer and gyroscope? 什么是陀螺仪和加速度计以及如何在Android中使用 - what is gyroscope and Accelerometer and how it use in Android 使用Android陀螺仪代替加速度计。 我发现很多点点滴滴,但没有完整的代码 - Using Android gyroscope instead of accelerometer. I find lots of bits and pieces, but no complete code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM