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, IVideoProcessorInheritance
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
DrawEnabled
Gets or sets a value indicating whether to draw bounding boxes around detected pedestrians.
public bool DrawEnabled { get; set; }Property Value
FramesToSkip
Gets or sets the number of frames to skip between detection passes.
public int FramesToSkip { get; set; }Property Value
Initialized
Gets a value indicating whether the detector has been initialized.
public bool Initialized { get; }Property Value
VideoScale
Gets or sets the video scaling factor to optimize performance.
public double VideoScale { get; set; }Property Value
Methods
Clear()
Clears.
public void Clear()Dispose()
Dispose.
public void Dispose()Dispose(bool)
Dispose.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
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
frameVideoFrame-
The frame.
ProcessFrame(VideoFrameX)
Processes the frame.
public void ProcessFrame(VideoFrameX frame)Parameters
frameVideoFrameX-
The frame.
SetContext(BaseContext)
Sets the context.
public void SetContext(BaseContext context)Parameters
contextBaseContext-
The context.
OnPedestrianDetected
Event raised when pedestrians are detected.
public event EventHandler<CVPedestrianDetectedEventArgs> OnPedestrianDetectedEvent Type
- EventHandler<CVPedestrianDetectedEventArgs>