[][src]Function opencv::text::create_er_filter_nm2

pub fn create_er_filter_nm2(
    cb: &Ptr<dyn ERFilter_Callback>,
    min_probability: f32
) -> Result<Ptr<dyn ERFilter>>

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

Parameters

  • cb: : Callback with the classifier. Default classifier can be implicitly load with function loadClassifierNM2, e.g. from file in samples/cpp/trained_classifierNM2.xml
  • minProbability: : The minimum probability P(er|character) allowed for retreived ER's

In the second stage, the ERs that passed the first stage are classified into character and non-character classes using more informative but also more computationally expensive features. The classifier uses all the features calculated in the first stage and the following additional features: hole area ratio, convex hull ratio, and number of outer inflexion points.

C++ default parameters

  • min_probability: (float)0.3