tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
35 : re_rotation_(1.0f, 0.0f),
36 classify_rotation_(1.0f, 0.0f),
63 kerning = static_cast<int8_t>(
kern);
80 return right_to_left_;
83 right_to_left_ = value;
90 int16_t
kern()
const {
94 int16_t
font()
const {
98 int16_t
space()
const {
102 const char *
name()
const {
103 return filename.
c_str ();
110 return cell_over_xheight_;
113 cell_over_xheight_ = ratio;
138 re_rotation_ = rotation;
141 return classify_rotation_;
144 classify_rotation_ = rotation;
156 median_size_.
set_x(x);
157 median_size_.
set_y(y);
187 void print(FILE* fp,
bool dump);
193 bool proportional =
false;
194 bool right_to_left_ =
false;
198 int16_t font_class = 0;
200 float cell_over_xheight_ = 0.0f;
205 C_BLOB_LIST rej_blobs;
207 FCOORD classify_rotation_;
218 C_BLOB_LIST* output_blob_list);
229 C_BLOB_LIST* new_blobs,
230 C_BLOB_LIST* not_found_blobs);
void PrintSegmentationStats(BLOCK_LIST *block_list)
void set_x(int16_t xin)
rewrite function
void check_pitch()
check proportional
void set_xheight(int32_t height)
set char size
ROW_LIST * row_list()
get rows
void sort_rows()
decreasing y order
void set_right_to_left(bool value)
const char * name() const
return filename
void ExtractBlobsFromSegmentation(BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list)
int32_t x_height() const
return xheight
int16_t font() const
return font class
Pix * render_mask(TBOX *mask_box)
void compute_row_margins()
void compress()
shrink white space
void set_y(int16_t yin)
rewrite function
#define ELISTIZEH(CLASSNAME)
BLOCK & operator=(const BLOCK &source)
int16_t space() const
return spacing
bool right_to_left() const
void set_median_size(int x, int y)
void set_re_rotation(const FCOORD &rotation)
void RefreshWordBlobsFromNewBlobs(BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs)
void print(FILE *fp, bool dump)
dump whole table
PDBLK pdblk
Page Description Block.
const char * c_str() const
void reflect_polygon_in_y_axis()
void set_classify_rotation(const FCOORD &rotation)
float cell_over_xheight() const
void set_font_class(int16_t font)
set font class
bool prop() const
return proportional
TBOX restricted_bounding_box(bool upper_dots, bool lower_dots) const
int16_t kern() const
return kerning
const ICOORD & median_size() const
void rotate(const FCOORD &rotation)
void set_cell_over_xheight(float ratio)
C_BLOB_LIST * blob_list()
get blobs
FCOORD classify_rotation() const
POLY_BLOCK * hand_poly
weird as well
FCOORD re_rotation() const
C_BLOB_LIST * reject_blobs()
void set_skew(const FCOORD &skew)
int32_t fixed_pitch() const
return pitch
void set_stats(bool prop, int16_t kern, int16_t space, int16_t ch_pitch)
Pix * render_mask(const FCOORD &rerotation, TBOX *mask_box)