Table of Contents

Class HaarCascade

Namespace
Bonsai.Vision
Assembly
Bonsai.Vision.dll

Represents an operator that detects objects on each image in the sequence using a pre-trained cascade of boosted Haar classifiers.

public class HaarCascade : Transform<IplImage, Rect[]>
Inheritance
HaarCascade
Inherited Members

Properties

FileName

Gets or sets the name of the file describing a trained Haar cascade classifier.

Flags

Gets or sets a value specifying the optional operation flags for the Haar cascade classifier.

MaxSize

Gets or sets the optional maximum window size. By default, it is set to the total image size.

MinNeighbors

Gets or sets the minimum number (minus 1) of neighbor rectangles that make up an object. All groups with smaller number of rectangles are rejected.

MinSize

Gets or sets the optional minimum window size. By default, it is set to the size specified in the cascade classifier file.

Offset

Gets or sets the optional offset to apply to individual object rectangles.

ScaleFactor

Gets or sets the factor by which the search window is scaled between subsequent scans.

Methods

Process(IObservable<IplImage>)

Detects objects on each image in an observable sequence using a pre-trained cascade of boosted Haar classifiers.