婴儿运动检测 [英] baby motion detection
问题描述
我有一个婴儿护理系统项目,需要您的帮助.我需要一段代码来检测婴儿的运动并向父母发送警报.
如果您能帮助我,我将不胜感激. :)
Hi,
I have a project for baby care system and I need your help. I need a piece of code for detecting the motion of baby and send an alert to parents.
I''ll be grateful if you help me. :)
推荐答案
bool GetbBabyHasMoved()
{
return false;
}
啊!记得把婴儿粘在床上...
现在请认真对待:
这完全取决于他们给您的锻炼方式...您需要检测的最小动作是什么?
使用网络摄像头并比较图像可能会有所帮助...
将传感器放在婴儿身上可能会有所帮助...
使用带有一些api的手机找到它的位置可能会有所帮助...
...
请更具体地回答您的问题...
Ah! and remember to glue the baby to the bed...
Now seriously:
it all depends on the kind of exercise they''ve given you... Which is the minimum movement you need to detect?
Using a web cam and comparing images could help...
Putting a sensor to the baby could help...
Using a cell phone with some api to find it''s place could help...
...
Be more specific with your question please...
尝试:
do
{
if (BabyMoved())
{
SendAlert(Parents);
}
} while (1==1)
其余内容特定于您的硬件和软件环境.
The rest is specific to your hardware and software environment.
我认为您的高级分析是正确的,并且OriginalGriff为您提供了解决方案的框架.
基本上,您需要将两个功能部件组装在一起:
1. 如何检测运动-这在某种程度上取决于特定的硬件,但是您会发现Google的许多热门商品将为您提供指导.
2. 如何发送消息-通过这一消息,您将在CodeProject上找到许多文章;电子邮件,短信等.这应该比(1)简单得多.
当您开始时,如果有特定问题,请在此处发布.
I think your high-level analysis is correct, and OriginalGriff has kindly given you the framework for a solution.
Basically, you need to fit together two functional pieces:
1. How to detect movement - this is somewhat dependent on the particular hardware, but you will find many hits with google that will guide you.
2. How to send a message - with this one, you will find many articles on CodeProject; email, SMS, etc. This should be much simpler than (1).
When you have made a start, please post here if you have specific questions.
这篇关于婴儿运动检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!