OpenCV  4.2.0
Open Source Computer Vision
Classes | Namespaces | Enumerations | Functions
erfilter.hpp File Reference
#include "opencv2/core.hpp"
#include <vector>
#include <deque>
#include <string>

Classes

class  cv::text::ERFilter::Callback
 Callback with the classifier is made a class. More...
 
class  cv::text::ERFilter
 Base class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm [170]. : More...
 
struct  cv::text::ERStat
 The ERStat structure represents a class-specific Extremal Region (ER). More...
 

Namespaces

 cv
 "black box" representation of the file storage associated with a file on disk.
 
 cv::text
 

Enumerations

enum  {
  cv::text::ERFILTER_NM_RGBLGrad,
  cv::text::ERFILTER_NM_IHSGrad
}
 computeNMChannels operation modes More...
 
enum  cv::text::erGrouping_Modes {
  cv::text::ERGROUPING_ORIENTATION_HORIZ,
  cv::text::ERGROUPING_ORIENTATION_ANY
}
 text::erGrouping operation modes More...
 

Functions

void cv::text::computeNMChannels (InputArray _src, OutputArrayOfArrays _channels, int _mode=ERFILTER_NM_RGBLGrad)
 Compute the different channels to be processed independently in the N&M algorithm [170]. More...
 
Ptr< ERFilter > cv::text::createERFilterNM1 (const Ptr< ERFilter::Callback > &cb, int thresholdDelta=1, float minArea=(float) 0.00025, float maxArea=(float) 0.13, float minProbability=(float) 0.4, bool nonMaxSuppression=true, float minProbabilityDiff=(float) 0.1)
 Create an Extremal Region Filter for the 1st stage classifier of N&M algorithm [170]. More...
 
Ptr< ERFilter > cv::text::createERFilterNM1 (const String &filename, int thresholdDelta=1, float minArea=(float) 0.00025, float maxArea=(float) 0.13, float minProbability=(float) 0.4, bool nonMaxSuppression=true, float minProbabilityDiff=(float) 0.1)
 Reads an Extremal Region Filter for the 1st stage classifier of N&M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM1.xml. More...
 
Ptr< ERFilter > cv::text::createERFilterNM2 (const Ptr< ERFilter::Callback > &cb, float minProbability=(float) 0.3)
 Create an Extremal Region Filter for the 2nd stage classifier of N&M algorithm [170]. More...
 
Ptr< ERFilter > cv::text::createERFilterNM2 (const String &filename, float minProbability=(float) 0.3)
 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. More...
 
void cv::text::detectRegions (InputArray image, const Ptr< ERFilter > &er_filter1, const Ptr< ERFilter > &er_filter2, std::vector< std::vector< Point > > &regions)
 
void cv::text::detectRegions (InputArray image, const Ptr< ERFilter > &er_filter1, const Ptr< ERFilter > &er_filter2, std::vector< Rect > &groups_rects, int method=ERGROUPING_ORIENTATION_HORIZ, const String &filename=String(), float minProbability=(float) 0.5)
 Extracts text regions from image. More...
 
void cv::text::erGrouping (InputArray img, InputArrayOfArrays channels, std::vector< std::vector< ERStat > > &regions, std::vector< std::vector< Vec2i > > &groups, std::vector< Rect > &groups_rects, int method=ERGROUPING_ORIENTATION_HORIZ, const std::string &filename=std::string(), float minProbablity=0.5)
 Find groups of Extremal Regions that are organized as text blocks. More...
 
void cv::text::erGrouping (InputArray image, InputArray channel, std::vector< std::vector< Point > > regions, std::vector< Rect > &groups_rects, int method=ERGROUPING_ORIENTATION_HORIZ, const String &filename=String(), float minProbablity=(float) 0.5)
 
Ptr< ERFilter::Callback > cv::text::loadClassifierNM1 (const String &filename)
 Allow to implicitly load the default classifier when creating an ERFilter object. More...
 
Ptr< ERFilter::Callback > cv::text::loadClassifierNM2 (const String &filename)
 Allow to implicitly load the default classifier when creating an ERFilter object. More...
 
void cv::text::MSERsToERStats (InputArray image, std::vector< std::vector< Point > > &contours, std::vector< std::vector< ERStat > > &regions)
 Converts MSER contours (vector<Point>) to ERStat regions. More...