How to draw an unfilled square on top of a stream video using a mouse and track the object enclosed

Posted by Haxed on Stack Overflow See other posts from Stack Overflow or by Haxed
Published on 2010-06-16T06:02:42Z Indexed on 2010/06/16 6:12 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

Hi,

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

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET