问题描述
我有一个婴儿护理系统项目,需要您的帮助.我需要一段代码来检测婴儿的运动并向父母发送警报.
如果您能帮助我,我将不胜感激. :)
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.
这篇关于婴儿运动检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!