Table of Contents

Class PedestrianDetector

Namespace
VisioForge.Core.CV
Assembly
VisioForge.Core.CV.dll

Detects pedestrians in video frames using Histogram of Oriented Gradients (HOG) descriptors and SVM.

public class PedestrianDetector : IDisposable, IVideoProcessor

Inheritance

Implements

IVideoProcessor

Inherited Members

Constructors

PedestrianDetector()

Initializes a new instance of the VisioForge.Core.CV.PedestrianDetector class.

public PedestrianDetector()

Properties

DrawColor

Gets or sets the color used for drawing the bounding boxes.

public SKColor DrawColor { get; set; }

Property Value

SKColor

DrawEnabled

Gets or sets a value indicating whether to draw bounding boxes around detected pedestrians.

public bool DrawEnabled { get; set; }

Property Value

bool

FramesToSkip

Gets or sets the number of frames to skip between detection passes.

public int FramesToSkip { get; set; }

Property Value

int

Initialized

Gets a value indicating whether the detector has been initialized.

public bool Initialized { get; }

Property Value

bool

VideoScale

Gets or sets the video scaling factor to optimize performance.

public double VideoScale { get; set; }

Property Value

double

Methods

Clear()

Clears.

public void Clear()

Dispose()

Dispose.

public void Dispose()

Dispose(bool)

Dispose.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Disposing parameter.

~PedestrianDetector()

Finalizes an instance of the VisioForge.Core.CV.PedestrianDetector class.

protected ~PedestrianDetector()

GetSupportedFrameFormats()

Gets the supported frame format.

public VideoFormatX[] GetSupportedFrameFormats()

Returns

VideoFormatX[]

VideoFormatX.

Init()

Init.

public void Init()

ProcessFrame(VideoFrame)

Processes the frame. Frame may be skipped according to the settings.

public void ProcessFrame(VideoFrame frame)

Parameters

frame VideoFrame

The frame.

ProcessFrame(VideoFrameX)

Processes the frame.

public void ProcessFrame(VideoFrameX frame)

Parameters

frame VideoFrameX

The frame.

SetContext(BaseContext)

Sets the context.

public void SetContext(BaseContext context)

Parameters

context BaseContext

The context.

OnPedestrianDetected

Event raised when pedestrians are detected.

public event EventHandler<CVPedestrianDetectedEventArgs> OnPedestrianDetected

Event Type

EventHandler<CVPedestrianDetectedEventArgs>