{"id":19499449,"url":"https://github.com/charent/phone_attitude_recognition","last_synced_at":"2025-04-15T16:50:21.517Z","repository":{"id":202578461,"uuid":"707506082","full_name":"charent/Phone_Attitude_Recognition","owner":"charent","description":"手机输入姿态识别。通过采集不同使用姿态下的手机重力感应器、线性加速度感应器、加速度感应器和陀螺仪的数据，用于训练模型并部署。","archived":false,"fork":false,"pushed_at":"2024-02-02T01:27:52.000Z","size":465,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T22:35:28.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-20T03:44:43.000Z","updated_at":"2025-01-14T08:19:52.000Z","dependencies_parsed_at":"2024-02-02T02:32:52.163Z","dependency_job_id":null,"html_url":"https://github.com/charent/Phone_Attitude_Recognition","commit_stats":null,"previous_names":["charent/phone_attitude_recognition"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charent%2FPhone_Attitude_Recognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charent%2FPhone_Attitude_Recognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charent%2FPhone_Attitude_Recognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charent%2FPhone_Attitude_Recognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charent","download_url":"https://codeload.github.com/charent/Phone_Attitude_Recognition/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249112700,"owners_count":21214747,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T22:04:15.799Z","updated_at":"2025-04-15T16:50:21.485Z","avatar_url":"https://github.com/charent.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 手机输入姿态识别\n通过采集不同使用姿态下的手机重力感应器、线性加速度感应器、加速度感应器和陀螺仪的数据，得到模型的训练数据。训练出来的模型使用`fastapi`进行API发布部署，手机采集传感器数据后`post`到服务端，服务端识别出姿态后返回具体的姿态到手机端。\n\n识别以下三种姿态:\n```python\n{\n    0: \"正常的输入操作\",\n    1: \"输入中换人\",\n    2: \"行走输入\"\n}\n```\n安卓手机端的数据采集项目见：[Android_Sensor_Data_Collection](https://github.com/charent/Android_Sensor_Data_Collection)\n\n\n# 数据处理及模型训练\n见`attitude_recognition`文件夹下的[readme.md](./attitude_recognition/readme.md)。 \n\n训练的模型有深度学习模型`rnn_model.py`和机器学习模型`rnn_model.py`，数据处理及窗口滑动平均处理见`utils/data_process.py`。\n\n## 采集到的数据样例\n![data_sample](img/data_sample.png)\n\n## 各模型效果\n![reslut](img/result.png)\n\n\n# 服务端\n见`attitude_recognition_server`文件夹下的[readme.md](./attitude_recognition_server/readme.md) \n。 \n\napi`/download_apk`和`/check_update`是更新android端版本的。\n\n## 服务端架构\n![server framework](img/server_des.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharent%2Fphone_attitude_recognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharent%2Fphone_attitude_recognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharent%2Fphone_attitude_recognition/lists"}