Click or drag to resize
Accord.NET (logo)

BlobCountingObjectsProcessingProcessFrame Method

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

Namespace:  Accord.Vision.Motion
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.8.0
Syntax
public void ProcessFrame(
	UnmanagedImage videoFrame,
	UnmanagedImage motionFrame
)
Request Example View Source

Parameters

videoFrame
Type: Accord.ImagingUnmanagedImage
Original video frame.
motionFrame
Type: Accord.ImagingUnmanagedImage
Motion frame provided by motion detection algorithm (see IMotionDetector).

Implements

IMotionProcessingProcessFrame(UnmanagedImage, UnmanagedImage)
Exceptions
ExceptionCondition
InvalidImagePropertiesExceptionMotion frame is not 8 bpp image, but it must be so.
UnsupportedImageFormatExceptionVideo frame must be 8 bpp grayscale image or 24/32 bpp color image.
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 , the found object are also highlighted on the original video frame.

See Also