Recording only when motion is detected

Prev

Next

 






































































































How to record only when motion is detected.

Description

To start recording only when motion is detected:
- enable MotionDetector_Enabled
- enable RecordingOnMotion_Enabled
- adjust RecordingOnMotion_MotionThreshold and RecordingOnMotion_NoMotionPauseDelayMs if required,
- disable RecordingPauseCreatesNewFile to store all the recording in a single AVI file, or enable RecordingPauseCreatesNewFile to create a new AVI file each time no motion is detected,
- then invoke StartRecording.

RecordingOnMotion_Enabled: specifies to record only when motion is detected
RecordingOnMotion_MotionThreshold: specifies the minimum motion ratio to (re)start the recording
RecordingOnMotion_NoMotionPauseDelayMs: specifies the delay after which the recording is switched back in a paused state when no motion is detected

E.g.:

VideoGrabber1->MotionDetector_Enabled = true;
VideoGrabber1->RecordingCanPause = true;
VideoGrabber1->RecordingOnMotion_Enabled = true;
VideoGrabber1->RecordingOnMotion_NoMotionPauseDelayMs = 2000;
VideoGrabber1->RecordingOnMotion_MotionThreshold = 0.001;
VideoGrabber1->RecordingPauseCreatesNewFile := true;
VideoGrabber1->StartRecording();



See Also
Color / Greyscale Grid structure / grid sensitivity Motion ratio 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 MotionDetector_UseThisReferenceSample OnBacktimedFramesCountReached OnMotionDetected OnMotionNotDetected RecordingOnMotion_Enabled RecordingOnMotion_MotionThreshold RecordingOnMotion_NoMotionPauseDelayMs