Table of Contents

Class ERFilterCallback

Namespace
OpenCvSharp.Text
Assembly
OpenCvSharp.dll

Callback with the classifier used by ERFilter. Instances are obtained by loading a trained classifier model from a file; implementing a custom classifier in managed code is not supported.

public sealed class ERFilterCallback : CvPtrObject, IDisposable
Inheritance
ERFilterCallback
Implements
Inherited Members

Methods

LoadClassifierNM1(string)

Loads the default classifier used by the 1st stage of the N&M algorithm from the given XML or YAML file (e.g. trained_classifierNM1.xml).

public static ERFilterCallback LoadClassifierNM1(string filename)

Parameters

filename string

The XML or YAML file with the classifier model.

Returns

ERFilterCallback

LoadClassifierNM2(string)

Loads the default classifier used by the 2nd stage of the N&M algorithm from the given XML or YAML file (e.g. trained_classifierNM2.xml).

public static ERFilterCallback LoadClassifierNM2(string filename)

Parameters

filename string

The XML or YAML file with the classifier model.

Returns

ERFilterCallback