Table of Contents

Class ERFilter

Namespace
OpenCvSharp.Text
Assembly
OpenCvSharp.dll

Base class for the 1st and 2nd stages of the Neumann and Matas scene text detection algorithm. Extracts the component tree (if needed) and filters the extremal regions (ER's) using a given classifier.

public sealed class ERFilter : Algorithm, IDisposable
Inheritance
ERFilter
Implements
Inherited Members

Methods

CreateNM1(ERFilterCallback, int, float, float, float, bool, float)

Creates an Extremal Region Filter for the 1st stage classifier of the N&M algorithm.

CreateNM1(string, int, float, float, float, bool, float)

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

CreateNM2(ERFilterCallback, float)

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

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).

GetNumRejected()

Gets the number of rejected extremal regions.

SetCallback(ERFilterCallback)

Sets the classifier callback used by this filter.

SetMaxArea(float)

Sets the maximum area (% of image size) allowed for retrieved ER's.

SetMinArea(float)

Sets the minimum area (% of image size) allowed for retrieved ER's.

SetMinProbability(float)

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

SetMinProbabilityDiff(float)

Sets the minimum probability difference between local maxima and local minima ERs.

SetNonMaxSuppression(bool)

Sets whether non-maximum suppression is done over the branch probabilities.

SetThresholdDelta(int)

Sets the threshold step in subsequent thresholds when extracting the component tree.