Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, August 6, 2007 5:59:20 AM(UTC)
Andy9876543

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, August 9, 2007 12:08:28 PM(UTC)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


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
 
#3 Posted : Thursday, August 9, 2007 10:58:23 PM(UTC)
Andy9876543

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)

Amin  
Amin

Groups: Manager, Tech Support
Posts: 356


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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.122 seconds.