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
cbERFilterCallbackCallback with the classifier.
minProbabilityfloatThe minimum probability P(er|character) allowed for retrieved ER's.
Returns
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
filenamestringThe XML or YAML file with the classifier model.
minProbabilityfloatThe minimum probability P(er|character) allowed for retrieved ER's.