Forums

Full Version: How to capture a frame ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

andre

Hi,

I can’t figure out how to save a picture when a motion detection occurs.

I use a TVLDSCapture, connected to a TVLImageDisplay and a TVLMotionDetect connected to another TVLImageDisplay.

When a motion occurs, the second TVLImageDIsplay do display the picture.

So I try to use MakeScreenshot method on both TVLImageDisplay to save this picture, but all that I get is a black BMP.

Example where imgMotion is the image connected to OutputPin of the TVLMotionDetec
Code:
imgMotion.MakeScreenshot.SaveToFile('c:\imgMotion.bmp');


What is wrong ?

Ragards,
André.
Reference URL's