Table of Contents

Class DpmDetector

Namespace
Emgu.CV.Dpm
Assembly
Emgu.CV.dll

A deformable parts model detector

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

Constructors

DpmDetector(string[], string[])

Create a new dpm detector with the specified files and classes

public DpmDetector(string[] files, string[] classes = null)

Parameters

files string[]

A set of file names storing the trained detectors (models). Each file contains one model.

classes string[]

A set of trained models names. If it's empty then the name of each model will be constructed from the name of file containing the model. E.g. the model stored in "/home/user/cat.xml" will get the name "cat".

Properties

ClassCount

get the number of classes

public int ClassCount { get; }

Property Value

int

ClassNames

Get the class names

public string[] ClassNames { get; }

Property Value

string[]

IsEmpty

Return true if the detector is empty

public bool IsEmpty { get; }

Property Value

bool

Methods

Detect(Mat)

Perform detection on the image

public ObjectDetection[] Detect(Mat mat)

Parameters

mat Mat

The image for detection.

Returns

ObjectDetection[]

The detection result

DisposeObject()

Dispose the unmanaged memory associated with this DPM

protected override void DisposeObject()