TRVMotionDetector.DetectChanges

<< Click to display table of contents >>

TRVMotionDetector.DetectChanges

Compares two video frames.

function DetectChanges(nImg, oImg: TRVMBitmapvar Mask: TRVMBitmap): Integer;

Parameters:

nImg – the current video frame.

oImg – previous video frame.

Mask – if TestMode is turned on, receives an image showing changed areas, otherwise this parameter receives nil. The method always assigns a new value to this parameter, input value is ignored.

Return value:

count of rectangles covering changed areas.

These rectangles are returned by GetRect and IsRectValid methods.