PDA

View Full Version : Tracking an object on live video image



Freddy
December 14, 2005, 13:42:26
Hello,
Is it possible to follow, automatically of course, an object on a live video image? Maybe using its color?

I can automatically follow the track of a bright object over a dark background on a sequence of bitmap images of the captured video image, but it would be great to do it on the live video image.

Thank you, in advance, for your time and help

Stefan Geissler
December 14, 2005, 14:21:09
Freddy,

Of course this is possible. Like you have done it on the bitmap, you can do the same on the image buffer. You have access to each pixel. There is only one problem: Visual Basic 6 might be a little bit to slow to perform this in realtime. You must reduce the number of pixels to be observed.
In the first image you must find the bright point. After you found it, you can search the pixels near to the last known position of the point. This could be done fast enough.
To reduce the amount of data to be checked, you should use the ICY800 color format in the sink (MemoryCurrentGrabberColorFormat property).

The access to the image data is shown here:
http://www.imagingcontrol.com/ic/docs/html/activex/ImageProcessing.htm
This sample shows to perform a single image, that has been grabbed from the live stream. If you want to perform it automatically for every frame, you must use the "ImageAvailable" event:
http://www.imagingcontrol.com/ic/docs/html/activex/event_descICImagingControl_ImageAvailable.htm

The organisation of the pixels in the image buffer is documented here:
http://www.imagingcontrol.com/ic/docs/html/activex/tutorial.htm

If Visual Basic 6 is too slow, you might switch to .NET 2003 or C++

hemanth
October 15, 2012, 12:49:54
Hello,

Is it possible to track a Green Laser on a live video and draw a cross wire over it ?
but Will it Leave a trail of cross-wires ?