[−][src]Function opencv::text::create_er_filter_nm2_1
pub fn create_er_filter_nm2_1(
filename: &str,
min_probability: f32
) -> Result<Ptr<dyn ERFilter>>
Reads an Extremal Region Filter for the 2nd stage classifier of N&M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM2.xml
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.
Overloaded parameters
C++ default parameters
- min_probability: (float)0.3