.net中特定物体的运动检测
我需要制作一个 .net 应用程序,必须使用相机检测用户持有的特定对象。
如果该对象必须具有某些特定特征,以便可以轻松地从周围空间中识别和检测它,请给我一些提示(例如绿色立方体?)
最好使用的技术/.net 库是什么?我需要实时翻译用户的手部动作并相应地在屏幕上显示动画。
I need to make a .net application where I must detect a specific object the user is holding, using a camera.
If the object must have some specific characteristics so that it can be easily recognized and detected from the surrounding space, please give me some tips (ex a green cube?)
What would be the best technique/.net library to use? I need to translate in realtime the user's hand movement and display an animation on screen accordingly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对于运动检测:找到好的特征(即角点)并将其输入到 lucas-kanada 光流算法中。 opencv有这些功能,但我不知道opencvnet是否有。
如果您的对象具有特定特征,例如场景中最绿的对象,则可以使用阈值处理。否则你需要使用模式识别技术。
伪代码:
在这里您将获得图像,其中绿色显示为白色,其余部分为黑色
for motion detection: find the good features(corners,ie.) and feed them into a lucas-kanada optical flow algorithm. opencv has those functions but I don't know if opencvnet has it or not.
if your object has a specific feature, like being the greenest in the scene for example, you can use thresholding. otherwise you need to use pattern recognition techniques.
pseudo code:
here you'll have your image which greens are shown as white and the rest is black
您正在寻找 AForge.Net。
另请参阅本文。
You're looking for AForge.Net.
See also this article.
我建议加快速度 OpenCV、OpenCV emgu.com/wiki/index.php/Main_Page" rel="nofollow noreferrer">Emgu CV 是我使用的 .NET 端口。
I would suggest coming up to speed on OpenCV, Emgu CV's the .NET port I use.