Class cv::text::ERFilter#

Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm [228]. : View details

Collaboration diagram for cv::text::ERFilter:

Public Member Functions#

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

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.

Member Function Documentation#

getNumRejected()#

int cv::text::ERFilter::getNumRejected()

run()#

void cv::text::ERFilter::run(
InputArray image,
std::vector< ERStat > & regions )

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

Extracts the component tree (if needed) and filter the extremal regions (ER’s) by using a given 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.

setCallback()#

void cv::text::ERFilter::setCallback(const Ptr< ERFilter::Callback > & cb)

set/get methods to set the algorithm properties,

setMaxArea()#

void cv::text::ERFilter::setMaxArea(float maxArea)

setMinArea()#

void cv::text::ERFilter::setMinArea(float minArea)

setMinProbability()#

void cv::text::ERFilter::setMinProbability(float minProbability)

setMinProbabilityDiff()#

void cv::text::ERFilter::setMinProbabilityDiff(float minProbabilityDiff)

setNonMaxSuppression()#

void cv::text::ERFilter::setNonMaxSuppression(bool nonMaxSuppression)

setThresholdDelta()#

void cv::text::ERFilter::setThresholdDelta(int thresholdDelta)

Source file#

The documentation for this class was generated from the following file: