使用相机作为触发来控制家用电器 [英] Controlling Home Appliances using Camera as trigger

查看:108
本文介绍了使用相机作为触发来控制家用电器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有一个用于设备的子系统.我唯一需要做的就是使用相机触发它打开.我希望有人能给我一个C ++代码,使我的相机能够检测到人并触发我的系统打开.我正在通过rs232使用Zigbee,我希望代码可以将数据发送到我的Zigbee.图像识别?当然,这不是最简单的方法,而且很可能会产生很多错误(例如,对光照条件的依赖性使狗看起来像人,人看起来像灯等等).遵循KISS原则,也许您可​​以使用RFID标签,蓝牙轮询或警报系统运动检测器通过简单得多的设置来实现您的目标.如果您对设置更具体,则可能会得到更多有用的答案.

我将最感兴趣的是看看您应该如何进行图像识别工作!

祝你好运!


感谢您抽出宝贵时间回复并阅读我的问题.显然,我能够使用相机使图像触发我的MCU中的程序.我只是在ubuntu中使用libserial与我的max232和xbees通信...如果您对代码感兴趣,请给我发邮件.


I already have a subsystem for my appliances. The only thing I need is to trigger it to turn on using my camera. I hope someone could give me a C++ code that would make my camera able to detect human and trigger my system to turn on. I am using Zigbee through rs232 and i was hoping that the code can send data to my zigbee.

解决方案

Just a suggestion here: do you really want to do this with image recognition? It certainly isn''t the simplest approach, and it may well produce a lot of errors (e.g. dependency on lighting conditions makes a dog looks like a person, person look like a lamp and so on). Following the KISS principle, perhaps you can achieve your goals with a much simpler setup using an RFID tag, bluetooth polling, or alarm system motion detector. If you are more specific about your setup you will likely get more useful answers.

I will be most interested to see how your image recognition works out should you pursue that however!

good luck!


Thanks for the time to reply and read my question. Apparently I was able to make the image using the camera trigger my program in my mcu. I just used libserial in ubuntu to communicate with my max232 and my xbees... If your interested on the code just mail me.


这篇关于使用相机作为触发来控制家用电器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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