人类活动检测器 [英] Human Activity Detector

查看:81
本文介绍了人类活动检测器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我得到了有关iPhone应用程序的最终项目.我必须发现人们跌倒了.因此,当一个人跌倒时,该应用程序将呼叫紧急服务.您是否知道与此类似的项目,或者我在其中可以找到有关跌倒活动期间加速度计或陀螺仪输入的变化信息的任何资源.


谢谢,

Hello,

I get a final project about iphone application. I have to detect fall down of people. So, when a person falls down, the app will call the emergency service. Do you know a project similar to this, or any resources where I can find information about changes of accelerometer or gyro inputs during falling down activity.


Thanks,

推荐答案

在技术上不可行.

iPhone应用程序仅在前台运行.

您不能在iOS上的后台运行应用程序,也不能让应用程序获得加速度计或陀螺仪事件,除非它们在前台.

通常,如果闲置一小段时间,iPhone将会关闭电源.

有一些技巧可以防止这种情况发生,但是随后您的电池很快就会耗尽.

本质上,您所希望的最好的应用程序将是检测iPhone是否在一小时或两小时内掉落(或连续运行的iPhone的电池使用时间长短),或者您可以在iPhone插入后无限期地检测到它充电器.两者都不是特别实用.

如果您只是想了解如何访问加速度计,可以在Google"iPhone加速度计教程"中找到,您将找到许多有关如何访问加速度计的示例,这里是一个:http://www.switchonthecode.com/tutorials/iphone-tutorial-reading-the-accelerometer [
Not technically feasible.

iPhone apps only run in the foreground.

You can''t run an app in the background on iOS and you can''t have your app get accelerometer or gyro events unless it''s in the foreground.

Normally an iPhone will power down if left idle for a short amount of time.

There are tricks to prevent it from doing that, but then your battery runs down very quickly.

Essentially, the best you could hope for is an app that will detect if the iPhone drops within an hour or two (or whatever the battery life of a continuously running iPhone is) -- or you could detect it indefinitely while the iPhone is plugged into a charger. Neither is particularly practical.

If you just want to find out how to access the accelerometer, you can google "iPhone accelerometer tutorial" you''ll find lots of examples of how to access it, here''s one: http://www.switchonthecode.com/tutorials/iphone-tutorial-reading-the-accelerometer[^]

As a practical application, though, it won''t work on the existing iPhone.

It might be something that could be done on Android -- I haven''t developed for Android, but you may be able to run a background/low-power app in that environment.

Of course, you still have the problem as other people said of determining the difference between the phone falling and a person falling. Perhaps, if the phone falls, the app could activate and give the person a certain amount of time to hit a button to indicate he is okay -- and if he isn''t okay it sends a text message to someone to alert them. (I''m not sure if alerting emergency services is appropriate if the cat knocks the phone off the table and no one is there to turn the app off...)


这篇关于人类活动检测器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆