text
All modules / text
base class BaseOCR declares a common API that would be used in a typical text recognition scenario
text_classifier_typeclassOCR classifier type
text_computeNMChannelsfunctionCompute the different channels to be processed independently in the N&M algorithm [Neumann12].
text_createERFilterNM1functionCreate an Extremal Region Filter for the 1st stage classifier of N&M algorithm [Neumann12].
text_createERFilterNM11functionReads an Extremal Region Filter for the 1st stage classifier of N&M algorithm
text_createERFilterNM2functionCreate an Extremal Region Filter for the 2nd stage classifier of N&M algorithm [Neumann12].
text_createERFilterNM21functionReads an Extremal Region Filter for the 2nd stage classifier of N&M algorithm
text_createOCRHMMTransitionsTablefunctionUtility function to create a tailored language model transitions table from a given list of words (lexicon).
text_decoder_modeclassOCR HMM Decoder
text_detectRegionsfunctionUtility funtion for scripting
text_detectRegions1functionExtracts text regions from image.
text_detectTextSWTfunctionApplies the Stroke Width Transform operator followed by filtering of connected components of similar Stroke Widths to return letter candidates. It also chain them by proximity and
text_ERFilterclassBase class for 1st and 2nd stages of Neumann and Matas scene text detection algorithm [Neumann12]. :
text_ERFilter_CallbackclassCallback with the classifier is made a class.
text_erGroupingfunctionFind groups of Extremal Regions that are organized as text blocks.
text_erGrouping_Modesclasstext::erGrouping operation modes
text_loadClassifierNM1functionAllow to implicitly load the default classifier when creating an ERFilter object.
text_loadClassifierNM2functionAllow to implicitly load the default classifier when creating an ERFilter object.
text_loadOCRBeamSearchClassifierCNNfunctionAllow to implicitly load the default character classifier when creating an OCRBeamSearchDecoder object.
text_loadOCRHMMClassifierfunctionAllow to implicitly load the default character classifier when creating an OCRHMMDecoder object.
text_loadOCRHMMClassifierCNNfunctionAllow to implicitly load the default character classifier when creating an OCRHMMDecoder object.
text_loadOCRHMMClassifierNMfunctionAllow to implicitly load the default character classifier when creating an OCRHMMDecoder object.
text_ocr_engine_modeclassTesseract.OcrEngineMode Enumeration
text_OCRBeamSearchDecoderclassOCR BeamSearch Decoder
text_OCRBeamSearchDecoder_ClassifierCallbackclassCallback with the character classifier is made a class.
text_OCRBeamSearchDecoder_createfunctionCreates an instance of the OCRBeamSearchDecoder class. Initializes HMMDecoder.
text_OCRHMMDecoderclassOCRHMMDecoder class provides an interface for OCR using Hidden Markov Models.
text_OCRHMMDecoder_ClassifierCallbackclassCallback with the character classifier is made a class.
text_OCRHMMDecoder_createfunctionCreates an instance of the OCRHMMDecoder class. Initializes HMMDecoder.
text_OCRHMMDecoder_create1functionHMM Decoding algorithm (only Viterbi for the moment)
text_OCRTesseractclassOCRTesseract class provides an interface with the tesseract-ocr API (v3.02.02) in C++.
text_OCRTesseract_createfunctionCreates an instance of the OCRTesseract class. Initializes Tesseract.
text_page_seg_modeclassTesseract.PageSegMode Enumeration
text_TextDetectorclassAn abstract class providing interface for text detection algorithms
text_TextDetectorCNNclassTextDetectorCNN class provides the functionallity of text bounding box detection.
text_TextDetectorCNN_createfunctionCreates an instance of the TextDetectorCNN class using the provided parameters.
No matches. Try an algorithm name, a module, or a shorter phrase.
Constants
Use the named constant from cv. In particular, OpenCV 5 matrix type codes differ from OpenCV 4.
text_ERFILTER_NM_RGBLGradcomputeNMChannels operation modes
text_ERFILTER_NM_RGBLGRADcomputeNMChannels operation modes
text_ERFILTER_NM_IHSGradtext erfilter nm ihsgrad constant (1), defined by OpenCV for cv::text.
text_ERFILTER_NM_IHSGRADtext erfilter nm ihsgrad constant (1), defined by OpenCV for cv::text.
text_ERGROUPING_ORIENTATION_HORIZExhaustive Search algorithm proposed in [Neumann11] for grouping horizontally aligned text. The algorithm models a verification function for all the possible ER sequences. The verification fuction for ER pairs consists in a set of threshold-based pairwise rules which compare measurements of two regions (height ratio, centroid angle, and region distance). The verification function for ER triplets creates a word text line estimate using Least Median-Squares fitting for a given triplet and then verifies that the estimate is valid (based on thresholds created during training). Verification functions for sequences larger than 3 are approximated by verifying that the text line parameters of all (sub)sequences of length 3 are consistent.
text_ERGROUPING_ORIENTATION_ANYText grouping method proposed in [Gomez13] [Gomez14] for grouping arbitrary oriented text. Regions are agglomerated by Single Linkage Clustering in a weighted feature space that combines proximity (x,y coordinates) and similarity measures (color, size, gradient magnitude, stroke width, etc.). SLC provides a dendrogram where each node represents a text group hypothesis. Then the algorithm finds the branches corresponding to text groups by traversing this dendrogram with a stopping rule that combines the output of a rotation invariant text group classifier and a probabilistic measure for hierarchical clustering validity assessment.
Note: This mode is not supported due NFA code removal ( https://github.com/opencv/opencv_contrib/issues/2235 )
text_OCR_LEVEL_WORDtext ocr level word constant (0), defined by OpenCV for cv::text.
text_OCR_LEVEL_TEXTLINEtext ocr level textline constant (1), defined by OpenCV for cv::text.
text_PSM_OSD_ONLYtext psm osd only constant (0), defined by OpenCV for cv::text.
text_PSM_AUTO_OSDtext psm auto osd constant (1), defined by OpenCV for cv::text.
text_PSM_AUTO_ONLYtext psm auto only constant (2), defined by OpenCV for cv::text.
text_PSM_AUTOtext psm auto constant (3), defined by OpenCV for cv::text.
text_PSM_SINGLE_COLUMNtext psm single column constant (4), defined by OpenCV for cv::text.
text_PSM_SINGLE_BLOCK_VERT_TEXTtext psm single block vert text constant (5), defined by OpenCV for cv::text.
text_PSM_SINGLE_BLOCKtext psm single block constant (6), defined by OpenCV for cv::text.
text_PSM_SINGLE_LINEtext psm single line constant (7), defined by OpenCV for cv::text.
text_PSM_SINGLE_WORDtext psm single word constant (8), defined by OpenCV for cv::text.
text_PSM_CIRCLE_WORDtext psm circle word constant (9), defined by OpenCV for cv::text.
text_PSM_SINGLE_CHARtext psm single char constant (10), defined by OpenCV for cv::text.
text_OEM_TESSERACT_ONLYtext oem tesseract only constant (0), defined by OpenCV for cv::text.
text_OEM_CUBE_ONLYtext oem cube only constant (1), defined by OpenCV for cv::text.
text_OEM_TESSERACT_CUBE_COMBINEDtext oem tesseract cube combined constant (2), defined by OpenCV for cv::text.
text_OEM_DEFAULTtext oem default constant (3), defined by OpenCV for cv::text.
text_OCR_DECODER_VITERBIOther algorithms may be added
text_OCR_KNN_CLASSIFIERtext ocr knn classifier constant (0), defined by OpenCV for cv::text.
text_OCR_CNN_CLASSIFIERtext ocr cnn classifier constant (1), defined by OpenCV for cv::text.