tesseract
4.0.0-1-g2a2b
|
#include <cinttypes>
#include <cmath>
#include <cstdint>
#include "elst.h"
#include "elst2.h"
#include "errcode.h"
#include "ocrblock.h"
#include "params.h"
#include "pdblock.h"
#include "points.h"
#include "quspline.h"
#include "rect.h"
#include "scrollview.h"
#include "statistc.h"
#include "stepblob.h"
#include "tprintf.h"
#include "werd.h"
Go to the source code of this file.
Classes | |
class | BLOBNBOX |
class | TO_ROW |
class | TO_BLOCK |
Namespaces | |
tesseract | |
Enumerations | |
enum | PITCH_TYPE { PITCH_DUNNO, PITCH_DEF_FIXED, PITCH_MAYBE_FIXED, PITCH_DEF_PROP, PITCH_MAYBE_PROP, PITCH_CORR_FIXED, PITCH_CORR_PROP } |
enum | TabType { TT_NONE, TT_DELETED, TT_MAYBE_RAGGED, TT_MAYBE_ALIGNED, TT_CONFIRMED, TT_VLINE } |
enum | BlobRegionType { BRT_NOISE, BRT_HLINE, BRT_VLINE, BRT_RECTIMAGE, BRT_POLYIMAGE, BRT_UNKNOWN, BRT_VERT_TEXT, BRT_TEXT, BRT_COUNT } |
enum | BlobNeighbourDir { BND_LEFT, BND_BELOW, BND_RIGHT, BND_ABOVE, BND_COUNT } |
enum | BlobSpecialTextType { BSTT_NONE, BSTT_ITALIC, BSTT_DIGIT, BSTT_MATH, BSTT_UNCLEAR, BSTT_SKIP, BSTT_COUNT } |
enum | BlobTextFlowType { BTFT_NONE, BTFT_NONTEXT, BTFT_NEIGHBOURS, BTFT_CHAIN, BTFT_STRONG_CHAIN, BTFT_TEXT_ON_IMAGE, BTFT_LEADER, BTFT_COUNT } |
Functions | |
BlobNeighbourDir | DirOtherWay (BlobNeighbourDir dir) |
bool | DominatesInMerge (BlobTextFlowType type1, BlobTextFlowType type2) |
void | find_cblob_limits (C_BLOB *blob, float leftx, float rightx, FCOORD rotation, float &ymin, float &ymax) |
void | find_cblob_vlimits (C_BLOB *blob, float leftx, float rightx, float &ymin, float &ymax) |
void | find_cblob_hlimits (C_BLOB *blob, float bottomy, float topy, float &xmin, float &xymax) |
C_BLOB * | crotate_cblob (C_BLOB *blob, FCOORD rotation) |
TBOX | box_next (BLOBNBOX_IT *it) |
TBOX | box_next_pre_chopped (BLOBNBOX_IT *it) |
void | vertical_cblob_projection (C_BLOB *blob, STATS *stats) |
void | vertical_coutline_projection (C_OUTLINE *outline, STATS *stats) |
void | plot_blob_list (ScrollView *win, BLOBNBOX_LIST *list, ScrollView::Color body_colour, ScrollView::Color child_colour) |
Variables | |
double | textord_error_weight = 3 |
enum BlobNeighbourDir |
Enumerator | |
---|---|
BND_LEFT | |
BND_BELOW | |
BND_RIGHT | |
BND_ABOVE | |
BND_COUNT |
Definition at line 88 of file blobbox.h.
enum BlobRegionType |
Enumerator | |
---|---|
BRT_NOISE | |
BRT_HLINE | |
BRT_VLINE | |
BRT_RECTIMAGE | |
BRT_POLYIMAGE | |
BRT_UNKNOWN | |
BRT_VERT_TEXT | |
BRT_TEXT | |
BRT_COUNT |
Definition at line 73 of file blobbox.h.
enum BlobSpecialTextType |
Enumerator | |
---|---|
BSTT_NONE | |
BSTT_ITALIC | |
BSTT_DIGIT | |
BSTT_MATH | |
BSTT_UNCLEAR | |
BSTT_SKIP | |
BSTT_COUNT |
Definition at line 97 of file blobbox.h.
enum BlobTextFlowType |
Enumerator | |
---|---|
BTFT_NONE | |
BTFT_NONTEXT | |
BTFT_NEIGHBOURS | |
BTFT_CHAIN | |
BTFT_STRONG_CHAIN | |
BTFT_TEXT_ON_IMAGE | |
BTFT_LEADER | |
BTFT_COUNT |
Definition at line 115 of file blobbox.h.
enum PITCH_TYPE |
Enumerator | |
---|---|
PITCH_DUNNO | |
PITCH_DEF_FIXED | |
PITCH_MAYBE_FIXED | |
PITCH_DEF_PROP | |
PITCH_MAYBE_PROP | |
PITCH_CORR_FIXED | |
PITCH_CORR_PROP |
Definition at line 45 of file blobbox.h.
enum TabType |
Enumerator | |
---|---|
TT_NONE | |
TT_DELETED | |
TT_MAYBE_RAGGED | |
TT_MAYBE_ALIGNED | |
TT_CONFIRMED | |
TT_VLINE |
Definition at line 60 of file blobbox.h.
TBOX box_next | ( | BLOBNBOX_IT * | it | ) |
Definition at line 637 of file blobbox.cpp.
TBOX box_next_pre_chopped | ( | BLOBNBOX_IT * | it | ) |
Definition at line 666 of file blobbox.cpp.
Definition at line 612 of file blobbox.cpp.
|
inline |
|
inline |
Definition at line 130 of file blobbox.h.
void find_cblob_hlimits | ( | C_BLOB * | blob, |
float | bottomy, | ||
float | topy, | ||
float & | xmin, | ||
float & | xymax | ||
) |
Definition at line 577 of file blobbox.cpp.
void find_cblob_limits | ( | C_BLOB * | blob, |
float | leftx, | ||
float | rightx, | ||
FCOORD | rotation, | ||
float & | ymin, | ||
float & | ymax | ||
) |
Definition at line 500 of file blobbox.cpp.
void find_cblob_vlimits | ( | C_BLOB * | blob, |
float | leftx, | ||
float | rightx, | ||
float & | ymin, | ||
float & | ymax | ||
) |
Definition at line 540 of file blobbox.cpp.
void plot_blob_list | ( | ScrollView * | win, |
BLOBNBOX_LIST * | list, | ||
ScrollView::Color | body_colour, | ||
ScrollView::Color | child_colour | ||
) |
Definition at line 1087 of file blobbox.cpp.
Definition at line 869 of file blobbox.cpp.
Definition at line 889 of file blobbox.cpp.
double textord_error_weight = 3 |
"Weighting for error in believability"