如何在 C# 中使用鼠标在流视频顶部绘制一个未填充的正方形并自动跟踪正方形内包含的对象?
我正在制作一个对象跟踪应用程序。我用过Emgucv 2.1.0.0 加载视频文件 到图片框。我还从网络摄像头拍摄了视频流。
现在,我想要 使用鼠标在视频流上绘制未填充的正方形,然后跟踪所包含的对象 当视频继续播放时,由未填充的方块显示。
这是人们到目前为止所建议的:-
(1) .NET视频叠加绘图(DirectX) - 但这是针对C++用户的,建议者 说有 .NET 包装器,但我很难找到任何包装器。
(2) DxLogo 示例
DxLogo – 一个示例应用程序,展示如何在数据流上叠加徽标。 它使用捕获设备作为视频源,并将结果输出到文件。 遗憾的是,这不使用鼠标。
(3) GDI+ 和鼠标处理 - 这方面我没有任何线索。
为了跟踪广场上的物体,如果有人给我一些研究论文链接供我阅读,我将不胜感激。
非常感谢有关使用鼠标在视频上绘图的任何帮助。 感谢您花时间阅读本文。
非常感谢
I am making an object tracking application. I have used Emgucv 2.1.0.0
to load a video file
to a picturebox. I have also taken the video stream from a web camera.
Now, I want
to draw an unfilled square on the video stream using a mouse and then track the object enclosed
by the unfilled square as the video continues to stream.
This is what people have suggested so far:-
(1) .NET Video overlay drawing(DirectX) - but this is for C++ users, the suggester
said that there are .NET wrappers, but I had a hard time finding any.
(2) DxLogo sample
DxLogo – A sample application showing how to superimpose a logo on a data stream.
It uses a capture device for the video source, and outputs the result to a file.
Sadly, this does not use a mouse.
(3) GDI+ and mouse handling - this area I do not have a clue.
And for tracking the object in the square, I would appreciate if someone give me some research paper links to read.
Any help as to using the mouse to draw on a video is greatly appreciated.
Thank you for taking the time to read this.
Many Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你想做图像检测和/或跟踪。
EmguCV ( http://www.emgu.com/wiki/index.php/Main_Page ) 库为 .Net 中的此类事情提供了良好的基础。
例如 http://www.emgu.com/wiki/index.php/Tutorial #Examples
这是一个相当丰富的主题,有相当多的年头和与之相关的不同研究分支,所以我不确定是否有人能为这些事情提供明确的指南,但阅读神经网络和相关主题会给你带来帮助EmguCV 和相关库的管理方式有很好的基础。
应该注意的是,EmguCV 等系统旨在识别场景中的预定义项目(例如车牌号),而不是场景中的任意特征。
对于给定特征的任意跟踪,搜索有关边缘检测等的研究论文(与 EmguCV 等库结合)可能是一个好的开始。
(您可能还想偷看一下现有的应用程序,例如 http://www.pfhoe.com/ 看看是否符合您的需求)
It sounds like you want to do image detection and / or tracking.
The EmguCV ( http://www.emgu.com/wiki/index.php/Main_Page ) library provides a good foundation for this sort of thing in .Net.
e.g. http://www.emgu.com/wiki/index.php/Tutorial#Examples
It's a pretty meaty subject with quite a few years and different branches of research associated with it so I'm not sure anyone can give the definitive guide to such things but reading up neural networks and related topics would give you a pretty good grounding in the way EmguCV and related libraries manage it.
It should be noted that systems such as EmguCV are designed to recognise predefined items within a scene (such as a licence plate number) rather than an arbitory feature within a scene.
For arbitory tracking of a given feature, a search for research papers on edge detection and the like (in combination with a library such a EmguCV) is probably a good start.
(You also may want to sneak a peek at an existing application such as http://www.pfhoe.com/ to see if it fits your needs)