OpenCV  5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
Classes | Namespaces | Enumerations | Functions
ocr.hpp File Reference
#include <opencv2/core.hpp>
#include <vector>
#include <string>
Include dependency graph for ocr.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  cv::text::BaseOCR
 
class  cv::text::OCRHMMDecoder::ClassifierCallback
 Callback with the character classifier is made a class. More...
 
class  cv::text::OCRBeamSearchDecoder::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

namespace  cv
 
namespace  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

Mat cv::text::createOCRHMMTransitionsTable (const String &vocabulary, std::vector< cv::String > &lexicon)
 
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).
 
Ptr< OCRBeamSearchDecoder::ClassifierCallbackcv::text::loadOCRBeamSearchClassifierCNN (const String &filename)
 Allow to implicitly load the default character classifier when creating an OCRBeamSearchDecoder object.
 
Ptr< OCRHMMDecoder::ClassifierCallbackcv::text::loadOCRHMMClassifier (const String &filename, int classifier)
 Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object.
 
Ptr< OCRHMMDecoder::ClassifierCallbackcv::text::loadOCRHMMClassifierCNN (const String &filename)
 Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object.
 
Ptr< OCRHMMDecoder::ClassifierCallbackcv::text::loadOCRHMMClassifierNM (const String &filename)
 Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object.