Class MotionDetectionExEventArgs
Motion / object detection event.
Inherited Members
Namespace: VisioForge.Core.Types.Events
Assembly: VisioForge.Core.dll
Syntax
public class MotionDetectionExEventArgs : EventArgs
Constructors
MotionDetectionExEventArgs(float, int, Rect[], ref float[,])
Initializes a new instance of the MotionDetectionExEventArgs class.
Declaration
public MotionDetectionExEventArgs(float level, int objectsCount, Rect[] objectRectangles, ref float[,] motionGrid)
Parameters
Type | Name | Description |
---|---|---|
float | level | Motion level. |
int | objectsCount | Number of detected objects for Blob Counting Objects processor. |
Rect[] | objectRectangles | Rectangles of moving objects for Blob Counting Objects processor. |
float[,] | motionGrid | Motion levels of each grid's cell. Value represents an array of size GridHeight x GridWidth, which keeps motion level of each grid's cell. If certain cell has motion level equal to 0.2, then it means that this cell has 20% of changes. |
Properties
Level
Gets level.
Declaration
public float Level { get; }
Property Value
Type | Description |
---|---|
float |
LevelPercent
Gets the level in percents.
Declaration
public int LevelPercent { get; }
Property Value
Type | Description |
---|---|
int | The level %. |
MotionGrid
Gets motion levels of each grid's cell.
Declaration
public float[,] MotionGrid { get; }
Property Value
Type | Description |
---|---|
float[,] |
Remarks
The property represents an array of size GridHeight x GridWidth, which keeps motion level of each grid's cell. If certain cell has motion level equal to 0.2, then it means that this cell has 20% of changes.
ObjectRectangles
Gets rectangles of moving objects for Blob Counting Objects processor.
Declaration
public Rect[] ObjectRectangles { get; }
Property Value
Type | Description |
---|---|
Rect[] |
ObjectsCount
Gets number of detected objects for Blob Counting Objects processor.
Declaration
public int ObjectsCount { get; }
Property Value
Type | Description |
---|---|
int |