Skip to content

手机输入姿态识别。通过采集不同使用姿态下的手机重力感应器、线性加速度感应器、加速度感应器和陀螺仪的数据,用于训练模型并部署。

License

Notifications You must be signed in to change notification settings

charent/Phone_Attitude_Recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

手机输入姿态识别

通过采集不同使用姿态下的手机重力感应器、线性加速度感应器、加速度感应器和陀螺仪的数据,得到模型的训练数据。训练出来的模型使用fastapi进行API发布部署,手机采集传感器数据后post到服务端,服务端识别出姿态后返回具体的姿态到手机端。

识别以下三种姿态:

{
    0: "正常的输入操作",
    1: "输入中换人",
    2: "行走输入"
}

安卓手机端的数据采集项目见:Android_Sensor_Data_Collection

数据处理及模型训练

attitude_recognition文件夹下的readme.md

训练的模型有深度学习模型rnn_model.py和机器学习模型rnn_model.py,数据处理及窗口滑动平均处理见utils/data_process.py

采集到的数据样例

data_sample

各模型效果

reslut

服务端

attitude_recognition_server文件夹下的readme.md

api/download_apk/check_update是更新android端版本的。

服务端架构

server framework

About

手机输入姿态识别。通过采集不同使用姿态下的手机重力感应器、线性加速度感应器、加速度感应器和陀螺仪的数据,用于训练模型并部署。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages