本文介绍了使用Android检测用户活动(跑步,骑自行车,驾驶)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用我的Android设备检测用户是走路,骑自行车还是开车?
我已经检查了它区分跑步,骑行和驾驶。我对应该使用哪种算法来区分这些活动感到困惑。

Using my Android device how can I detect if the user is walking, cycling or driving?I have checked the Google Fit app. It differentiates between running, cycling and driving. I am puzzled about what algorithms I should use to differentiate between these activities.

我知道我必须使用加速度传感器。但是我仍然无法区分这些活动。

I know I would have to use the accelerometer sensor. But still I can't differentiate these activities.

推荐答案

您可以为此使用GooglePlayServices。

You can use the GooglePlayServices for this.

它为ActivityRecognition提供了特殊的api,该API返回每个用户活动的置信度。

It Provides special apis for ActivityRecognition, which returns the User activity with confidence level for each.

这篇关于使用Android检测用户活动(跑步,骑自行车,驾驶)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-15 12:36