Table of Contents

Class CudaCascadeClassifier

Namespace
Emgu.CV.Cuda
Assembly
Emgu.CV.dll

Cascade Classifier for object detection using Cuda

public class CudaCascadeClassifier : SharedPtrObject, IDisposable
Inheritance
CudaCascadeClassifier
Implements
Inherited Members

Constructors

CudaCascadeClassifier(FileStorage)

Create a Cuda cascade classifier using the specific file storage

public CudaCascadeClassifier(FileStorage fs)

Parameters

fs FileStorage

The file storage to create the classifier from

CudaCascadeClassifier(string)

Create a Cuda cascade classifier using the specific file

public CudaCascadeClassifier(string fileName)

Parameters

fileName string

The file to create the classifier from

Properties

ClassifierSize

The classifier size

public Size ClassifierSize { get; }

Property Value

Size

FindLargestObject

If true, only return the largest object

public bool FindLargestObject { get; set; }

Property Value

bool

MaxNumObjects

The maximum number of objects

public int MaxNumObjects { get; set; }

Property Value

int

MaxObjectSize

The maximum object size

public Size MaxObjectSize { get; set; }

Property Value

Size

MinNeighbors

Parameter specifying how many neighbors each candidate rectangle should have to retain it

public int MinNeighbors { get; set; }

Property Value

int

MinObjectSize

The minimum object size

public Size MinObjectSize { get; set; }

Property Value

Size

ScaleFactor

Parameter specifying how much the image size is reduced at each image scale

public double ScaleFactor { get; set; }

Property Value

double

Methods

Convert(IOutputArray)

Converts objects array from internal representation to standard vector.

public Rectangle[] Convert(IOutputArray objects)

Parameters

objects IOutputArray

Objects array in internal representation.

Returns

Rectangle[]

Resulting array.

DetectMultiScale(IInputArray, IOutputArray, Stream)

Detects objects of different sizes in the input image.

public void DetectMultiScale(IInputArray image, IOutputArray objects, Stream stream = null)

Parameters

image IInputArray

Matrix of type CV_8U containing an image where objects should be detected.

objects IOutputArray

Buffer to store detected objects (rectangles).

stream Stream

Use a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).

DisposeObject()

Release all unmanaged resources associated with this object

protected override void DisposeObject()