View Full Version : Tracking an object on live video image
December 14, 2005, 13:42:26
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
December 14, 2005, 14:21:09
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:
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:
The organisation of the pixels in the image buffer is documented here:
If Visual Basic 6 is too slow, you might switch to .NET 2003 or C++
October 15, 2012, 12:49:54
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 ?
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.