Process video and motion frames doing further post processing after performed motion detection.

Namespace:  AForge.Vision.Motion
Assembly:  AForge.Vision (in AForge.Vision.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public void ProcessFrame(
	UnmanagedImage videoFrame,
	UnmanagedImage motionFrame
)

Parameters

videoFrame
Type: AForge.Imaging..::.UnmanagedImage
Original video frame.
motionFrame
Type: AForge.Imaging..::.UnmanagedImage
Motion frame provided by motion detection algorithm (see IMotionDetector).

Implements

IMotionProcessing..::.ProcessFrame(UnmanagedImage, UnmanagedImage)

Remarks

Processes provided motion frame and counts number of separate objects, which size satisfies MinObjectsWidth and MinObjectsHeight properties. In the case if HighlightMotionRegions property is set to trueTruetruetrue (True in Visual Basic), the found object are also highlighted on the original video frame.

Exceptions

ExceptionCondition
AForge.Imaging..::.InvalidImagePropertiesExceptionMotion frame is not 8 bpp image, but it must be so.
AForge.Imaging..::.UnsupportedImageFormatExceptionVideo frame must be 8 bpp grayscale image or 24/32 bpp color image.

See Also