[−][src]Trait opencv::hub_prelude::ERFilter
Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm Neumann12. :
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
Required methods
fn as_raw_ERFilter(&self) -> *mut c_void
Provided methods
fn run(
&mut self,
image: &dyn ToInputArray,
regions: &mut VectorOfERStat
) -> Result<()>
&mut self,
image: &dyn ToInputArray,
regions: &mut VectorOfERStat
) -> Result<()>
The key method of ERFilter algorithm.
Takes image on input and returns the selected regions in a vector of ERStat only distinctive ERs which correspond to characters are selected by a sequential classifier
Parameters
-
image: Single channel image CV_8UC1
-
regions: Output for the 1st stage and Input/Output for the 2nd. The selected Extremal Regions are stored here.
Extracts the component tree (if needed) and filter the extremal regions (ER's) by using a given classifier.
fn set_callback(&mut self, cb: &PtrOfERFilter_Callback) -> Result<()>
set/get methods to set the algorithm properties,