This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, August 6, 2007 5:59:20 AM(UTC)
Groups: Registered
Posts: 3
Hi,
Is there any way to draw on a video (as it is playing) and let the user control what is drawn using the mouse? From other posts it look like I can use a filter to draw an overlay on each video frame but is there any way to work out what the mouse is doing and draw something based on user input?
Thanks,
Andy
#2
Posted
:
Thursday, August 9, 2007 12:08:28 PM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Andy,
Our Video Callback filter gives you the video frame pixel data, and you can do any type of image processing with it, including drawing objects or text on top of it. Our toolkit is shipped with a demo that uses this filter in different programming languages.
About handling mouse events, this can be done using the window that displays the preview in our Capture or Play control.
For example, if you're using Visual Basic, you could use the ltmmPlayCtrl_MouseDown and
ltmmPlayCtrl_MouseMove events, both of which are documented in our MM toolkit help file.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
#3
Posted
:
Thursday, August 9, 2007 10:58:23 PM(UTC)
Groups: Registered
Posts: 3
Because the drawing is done for each frame when it is displayed does this mean the drawing update is restricted to the frame rate of the video (it is possible for us to have video updating at 1 frame per second)? Does this mean if the user tries to draw a line on the video the drawing will only update when a new video frame is recieved (so the drawing will look slow and not very good)?
thanks,
Andy
#4
Posted
:
Monday, August 13, 2007 8:34:25 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
Andy,
If you modify the video frame pixel data itself in the callback function, I would expect the change to take effect after the frame leaves the callback function and gets displayed.
However, if you want to draw on the surface of the video window and not modify the video stream data itself, your drawing will be shown immediately.
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.