Class PedestrianDetector
Pedestrian detector.
Implements
Inherited Members
Namespace: VisioForge.Core.CV
Assembly: VisioForge.Core.CV.dll
Syntax
public class PedestrianDetector : IDisposableConstructors
PedestrianDetector()
Initializes a new instance of the PedestrianDetector class.
Declaration
public PedestrianDetector()Properties
DrawColor
Gets or sets the draw color.
Declaration
public SKColor DrawColor { get; set; }Property Value
| Type | Description | 
|---|---|
| SKColor | 
DrawEnabled
Gets or sets a value indicating whether draw enabled.
Declaration
public bool DrawEnabled { get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
FramesToSkip
Gets or sets the frames to skip. Use this value to improve performance. Default is 5.
Declaration
public int FramesToSkip { get; set; }Property Value
| Type | Description | 
|---|---|
| int | 
Remarks
Usually you can analyze 5 frames per second video. For example is you have 30 fps video you can set this value to (30 / 5) - 1 = 5.
Initialized
Gets a value indicating whether initialized.
Declaration
public bool Initialized { get; }Property Value
| Type | Description | 
|---|---|
| bool | 
VideoScale
Gets or sets the video scale value. 1.0 by default.
Declaration
public double VideoScale { get; set; }Property Value
| Type | Description | 
|---|---|
| double | 
Methods
Clear()
Clears.
Declaration
public void Clear()Dispose()
Dispose.
Declaration
public void Dispose()Dispose(bool)
Dispose.
Declaration
protected virtual void Dispose(bool disposing)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | disposing | Disposing parameter. | 
~PedestrianDetector()
Finalizes an instance of the PedestrianDetector class.
Declaration
protected ~PedestrianDetector()Init()
Init.
Declaration
public void Init()Process(RAWImage)
Process.
Declaration
public void Process(RAWImage frame)Parameters
| Type | Name | Description | 
|---|---|---|
| RAWImage | frame | The frame. | 
Events
OnPedestrianDetected
Pedestrian detected event.
Declaration
public event EventHandler<CVPedestrianDetectedEventArgs> OnPedestrianDetectedEvent Type
| Type | Description | 
|---|---|
| EventHandler<CVPedestrianDetectedEventArgs> |