tesseract 4.1.1
|
#include <imagedata.h>
Public Member Functions | |
ImageData () | |
ImageData (bool vertical, Pix *pix) | |
~ImageData () | |
bool | Serialize (TFile *fp) const |
bool | DeSerialize (TFile *fp) |
const STRING & | imagefilename () const |
void | set_imagefilename (const STRING &name) |
int | page_number () const |
void | set_page_number (int num) |
const GenericVector< char > & | image_data () const |
const STRING & | language () const |
void | set_language (const STRING &lang) |
const STRING & | transcription () const |
const GenericVector< TBOX > & | boxes () const |
const GenericVector< STRING > & | box_texts () const |
const STRING & | box_text (int index) const |
void | SetPix (Pix *pix) |
Pix * | GetPix () const |
Pix * | PreScale (int target_height, int max_height, float *scale_factor, int *scaled_width, int *scaled_height, GenericVector< TBOX > *boxes) const |
int | MemoryUsed () const |
void | Display () const |
void | AddBoxes (const GenericVector< TBOX > &boxes, const GenericVector< STRING > &texts, const GenericVector< int > &box_pages) |
Static Public Member Functions | |
static ImageData * | Build (const char *name, int page_number, const char *lang, const char *imagedata, int imagedatasize, const char *truth_text, const char *box_text) |
static bool | SkipDeSerialize (TFile *fp) |
Definition at line 105 of file imagedata.h.
tesseract::ImageData::ImageData | ( | ) |
Definition at line 123 of file imagedata.cpp.
tesseract::ImageData::ImageData | ( | bool | vertical, |
Pix * | pix | ||
) |
Definition at line 126 of file imagedata.cpp.
tesseract::ImageData::~ImageData | ( | ) |
Definition at line 130 of file imagedata.cpp.
void tesseract::ImageData::AddBoxes | ( | const GenericVector< TBOX > & | boxes, |
const GenericVector< STRING > & | texts, | ||
const GenericVector< int > & | box_pages | ||
) |
Definition at line 315 of file imagedata.cpp.
|
inline |
Definition at line 156 of file imagedata.h.
|
inline |
Definition at line 153 of file imagedata.h.
|
inline |
Definition at line 150 of file imagedata.h.
|
static |
Definition at line 135 of file imagedata.cpp.
bool tesseract::ImageData::DeSerialize | ( | TFile * | fp | ) |
Definition at line 181 of file imagedata.cpp.
void tesseract::ImageData::Display | ( | ) | const |
Definition at line 277 of file imagedata.cpp.
Pix * tesseract::ImageData::GetPix | ( | ) | const |
Definition at line 218 of file imagedata.cpp.
|
inline |
Definition at line 138 of file imagedata.h.
|
inline |
Definition at line 126 of file imagedata.h.
|
inline |
Definition at line 141 of file imagedata.h.
int tesseract::ImageData::MemoryUsed | ( | ) | const |
Definition at line 272 of file imagedata.cpp.
|
inline |
Definition at line 132 of file imagedata.h.
Pix * tesseract::ImageData::PreScale | ( | int | target_height, |
int | max_height, | ||
float * | scale_factor, | ||
int * | scaled_width, | ||
int * | scaled_height, | ||
GenericVector< TBOX > * | boxes | ||
) | const |
Definition at line 228 of file imagedata.cpp.
bool tesseract::ImageData::Serialize | ( | TFile * | fp | ) | const |
Definition at line 166 of file imagedata.cpp.
|
inline |
Definition at line 129 of file imagedata.h.
|
inline |
Definition at line 144 of file imagedata.h.
|
inline |
Definition at line 135 of file imagedata.h.
void tesseract::ImageData::SetPix | ( | Pix * | pix | ) |
Definition at line 213 of file imagedata.cpp.
|
static |
Definition at line 197 of file imagedata.cpp.
|
inline |
Definition at line 147 of file imagedata.h.