Table of Contents

Class CVMotionCellsSettings

Namespace
VisioForge.Core.Types.X.OpenCV
Assembly
VisioForge.Core.dll

OpenCV motion cells.

public class CVMotionCellsSettings

Inheritance

Inherited Members

Properties

CalculateMotion

Gets or sets a value indicating whether to calculate motion.

public bool CalculateMotion { get; set; }

Property Value

bool

CellsColor

Gets or sets a color for motion cells.

public SKColor CellsColor { get; set; }

Property Value

SKColor

DataFile

Gets or sets a location of motioncells data file (empty string means no saving).

public string DataFile { get; set; }

Property Value

string

Display

Gets or sets a value indicating whether to display of motion cells on current frame.

public bool Display { get; set; }

Property Value

bool

Gap

Gets or sets an interval after which motion is considered finished and a motion finished bus message is posted. Valid range is 1 to 60 seconds (inclusive). Values outside this range are clamped to the nearest bound; sub-second values are rounded to the nearest whole second (and clamped to 1 second minimum).

public TimeSpan Gap { get; set; }

Property Value

TimeSpan

GridSize

Gets or sets the motion-detection cell grid size. Valid range is 8 to 32 per axis (inclusive). Out-of-range values are silently ignored and the property keeps its previous value (10x10 on a freshly created instance).

public Size GridSize { get; set; }

Property Value

Size

MinimumMotionFrames

Gets or sets a minimum number of motion frames triggering a motion event.

public int MinimumMotionFrames { get; set; }

Property Value

int

MotionCellBorderThickness

Gets or sets motion cell border thickness. Set to -1 to fill motion cell.

public int MotionCellBorderThickness { get; set; }

Property Value

int

MotionCellsIdx

Gets or sets a cell description with its line and column idx separated with ":". Pass multiple cells as a comma-separated list.

public string MotionCellsIdx { get; set; }

Property Value

string

MotionMaskCellsPos

Gets or sets a cell description with its line and column idx separated with ":". Pass multiple cells as a comma-separated list.

public string MotionMaskCellsPos { get; set; }

Property Value

string

MotionMaskCoords

Gets or sets a region with its upper left and lower right x, y coordinates separated with ":". Pass multiple regions as a comma-separated list.

public string MotionMaskCoords { get; set; }

Property Value

string

PostAllMotion

Gets or sets a value indicating whether to call Motion event for every motion frame or just motion start and motion stop.

public bool PostAllMotion { get; set; }

Property Value

bool

PostNoMotion

Gets or sets the no-motion event interval. When non-zero, a NoMotion event is raised after motion has been absent for the given number of seconds. Valid range is 0 to 180 seconds (inclusive); 0 disables the event. Values outside this range are clamped to the nearest bound; sub-second positive values are rounded to the nearest whole second (so values below 0.5s round down to 0 = disabled).

public TimeSpan PostNoMotion { get; set; }

Property Value

TimeSpan

Sensitivity

Gets or sets a motion detection sensitivity.

public double Sensitivity { get; set; }

Property Value

double

Threshold

Gets or sets a threshold value for motion [0.001..0.1]. Filter detects motion when at least this fraction of the cells have moved.

public double Threshold { get; set; }

Property Value

double

UseAlpha

Gets or sets a value indicating whether to use alpha blending on frames with motion cells.

public bool UseAlpha { get; set; }

Property Value

bool