TVideoGrabber.MotionDetector_UseThisReferenceSample

Prev

Next

TVideoGrabber

Methods

 




































































































Let specify a reference sample used for motion detection.


Declaration
function MotionDetector_UseThisReferenceSample (Bitmap: TBitmap; BMPFile: string; JPEGFile: string): Boolean;


bool __fastcall MotionDetector_UseThisReferenceSample (Graphics::TBitmap *TBitmap, wchar_t *BMPFile, wchar_t *JPEGFile)


Function MotionDetector_UseThisReferenceSample (Bitmap as Long, BMPFile as string, JPEGFile as string) As Boolean

Description

Let specify a video frame that will be used as reference for motion detection, instead of the previous frame.

The frame can be passed in 3 ways, by using one of the 3 parameters:

1. Bitmap: as a pointer to a TBitmap (or a bitmap handle in the OCX versions), e.g.:
VideoGrabber.MotionDetector_UseThisReferenceSample (MyTBitmapReference, "", '"");

2. BMPFile: as a path to a BMP image, e.g.:
VideoGrabber.MotionDetector_UseThisReferenceSample (nil, "MyBitmapReference.bmp", "");

3. JPEGFile: as a path to a JPEG file, e.g.:
VideoGrabber.MotionDetector_UseThisReferenceSample (nil, "", "MyBitmapReference.jpg");

To deactivate the feature and reuse the last frame as reference, pass empty parameters, e.g.:
VideoGrabber.MotionDetector_UseThisReferenceSample (nil, "", '"");


See Also
Color / Greyscale Grid structure / grid sensitivity Motion ratio Recording only when motion is detected Video noise TOnMotionDetected TOnMotionNotDetected MotionDetector_CellMotionRatio MotionDetector_CompareBlue MotionDetector_CompareGreen MotionDetector_CompareRed MotionDetector_Enabled MotionDetector_EnumGridDialogControls MotionDetector_Get2DTextGrid MotionDetector_Get2DTextMotion MotionDetector_GetCellLocation MotionDetector_GetCellSensitivity MotionDetector_GetCellSize MotionDetector_GloballyIncOrDecSensitivity MotionDetector_GlobalMotionRatio MotionDetector_GreyScale MotionDetector_Grid MotionDetector_GridXCount MotionDetector_GridYCount MotionDetector_IsGridValid MotionDetector_MaxDetectionsPerSecond MotionDetector_ReduceCPULoad MotionDetector_ReduceVideoNoise MotionDetector_Reset MotionDetector_ResetGlobalSensitivity MotionDetector_SetCellSensitivity MotionDetector_SetGridSize MotionDetector_ShowGridDialog MotionDetector_Triggered OnBacktimedFramesCountReached OnMotionDetected OnMotionNotDetected RecordingOnMotion_Enabled RecordingOnMotion_MotionThreshold RecordingOnMotion_NoMotionPauseDelayMs