#include <TRecognizer.hpp>
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 |
Definition at line 36 of file TRecognizer.hpp.
| ros_text_locator::TRecognizer::TRecognizer | ( | tesseract::PageSegMode | pageSegMode, |
| std::string | lang = "eng" |
||
| ) |
Definition at line 33 of file TRecognizer.cpp.
| ros_text_locator::TRecognizer::~TRecognizer | ( | ) | [virtual] |
Definition at line 47 of file TRecognizer.cpp.
| 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.
| bool ros_text_locator::TRecognizer::initTesseract | ( | ) | [private] |
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.
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.