[][src]Function opencv::text::detect_regions_1

pub fn detect_regions_1(
    image: &dyn ToInputArray,
    er_filter1: &Ptr<dyn ERFilter>,
    er_filter2: &Ptr<dyn ERFilter>,
    groups_rects: &mut Vector<Rect>,
    method: i32,
    filename: &str,
    min_probability: f32
) -> Result<()>

Extracts text regions from image.

Parameters

  • image: Source image where text blocks needs to be extracted from. Should be CV_8UC3 (color).
  • er_filter1: Extremal Region Filter for the 1st stage classifier of N&M algorithm Neumann12
  • er_filter2: Extremal Region Filter for the 2nd stage classifier of N&M algorithm Neumann12
  • groups_rects: Output list of rectangle blocks with text
  • method: Grouping method (see text::erGrouping_Modes). Can be one of ERGROUPING_ORIENTATION_HORIZ, ERGROUPING_ORIENTATION_ANY.
  • filename: The XML or YAML file with the classifier model (e.g. samples/trained_classifier_erGrouping.xml). Only to use when grouping method is ERGROUPING_ORIENTATION_ANY.
  • minProbability: The minimum probability for accepting a group. Only to use when grouping method is ERGROUPING_ORIENTATION_ANY.

C++ default parameters

  • method: ERGROUPING_ORIENTATION_HORIZ
  • filename: String()
  • min_probability: (float)0.5