Skip to content

TOnMotionDetected

type

TOnMotionDetected = procedure (Sender: TObject; GlobalMotionRatio: Double; MaxMotionCellX: LongInt; MaxMotionCellY: LongInt; FrameBitmapHandle: LongInt; FrameNumber: LongWord_; FrameTime: LargeInteger; FrameId: LongInt;

Type of the OnMotionDetected event.

GlobalMotionRatio: motion ratio of the whole video frame, compared to the previous one

FrameData: returns the bitmap of the video frame, the frame number and the frame time

CaptureFrame: set this parameter to TRUE to capture this frame. In this case it will be returned by the OnFrameCaptureCompleted event.