OpenCV  4.0.1
Open Source Computer Vision
Classes | Namespaces | Enumerations | Functions
ocr.hpp File Reference
#include <opencv2/core.hpp>
#include <vector>
#include <string>

Classes

class  cv::text::BaseOCR
 
class  cv::text::OCRBeamSearchDecoder::ClassifierCallback
 Callback with the character classifier is made a class. More...
 
class  cv::text::OCRHMMDecoder::ClassifierCallback
 Callback with the character classifier is made a class. More...
 
class  cv::text::OCRBeamSearchDecoder
 OCRBeamSearchDecoder class provides an interface for OCR using Beam Search algorithm. More...
 
class  cv::text::OCRHMMDecoder
 OCRHMMDecoder class provides an interface for OCR using Hidden Markov Models. More...
 
class  cv::text::OCRHolisticWordRecognizer
 OCRHolisticWordRecognizer class provides the functionallity of segmented wordspotting. Given a predefined vocabulary , a DictNet is employed to select the most probable word given an input image. More...
 
class  cv::text::OCRTesseract
 OCRTesseract class provides an interface with the tesseract-ocr API (v3.02.02) in C++. More...
 

Namespaces

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

Enumerations

enum  {
  cv::text::OCR_LEVEL_WORD,
  cv::text::OCR_LEVEL_TEXTLINE
}
 
enum  cv::text::classifier_type {
  cv::text::OCR_KNN_CLASSIFIER = 0,
  cv::text::OCR_CNN_CLASSIFIER = 1
}
 
enum  cv::text::decoder_mode { cv::text::OCR_DECODER_VITERBI = 0 }
 
enum  cv::text::ocr_engine_mode {
  cv::text::OEM_TESSERACT_ONLY,
  cv::text::OEM_CUBE_ONLY,
  cv::text::OEM_TESSERACT_CUBE_COMBINED,
  cv::text::OEM_DEFAULT
}
 Tesseract.OcrEngineMode Enumeration. More...
 
enum  cv::text::page_seg_mode {
  cv::text::PSM_OSD_ONLY,
  cv::text::PSM_AUTO_OSD,
  cv::text::PSM_AUTO_ONLY,
  cv::text::PSM_AUTO,
  cv::text::PSM_SINGLE_COLUMN,
  cv::text::PSM_SINGLE_BLOCK_VERT_TEXT,
  cv::text::PSM_SINGLE_BLOCK,
  cv::text::PSM_SINGLE_LINE,
  cv::text::PSM_SINGLE_WORD,
  cv::text::PSM_CIRCLE_WORD,
  cv::text::PSM_SINGLE_CHAR
}
 Tesseract.PageSegMode Enumeration. More...
 

Functions

void cv::text::createOCRHMMTransitionsTable (std::string &vocabulary, std::vector< std::string > &lexicon, OutputArray transition_probabilities_table)
 Utility function to create a tailored language model transitions table from a given list of words (lexicon). More...
 
Mat cv::text::createOCRHMMTransitionsTable (const String &vocabulary, std::vector< cv::String > &lexicon)
 
Ptr< OCRBeamSearchDecoder::ClassifierCallback > cv::text::loadOCRBeamSearchClassifierCNN (const String &filename)
 Allow to implicitly load the default character classifier when creating an OCRBeamSearchDecoder object. More...
 
Ptr< OCRHMMDecoder::ClassifierCallback > cv::text::loadOCRHMMClassifier (const String &filename, int classifier)
 Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object. More...
 
Ptr< OCRHMMDecoder::ClassifierCallback > cv::text::loadOCRHMMClassifierCNN (const String &filename)
 Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object. More...
 
Ptr< OCRHMMDecoder::ClassifierCallback > cv::text::loadOCRHMMClassifierNM (const String &filename)
 Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object. More...