Process new video frame.
Namespace:
AForge.Vision.MotionAssembly: AForge.Vision (in AForge.Vision.dll) Version: 2.2.4.0 (2.2.4.0)
Syntax
| C# |
|---|
public float ProcessFrame( UnmanagedImage videoFrame ) |
Parameters
- videoFrame
- Type: AForge.Imaging..::.UnmanagedImage
Video frame to process (detect motion in).
Return Value
Returns amount of motion, which is provided MotionLevel property of the motion detection algorithm in use.
Remarks
The method first of all applies motion detection algorithm to the specified video frame to calculate motion level and motion frame. After this it applies motion processing algorithm (if it was set) to do further post processing, like highlighting motion areas, counting moving objects, etc.