Public Member Functions | Private Member Functions | Private Attributes
ros_text_locator::TRecognizer Class Reference

#include <TRecognizer.hpp>

List of all members.

Public Member Functions

const std::string & getLang () const
const tesseract::PageSegMode getMode () const
void recognize (const cv::Mat &img, std::vector< Text2D > &text2d)
std::string recognize (const cv::Mat &img, int x, int y, int width, int height)
void setLang (std::string lang)
void setMode (tesseract::PageSegMode mode)
 TRecognizer (tesseract::PageSegMode pageSegMode, std::string lang)
virtual ~TRecognizer ()

Private Member Functions

bool initTesseract ()
const char * tesseract (const cv::Mat &image, int left, int top, int width, int height)

Private Attributes

tesseract::TessBaseAPI * api
std::string lang
tesseract::PageSegMode mode

Detailed Description

Definition at line 36 of file TRecognizer.hpp.


Constructor & Destructor Documentation

ros_text_locator::TRecognizer::TRecognizer ( tesseract::PageSegMode  pageSegMode,
std::string  lang = "eng" 
)

Definition at line 33 of file TRecognizer.cpp.

Definition at line 47 of file TRecognizer.cpp.


Member Function Documentation

const std::string& ros_text_locator::TRecognizer::getLang ( ) const [inline]

Definition at line 51 of file TRecognizer.hpp.

const tesseract::PageSegMode ros_text_locator::TRecognizer::getMode ( ) const [inline]

Definition at line 59 of file TRecognizer.hpp.

Definition at line 38 of file TRecognizer.cpp.

void ros_text_locator::TRecognizer::recognize ( const cv::Mat &  img,
std::vector< Text2D > &  text2d 
)

Definition at line 58 of file TRecognizer.cpp.

std::string ros_text_locator::TRecognizer::recognize ( const cv::Mat &  img,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 52 of file TRecognizer.cpp.

void ros_text_locator::TRecognizer::setLang ( std::string  lang) [inline]

Definition at line 55 of file TRecognizer.hpp.

void ros_text_locator::TRecognizer::setMode ( tesseract::PageSegMode  mode) [inline]

Definition at line 63 of file TRecognizer.hpp.

const char * ros_text_locator::TRecognizer::tesseract ( const cv::Mat &  image,
int  left,
int  top,
int  width,
int  height 
) [private]

Definition at line 68 of file TRecognizer.cpp.


Member Data Documentation

tesseract::TessBaseAPI* ros_text_locator::TRecognizer::api [private]

Definition at line 40 of file TRecognizer.hpp.

std::string ros_text_locator::TRecognizer::lang [private]

Definition at line 39 of file TRecognizer.hpp.

tesseract::PageSegMode ros_text_locator::TRecognizer::mode [private]

Definition at line 38 of file TRecognizer.hpp.


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


text_locator
Author(s): Vojtech Novak
autogenerated on Mon Oct 6 2014 07:55:19