Table of Contents

Method CreateNM2

Namespace
OpenCvSharp.Text
Assembly
OpenCvSharp.dll

CreateNM2(ERFilterCallback, float)

Creates an Extremal Region Filter for the 2nd stage classifier of the N&M algorithm.

public static ERFilter CreateNM2(ERFilterCallback cb, float minProbability = 0.3)

Parameters

cb ERFilterCallback

Callback with the classifier.

minProbability float

The minimum probability P(er|character) allowed for retrieved ER's.

Returns

ERFilter

CreateNM2(string, float)

Creates an Extremal Region Filter for the 2nd stage classifier of the N&M algorithm, reading the classifier from the given file (e.g. trained_classifierNM2.xml).

public static ERFilter CreateNM2(string filename, float minProbability = 0.3)

Parameters

filename string

The XML or YAML file with the classifier model.

minProbability float

The minimum probability P(er|character) allowed for retrieved ER's.

Returns

ERFilter