tesseract v5.3.3.20231005
|
Typedefs | |
using | FileReader = bool(*)(const char *filename, std::vector< char > *data) |
using | DictFunc = int(Dict::*)(void *, const UNICHARSET &, UNICHAR_ID, bool) const |
using | ProbabilityInContextFunc = double(Dict::*)(const char *, const char *, int, const char *, int) |
using | CANCEL_FUNC = bool(*)(void *, int) |
using | PROGRESS_FUNC = bool(*)(int, int, int, int, int) |
using | PROGRESS_FUNC2 = bool(*)(ETEXT_DESC *, int, int, int, int) |
using | UNICHAR_ID = int |
using | char32 = signed int |
using | DotProductFunction = TFloat(*)(const TFloat *, const TFloat *, int) |
using | SetOfModels = std::vector< const ParagraphModel * > |
using | WordRecognizer = void(Tesseract::*)(const WordData &, WERD_RES **, PointerVector< WERD_RES > *) |
using | VECTOR = TPOINT |
using | FontSet = std::vector< int > |
using | MatrixCoordPair = KDPairInc< float, MATRIX_COORD > |
using | ParamsTrainingHypothesisList = std::vector< ParamsTrainingHypothesis > |
using | BLOB_CHOICE_LIST_VECTOR = std::vector< BLOB_CHOICE_LIST * > |
using | PRIORITY = float |
using | UnicharIdVector = std::vector< UNICHAR_ID > |
using | UnicharAmbigsVector = std::vector< AmbigSpec_LIST * > |
using | IntKDPair = KDPairInc< int, int > |
using | FileWriter = bool(*)(const std::vector< char > &data, const char *filename) |
using | TDimension = int16_t |
using | TFloat = double |
using | RSMap = std::unordered_map< int, std::unique_ptr< std::vector< int > > > |
using | RSCounts = std::unordered_map< int, int > |
using | ClusterPair = tesseract::KDPairInc< float, TEMPCLUSTER * > |
using | ClusterHeap = tesseract::GenericHeap< ClusterPair > |
using | DENSITYFUNC = double(*)(int32_t) |
using | SOLVEFUNC = double(*)(CHISTRUCT *, double) |
using | SAMPLE = CLUSTER |
using | FEATURE_DEFS = FEATURE_DEFS_STRUCT * |
typedef uint32_t | PROTO_PRUNER[NUM_PP_PARAMS][NUM_PP_BUCKETS][WERDS_PER_PP_VECTOR] |
typedef uint32_t | CONFIG_PRUNER[NUM_PP_PARAMS][NUM_PP_BUCKETS][4] |
typedef INT_FEATURE_STRUCT | INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES] |
using | kdwalk_proc = void(*)(ClusteringContext *context, CLUSTER *Cluster, int32_t Level) |
using | MicroFeature = std::array< float,(int) MicroFeatureParameter::MFCount > |
using | MICROFEATURES = std::forward_list< MicroFeature > |
using | MFOUTLINE = LIST |
using | FEATURE_DESC = FEATURE_DESC_STRUCT * |
using | FEATURE = FEATURE_STRUCT * |
using | FEATURE_SET = FEATURE_SET_STRUCT * |
using | CHAR_FEATURES = char * |
using | CLASS_TYPE = CLASS_STRUCT * |
using | CLASSES = CLASS_STRUCT * |
using | ShapeQueue = GenericHeap< ShapeQueueEntry > |
using | int_compare = int(*)(void *, void *) |
using | void_dest = void(*)(void *) |
using | LIST = list_rec * |
using | EDGE_RECORD = uint64_t |
using | EDGE_ARRAY = EDGE_RECORD * |
using | EDGE_REF = int64_t |
using | NODE_REF = int64_t |
using | NODE_MAP = EDGE_REF * |
using | NodeChildVector = std::vector< NodeChild > |
using | SuccessorList = std::vector< int > |
using | SuccessorListsVector = std::vector< SuccessorList * > |
using | DawgVector = std::vector< Dawg * > |
using | CLASS_ID = UNICHAR_ID |
using | PROTO_ID = int16_t |
using | FEATURE_ID = uint8_t |
using | BLOB_WIDTH = uint8_t |
using | DANGERR = std::vector< DANGERR_INFO > |
using | EDGE_INDEX = int64_t |
using | EDGE_VECTOR = std::vector< EDGE_RECORD > |
using | TRIE_NODES = std::vector< TRIE_NODE_RECORD * > |
using | RecodePair = KDPairInc< double, RecodeNode > |
using | RecodeHeap = GenericHeap< RecodePair > |
using | BlobGridSearch = GridSearch< BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT > |
using | ColPartitionGridSearch = GridSearch< ColPartition, ColPartition_CLIST, ColPartition_C_IT > |
using | PartSetVector = std::vector< ColPartitionSet * > |
using | WidthCallback = std::function< bool(int)> |
using | ColSegmentGrid = BBGrid< ColSegment, ColSegment_CLIST, ColSegment_C_IT > |
using | ColSegmentGridSearch = GridSearch< ColSegment, ColSegment_CLIST, ColSegment_C_IT > |
using | WordGrid = BBGrid< WordWithBox, WordWithBox_CLIST, WordWithBox_C_IT > |
using | WordSearch = GridSearch< WordWithBox, WordWithBox_CLIST, WordWithBox_C_IT > |
using | LABELEDLIST = LABELEDLISTNODE * |
using | MERGE_CLASS = MERGE_CLASS_NODE * |
using | LigHash = std::unordered_map< std::string, std::string > |
using | TestCallback = std::function< std::string(int, const double *, const TessdataManager &, int)> |
using | PointPair = KDPairInc< float, EDGEPT * > |
using | PointHeap = GenericHeap< PointPair > |
using | SeamPair = KDPtrPairInc< float, SEAM > |
using | SeamQueue = GenericHeap< SeamPair > |
using | SeamDecPair = KDPtrPairDec< float, SEAM > |
using | SeamPile = GenericHeap< SeamDecPair > |
using | PainPointHeap = GenericHeap< MatrixCoordPair > |
using | LanguageModelFlagsType = unsigned char |
Used for expressing various language model flags. More... | |
typedef ParagraphModel | PModel |
Functions | ||||||||||
std::string | HOcrEscape (const char *text) | |||||||||
int | orientation_and_script_detection (const char *filename, OSResults *, tesseract::Tesseract *) | |||||||||
int | os_detect (TO_BLOCK_LIST *port_blocks, OSResults *osr, tesseract::Tesseract *tess) | |||||||||
int | os_detect_blobs (const std::vector< int > *allowed_scripts, BLOBNBOX_CLIST *blob_list, OSResults *osr, tesseract::Tesseract *tess) | |||||||||
bool | os_detect_blob (BLOBNBOX *bbox, OrientationDetector *o, ScriptDetector *s, OSResults *, tesseract::Tesseract *tess) | |||||||||
TESS_API int | OrientationIdToValue (const int &id) | |||||||||
bool | PTIsLineType (PolyBlockType type) | |||||||||
bool | PTIsImageType (PolyBlockType type) | |||||||||
bool | PTIsTextType (PolyBlockType type) | |||||||||
bool | PTIsPulloutType (PolyBlockType type) | |||||||||
bool | PSM_OSD_ENABLED (int pageseg_mode) | |||||||||
bool | PSM_ORIENTATION_ENABLED (int pageseg_mode) | |||||||||
bool | PSM_COL_FIND_ENABLED (int pageseg_mode) | |||||||||
bool | PSM_SPARSE (int pageseg_mode) | |||||||||
bool | PSM_BLOCK_FIND_ENABLED (int pageseg_mode) | |||||||||
bool | PSM_LINE_FIND_ENABLED (int pageseg_mode) | |||||||||
bool | PSM_WORD_FIND_ENABLED (int pageseg_mode) | |||||||||
TFloat | DotProductNative (const TFloat *u, const TFloat *v, int n) | |||||||||
TFloat | DotProductAVX (const TFloat *u, const TFloat *v, int n) | |||||||||
TFloat | DotProductAVX512F (const TFloat *u, const TFloat *v, int n) | |||||||||
TFloat | DotProductFMA (const TFloat *u, const TFloat *v, int n) | |||||||||
TFloat | DotProductSSE (const TFloat *u, const TFloat *v, int n) | |||||||||
TFloat | DotProductNEON (const TFloat *u, const TFloat *v, int n) | |||||||||
void | reject_whole_page (PAGE_RES_IT &page_res_it) | |||||||||
int16_t | word_blob_quality (WERD_RES *word) | |||||||||
bool | IsTextOrEquationType (PolyBlockType type) | |||||||||
bool | IsLeftIndented (const EquationDetect::IndentType type) | |||||||||
bool | IsRightIndented (const EquationDetect::IndentType type) | |||||||||
char | determine_newline_type (WERD *word, BLOCK *block, WERD *next_word, BLOCK *next_block) | |||||||||
bool | AsciiLikelyListItem (const std::string &word) | |||||||||
template<class T > | ||||||||||
void | push_back_new (std::vector< T > &vector, const T &data) | |||||||||
void | LeftWordAttributes (const UNICHARSET *unicharset, const WERD_CHOICE *werd, const std::string &utf8, bool *is_list, bool *starts_idea, bool *ends_idea) | |||||||||
void | RightWordAttributes (const UNICHARSET *unicharset, const WERD_CHOICE *werd, const std::string &utf8, bool *is_list, bool *starts_idea, bool *ends_idea) | |||||||||
bool | ValidFirstLine (const std::vector< RowScratchRegisters > *rows, int row, const ParagraphModel *model) | |||||||||
bool | ValidBodyLine (const std::vector< RowScratchRegisters > *rows, int row, const ParagraphModel *model) | |||||||||
bool | CrownCompatible (const std::vector< RowScratchRegisters > *rows, int a, int b, const ParagraphModel *model) | |||||||||
void | RecomputeMarginsAndClearHypotheses (std::vector< RowScratchRegisters > *rows, int start, int end, int percentile) | |||||||||
int | InterwordSpace (const std::vector< RowScratchRegisters > &rows, int row_start, int row_end) | |||||||||
bool | FirstWordWouldHaveFit (const RowScratchRegisters &before, const RowScratchRegisters &after, tesseract::ParagraphJustification justification) | |||||||||
bool | FirstWordWouldHaveFit (const RowScratchRegisters &before, const RowScratchRegisters &after) | |||||||||
bool | RowsFitModel (const std::vector< RowScratchRegisters > *rows, int start, int end, const ParagraphModel *model) | |||||||||
void | CanonicalizeDetectionResults (std::vector< PARA * > *row_owners, PARA_LIST *paragraphs) | |||||||||
void | DetectParagraphs (int debug_level, std::vector< RowInfo > *row_infos, std::vector< PARA * > *row_owners, PARA_LIST *paragraphs, std::vector< ParagraphModel * > *models) | |||||||||
void | DetectParagraphs (int debug_level, bool after_text_recognition, const MutableIterator *block_start, std::vector< ParagraphModel * > *models) | |||||||||
bool | StrongModel (const ParagraphModel *model) | |||||||||
STRING_VAR_H (editor_image_win_name) | ||||||||||
INT_VAR_H (editor_image_xpos) | ||||||||||
INT_VAR_H (editor_image_ypos) | ||||||||||
INT_VAR_H (editor_image_word_bb_color) | ||||||||||
INT_VAR_H (editor_image_blob_bb_color) | ||||||||||
STRING_VAR_H (editor_word_name) | ||||||||||
INT_VAR_H (editor_word_xpos) | ||||||||||
INT_VAR_H (editor_word_ypos) | ||||||||||
INT_VAR_H (editor_word_height) | ||||||||||
INT_VAR_H (editor_word_width) | ||||||||||
void | reject_blanks (WERD_RES *word) | |||||||||
void | reject_poor_matches (WERD_RES *word) | |||||||||
float | compute_reject_threshold (WERD_CHOICE *word) | |||||||||
bool | word_contains_non_1_digit (const char *word, const char *word_lengths) | |||||||||
void | dont_allow_1Il (WERD_RES *word) | |||||||||
void | flip_hyphens (WERD_RES *word) | |||||||||
void | flip_0O (WERD_RES *word) | |||||||||
bool | non_0_digit (const char *str, int length) | |||||||||
PAGE_RES_IT * | make_pseudo_word (PAGE_RES *page_res, const TBOX &selection_box) | |||||||||
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 &xmax) | |||||||||
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) | |||||||||
BlobNeighbourDir | DirOtherWay (BlobNeighbourDir dir) | |||||||||
bool | DominatesInMerge (BlobTextFlowType type1, BlobTextFlowType type2) | |||||||||
bool | divisible_blob (TBLOB *blob, bool italic_blob, TPOINT *location) | |||||||||
void | divide_blobs (TBLOB *blob, TBLOB *other_blob, bool italic_blob, const TPOINT &location) | |||||||||
bool | read_unlv_file (std::string &name, int32_t xsize, int32_t ysize, BLOCK_LIST *blocks) | |||||||||
void | FullPageBlock (int width, int height, BLOCK_LIST *blocks) | |||||||||
FILE * | OpenBoxFile (const char *fname) | |||||||||
bool | ReadAllBoxes (int target_page, bool skip_blanks, const char *filename, std::vector< TBOX > *boxes, std::vector< std::string > *texts, std::vector< std::string > *box_texts, std::vector< int > *pages) | |||||||||
bool | ReadMemBoxes (int target_page, bool skip_blanks, const char *box_data, bool continue_on_failure, std::vector< TBOX > *boxes, std::vector< std::string > *texts, std::vector< std::string > *box_texts, std::vector< int > *pages) | |||||||||
bool | ReadNextBox (int *line_number, FILE *box_file, std::string &utf8_str, TBOX *bounding_box) | |||||||||
bool | ReadNextBox (int target_page, int *line_number, FILE *box_file, std::string &utf8_str, TBOX *bounding_box) | |||||||||
bool | ParseBoxFileStr (const char *boxfile_str, int *page_number, std::string &utf8_str, TBOX *bounding_box) | |||||||||
void | MakeBoxFileStr (const char *unichar_str, const TBOX &box, int page_num, std::string &box_str) | |||||||||
void | FontInfoDeleteCallback (FontInfo f) | |||||||||
bool | read_info (TFile *f, FontInfo *fi) | |||||||||
bool | write_info (FILE *f, const FontInfo &fi) | |||||||||
bool | read_spacing_info (TFile *f, FontInfo *fi) | |||||||||
bool | write_spacing_info (FILE *f, const FontInfo &fi) | |||||||||
bool | write_set (FILE *f, const FontSet &fs) | |||||||||
constexpr ERRCODE | EMPTY_LLSQ ("Can't delete from an empty LLSQ") | |||||||||
template<typename T > | ||||||||||
T | MedianOfCircularValues (T modulus, std::vector< T > &v) | |||||||||
void | PrintSegmentationStats (BLOCK_LIST *block_list) | |||||||||
void | ExtractBlobsFromSegmentation (BLOCK_LIST *blocks, C_BLOB_LIST *output_blob_list) | |||||||||
void | RefreshWordBlobsFromNewBlobs (BLOCK_LIST *block_list, C_BLOB_LIST *new_blobs, C_BLOB_LIST *not_found_blobs) | |||||||||
int | OtsuThreshold (Image src_pix, int left, int top, int width, int height, std::vector< int > &thresholds, std::vector< int > &hi_values) | |||||||||
void | HistogramRect (Image src_pix, int channel, int left, int top, int width, int height, int *histogram) | |||||||||
int | OtsuStats (const int *histogram, int *H_out, int *omega0_out) | |||||||||
int | ParamsTrainingFeatureByName (const char *name) | |||||||||
constexpr ERRCODE | BADBLOCKLINE ("Y coordinate in block out of bounds") | |||||||||
constexpr ERRCODE | LOSTBLOCKLINE ("Can't find rectangle for line") | |||||||||
ICOORD | operator! (const ICOORD &src) | |||||||||
ICOORD | operator- (const ICOORD &src) | |||||||||
ICOORD | operator+ (const ICOORD &op1, const ICOORD &op2) | |||||||||
ICOORD & | operator+= (ICOORD &op1, const ICOORD &op2) | |||||||||
ICOORD | operator- (const ICOORD &op1, const ICOORD &op2) | |||||||||
ICOORD & | operator-= (ICOORD &op1, const ICOORD &op2) | |||||||||
int32_t | operator% (const ICOORD &op1, const ICOORD &op2) | |||||||||
int32_t | operator* (const ICOORD &op1, const ICOORD &op2) | |||||||||
ICOORD | operator* (const ICOORD &op1, TDimension scale) | |||||||||
ICOORD | operator* (TDimension scale, const ICOORD &op1) | |||||||||
ICOORD & | operator*= (ICOORD &op1, TDimension scale) | |||||||||
ICOORD | operator/ (const ICOORD &op1, TDimension scale) | |||||||||
ICOORD & | operator/= (ICOORD &op1, TDimension scale) | |||||||||
FCOORD | operator! (const FCOORD &src) | |||||||||
FCOORD | operator- (const FCOORD &src) | |||||||||
FCOORD | operator+ (const FCOORD &op1, const FCOORD &op2) | |||||||||
FCOORD & | operator+= (FCOORD &op1, const FCOORD &op2) | |||||||||
FCOORD | operator- (const FCOORD &op1, const FCOORD &op2) | |||||||||
FCOORD & | operator-= (FCOORD &op1, const FCOORD &op2) | |||||||||
float | operator% (const FCOORD &op1, const FCOORD &op2) | |||||||||
float | operator* (const FCOORD &op1, const FCOORD &op2) | |||||||||
FCOORD | operator* (const FCOORD &op1, float scale) | |||||||||
FCOORD | operator* (float scale, const FCOORD &op1) | |||||||||
FCOORD & | operator*= (FCOORD &op1, float scale) | |||||||||
FCOORD | operator/ (const FCOORD &op1, float scale) | |||||||||
FCOORD & | operator/= (FCOORD &op1, float scale) | |||||||||
TESSLINE * | ApproximateOutline (bool allow_detailed_fx, C_OUTLINE *c_outline) | |||||||||
BLOB_CHOICE * | FindMatchingChoice (UNICHAR_ID char_id, BLOB_CHOICE_LIST *bc_list) | |||||||||
const char * | ScriptPosToString (enum ScriptPos script_pos) | |||||||||
bool | EqualIgnoringCaseAndTerminalPunct (const WERD_CHOICE &word1, const WERD_CHOICE &word2) | |||||||||
void | print_ratings_list (const char *msg, BLOB_CHOICE_LIST *ratings, const UNICHARSET ¤t_unicharset) | |||||||||
TBOX & | operator+= (TBOX &op1, const TBOX &op2) | |||||||||
TBOX & | operator&= (TBOX &op1, const TBOX &op2) | |||||||||
EDGEPT * | make_edgept (TDimension x, TDimension y, EDGEPT *next, EDGEPT *prev) | |||||||||
void | remove_edgept (EDGEPT *point) | |||||||||
BOOL_VAR_H (wordrec_display_splits) | ||||||||||
int | word_comparator (const void *word1p, const void *word2p) | |||||||||
constexpr ERRCODE | BADERRACTION ("Illegal error action") | |||||||||
constexpr ERRCODE | ASSERT_FAILED ("Assert failed") | |||||||||
constexpr ERRCODE | CANTOPENFILE ("Can't open file") | |||||||||
bool | LoadDataFromFile (const char *filename, GenericVector< char > *data) | |||||||||
bool | SaveDataToFile (const GenericVector< char > &data, const char *filename) | |||||||||
template<typename T > | ||||||||||
int | sort_cmp (const void *t1, const void *t2) | |||||||||
template<typename T > | ||||||||||
int | sort_ptr_cmp (const void *t1, const void *t2) | |||||||||
template<class T > | ||||||||||
bool | contains (const std::vector< T > &data, const T &value) | |||||||||
const std::vector< std::string > | split (const std::string &s, char c) | |||||||||
void | chomp_string (char *str) | |||||||||
int | RoundUp (int n, int block_size) | |||||||||
template<typename T > | ||||||||||
T | ClipToRange (const T &x, const T &lower_bound, const T &upper_bound) | |||||||||
template<typename T1 , typename T2 > | ||||||||||
void | UpdateRange (const T1 &x, T2 *lower_bound, T2 *upper_bound) | |||||||||
template<typename T1 , typename T2 > | ||||||||||
void | UpdateRange (const T1 &x_lo, const T1 &x_hi, T2 *lower_bound, T2 *upper_bound) | |||||||||
template<typename T > | ||||||||||
void | IntersectRange (const T &lower1, const T &upper1, T *lower2, T *upper2) | |||||||||
int | Modulo (int a, int b) | |||||||||
int | DivRounded (int a, int b) | |||||||||
int | IntCastRounded (double x) | |||||||||
int | IntCastRounded (float x) | |||||||||
void | ReverseN (void *ptr, int num_bytes) | |||||||||
void | Reverse32 (void *ptr) | |||||||||
template<typename T > | ||||||||||
bool | DeSerialize (bool swap, FILE *fp, std::vector< T > &data) | |||||||||
template<typename T > | ||||||||||
bool | Serialize (FILE *fp, const std::vector< T > &data) | |||||||||
template<class T > | ||||||||||
bool | NearlyEqual (T x, T y, T tolerance) | |||||||||
constexpr ERRCODE | NO_LIST ("Iterator not set to a list") | |||||||||
constexpr ERRCODE | NULL_DATA ("List would have returned a nullptr data pointer") | |||||||||
constexpr ERRCODE | NULL_CURRENT ("List current position is nullptr") | |||||||||
constexpr ERRCODE | NULL_NEXT ("Next element on the list is nullptr") | |||||||||
constexpr ERRCODE | NULL_PREV ("Previous element on the list is nullptr") | |||||||||
constexpr ERRCODE | EMPTY_LIST ("List is empty") | |||||||||
constexpr ERRCODE | BAD_PARAMETER ("List parameter error") | |||||||||
constexpr ERRCODE | STILL_LINKED ("Attempting to add an element with non nullptr links, to a list") | |||||||||
tesseract::ParamsVectors * | GlobalParams () | |||||||||
bool | LoadDataFromFile (const char *filename, std::vector< char > *data) | |||||||||
bool | SaveDataToFile (const std::vector< char > &data, const char *filename) | |||||||||
template<typename T , size_t N> | ||||||||||
constexpr size_t | countof (T const (&)[N]) noexcept | |||||||||
template<typename T > | ||||||||||
bool | DeSerialize (FILE *fp, T *data, size_t n=1) | |||||||||
template<typename T > | ||||||||||
bool | Serialize (FILE *fp, const T *data, size_t n=1) | |||||||||
void | tprintf (const char *format,...) | |||||||||
TESS_API | INT_VAR_H (log_level) | |||||||||
void | AddAdaptedClass (ADAPT_TEMPLATES_STRUCT *Templates, ADAPT_CLASS_STRUCT *Class, CLASS_ID ClassId) | |||||||||
ADAPT_CLASS_STRUCT * | ReadAdaptedClass (TFile *fp) | |||||||||
PERM_CONFIG_STRUCT * | ReadPermConfig (TFile *fp) | |||||||||
TEMP_CONFIG_STRUCT * | ReadTempConfig (TFile *fp) | |||||||||
void | WriteAdaptedClass (FILE *File, ADAPT_CLASS_STRUCT *Class, int NumConfigs) | |||||||||
void | WritePermConfig (FILE *File, PERM_CONFIG_STRUCT *Config) | |||||||||
void | WriteTempConfig (FILE *File, TEMP_CONFIG_STRUCT *Config) | |||||||||
bool | MarginalMatch (float confidence, float matcher_great_threshold) | |||||||||
void | InitMatcherRatings (float *Rating) | |||||||||
int | MakeTempProtoPerm (void *item1, void *item2) | |||||||||
void | SetAdaptiveThreshold (float Threshold) | |||||||||
CLUSTERER * | MakeClusterer (int16_t SampleSize, const PARAM_DESC ParamDesc[]) | |||||||||
SAMPLE * | MakeSample (CLUSTERER *Clusterer, const float *Feature, uint32_t CharID) | |||||||||
LIST | ClusterSamples (CLUSTERER *Clusterer, CLUSTERCONFIG *Config) | |||||||||
void | FreeClusterer (CLUSTERER *Clusterer) | |||||||||
void | FreeProtoList (LIST *ProtoList) | |||||||||
void | FreePrototype (void *arg) | |||||||||
CLUSTER * | NextSample (LIST *SearchState) | |||||||||
float | Mean (PROTOTYPE *Proto, uint16_t Dimension) | |||||||||
float | StandardDeviation (PROTOTYPE *Proto, uint16_t Dimension) | |||||||||
int32_t | MergeClusters (int16_t N, PARAM_DESC ParamDesc[], int32_t n1, int32_t n2, float m[], float m1[], float m2[]) | |||||||||
uint16_t | ReadSampleSize (TFile *fp) | |||||||||
PARAM_DESC * | ReadParamDesc (TFile *fp, uint16_t N) | |||||||||
PROTOTYPE * | ReadPrototype (TFile *fp, uint16_t N) | |||||||||
void | WriteParamDesc (FILE *File, uint16_t N, const PARAM_DESC ParamDesc[]) | |||||||||
void | WritePrototype (FILE *File, uint16_t N, PROTOTYPE *Proto) | |||||||||
StartParamDesc (MicroFeatureParams) DefineParam(0 | ||||||||||
DefineParam (0, 0, -0.25, 0.75) DefineParam(0 | ||||||||||
DefineParam (1, 0, 0.0, 1.0) DefineParam(0 | ||||||||||
DefineParam (0, 1, -0.5, 0.5) EndParamDesc DefineFeature(MicroFeatureDesc | ||||||||||
MicroFeatureParams | StartParamDesc (CharNormParams) DefineParam(0 | |||||||||
MicroFeatureParams | DefineParam (0, 1, 0.0, 1.0) DefineParam(0 | |||||||||
MicroFeatureParams | DefineParam (0, 0, 0.0, 1.0) EndParamDesc DefineFeature(CharNormDesc | |||||||||
MicroFeatureParams CharNormParams | StartParamDesc (IntFeatParams) DefineParam(0 | |||||||||
MicroFeatureParams CharNormParams | DefineParam (0, 0, 0.0, 255.0) DefineParam(1 | |||||||||
MicroFeatureParams CharNormParams EndParamDesc | DefineFeature (IntFeatDesc, 2, 1, kIntFeatureType, IntFeatParams) StartParamDesc(GeoFeatParams) DefineParam(0 | |||||||||
MicroFeatureParams CharNormParams EndParamDesc EndParamDesc | DefineFeature (GeoFeatDesc, 3, 0, kGeoFeatureType, GeoFeatParams) float PicoFeatureLength | |||||||||
StartParamDesc (PicoFeatParams) DefineParam(0 | ||||||||||
EndParamDesc | DefineFeature (PicoFeatDesc, 2, 1, "pf", PicoFeatParams) StartParamDesc(OutlineFeatParams) DefineParam(0 | |||||||||
void | InitFeatureDefs (FEATURE_DEFS_STRUCT *featuredefs) | |||||||||
void | WriteCharDescription (const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC_STRUCT *CharDesc, std::string &str) | |||||||||
bool | ValidCharDescription (const FEATURE_DEFS_STRUCT &FeatureDefs, CHAR_DESC_STRUCT *CharDesc) | |||||||||
CHAR_DESC_STRUCT * | ReadCharDescription (const FEATURE_DEFS_STRUCT &FeatureDefs, FILE *File) | |||||||||
uint32_t | ShortNameToFeatureType (const FEATURE_DEFS_STRUCT &FeatureDefs, const char *ShortName) | |||||||||
void | InitIntegerFX () | |||||||||
FCOORD | FeatureDirection (uint8_t theta) | |||||||||
TrainingSample * | BlobToTrainingSample (const TBLOB &blob, bool nonlinear_norm, INT_FX_RESULT_STRUCT *fx_info, std::vector< INT_FEATURE_STRUCT > *bl_features) | |||||||||
BOOL_VAR_H (disable_character_fragments) | ||||||||||
INT_VAR_H (classify_integer_matcher_multiplier) | ||||||||||
float | BucketStart (int Bucket, float Offset, int NumBuckets) | |||||||||
float | BucketEnd (int Bucket, float Offset, int NumBuckets) | |||||||||
void | DoFill (FILL_SPEC *FillSpec, CLASS_PRUNER_STRUCT *Pruner, uint32_t ClassMask, uint32_t ClassCount, uint32_t WordIndex) | |||||||||
bool | FillerDone (TABLE_FILLER *Filler) | |||||||||
void | FillPPCircularBits (uint32_t ParamTable[NUM_PP_BUCKETS][WERDS_PER_PP_VECTOR], int Bit, float Center, float Spread, bool debug) | |||||||||
void | FillPPLinearBits (uint32_t ParamTable[NUM_PP_BUCKETS][WERDS_PER_PP_VECTOR], int Bit, float Center, float Spread, bool debug) | |||||||||
void | GetCPPadsForLevel (int Level, float *EndPad, float *SidePad, float *AnglePad) | |||||||||
ScrollView::Color | GetMatchColorFor (float Evidence) | |||||||||
void | GetNextFill (TABLE_FILLER *Filler, FILL_SPEC *Fill) | |||||||||
void | InitTableFiller (float EndPad, float SidePad, float AnglePad, PROTO_STRUCT *Proto, TABLE_FILLER *Filler) | |||||||||
void | RenderIntFeature (ScrollView *window, const INT_FEATURE_STRUCT *Feature, ScrollView::Color color) | |||||||||
void | RenderIntProto (ScrollView *window, INT_CLASS_STRUCT *Class, PROTO_ID ProtoId, ScrollView::Color color) | |||||||||
void | AddIntClass (INT_TEMPLATES_STRUCT *Templates, CLASS_ID ClassId, INT_CLASS_STRUCT *Class) | |||||||||
int | AddIntConfig (INT_CLASS_STRUCT *Class) | |||||||||
int | AddIntProto (INT_CLASS_STRUCT *Class) | |||||||||
void | AddProtoToClassPruner (PROTO_STRUCT *Proto, CLASS_ID ClassId, INT_TEMPLATES_STRUCT *Templates) | |||||||||
void | AddProtoToProtoPruner (PROTO_STRUCT *Proto, int ProtoId, INT_CLASS_STRUCT *Class, bool debug) | |||||||||
uint8_t | Bucket8For (float param, float offset, int num_buckets) | |||||||||
uint16_t | Bucket16For (float param, float offset, int num_buckets) | |||||||||
uint8_t | CircBucketFor (float param, float offset, int num_buckets) | |||||||||
void | UpdateMatchDisplay () | |||||||||
void | ConvertConfig (BIT_VECTOR Config, int ConfigId, INT_CLASS_STRUCT *Class) | |||||||||
void | DisplayIntFeature (const INT_FEATURE_STRUCT *Feature, float Evidence) | |||||||||
void | DisplayIntProto (INT_CLASS_STRUCT *Class, PROTO_ID ProtoId, float Evidence) | |||||||||
void | ClearFeatureSpaceWindow (NORM_METHOD norm_method, ScrollView *window) | |||||||||
void | InitIntMatchWindowIfReqd () | |||||||||
void | InitProtoDisplayWindowIfReqd () | |||||||||
void | InitFeatureDisplayWindowIfReqd () | |||||||||
ScrollView * | CreateFeatureSpaceWindow (const char *name, int xpos, int ypos) | |||||||||
void | ShowMatchDisplay () | |||||||||
KDTREE * | MakeKDTree (int16_t KeySize, const PARAM_DESC KeyDesc[]) | |||||||||
void | KDStore (KDTREE *Tree, float *Key, CLUSTER *Data) | |||||||||
void | KDDelete (KDTREE *Tree, float Key[], void *Data) | |||||||||
void | KDNearestNeighborSearch (KDTREE *Tree, float Query[], int QuerySize, float MaxDistance, int *NumberOfResults, void **NBuffer, float DBuffer[]) | |||||||||
void | KDWalk (KDTREE *Tree, kdwalk_proc action, ClusteringContext *context) | |||||||||
float | DistanceSquared (int k, PARAM_DESC *dim, float p1[], float p2[]) | |||||||||
float | ComputeDistance (int k, PARAM_DESC *dim, float p1[], float p2[]) | |||||||||
void | Walk (KDTREE *tree, kdwalk_proc action, ClusteringContext *context, KDNODE *sub_tree, int32_t level) | |||||||||
void | InsertNodes (KDTREE *tree, KDNODE *nodes) | |||||||||
int | QueryInSearch (KDTREE *tree) | |||||||||
FEATURE_SET | ExtractMicros (TBLOB *Blob, const DENORM &cn_denorm) | |||||||||
LIST | ConvertBlob (TBLOB *blob) | |||||||||
MFOUTLINE | ConvertOutline (TESSLINE *outline) | |||||||||
LIST | ConvertOutlines (TESSLINE *outline, LIST mf_outlines, OUTLINETYPE outline_type) | |||||||||
void | FindDirectionChanges (MFOUTLINE Outline, float MinSlope, float MaxSlope) | |||||||||
void | FreeMFOutline (void *arg) | |||||||||
void | FreeOutlines (LIST Outlines) | |||||||||
void | MarkDirectionChanges (MFOUTLINE Outline) | |||||||||
MFOUTLINE | NextExtremity (MFOUTLINE EdgePoint) | |||||||||
void | NormalizeOutline (MFOUTLINE Outline, float XOrigin) | |||||||||
void | ChangeDirection (MFOUTLINE Start, MFOUTLINE End, DIRECTION Direction) | |||||||||
void | CharNormalizeOutline (MFOUTLINE Outline, const DENORM &cn_denorm) | |||||||||
void | ComputeDirection (MFEDGEPT *Start, MFEDGEPT *Finish, float MinSlope, float MaxSlope) | |||||||||
MFOUTLINE | NextDirectionChange (MFOUTLINE EdgePoint) | |||||||||
void | ComputeBlobCenter (TBLOB *Blob, TPOINT *BlobCenter) | |||||||||
void | FilterEdgeNoise (MFOUTLINE Outline, float NoiseSegmentLength) | |||||||||
MICROFEATURES | ConvertToMicroFeatures (MFOUTLINE Outline, MICROFEATURES MicroFeatures) | |||||||||
MicroFeature | ExtractMicroFeature (MFOUTLINE Start, MFOUTLINE End) | |||||||||
MICROFEATURES | BlobMicroFeatures (TBLOB *Blob, const DENORM &cn_denorm) | |||||||||
double_VAR_H (classify_min_slope) | ||||||||||
double_VAR_H (classify_max_slope) | ||||||||||
float | ActualOutlineLength (FEATURE Feature) | |||||||||
FEATURE_SET | ExtractCharNormFeatures (const INT_FX_RESULT_STRUCT &fx_info) | |||||||||
double_VAR_H (classify_norm_adj_midpoint) | ||||||||||
double_VAR_H (classify_norm_adj_curl) | ||||||||||
bool | AddFeature (FEATURE_SET FeatureSet, FEATURE Feature) | |||||||||
FEATURE_SET | ReadFeatureSet (FILE *File, const FEATURE_DESC_STRUCT *FeatureDesc) | |||||||||
void | WriteFeatureSet (FEATURE_SET FeatureSet, std::string &str) | |||||||||
void | AddOutlineFeatureToSet (FPOINT *Start, FPOINT *End, FEATURE_SET FeatureSet) | |||||||||
void | ConvertToOutlineFeatures (MFOUTLINE Outline, FEATURE_SET FeatureSet) | |||||||||
void | NormalizeOutlineX (FEATURE_SET FeatureSet) | |||||||||
void | ConvertSegmentToPicoFeat (FPOINT *Start, FPOINT *End, FEATURE_SET FeatureSet) | |||||||||
void | ConvertToPicoFeatures2 (MFOUTLINE Outline, FEATURE_SET FeatureSet) | |||||||||
void | NormalizePicoX (FEATURE_SET FeatureSet) | |||||||||
double_VAR_H (classify_pico_feature_length) | ||||||||||
void | InitPrototypes () | |||||||||
LIST | delete_d (LIST list, void *key, int_compare is_equal) | |||||||||
LIST | destroy (LIST list) | |||||||||
void | destroy_nodes (LIST list, void_dest destructor) | |||||||||
LIST | last (LIST var_list) | |||||||||
LIST | pop (LIST list) | |||||||||
LIST | push (LIST list, void *element) | |||||||||
LIST | push_last (LIST list, void *item) | |||||||||
LIST | search (LIST list, void *key, int_compare is_equal) | |||||||||
TFloat | Tanh (TFloat x) | |||||||||
TFloat | Logistic (TFloat x) | |||||||||
template<class Func > | ||||||||||
void | FuncInplace (int n, TFloat *inout) | |||||||||
template<class Func > | ||||||||||
void | FuncMultiply (const TFloat *u, const TFloat *v, int n, TFloat *out) | |||||||||
template<typename T > | ||||||||||
void | SoftmaxInPlace (int n, T *inout) | |||||||||
void | CopyVector (unsigned n, const TFloat *src, TFloat *dest) | |||||||||
void | AccumulateVector (int n, const TFloat *src, TFloat *dest) | |||||||||
void | MultiplyVectorsInPlace (int n, const TFloat *src, TFloat *inout) | |||||||||
void | MultiplyAccumulate (int n, const TFloat *u, const TFloat *v, TFloat *out) | |||||||||
void | SumVectors (int n, const TFloat *v1, const TFloat *v2, const TFloat *v3, const TFloat *v4, const TFloat *v5, TFloat *sum) | |||||||||
template<typename T > | ||||||||||
void | ZeroVector (unsigned n, T *vec) | |||||||||
template<typename T > | ||||||||||
void | ClipVector (int n, T lower, T upper, T *vec) | |||||||||
void | CodeInBinary (int n, int nf, TFloat *vec) | |||||||||
INT_VAR_H (textord_debug_bugs) | ||||||||||
INT_VAR_H (textord_debug_tabfind) | ||||||||||
BOOL_VAR_H (textord_debug_printable) | ||||||||||
Image | TraceOutlineOnReducedPix (C_OUTLINE *outline, int gridsize, ICOORD bleft, int *left, int *bottom) | |||||||||
Image | TraceBlockOnReducedPix (BLOCK *block, int gridsize, ICOORD bleft, int *left, int *bottom) | |||||||||
template<class BBC > | ||||||||||
int | SortByBoxLeft (const void *void1, const void *void2) | |||||||||
template<class BBC > | ||||||||||
bool | StdSortByBoxLeft (const void *void1, const void *void2) | |||||||||
template<class BBC > | ||||||||||
int | SortRightToLeft (const void *void1, const void *void2) | |||||||||
template<class BBC > | ||||||||||
bool | StdSortRightToLeft (const void *void1, const void *void2) | |||||||||
template<class BBC > | ||||||||||
int | SortByBoxBottom (const void *void1, const void *void2) | |||||||||
bool | test_underline (bool testing_on, C_BLOB *blob, int16_t baseline, int16_t xheight) | |||||||||
double_VAR_H (textord_underline_threshold) | ||||||||||
void | compute_fixed_pitch_cjk (ICOORD page_tr, TO_BLOCK_LIST *port_blocks) | |||||||||
INT_VAR_H (devanagari_split_debuglevel) | ||||||||||
BOOL_VAR_H (devanagari_split_debugimage) | ||||||||||
ScrollView * | create_to_win (ICOORD page_tr) | |||||||||
void | close_to_win () | |||||||||
void | plot_box_list (ScrollView *win, BLOBNBOX_LIST *list, ScrollView::Color body_colour) | |||||||||
void | plot_to_row (TO_ROW *row, ScrollView::Color colour, FCOORD rotation) | |||||||||
void | plot_parallel_row (TO_ROW *row, float gradient, int32_t left, ScrollView::Color colour, FCOORD rotation) | |||||||||
void | draw_occupation (int32_t xleft, int32_t ybottom, int32_t min_y, int32_t max_y, int32_t occupation[], int32_t thresholds[]) | |||||||||
void | draw_meanlines (TO_BLOCK *block, float gradient, int32_t left, ScrollView::Color colour, FCOORD rotation) | |||||||||
void | plot_word_decisions (ScrollView *win, int16_t pitch, TO_ROW *row) | |||||||||
void | plot_fp_cells (ScrollView *win, ScrollView::Color colour, BLOBNBOX_IT *blob_it, int16_t pitch, int16_t blob_count, STATS *projection, int16_t projection_left, int16_t projection_right, float projection_scale) | |||||||||
void | plot_fp_cells2 (ScrollView *win, ScrollView::Color colour, TO_ROW *row, FPSEGPT_LIST *seg_list) | |||||||||
void | plot_row_cells (ScrollView *win, ScrollView::Color colour, TO_ROW *row, float xshift, ICOORDELT_LIST *cells) | |||||||||
BOOL_VAR_H (textord_show_fixed_cuts) | ||||||||||
void | create_todebug_win () | |||||||||
void | complete_edge (CRACKEDGE *start, C_OUTLINE_IT *outline_it) | |||||||||
ScrollView::Color | check_path_legal (CRACKEDGE *start) | |||||||||
int16_t | loop_bounding_box (CRACKEDGE *&start, ICOORD &botleft, ICOORD &topright) | |||||||||
ROW * | fixed_pitch_words (TO_ROW *row, FCOORD rotation) | |||||||||
void | split_to_blob (BLOBNBOX *blob, int16_t chop_coord, float pitch_error, C_OUTLINE_LIST *left_coutlines, C_OUTLINE_LIST *right_coutlines) | |||||||||
INT_VAR_H (textord_fp_chop_error) | ||||||||||
BOOL_VAR_H (gapmap_debug) | ||||||||||
BOOL_VAR_H (gapmap_use_ends) | ||||||||||
BOOL_VAR_H (gapmap_no_isolated_quanta) | ||||||||||
double_VAR_H (gapmap_big_gaps) | ||||||||||
BOOL_VAR_H (textord_heavy_nr) | ||||||||||
BOOL_VAR_H (textord_show_initial_rows) | ||||||||||
BOOL_VAR_H (textord_show_parallel_rows) | ||||||||||
BOOL_VAR_H (textord_show_expanded_rows) | ||||||||||
BOOL_VAR_H (textord_show_final_rows) | ||||||||||
BOOL_VAR_H (textord_show_final_blobs) | ||||||||||
BOOL_VAR_H (textord_test_landscape) | ||||||||||
BOOL_VAR_H (textord_parallel_baselines) | ||||||||||
BOOL_VAR_H (textord_straight_baselines) | ||||||||||
BOOL_VAR_H (textord_old_baselines) | ||||||||||
BOOL_VAR_H (textord_old_xheight) | ||||||||||
BOOL_VAR_H (textord_fix_xheight_bug) | ||||||||||
BOOL_VAR_H (textord_fix_makerow_bug) | ||||||||||
BOOL_VAR_H (textord_debug_xheights) | ||||||||||
INT_VAR_H (textord_test_x) | ||||||||||
INT_VAR_H (textord_test_y) | ||||||||||
INT_VAR_H (textord_min_blobs_in_row) | ||||||||||
INT_VAR_H (textord_spline_minblobs) | ||||||||||
INT_VAR_H (textord_spline_medianwin) | ||||||||||
INT_VAR_H (textord_min_xheight) | ||||||||||
double_VAR_H (textord_spline_shift_fraction) | ||||||||||
double_VAR_H (textord_skew_ile) | ||||||||||
double_VAR_H (textord_skew_lag) | ||||||||||
double_VAR_H (textord_linespace_iqrlimit) | ||||||||||
double_VAR_H (textord_width_limit) | ||||||||||
double_VAR_H (textord_chop_width) | ||||||||||
double_VAR_H (textord_minxh) | ||||||||||
double_VAR_H (textord_min_linesize) | ||||||||||
double_VAR_H (textord_excess_blobsize) | ||||||||||
double_VAR_H (textord_occupancy_threshold) | ||||||||||
double_VAR_H (textord_underline_width) | ||||||||||
double_VAR_H (textord_min_blob_height_fraction) | ||||||||||
double_VAR_H (textord_xheight_mode_fraction) | ||||||||||
double_VAR_H (textord_ascheight_mode_fraction) | ||||||||||
double_VAR_H (textord_ascx_ratio_min) | ||||||||||
double_VAR_H (textord_ascx_ratio_max) | ||||||||||
double_VAR_H (textord_descx_ratio_min) | ||||||||||
double_VAR_H (textord_descx_ratio_max) | ||||||||||
double_VAR_H (textord_xheight_error_margin) | ||||||||||
INT_VAR_H (textord_lms_line_trials) | ||||||||||
BOOL_VAR_H (textord_new_initial_xheight) | ||||||||||
BOOL_VAR_H (textord_debug_blob) | ||||||||||
void | get_min_max_xheight (int block_linesize, int *min_height, int *max_height) | |||||||||
ROW_CATEGORY | get_row_category (const TO_ROW *row) | |||||||||
bool | within_error_margin (float test, float num, float margin) | |||||||||
float | median_block_xheight (TO_BLOCK *block, float gradient) | |||||||||
int | get_blob_coords (TO_ROW *row, int32_t lineheight, TBOX *blobcoords, bool &holed_line, int &outcount) | |||||||||
void | make_first_baseline (TBOX blobcoords[], int blobcount, int xcoords[], int ycoords[], QSPLINE *spline, QSPLINE *baseline, float jumplimit) | |||||||||
void | make_holed_baseline (TBOX blobcoords[], int blobcount, QSPLINE *spline, QSPLINE *baseline, float gradient) | |||||||||
int | partition_line (TBOX blobcoords[], int blobcount, int *numparts, char partids[], int partsizes[], QSPLINE *spline, float jumplimit, float ydiffs[]) | |||||||||
void | merge_oldbl_parts (TBOX blobcoords[], int blobcount, char partids[], int partsizes[], int biggestpart, float jumplimit) | |||||||||
int | get_ydiffs (TBOX blobcoords[], int blobcount, QSPLINE *spline, float ydiffs[]) | |||||||||
int | choose_partition (float diff, float partdiffs[], int lastpart, float jumplimit, float *drift, float *lastdelta, int *partcount) | |||||||||
int | partition_coords (TBOX blobcoords[], int blobcount, char partids[], int bestpart, int xcoords[], int ycoords[]) | |||||||||
int | segment_spline (TBOX blobcoords[], int blobcount, int xcoords[], int ycoords[], int degree, int pointcount, int xstarts[]) | |||||||||
bool | split_stepped_spline (QSPLINE *baseline, float jumplimit, int *xcoords, int *xstarts, int &segments) | |||||||||
void | insert_spline_point (int xstarts[], int segment, int coord1, int coord2, int &segments) | |||||||||
void | find_lesser_parts (TO_ROW *row, TBOX blobcoords[], int blobcount, char partids[], int partsizes[], int partcount, int bestpart) | |||||||||
void | old_first_xheight (TO_ROW *row, TBOX blobcoords[], int initialheight, int blobcount, QSPLINE *baseline, float jumplimit) | |||||||||
void | make_first_xheight (TO_ROW *row, TBOX blobcoords[], int lineheight, int init_lineheight, int blobcount, QSPLINE *baseline, float jumplimit) | |||||||||
void | find_top_modes (STATS *stats, int statnum, int modelist[], int modenum) | |||||||||
void | pick_x_height (TO_ROW *row, int modelist[], int lefts[], int rights[], STATS *heightstat, int mode_threshold) | |||||||||
BOOL_VAR_H (textord_oldbl_debug) | ||||||||||
int * | make_height_array (TBOX blobcoords[], int blobcount, QSPLINE *baseline) | |||||||||
double | check_pitch_sync2 (BLOBNBOX_IT *blob_it, int16_t blob_count, int16_t pitch, int16_t pitch_error, STATS *projection, int16_t projection_left, int16_t projection_right, float projection_scale, int16_t &occupation_count, FPSEGPT_LIST *seg_list, int16_t start, int16_t end) | |||||||||
double | check_pitch_sync3 (int16_t projection_left, int16_t projection_right, int16_t zero_count, int16_t pitch, int16_t pitch_error, STATS *projection, float projection_scale, int16_t &occupation_count, FPSEGPT_LIST *seg_list, int16_t start, int16_t end) | |||||||||
double | check_pitch_sync (BLOBNBOX_IT *blob_it, int16_t blob_count, int16_t pitch, int16_t pitch_error, STATS *projection, FPSEGPT_LIST *seg_list) | |||||||||
void | make_illegal_segment (FPSEGPT_LIST *prev_list, TBOX blob_box, BLOBNBOX_IT blob_it, int16_t region_index, int16_t pitch, int16_t pitch_error, FPSEGPT_LIST *seg_list) | |||||||||
INT_VAR_H (pitsync_linear_version) | ||||||||||
double_VAR_H (pitsync_joined_edge) | ||||||||||
double_VAR_H (pitsync_offset_freecut_fraction) | ||||||||||
int16_t | vertical_torow_projection (TO_ROW *row, STATS *projection) | |||||||||
void | block_edges (Image t_pix, PDBLK *block, C_OUTLINE_IT *outline_it) | |||||||||
template<typename T > | ||||||||||
void | DeleteObject (T *object) | |||||||||
double_VAR_H (textord_tabvector_vertical_gap_fraction) | ||||||||||
double_VAR_H (textord_tabvector_vertical_box_ratio) | ||||||||||
void | compute_fixed_pitch (ICOORD page_tr, TO_BLOCK_LIST *port_blocks, float gradient, FCOORD rotation, bool testing_on) | |||||||||
void | fix_row_pitch (TO_ROW *bad_row, TO_BLOCK *bad_block, TO_BLOCK_LIST *blocks, int32_t row_target, int32_t block_target) | |||||||||
void | compute_block_pitch (TO_BLOCK *block, FCOORD rotation, int32_t block_index, bool testing_on) | |||||||||
bool | compute_rows_pitch (TO_BLOCK *block, int32_t block_index, bool testing_on) | |||||||||
bool | try_doc_fixed (ICOORD page_tr, TO_BLOCK_LIST *port_blocks, float gradient) | |||||||||
bool | try_block_fixed (TO_BLOCK *block, int32_t block_index) | |||||||||
bool | try_rows_fixed (TO_BLOCK *block, int32_t block_index, bool testing_on) | |||||||||
void | print_block_counts (TO_BLOCK *block, int32_t block_index) | |||||||||
void | count_block_votes (TO_BLOCK *block, int32_t &def_fixed, int32_t &def_prop, int32_t &maybe_fixed, int32_t &maybe_prop, int32_t &corr_fixed, int32_t &corr_prop, int32_t &dunno) | |||||||||
bool | row_pitch_stats (TO_ROW *row, int32_t maxwidth, bool testing_on) | |||||||||
bool | find_row_pitch (TO_ROW *row, int32_t maxwidth, int32_t dm_gap, TO_BLOCK *block, int32_t block_index, int32_t row_index, bool testing_on) | |||||||||
bool | fixed_pitch_row (TO_ROW *row, BLOCK *block, int32_t block_index) | |||||||||
bool | count_pitch_stats (TO_ROW *row, STATS *gap_stats, STATS *pitch_stats, float initial_pitch, float min_space, bool ignore_outsize, bool split_outsize, int32_t dm_gap) | |||||||||
float | tune_row_pitch (TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float &initial_pitch, float &best_sp_sd, int16_t &best_mid_cuts, ICOORDELT_LIST *best_cells, bool testing_on) | |||||||||
float | tune_row_pitch2 (TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float &initial_pitch, float &best_sp_sd, int16_t &best_mid_cuts, ICOORDELT_LIST *best_cells, bool testing_on) | |||||||||
float | compute_pitch_sd (TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float initial_pitch, float &sp_sd, int16_t &mid_cuts, ICOORDELT_LIST *row_cells, bool testing_on, int16_t start, int16_t end) | |||||||||
float | compute_pitch_sd2 (TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float initial_pitch, int16_t &occupation, int16_t &mid_cuts, ICOORDELT_LIST *row_cells, bool testing_on, int16_t start, int16_t end) | |||||||||
void | print_pitch_sd (TO_ROW *row, STATS *projection, int16_t projection_left, int16_t projection_right, float space_size, float initial_pitch) | |||||||||
void | find_repeated_chars (TO_BLOCK *block, bool testing_on) | |||||||||
void | plot_fp_word (TO_BLOCK *block, float pitch, float nonspace) | |||||||||
BOOL_VAR_H (textord_debug_pitch_test) | ||||||||||
BOOL_VAR_H (textord_debug_pitch_metric) | ||||||||||
BOOL_VAR_H (textord_show_row_cuts) | ||||||||||
BOOL_VAR_H (textord_show_page_cuts) | ||||||||||
BOOL_VAR_H (textord_blockndoc_fixed) | ||||||||||
BOOL_VAR_H (textord_fast_pitch_test) | ||||||||||
double_VAR_H (textord_projection_scale) | ||||||||||
double_VAR_H (textord_balance_factor) | ||||||||||
void | SetBlobStrokeWidth (Image pix, BLOBNBOX *blob) | |||||||||
void | assign_blobs_to_blocks2 (Image pix, BLOCK_LIST *blocks, TO_BLOCK_LIST *port_blocks) | |||||||||
void | tweak_row_baseline (ROW *row, double blshift_maxshift, double blshift_xfraction) | |||||||||
BOOL_VAR_H (textord_show_initial_words) | ||||||||||
BOOL_VAR_H (textord_blocksall_fixed) | ||||||||||
BOOL_VAR_H (textord_blocksall_prop) | ||||||||||
INT_VAR_H (textord_dotmatrix_gap) | ||||||||||
INT_VAR_H (textord_debug_block) | ||||||||||
INT_VAR_H (textord_pitch_range) | ||||||||||
double_VAR_H (textord_wordstats_smooth_factor) | ||||||||||
double_VAR_H (textord_words_maxspace) | ||||||||||
double_VAR_H (textord_words_default_maxspace) | ||||||||||
double_VAR_H (textord_words_default_minspace) | ||||||||||
double_VAR_H (textord_words_min_minspace) | ||||||||||
double_VAR_H (textord_words_default_nonspace) | ||||||||||
double_VAR_H (textord_words_initial_lower) | ||||||||||
double_VAR_H (textord_words_initial_upper) | ||||||||||
double_VAR_H (textord_words_minlarge) | ||||||||||
double_VAR_H (textord_words_pitchsd_threshold) | ||||||||||
double_VAR_H (textord_words_def_fixed) | ||||||||||
double_VAR_H (textord_words_def_prop) | ||||||||||
INT_VAR_H (textord_words_veto_power) | ||||||||||
double_VAR_H (textord_pitch_rowsimilarity) | ||||||||||
BOOL_VAR_H (textord_pitch_scalebigwords) | ||||||||||
double_VAR_H (words_initial_lower) | ||||||||||
double_VAR_H (words_initial_upper) | ||||||||||
double_VAR_H (words_default_prop_nonspace) | ||||||||||
double_VAR_H (words_default_fixed_space) | ||||||||||
double_VAR_H (words_default_fixed_limit) | ||||||||||
double_VAR_H (textord_words_definite_spread) | ||||||||||
double_VAR_H (textord_spacesize_ratioprop) | ||||||||||
double_VAR_H (textord_fpiqr_ratio) | ||||||||||
double_VAR_H (textord_max_pitch_iqr) | ||||||||||
void | restore_underlined_blobs (TO_BLOCK *block) | |||||||||
TO_ROW * | most_overlapping_row (TO_ROW_LIST *rows, BLOBNBOX *blob) | |||||||||
void | find_underlined_blobs (BLOBNBOX *u_line, QSPLINE *baseline, float xheight, float baseline_offset, ICOORDELT_LIST *chop_cells) | |||||||||
void | vertical_cunderline_projection (C_OUTLINE *outline, QSPLINE *baseline, float xheight, float baseline_offset, STATS *lower_proj, STATS *middle_proj, STATS *upper_proj) | |||||||||
double_VAR_H (textord_underline_offset) | ||||||||||
BOOL_VAR_H (textord_restore_underlines) | ||||||||||
BOOL_VAR_H (textord_force_make_prop_words) | ||||||||||
BOOL_VAR_H (textord_chopper_test) | ||||||||||
void | ParseCommandLineFlags (const char *usage, int *argc, char ***argv, const bool remove_flags) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_INT_PARAM_FLAG (debug_level) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (D) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (F) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (O) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (U) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (X) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (fonts_dir) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (fontconfig_tmpdir) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (output_trainer) | |||||||||
TESS_COMMON_TRAINING_API | DECLARE_STRING_PARAM_FLAG (test_ch) | |||||||||
INT_PARAM_FLAG (debug_level, 0, "Level of Trainer debugging") | ||||||||||
STRING_PARAM_FLAG (D, "", "Directory to write output files to") | ||||||||||
STRING_PARAM_FLAG (F, "font_properties", "File listing font properties") | ||||||||||
STRING_PARAM_FLAG (X, "", "File listing font xheights") | ||||||||||
STRING_PARAM_FLAG (U, "unicharset", "File to load unicharset from") | ||||||||||
STRING_PARAM_FLAG (O, "", "File to write unicharset to") | ||||||||||
STRING_PARAM_FLAG (output_trainer, "", "File to write trainer to") | ||||||||||
STRING_PARAM_FLAG (test_ch, "", "UTF8 test character string") | ||||||||||
STRING_PARAM_FLAG (fonts_dir, "", "") | ||||||||||
STRING_PARAM_FLAG (fontconfig_tmpdir, "", "") | ||||||||||
void | ParseArguments (int *argc, char ***argv) | |||||||||
ShapeTable * | LoadShapeTable (const std::string &file_prefix) | |||||||||
void | WriteShapeTable (const std::string &file_prefix, const ShapeTable &shape_table) | |||||||||
std::unique_ptr< MasterTrainer > | LoadTrainingData (const char *const *filelist, bool replication, ShapeTable **shape_table, std::string &file_prefix) | |||||||||
LABELEDLIST | FindList (LIST List, const std::string &Label) | |||||||||
void | ReadTrainingSamples (const FEATURE_DEFS_STRUCT &feature_definitions, const char *feature_name, int max_samples, UNICHARSET *unicharset, FILE *file, LIST *training_samples) | |||||||||
void | FreeTrainingSamples (LIST CharList) | |||||||||
void | FreeLabeledList (LABELEDLIST LabeledList) | |||||||||
CLUSTERER * | SetUpForClustering (const FEATURE_DEFS_STRUCT &FeatureDefs, LABELEDLIST char_sample, const char *program_feature_type) | |||||||||
void | MergeInsignificantProtos (LIST ProtoList, const char *label, CLUSTERER *Clusterer, CLUSTERCONFIG *clusterconfig) | |||||||||
void | CleanUpUnusedData (LIST ProtoList) | |||||||||
LIST | RemoveInsignificantProtos (LIST ProtoList, bool KeepSigProtos, bool KeepInsigProtos, int N) | |||||||||
MERGE_CLASS | FindClass (LIST List, const std::string &Label) | |||||||||
void | FreeLabeledClassList (LIST ClassList) | |||||||||
CLASS_STRUCT * | SetUpForFloat2Int (const UNICHARSET &unicharset, LIST LabeledClassList) | |||||||||
void | Normalize (float *Values) | |||||||||
void | FreeNormProtoList (LIST CharList) | |||||||||
void | AddToNormProtosList (LIST *NormProtoList, LIST ProtoList, const std::string &CharName) | |||||||||
int | NumberOfProtos (LIST ProtoList, bool CountSigProtos, bool CountInsigProtos) | |||||||||
void | WriteTrainingSamples (const tesseract::FEATURE_DEFS_STRUCT &FeatureDefs, char *Directory, tesseract::LIST CharList, const char *program_feature_type) | |||||||||
void | allocNormProtos () | |||||||||
Image | DegradeImage (Image input, int exposure, TRand *randomizer, float *rotation) | |||||||||
Image | PrepareDistortedPix (const Image pix, bool perspective, bool invert, bool white_noise, bool smooth_noise, bool blur, int box_reduction, TRand *randomizer, std::vector< TBOX > *boxes) | |||||||||
void | GeneratePerspectiveDistortion (int width, int height, TRand *randomizer, Image *pix, std::vector< TBOX > *boxes) | |||||||||
int | ProjectiveCoeffs (int width, int height, TRand *randomizer, float **im_coeffs, float **box_coeffs) | |||||||||
bool | LoadFileLinesToStrings (const char *filename, std::vector< std::string > *lines) | |||||||||
bool | WriteFile (const std::string &output_dir, const std::string &lang, const std::string &suffix, const std::vector< char > &data, FileWriter writer) | |||||||||
std::string | ReadFile (const std::string &filename, FileReader reader) | |||||||||
bool | WriteUnicharset (const UNICHARSET &unicharset, const std::string &output_dir, const std::string &lang, FileWriter writer, TessdataManager *traineddata) | |||||||||
bool | WriteRecoder (const UNICHARSET &unicharset, bool pass_through, const std::string &output_dir, const std::string &lang, FileWriter writer, std::string *radical_table_data, TessdataManager *traineddata) | |||||||||
int | CombineLangModel (const UNICHARSET &unicharset, const std::string &script_dir, const std::string &version_str, const std::string &output_dir, const std::string &lang, bool pass_through_recoder, const std::vector< std::string > &words, const std::vector< std::string > &puncs, const std::vector< std::string > &numbers, bool lang_is_rtl, FileReader reader, FileWriter writer) | |||||||||
bool | NormalizeUTF8String (UnicodeNormMode u_mode, OCRNorm ocr_normalize, GraphemeNorm grapheme_normalize, const char *str8, std::string *normalized) | |||||||||
bool | NormalizeCleanAndSegmentUTF8 (UnicodeNormMode u_mode, OCRNorm ocr_normalize, GraphemeNormMode g_mode, bool report_errors, const char *str8, std::vector< std::string > *graphemes) | |||||||||
char32 | OCRNormalize (char32 ch) | |||||||||
bool | IsOCREquivalent (char32 ch1, char32 ch2) | |||||||||
bool | IsValidCodepoint (const char32 ch) | |||||||||
bool | IsWhitespace (const char32 ch) | |||||||||
bool | IsUTF8Whitespace (const char *text) | |||||||||
unsigned int | SpanUTF8Whitespace (const char *text) | |||||||||
unsigned int | SpanUTF8NotWhitespace (const char *text) | |||||||||
bool | IsInterchangeValid (const char32 ch) | |||||||||
bool | IsInterchangeValid7BitAscii (const char32 ch) | |||||||||
char32 | FullwidthToHalfwidth (const char32 ch) | |||||||||
void | SetupBasicProperties (bool report_errors, bool decompose, UNICHARSET *unicharset) | |||||||||
void | SetScriptProperties (const std::string &script_dir, UNICHARSET *unicharset) | |||||||||
std::string | GetXheightString (const std::string &script_dir, const UNICHARSET &unicharset) | |||||||||
void | SetPropertiesForInputFile (const std::string &script_dir, const std::string &input_unicharset_file, const std::string &output_unicharset_file, const std::string &output_xheights_file) | |||||||||
void | SetupBasicProperties (bool report_errors, UNICHARSET *unicharset) | |||||||||
void | create_fx_win () | |||||||||
void | clear_fx_win () | |||||||||
void | create_fxdebug_win () | |||||||||
template<class BLOB_CHOICE > | ||||||||||
int | SortByUnicharID (const void *void1, const void *void2) | |||||||||
template<class BLOB_CHOICE > | ||||||||||
int | SortByRating (const void *void1, const void *void2) | |||||||||
void | display_edgepts (LIST outlines) | |||||||||
void | draw_blob_edges (TBLOB *blob) | |||||||||
void | mark_outline (EDGEPT *edgept) | |||||||||
void | display_blob (TBLOB *blob, ScrollView::Color color) | |||||||||
void | render_blob (ScrollView *window, TBLOB *blob, ScrollView::Color color) | |||||||||
void | render_edgepts (ScrollView *window, EDGEPT *edgept, ScrollView::Color color) | |||||||||
void | render_outline (ScrollView *window, TESSLINE *outline, ScrollView::Color color) | |||||||||
BOOL_VAR_H (wordrec_display_all_blobs) | ||||||||||
BOOL_VAR_H (wordrec_blob_pause) | ||||||||||
void | OCRTester (const char *imgname, const char *groundtruth, const char *tessdatadir, const char *lang) | |||||||||
TEST_P (MatchGroundTruth, FastPhototestOCR) | ||||||||||
TEST_P (MatchGroundTruth, BestPhototestOCR) | ||||||||||
TEST_P (MatchGroundTruth, TessPhototestOCR) | ||||||||||
INSTANTIATE_TEST_SUITE_P (Eng, MatchGroundTruth, ::testing::Values("eng")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Latin, MatchGroundTruth, ::testing::Values("script/Latin")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Deva, MatchGroundTruth, ::testing::Values("script/Devanagari")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Arabic, MatchGroundTruth, ::testing::Values("script/Arabic")) | ||||||||||
TEST_F (EuroText, FastLatinOCR) | ||||||||||
TEST_F (ApplyBoxTest, TimesCharLevel) | ||||||||||
TEST_F (ApplyBoxTest, ItalicCharLevel) | ||||||||||
TEST_F (ApplyBoxTest, TimesLineLevel) | ||||||||||
TEST_F (ApplyBoxTest, ItalLineLevel) | ||||||||||
std::string | GetCleanedTextResult (tesseract::TessBaseAPI *tess, Image pix) | |||||||||
TEST_F (TesseractTest, StaticTessBaseAPI) | ||||||||||
TEST_F (TesseractTest, BasicTesseractTest) | ||||||||||
TEST_F (TesseractTest, IteratesParagraphsEvenIfNotDetected) | ||||||||||
TEST_F (TesseractTest, HOCRWorksWithoutSetInputName) | ||||||||||
TEST_F (TesseractTest, HOCRContainsBaseline) | ||||||||||
TEST_F (TesseractTest, AdaptToWordStrTest) | ||||||||||
TEST_F (TesseractTest, BasicLSTMTest) | ||||||||||
TEST_F (TesseractTest, LSTMGeometryTest) | ||||||||||
TEST_F (TesseractTest, InitConfigOnlyTest) | ||||||||||
TEST (TesseractInstanceTest, TestMultipleTessInstances) | ||||||||||
TEST (TesseractInstanceTest, TestMultipleTessInstanceVariables) | ||||||||||
TEST_F (BaseapiThreadTest, TestBasicSanity) | ||||||||||
TEST_F (BaseapiThreadTest, TestInit) | ||||||||||
TEST_F (BaseapiThreadTest, TestRecognition) | ||||||||||
TEST_F (BaseapiThreadTest, TestAll) | ||||||||||
TEST_F (BitVectorTest, Primes) | ||||||||||
TEST_F (BitVectorTest, SetAll) | ||||||||||
TEST_F (BitVectorTest, TestNextSetBit) | ||||||||||
TEST_F (BitVectorTest, TestNumSetBits) | ||||||||||
TEST (CleanNamespaceTess, DummyTest) | ||||||||||
TEST_F (ColPartitionTest, IsInSameColumnAsReflexive) | ||||||||||
TEST_F (ColPartitionTest, IsInSameColumnAsBorders) | ||||||||||
TEST_F (ColPartitionTest, IsInSameColumnAsSuperset) | ||||||||||
TEST_F (ColPartitionTest, IsInSameColumnAsPartialOverlap) | ||||||||||
TEST_F (CommandlineflagsTest, RemoveFlags) | ||||||||||
TEST_F (CommandlineflagsTest, ExitsWithErrorOnInvalidFlag) | ||||||||||
TEST_F (CommandlineflagsTest, ParseIntegerFlags) | ||||||||||
TEST_F (CommandlineflagsTest, ParseDoubleFlags) | ||||||||||
TEST_F (CommandlineflagsTest, ParseStringFlags) | ||||||||||
TEST_F (CommandlineflagsTest, ParseBoolFlags) | ||||||||||
TEST_F (CommandlineflagsTest, ParseOldFlags) | ||||||||||
TEST_F (DawgTest, TestDawgConversion) | ||||||||||
TEST_F (DawgTest, TestMatching) | ||||||||||
TEST_F (DENORMTest, NoRotations) | ||||||||||
TEST_F (DENORMTest, WithRotations) | ||||||||||
TEST_F (DENORMTest, Multiple) | ||||||||||
TEST_F (EquationFinderTest, IdentifySpecialText) | ||||||||||
TEST_F (EquationFinderTest, EstimateTypeForUnichar) | ||||||||||
TEST_F (EquationFinderTest, IsIndented) | ||||||||||
TEST_F (EquationFinderTest, IsNearSmallNeighbor) | ||||||||||
TEST_F (EquationFinderTest, CheckSeedBlobsCount) | ||||||||||
TEST_F (EquationFinderTest, ComputeForegroundDensity) | ||||||||||
TEST_F (EquationFinderTest, CountAlignment) | ||||||||||
TEST_F (EquationFinderTest, ComputeCPsSuperBBox) | ||||||||||
TEST_F (EquationFinderTest, SplitCPHorLite) | ||||||||||
TEST_F (EquationFinderTest, SplitCPHor) | ||||||||||
TEST (FileTest, JoinPath) | ||||||||||
TEST (OutputBufferTest, WriteString) | ||||||||||
TEST (InputBufferTest, Read) | ||||||||||
TEST_F (HeapTest, SortTest) | ||||||||||
TEST_F (HeapTest, MixedTest) | ||||||||||
TEST_F (HeapTest, PopWorstTest) | ||||||||||
TEST_F (HeapTest, RevalueTest) | ||||||||||
TEST_F (HeapTest, DoublePtrTest) | ||||||||||
TEST_F (ImagedataTest, CachesProperly) | ||||||||||
TEST_F (ImagedataTest, CachesMultiDocs) | ||||||||||
TEST_F (IndexMapBiDiTest, Primes) | ||||||||||
TEST_F (IndexMapBiDiTest, ManyToOne) | ||||||||||
TEST_F (IntFeatureMapTest, Exhaustive) | ||||||||||
TEST_F (IntSimdMatrixTest, C) | ||||||||||
TEST_F (IntSimdMatrixTest, SSE) | ||||||||||
TEST_F (IntSimdMatrixTest, AVX2) | ||||||||||
std::string | TestDataNameToPath (const std::string &name) | |||||||||
TEST (LangModelTest, AddACharacter) | ||||||||||
TEST (LangModelTest, AddACharacterHindi) | ||||||||||
TEST_F (LayoutTest, ArraySizeTest) | ||||||||||
TEST_F (LayoutTest, UNLV8087_054) | ||||||||||
TEST_F (LayoutTest, HebrewOrderingAndSkew) | ||||||||||
TEST_F (LigatureTableTest, DoesFillLigatureTables) | ||||||||||
TEST_F (LigatureTableTest, TestCustomLigatures) | ||||||||||
TEST_F (LLSQTest, BasicLines) | ||||||||||
TEST_F (LLSQTest, Vectors) | ||||||||||
TEST_F (LLSQTest, RmsOrthWorksAsIntended) | ||||||||||
TEST_F (ListTest, TestCLIST) | ||||||||||
TEST_F (ListTest, TestELIST) | ||||||||||
TEST_F (ListTest, TestELIST2) | ||||||||||
void | LangLoader (const char *lang, const char *tessdatadir) | |||||||||
TEST_P (LoadLanguage, afr) | ||||||||||
TEST_P (LoadLanguage, amh) | ||||||||||
TEST_P (LoadLanguage, ara) | ||||||||||
TEST_P (LoadLanguage, asm) | ||||||||||
TEST_P (LoadLanguage, aze) | ||||||||||
TEST_P (LoadLanguage, aze_cyrl) | ||||||||||
TEST_P (LoadLanguage, bel) | ||||||||||
TEST_P (LoadLanguage, ben) | ||||||||||
TEST_P (LoadLanguage, bod) | ||||||||||
TEST_P (LoadLanguage, bos) | ||||||||||
TEST_P (LoadLanguage, bre) | ||||||||||
TEST_P (LoadLanguage, bul) | ||||||||||
TEST_P (LoadLanguage, cat) | ||||||||||
TEST_P (LoadLanguage, ceb) | ||||||||||
TEST_P (LoadLanguage, ces) | ||||||||||
TEST_P (LoadLanguage, chi_sim) | ||||||||||
TEST_P (LoadLanguage, chi_sim_vert) | ||||||||||
TEST_P (LoadLanguage, chi_tra) | ||||||||||
TEST_P (LoadLanguage, chi_tra_vert) | ||||||||||
TEST_P (LoadLanguage, chr) | ||||||||||
TEST_P (LoadLanguage, cos) | ||||||||||
TEST_P (LoadLanguage, cym) | ||||||||||
TEST_P (LoadLanguage, dan) | ||||||||||
TEST_P (LoadLanguage, deu) | ||||||||||
TEST_P (LoadLanguage, div) | ||||||||||
TEST_P (LoadLanguage, dzo) | ||||||||||
TEST_P (LoadLanguage, ell) | ||||||||||
TEST_P (LoadLanguage, eng) | ||||||||||
TEST_P (LoadLanguage, enm) | ||||||||||
TEST_P (LoadLanguage, epo) | ||||||||||
TEST_P (LoadLanguage, est) | ||||||||||
TEST_P (LoadLanguage, eus) | ||||||||||
TEST_P (LoadLanguage, fao) | ||||||||||
TEST_P (LoadLanguage, fas) | ||||||||||
TEST_P (LoadLanguage, fil) | ||||||||||
TEST_P (LoadLanguage, fin) | ||||||||||
TEST_P (LoadLanguage, fra) | ||||||||||
TEST_P (LoadLanguage, frk) | ||||||||||
TEST_P (LoadLanguage, frm) | ||||||||||
TEST_P (LoadLanguage, fry) | ||||||||||
TEST_P (LoadLanguage, gla) | ||||||||||
TEST_P (LoadLanguage, gle) | ||||||||||
TEST_P (LoadLanguage, glg) | ||||||||||
TEST_P (LoadLanguage, grc) | ||||||||||
TEST_P (LoadLanguage, guj) | ||||||||||
TEST_P (LoadLanguage, hat) | ||||||||||
TEST_P (LoadLanguage, heb) | ||||||||||
TEST_P (LoadLanguage, hin) | ||||||||||
TEST_P (LoadLanguage, hrv) | ||||||||||
TEST_P (LoadLanguage, hun) | ||||||||||
TEST_P (LoadLanguage, hye) | ||||||||||
TEST_P (LoadLanguage, iku) | ||||||||||
TEST_P (LoadLanguage, ind) | ||||||||||
TEST_P (LoadLanguage, isl) | ||||||||||
TEST_P (LoadLanguage, ita) | ||||||||||
TEST_P (LoadLanguage, ita_old) | ||||||||||
TEST_P (LoadLanguage, jav) | ||||||||||
TEST_P (LoadLanguage, jpn) | ||||||||||
TEST_P (LoadLanguage, jpn_vert) | ||||||||||
TEST_P (LoadLanguage, kan) | ||||||||||
TEST_P (LoadLanguage, kat) | ||||||||||
TEST_P (LoadLanguage, kat_old) | ||||||||||
TEST_P (LoadLanguage, kaz) | ||||||||||
TEST_P (LoadLanguage, khm) | ||||||||||
TEST_P (LoadLanguage, kir) | ||||||||||
TEST_P (LoadLanguage, kor) | ||||||||||
TEST_P (LoadLanguage, kor_vert) | ||||||||||
TEST_P (LoadLanguage, lao) | ||||||||||
TEST_P (LoadLanguage, lat) | ||||||||||
TEST_P (LoadLanguage, lav) | ||||||||||
TEST_P (LoadLanguage, lit) | ||||||||||
TEST_P (LoadLanguage, ltz) | ||||||||||
TEST_P (LoadLanguage, mal) | ||||||||||
TEST_P (LoadLanguage, mar) | ||||||||||
TEST_P (LoadLanguage, mkd) | ||||||||||
TEST_P (LoadLanguage, mlt) | ||||||||||
TEST_P (LoadLanguage, mon) | ||||||||||
TEST_P (LoadLanguage, mri) | ||||||||||
TEST_P (LoadLanguage, msa) | ||||||||||
TEST_P (LoadLanguage, mya) | ||||||||||
TEST_P (LoadLanguage, nep) | ||||||||||
TEST_P (LoadLanguage, nld) | ||||||||||
TEST_P (LoadLanguage, nor) | ||||||||||
TEST_P (LoadLanguage, oci) | ||||||||||
TEST_P (LoadLanguage, ori) | ||||||||||
TEST_P (LoadLanguage, osd) | ||||||||||
TEST_P (LoadLanguage, pan) | ||||||||||
TEST_P (LoadLanguage, pol) | ||||||||||
TEST_P (LoadLanguage, por) | ||||||||||
TEST_P (LoadLanguage, pus) | ||||||||||
TEST_P (LoadLanguage, que) | ||||||||||
TEST_P (LoadLanguage, ron) | ||||||||||
TEST_P (LoadLanguage, rus) | ||||||||||
TEST_P (LoadLanguage, san) | ||||||||||
TEST_P (LoadLanguage, sin) | ||||||||||
TEST_P (LoadLanguage, slk) | ||||||||||
TEST_P (LoadLanguage, slv) | ||||||||||
TEST_P (LoadLanguage, snd) | ||||||||||
TEST_P (LoadLanguage, spa) | ||||||||||
TEST_P (LoadLanguage, spa_old) | ||||||||||
TEST_P (LoadLanguage, sqi) | ||||||||||
TEST_P (LoadLanguage, srp) | ||||||||||
TEST_P (LoadLanguage, srp_latn) | ||||||||||
TEST_P (LoadLanguage, sun) | ||||||||||
TEST_P (LoadLanguage, swa) | ||||||||||
TEST_P (LoadLanguage, swe) | ||||||||||
TEST_P (LoadLanguage, syr) | ||||||||||
TEST_P (LoadLanguage, tam) | ||||||||||
TEST_P (LoadLanguage, tat) | ||||||||||
TEST_P (LoadLanguage, tel) | ||||||||||
TEST_P (LoadLanguage, tgk) | ||||||||||
TEST_P (LoadLanguage, tha) | ||||||||||
TEST_P (LoadLanguage, tir) | ||||||||||
TEST_P (LoadLanguage, ton) | ||||||||||
TEST_P (LoadLanguage, tur) | ||||||||||
TEST_P (LoadLanguage, uig) | ||||||||||
TEST_P (LoadLanguage, ukr) | ||||||||||
TEST_P (LoadLanguage, urd) | ||||||||||
TEST_P (LoadLanguage, uzb) | ||||||||||
TEST_P (LoadLanguage, uzb_cyrl) | ||||||||||
TEST_P (LoadLanguage, vie) | ||||||||||
TEST_P (LoadLanguage, yid) | ||||||||||
TEST_P (LoadLanguage, yor) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Tessdata_fast, LoadLanguage, ::testing::Values(TESSDATA_DIR "_fast")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Tessdata_best, LoadLanguage, ::testing::Values(TESSDATA_DIR "_best")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Tessdata, LoadLanguage, ::testing::Values(TESSDATA_DIR)) | ||||||||||
TEST_P (LoadScript, Arabic) | ||||||||||
TEST_P (LoadScript, Armenian) | ||||||||||
TEST_P (LoadScript, Bengali) | ||||||||||
TEST_P (LoadScript, Canadian_Aboriginal) | ||||||||||
TEST_P (LoadScript, Cherokee) | ||||||||||
TEST_P (LoadScript, Cyrillic) | ||||||||||
TEST_P (LoadScript, Devanagari) | ||||||||||
TEST_P (LoadScript, Ethiopic) | ||||||||||
TEST_P (LoadScript, Fraktur) | ||||||||||
TEST_P (LoadScript, Georgian) | ||||||||||
TEST_P (LoadScript, Greek) | ||||||||||
TEST_P (LoadScript, Gujarati) | ||||||||||
TEST_P (LoadScript, Gurmukhi) | ||||||||||
TEST_P (LoadScript, HanS) | ||||||||||
TEST_P (LoadScript, HanS_vert) | ||||||||||
TEST_P (LoadScript, HanT) | ||||||||||
TEST_P (LoadScript, HanT_vert) | ||||||||||
TEST_P (LoadScript, Hangul) | ||||||||||
TEST_P (LoadScript, Hangul_vert) | ||||||||||
TEST_P (LoadScript, Hebrew) | ||||||||||
TEST_P (LoadScript, Japanese) | ||||||||||
TEST_P (LoadScript, Japanese_vert) | ||||||||||
TEST_P (LoadScript, Kannada) | ||||||||||
TEST_P (LoadScript, Khmer) | ||||||||||
TEST_P (LoadScript, Lao) | ||||||||||
TEST_P (LoadScript, Latin) | ||||||||||
TEST_P (LoadScript, Malayalam) | ||||||||||
TEST_P (LoadScript, Myanmar) | ||||||||||
TEST_P (LoadScript, Oriya) | ||||||||||
TEST_P (LoadScript, Sinhala) | ||||||||||
TEST_P (LoadScript, Syriac) | ||||||||||
TEST_P (LoadScript, Tamil) | ||||||||||
TEST_P (LoadScript, Telugu) | ||||||||||
TEST_P (LoadScript, Thaana) | ||||||||||
TEST_P (LoadScript, Thai) | ||||||||||
TEST_P (LoadScript, Tibetan) | ||||||||||
TEST_P (LoadScript, Vietnamese) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Tessdata_fast, LoadScript, ::testing::Values(TESSDATA_DIR "_fast")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Tessdata_best, LoadScript, ::testing::Values(TESSDATA_DIR "_best")) | ||||||||||
INSTANTIATE_TEST_SUITE_P (DISABLED_Tessdata, LoadScript, ::testing::Values(TESSDATA_DIR)) | ||||||||||
TEST_F (LoadLang, engFast) | ||||||||||
TEST_F (LoadLang, engBest) | ||||||||||
TEST_F (LoadLang, engBestInt) | ||||||||||
TEST_F (LoadLang, kmrFast) | ||||||||||
TEST_F (LoadLang, kmrBest) | ||||||||||
TEST_F (LSTMTrainerTest, RecodeTestKorBase) | ||||||||||
TEST_F (LSTMTrainerTest, RecodeTestKor) | ||||||||||
TEST_F (LSTMTrainerTest, EncodeDecodeBothTestKor) | ||||||||||
TEST_F (LSTMTrainerTest, TestSquashed) | ||||||||||
TEST_F (LSTMTrainerTest, BasicTest) | ||||||||||
TEST_F (LSTMTrainerTest, ColorTest) | ||||||||||
TEST_F (LSTMTrainerTest, BidiTest) | ||||||||||
TEST_F (LSTMTrainerTest, Test2D) | ||||||||||
TEST_F (LSTMTrainerTest, TestAdam) | ||||||||||
TEST_F (LSTMTrainerTest, SpeedTest) | ||||||||||
TEST_F (LSTMTrainerTest, DeterminismTest) | ||||||||||
TEST_F (LSTMTrainerTest, SoftmaxBaselineTest) | ||||||||||
TEST_F (LSTMTrainerTest, SoftmaxTest) | ||||||||||
TEST_F (LSTMTrainerTest, EncodedSoftmaxTest) | ||||||||||
TEST_F (LSTMTrainerTest, TestLayerAccess) | ||||||||||
TEST_F (LSTMTrainerTest, EncodesEng) | ||||||||||
TEST_F (LSTMTrainerTest, EncodesKan) | ||||||||||
TEST_F (LSTMTrainerTest, EncodesKor) | ||||||||||
TEST_F (LSTMTrainerTest, MapCoder) | ||||||||||
TEST_F (LSTMTrainerTest, ConvertModel) | ||||||||||
TEST_F (MatrixTest, RotatingTranspose_3_1) | ||||||||||
TEST_F (MatrixTest, RotatingTranspose_2_0) | ||||||||||
TEST_F (MatrixTest, RotatingTranspose_1_3) | ||||||||||
TEST_F (MatrixTest, RotatingTranspose_0_2) | ||||||||||
TEST_F (NetworkioTest, InitWithZeroFill) | ||||||||||
TEST_F (NetworkioTest, CopyWithYReversal) | ||||||||||
TEST_F (NetworkioTest, CopyWithXReversal) | ||||||||||
TEST_F (NetworkioTest, CopyWithXYTranspose) | ||||||||||
TEST (NormstrngsTest, BasicText) | ||||||||||
TEST (NormstrngsTest, LigatureText) | ||||||||||
TEST (NormstrngsTest, OcrSpecificNormalization) | ||||||||||
TEST (NormstrngsTest, DetectsCorrectText) | ||||||||||
TEST (NormstrngsTest, DetectsIncorrectText) | ||||||||||
TEST (NormstrngsTest, NonIndicTextDoesntBreakIndicRules) | ||||||||||
TEST (NormstrngsTest, NoLonelyJoiners) | ||||||||||
TEST (NormstrngsTest, NoLonelyJoinersPlus) | ||||||||||
TEST (NormstrngsTest, NoLonelyJoinersNonAlpha) | ||||||||||
TEST (NormstrngsTest, JoinersStayInArabic) | ||||||||||
TEST (NormstrngsTest, DigitOK) | ||||||||||
TEST (NormstrngsTest, DandaOK) | ||||||||||
TEST (NormstrngsTest, AllScriptsRegtest) | ||||||||||
TEST (NormstrngsTest, IsWhitespace) | ||||||||||
TEST (NormstrngsTest, SpanUTF8Whitespace) | ||||||||||
TEST (NormstrngsTest, SpanUTF8NotWhitespace) | ||||||||||
TEST (NormstrngsTest, IsInterchangeValid) | ||||||||||
TEST (NormstrngsTest, IsInterchangeValid7BitAscii) | ||||||||||
TEST (NormstrngsTest, FullwidthToHalfwidth) | ||||||||||
std::string | CodepointList (const std::vector< char32 > &str32) | |||||||||
std::string | PrintString32WithUnicodes (const std::string &str) | |||||||||
std::string | PrintStringVectorWithUnicodes (const std::vector< std::string > &glyphs) | |||||||||
void | ExpectGraphemeModeResults (const std::string &str, UnicodeNormMode u_mode, int unicode_count, int glyph_count, int grapheme_count, const std::string &target_str) | |||||||||
TEST_F (NthItemTest, GeneralTest) | ||||||||||
TEST_F (NthItemTest, BoringTest) | ||||||||||
TEST_F (NthItemTest, UniqueTest) | ||||||||||
TEST_F (NthItemTest, EqualTest) | ||||||||||
TEST_P (OSDTest, MatchOrientationDegrees) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataEngEuroHebrew, OSDTest, ::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/phototest.tif", TESTING_DIR "/eurotext.tif", TESTING_DIR "/hebrew.png"), ::testing::Values(TESSDATA_DIR))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataBestEngEuroHebrew, OSDTest, ::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/phototest.tif", TESTING_DIR "/eurotext.tif", TESTING_DIR "/hebrew.png"), ::testing::Values(TESSDATA_DIR "_best"))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataFastEngEuroHebrew, OSDTest, ::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/phototest.tif", TESTING_DIR "/eurotext.tif", TESTING_DIR "/hebrew.png"), ::testing::Values(TESSDATA_DIR "_fast"))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataFastRotated90, OSDTest, ::testing::Combine(::testing::Values(90), ::testing::Values(TESTING_DIR "/phototest-rotated-R.png"), ::testing::Values(TESSDATA_DIR "_fast"))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataFastRotated180, OSDTest, ::testing::Combine(::testing::Values(180), ::testing::Values(TESTING_DIR "/phototest-rotated-180.png"), ::testing::Values(TESSDATA_DIR "_fast"))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataFastRotated270, OSDTest, ::testing::Combine(::testing::Values(270), ::testing::Values(TESTING_DIR "/phototest-rotated-L.png"), ::testing::Values(TESSDATA_DIR "_fast"))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataFastDevaRotated270, OSDTest, ::testing::Combine(::testing::Values(270), ::testing::Values(TESTING_DIR "/devatest-rotated-270.png"), ::testing::Values(TESSDATA_DIR "_fast"))) | ||||||||||
INSTANTIATE_TEST_SUITE_P (TessdataFastDeva, OSDTest, ::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/devatest.png"), ::testing::Values(TESSDATA_DIR "_fast"))) | ||||||||||
TEST_F (PageSegModeTest, WordTest) | ||||||||||
TEST_F (PangoFontInfoTest, TestNonDefaultConstructor) | ||||||||||
TEST_F (PangoFontInfoTest, DoesParseFontDescriptionName) | ||||||||||
TEST_F (PangoFontInfoTest, DoesParseMissingFonts) | ||||||||||
TEST_F (PangoFontInfoTest, DoesGetSpacingProperties) | ||||||||||
TEST_F (PangoFontInfoTest, CanRenderString) | ||||||||||
TEST_F (PangoFontInfoTest, CanRenderLigature) | ||||||||||
TEST_F (PangoFontInfoTest, CannotRenderUncoveredString) | ||||||||||
TEST_F (PangoFontInfoTest, CannotRenderInvalidString) | ||||||||||
TEST_F (PangoFontInfoTest, CanDropUncoveredChars) | ||||||||||
TEST_F (FontUtilsTest, DoesFindAvailableFonts) | ||||||||||
TEST_F (FontUtilsTest, DoesDetectMissingFonts) | ||||||||||
TEST_F (FontUtilsTest, DoesListAvailableFonts) | ||||||||||
TEST_F (FontUtilsTest, DoesSelectFont) | ||||||||||
TEST_F (FontUtilsTest, DoesFailToSelectFont) | ||||||||||
void | AsciiToRowInfo (const char *text, int row_number, RowInfo *info) | |||||||||
void | MakeAsciiRowInfos (const TextAndModel *row_infos, int n, std::vector< RowInfo > *output) | |||||||||
void | EvaluateParagraphDetection (const TextAndModel *correct, int n, const std::vector< PARA * > &detector_output) | |||||||||
void | TestParagraphDetection (const TextAndModel *correct, int num_rows) | |||||||||
TEST (ParagraphsTest, ListItemsIdentified) | ||||||||||
TEST (ParagraphsTest, TestSimpleParagraphDetection) | ||||||||||
TEST (ParagraphsTest, TestFewCluesWithCrown) | ||||||||||
TEST (ParagraphsTest, TestCrownParagraphDetection) | ||||||||||
TEST (ParagraphsText, TestRealFlushLeftParagraphs) | ||||||||||
TEST (ParagraphsTest, TestSingleFullPageContinuation) | ||||||||||
TEST (ParagraphsTest, TestRightAlignedParagraph) | ||||||||||
TEST (ParagraphsTest, TestTinyParagraphs) | ||||||||||
TEST (ParagraphsTest, TestComplexPage1) | ||||||||||
TEST (ParagraphsTest, TestComplexPage2) | ||||||||||
TEST (ParagraphsTest, TestSubtleCrown) | ||||||||||
TEST (ParagraphsTest, TestStrayLineInBlock) | ||||||||||
TEST (ParagraphsTest, TestUnlvInsurance) | ||||||||||
TEST (ParagraphsTest, TestSplitsOutLeaderLines) | ||||||||||
TEST (ParagraphsTest, NotDistractedBySourceCode) | ||||||||||
TEST (ParagraphsTest, NotOverlyAggressiveWithBlockQuotes) | ||||||||||
TEST (ParagraphsTest, IndexPageTest) | ||||||||||
TEST_F (ParamsModelTest, TestEngParamsModelIO) | ||||||||||
void | ClassicProgressTester (const char *imgname, const char *tessdatadir, const char *lang) | |||||||||
void | NewProgressTester (const char *imgname, const char *tessdatadir, const char *lang) | |||||||||
TEST (QuickTest, ClassicProgressReporting) | ||||||||||
TEST (QuickTest, NewProgressReporting) | ||||||||||
TEST (QRSequenceGenerator, GetBinaryReversedInteger) | ||||||||||
TEST_P (QRSequenceGeneratorTest, GeneratesValidSequence) | ||||||||||
INSTANTIATE_TEST_SUITE_P (RangeTest, QRSequenceGeneratorTest, ::testing::Values(2, 7, 8, 9, 16, 1e2, 1e4, 1e6)) | ||||||||||
TEST_F (RecodeBeamTest, DoesChinese) | ||||||||||
TEST_F (RecodeBeamTest, DoesJapanese) | ||||||||||
TEST_F (RecodeBeamTest, DoesKorean) | ||||||||||
TEST_F (RecodeBeamTest, DoesKannada) | ||||||||||
TEST_F (RecodeBeamTest, DoesMarathi) | ||||||||||
TEST_F (RecodeBeamTest, DoesEnglish) | ||||||||||
TEST_F (RecodeBeamTest, DISABLED_EngDictionary) | ||||||||||
TEST_F (RecodeBeamTest, DISABLED_ChiDictionary) | ||||||||||
TEST_F (RecodeBeamTest, DISABLED_MultiCodeSequences) | ||||||||||
TEST_F (TBOXTest, OverlapInside) | ||||||||||
TEST_F (TBOXTest, OverlapBoolCorners) | ||||||||||
TEST_F (TBOXTest, OverlapFractionCorners) | ||||||||||
TEST_F (TBOXTest, OverlapBoolSides) | ||||||||||
TEST_F (TBOXTest, OverlapFractionSides) | ||||||||||
TEST_F (TBOXTest, OverlapBoolSpan) | ||||||||||
TEST_F (TBOXTest, OverlapFractionSpan) | ||||||||||
TEST_F (TBOXTest, OverlapOutsideTests) | ||||||||||
TEST_F (TBOXTest, OverlapXFraction) | ||||||||||
TEST_F (TBOXTest, OverlapYFraction) | ||||||||||
TEST_F (TBOXTest, OverlapXFractionZeroSize) | ||||||||||
TEST_F (TBOXTest, OverlapYFractionZeroSize) | ||||||||||
TEST_F (ResultIteratorTest, EasyTest) | ||||||||||
TEST_F (ResultIteratorTest, ComplexTest) | ||||||||||
TEST_F (ResultIteratorTest, GreyTest) | ||||||||||
TEST_F (ResultIteratorTest, SmallCapDropCapTest) | ||||||||||
TEST_F (ResultIteratorTest, DualStartTextlineOrderTest) | ||||||||||
TEST_F (ResultIteratorTest, LeftwardTextlineOrderTest) | ||||||||||
TEST_F (ResultIteratorTest, RightwardTextlineOrderTest) | ||||||||||
TEST_F (ResultIteratorTest, TextlineOrderSanityCheck) | ||||||||||
TEST_F (ResultIteratorTest, DISABLED_NonNullChoicesTest) | ||||||||||
TEST_F (ResultIteratorTest, NonNullConfidencesTest) | ||||||||||
TEST_F (ScanutilsTest, DoesScanf) | ||||||||||
TEST_F (ShapeTest, BasicTest) | ||||||||||
TEST_F (ShapeTest, AddShapeTest) | ||||||||||
TEST_F (ShapeTableTest, FullTest) | ||||||||||
TEST_F (STATSTest, BasicStats) | ||||||||||
TEST_F (STATSTest, InitStats) | ||||||||||
TEST_F (STATSTest, TopNModes) | ||||||||||
TEST_F (StridemapTest, Indexing) | ||||||||||
TEST_F (StridemapTest, Scaling) | ||||||||||
TEST_F (StringRendererTest, DoesRenderToImage) | ||||||||||
TEST_F (StringRendererTest, DoesRenderToImageWithUnderline) | ||||||||||
TEST_F (StringRendererTest, DoesHandleNewlineCharacters) | ||||||||||
TEST_F (StringRendererTest, DoesRenderLigatures) | ||||||||||
TEST_F (StringRendererTest, ArabicBoxcharsInLTROrder) | ||||||||||
TEST_F (StringRendererTest, DoesOutputBoxcharsInReadingOrder) | ||||||||||
TEST_F (StringRendererTest, DoesRenderVerticalText) | ||||||||||
TEST_F (StringRendererTest, DoesKeepAllImageBoxes) | ||||||||||
TEST_F (StringRendererTest, DoesClearBoxes) | ||||||||||
TEST_F (StringRendererTest, DoesLigatureTextForRendering) | ||||||||||
TEST_F (StringRendererTest, DoesRetainInputLigatureForRendering) | ||||||||||
TEST_F (StringRendererTest, DoesStripUnrenderableWords) | ||||||||||
TEST_F (StringRendererTest, DoesRenderWordBoxes) | ||||||||||
TEST_F (StringRendererTest, DoesRenderWordBoxesFromMultiLineText) | ||||||||||
TEST_F (StringRendererTest, DoesRenderAllFontsToImage) | ||||||||||
TEST_F (StringRendererTest, DoesNotRenderWordJoiner) | ||||||||||
TEST_F (StringRendererTest, DISABLED_DoesDropUncoveredChars) | ||||||||||
TEST (ConvertBasicLatinToFullwidthLatinTest, DoesConvertBasicLatin) | ||||||||||
TEST (ConvertBasicLatinToFullwidthLatinTest, DoesNotConvertFullwidthLatin) | ||||||||||
TEST (ConvertBasicLatinToFullwidthLatinTest, DoesNotConvertNonLatin) | ||||||||||
TEST (ConvertBasicLatinToFullwidthLatinTest, DoesNotConvertSpace) | ||||||||||
TEST (ConvertFullwidthLatinToBasicLatinTest, DoesConvertFullwidthLatin) | ||||||||||
TEST (ConvertFullwidthLatinToBasicLatinTest, DoesNotConvertBasicLatin) | ||||||||||
TEST (ConvertFullwidthLatinToBasicLatinTest, DoesNotConvertNonLatin) | ||||||||||
TEST (ConvertFullwidthLatinToBasicLatinTest, DoesNotConvertSpace) | ||||||||||
TEST_F (TableFinderTest, GapInXProjectionNoGap) | ||||||||||
TEST_F (TableFinderTest, GapInXProjectionEdgeGap) | ||||||||||
TEST_F (TableFinderTest, GapInXProjectionExists) | ||||||||||
TEST_F (TableFinderTest, HasLeaderAdjacentOverlapping) | ||||||||||
TEST_F (TableFinderTest, HasLeaderAdjacentNoOverlap) | ||||||||||
TEST_F (TableFinderTest, HasLeaderAdjacentPreservesColumns) | ||||||||||
TEST_F (TableFinderTest, SplitAndInsertFragmentedPartitionsBasicPass) | ||||||||||
TEST_F (TableFinderTest, SplitAndInsertFragmentedPartitionsBasicFail) | ||||||||||
TEST_F (TableRecognizerTest, HasSignificantLinesBasicPass) | ||||||||||
TEST_F (TableRecognizerTest, HasSignificantLinesBasicFail) | ||||||||||
TEST_F (TableRecognizerTest, HasSignificantLinesHorizontalOnlyFails) | ||||||||||
TEST_F (TableRecognizerTest, FindLinesBoundingBoxBasic) | ||||||||||
TEST_F (TableRecognizerTest, RecognizeLinedTableBasic) | ||||||||||
TEST_F (TableRecognizerTest, RecognizeWhitespacedTableBasic) | ||||||||||
TEST_F (StructuredTableTest, CountVerticalIntersectionsAll) | ||||||||||
TEST_F (StructuredTableTest, CountHorizontalIntersectionsAll) | ||||||||||
TEST_F (StructuredTableTest, VerifyLinedTableBasicPass) | ||||||||||
TEST_F (StructuredTableTest, VerifyLinedTableHorizontalFail) | ||||||||||
TEST_F (StructuredTableTest, VerifyLinedTableVerticalFail) | ||||||||||
TEST_F (StructuredTableTest, FindWhitespacedColumnsBasic) | ||||||||||
TEST_F (StructuredTableTest, FindWhitespacedColumnsSorted) | ||||||||||
TEST_F (TabVectorTest, SetStartEndPointsMatch) | ||||||||||
TEST_F (TabVectorTest, XAtY45DegreeSlopeInRangeExact) | ||||||||||
TEST_F (TabVectorTest, XAtYVerticalInRangeExact) | ||||||||||
TEST_F (TabVectorTest, XAtYHorizontal) | ||||||||||
TEST_F (TabVectorTest, XAtYRoundingSimple) | ||||||||||
TEST_F (TabVectorTest, XAtYLargeNumbers) | ||||||||||
TEST_F (TabVectorTest, XAtYHorizontalInRangeExact) | ||||||||||
TEST_F (TabVectorTest, VOverlapInRangeSimple) | ||||||||||
TEST_F (TabVectorTest, VOverlapOutOfRange) | ||||||||||
TEST_F (TabVectorTest, XYFlip) | ||||||||||
TEST_F (TatweelTest, UnicharsetIgnoresTatweel) | ||||||||||
TEST_F (TatweelTest, DictIgnoresTatweel) | ||||||||||
TEST_F (TatweelTest, UnicharsetLoadKeepsTatweel) | ||||||||||
TEST_F (TextlineProjectionTest, Unrotated) | ||||||||||
TEST_F (TextlineProjectionTest, Rotated) | ||||||||||
TEST_F (TfileTest, Serialize) | ||||||||||
TEST_F (TfileTest, FGets) | ||||||||||
TEST_F (TfileTest, BigEndian) | ||||||||||
TEST (UnicharTest, Conversion) | ||||||||||
TEST (UnicharTest, InvalidText) | ||||||||||
TEST_F (UnicharcompressTest, DoesChinese) | ||||||||||
TEST_F (UnicharcompressTest, DoesJapanese) | ||||||||||
TEST_F (UnicharcompressTest, DoesKorean) | ||||||||||
TEST_F (UnicharcompressTest, DoesKannada) | ||||||||||
TEST_F (UnicharcompressTest, DoesMarathi) | ||||||||||
TEST_F (UnicharcompressTest, DoesEnglish) | ||||||||||
TEST_F (UnicharcompressTest, DoesLigaturesWithDoubles) | ||||||||||
TEST_F (UnicharcompressTest, GetEncodingAsString) | ||||||||||
TEST (UnicharsetTest, Basics) | ||||||||||
TEST (UnicharsetTest, Multibyte) | ||||||||||
TEST (UnicharsetTest, MultibyteBigrams) | ||||||||||
TEST (UnicharsetTest, OldStyle) | ||||||||||
TEST (ValidateGraphemeTest, MultipleSyllablesAreNotASingleGrapheme) | ||||||||||
TEST (ValidateGraphemeTest, SingleConsonantOK) | ||||||||||
TEST (ValidateGraphemeTest, SimpleCV) | ||||||||||
TEST (ValidateGraphemeTest, SubscriptConjunct) | ||||||||||
TEST (ValidateGraphemeTest, HalfFormJoiner) | ||||||||||
TEST (ValidateGraphemeTest, TraditionalConjunctJoiner) | ||||||||||
TEST (ValidateGraphemeTest, OpenConjunctNonJoiner) | ||||||||||
TEST (ValidateGraphemeTest, ExplicitViramaNonJoiner) | ||||||||||
TEST (ValidateGraphemeTest, ThaiGraphemes) | ||||||||||
TEST (ValidateGraphemeTest, NoLonelyJoinersQuote) | ||||||||||
TEST (ValidateIndicTest, AddsJoinerToTerminalVirama) | ||||||||||
TEST (ValidateIndicTest, OnlyOneDependentVowel) | ||||||||||
TEST (ValidateIndicTest, OnlyOneVowelModifier) | ||||||||||
TEST (ValidateIndicTest, VowelModifierMustBeLast) | ||||||||||
TEST (ValidateIndicTest, MatrasFollowConsonantsNotVowels) | ||||||||||
TEST (ValidateIndicTest, SubGraphemes) | ||||||||||
TEST (ValidateIndicTest, Nukta) | ||||||||||
TEST (ValidateIndicTest, SinhalaRakaransaya) | ||||||||||
TEST (ValidateIndicTest, SinhalaYansaya) | ||||||||||
TEST (ValidateIndicTest, SinhalaRepaya) | ||||||||||
TEST (ValidateIndicTest, SinhalaSpecials) | ||||||||||
TEST (ValidateKhmerTest, GoodKhmerWords) | ||||||||||
TEST (ValidateKhmerTest, BadKhmerWords) | ||||||||||
TEST (ValidateMyanmarTest, GoodMyanmarWords) | ||||||||||
TEST (ValidateMyanmarTest, BadMyanmarWords) | ||||||||||
TEST (ValidatorTest, MostFrequentViramaScript) | ||||||||||
TEST (ValidatorTest, Idempotency) | ||||||||||
fix_fuzzy_spaces() | ||||||||||
Walk over the page finding sequences of words joined by fuzzy spaces. Extract them as a sublist, process the sublist to find the optimal arrangement of spaces then replace the sublist in the ROW_RES.
| ||||||||||
void | initialise_search (WERD_RES_LIST &src_list, WERD_RES_LIST &new_list) | |||||||||
transform_to_next_perm() | ||||||||||
Examines the current word list to find the smallest word gap size. Then walks the word list closing any gaps of this size by either inserted new combination words, or extending existing ones. The routine COULD be limited to stop it building words longer than N blobs. If there are no more gaps then it DELETES the entire list and returns the empty list to cause termination. | ||||||||||
void | transform_to_next_perm (WERD_RES_LIST &words) | |||||||||
fix_sp_fp_word() | ||||||||||
Test the current word to see if it can be split by deleting noise blobs. If so, do the business. Return with the iterator pointing to the same place if the word is unchanged, or the last of the replacement words. | ||||||||||
void | fixspace_dbg (WERD_RES *word) | |||||||||
C_OUTLINE::move | ||||||||||
Move C_OUTLINE by vector
| ||||||||||
POLY_BLOCK::reflect_in_y_axis | ||||||||||
Reflect the coords of the polygon in the y-axis. (Flip the sign of x.) | ||||||||||
int | lessthan (const void *first, const void *second) | |||||||||
start_seam_list | ||||||||||
Initialize a list of seams that match the original number of blobs present in the starting segmentation. Each of the seams created by this routine have location information only. | ||||||||||
void | start_seam_list (TWERD *word, std::vector< SEAM * > *seam_array) | |||||||||
AddConfigToClass | ||||||||||
Add a new config to this class. Malloc new space and copy the old configs if necessary. Return the config id for the new config.
| ||||||||||
int | AddConfigToClass (CLASS_TYPE Class) | |||||||||
AddProtoToClass | ||||||||||
Add a new proto to this class. Malloc new space and copy the old protos if necessary. Return the proto id for the new proto.
| ||||||||||
int | AddProtoToClass (CLASS_TYPE Class) | |||||||||
void | FillABC (PROTO_STRUCT *Proto) | |||||||||
void | FreeClass (CLASS_TYPE Class) | |||||||||
void | FreeClassFields (CLASS_TYPE Class) | |||||||||
CLASS_TYPE | NewClass (int NumProtos, int NumConfigs) | |||||||||
extract_edges | ||||||||||
void | extract_edges (Image pix, BLOCK *block) | |||||||||
fill_buckets | ||||||||||
capture_children | ||||||||||
Find all neighbouring outlines that are children of this outline and either move them to the output list or declare this outline illegal and return false. | ||||||||||
empty_buckets | ||||||||||
Run the edge detector over the block and return a list of blobs. | ||||||||||
outlines_to_blobs | ||||||||||
Gather together outlines into blobs using the usual bucket sort. | ||||||||||
void | outlines_to_blobs (BLOCK *block, ICOORD bleft, ICOORD tright, C_OUTLINE_LIST *outlines) | |||||||||
row_y_order | ||||||||||
Sort function to sort rows in y from page top. | ||||||||||
row_spacing_order | ||||||||||
Qsort style function to compare 2 TO_ROWS based on their spacing value. | ||||||||||
make_single_row | ||||||||||
Arrange the blobs into a single row... well actually, if there is only a single blob, it makes 2 rows, in case the top-level blob is a container of the real blobs to recognize. | ||||||||||
float | make_single_row (ICOORD page_tr, bool allow_sub_blobs, TO_BLOCK *block, TO_BLOCK_LIST *blocks) | |||||||||
make_rows | ||||||||||
Arrange the blobs into rows. | ||||||||||
float | make_rows (ICOORD page_tr, TO_BLOCK_LIST *port_blocks) | |||||||||
make_initial_textrows | ||||||||||
Arrange the good blobs into rows of text. | ||||||||||
void | make_initial_textrows (ICOORD page_tr, TO_BLOCK *block, FCOORD rotation, bool testing_on) | |||||||||
fit_lms_line | ||||||||||
Fit an LMS line to a row. | ||||||||||
void | fit_lms_line (TO_ROW *row) | |||||||||
find_best_dropout_row | ||||||||||
Delete this row if it has a neighbour with better dropout characteristics. true is returned if the row should be deleted. | ||||||||||
bool | find_best_dropout_row (TO_ROW *row, int32_t distance, float dist_limit, int32_t line_index, TO_ROW_IT *row_it, bool testing_on) | |||||||||
deskew_block_coords | ||||||||||
Compute the bounding box of all the blobs in the block if they were deskewed without actually doing it. | ||||||||||
TBOX | deskew_block_coords (TO_BLOCK *block, float gradient) | |||||||||
compute_line_occupation | ||||||||||
Compute the pixel projection back on the y axis given the global skew. Also compute the 1st derivative. | ||||||||||
void | compute_line_occupation (TO_BLOCK *block, float gradient, int32_t min_y, int32_t max_y, int32_t *occupation, int32_t *deltas) | |||||||||
void | compute_occupation_threshold (int32_t low_window, int32_t high_window, int32_t line_count, int32_t *occupation, int32_t *thresholds) | |||||||||
compute_dropout_distances | ||||||||||
Compute the distance from each coordinate to the nearest dropout. | ||||||||||
void | compute_dropout_distances (int32_t *occupation, int32_t *thresholds, int32_t line_count) | |||||||||
expand_rows | ||||||||||
Expand each row to the least of its allowed size and touching its neighbours. If the expansion would entirely swallow a neighbouring row then do so. | ||||||||||
void | expand_rows (ICOORD page_tr, TO_BLOCK *block, float gradient, FCOORD rotation, int32_t block_edge, bool testing_on) | |||||||||
void | adjust_row_limits (TO_BLOCK *block) | |||||||||
compute_row_stats | ||||||||||
Compute the linespacing and offset. | ||||||||||
void | compute_row_stats (TO_BLOCK *block, bool testing_on) | |||||||||
fill_heights | ||||||||||
Fill the given heights with heights of the blobs that are legal candidates for estimating xheight. | ||||||||||
void | fill_heights (TO_ROW *row, float gradient, int min_height, int max_height, STATS *heights, STATS *floating_heights) | |||||||||
compute_xheight_from_modes | ||||||||||
Given a STATS object heights, looks for two most frequently occurring heights that look like xheight and xheight + ascrise. If found, sets the values of *xheight and *ascrise accordingly, otherwise sets xheight to any most frequently occurring height and sets *ascrise to 0. Returns the number of times xheight occurred in heights. For each mode that is considered for being an xheight the count of floating blobs (stored in floating_heights) is subtracted from the total count of the blobs of this height. This is done because blobs that sit far above the baseline could represent valid ascenders, but it is highly unlikely that such a character's height will be an xheight (e.g. -, ', =, ^, ‘, ", ’, etc) If cap_only, then force finding of only the top mode. | ||||||||||
int | compute_xheight_from_modes (STATS *heights, STATS *floating_heights, bool cap_only, int min_height, int max_height, float *xheight, float *ascrise) | |||||||||
compute_row_descdrop | ||||||||||
Estimates the descdrop of this row. This function looks for "significant" descenders of lowercase letters (those that could not just be the small descenders of upper case letters like Q,J). The function also takes into account how many potential ascenders this row might contain. If the number of potential ascenders along with descenders is close to the expected fraction of the total number of blobs in the row, the function returns the descender height, returns 0 otherwise. | ||||||||||
int32_t | compute_row_descdrop (TO_ROW *row, float gradient, int xheight_blob_count, STATS *asc_heights) | |||||||||
compute_height_modes | ||||||||||
Find the top maxmodes values in the input array and put their indices in the output in the order in which they occurred. | ||||||||||
int32_t | compute_height_modes (STATS *heights, int32_t min_height, int32_t max_height, int32_t *modes, int32_t maxmodes) | |||||||||
correct_row_xheight | ||||||||||
Adjust the xheight etc of this row if not within reasonable limits of the average for the block. | ||||||||||
void | correct_row_xheight (TO_ROW *row, float xheight, float ascrise, float descdrop) | |||||||||
separate_underlines | ||||||||||
Test wide objects for being potential underlines. If they are then put them in a separate list in the block. | ||||||||||
void | separate_underlines (TO_BLOCK *block, float gradient, FCOORD rotation, bool testing_on) | |||||||||
pre_associate_blobs | ||||||||||
Associate overlapping blobs and fake chop wide blobs. | ||||||||||
void | pre_associate_blobs (ICOORD page_tr, TO_BLOCK *block, FCOORD rotation, bool testing_on) | |||||||||
fit_parallel_rows | ||||||||||
Re-fit the rows in the block to the given gradient. | ||||||||||
void | fit_parallel_rows (TO_BLOCK *block, float gradient, FCOORD rotation, int32_t block_edge, bool testing_on) | |||||||||
fit_parallel_lms | ||||||||||
Fit an LMS line to a row. Make the fit parallel to the given gradient and set the row accordingly. | ||||||||||
void | fit_parallel_lms (float gradient, TO_ROW *row) | |||||||||
make_baseline_spline | ||||||||||
Fit an LMS line to a row. Make the fit parallel to the given gradient and set the row accordingly. | ||||||||||
void | make_baseline_spline (TO_ROW *row, TO_BLOCK *block) | |||||||||
segment_baseline | ||||||||||
Divide the baseline up into segments which require a different quadratic fitted to them. Return true if enough blobs were far enough away to need a quadratic. | ||||||||||
bool | segment_baseline (TO_ROW *row, TO_BLOCK *block, int32_t &segments, int32_t *xstarts) | |||||||||
linear_spline_baseline | ||||||||||
Divide the baseline up into segments which require a different quadratic fitted to them.
| ||||||||||
double * | linear_spline_baseline (TO_ROW *row, TO_BLOCK *block, int32_t &segments, int32_t xstarts[]) | |||||||||
assign_blobs_to_rows | ||||||||||
Make enough rows to allocate all the given blobs to one. If a block skew is given, use that, else attempt to track it. | ||||||||||
void | assign_blobs_to_rows (TO_BLOCK *block, float *gradient, int pass, bool reject_misses, bool make_new_rows, bool drawing_skew) | |||||||||
most_overlapping_row | ||||||||||
Return the row which most overlaps the blob. | ||||||||||
OVERLAP_STATE | most_overlapping_row (TO_ROW_IT *row_it, TO_ROW *&best_row, float top, float bottom, float rowsize, bool testing_blob) | |||||||||
blob_x_order | ||||||||||
Sort function to sort blobs in x from page left. | ||||||||||
int | blob_x_order (const void *item1, const void *item2) | |||||||||
mark_repeated_chars | ||||||||||
Mark blobs marked with BTFT_LEADER in repeated sets using the repeated_set member of BLOBNBOX. | ||||||||||
void | mark_repeated_chars (TO_ROW *row) | |||||||||
make_single_word | ||||||||||
For each row, arrange the blobs into one word. There is no fixed pitch detection. | ||||||||||
void | make_single_word (bool one_blob, TO_ROW_LIST *rows, ROW_LIST *real_rows) | |||||||||
void | make_words (tesseract::Textord *textord, ICOORD page_tr, float gradient, BLOCK_LIST *blocks, TO_BLOCK_LIST *port_blocks) | |||||||||
set_row_spaces | ||||||||||
Set the min_space and max_nonspace members of the row so that the blobs can be arranged into words. | ||||||||||
void | set_row_spaces (TO_BLOCK *block, FCOORD rotation, bool testing_on) | |||||||||
row_words | ||||||||||
Compute the max nonspace and min space for the row. | ||||||||||
int32_t | row_words (TO_BLOCK *block, TO_ROW *row, int32_t maxwidth, FCOORD rotation, bool testing_on) | |||||||||
row_words2 | ||||||||||
Compute the max nonspace and min space for the row. | ||||||||||
int32_t | row_words2 (TO_BLOCK *block, TO_ROW *row, int32_t maxwidth, FCOORD rotation, bool testing_on) | |||||||||
make_real_words | ||||||||||
void | make_real_words (tesseract::Textord *textord, TO_BLOCK *block, FCOORD rotation) | |||||||||
make_rep_words | ||||||||||
Fabricate a real row from only the repeated blob words. Get the xheight from the block as it may be more meaningful. | ||||||||||
ROW * | make_rep_words (TO_ROW *row, TO_BLOCK *block) | |||||||||
make_real_word | ||||||||||
Construct a WERD from a given number of adjacent entries in a list of BLOBNBOXs. | ||||||||||
WERD * | make_real_word (BLOBNBOX_IT *box_it, int32_t blobcount, bool bol, uint8_t blanks) | |||||||||
check_blob | ||||||||||
| ||||||||||
any_shared_split_points | ||||||||||
Return true if any of the splits share a point with this one. | ||||||||||
preserve_outline_tree | ||||||||||
Copy the list of outlines. | ||||||||||
restore_outline_tree | ||||||||||
Copy the list of outlines. |
NormEvidenceOf | |
Return the new type of evidence number corresponding to this normalization adjustment. The equation that represents the transform is: 1 / (1 + (NormAdj / midpoint) ^ curl) | |
double | classify_norm_adj_midpoint = 32.0 |
double | classify_norm_adj_curl = 2.0 |
const double | kWidthErrorWeighting = 0.125 |
compute_page_skew | |
Compute the skew over a full page by averaging the gradients over all the lines. Get the error of the same row. | |
const double | kNoiseSize = 0.5 |
const int | kMinSize = 8 |
void | compute_page_skew (TO_BLOCK_LIST *blocks, float &page_m, float &page_err) |
void | vigorous_noise_removal (TO_BLOCK *block) |
void | cleanup_rows_making (ICOORD page_tr, TO_BLOCK *block, float gradient, FCOORD rotation, int32_t block_edge, bool testing_on) |
void | delete_non_dropout_rows (TO_BLOCK *block, float gradient, FCOORD rotation, int32_t block_edge, bool testing_on) |
The box file is assumed to contain box definitions, one per line, of the following format for blob-level boxes:
* <UTF8 str> <left> <bottom> <right> <top> <page id> *
and for word/line-level boxes:
* WordStr <left> <bottom> <right> <top> <page id> #<space-delimited word str> *
NOTES: The boxes use tesseract coordinates, i.e. 0,0 is at BOTTOM-LEFT.
<page id> is 0-based, and the page number is used for multipage input (tiff).
In the blob-level form, each line represents a recognizable unit, which may be several UTF-8 bytes, but there is a bounding box around each recognizable unit, and no classifier is needed to train in this mode (bootstrapping.)
In the word/line-level form, the line begins with the literal "WordStr", and the bounding box bounds either a whole line or a whole word. The recognizable units in the word/line are listed after the # at the end of the line and are space delimited, ignoring any original spaces on the line. Eg.
* word -> #w o r d * multi word line -> #m u l t i w o r d l i n e *
The recognizable units must be space-delimited in order to allow multiple unicodes to be used for a single recognizable unit, eg Hindi.
In this mode, the classifier must have been pre-trained with the desired character set, or it will not be able to find the character segmentations.
Make a word from the selected blobs and run Tess on them.
page_res | recognise blobs |
selection_box | within this box |
using tesseract::BLOB_CHOICE_LIST_VECTOR = typedef std::vector<BLOB_CHOICE_LIST *> |
using tesseract::BLOB_WIDTH = typedef uint8_t |
using tesseract::BlobGridSearch = typedef GridSearch<BLOBNBOX, BLOBNBOX_CLIST, BLOBNBOX_C_IT> |
Definition at line 30 of file blobgrid.h.
using tesseract::CANCEL_FUNC = typedef bool (*)(void *, int) |
Definition at line 98 of file ocrclass.h.
using tesseract::char32 = typedef signed int |
using tesseract::CHAR_FEATURES = typedef char * |
Definition at line 93 of file ocrfeatures.h.
using tesseract::CLASS_ID = typedef UNICHAR_ID |
a CLASS_ID is the ascii character to be associated with a class
Definition at line 34 of file matchdefs.h.
using tesseract::CLASS_TYPE = typedef CLASS_STRUCT * |
using tesseract::CLASSES = typedef CLASS_STRUCT * |
using tesseract::ClusterHeap = typedef tesseract::GenericHeap<ClusterPair> |
Definition at line 1263 of file cluster.cpp.
using tesseract::ClusterPair = typedef tesseract::KDPairInc<float, TEMPCLUSTER *> |
Definition at line 1262 of file cluster.cpp.
using tesseract::ColPartitionGridSearch = typedef GridSearch<ColPartition, ColPartition_CLIST, ColPartition_C_IT> |
Definition at line 918 of file colpartition.h.
using tesseract::ColSegmentGrid = typedef BBGrid<ColSegment, ColSegment_CLIST, ColSegment_C_IT> |
Definition at line 109 of file tablefind.h.
using tesseract::ColSegmentGridSearch = typedef GridSearch<ColSegment, ColSegment_CLIST, ColSegment_C_IT> |
Definition at line 110 of file tablefind.h.
typedef uint32_t tesseract::CONFIG_PRUNER[NUM_PP_PARAMS][NUM_PP_BUCKETS][4] |
Definition at line 91 of file intproto.h.
using tesseract::DANGERR = typedef std::vector<DANGERR_INFO> |
using tesseract::DawgVector = typedef std::vector<Dawg *> |
using tesseract::DENSITYFUNC = typedef double (*)(int32_t) |
Definition at line 1311 of file cluster.cpp.
using tesseract::DictFunc = typedef int (Dict::*)(void *, const UNICHARSET &, UNICHAR_ID, bool) const |
using tesseract::DotProductFunction = typedef TFloat (*)(const TFloat *, const TFloat *, int) |
Definition at line 26 of file simddetect.h.
using tesseract::EDGE_ARRAY = typedef EDGE_RECORD * |
using tesseract::EDGE_INDEX = typedef int64_t |
using tesseract::EDGE_RECORD = typedef uint64_t |
using tesseract::EDGE_REF = typedef int64_t |
using tesseract::EDGE_VECTOR = typedef std::vector<EDGE_RECORD> |
using tesseract::FEATURE = typedef FEATURE_STRUCT * |
Definition at line 68 of file ocrfeatures.h.
using tesseract::FEATURE_DEFS = typedef FEATURE_DEFS_STRUCT * |
Definition at line 45 of file featdefs.h.
using tesseract::FEATURE_DESC = typedef FEATURE_DESC_STRUCT * |
Definition at line 56 of file ocrfeatures.h.
using tesseract::FEATURE_ID = typedef uint8_t |
FEATURE_ID is the index of a feature within a character description The feature id ranges from 0 to N-1 where N is the number of features in a character description.
Definition at line 46 of file matchdefs.h.
using tesseract::FEATURE_SET = typedef FEATURE_SET_STRUCT * |
Definition at line 87 of file ocrfeatures.h.
using tesseract::FileReader = typedef bool (*)(const char *filename, std::vector<char> *data) |
using tesseract::FileWriter = typedef bool (*)(const std::vector<char> &data, const char *filename) |
Definition at line 40 of file serialis.h.
using tesseract::FontSet = typedef std::vector<int> |
Definition at line 154 of file fontinfo.h.
using tesseract::int_compare = typedef int (*)(void *, void *) |
typedef INT_FEATURE_STRUCT tesseract::INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES] |
Definition at line 137 of file intproto.h.
using tesseract::IntKDPair = typedef KDPairInc<int, int> |
using tesseract::kdwalk_proc = typedef void (*)(ClusteringContext *context, CLUSTER *Cluster, int32_t Level) |
using tesseract::LABELEDLIST = typedef LABELEDLISTNODE * |
Definition at line 89 of file commontraining.h.
using tesseract::LanguageModelFlagsType = typedef unsigned char |
Used for expressing various language model flags.
Definition at line 35 of file lm_state.h.
using tesseract::LigHash = typedef std::unordered_map<std::string, std::string> |
Definition at line 36 of file ligature_table.h.
using tesseract::LIST = typedef list_rec * |
using tesseract::MatrixCoordPair = typedef KDPairInc<float, MATRIX_COORD> |
using tesseract::MERGE_CLASS = typedef MERGE_CLASS_NODE * |
Definition at line 98 of file commontraining.h.
using tesseract::MFOUTLINE = typedef LIST |
Definition at line 28 of file mfoutline.h.
using tesseract::MicroFeature = typedef std::array<float, (int)MicroFeatureParameter::MFCount> |
using tesseract::MICROFEATURES = typedef std::forward_list<MicroFeature> |
using tesseract::NODE_MAP = typedef EDGE_REF * |
using tesseract::NODE_REF = typedef int64_t |
using tesseract::NodeChildVector = typedef std::vector<NodeChild> |
using tesseract::PainPointHeap = typedef GenericHeap<MatrixCoordPair> |
Definition at line 36 of file lm_pain_points.h.
using tesseract::ParamsTrainingHypothesisList = typedef std::vector<ParamsTrainingHypothesis> |
Definition at line 126 of file params_training_featdef.h.
using tesseract::PartSetVector = typedef std::vector<ColPartitionSet *> |
Definition at line 32 of file colpartitionset.h.
typedef ParagraphModel tesseract::PModel |
Definition at line 229 of file paragraphs_test.cc.
using tesseract::PointHeap = typedef GenericHeap<PointPair> |
using tesseract::PointPair = typedef KDPairInc<float, EDGEPT *> |
using tesseract::PRIORITY = typedef float |
using tesseract::ProbabilityInContextFunc = typedef double (Dict::*)(const char *, const char *, int, const char *, int) |
using tesseract::PROGRESS_FUNC = typedef bool (*)(int, int, int, int, int) |
Definition at line 99 of file ocrclass.h.
using tesseract::PROGRESS_FUNC2 = typedef bool (*)(ETEXT_DESC *, int, int, int, int) |
Definition at line 100 of file ocrclass.h.
using tesseract::PROTO_ID = typedef int16_t |
a PROTO_ID is the index of a prototype within it's class. Valid proto id's are 0 to N-1 where N is the number of prototypes that make up the class.
Definition at line 40 of file matchdefs.h.
typedef uint32_t tesseract::PROTO_PRUNER[NUM_PP_PARAMS][NUM_PP_BUCKETS][WERDS_PER_PP_VECTOR] |
Definition at line 84 of file intproto.h.
using tesseract::RecodeHeap = typedef GenericHeap<RecodePair> |
Definition at line 178 of file recodebeam.h.
using tesseract::RecodePair = typedef KDPairInc<double, RecodeNode> |
Definition at line 177 of file recodebeam.h.
using tesseract::RSCounts = typedef std::unordered_map<int, int> |
Definition at line 48 of file unicharcompress.cpp.
using tesseract::RSMap = typedef std::unordered_map<int, std::unique_ptr<std::vector<int> >> |
Definition at line 46 of file unicharcompress.cpp.
using tesseract::SAMPLE = typedef CLUSTER |
using tesseract::SeamDecPair = typedef KDPtrPairDec<float, SEAM> |
Definition at line 33 of file findseam.h.
using tesseract::SeamPair = typedef KDPtrPairInc<float, SEAM> |
Definition at line 30 of file findseam.h.
using tesseract::SeamPile = typedef GenericHeap<SeamDecPair> |
Definition at line 34 of file findseam.h.
using tesseract::SeamQueue = typedef GenericHeap<SeamPair> |
Definition at line 31 of file findseam.h.
using tesseract::SetOfModels = typedef std::vector<const ParagraphModel *> |
Definition at line 91 of file paragraphs_internal.h.
using tesseract::ShapeQueue = typedef GenericHeap<ShapeQueueEntry> |
Definition at line 125 of file shapetable.h.
using tesseract::SOLVEFUNC = typedef double (*)(CHISTRUCT *, double) |
Definition at line 1312 of file cluster.cpp.
using tesseract::SuccessorList = typedef std::vector<int> |
using tesseract::SuccessorListsVector = typedef std::vector<SuccessorList *> |
using tesseract::TDimension = typedef int16_t |
Definition at line 32 of file tesstypes.h.
using tesseract::TestCallback = typedef std::function<std::string(int, const double *, const TessdataManager &, int)> |
Definition at line 77 of file lstmtrainer.h.
using tesseract::TFloat = typedef double |
Definition at line 39 of file tesstypes.h.
using tesseract::TRIE_NODES = typedef std::vector<TRIE_NODE_RECORD *> |
using tesseract::UNICHAR_ID = typedef int |
using tesseract::UnicharAmbigsVector = typedef std::vector<AmbigSpec_LIST *> |
using tesseract::UnicharIdVector = typedef std::vector<UNICHAR_ID> |
using tesseract::VECTOR = typedef TPOINT |
using tesseract::void_dest = typedef void (*)(void *) |
using tesseract::WidthCallback = typedef std::function<bool(int)> |
using tesseract::WordGrid = typedef BBGrid<WordWithBox, WordWithBox_CLIST, WordWithBox_C_IT> |
using tesseract::WordRecognizer = typedef void (Tesseract::*)(const WordData &, WERD_RES **, PointerVector<WERD_RES> *) |
Definition at line 175 of file tesseractclass.h.
using tesseract::WordSearch = typedef GridSearch<WordWithBox, WordWithBox_CLIST, WordWithBox_C_IT> |
enum tesseract::AmbigType |
Enumerator | |
---|---|
BSTT_NONE | |
BSTT_ITALIC | |
BSTT_DIGIT | |
BSTT_MATH | |
BSTT_UNCLEAR | |
BSTT_SKIP | |
BSTT_COUNT |
Enumerator | |
---|---|
BTFT_NONE | |
BTFT_NONTEXT | |
BTFT_NEIGHBOURS | |
BTFT_CHAIN | |
BTFT_STRONG_CHAIN | |
BTFT_TEXT_ON_IMAGE | |
BTFT_LEADER | |
BTFT_COUNT |
Enumerator | |
---|---|
CS_SEQUENTIAL | |
CS_ROUND_ROBIN |
Definition at line 42 of file imagedata.h.
Enumerator | |
---|---|
CST_FRAGMENT | |
CST_WHOLE | |
CST_IMPROPER | |
CST_NGRAM |
Definition at line 87 of file classify.h.
Definition at line 50 of file pgedit.cpp.
Definition at line 463 of file tessedit.cpp.
Enumerator | |
---|---|
CM_RAINBOW | |
CM_SUBSCRIPT | |
CM_SUPERSCRIPT | |
CM_ITALIC | |
CM_BOLD | |
CM_UNDERLINE | |
CM_FIXEDPITCH | |
CM_SERIF | |
CM_SMALLCAPS | |
CM_DROPCAPS |
Definition at line 83 of file pgedit.cpp.
Enumerator | |
---|---|
COL_UNKNOWN | |
COL_TEXT | |
COL_TABLE | |
COL_MIXED | |
COL_COUNT |
Definition at line 29 of file tablefind.h.
Enumerator | |
---|---|
CST_NOISE | |
CST_FLOWING | |
CST_HEADING | |
CST_PULLOUT | |
CST_COUNT |
Definition at line 47 of file colpartition.h.
Definition at line 69 of file errorcounter.h.
enum tesseract::DawgType |
Enumerator | |
---|---|
DAWG_TYPE_PUNCTUATION | |
DAWG_TYPE_WORD | |
DAWG_TYPE_NUMBER | |
DAWG_TYPE_PATTERN | |
DAWG_TYPE_COUNT |
enum tesseract::DIRECTION : uint8_t |
Enumerator | |
---|---|
north | |
south | |
east | |
west | |
northeast | |
northwest | |
southeast | |
southwest |
Definition at line 30 of file mfoutline.h.
Enumerator | |
---|---|
DF_BOX | Bounding box. |
DF_TEXT | Correct ascii. |
DF_POLYGONAL | Polyg approx. |
DF_EDGE_STEP | Edge steps. |
DF_BN_POLYGONAL | BL normalisd polyapx. |
DF_BLAMER | Blamer information. |
Definition at line 46 of file werd.h.
Enumerator | |
---|---|
ET_RMS | |
ET_DELTA | |
ET_WORD_RECERR | |
ET_CHAR_ERROR | |
ET_SKIP_RATIO | |
ET_COUNT |
Definition at line 41 of file lstmtrainer.h.
Enumerator | |
---|---|
FN_INCOLOR | |
FN_Y0 | |
FN_Y1 | |
FN_Y2 | |
FN_Y3 | |
FN_X0 | |
FN_X1 | |
FN_SHEAR | |
FN_NUM_FACTORS |
Definition at line 39 of file degradeimage.cpp.
Enumerator | |
---|---|
FD_BATCH | |
FD_HEIGHT | |
FD_WIDTH | |
FD_DIMSIZE |
Definition at line 32 of file stridemap.h.
enum tesseract::GeoParams |
|
strong |
Enumerator | |
---|---|
kNone | |
kNormalize |
Definition at line 51 of file normstrngs.h.
|
strong |
Enumerator | |
---|---|
kSingleString | |
kCombined | |
kGlyphSplit | |
kIndividualUnicodes |
Definition at line 36 of file validator.h.
Definition at line 56 of file blamer.h.
Enumerator | |
---|---|
IDA_ADAPTIVE | |
IDA_STATIC | |
IDA_SHAPE_INDEX | |
IDA_BOTH |
Definition at line 139 of file intproto.h.
enum tesseract::IntParams |
Definition at line 39 of file params_training_featdef.h.
enum tesseract::LineType |
Enumerator | |
---|---|
LT_START | |
LT_BODY | |
LT_UNKNOWN | |
LT_MULTIPLE |
Definition at line 48 of file paragraphs_internal.h.
Enumerator | |
---|---|
LM_PPTYPE_BLAMER | |
LM_PPTYPE_AMBIG | |
LM_PPTYPE_PATH | |
LM_PPTYPE_SHAPE | |
LM_PPTYPE_NUM |
Definition at line 39 of file lm_pain_points.h.
enum tesseract::LossType |
Enumerator | |
---|---|
LT_NONE | |
LT_CTC | |
LT_SOFTMAX | |
LT_LOGISTIC |
Definition at line 29 of file static_shape.h.
|
strong |
Enumerator | |
---|---|
MFXPosition | |
MFYPosition | |
MFLength | |
MFDirection | |
MFBulge1 | |
MFBulge2 | |
MFCount |
Definition at line 25 of file mfdefs.h.
Enumerator | |
---|---|
NPT_HTEXT | |
NPT_VTEXT | |
NPT_WEAK_HTEXT | |
NPT_WEAK_VTEXT | |
NPT_IMAGE | |
NPT_COUNT |
Definition at line 1548 of file colpartitiongrid.cpp.
Definition at line 41 of file network.h.
Enumerator | |
---|---|
NC_ANYTHING | |
NC_ONLY_DUP | |
NC_NO_DUP | |
NC_COUNT |
Definition at line 72 of file recodebeam.h.
Enumerator | |
---|---|
NM_BASELINE | |
NM_CHAR_ISOTROPIC | |
NM_CHAR_ANISOTROPIC |
Definition at line 46 of file normalis.h.
When Tesseract/Cube is initialized we can choose to instantiate/load/run only the Tesseract part, only the Cube part or both along with the combiner. The preference of which engine to use is stored in tessedit_ocr_engine_mode.
ATTENTION: When modifying this enum, please make sure to make the appropriate changes to all the enums mirroring it (e.g. OCREngine in cityblock/workflow/detection/detection_storage.proto). Such enums will mention the connection to OcrEngineMode in the comments.
Enumerator | |
---|---|
OEM_TESSERACT_ONLY | |
OEM_LSTM_ONLY | |
OEM_TESSERACT_LSTM_COMBINED | |
OEM_DEFAULT | |
OEM_COUNT |
Definition at line 263 of file publictypes.h.
|
strong |
Enumerator | |
---|---|
kNone | |
kNormalize |
Definition at line 43 of file normstrngs.h.
|
strong |
+---------------—+ Orientation Example: | 1 Aaaa Aaaa Aaaa | ==================== | Aaa aa aaa aa | To left is a diagram of some (1) English and | aaaaaa A aa aaa. | (2) Chinese text and a (3) photo credit. | 2 | | ####### c c C | Upright Latin characters are represented as A and a. | ####### c c c | '<' represents a latin character rotated | < ####### c c c | anti-clockwise 90 degrees. | < ####### c c | | < ####### . c | Upright Chinese characters are represented C and c. | 3 ####### c | +---------------—+ NOTA BENE: enum values here should match goodoc.proto
If you orient your head so that "up" aligns with Orientation, then the characters will appear "right side up" and readable.
In the example above, both the English and Chinese paragraphs are oriented so their "up" is the top of the page (page up). The photo credit is read with one's head turned leftward ("up" is to page left).
The values of this enum match the convention of Tesseract's osdetect.h
Enumerator | |
---|---|
ORIENTATION_PAGE_UP | |
ORIENTATION_PAGE_RIGHT | |
ORIENTATION_PAGE_DOWN | |
ORIENTATION_PAGE_LEFT |
Definition at line 114 of file publictypes.h.
Enumerator | |
---|---|
OutlineFeatX | |
OutlineFeatY | |
OutlineFeatLength | |
OutlineFeatDir |
enum of the elements of the page hierarchy, used in ResultIterator to provide functions that operate on each level without having to have 5x as many functions.
Enumerator | |
---|---|
RIL_BLOCK | |
RIL_PARA | |
RIL_TEXTLINE | |
RIL_WORD | |
RIL_SYMBOL |
Definition at line 214 of file publictypes.h.
Possible modes for page layout analysis. These must be kept in order of decreasing amount of layout analysis to be done, except for OSD_ONLY, so that the inequality test macros below work.
Definition at line 157 of file publictypes.h.
JUSTIFICATION_UNKNOWN The alignment is not clearly one of the other options. This could happen for example if there are only one or two lines of text or the text looks like source code or poetry.
NOTA BENE: Fully justified paragraphs (text aligned to both left and right margins) are marked by Tesseract with JUSTIFICATION_LEFT if their text is written with a left-to-right script and with JUSTIFICATION_RIGHT if their text is written in a right-to-left script.
Interpretation for text read in vertical lines: "Left" is wherever the starting reading position is.
JUSTIFICATION_LEFT Each line, except possibly the first, is flush to the same left tab stop.
JUSTIFICATION_CENTER The text lines of the paragraph are centered about a line going down through their middle of the text lines.
JUSTIFICATION_RIGHT Each line, except possibly the first, is flush to the same right tab stop.
Enumerator | |
---|---|
JUSTIFICATION_UNKNOWN | |
JUSTIFICATION_LEFT | |
JUSTIFICATION_CENTER | |
JUSTIFICATION_RIGHT |
Definition at line 246 of file publictypes.h.
enum tesseract::ParamType |
Enumerator | |
---|---|
PITCH_DUNNO | |
PITCH_DEF_FIXED | |
PITCH_MAYBE_FIXED | |
PITCH_DEF_PROP | |
PITCH_MAYBE_PROP | |
PITCH_CORR_FIXED | |
PITCH_CORR_PROP |
Possible types for a POLY_BLOCK or ColPartition. Must be kept in sync with kPBColors in polyblk.cpp and PTIs*Type functions below, as well as kPolyBlockNames in layout_test.cc. Used extensively by ColPartition, and POLY_BLOCK.
Definition at line 51 of file publictypes.h.
enum tesseract::REJ_FLAGS |
Definition at line 51 of file rejctmap.h.
Enumerator | |
---|---|
ROW_ASCENDERS_FOUND | |
ROW_DESCENDERS_FOUND | |
ROW_UNKNOWN | |
ROW_INVALID |
enum tesseract::ScriptPos |
Enumerator | |
---|---|
SET_PARAM_CONSTRAINT_NONE | |
SET_PARAM_CONSTRAINT_DEBUG_ONLY | |
SET_PARAM_CONSTRAINT_NON_DEBUG_ONLY | |
SET_PARAM_CONSTRAINT_NON_INIT_ONLY |
Definition at line 39 of file params.h.
Enumerator | |
---|---|
UNICHAR_SPACE | |
UNICHAR_JOINED | |
UNICHAR_BROKEN | |
SPECIAL_UNICHAR_CODES_COUNT |
Definition at line 35 of file unicharset.h.
Enumerator | |
---|---|
SVET_DESTROY | |
SVET_EXIT | |
SVET_CLICK | |
SVET_SELECTION | |
SVET_INPUT | |
SVET_MOUSE | |
SVET_MOTION | |
SVET_HOVER | |
SVET_POPUP | |
SVET_MENU | |
SVET_ANY | |
SVET_COUNT |
Definition at line 53 of file scrollview.h.
Enumerator | |
---|---|
TA_LEFT_ALIGNED | |
TA_LEFT_RAGGED | |
TA_CENTER_JUSTIFIED | |
TA_RIGHT_ALIGNED | |
TA_RIGHT_RAGGED | |
TA_SEPARATOR | |
TA_COUNT |
Definition at line 41 of file tabvector.h.
enum tesseract::TabType |
Definition at line 58 of file tessdatamanager.h.
The text lines are read in the given sequence.
In English, the order is top-to-bottom. In Chinese, vertical text lines are read right-to-left. Mongolian is written in vertical columns top to bottom like Chinese, but the lines order left-to right.
Note that only some combinations make sense. For example, WRITING_DIRECTION_LEFT_TO_RIGHT implies TEXTLINE_ORDER_TOP_TO_BOTTOM
Enumerator | |
---|---|
TEXTLINE_ORDER_LEFT_TO_RIGHT | |
TEXTLINE_ORDER_RIGHT_TO_LEFT | |
TEXTLINE_ORDER_TOP_TO_BOTTOM |
Definition at line 146 of file publictypes.h.
|
strong |
Enumerator | |
---|---|
Otsu | |
LeptonicaOtsu | |
Sauvola | |
Max |
Definition at line 30 of file thresholder.h.
enum tesseract::TopNState |
Enumerator | |
---|---|
TN_TOP2 | |
TN_TOPN | |
TN_ALSO_RAN | |
TN_COUNT |
Definition at line 84 of file recodebeam.h.
Enumerator | |
---|---|
TRAINABLE | |
PERFECT | |
UNENCODABLE | |
HI_PRECISION_ERR | |
NOT_BOXED |
Definition at line 51 of file lstmtrainer.h.
Enumerator | |
---|---|
TF_INT_MODE | |
TF_COMPRESS_UNICHARSET |
Definition at line 44 of file lstmrecognizer.h.
|
strong |
|
strong |
Enumerator | |
---|---|
kNonVirama | |
kDevanagari | |
kBengali | |
kGurmukhi | |
kGujarati | |
kOriya | |
kTamil | |
kTelugu | |
kKannada | |
kMalayalam | |
kSinhala | |
kMyanmar | |
kKhmer | |
kJavanese |
Definition at line 55 of file validator.h.
Definition at line 30 of file werd.h.
The grapheme clusters within a line of text are laid out logically in this direction, judged when looking at the text line rotated so that its Orientation is "page up".
For English text, the writing direction is left-to-right. For the Chinese text in the above example, the writing direction is top-to-bottom.
Enumerator | |
---|---|
WRITING_DIRECTION_LEFT_TO_RIGHT | |
WRITING_DIRECTION_RIGHT_TO_LEFT | |
WRITING_DIRECTION_TOP_TO_BOTTOM |
Definition at line 129 of file publictypes.h.
Definition at line 215 of file functions.h.
float tesseract::ActualOutlineLength | ( | FEATURE | Feature | ) |
Return the length of the outline in baseline normalized form.
Definition at line 27 of file normfeat.cpp.
void tesseract::AddAdaptedClass | ( | ADAPT_TEMPLATES_STRUCT * | Templates, |
ADAPT_CLASS_STRUCT * | Class, | ||
CLASS_ID | ClassId | ||
) |
This routine adds a new adapted class to an existing set of adapted templates.
Templates | set of templates to add new class to |
Class | new class to add to templates |
ClassId | class id to associate with new class |
Definition at line 41 of file adaptive.cpp.
TESS_API int tesseract::AddConfigToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 49 of file protos.cpp.
bool tesseract::AddFeature | ( | FEATURE_SET | FeatureSet, |
FEATURE | Feature | ||
) |
Add a feature to a feature set. If the feature set is already full, false is returned to indicate that the feature could not be added to the set; otherwise, true is returned.
FeatureSet | set of features to add Feature to |
Feature | feature to be added to FeatureSet |
Definition at line 40 of file ocrfeatures.cpp.
void tesseract::AddIntClass | ( | INT_TEMPLATES_STRUCT * | Templates, |
CLASS_ID | ClassId, | ||
INT_CLASS_STRUCT * | Class | ||
) |
This routine adds a new class structure to a set of templates. Classes have to be added to Templates in the order of increasing ClassIds.
Templates | templates to add new class to |
ClassId | class id to associate new class with |
Class | class data structure to add to templates |
Globals: none
Definition at line 220 of file intproto.cpp.
int tesseract::AddIntConfig | ( | INT_CLASS_STRUCT * | Class | ) |
This routine returns the index of the next free config in Class.
Class | class to add new configuration to |
Globals: none
Definition at line 250 of file intproto.cpp.
int tesseract::AddIntProto | ( | INT_CLASS_STRUCT * | Class | ) |
This routine allocates the next free proto in Class and returns its index.
Class | class to add new proto to |
Globals: none
Definition at line 270 of file intproto.cpp.
void tesseract::AddOutlineFeatureToSet | ( | FPOINT * | Start, |
FPOINT * | End, | ||
FEATURE_SET | FeatureSet | ||
) |
This routine computes the midpoint between Start and End to obtain the x,y position of the outline-feature. It also computes the direction from Start to End as the direction of the outline-feature and the distance from Start to End as the length of the outline-feature. This feature is then inserted into the next feature slot in FeatureSet.
Start | starting point of outline-feature |
End | ending point of outline-feature |
FeatureSet | set to add outline-feature to |
Definition at line 78 of file outfeat.cpp.
TESS_API int tesseract::AddProtoToClass | ( | CLASS_TYPE | Class | ) |
Definition at line 82 of file protos.cpp.
void tesseract::AddProtoToClassPruner | ( | PROTO_STRUCT * | Proto, |
CLASS_ID | ClassId, | ||
INT_TEMPLATES_STRUCT * | Templates | ||
) |
This routine adds Proto to the class pruning tables for the specified class in Templates.
Globals:
Proto | floating-pt proto to add to class pruner |
ClassId | class id corresponding to Proto |
Templates | set of templates containing class pruner |
Definition at line 306 of file intproto.cpp.
void tesseract::AddProtoToProtoPruner | ( | PROTO_STRUCT * | Proto, |
int | ProtoId, | ||
INT_CLASS_STRUCT * | Class, | ||
bool | debug | ||
) |
This routine updates the proto pruner lookup tables for Class to include a new proto identified by ProtoId and described by Proto.
Proto | floating-pt proto to be added to proto pruner |
ProtoId | id of proto |
Class | integer class that contains desired proto pruner |
debug | debug flag |
Definition at line 344 of file intproto.cpp.
TESS_COMMON_TRAINING_API void tesseract::AddToNormProtosList | ( | LIST * | NormProtoList, |
LIST | ProtoList, | ||
const std::string & | CharName | ||
) |
Definition at line 722 of file commontraining.cpp.
void tesseract::adjust_row_limits | ( | TO_BLOCK * | block | ) |
adjust_row_limits
Change the limits of rows to suit the default fractions.
Definition at line 1129 of file makerow.cpp.
void tesseract::allocNormProtos | ( | ) |
Definition at line 529 of file polyaprx.cpp.
TESS_API bool tesseract::AsciiLikelyListItem | ( | const std::string & | word | ) |
Definition at line 282 of file paragraphs.cpp.
void tesseract::AsciiToRowInfo | ( | const char * | text, |
int | row_number, | ||
RowInfo * | info | ||
) |
Definition at line 49 of file paragraphs_test.cc.
|
constexpr |
void tesseract::assign_blobs_to_blocks2 | ( | Image | pix, |
BLOCK_LIST * | blocks, | ||
TO_BLOCK_LIST * | port_blocks | ||
) |
Definition at line 162 of file tordmain.cpp.
void tesseract::assign_blobs_to_rows | ( | TO_BLOCK * | block, |
float * | gradient, | ||
int | pass, | ||
bool | reject_misses, | ||
bool | make_new_rows, | ||
bool | drawing_skew | ||
) |
Definition at line 2272 of file makerow.cpp.
|
constexpr |
|
constexpr |
int tesseract::blob_x_order | ( | const void * | item1, |
const void * | item2 | ||
) |
Definition at line 2542 of file makerow.cpp.
MICROFEATURES tesseract::BlobMicroFeatures | ( | TBLOB * | Blob, |
const DENORM & | cn_denorm | ||
) |
This routine extracts micro-features from the specified blob and returns a list of the micro-features. All micro-features are normalized according to the specified line statistics.
Blob | blob to extract micro-features from |
cn_denorm | control parameter to feature extractor |
Definition at line 54 of file mfx.cpp.
TrainingSample * tesseract::BlobToTrainingSample | ( | const TBLOB & | blob, |
bool | nonlinear_norm, | ||
INT_FX_RESULT_STRUCT * | fx_info, | ||
std::vector< INT_FEATURE_STRUCT > * | bl_features | ||
) |
Definition at line 79 of file intfx.cpp.
Definition at line 62 of file scanedg.cpp.
tesseract::BOOL_VAR_H | ( | devanagari_split_debugimage | ) |
tesseract::BOOL_VAR_H | ( | disable_character_fragments | ) |
tesseract::BOOL_VAR_H | ( | gapmap_debug | ) |
tesseract::BOOL_VAR_H | ( | gapmap_no_isolated_quanta | ) |
tesseract::BOOL_VAR_H | ( | gapmap_use_ends | ) |
tesseract::BOOL_VAR_H | ( | textord_blockndoc_fixed | ) |
tesseract::BOOL_VAR_H | ( | textord_blocksall_fixed | ) |
tesseract::BOOL_VAR_H | ( | textord_blocksall_prop | ) |
tesseract::BOOL_VAR_H | ( | textord_chopper_test | ) |
tesseract::BOOL_VAR_H | ( | textord_debug_blob | ) |
tesseract::BOOL_VAR_H | ( | textord_debug_pitch_metric | ) |
tesseract::BOOL_VAR_H | ( | textord_debug_pitch_test | ) |
tesseract::BOOL_VAR_H | ( | textord_debug_printable | ) |
tesseract::BOOL_VAR_H | ( | textord_debug_xheights | ) |
tesseract::BOOL_VAR_H | ( | textord_fast_pitch_test | ) |
tesseract::BOOL_VAR_H | ( | textord_fix_makerow_bug | ) |
tesseract::BOOL_VAR_H | ( | textord_fix_xheight_bug | ) |
tesseract::BOOL_VAR_H | ( | textord_force_make_prop_words | ) |
tesseract::BOOL_VAR_H | ( | textord_heavy_nr | ) |
tesseract::BOOL_VAR_H | ( | textord_new_initial_xheight | ) |
tesseract::BOOL_VAR_H | ( | textord_old_baselines | ) |
tesseract::BOOL_VAR_H | ( | textord_old_xheight | ) |
tesseract::BOOL_VAR_H | ( | textord_oldbl_debug | ) |
tesseract::BOOL_VAR_H | ( | textord_parallel_baselines | ) |
tesseract::BOOL_VAR_H | ( | textord_pitch_scalebigwords | ) |
tesseract::BOOL_VAR_H | ( | textord_restore_underlines | ) |
tesseract::BOOL_VAR_H | ( | textord_show_expanded_rows | ) |
tesseract::BOOL_VAR_H | ( | textord_show_final_blobs | ) |
tesseract::BOOL_VAR_H | ( | textord_show_final_rows | ) |
tesseract::BOOL_VAR_H | ( | textord_show_fixed_cuts | ) |
tesseract::BOOL_VAR_H | ( | textord_show_initial_rows | ) |
tesseract::BOOL_VAR_H | ( | textord_show_initial_words | ) |
tesseract::BOOL_VAR_H | ( | textord_show_page_cuts | ) |
tesseract::BOOL_VAR_H | ( | textord_show_parallel_rows | ) |
tesseract::BOOL_VAR_H | ( | textord_show_row_cuts | ) |
tesseract::BOOL_VAR_H | ( | textord_straight_baselines | ) |
tesseract::BOOL_VAR_H | ( | textord_test_landscape | ) |
tesseract::BOOL_VAR_H | ( | wordrec_blob_pause | ) |
tesseract::BOOL_VAR_H | ( | wordrec_display_all_blobs | ) |
tesseract::BOOL_VAR_H | ( | wordrec_display_splits | ) |
TBOX tesseract::box_next | ( | BLOBNBOX_IT * | it | ) |
Definition at line 638 of file blobbox.cpp.
TBOX tesseract::box_next_pre_chopped | ( | BLOBNBOX_IT * | it | ) |
Definition at line 667 of file blobbox.cpp.
uint16_t tesseract::Bucket16For | ( | float | param, |
float | offset, | ||
int | num_buckets | ||
) |
Definition at line 389 of file intproto.cpp.
uint8_t tesseract::Bucket8For | ( | float | param, |
float | offset, | ||
int | num_buckets | ||
) |
Returns a quantized bucket for the given param shifted by offset, notionally (param + offset) * num_buckets, but clipped and casted to the appropriate type.
Definition at line 385 of file intproto.cpp.
float tesseract::BucketEnd | ( | int | Bucket, |
float | Offset, | ||
int | NumBuckets | ||
) |
This routine returns the parameter value which corresponds to the end of the specified bucket. The bucket number should have been generated using the BucketFor() function with parameters Offset and NumBuckets.
Bucket | bucket whose end is to be computed |
Offset | offset used to map params to buckets |
NumBuckets | total number of buckets |
Definition at line 1007 of file intproto.cpp.
float tesseract::BucketStart | ( | int | Bucket, |
float | Offset, | ||
int | NumBuckets | ||
) |
This routine returns the parameter value which corresponds to the beginning of the specified bucket. The bucket number should have been generated using the BucketFor() function with parameters Offset and NumBuckets.
Bucket | bucket whose start is to be computed |
Offset | offset used to map params to buckets |
NumBuckets | total number of buckets |
Definition at line 991 of file intproto.cpp.
void tesseract::CanonicalizeDetectionResults | ( | std::vector< PARA * > * | row_owners, |
PARA_LIST * | paragraphs | ||
) |
Definition at line 2288 of file paragraphs.cpp.
Change the direction of every vector in the specified outline segment to Direction. The segment to be changed starts at Start and ends at End. Note that the previous direction of End must also be changed to reflect the change in direction of the point before it.
Start | defines start of segment of outline to be modified |
End | defines end of segment of outline to be modified |
Direction | new direction to assign to segment |
Definition at line 280 of file mfoutline.cpp.
This routine normalizes each point in Outline by translating it to the specified center and scaling it anisotropically according to the given scale factors.
Outline | outline to be character normalized |
cn_denorm |
Definition at line 298 of file mfoutline.cpp.
ScrollView::Color tesseract::check_path_legal | ( | CRACKEDGE * | start | ) |
Definition at line 67 of file edgloop.cpp.
double tesseract::check_pitch_sync | ( | BLOBNBOX_IT * | blob_it, |
int16_t | blob_count, | ||
int16_t | pitch, | ||
int16_t | pitch_error, | ||
STATS * | projection, | ||
FPSEGPT_LIST * | seg_list | ||
) |
Definition at line 138 of file pitsync1.cpp.
double tesseract::check_pitch_sync2 | ( | BLOBNBOX_IT * | blob_it, |
int16_t | blob_count, | ||
int16_t | pitch, | ||
int16_t | pitch_error, | ||
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | projection_scale, | ||
int16_t & | occupation_count, | ||
FPSEGPT_LIST * | seg_list, | ||
int16_t | start, | ||
int16_t | end | ||
) |
Definition at line 292 of file pithsync.cpp.
double tesseract::check_pitch_sync3 | ( | int16_t | projection_left, |
int16_t | projection_right, | ||
int16_t | zero_count, | ||
int16_t | pitch, | ||
int16_t | pitch_error, | ||
STATS * | projection, | ||
float | projection_scale, | ||
int16_t & | occupation_count, | ||
FPSEGPT_LIST * | seg_list, | ||
int16_t | start, | ||
int16_t | end | ||
) |
Definition at line 484 of file pithsync.cpp.
|
inline |
int tesseract::choose_partition | ( | float | diff, |
float | partdiffs[], | ||
int | lastpart, | ||
float | jumplimit, | ||
float * | drift, | ||
float * | lastdelta, | ||
int * | partcount | ||
) |
Definition at line 910 of file oldbasel.cpp.
uint8_t tesseract::CircBucketFor | ( | float | param, |
float | offset, | ||
int | num_buckets | ||
) |
Returns a quantized bucket for the given circular param shifted by offset, notionally (param + offset) * num_buckets, but modded and casted to the appropriate type.
Definition at line 399 of file intproto.cpp.
void tesseract::ClassicProgressTester | ( | const char * | imgname, |
const char * | tessdatadir, | ||
const char * | lang | ||
) |
Definition at line 85 of file progress_test.cc.
void tesseract::cleanup_rows_making | ( | ICOORD | page_tr, |
TO_BLOCK * | block, | ||
float | gradient, | ||
FCOORD | rotation, | ||
int32_t | block_edge, | ||
bool | testing_on | ||
) |
cleanup_rows_making
Remove overlapping rows and fit all the blobs to what's left.
Definition at line 563 of file makerow.cpp.
TESS_COMMON_TRAINING_API void tesseract::CleanUpUnusedData | ( | LIST | ProtoList | ) |
Definition at line 529 of file commontraining.cpp.
void tesseract::clear_fx_win | ( | ) |
Definition at line 61 of file drawfx.cpp.
TESS_API void tesseract::ClearFeatureSpaceWindow | ( | NORM_METHOD | norm_method, |
ScrollView * | window | ||
) |
Clears the given window and draws the featurespace guides for the appropriate normalization method.
Definition at line 889 of file intproto.cpp.
|
inline |
|
inline |
Definition at line 251 of file functions.h.
void tesseract::close_to_win | ( | ) |
Definition at line 56 of file drawtord.cpp.
TESS_API LIST tesseract::ClusterSamples | ( | CLUSTERER * | Clusterer, |
CLUSTERCONFIG * | Config | ||
) |
This routine first checks to see if the samples in this clusterer have already been clustered before; if so, it does not bother to recreate the cluster tree. It simply recomputes the prototypes based on the new Config info.
If the samples have not been clustered before, the samples in the KD tree are formed into a cluster tree and then the prototypes are computed from the cluster tree.
In either case this routine returns a pointer to a list of prototypes that best represent the samples given the constraints specified in Config.
Clusterer | data struct containing samples to be clustered |
Config | parameters which control clustering process |
Definition at line 1543 of file cluster.cpp.
|
inline |
|
inline |
TESS_UNICHARSET_TRAINING_API int tesseract::CombineLangModel | ( | const UNICHARSET & | unicharset, |
const std::string & | script_dir, | ||
const std::string & | version_str, | ||
const std::string & | output_dir, | ||
const std::string & | lang, | ||
bool | pass_through_recoder, | ||
const std::vector< std::string > & | words, | ||
const std::vector< std::string > & | puncs, | ||
const std::vector< std::string > & | numbers, | ||
bool | lang_is_rtl, | ||
FileReader | reader, | ||
FileWriter | writer | ||
) |
Definition at line 194 of file lang_model_helpers.cpp.
void tesseract::complete_edge | ( | CRACKEDGE * | start, |
C_OUTLINE_IT * | outline_it | ||
) |
Definition at line 38 of file edgloop.cpp.
void tesseract::compute_block_pitch | ( | TO_BLOCK * | block, |
FCOORD | rotation, | ||
int32_t | block_index, | ||
bool | testing_on | ||
) |
Definition at line 293 of file topitch.cpp.
void tesseract::compute_dropout_distances | ( | int32_t * | occupation, |
int32_t * | thresholds, | ||
int32_t | line_count | ||
) |
Definition at line 933 of file makerow.cpp.
void tesseract::compute_fixed_pitch | ( | ICOORD | page_tr, |
TO_BLOCK_LIST * | port_blocks, | ||
float | gradient, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 75 of file topitch.cpp.
void tesseract::compute_fixed_pitch_cjk | ( | ICOORD | page_tr, |
TO_BLOCK_LIST * | port_blocks | ||
) |
Definition at line 1103 of file cjkpitch.cpp.
int32_t tesseract::compute_height_modes | ( | STATS * | heights, |
int32_t | min_height, | ||
int32_t | max_height, | ||
int32_t * | modes, | ||
int32_t | maxmodes | ||
) |
Definition at line 1629 of file makerow.cpp.
void tesseract::compute_line_occupation | ( | TO_BLOCK * | block, |
float | gradient, | ||
int32_t | min_y, | ||
int32_t | max_y, | ||
int32_t * | occupation, | ||
int32_t * | deltas | ||
) |
Definition at line 799 of file makerow.cpp.
void tesseract::compute_occupation_threshold | ( | int32_t | low_window, |
int32_t | high_window, | ||
int32_t | line_count, | ||
int32_t * | occupation, | ||
int32_t * | thresholds | ||
) |
compute_occupation_threshold
Compute thresholds for textline or not for the occupation array.
Definition at line 852 of file makerow.cpp.
void tesseract::compute_page_skew | ( | TO_BLOCK_LIST * | blocks, |
float & | page_m, | ||
float & | page_err | ||
) |
Definition at line 315 of file makerow.cpp.
float tesseract::compute_pitch_sd | ( | TO_ROW * | row, |
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | space_size, | ||
float | initial_pitch, | ||
float & | sp_sd, | ||
int16_t & | mid_cuts, | ||
ICOORDELT_LIST * | row_cells, | ||
bool | testing_on, | ||
int16_t | start, | ||
int16_t | end | ||
) |
Definition at line 1289 of file topitch.cpp.
float tesseract::compute_pitch_sd2 | ( | TO_ROW * | row, |
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | initial_pitch, | ||
int16_t & | occupation, | ||
int16_t & | mid_cuts, | ||
ICOORDELT_LIST * | row_cells, | ||
bool | testing_on, | ||
int16_t | start, | ||
int16_t | end | ||
) |
Definition at line 1446 of file topitch.cpp.
float tesseract::compute_reject_threshold | ( | WERD_CHOICE * | word | ) |
Definition at line 227 of file reject.cpp.
int32_t tesseract::compute_row_descdrop | ( | TO_ROW * | row, |
float | gradient, | ||
int | xheight_blob_count, | ||
STATS * | asc_heights | ||
) |
Definition at line 1576 of file makerow.cpp.
void tesseract::compute_row_stats | ( | TO_BLOCK * | block, |
bool | testing_on | ||
) |
Definition at line 1163 of file makerow.cpp.
bool tesseract::compute_rows_pitch | ( | TO_BLOCK * | block, |
int32_t | block_index, | ||
bool | testing_on | ||
) |
Definition at line 330 of file topitch.cpp.
int tesseract::compute_xheight_from_modes | ( | STATS * | heights, |
STATS * | floating_heights, | ||
bool | cap_only, | ||
int | min_height, | ||
int | max_height, | ||
float * | xheight, | ||
float * | ascrise | ||
) |
Definition at line 1480 of file makerow.cpp.
void tesseract::ComputeDirection | ( | MFEDGEPT * | Start, |
MFEDGEPT * | Finish, | ||
float | MinSlope, | ||
float | MaxSlope | ||
) |
This routine computes the slope from Start to Finish and and then computes the approximate direction of the line segment from Start to Finish. The direction is quantized into 8 buckets: N, S, E, W, NE, NW, SE, SW Both the slope and the direction are then stored into the appropriate fields of the Start edge point. The direction is also stored into the PreviousDirection field of the Finish edge point.
Start | starting point to compute direction from |
Finish | finishing point to compute direction to |
MinSlope | slope below which lines are horizontal |
MaxSlope | slope above which lines are vertical |
Definition at line 335 of file mfoutline.cpp.
TESS_API float tesseract::ComputeDistance | ( | int | k, |
PARAM_DESC * | dim, | ||
float | p1[], | ||
float | p2[] | ||
) |
Definition at line 400 of file kdtree.cpp.
|
inline |
Convert a blob into a list of MFOUTLINEs (float-based microfeature format).
Definition at line 34 of file mfoutline.cpp.
void tesseract::ConvertConfig | ( | BIT_VECTOR | Config, |
int | ConfigId, | ||
INT_CLASS_STRUCT * | Class | ||
) |
This operation updates the config vectors of all protos in Class to indicate that the protos with 1's in Config belong to a new configuration identified by ConfigId. It is assumed that the length of the Config bit vector is equal to the number of protos in Class.
Config | config to be added to class |
ConfigId | id to be used for new config |
Class | class to add new config to |
Definition at line 430 of file intproto.cpp.
Convert a TESSLINE into the float-based MFOUTLINE micro-feature format.
Definition at line 41 of file mfoutline.cpp.
LIST tesseract::ConvertOutlines | ( | TESSLINE * | outline, |
LIST | mf_outlines, | ||
OUTLINETYPE | outline_type | ||
) |
Convert a tree of outlines to a list of MFOUTLINEs (lists of MFEDGEPTs).
outline | first outline to be converted |
mf_outlines | list to add converted outlines to |
outline_type | are the outlines outer or holes? |
Definition at line 79 of file mfoutline.cpp.
void tesseract::ConvertSegmentToPicoFeat | ( | FPOINT * | Start, |
FPOINT * | End, | ||
FEATURE_SET | FeatureSet | ||
) |
This routine converts an entire segment of an outline into a set of pico features which are added to FeatureSet. The length of the segment is rounded to the nearest whole number of pico-features. The pico-features are spaced evenly over the entire segment. Results are placed in FeatureSet. Globals:
Start | starting point of pico-feature |
End | ending point of pico-feature |
FeatureSet | set to add pico-feature to |
Definition at line 95 of file picofeat.cpp.
MICROFEATURES tesseract::ConvertToMicroFeatures | ( | MFOUTLINE | Outline, |
MICROFEATURES | MicroFeatures | ||
) |
Convert Outline to MicroFeatures
Outline | outline to extract micro-features from |
MicroFeatures | list of micro-features to add to |
Definition at line 91 of file mfx.cpp.
void tesseract::ConvertToOutlineFeatures | ( | MFOUTLINE | Outline, |
FEATURE_SET | FeatureSet | ||
) |
This routine steps converts each section in the specified outline to a feature described by its x,y position, length and angle. Results are returned in FeatureSet.
Outline | outline to extract outline-features from |
FeatureSet | set of features to add outline-features to |
Definition at line 97 of file outfeat.cpp.
void tesseract::ConvertToPicoFeatures2 | ( | MFOUTLINE | Outline, |
FEATURE_SET | FeatureSet | ||
) |
This routine steps through the specified outline and cuts it up into pieces of equal length. These pieces become the desired pico-features. Each segment in the outline is converted into an integral number of pico-features. Results are returned in FeatureSet.
Globals:
Outline | outline to extract micro-features from |
FeatureSet | set of features to add pico-features to |
Definition at line 144 of file picofeat.cpp.
Definition at line 210 of file functions.h.
void tesseract::correct_row_xheight | ( | TO_ROW * | row, |
float | xheight, | ||
float | ascrise, | ||
float | descdrop | ||
) |
Definition at line 1690 of file makerow.cpp.
void tesseract::count_block_votes | ( | TO_BLOCK * | block, |
int32_t & | def_fixed, | ||
int32_t & | def_prop, | ||
int32_t & | maybe_fixed, | ||
int32_t & | maybe_prop, | ||
int32_t & | corr_fixed, | ||
int32_t & | corr_prop, | ||
int32_t & | dunno | ||
) |
Definition at line 606 of file topitch.cpp.
bool tesseract::count_pitch_stats | ( | TO_ROW * | row, |
STATS * | gap_stats, | ||
STATS * | pitch_stats, | ||
float | initial_pitch, | ||
float | min_space, | ||
bool | ignore_outsize, | ||
bool | split_outsize, | ||
int32_t | dm_gap | ||
) |
Definition at line 1008 of file topitch.cpp.
|
constexprnoexcept |
Definition at line 34 of file serialis.h.
void tesseract::create_fx_win | ( | ) |
Definition at line 50 of file drawfx.cpp.
void tesseract::create_fxdebug_win | ( | ) |
Definition at line 77 of file drawfx.cpp.
ScrollView * tesseract::create_to_win | ( | ICOORD | page_tr | ) |
Definition at line 47 of file drawtord.cpp.
void tesseract::create_todebug_win | ( | ) |
TESS_API ScrollView * tesseract::CreateFeatureSpaceWindow | ( | const char * | name, |
int | xpos, | ||
int | ypos | ||
) |
Creates a window of the appropriate size for displaying elements in feature space.
Definition at line 1622 of file intproto.cpp.
Definition at line 614 of file blobbox.cpp.
bool tesseract::CrownCompatible | ( | const std::vector< RowScratchRegisters > * | rows, |
int | a, | ||
int | b, | ||
const ParagraphModel * | model | ||
) |
Definition at line 1349 of file paragraphs.cpp.
TESS_COMMON_TRAINING_API tesseract::DECLARE_INT_PARAM_FLAG | ( | debug_level | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | D | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | F | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | fontconfig_tmpdir | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | fonts_dir | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | O | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | output_trainer | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | test_ch | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | U | ) |
TESS_COMMON_TRAINING_API tesseract::DECLARE_STRING_PARAM_FLAG | ( | X | ) |
MicroFeatureParams CharNormParams EndParamDesc EndParamDesc tesseract::DefineFeature | ( | GeoFeatDesc | , |
3 | , | ||
0 | , | ||
kGeoFeatureType | , | ||
GeoFeatParams | |||
) |
MicroFeatureParams CharNormParams EndParamDesc tesseract::DefineFeature | ( | IntFeatDesc | , |
2 | , | ||
1 | , | ||
kIntFeatureType | , | ||
IntFeatParams | |||
) |
EndParamDesc tesseract::DefineFeature | ( | PicoFeatDesc | , |
2 | , | ||
1 | , | ||
"pf" | , | ||
PicoFeatParams | |||
) |
EndParamDesc tesseract::DefineParam | ( | 0 | , |
0 | , | ||
-0. | 25, | ||
0. | 75 | ||
) |
MicroFeatureParams tesseract::DefineParam | ( | 0 | , |
0 | , | ||
0. | 0, | ||
1. | 0 | ||
) |
MicroFeatureParams CharNormParams EndParamDesc tesseract::DefineParam | ( | 0 | , |
0 | , | ||
0. | 0, | ||
255. | 0 | ||
) |
tesseract::DefineParam | ( | 0 | , |
1 | , | ||
-0. | 5, | ||
0. | 5 | ||
) |
MicroFeatureParams tesseract::DefineParam | ( | 0 | , |
1 | , | ||
0. | 0, | ||
1. | 0 | ||
) |
EndParamDesc tesseract::DefineParam | ( | 1 | , |
0 | , | ||
0. | 0, | ||
1. | 0 | ||
) |
Definition at line 89 of file degradeimage.cpp.
LIST tesseract::delete_d | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 88 of file oldlist.cpp.
void tesseract::delete_non_dropout_rows | ( | TO_BLOCK * | block, |
float | gradient, | ||
FCOORD | rotation, | ||
int32_t | block_edge, | ||
bool | testing_on | ||
) |
delete_non_dropout_rows
Compute the linespacing and offset.
Definition at line 612 of file makerow.cpp.
void tesseract::DeleteObject | ( | T * | object | ) |
Definition at line 156 of file tablefind.cpp.
bool tesseract::DeSerialize | ( | bool | swap, |
FILE * | fp, | ||
std::vector< T > & | data | ||
) |
Definition at line 205 of file helpers.h.
bool tesseract::DeSerialize | ( | FILE * | fp, |
T * | data, | ||
size_t | n = 1 |
||
) |
Definition at line 49 of file serialis.h.
Definition at line 765 of file makerow.cpp.
Definition at line 137 of file oldlist.cpp.
TESS_API void tesseract::DetectParagraphs | ( | int | debug_level, |
bool | after_text_recognition, | ||
const MutableIterator * | block_start, | ||
std::vector< ParagraphModel * > * | models | ||
) |
Definition at line 2562 of file paragraphs.cpp.
TESS_API void tesseract::DetectParagraphs | ( | int | debug_level, |
std::vector< RowInfo > * | row_infos, | ||
std::vector< PARA * > * | row_owners, | ||
PARA_LIST * | paragraphs, | ||
std::vector< ParagraphModel * > * | models | ||
) |
Definition at line 2318 of file paragraphs.cpp.
char tesseract::determine_newline_type | ( | WERD * | word, |
BLOCK * | block, | ||
WERD * | next_word, | ||
BLOCK * | next_block | ||
) |
test line ends
word | word to do |
block | current block |
next_word | next word |
next_block | block of next word |
Definition at line 207 of file output.cpp.
|
inline |
void tesseract::display_blob | ( | TBLOB * | blob, |
ScrollView::Color | color | ||
) |
Definition at line 54 of file render.cpp.
void tesseract::display_edgepts | ( | LIST | outlines | ) |
Definition at line 47 of file plotedges.cpp.
void tesseract::DisplayIntFeature | ( | const INT_FEATURE_STRUCT * | Feature, |
float | Evidence | ||
) |
This routine renders the specified feature into a global display list.
Globals:
Feature | pico-feature to be displayed |
Evidence | best evidence for this feature (0-1) |
Definition at line 543 of file intproto.cpp.
void tesseract::DisplayIntProto | ( | INT_CLASS_STRUCT * | Class, |
PROTO_ID | ProtoId, | ||
float | Evidence | ||
) |
This routine renders the specified proto into a global display list.
Globals:
Class | class to take proto from |
ProtoId | id of proto in Class to be displayed |
Evidence | total evidence for proto (0-1) |
Definition at line 561 of file intproto.cpp.
float tesseract::DistanceSquared | ( | int | k, |
PARAM_DESC * | dim, | ||
float | p1[], | ||
float | p2[] | ||
) |
Returns the Euclidean distance squared between p1 and p2 for all essential dimensions.
k | keys are in k-space |
dim | dimension descriptions (essential, circular, etc) |
p1,p2 | two different points in K-D space |
Definition at line 378 of file kdtree.cpp.
void tesseract::divide_blobs | ( | TBLOB * | blob, |
TBLOB * | other_blob, | ||
bool | italic_blob, | ||
const TPOINT & | location | ||
) |
Definition at line 970 of file blobs.cpp.
Definition at line 923 of file blobs.cpp.
|
inline |
void tesseract::DoFill | ( | FILL_SPEC * | FillSpec, |
CLASS_PRUNER_STRUCT * | Pruner, | ||
uint32_t | ClassMask, | ||
uint32_t | ClassCount, | ||
uint32_t | WordIndex | ||
) |
This routine fills in the section of a class pruner corresponding to a single x value for a single proto of a class.
FillSpec | specifies which bits to fill in pruner |
Pruner | class pruner to be filled |
ClassMask | indicates which bits to change in each word |
ClassCount | indicates what to change bits to |
WordIndex | indicates which word to change |
Definition at line 1021 of file intproto.cpp.
|
inline |
void tesseract::dont_allow_1Il | ( | WERD_RES * | word | ) |
Definition at line 22 of file dotproduct.cpp.
tesseract::double_VAR_H | ( | classify_max_slope | ) |
tesseract::double_VAR_H | ( | classify_min_slope | ) |
tesseract::double_VAR_H | ( | classify_norm_adj_curl | ) |
tesseract::double_VAR_H | ( | classify_norm_adj_midpoint | ) |
tesseract::double_VAR_H | ( | classify_pico_feature_length | ) |
tesseract::double_VAR_H | ( | gapmap_big_gaps | ) |
tesseract::double_VAR_H | ( | pitsync_joined_edge | ) |
tesseract::double_VAR_H | ( | pitsync_offset_freecut_fraction | ) |
tesseract::double_VAR_H | ( | textord_ascheight_mode_fraction | ) |
tesseract::double_VAR_H | ( | textord_ascx_ratio_max | ) |
tesseract::double_VAR_H | ( | textord_ascx_ratio_min | ) |
tesseract::double_VAR_H | ( | textord_balance_factor | ) |
tesseract::double_VAR_H | ( | textord_chop_width | ) |
tesseract::double_VAR_H | ( | textord_descx_ratio_max | ) |
tesseract::double_VAR_H | ( | textord_descx_ratio_min | ) |
tesseract::double_VAR_H | ( | textord_excess_blobsize | ) |
tesseract::double_VAR_H | ( | textord_fpiqr_ratio | ) |
tesseract::double_VAR_H | ( | textord_linespace_iqrlimit | ) |
tesseract::double_VAR_H | ( | textord_max_pitch_iqr | ) |
tesseract::double_VAR_H | ( | textord_min_blob_height_fraction | ) |
tesseract::double_VAR_H | ( | textord_min_linesize | ) |
tesseract::double_VAR_H | ( | textord_minxh | ) |
tesseract::double_VAR_H | ( | textord_occupancy_threshold | ) |
tesseract::double_VAR_H | ( | textord_pitch_rowsimilarity | ) |
tesseract::double_VAR_H | ( | textord_projection_scale | ) |
tesseract::double_VAR_H | ( | textord_skew_ile | ) |
tesseract::double_VAR_H | ( | textord_skew_lag | ) |
tesseract::double_VAR_H | ( | textord_spacesize_ratioprop | ) |
tesseract::double_VAR_H | ( | textord_spline_shift_fraction | ) |
tesseract::double_VAR_H | ( | textord_tabvector_vertical_box_ratio | ) |
tesseract::double_VAR_H | ( | textord_tabvector_vertical_gap_fraction | ) |
tesseract::double_VAR_H | ( | textord_underline_offset | ) |
tesseract::double_VAR_H | ( | textord_underline_threshold | ) |
tesseract::double_VAR_H | ( | textord_underline_width | ) |
tesseract::double_VAR_H | ( | textord_width_limit | ) |
tesseract::double_VAR_H | ( | textord_words_def_fixed | ) |
tesseract::double_VAR_H | ( | textord_words_def_prop | ) |
tesseract::double_VAR_H | ( | textord_words_default_maxspace | ) |
tesseract::double_VAR_H | ( | textord_words_default_minspace | ) |
tesseract::double_VAR_H | ( | textord_words_default_nonspace | ) |
tesseract::double_VAR_H | ( | textord_words_definite_spread | ) |
tesseract::double_VAR_H | ( | textord_words_initial_lower | ) |
tesseract::double_VAR_H | ( | textord_words_initial_upper | ) |
tesseract::double_VAR_H | ( | textord_words_maxspace | ) |
tesseract::double_VAR_H | ( | textord_words_min_minspace | ) |
tesseract::double_VAR_H | ( | textord_words_minlarge | ) |
tesseract::double_VAR_H | ( | textord_words_pitchsd_threshold | ) |
tesseract::double_VAR_H | ( | textord_wordstats_smooth_factor | ) |
tesseract::double_VAR_H | ( | textord_xheight_error_margin | ) |
tesseract::double_VAR_H | ( | textord_xheight_mode_fraction | ) |
tesseract::double_VAR_H | ( | words_default_fixed_limit | ) |
tesseract::double_VAR_H | ( | words_default_fixed_space | ) |
tesseract::double_VAR_H | ( | words_default_prop_nonspace | ) |
tesseract::double_VAR_H | ( | words_initial_lower | ) |
tesseract::double_VAR_H | ( | words_initial_upper | ) |
void tesseract::draw_blob_edges | ( | TBLOB * | blob | ) |
Definition at line 67 of file plotedges.cpp.
void tesseract::draw_meanlines | ( | TO_BLOCK * | block, |
float | gradient, | ||
int32_t | left, | ||
ScrollView::Color | colour, | ||
FCOORD | rotation | ||
) |
Definition at line 203 of file drawtord.cpp.
void tesseract::draw_occupation | ( | int32_t | xleft, |
int32_t | ybottom, | ||
int32_t | min_y, | ||
int32_t | max_y, | ||
int32_t | occupation[], | ||
int32_t | thresholds[] | ||
) |
Definition at line 161 of file drawtord.cpp.
|
constexpr |
bool tesseract::EqualIgnoringCaseAndTerminalPunct | ( | const WERD_CHOICE & | word1, |
const WERD_CHOICE & | word2 | ||
) |
Definition at line 773 of file ratngs.cpp.
void tesseract::EvaluateParagraphDetection | ( | const TextAndModel * | correct, |
int | n, | ||
const std::vector< PARA * > & | detector_output | ||
) |
Definition at line 105 of file paragraphs_test.cc.
void tesseract::expand_rows | ( | ICOORD | page_tr, |
TO_BLOCK * | block, | ||
float | gradient, | ||
FCOORD | rotation, | ||
int32_t | block_edge, | ||
bool | testing_on | ||
) |
Definition at line 976 of file makerow.cpp.
|
inline |
Definition at line 48 of file normstrngs_test.h.
Definition at line 347 of file edgblob.cpp.
void tesseract::ExtractBlobsFromSegmentation | ( | BLOCK_LIST * | blocks, |
C_BLOB_LIST * | output_blob_list | ||
) |
Definition at line 440 of file ocrblock.cpp.
FEATURE_SET tesseract::ExtractCharNormFeatures | ( | const INT_FX_RESULT_STRUCT & | fx_info | ) |
Return the character normalization feature for a blob.
The features returned are in a scale where the x-height has been normalized to live in the region y = [-0.25 .. 0.25]. Example ranges for English below are based on the Linux font collection on 2009-12-04:
Definition at line 56 of file normfeat.cpp.
MicroFeature tesseract::ExtractMicroFeature | ( | MFOUTLINE | Start, |
MFOUTLINE | End | ||
) |
This routine computes the feature parameters which describe the micro-feature that starts and Start and ends at End. A new micro-feature is allocated, filled with the feature parameters, and returned. The routine assumes that Start and End are not the same point. If they are the same point, nullptr is returned, a warning message is printed, and the current outline is dumped to stdout.
Start | starting point of micro-feature |
End | ending point of micro-feature |
Definition at line 127 of file mfx.cpp.
FEATURE_SET tesseract::ExtractMicros | ( | TBLOB * | Blob, |
const DENORM & | cn_denorm | ||
) |
Call the old micro-feature extractor and then copy the features into the new format. Then deallocate the old micro-features.
Blob | blob to extract micro-features from |
cn_denorm | control parameter to feature extractor. |
Definition at line 41 of file mf.cpp.
void tesseract::fill_heights | ( | TO_ROW * | row, |
float | gradient, | ||
int | min_height, | ||
int | max_height, | ||
STATS * | heights, | ||
STATS * | floating_heights | ||
) |
Definition at line 1418 of file makerow.cpp.
TESS_API void tesseract::FillABC | ( | PROTO_STRUCT * | Proto | ) |
bool tesseract::FillerDone | ( | TABLE_FILLER * | Filler | ) |
Return true if the specified table filler is done, i.e. if it has no more lines to fill.
Filler | table filler to check if done |
Definition at line 1063 of file intproto.cpp.
void tesseract::FillPPCircularBits | ( | uint32_t | ParamTable[NUM_PP_BUCKETS][WERDS_PER_PP_VECTOR], |
int | Bit, | ||
float | Center, | ||
float | Spread, | ||
bool | debug | ||
) |
This routine sets Bit in each bit vector whose bucket lies within the range Center +- Spread. The fill is done for a circular dimension, i.e. bucket 0 is adjacent to the last bucket. It is assumed that Center and Spread are expressed in a circular coordinate system whose range is 0 to 1.
ParamTable | table of bit vectors, one per param bucket |
Bit | bit position in vectors to be filled |
Center | center of filled area |
Spread | spread of filled area |
debug | debug flag |
Definition at line 1085 of file intproto.cpp.
void tesseract::FillPPLinearBits | ( | uint32_t | ParamTable[NUM_PP_BUCKETS][WERDS_PER_PP_VECTOR], |
int | Bit, | ||
float | Center, | ||
float | Spread, | ||
bool | debug | ||
) |
This routine sets Bit in each bit vector whose bucket lies within the range Center +- Spread. The fill is done for a linear dimension, i.e. there is no wrap-around for this dimension. It is assumed that Center and Spread are expressed in a linear coordinate system whose range is approximately 0 to 1. Values outside this range will be clipped.
ParamTable | table of bit vectors, one per param bucket |
Bit | bit number being filled |
Center | center of filled area |
Spread | spread of filled area |
debug | debug flag |
Definition at line 1130 of file intproto.cpp.
void tesseract::FilterEdgeNoise | ( | MFOUTLINE | Outline, |
float | NoiseSegmentLength | ||
) |
bool tesseract::find_best_dropout_row | ( | TO_ROW * | row, |
int32_t | distance, | ||
float | dist_limit, | ||
int32_t | line_index, | ||
TO_ROW_IT * | row_it, | ||
bool | testing_on | ||
) |
Definition at line 696 of file makerow.cpp.
void tesseract::find_cblob_hlimits | ( | C_BLOB * | blob, |
float | bottomy, | ||
float | topy, | ||
float & | xmin, | ||
float & | xmax | ||
) |
Definition at line 579 of file blobbox.cpp.
void tesseract::find_cblob_limits | ( | C_BLOB * | blob, |
float | leftx, | ||
float | rightx, | ||
FCOORD | rotation, | ||
float & | ymin, | ||
float & | ymax | ||
) |
Definition at line 504 of file blobbox.cpp.
void tesseract::find_cblob_vlimits | ( | C_BLOB * | blob, |
float | leftx, | ||
float | rightx, | ||
float & | ymin, | ||
float & | ymax | ||
) |
Definition at line 543 of file blobbox.cpp.
void tesseract::find_lesser_parts | ( | TO_ROW * | row, |
TBOX | blobcoords[], | ||
int | blobcount, | ||
char | partids[], | ||
int | partsizes[], | ||
int | partcount, | ||
int | bestpart | ||
) |
Definition at line 1262 of file oldbasel.cpp.
void tesseract::find_repeated_chars | ( | TO_BLOCK * | block, |
bool | testing_on | ||
) |
Definition at line 1660 of file topitch.cpp.
bool tesseract::find_row_pitch | ( | TO_ROW * | row, |
int32_t | maxwidth, | ||
int32_t | dm_gap, | ||
TO_BLOCK * | block, | ||
int32_t | block_index, | ||
int32_t | row_index, | ||
bool | testing_on | ||
) |
Definition at line 784 of file topitch.cpp.
void tesseract::find_top_modes | ( | STATS * | stats, |
int | statnum, | ||
int | modelist[], | ||
int | modenum | ||
) |
Definition at line 1508 of file oldbasel.cpp.
void tesseract::find_underlined_blobs | ( | BLOBNBOX * | u_line, |
QSPLINE * | baseline, | ||
float | xheight, | ||
float | baseline_offset, | ||
ICOORDELT_LIST * | chop_cells | ||
) |
Definition at line 158 of file underlin.cpp.
TESS_COMMON_TRAINING_API MERGE_CLASS tesseract::FindClass | ( | LIST | List, |
const std::string & | Label | ||
) |
Definition at line 597 of file commontraining.cpp.
void tesseract::FindDirectionChanges | ( | MFOUTLINE | Outline, |
float | MinSlope, | ||
float | MaxSlope | ||
) |
This routine searches through the specified outline, computes a slope for each vector in the outline, and marks each vector as having one of the following directions: N, S, E, W, NE, NW, SE, SW This information is then stored in the outline and the outline is returned.
Outline | micro-feature outline to analyze |
MinSlope | controls "snapping" of segments to horizontal |
MaxSlope | controls "snapping" of segments to vertical |
Definition at line 104 of file mfoutline.cpp.
LABELEDLIST tesseract::FindList | ( | LIST | List, |
const std::string & | Label | ||
) |
This routine searches through a list of labeled lists to find a list with the specified label. If a matching labeled list cannot be found, nullptr is returned.
List | list to search |
Label | label to search for |
Definition at line 302 of file commontraining.cpp.
BLOB_CHOICE * tesseract::FindMatchingChoice | ( | UNICHAR_ID | char_id, |
BLOB_CHOICE_LIST * | bc_list | ||
) |
Definition at line 177 of file ratngs.cpp.
bool tesseract::FirstWordWouldHaveFit | ( | const RowScratchRegisters & | before, |
const RowScratchRegisters & | after | ||
) |
Definition at line 1704 of file paragraphs.cpp.
bool tesseract::FirstWordWouldHaveFit | ( | const RowScratchRegisters & | before, |
const RowScratchRegisters & | after, | ||
tesseract::ParagraphJustification | justification | ||
) |
Definition at line 1678 of file paragraphs.cpp.
void tesseract::fit_lms_line | ( | TO_ROW * | row | ) |
Definition at line 296 of file makerow.cpp.
void tesseract::fit_parallel_lms | ( | float | gradient, |
TO_ROW * | row | ||
) |
Definition at line 1970 of file makerow.cpp.
void tesseract::fit_parallel_rows | ( | TO_BLOCK * | block, |
float | gradient, | ||
FCOORD | rotation, | ||
int32_t | block_edge, | ||
bool | testing_on | ||
) |
Definition at line 1928 of file makerow.cpp.
void tesseract::fix_row_pitch | ( | TO_ROW * | bad_row, |
TO_BLOCK * | bad_block, | ||
TO_BLOCK_LIST * | blocks, | ||
int32_t | row_target, | ||
int32_t | block_target | ||
) |
Definition at line 144 of file topitch.cpp.
Definition at line 931 of file topitch.cpp.
Definition at line 65 of file fpchop.cpp.
void tesseract::fixspace_dbg | ( | WERD_RES * | word | ) |
Definition at line 806 of file fixspace.cpp.
void tesseract::flip_0O | ( | WERD_RES * | word | ) |
void tesseract::flip_hyphens | ( | WERD_RES * | word | ) |
void tesseract::FontInfoDeleteCallback | ( | FontInfo | f | ) |
Definition at line 129 of file fontinfo.cpp.
TESS_API void tesseract::FreeClass | ( | CLASS_TYPE | Class | ) |
Definition at line 119 of file protos.cpp.
TESS_API void tesseract::FreeClassFields | ( | CLASS_TYPE | Class | ) |
Definition at line 131 of file protos.cpp.
This routine frees all of the memory allocated to the specified data structure. It will not, however, free the memory used by the prototype list. The pointers to the clusters for each prototype in the list will be set to nullptr to indicate that the cluster data structures no longer exist. Any sample lists that have been obtained via calls to GetSamples are no longer valid.
Clusterer | pointer to data structure to be freed |
Definition at line 1575 of file cluster.cpp.
TESS_COMMON_TRAINING_API void tesseract::FreeLabeledClassList | ( | LIST | ClassList | ) |
This routine deallocates all of the space allocated to the specified list of training samples.
ClassList | list of all fonts in document |
Definition at line 616 of file commontraining.cpp.
TESS_COMMON_TRAINING_API void tesseract::FreeLabeledList | ( | LABELEDLIST | LabeledList | ) |
This routine deallocates all of the memory consumed by a labeled list. It does not free any memory which may be consumed by the items in the list.
LabeledList | labeled list to be freed |
Definition at line 417 of file commontraining.cpp.
void tesseract::FreeMFOutline | ( | void * | arg | ) |
This routine deallocates all of the memory consumed by a micro-feature outline.
arg | micro-feature outline to be freed |
Definition at line 132 of file mfoutline.cpp.
TESS_COMMON_TRAINING_API void tesseract::FreeNormProtoList | ( | LIST | CharList | ) |
Definition at line 706 of file commontraining.cpp.
void tesseract::FreeOutlines | ( | LIST | Outlines | ) |
Release all memory consumed by the specified list of outlines.
Outlines | list of mf-outlines to be freed |
Definition at line 151 of file mfoutline.cpp.
This routine frees all of the memory allocated to the specified list of prototypes. The clusters which are pointed to by the prototypes are not freed.
ProtoList | pointer to list of prototypes to be freed |
Definition at line 1597 of file cluster.cpp.
void tesseract::FreePrototype | ( | void * | arg | ) |
This routine deallocates the memory consumed by the specified prototype and modifies the corresponding cluster so that it is no longer marked as a prototype. The cluster is NOT deallocated by this routine.
arg | prototype data structure to be deallocated |
Definition at line 1608 of file cluster.cpp.
TESS_COMMON_TRAINING_API void tesseract::FreeTrainingSamples | ( | LIST | CharList | ) |
This routine deallocates all of the space allocated to the specified list of training samples.
CharList | list of all fonts in document |
Definition at line 391 of file commontraining.cpp.
void tesseract::FullPageBlock | ( | int | width, |
int | height, | ||
BLOCK_LIST * | blocks | ||
) |
Definition at line 68 of file blread.cpp.
Definition at line 282 of file normstrngs.cpp.
|
inline |
void tesseract::GeneratePerspectiveDistortion | ( | int | width, |
int | height, | ||
TRand * | randomizer, | ||
Image * | pix, | ||
std::vector< TBOX > * | boxes | ||
) |
Definition at line 222 of file degradeimage.cpp.
int tesseract::get_blob_coords | ( | TO_ROW * | row, |
int32_t | lineheight, | ||
TBOX * | blobcoords, | ||
bool & | holed_line, | ||
int & | outcount | ||
) |
Definition at line 416 of file oldbasel.cpp.
|
inline |
Definition at line 86 of file makerow.h.
|
inline |
Definition at line 860 of file oldbasel.cpp.
std::string tesseract::GetCleanedTextResult | ( | tesseract::TessBaseAPI * | tess, |
Image | pix | ||
) |
Definition at line 45 of file baseapi_test.cc.
void tesseract::GetCPPadsForLevel | ( | int | Level, |
float * | EndPad, | ||
float * | SidePad, | ||
float * | AnglePad | ||
) |
This routine copies the appropriate global pad variables into EndPad, SidePad, and AnglePad. This is a kludge used to get around the fact that global control variables cannot be arrays. If the specified level is illegal, the tightest possible pads are returned.
Level | "tightness" level to return pads for |
EndPad | place to put end pad for Level |
SidePad | place to put side pad for Level |
AnglePad | place to put angle pad for Level |
Definition at line 1235 of file intproto.cpp.
ScrollView::Color tesseract::GetMatchColorFor | ( | float | Evidence | ) |
Evidence | evidence value to return color for |
Definition at line 1272 of file intproto.cpp.
void tesseract::GetNextFill | ( | TABLE_FILLER * | Filler, |
FILL_SPEC * | Fill | ||
) |
This routine returns (in Fill) the specification of the next line to be filled from Filler. FillerDone() should always be called before GetNextFill() to ensure that we do not run past the end of the fill table.
Filler | filler to get next fill spec from |
Fill | place to put spec for next fill |
Definition at line 1295 of file intproto.cpp.
std::string tesseract::GetXheightString | ( | const std::string & | script_dir, |
const UNICHARSET & | unicharset | ||
) |
Definition at line 166 of file unicharset_training_utils.cpp.
TESS_API ParamsVectors * tesseract::GlobalParams | ( | ) |
Definition at line 36 of file params.cpp.
void tesseract::HistogramRect | ( | Image | src_pix, |
int | channel, | ||
int | left, | ||
int | top, | ||
int | width, | ||
int | height, | ||
int * | histogram | ||
) |
Definition at line 146 of file otsuthr.cpp.
std::string tesseract::HOcrEscape | ( | const char * | text | ) |
Escape a char string - replace &<>"' with HTML codes. Escape a char string - replace <>&"' with HTML codes.
Definition at line 2378 of file baseapi.cpp.
TESS_API void tesseract::InitFeatureDefs | ( | FEATURE_DEFS_STRUCT * | featuredefs | ) |
Definition at line 87 of file featdefs.cpp.
void tesseract::InitFeatureDisplayWindowIfReqd | ( | ) |
Initializes the feature display window if it is not already initialized.
Definition at line 1614 of file intproto.cpp.
void tesseract::initialise_search | ( | WERD_RES_LIST & | src_list, |
WERD_RES_LIST & | new_list | ||
) |
Definition at line 201 of file fixspace.cpp.
TESS_API void tesseract::InitIntegerFX | ( | ) |
Definition at line 54 of file intfx.cpp.
void tesseract::InitIntMatchWindowIfReqd | ( | ) |
Initializes the int matcher window if it is not already initialized.
Definition at line 1587 of file intproto.cpp.
void tesseract::InitMatcherRatings | ( | float * | Rating | ) |
void tesseract::InitProtoDisplayWindowIfReqd | ( | ) |
Initializes the proto display window if it is not already initialized.
Definition at line 1604 of file intproto.cpp.
void tesseract::InitPrototypes | ( | ) |
void tesseract::InitTableFiller | ( | float | EndPad, |
float | SidePad, | ||
float | AnglePad, | ||
PROTO_STRUCT * | Proto, | ||
TABLE_FILLER * | Filler | ||
) |
This routine computes a data structure (Filler) which can be used to fill in a rectangle surrounding the specified Proto. Results are returned in Filler.
EndPad,SidePad,AnglePad | padding to add to proto |
Proto | proto to create a filler for |
Filler | place to put table filler |
Definition at line 1340 of file intproto.cpp.
void tesseract::insert_spline_point | ( | int | xstarts[], |
int | segment, | ||
int | coord1, | ||
int | coord2, | ||
int & | segments | ||
) |
Definition at line 1239 of file oldbasel.cpp.
Given a subtree nodes, insert all of its elements into tree.
Definition at line 477 of file kdtree.cpp.
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Arabic | , |
MatchGroundTruth | , | ||
::testing::Values("script/Arabic") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Deva | , |
MatchGroundTruth | , | ||
::testing::Values("script/Devanagari") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Latin | , |
MatchGroundTruth | , | ||
::testing::Values("script/Latin") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Tessdata | , |
LoadLanguage | , | ||
::testing::Values(TESSDATA_DIR) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Tessdata | , |
LoadScript | , | ||
::testing::Values(TESSDATA_DIR) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Tessdata_best | , |
LoadLanguage | , | ||
::testing::Values(TESSDATA_DIR "_best") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Tessdata_best | , |
LoadScript | , | ||
::testing::Values(TESSDATA_DIR "_best") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Tessdata_fast | , |
LoadLanguage | , | ||
::testing::Values(TESSDATA_DIR "_fast") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | DISABLED_Tessdata_fast | , |
LoadScript | , | ||
::testing::Values(TESSDATA_DIR "_fast") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | Eng | , |
MatchGroundTruth | , | ||
::testing::Values("eng") | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | RangeTest | , |
QRSequenceGeneratorTest | , | ||
::testing::Values(2, 7, 8, 9, 16, 1e2, 1e4, 1e6) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataBestEngEuroHebrew | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/phototest.tif", TESTING_DIR "/eurotext.tif", TESTING_DIR "/hebrew.png"), ::testing::Values(TESSDATA_DIR "_best")) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataEngEuroHebrew | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/phototest.tif", TESTING_DIR "/eurotext.tif", TESTING_DIR "/hebrew.png"), ::testing::Values(TESSDATA_DIR)) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataFastDeva | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/devatest.png"), ::testing::Values(TESSDATA_DIR "_fast")) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataFastDevaRotated270 | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(270), ::testing::Values(TESTING_DIR "/devatest-rotated-270.png"), ::testing::Values(TESSDATA_DIR "_fast")) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataFastEngEuroHebrew | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(0), ::testing::Values(TESTING_DIR "/phototest.tif", TESTING_DIR "/eurotext.tif", TESTING_DIR "/hebrew.png"), ::testing::Values(TESSDATA_DIR "_fast")) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataFastRotated180 | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(180), ::testing::Values(TESTING_DIR "/phototest-rotated-180.png"), ::testing::Values(TESSDATA_DIR "_fast")) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataFastRotated270 | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(270), ::testing::Values(TESTING_DIR "/phototest-rotated-L.png"), ::testing::Values(TESSDATA_DIR "_fast")) | |||
) |
tesseract::INSTANTIATE_TEST_SUITE_P | ( | TessdataFastRotated90 | , |
OSDTest | , | ||
::testing::Combine(::testing::Values(90), ::testing::Values(TESTING_DIR "/phototest-rotated-R.png"), ::testing::Values(TESSDATA_DIR "_fast")) | |||
) |
tesseract::INT_PARAM_FLAG | ( | debug_level | , |
0 | , | ||
"Level of Trainer debugging" | |||
) |
tesseract::INT_VAR_H | ( | classify_integer_matcher_multiplier | ) |
tesseract::INT_VAR_H | ( | devanagari_split_debuglevel | ) |
tesseract::INT_VAR_H | ( | editor_image_blob_bb_color | ) |
tesseract::INT_VAR_H | ( | editor_image_word_bb_color | ) |
tesseract::INT_VAR_H | ( | editor_image_xpos | ) |
tesseract::INT_VAR_H | ( | editor_image_ypos | ) |
tesseract::INT_VAR_H | ( | editor_word_height | ) |
tesseract::INT_VAR_H | ( | editor_word_width | ) |
tesseract::INT_VAR_H | ( | editor_word_xpos | ) |
tesseract::INT_VAR_H | ( | editor_word_ypos | ) |
tesseract::INT_VAR_H | ( | pitsync_linear_version | ) |
tesseract::INT_VAR_H | ( | textord_debug_block | ) |
tesseract::INT_VAR_H | ( | textord_debug_bugs | ) |
tesseract::INT_VAR_H | ( | textord_debug_tabfind | ) |
tesseract::INT_VAR_H | ( | textord_dotmatrix_gap | ) |
tesseract::INT_VAR_H | ( | textord_fp_chop_error | ) |
tesseract::INT_VAR_H | ( | textord_lms_line_trials | ) |
tesseract::INT_VAR_H | ( | textord_min_blobs_in_row | ) |
tesseract::INT_VAR_H | ( | textord_min_xheight | ) |
tesseract::INT_VAR_H | ( | textord_pitch_range | ) |
tesseract::INT_VAR_H | ( | textord_spline_medianwin | ) |
tesseract::INT_VAR_H | ( | textord_spline_minblobs | ) |
tesseract::INT_VAR_H | ( | textord_test_x | ) |
tesseract::INT_VAR_H | ( | textord_test_y | ) |
tesseract::INT_VAR_H | ( | textord_words_veto_power | ) |
|
inline |
|
inline |
|
inline |
int tesseract::InterwordSpace | ( | const std::vector< RowScratchRegisters > & | rows, |
int | row_start, | ||
int | row_end | ||
) |
Definition at line 1654 of file paragraphs.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::IsInterchangeValid | ( | const char32 | ch | ) |
Definition at line 261 of file normstrngs.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::IsInterchangeValid7BitAscii | ( | const char32 | ch | ) |
Definition at line 276 of file normstrngs.cpp.
|
inline |
Definition at line 90 of file equationdetect.cpp.
Definition at line 219 of file normstrngs.cpp.
|
inline |
Definition at line 94 of file equationdetect.cpp.
|
inline |
Definition at line 86 of file equationdetect.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::IsUTF8Whitespace | ( | const char * | text | ) |
Definition at line 233 of file normstrngs.cpp.
bool tesseract::IsValidCodepoint | ( | const char32 | ch | ) |
Definition at line 223 of file normstrngs.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::IsWhitespace | ( | const char32 | ch | ) |
Definition at line 228 of file normstrngs.cpp.
void tesseract::KDDelete | ( | KDTREE * | Tree, |
float | Key[], | ||
void * | Data | ||
) |
This routine deletes a node from Tree. The node to be deleted is specified by the Key for the node and the Data contents of the node. These two pointers must be identical to the pointers that were used for the node when it was originally stored in the tree. A node will be deleted from the tree only if its key and data pointers are identical to Key and Data respectively. The tree is re-formed by removing the affected subtree and inserting all elements but the root.
Tree | K-D tree to delete node from |
Key | key of node to be deleted |
Data | data contents of node to be deleted |
Definition at line 252 of file kdtree.cpp.
void tesseract::KDNearestNeighborSearch | ( | KDTREE * | Tree, |
float | Query[], | ||
int | QuerySize, | ||
float | MaxDistance, | ||
int * | NumberOfResults, | ||
void ** | NBuffer, | ||
float | DBuffer[] | ||
) |
This routine searches the K-D tree specified by Tree and finds the QuerySize nearest neighbors of Query. All neighbors must be within MaxDistance of Query. The data contents of the nearest neighbors are placed in NBuffer and their distances from Query are placed in DBuffer.
Tree | ptr to K-D tree to be searched |
Query | ptr to query key (point in D-space) |
QuerySize | number of nearest neighbors to be found |
MaxDistance | all neighbors must be within this distance |
NBuffer | ptr to QuerySize buffer to hold nearest neighbors |
DBuffer | ptr to QuerySize buffer to hold distances from nearest neighbor to query point |
NumberOfResults | [out] Number of nearest neighbors actually found |
Definition at line 305 of file kdtree.cpp.
This routine stores Data in the K-D tree specified by Tree using Key as an access key.
Tree | K-D tree in which data is to be stored |
Key | ptr to key by which data can be retrieved |
Data | ptr to data to be stored in the tree |
Definition at line 215 of file kdtree.cpp.
void tesseract::KDWalk | ( | KDTREE * | Tree, |
kdwalk_proc | action, | ||
ClusteringContext * | context | ||
) |
Walk a given Tree with action.
Definition at line 313 of file kdtree.cpp.
void tesseract::LangLoader | ( | const char * | lang, |
const char * | tessdatadir | ||
) |
Definition at line 39 of file loadlang_test.cc.
Definition at line 153 of file oldlist.cpp.
TESS_API void tesseract::LeftWordAttributes | ( | const UNICHARSET * | unicharset, |
const WERD_CHOICE * | werd, | ||
const std::string & | utf8, | ||
bool * | is_list, | ||
bool * | starts_idea, | ||
bool * | ends_idea | ||
) |
Definition at line 431 of file paragraphs.cpp.
int tesseract::lessthan | ( | const void * | first, |
const void * | second | ||
) |
Definition at line 374 of file polyblk.cpp.
double * tesseract::linear_spline_baseline | ( | TO_ROW * | row, |
TO_BLOCK * | block, | ||
int32_t & | segments, | ||
int32_t | xstarts[] | ||
) |
Definition at line 2180 of file makerow.cpp.
|
inline |
Definition at line 233 of file genericvector.h.
TESS_API bool tesseract::LoadDataFromFile | ( | const char * | filename, |
std::vector< char > * | data | ||
) |
Definition at line 32 of file serialis.cpp.
|
inline |
Definition at line 32 of file fileio.h.
ShapeTable * tesseract::LoadShapeTable | ( | const std::string & | file_prefix | ) |
Definition at line 148 of file commontraining.cpp.
TESS_COMMON_TRAINING_API std::unique_ptr< MasterTrainer > tesseract::LoadTrainingData | ( | const char *const * | filelist, |
bool | replication, | ||
ShapeTable ** | shape_table, | ||
std::string & | file_prefix | ||
) |
Creates a MasterTrainer and loads the training data into it: Initializes feature_defs and IntegerFX. Loads the shape_table if shape_table != nullptr. Loads initial unicharset from -U command-line option. If FLAGS_T is set, loads the majority of data from there, else:
Definition at line 200 of file commontraining.cpp.
Definition at line 59 of file functions.h.
Definition at line 117 of file edgloop.cpp.
|
constexpr |
Definition at line 2053 of file makerow.cpp.
EDGEPT * tesseract::make_edgept | ( | TDimension | x, |
TDimension | y, | ||
EDGEPT * | next, | ||
EDGEPT * | prev | ||
) |
Definition at line 138 of file split.cpp.
void tesseract::make_first_baseline | ( | TBOX | blobcoords[], |
int | blobcount, | ||
int | xcoords[], | ||
int | ycoords[], | ||
QSPLINE * | spline, | ||
QSPLINE * | baseline, | ||
float | jumplimit | ||
) |
Definition at line 482 of file oldbasel.cpp.
void tesseract::make_first_xheight | ( | TO_ROW * | row, |
TBOX | blobcoords[], | ||
int | lineheight, | ||
int | init_lineheight, | ||
int | blobcount, | ||
QSPLINE * | baseline, | ||
float | jumplimit | ||
) |
Definition at line 1421 of file oldbasel.cpp.
void tesseract::make_holed_baseline | ( | TBOX | blobcoords[], |
int | blobcount, | ||
QSPLINE * | spline, | ||
QSPLINE * | baseline, | ||
float | gradient | ||
) |
Definition at line 619 of file oldbasel.cpp.
void tesseract::make_illegal_segment | ( | FPSEGPT_LIST * | prev_list, |
TBOX | blob_box, | ||
BLOBNBOX_IT | blob_it, | ||
int16_t | region_index, | ||
int16_t | pitch, | ||
int16_t | pitch_error, | ||
FPSEGPT_LIST * | seg_list | ||
) |
Definition at line 353 of file pitsync1.cpp.
void tesseract::make_initial_textrows | ( | ICOORD | page_tr, |
TO_BLOCK * | block, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 254 of file makerow.cpp.
PAGE_RES_IT * tesseract::make_pseudo_word | ( | PAGE_RES * | page_res, |
const TBOX & | selection_box | ||
) |
Definition at line 38 of file werdit.cpp.
WERD * tesseract::make_real_word | ( | BLOBNBOX_IT * | box_it, |
int32_t | blobcount, | ||
bool | bol, | ||
uint8_t | blanks | ||
) |
Definition at line 559 of file wordseg.cpp.
void tesseract::make_real_words | ( | tesseract::Textord * | textord, |
TO_BLOCK * | block, | ||
FCOORD | rotation | ||
) |
Definition at line 473 of file wordseg.cpp.
Definition at line 526 of file wordseg.cpp.
float tesseract::make_rows | ( | ICOORD | page_tr, |
TO_BLOCK_LIST * | port_blocks | ||
) |
Definition at line 229 of file makerow.cpp.
float tesseract::make_single_row | ( | ICOORD | page_tr, |
bool | allow_sub_blobs, | ||
TO_BLOCK * | block, | ||
TO_BLOCK_LIST * | blocks | ||
) |
Definition at line 190 of file makerow.cpp.
void tesseract::make_single_word | ( | bool | one_blob, |
TO_ROW_LIST * | rows, | ||
ROW_LIST * | real_rows | ||
) |
Definition at line 53 of file wordseg.cpp.
void tesseract::make_words | ( | tesseract::Textord * | textord, |
ICOORD | page_tr, | ||
float | gradient, | ||
BLOCK_LIST * | blocks, | ||
TO_BLOCK_LIST * | port_blocks | ||
) |
make_words
Arrange the blobs into words.
Definition at line 99 of file wordseg.cpp.
void tesseract::MakeAsciiRowInfos | ( | const TextAndModel * | row_infos, |
int | n, | ||
std::vector< RowInfo > * | output | ||
) |
Definition at line 94 of file paragraphs_test.cc.
TESS_API void tesseract::MakeBoxFileStr | ( | const char * | unichar_str, |
const TBOX & | box, | ||
int | page_num, | ||
std::string & | box_str | ||
) |
Definition at line 280 of file boxread.cpp.
TESS_API CLUSTERER * tesseract::MakeClusterer | ( | int16_t | SampleSize, |
const PARAM_DESC | ParamDesc[] | ||
) |
This routine creates a new clusterer data structure, initializes it, and returns a pointer to it.
SampleSize | number of dimensions in feature space |
ParamDesc | description of each dimension |
Definition at line 1440 of file cluster.cpp.
KDTREE * tesseract::MakeKDTree | ( | int16_t | KeySize, |
const PARAM_DESC | KeyDesc[] | ||
) |
KeySize | # of dimensions in the K-D tree |
KeyDesc | array of params to describe key dimensions |
Definition at line 186 of file kdtree.cpp.
TESS_API SAMPLE * tesseract::MakeSample | ( | CLUSTERER * | Clusterer, |
const float * | Feature, | ||
uint32_t | CharID | ||
) |
This routine creates a new sample data structure to hold the specified feature. This sample is added to the clusterer data structure (so that it knows which samples are to be clustered later), and a pointer to the sample is returned to the caller.
Clusterer | clusterer data structure to add sample to |
Feature | feature to be added to clusterer |
CharID | unique ident. of char that sample came from |
Definition at line 1491 of file cluster.cpp.
int tesseract::MakeTempProtoPerm | ( | void * | item1, |
void * | item2 | ||
) |
This routine converts TempProto to be permanent if its proto id is used by the configuration specified in ProtoKey.
item1 | (TEMP_PROTO) temporary proto to compare to key |
item2 | (PROTO_KEY) defines which protos to make permanent |
Globals: none
Definition at line 1896 of file adaptmatch.cpp.
|
inline |
Definition at line 142 of file adaptmatch.cpp.
void tesseract::mark_outline | ( | EDGEPT * | edgept | ) |
void tesseract::mark_repeated_chars | ( | TO_ROW * | row | ) |
Definition at line 2565 of file makerow.cpp.
void tesseract::MarkDirectionChanges | ( | MFOUTLINE | Outline | ) |
This routine searches through the specified outline and finds the points at which the outline changes direction. These points are then marked as "extremities". This routine is used as an alternative to FindExtremities(). It forces the endpoints of the microfeatures to be at the direction changes rather than at the midpoint between direction changes.
Outline | micro-feature outline to analyze |
Definition at line 166 of file mfoutline.cpp.
float tesseract::Mean | ( | PROTOTYPE * | Proto, |
uint16_t | Dimension | ||
) |
This routine returns the mean of the specified prototype in the indicated dimension.
Proto | prototype to return mean of |
Dimension | dimension whose mean is to be returned |
Definition at line 1662 of file cluster.cpp.
float tesseract::median_block_xheight | ( | TO_BLOCK * | block, |
float | gradient | ||
) |
T tesseract::MedianOfCircularValues | ( | T | modulus, |
std::vector< T > & | v | ||
) |
Definition at line 117 of file linlsq.h.
void tesseract::merge_oldbl_parts | ( | TBOX | blobcoords[], |
int | blobcount, | ||
char | partids[], | ||
int | partsizes[], | ||
int | biggestpart, | ||
float | jumplimit | ||
) |
Definition at line 749 of file oldbasel.cpp.
TESS_API int32_t tesseract::MergeClusters | ( | int16_t | N, |
PARAM_DESC | ParamDesc[], | ||
int32_t | n1, | ||
int32_t | n2, | ||
float | m[], | ||
float | m1[], | ||
float | m2[] | ||
) |
This routine merges two clusters into one larger cluster. To do this it computes the number of samples in the new cluster and the mean of the new cluster. The ParamDesc information is used to ensure that circular dimensions are handled correctly.
N | # of dimensions (size of arrays) |
ParamDesc | array of dimension descriptions |
n1,n2 | number of samples in each old cluster |
m | array to hold mean of new cluster |
m1,m2 | arrays containing means of old clusters |
Definition at line 1870 of file cluster.cpp.
TESS_COMMON_TRAINING_API void tesseract::MergeInsignificantProtos | ( | LIST | ProtoList, |
const char * | label, | ||
CLUSTERER * | Clusterer, | ||
CLUSTERCONFIG * | clusterconfig | ||
) |
Definition at line 466 of file commontraining.cpp.
|
inline |
OVERLAP_STATE tesseract::most_overlapping_row | ( | TO_ROW_IT * | row_it, |
TO_ROW *& | best_row, | ||
float | top, | ||
float | bottom, | ||
float | rowsize, | ||
bool | testing_blob | ||
) |
Definition at line 2451 of file makerow.cpp.
Definition at line 103 of file underlin.cpp.
bool tesseract::NearlyEqual | ( | T | x, |
T | y, | ||
T | tolerance | ||
) |
TESS_API CLASS_TYPE tesseract::NewClass | ( | int | NumProtos, |
int | NumConfigs | ||
) |
Definition at line 145 of file protos.cpp.
void tesseract::NewProgressTester | ( | const char * | imgname, |
const char * | tessdatadir, | ||
const char * | lang | ||
) |
Definition at line 116 of file progress_test.cc.
This routine returns the next point in the micro-feature outline that has a direction different than EdgePoint. The routine assumes that the outline being searched is not a degenerate outline (i.e. it must have 2 or more edge points).
EdgePoint | start search from this point |
Definition at line 402 of file mfoutline.cpp.
This routine returns the next point in the micro-feature outline that is an extremity. The search starts after EdgePoint. The routine assumes that the outline being searched is not a degenerate outline (i.e. it must have 2 or more edge points).
EdgePoint | start search from this point |
Definition at line 196 of file mfoutline.cpp.
This routine is used to find all of the samples which belong to a cluster. It starts by removing the top cluster on the cluster list (SearchState). If this cluster is a leaf it is returned. Otherwise, the right subcluster is pushed on the list and we continue the search in the left subcluster. This continues until a leaf is found. If all samples have been found, nullptr is returned. InitSampleSearch() must be called before NextSample() to initialize the search.
SearchState | ptr to list containing clusters to be searched |
Definition at line 1638 of file cluster.cpp.
|
constexpr |
bool tesseract::non_0_digit | ( | const char * | str, |
int | length | ||
) |
void tesseract::Normalize | ( | float * | Values | ) |
Definition at line 691 of file commontraining.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::NormalizeCleanAndSegmentUTF8 | ( | UnicodeNormMode | u_mode, |
OCRNorm | ocr_normalize, | ||
GraphemeNormMode | g_mode, | ||
bool | report_errors, | ||
const char * | str8, | ||
std::vector< std::string > * | graphemes | ||
) |
Definition at line 179 of file normstrngs.cpp.
void tesseract::NormalizeOutline | ( | MFOUTLINE | Outline, |
float | XOrigin | ||
) |
This routine normalizes the coordinates of the specified outline so that the outline is deskewed down to the baseline, translated so that x=0 is at XOrigin, and scaled so that the height of a character cell from descender to ascender is 1. Of this height, 0.25 is for the descender, 0.25 for the ascender, and 0.5 for the x-height. The y coordinate of the baseline is 0.
Outline | outline to be normalized |
XOrigin | x-origin of text |
Definition at line 218 of file mfoutline.cpp.
void tesseract::NormalizeOutlineX | ( | FEATURE_SET | FeatureSet | ) |
This routine computes the weighted average x position over all of the outline-features in FeatureSet and then renormalizes the outline-features to force this average to be the x origin (i.e. x=0). FeatureSet is changed.
FeatureSet | outline-features to be normalized |
Definition at line 134 of file outfeat.cpp.
void tesseract::NormalizePicoX | ( | FEATURE_SET | FeatureSet | ) |
This routine computes the average x position over all of the pico-features in FeatureSet and then renormalizes the pico-features to force this average to be the x origin (i.e. x=0). FeatureSet is changed.
FeatureSet | pico-features to be normalized |
Definition at line 181 of file picofeat.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::NormalizeUTF8String | ( | UnicodeNormMode | u_mode, |
OCRNorm | ocr_normalize, | ||
GraphemeNorm | grapheme_normalize, | ||
const char * | str8, | ||
std::string * | normalized | ||
) |
Definition at line 152 of file normstrngs.cpp.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
TESS_COMMON_TRAINING_API int tesseract::NumberOfProtos | ( | LIST | ProtoList, |
bool | CountSigProtos, | ||
bool | CountInsigProtos | ||
) |
Definition at line 732 of file commontraining.cpp.
void tesseract::OCRTester | ( | const char * | imgname, |
const char * | groundtruth, | ||
const char * | tessdatadir, | ||
const char * | lang | ||
) |
Definition at line 60 of file apiexample_test.cc.
void tesseract::old_first_xheight | ( | TO_ROW * | row, |
TBOX | blobcoords[], | ||
int | initialheight, | ||
int | blobcount, | ||
QSPLINE * | baseline, | ||
float | jumplimit | ||
) |
Definition at line 1340 of file oldbasel.cpp.
TESS_API FILE * tesseract::OpenBoxFile | ( | const char * | fname | ) |
Definition at line 59 of file boxread.cpp.
|
inline |
|
inline |
|
inline |
Definition at line 681 of file points.h.
|
inline |
Definition at line 697 of file points.h.
|
inline |
int tesseract::orientation_and_script_detection | ( | const char * | filename, |
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 188 of file osdetect.cpp.
int tesseract::OrientationIdToValue | ( | const int & | id | ) |
Definition at line 566 of file osdetect.cpp.
int tesseract::os_detect | ( | TO_BLOCK_LIST * | port_blocks, |
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 225 of file osdetect.cpp.
bool tesseract::os_detect_blob | ( | BLOBNBOX * | bbox, |
OrientationDetector * | o, | ||
ScriptDetector * | s, | ||
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 323 of file osdetect.cpp.
int tesseract::os_detect_blobs | ( | const std::vector< int > * | allowed_scripts, |
BLOBNBOX_CLIST * | blob_list, | ||
OSResults * | osr, | ||
tesseract::Tesseract * | tess | ||
) |
Definition at line 274 of file osdetect.cpp.
int tesseract::OtsuStats | ( | const int * | histogram, |
int * | H_out, | ||
int * | omega0_out | ||
) |
Definition at line 166 of file otsuthr.cpp.
int tesseract::OtsuThreshold | ( | Image | src_pix, |
int | left, | ||
int | top, | ||
int | width, | ||
int | height, | ||
std::vector< int > & | thresholds, | ||
std::vector< int > & | hi_values | ||
) |
Definition at line 38 of file otsuthr.cpp.
void tesseract::outlines_to_blobs | ( | BLOCK * | block, |
ICOORD | bleft, | ||
ICOORD | tright, | ||
C_OUTLINE_LIST * | outlines | ||
) |
Definition at line 460 of file edgblob.cpp.
int tesseract::ParamsTrainingFeatureByName | ( | const char * | name | ) |
Definition at line 26 of file params_training_featdef.cpp.
TESS_COMMON_TRAINING_API void tesseract::ParseArguments | ( | int * | argc, |
char *** | argv | ||
) |
This routine parses the command line arguments that were passed to the program and uses them to set relevant training-related global parameters.
Globals:
argc | number of command line arguments to parse |
argv | command line arguments |
Definition at line 125 of file commontraining.cpp.
TESS_API bool tesseract::ParseBoxFileStr | ( | const char * | boxfile_str, |
int * | page_number, | ||
std::string & | utf8_str, | ||
TBOX * | bounding_box | ||
) |
Definition at line 205 of file boxread.cpp.
TESS_COMMON_TRAINING_API void tesseract::ParseCommandLineFlags | ( | const char * | usage, |
int * | argc, | ||
char *** | argv, | ||
const bool | remove_flags | ||
) |
Definition at line 168 of file commandlineflags.cpp.
int tesseract::partition_coords | ( | TBOX | blobcoords[], |
int | blobcount, | ||
char | partids[], | ||
int | bestpart, | ||
int | xcoords[], | ||
int | ycoords[] | ||
) |
Definition at line 977 of file oldbasel.cpp.
int tesseract::partition_line | ( | TBOX | blobcoords[], |
int | blobcount, | ||
int * | numparts, | ||
char | partids[], | ||
int | partsizes[], | ||
QSPLINE * | spline, | ||
float | jumplimit, | ||
float | ydiffs[] | ||
) |
Definition at line 673 of file oldbasel.cpp.
void tesseract::pick_x_height | ( | TO_ROW * | row, |
int | modelist[], | ||
int | lefts[], | ||
int | rights[], | ||
STATS * | heightstat, | ||
int | mode_threshold | ||
) |
Definition at line 1547 of file oldbasel.cpp.
void tesseract::plot_blob_list | ( | ScrollView * | win, |
BLOBNBOX_LIST * | list, | ||
ScrollView::Color | body_colour, | ||
ScrollView::Color | child_colour | ||
) |
Definition at line 1071 of file blobbox.cpp.
void tesseract::plot_box_list | ( | ScrollView * | win, |
BLOBNBOX_LIST * | list, | ||
ScrollView::Color | body_colour | ||
) |
Definition at line 69 of file drawtord.cpp.
void tesseract::plot_fp_cells | ( | ScrollView * | win, |
ScrollView::Color | colour, | ||
BLOBNBOX_IT * | blob_it, | ||
int16_t | pitch, | ||
int16_t | blob_count, | ||
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | projection_scale | ||
) |
Definition at line 309 of file drawtord.cpp.
void tesseract::plot_fp_cells2 | ( | ScrollView * | win, |
ScrollView::Color | colour, | ||
TO_ROW * | row, | ||
FPSEGPT_LIST * | seg_list | ||
) |
Definition at line 353 of file drawtord.cpp.
void tesseract::plot_fp_word | ( | TO_BLOCK * | block, |
float | pitch, | ||
float | nonspace | ||
) |
Definition at line 1730 of file topitch.cpp.
void tesseract::plot_parallel_row | ( | TO_ROW * | row, |
float | gradient, | ||
int32_t | left, | ||
ScrollView::Color | colour, | ||
FCOORD | rotation | ||
) |
Definition at line 122 of file drawtord.cpp.
void tesseract::plot_row_cells | ( | ScrollView * | win, |
ScrollView::Color | colour, | ||
TO_ROW * | row, | ||
float | xshift, | ||
ICOORDELT_LIST * | cells | ||
) |
Definition at line 387 of file drawtord.cpp.
void tesseract::plot_to_row | ( | TO_ROW * | row, |
ScrollView::Color | colour, | ||
FCOORD | rotation | ||
) |
Definition at line 89 of file drawtord.cpp.
void tesseract::plot_word_decisions | ( | ScrollView * | win, |
int16_t | pitch, | ||
TO_ROW * | row | ||
) |
Definition at line 238 of file drawtord.cpp.
Definition at line 166 of file oldlist.cpp.
void tesseract::pre_associate_blobs | ( | ICOORD | page_tr, |
TO_BLOCK * | block, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 1846 of file makerow.cpp.
Image tesseract::PrepareDistortedPix | ( | const Image | pix, |
bool | perspective, | ||
bool | invert, | ||
bool | white_noise, | ||
bool | smooth_noise, | ||
bool | blur, | ||
int | box_reduction, | ||
TRand * | randomizer, | ||
std::vector< TBOX > * | boxes | ||
) |
Definition at line 179 of file degradeimage.cpp.
void tesseract::print_block_counts | ( | TO_BLOCK * | block, |
int32_t | block_index | ||
) |
Definition at line 575 of file topitch.cpp.
void tesseract::print_pitch_sd | ( | TO_ROW * | row, |
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | space_size, | ||
float | initial_pitch | ||
) |
Definition at line 1535 of file topitch.cpp.
void tesseract::print_ratings_list | ( | const char * | msg, |
BLOB_CHOICE_LIST * | ratings, | ||
const UNICHARSET & | current_unicharset | ||
) |
print_ratings_list
Send all the ratings out to the logfile.
msg | intro message |
ratings | list of ratings |
current_unicharset | unicharset that can be used for id-to-unichar conversion |
Definition at line 804 of file ratngs.cpp.
void tesseract::PrintSegmentationStats | ( | BLOCK_LIST * | block_list | ) |
Definition at line 407 of file ocrblock.cpp.
|
inline |
Definition at line 32 of file normstrngs_test.h.
|
inline |
Definition at line 39 of file normstrngs_test.h.
int tesseract::ProjectiveCoeffs | ( | int | width, |
int | height, | ||
TRand * | randomizer, | ||
float ** | im_coeffs, | ||
float ** | box_coeffs | ||
) |
Definition at line 263 of file degradeimage.cpp.
|
inline |
Definition at line 198 of file publictypes.h.
|
inline |
Definition at line 192 of file publictypes.h.
|
inline |
Definition at line 201 of file publictypes.h.
|
inline |
Definition at line 189 of file publictypes.h.
|
inline |
Inline functions that act on a PageSegMode to determine whether components of layout analysis are enabled. Depend critically on the order of elements of PageSegMode. NOTE that arg is an int for compatibility with INT_PARAM.
Definition at line 186 of file publictypes.h.
|
inline |
Definition at line 195 of file publictypes.h.
|
inline |
Definition at line 204 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of image type
Definition at line 75 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of horizontal line type
Definition at line 71 of file publictypes.h.
|
inline |
Definition at line 87 of file publictypes.h.
|
inline |
Definition at line 178 of file oldlist.cpp.
void tesseract::push_back_new | ( | std::vector< T > & | vector, |
const T & | data | ||
) |
Definition at line 418 of file paragraphs.cpp.
Definition at line 192 of file oldlist.cpp.
int tesseract::QueryInSearch | ( | KDTREE * | tree | ) |
Definition at line 143 of file fontinfo.cpp.
Definition at line 163 of file fontinfo.cpp.
bool tesseract::read_unlv_file | ( | std::string & | name, |
int32_t | xsize, | ||
int32_t | ysize, | ||
BLOCK_LIST * | blocks | ||
) |
Definition at line 36 of file blread.cpp.
ADAPT_CLASS_STRUCT * tesseract::ReadAdaptedClass | ( | TFile * | fp | ) |
Read an adapted class description from file and return a ptr to the adapted class.
fp | open file to read adapted class from |
Definition at line 186 of file adaptive.cpp.
bool tesseract::ReadAllBoxes | ( | int | target_page, |
bool | skip_blanks, | ||
const char * | filename, | ||
std::vector< TBOX > * | boxes, | ||
std::vector< std::string > * | texts, | ||
std::vector< std::string > * | box_texts, | ||
std::vector< int > * | pages | ||
) |
Definition at line 76 of file boxread.cpp.
TESS_API CHAR_DESC_STRUCT * tesseract::ReadCharDescription | ( | const FEATURE_DEFS_STRUCT & | FeatureDefs, |
FILE * | File | ||
) |
Read a character description from File, and return a data structure containing this information. The data is formatted as follows:
NumberOfSets ShortNameForSet1 Set1 ShortNameForSet2 Set2 ...
Globals:
FeatureDefs | definitions of feature types/extractors |
File | open text file to read character description from |
Definition at line 172 of file featdefs.cpp.
FEATURE_SET tesseract::ReadFeatureSet | ( | FILE * | File, |
const FEATURE_DESC_STRUCT * | FeatureDesc | ||
) |
Create a new feature set of the specified type and read in the features from File. The correct text representation for a feature set is an integer which specifies the number (N) of features in a set followed by a list of N feature descriptions.
File | open text file to read new feature set from |
FeatureDesc | specifies type of feature to read from File |
Definition at line 82 of file ocrfeatures.cpp.
TESS_UNICHARSET_TRAINING_API std::string tesseract::ReadFile | ( | const std::string & | filename, |
FileReader | reader | ||
) |
Definition at line 63 of file lang_model_helpers.cpp.
TESS_API bool tesseract::ReadMemBoxes | ( | int | target_page, |
bool | skip_blanks, | ||
const char * | box_data, | ||
bool | continue_on_failure, | ||
std::vector< TBOX > * | boxes, | ||
std::vector< std::string > * | texts, | ||
std::vector< std::string > * | box_texts, | ||
std::vector< int > * | pages | ||
) |
Definition at line 97 of file boxread.cpp.
TESS_API bool tesseract::ReadNextBox | ( | int * | line_number, |
FILE * | box_file, | ||
std::string & | utf8_str, | ||
TBOX * | bounding_box | ||
) |
Definition at line 153 of file boxread.cpp.
TESS_API bool tesseract::ReadNextBox | ( | int | target_page, |
int * | line_number, | ||
FILE * | box_file, | ||
std::string & | utf8_str, | ||
TBOX * | bounding_box | ||
) |
Definition at line 160 of file boxread.cpp.
PARAM_DESC * tesseract::ReadParamDesc | ( | TFile * | fp, |
uint16_t | N | ||
) |
This routine reads textual descriptions of sets of parameters which describe the characteristics of feature dimensions.
fp | open text file to read N parameter descriptions from |
N | number of parameter descriptions to read |
Definition at line 134 of file clusttool.cpp.
PERM_CONFIG_STRUCT * tesseract::ReadPermConfig | ( | TFile * | fp | ) |
Read a permanent configuration description from file and return a ptr to it.
fp | open file to read permanent config from |
Definition at line 262 of file adaptive.cpp.
This routine reads a textual description of a prototype from the specified file.
fp | open text file to read prototype from |
N | number of dimensions used in prototype |
Definition at line 168 of file clusttool.cpp.
uint16_t tesseract::ReadSampleSize | ( | TFile * | fp | ) |
This routine reads a single integer from the specified file and checks to ensure that it is between 0 and MAXSAMPLESIZE.
fp | open text file to read sample size from |
Definition at line 114 of file clusttool.cpp.
TEMP_CONFIG_STRUCT * tesseract::ReadTempConfig | ( | TFile * | fp | ) |
Read a temporary configuration description from file and return a ptr to it.
fp | open file to read temporary config from |
Definition at line 285 of file adaptive.cpp.
TESS_COMMON_TRAINING_API void tesseract::ReadTrainingSamples | ( | const FEATURE_DEFS_STRUCT & | feature_definitions, |
const char * | feature_name, | ||
int | max_samples, | ||
UNICHARSET * | unicharset, | ||
FILE * | file, | ||
LIST * | training_samples | ||
) |
This routine reads training samples from a file and places them into a data structure which organizes the samples by FontName and CharName. It then returns this data structure.
file | open text file to read samples from |
feature_definitions | |
feature_name | |
max_samples | |
unicharset | |
training_samples |
Definition at line 330 of file commontraining.cpp.
void tesseract::RecomputeMarginsAndClearHypotheses | ( | std::vector< RowScratchRegisters > * | rows, |
int | start, | ||
int | end, | ||
int | percentile | ||
) |
Definition at line 1612 of file paragraphs.cpp.
void tesseract::RefreshWordBlobsFromNewBlobs | ( | BLOCK_LIST * | block_list, |
C_BLOB_LIST * | new_blobs, | ||
C_BLOB_LIST * | not_found_blobs | ||
) |
Definition at line 474 of file ocrblock.cpp.
void tesseract::reject_blanks | ( | WERD_RES * | word | ) |
Definition at line 182 of file reject.cpp.
void tesseract::reject_poor_matches | ( | WERD_RES * | word | ) |
Definition at line 208 of file reject.cpp.
void tesseract::reject_whole_page | ( | PAGE_RES_IT & | page_res_it | ) |
Definition at line 363 of file docqual.cpp.
void tesseract::remove_edgept | ( | EDGEPT * | point | ) |
TESS_COMMON_TRAINING_API tesseract::LIST tesseract::RemoveInsignificantProtos | ( | LIST | ProtoList, |
bool | KeepSigProtos, | ||
bool | KeepInsigProtos, | ||
int | N | ||
) |
Definition at line 544 of file commontraining.cpp.
void tesseract::render_blob | ( | ScrollView * | window, |
TBLOB * | blob, | ||
ScrollView::Color | color | ||
) |
Definition at line 71 of file render.cpp.
void tesseract::render_edgepts | ( | ScrollView * | window, |
EDGEPT * | edgept, | ||
ScrollView::Color | color | ||
) |
Definition at line 86 of file render.cpp.
void tesseract::render_outline | ( | ScrollView * | window, |
TESSLINE * | outline, | ||
ScrollView::Color | color | ||
) |
Definition at line 111 of file render.cpp.
TESS_API void tesseract::RenderIntFeature | ( | ScrollView * | window, |
const INT_FEATURE_STRUCT * | Feature, | ||
ScrollView::Color | color | ||
) |
This routine renders the specified feature into ShapeList.
window | to add feature rendering to |
Feature | feature to be rendered |
color | color to use for feature rendering |
Definition at line 1500 of file intproto.cpp.
void tesseract::RenderIntProto | ( | ScrollView * | window, |
INT_CLASS_STRUCT * | Class, | ||
PROTO_ID | ProtoId, | ||
ScrollView::Color | color | ||
) |
This routine extracts the parameters of the specified proto from the class description and adds a rendering of the proto onto the ShapeList.
window | ScrollView instance |
Class | class that proto is contained in |
ProtoId | id of proto to be rendered |
color | color to render proto in |
Globals: none
Definition at line 1534 of file intproto.cpp.
void tesseract::restore_underlined_blobs | ( | TO_BLOCK * | block | ) |
Definition at line 32 of file underlin.cpp.
|
inline |
|
inline |
TESS_API void tesseract::RightWordAttributes | ( | const UNICHARSET * | unicharset, |
const WERD_CHOICE * | werd, | ||
const std::string & | utf8, | ||
bool * | is_list, | ||
bool * | starts_idea, | ||
bool * | ends_idea | ||
) |
Definition at line 477 of file paragraphs.cpp.
|
inline |
bool tesseract::row_pitch_stats | ( | TO_ROW * | row, |
int32_t | maxwidth, | ||
bool | testing_on | ||
) |
Definition at line 648 of file topitch.cpp.
int32_t tesseract::row_words | ( | TO_BLOCK * | block, |
TO_ROW * | row, | ||
int32_t | maxwidth, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 168 of file wordseg.cpp.
int32_t tesseract::row_words2 | ( | TO_BLOCK * | block, |
TO_ROW * | row, | ||
int32_t | maxwidth, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 321 of file wordseg.cpp.
bool tesseract::RowsFitModel | ( | const std::vector< RowScratchRegisters > * | rows, |
int | start, | ||
int | end, | ||
const ParagraphModel * | model | ||
) |
Definition at line 1859 of file paragraphs.cpp.
|
inline |
Definition at line 254 of file genericvector.h.
TESS_API bool tesseract::SaveDataToFile | ( | const std::vector< char > & | data, |
const char * | filename | ||
) |
Definition at line 53 of file serialis.cpp.
const char * tesseract::ScriptPosToString | ( | enum ScriptPos | script_pos | ) |
Definition at line 193 of file ratngs.cpp.
LIST tesseract::search | ( | LIST | list, |
void * | key, | ||
int_compare | is_equal | ||
) |
Definition at line 211 of file oldlist.cpp.
bool tesseract::segment_baseline | ( | TO_ROW * | row, |
TO_BLOCK * | block, | ||
int32_t & | segments, | ||
int32_t * | xstarts | ||
) |
Definition at line 2083 of file makerow.cpp.
int tesseract::segment_spline | ( | TBOX | blobcoords[], |
int | blobcount, | ||
int | xcoords[], | ||
int | ycoords[], | ||
int | degree, | ||
int | pointcount, | ||
int | xstarts[] | ||
) |
Definition at line 1006 of file oldbasel.cpp.
void tesseract::separate_underlines | ( | TO_BLOCK * | block, |
float | gradient, | ||
FCOORD | rotation, | ||
bool | testing_on | ||
) |
Definition at line 1781 of file makerow.cpp.
bool tesseract::Serialize | ( | FILE * | fp, |
const std::vector< T > & | data | ||
) |
Definition at line 236 of file helpers.h.
bool tesseract::Serialize | ( | FILE * | fp, |
const T * | data, | ||
size_t | n = 1 |
||
) |
Definition at line 55 of file serialis.h.
Definition at line 128 of file wordseg.cpp.
void tesseract::SetAdaptiveThreshold | ( | float | Threshold | ) |
Definition at line 68 of file tordmain.cpp.
TESS_UNICHARSET_TRAINING_API void tesseract::SetPropertiesForInputFile | ( | const std::string & | script_dir, |
const std::string & | input_unicharset_file, | ||
const std::string & | output_unicharset_file, | ||
const std::string & | output_xheights_file | ||
) |
Definition at line 184 of file unicharset_training_utils.cpp.
TESS_UNICHARSET_TRAINING_API void tesseract::SetScriptProperties | ( | const std::string & | script_dir, |
UNICHARSET * | unicharset | ||
) |
Definition at line 145 of file unicharset_training_utils.cpp.
TESS_UNICHARSET_TRAINING_API void tesseract::SetupBasicProperties | ( | bool | report_errors, |
bool | decompose, | ||
UNICHARSET * | unicharset | ||
) |
Definition at line 40 of file unicharset_training_utils.cpp.
|
inline |
Definition at line 38 of file unicharset_training_utils.h.
TESS_COMMON_TRAINING_API tesseract::CLUSTERER * tesseract::SetUpForClustering | ( | const FEATURE_DEFS_STRUCT & | FeatureDefs, |
LABELEDLIST | char_sample, | ||
const char * | program_feature_type | ||
) |
This routine reads samples from a LABELEDLIST and enters those samples into a clusterer data structure. This data structure is then returned to the caller.
char_sample | LABELEDLIST that holds all the feature information for a |
FeatureDefs | |
program_feature_type | given character. |
Definition at line 434 of file commontraining.cpp.
TESS_COMMON_TRAINING_API tesseract::CLASS_STRUCT * tesseract::SetUpForFloat2Int | ( | const UNICHARSET & | unicharset, |
LIST | LabeledClassList | ||
) |
Definition at line 631 of file commontraining.cpp.
TESS_API uint32_t tesseract::ShortNameToFeatureType | ( | const FEATURE_DEFS_STRUCT & | FeatureDefs, |
const char * | ShortName | ||
) |
Search through all features currently defined and return the feature type for the feature with the specified short name. Trap an error if the specified name is not found.
Globals:
FeatureDefs | definitions of feature types/extractors |
ShortName | short name of a feature type |
Definition at line 203 of file featdefs.cpp.
void tesseract::ShowMatchDisplay | ( | ) |
|
inline |
Definition at line 181 of file functions.h.
int tesseract::sort_cmp | ( | const void * | t1, |
const void * | t2 | ||
) |
Definition at line 269 of file genericvector.h.
int tesseract::sort_ptr_cmp | ( | const void * | t1, |
const void * | t2 | ||
) |
Definition at line 286 of file genericvector.h.
int tesseract::SortByBoxBottom | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 449 of file bbgrid.h.
int tesseract::SortByBoxLeft | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 367 of file bbgrid.h.
int tesseract::SortByRating | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 79 of file pieces.cpp.
int tesseract::SortByUnicharID | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 71 of file pieces.cpp.
int tesseract::SortRightToLeft | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 408 of file bbgrid.h.
TESS_UNICHARSET_TRAINING_API unsigned int tesseract::SpanUTF8NotWhitespace | ( | const char * | text | ) |
Definition at line 249 of file normstrngs.cpp.
TESS_UNICHARSET_TRAINING_API unsigned int tesseract::SpanUTF8Whitespace | ( | const char * | text | ) |
Definition at line 237 of file normstrngs.cpp.
|
inline |
Definition at line 43 of file helpers.h.
bool tesseract::split_stepped_spline | ( | QSPLINE * | baseline, |
float | jumplimit, | ||
int * | xcoords, | ||
int * | xstarts, | ||
int & | segments | ||
) |
Definition at line 1139 of file oldbasel.cpp.
void tesseract::split_to_blob | ( | BLOBNBOX * | blob, |
int16_t | chop_coord, | ||
float | pitch_error, | ||
C_OUTLINE_LIST * | left_coutlines, | ||
C_OUTLINE_LIST * | right_coutlines | ||
) |
Definition at line 260 of file fpchop.cpp.
float tesseract::StandardDeviation | ( | PROTOTYPE * | Proto, |
uint16_t | Dimension | ||
) |
This routine returns the standard deviation of the prototype in the indicated dimension.
Proto | prototype to return standard deviation of |
Dimension | dimension whose stddev is to be returned |
Definition at line 1673 of file cluster.cpp.
MicroFeatureParams tesseract::StartParamDesc | ( | CharNormParams | ) |
MicroFeatureParams CharNormParams tesseract::StartParamDesc | ( | IntFeatParams | ) |
tesseract::StartParamDesc | ( | MicroFeatureParams | ) |
tesseract::StartParamDesc | ( | PicoFeatParams | ) |
bool tesseract::StdSortByBoxLeft | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 387 of file bbgrid.h.
bool tesseract::StdSortRightToLeft | ( | const void * | void1, |
const void * | void2 | ||
) |
Definition at line 428 of file bbgrid.h.
|
constexpr |
tesseract::STRING_PARAM_FLAG | ( | D | , |
"" | , | ||
"Directory to write output files to" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | F | , |
"font_properties" | , | ||
"File listing font properties" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | fontconfig_tmpdir | , |
"" | , | ||
"" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | fonts_dir | , |
"" | , | ||
"" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | O | , |
"" | , | ||
"File to write unicharset to" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | output_trainer | , |
"" | , | ||
"File to write trainer to" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | test_ch | , |
"" | , | ||
"UTF8 test character string" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | U | , |
"unicharset" | , | ||
"File to load unicharset from" | |||
) |
tesseract::STRING_PARAM_FLAG | ( | X | , |
"" | , | ||
"File listing font xheights" | |||
) |
tesseract::STRING_VAR_H | ( | editor_image_win_name | ) |
tesseract::STRING_VAR_H | ( | editor_word_name | ) |
|
inline |
Definition at line 69 of file paragraphs_internal.h.
Definition at line 44 of file functions.h.
tesseract::TEST | ( | CleanNamespaceTess | , |
DummyTest | |||
) |
Definition at line 26 of file cleanapi_test.cc.
tesseract::TEST | ( | ConvertBasicLatinToFullwidthLatinTest | , |
DoesConvertBasicLatin | |||
) |
Definition at line 451 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertBasicLatinToFullwidthLatinTest | , |
DoesNotConvertFullwidthLatin | |||
) |
Definition at line 465 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertBasicLatinToFullwidthLatinTest | , |
DoesNotConvertNonLatin | |||
) |
Definition at line 476 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertBasicLatinToFullwidthLatinTest | , |
DoesNotConvertSpace | |||
) |
Definition at line 483 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertFullwidthLatinToBasicLatinTest | , |
DoesConvertFullwidthLatin | |||
) |
Definition at line 492 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertFullwidthLatinToBasicLatinTest | , |
DoesNotConvertBasicLatin | |||
) |
Definition at line 506 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertFullwidthLatinToBasicLatinTest | , |
DoesNotConvertNonLatin | |||
) |
Definition at line 517 of file stringrenderer_test.cc.
tesseract::TEST | ( | ConvertFullwidthLatinToBasicLatinTest | , |
DoesNotConvertSpace | |||
) |
Definition at line 524 of file stringrenderer_test.cc.
tesseract::TEST | ( | FileTest | , |
JoinPath | |||
) |
Definition at line 20 of file fileio_test.cc.
tesseract::TEST | ( | InputBufferTest | , |
Read | |||
) |
Definition at line 45 of file fileio_test.cc.
tesseract::TEST | ( | LangModelTest | , |
AddACharacter | |||
) |
Definition at line 32 of file lang_model_test.cc.
tesseract::TEST | ( | LangModelTest | , |
AddACharacterHindi | |||
) |
Definition at line 117 of file lang_model_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
AllScriptsRegtest | |||
) |
Definition at line 183 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
BasicText | |||
) |
Definition at line 31 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
DandaOK | |||
) |
Definition at line 176 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
DetectsCorrectText | |||
) |
Definition at line 89 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
DetectsIncorrectText | |||
) |
Definition at line 105 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
DigitOK | |||
) |
Definition at line 171 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
FullwidthToHalfwidth | |||
) |
Definition at line 389 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
IsInterchangeValid | |||
) |
Definition at line 353 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
IsInterchangeValid7BitAscii | |||
) |
Definition at line 370 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
IsWhitespace | |||
) |
Definition at line 309 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
JoinersStayInArabic | |||
) |
Definition at line 165 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
LigatureText | |||
) |
Definition at line 39 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
NoLonelyJoiners | |||
) |
Definition at line 127 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
NoLonelyJoinersNonAlpha | |||
) |
Definition at line 153 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
NoLonelyJoinersPlus | |||
) |
Definition at line 140 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
NonIndicTextDoesntBreakIndicRules | |||
) |
Definition at line 118 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
OcrSpecificNormalization | |||
) |
Definition at line 52 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
SpanUTF8NotWhitespace | |||
) |
Definition at line 335 of file normstrngs_test.cc.
tesseract::TEST | ( | NormstrngsTest | , |
SpanUTF8Whitespace | |||
) |
Definition at line 328 of file normstrngs_test.cc.
tesseract::TEST | ( | OutputBufferTest | , |
WriteString | |||
) |
Definition at line 26 of file fileio_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
IndexPageTest | |||
) |
Definition at line 724 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
ListItemsIdentified | |||
) |
Definition at line 206 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
NotDistractedBySourceCode | |||
) |
Definition at line 603 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
NotOverlyAggressiveWithBlockQuotes | |||
) |
Definition at line 687 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestComplexPage1 | |||
) |
Definition at line 408 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestComplexPage2 | |||
) |
Definition at line 451 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestCrownParagraphDetection | |||
) |
Definition at line 275 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestFewCluesWithCrown | |||
) |
Definition at line 258 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestRightAlignedParagraph | |||
) |
Definition at line 342 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestSimpleParagraphDetection | |||
) |
Definition at line 243 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestSingleFullPageContinuation | |||
) |
Definition at line 315 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestSplitsOutLeaderLines | |||
) |
Definition at line 568 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestStrayLineInBlock | |||
) |
Definition at line 470 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestSubtleCrown | |||
) |
Definition at line 466 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestTinyParagraphs | |||
) |
Definition at line 364 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsTest | , |
TestUnlvInsurance | |||
) |
Definition at line 543 of file paragraphs_test.cc.
tesseract::TEST | ( | ParagraphsText | , |
TestRealFlushLeftParagraphs | |||
) |
Definition at line 294 of file paragraphs_test.cc.
tesseract::TEST | ( | QRSequenceGenerator | , |
GetBinaryReversedInteger | |||
) |
Definition at line 30 of file qrsequence_test.cc.
tesseract::TEST | ( | QuickTest | , |
ClassicProgressReporting | |||
) |
Definition at line 148 of file progress_test.cc.
tesseract::TEST | ( | QuickTest | , |
NewProgressReporting | |||
) |
Definition at line 152 of file progress_test.cc.
tesseract::TEST | ( | TesseractInstanceTest | , |
TestMultipleTessInstances | |||
) |
Definition at line 313 of file baseapi_test.cc.
tesseract::TEST | ( | TesseractInstanceTest | , |
TestMultipleTessInstanceVariables | |||
) |
Definition at line 360 of file baseapi_test.cc.
tesseract::TEST | ( | UnicharsetTest | , |
Basics | |||
) |
Definition at line 29 of file unicharset_test.cc.
tesseract::TEST | ( | UnicharsetTest | , |
Multibyte | |||
) |
Definition at line 65 of file unicharset_test.cc.
tesseract::TEST | ( | UnicharsetTest | , |
MultibyteBigrams | |||
) |
Definition at line 113 of file unicharset_test.cc.
tesseract::TEST | ( | UnicharsetTest | , |
OldStyle | |||
) |
Definition at line 147 of file unicharset_test.cc.
tesseract::TEST | ( | UnicharTest | , |
Conversion | |||
) |
Definition at line 18 of file unichar_test.cc.
tesseract::TEST | ( | UnicharTest | , |
InvalidText | |||
) |
Definition at line 31 of file unichar_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
ExplicitViramaNonJoiner | |||
) |
Definition at line 121 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
HalfFormJoiner | |||
) |
Definition at line 67 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
MultipleSyllablesAreNotASingleGrapheme | |||
) |
Definition at line 18 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
NoLonelyJoinersQuote | |||
) |
Definition at line 154 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
OpenConjunctNonJoiner | |||
) |
Definition at line 99 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
SimpleCV | |||
) |
Definition at line 41 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
SingleConsonantOK | |||
) |
Definition at line 31 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
SubscriptConjunct | |||
) |
Definition at line 51 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
ThaiGraphemes | |||
) |
Definition at line 137 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateGraphemeTest | , |
TraditionalConjunctJoiner | |||
) |
Definition at line 83 of file validate_grapheme_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
AddsJoinerToTerminalVirama | |||
) |
Definition at line 28 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
MatrasFollowConsonantsNotVowels | |||
) |
Definition at line 102 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
Nukta | |||
) |
Definition at line 128 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
OnlyOneDependentVowel | |||
) |
Definition at line 37 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
OnlyOneVowelModifier | |||
) |
Definition at line 53 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
SinhalaRakaransaya | |||
) |
Definition at line 142 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
SinhalaRepaya | |||
) |
Definition at line 184 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
SinhalaSpecials | |||
) |
Definition at line 199 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
SinhalaYansaya | |||
) |
Definition at line 163 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
SubGraphemes | |||
) |
Definition at line 116 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateIndicTest | , |
VowelModifierMustBeLast | |||
) |
Definition at line 80 of file validate_indic_test.cc.
tesseract::TEST | ( | ValidateKhmerTest | , |
BadKhmerWords | |||
) |
Definition at line 31 of file validate_khmer_test.cc.
tesseract::TEST | ( | ValidateKhmerTest | , |
GoodKhmerWords | |||
) |
Definition at line 19 of file validate_khmer_test.cc.
tesseract::TEST | ( | ValidateMyanmarTest | , |
BadMyanmarWords | |||
) |
Definition at line 27 of file validate_myanmar_test.cc.
tesseract::TEST | ( | ValidateMyanmarTest | , |
GoodMyanmarWords | |||
) |
Definition at line 19 of file validate_myanmar_test.cc.
tesseract::TEST | ( | ValidatorTest | , |
Idempotency | |||
) |
Definition at line 49 of file validator_test.cc.
tesseract::TEST | ( | ValidatorTest | , |
MostFrequentViramaScript | |||
) |
Definition at line 28 of file validator_test.cc.
tesseract::TEST_F | ( | ApplyBoxTest | , |
ItalicCharLevel | |||
) |
Definition at line 115 of file applybox_test.cc.
tesseract::TEST_F | ( | ApplyBoxTest | , |
ItalLineLevel | |||
) |
Definition at line 125 of file applybox_test.cc.
tesseract::TEST_F | ( | ApplyBoxTest | , |
TimesCharLevel | |||
) |
Definition at line 110 of file applybox_test.cc.
tesseract::TEST_F | ( | ApplyBoxTest | , |
TimesLineLevel | |||
) |
Definition at line 120 of file applybox_test.cc.
tesseract::TEST_F | ( | BaseapiThreadTest | , |
TestAll | |||
) |
Definition at line 221 of file baseapi_thread_test.cc.
tesseract::TEST_F | ( | BaseapiThreadTest | , |
TestBasicSanity | |||
) |
Definition at line 179 of file baseapi_thread_test.cc.
tesseract::TEST_F | ( | BaseapiThreadTest | , |
TestInit | |||
) |
Definition at line 190 of file baseapi_thread_test.cc.
tesseract::TEST_F | ( | BaseapiThreadTest | , |
TestRecognition | |||
) |
Definition at line 203 of file baseapi_thread_test.cc.
tesseract::TEST_F | ( | BitVectorTest | , |
Primes | |||
) |
Definition at line 116 of file bitvector_test.cc.
tesseract::TEST_F | ( | BitVectorTest | , |
SetAll | |||
) |
Definition at line 142 of file bitvector_test.cc.
tesseract::TEST_F | ( | BitVectorTest | , |
TestNextSetBit | |||
) |
Definition at line 155 of file bitvector_test.cc.
tesseract::TEST_F | ( | BitVectorTest | , |
TestNumSetBits | |||
) |
Definition at line 165 of file bitvector_test.cc.
tesseract::TEST_F | ( | ColPartitionTest | , |
IsInSameColumnAsBorders | |||
) |
Definition at line 44 of file colpartition_test.cc.
tesseract::TEST_F | ( | ColPartitionTest | , |
IsInSameColumnAsPartialOverlap | |||
) |
Definition at line 67 of file colpartition_test.cc.
tesseract::TEST_F | ( | ColPartitionTest | , |
IsInSameColumnAsReflexive | |||
) |
Definition at line 35 of file colpartition_test.cc.
tesseract::TEST_F | ( | ColPartitionTest | , |
IsInSameColumnAsSuperset | |||
) |
Definition at line 58 of file colpartition_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
ExitsWithErrorOnInvalidFlag | |||
) |
Definition at line 66 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
ParseBoolFlags | |||
) |
Definition at line 121 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
ParseDoubleFlags | |||
) |
Definition at line 91 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
ParseIntegerFlags | |||
) |
Definition at line 72 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
ParseOldFlags | |||
) |
Definition at line 147 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
ParseStringFlags | |||
) |
Definition at line 105 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | CommandlineflagsTest | , |
RemoveFlags | |||
) |
Definition at line 44 of file commandlineflags_test.cc.
tesseract::TEST_F | ( | DawgTest | , |
TestDawgConversion | |||
) |
Definition at line 85 of file dawg_test.cc.
tesseract::TEST_F | ( | DawgTest | , |
TestMatching | |||
) |
Definition at line 89 of file dawg_test.cc.
tesseract::TEST_F | ( | DENORMTest | , |
Multiple | |||
) |
Definition at line 83 of file denorm_test.cc.
tesseract::TEST_F | ( | DENORMTest | , |
NoRotations | |||
) |
Definition at line 51 of file denorm_test.cc.
tesseract::TEST_F | ( | DENORMTest | , |
WithRotations | |||
) |
Definition at line 66 of file denorm_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
CheckSeedBlobsCount | |||
) |
Definition at line 330 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
ComputeCPsSuperBBox | |||
) |
Definition at line 404 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
ComputeForegroundDensity | |||
) |
Definition at line 364 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
CountAlignment | |||
) |
Definition at line 379 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
EstimateTypeForUnichar | |||
) |
Definition at line 231 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
IdentifySpecialText | |||
) |
Definition at line 180 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
IsIndented | |||
) |
Definition at line 250 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
IsNearSmallNeighbor | |||
) |
Definition at line 301 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
SplitCPHor | |||
) |
Definition at line 484 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EquationFinderTest | , |
SplitCPHorLite | |||
) |
Definition at line 450 of file equationdetect_test.cc.
tesseract::TEST_F | ( | EuroText | , |
FastLatinOCR | |||
) |
Definition at line 105 of file apiexample_test.cc.
tesseract::TEST_F | ( | FontUtilsTest | , |
DoesDetectMissingFonts | |||
) |
Definition at line 220 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | FontUtilsTest | , |
DoesFailToSelectFont | |||
) |
Definition at line 276 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | FontUtilsTest | , |
DoesFindAvailableFonts | |||
) |
Definition at line 210 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | FontUtilsTest | , |
DoesListAvailableFonts | |||
) |
Definition at line 232 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | FontUtilsTest | , |
DoesSelectFont | |||
) |
Definition at line 262 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | HeapTest | , |
DoublePtrTest | |||
) |
Definition at line 186 of file heap_test.cc.
tesseract::TEST_F | ( | HeapTest | , |
MixedTest | |||
) |
Definition at line 94 of file heap_test.cc.
tesseract::TEST_F | ( | HeapTest | , |
PopWorstTest | |||
) |
Definition at line 113 of file heap_test.cc.
tesseract::TEST_F | ( | HeapTest | , |
RevalueTest | |||
) |
Definition at line 132 of file heap_test.cc.
tesseract::TEST_F | ( | HeapTest | , |
SortTest | |||
) |
Definition at line 81 of file heap_test.cc.
tesseract::TEST_F | ( | ImagedataTest | , |
CachesMultiDocs | |||
) |
Definition at line 90 of file imagedata_test.cc.
tesseract::TEST_F | ( | ImagedataTest | , |
CachesProperly | |||
) |
Definition at line 60 of file imagedata_test.cc.
tesseract::TEST_F | ( | IndexMapBiDiTest | , |
ManyToOne | |||
) |
Definition at line 101 of file indexmapbidi_test.cc.
tesseract::TEST_F | ( | IndexMapBiDiTest | , |
Primes | |||
) |
Definition at line 74 of file indexmapbidi_test.cc.
tesseract::TEST_F | ( | IntFeatureMapTest | , |
Exhaustive | |||
) |
Definition at line 42 of file intfeaturemap_test.cc.
tesseract::TEST_F | ( | IntSimdMatrixTest | , |
AVX2 | |||
) |
Definition at line 125 of file intsimdmatrix_test.cc.
tesseract::TEST_F | ( | IntSimdMatrixTest | , |
C | |||
) |
Definition at line 105 of file intsimdmatrix_test.cc.
tesseract::TEST_F | ( | IntSimdMatrixTest | , |
SSE | |||
) |
Definition at line 111 of file intsimdmatrix_test.cc.
tesseract::TEST_F | ( | LayoutTest | , |
ArraySizeTest | |||
) |
Definition at line 191 of file layout_test.cc.
tesseract::TEST_F | ( | LayoutTest | , |
HebrewOrderingAndSkew | |||
) |
Definition at line 214 of file layout_test.cc.
tesseract::TEST_F | ( | LayoutTest | , |
UNLV8087_054 | |||
) |
Definition at line 201 of file layout_test.cc.
tesseract::TEST_F | ( | LigatureTableTest | , |
DoesFillLigatureTables | |||
) |
Definition at line 54 of file ligature_table_test.cc.
tesseract::TEST_F | ( | LigatureTableTest | , |
TestCustomLigatures | |||
) |
Definition at line 84 of file ligature_table_test.cc.
tesseract::TEST_F | ( | ListTest | , |
TestCLIST | |||
) |
Definition at line 50 of file list_test.cc.
tesseract::TEST_F | ( | ListTest | , |
TestELIST | |||
) |
Definition at line 81 of file list_test.cc.
tesseract::TEST_F | ( | ListTest | , |
TestELIST2 | |||
) |
Definition at line 112 of file list_test.cc.
tesseract::TEST_F | ( | LLSQTest | , |
BasicLines | |||
) |
Definition at line 68 of file linlsq_test.cc.
tesseract::TEST_F | ( | LLSQTest | , |
RmsOrthWorksAsIntended | |||
) |
Definition at line 104 of file linlsq_test.cc.
tesseract::TEST_F | ( | LLSQTest | , |
Vectors | |||
) |
tesseract::TEST_F | ( | LoadLang | , |
engBest | |||
) |
Definition at line 555 of file loadlang_test.cc.
tesseract::TEST_F | ( | LoadLang | , |
engBestInt | |||
) |
Definition at line 558 of file loadlang_test.cc.
tesseract::TEST_F | ( | LoadLang | , |
engFast | |||
) |
Definition at line 552 of file loadlang_test.cc.
tesseract::TEST_F | ( | LoadLang | , |
kmrBest | |||
) |
Definition at line 566 of file loadlang_test.cc.
tesseract::TEST_F | ( | LoadLang | , |
kmrFast | |||
) |
Definition at line 563 of file loadlang_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
BasicTest | |||
) |
Definition at line 29 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
BidiTest | |||
) |
Definition at line 59 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
ColorTest | |||
) |
Definition at line 50 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
ConvertModel | |||
) |
Definition at line 67 of file lstmtrainer_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
DeterminismTest | |||
) |
Definition at line 109 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
EncodeDecodeBothTestKor | |||
) |
Definition at line 41 of file lstm_recode_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
EncodedSoftmaxTest | |||
) |
Definition at line 175 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
EncodesEng | |||
) |
Definition at line 18 of file lstmtrainer_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
EncodesKan | |||
) |
Definition at line 22 of file lstmtrainer_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
EncodesKor | |||
) |
Definition at line 26 of file lstmtrainer_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
MapCoder | |||
) |
Definition at line 30 of file lstmtrainer_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
RecodeTestKor | |||
) |
Definition at line 29 of file lstm_recode_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
RecodeTestKorBase | |||
) |
Definition at line 19 of file lstm_recode_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
SoftmaxBaselineTest | |||
) |
Definition at line 143 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
SoftmaxTest | |||
) |
Definition at line 163 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
SpeedTest | |||
) |
Definition at line 98 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
Test2D | |||
) |
Definition at line 72 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
TestAdam | |||
) |
Definition at line 87 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
TestLayerAccess | |||
) |
Definition at line 186 of file lstm_test.cc.
tesseract::TEST_F | ( | LSTMTrainerTest | , |
TestSquashed | |||
) |
Definition at line 18 of file lstm_squashed_test.cc.
tesseract::TEST_F | ( | MatrixTest | , |
RotatingTranspose_0_2 | |||
) |
Definition at line 120 of file matrix_test.cc.
tesseract::TEST_F | ( | MatrixTest | , |
RotatingTranspose_1_3 | |||
) |
Definition at line 99 of file matrix_test.cc.
tesseract::TEST_F | ( | MatrixTest | , |
RotatingTranspose_2_0 | |||
) |
Definition at line 77 of file matrix_test.cc.
tesseract::TEST_F | ( | MatrixTest | , |
RotatingTranspose_3_1 | |||
) |
Definition at line 58 of file matrix_test.cc.
tesseract::TEST_F | ( | NetworkioTest | , |
CopyWithXReversal | |||
) |
Definition at line 142 of file networkio_test.cc.
tesseract::TEST_F | ( | NetworkioTest | , |
CopyWithXYTranspose | |||
) |
Definition at line 179 of file networkio_test.cc.
tesseract::TEST_F | ( | NetworkioTest | , |
CopyWithYReversal | |||
) |
Definition at line 105 of file networkio_test.cc.
tesseract::TEST_F | ( | NetworkioTest | , |
InitWithZeroFill | |||
) |
Definition at line 65 of file networkio_test.cc.
tesseract::TEST_F | ( | NthItemTest | , |
BoringTest | |||
) |
Definition at line 61 of file nthitem_test.cc.
tesseract::TEST_F | ( | NthItemTest | , |
EqualTest | |||
) |
Definition at line 104 of file nthitem_test.cc.
tesseract::TEST_F | ( | NthItemTest | , |
GeneralTest | |||
) |
Definition at line 44 of file nthitem_test.cc.
tesseract::TEST_F | ( | NthItemTest | , |
UniqueTest | |||
) |
Definition at line 91 of file nthitem_test.cc.
tesseract::TEST_F | ( | PageSegModeTest | , |
WordTest | |||
) |
Definition at line 87 of file pagesegmode_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
CanDropUncoveredChars | |||
) |
Definition at line 154 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
CannotRenderInvalidString | |||
) |
Definition at line 145 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
CannotRenderUncoveredString | |||
) |
Definition at line 140 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
CanRenderLigature | |||
) |
Definition at line 131 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
CanRenderString | |||
) |
Definition at line 120 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
DoesGetSpacingProperties | |||
) |
Definition at line 111 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
DoesParseFontDescriptionName | |||
) |
Definition at line 84 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
DoesParseMissingFonts | |||
) |
Definition at line 97 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | PangoFontInfoTest | , |
TestNonDefaultConstructor | |||
) |
Definition at line 78 of file pango_font_info_test.cc.
tesseract::TEST_F | ( | ParamsModelTest | , |
TestEngParamsModelIO | |||
) |
Definition at line 66 of file params_model_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DISABLED_ChiDictionary | |||
) |
Definition at line 439 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DISABLED_EngDictionary | |||
) |
Definition at line 422 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DISABLED_MultiCodeSequences | |||
) |
Definition at line 471 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DoesChinese | |||
) |
Definition at line 334 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DoesEnglish | |||
) |
Definition at line 409 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DoesJapanese | |||
) |
Definition at line 357 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DoesKannada | |||
) |
Definition at line 383 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DoesKorean | |||
) |
Definition at line 370 of file recodebeam_test.cc.
tesseract::TEST_F | ( | RecodeBeamTest | , |
DoesMarathi | |||
) |
Definition at line 396 of file recodebeam_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
ComplexTest | |||
) |
Definition at line 348 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
DISABLED_NonNullChoicesTest | |||
) |
Definition at line 537 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
DualStartTextlineOrderTest | |||
) |
Definition at line 478 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
EasyTest | |||
) |
Definition at line 258 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
GreyTest | |||
) |
Definition at line 359 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
LeftwardTextlineOrderTest | |||
) |
Definition at line 493 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
NonNullConfidencesTest | |||
) |
Definition at line 569 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
RightwardTextlineOrderTest | |||
) |
Definition at line 510 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
SmallCapDropCapTest | |||
) |
Definition at line 370 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ResultIteratorTest | , |
TextlineOrderSanityCheck | |||
) |
Definition at line 518 of file resultiterator_test.cc.
tesseract::TEST_F | ( | ScanutilsTest | , |
DoesScanf | |||
) |
Definition at line 24 of file scanutils_test.cc.
tesseract::TEST_F | ( | ShapeTableTest | , |
FullTest | |||
) |
Definition at line 129 of file shapetable_test.cc.
tesseract::TEST_F | ( | ShapeTest | , |
AddShapeTest | |||
) |
Definition at line 94 of file shapetable_test.cc.
tesseract::TEST_F | ( | ShapeTest | , |
BasicTest | |||
) |
Definition at line 62 of file shapetable_test.cc.
tesseract::TEST_F | ( | STATSTest | , |
BasicStats | |||
) |
Definition at line 37 of file stats_test.cc.
tesseract::TEST_F | ( | STATSTest | , |
InitStats | |||
) |
Definition at line 43 of file stats_test.cc.
tesseract::TEST_F | ( | STATSTest | , |
TopNModes | |||
) |
Definition at line 51 of file stats_test.cc.
tesseract::TEST_F | ( | StridemapTest | , |
Indexing | |||
) |
Definition at line 63 of file stridemap_test.cc.
tesseract::TEST_F | ( | StridemapTest | , |
Scaling | |||
) |
Definition at line 130 of file stridemap_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
ArabicBoxcharsInLTROrder | |||
) |
Definition at line 205 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DISABLED_DoesDropUncoveredChars | |||
) |
Definition at line 431 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesClearBoxes | |||
) |
Definition at line 295 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesHandleNewlineCharacters | |||
) |
Definition at line 153 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesKeepAllImageBoxes | |||
) |
Definition at line 274 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesLigatureTextForRendering | |||
) |
Definition at line 309 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesNotRenderWordJoiner | |||
) |
Definition at line 415 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesOutputBoxcharsInReadingOrder | |||
) |
Definition at line 230 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderAllFontsToImage | |||
) |
Definition at line 395 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderLigatures | |||
) |
Definition at line 173 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderToImage | |||
) |
Definition at line 82 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderToImageWithUnderline | |||
) |
Definition at line 120 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderVerticalText | |||
) |
Definition at line 262 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderWordBoxes | |||
) |
Definition at line 345 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRenderWordBoxesFromMultiLineText | |||
) |
Definition at line 367 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesRetainInputLigatureForRendering | |||
) |
Definition at line 324 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StringRendererTest | , |
DoesStripUnrenderableWords | |||
) |
Definition at line 336 of file stringrenderer_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
CountHorizontalIntersectionsAll | |||
) |
Definition at line 260 of file tablerecog_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
CountVerticalIntersectionsAll | |||
) |
Definition at line 245 of file tablerecog_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
FindWhitespacedColumnsBasic | |||
) |
Definition at line 313 of file tablerecog_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
FindWhitespacedColumnsSorted | |||
) |
Definition at line 321 of file tablerecog_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
VerifyLinedTableBasicPass | |||
) |
Definition at line 272 of file tablerecog_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
VerifyLinedTableHorizontalFail | |||
) |
Definition at line 285 of file tablerecog_test.cc.
tesseract::TEST_F | ( | StructuredTableTest | , |
VerifyLinedTableVerticalFail | |||
) |
Definition at line 299 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
GapInXProjectionEdgeGap | |||
) |
Definition at line 141 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
GapInXProjectionExists | |||
) |
Definition at line 155 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
GapInXProjectionNoGap | |||
) |
Definition at line 133 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
HasLeaderAdjacentNoOverlap | |||
) |
Definition at line 181 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
HasLeaderAdjacentOverlapping | |||
) |
Definition at line 169 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
HasLeaderAdjacentPreservesColumns | |||
) |
Definition at line 194 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
SplitAndInsertFragmentedPartitionsBasicFail | |||
) |
Definition at line 248 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableFinderTest | , |
SplitAndInsertFragmentedPartitionsBasicPass | |||
) |
Definition at line 208 of file tablefind_test.cc.
tesseract::TEST_F | ( | TableRecognizerTest | , |
FindLinesBoundingBoxBasic | |||
) |
Definition at line 196 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TableRecognizerTest | , |
HasSignificantLinesBasicFail | |||
) |
Definition at line 184 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TableRecognizerTest | , |
HasSignificantLinesBasicPass | |||
) |
Definition at line 175 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TableRecognizerTest | , |
HasSignificantLinesHorizontalOnlyFails | |||
) |
Definition at line 190 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TableRecognizerTest | , |
RecognizeLinedTableBasic | |||
) |
Definition at line 207 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TableRecognizerTest | , |
RecognizeWhitespacedTableBasic | |||
) |
Definition at line 226 of file tablerecog_test.cc.
tesseract::TEST_F | ( | TabVectorTest | , |
SetStartEndPointsMatch | |||
) |
Definition at line 38 of file tabvector_test.cc.
tesseract::TEST_F | ( | TabVectorTest | , |
VOverlapInRangeSimple | |||
) |
Definition at line 107 of file tabvector_test.cc.
tesseract::TEST_F | ( | TabVectorTest | , |
VOverlapOutOfRange | |||
) |
Definition at line 115 of file tabvector_test.cc.
tesseract::TEST_F | ( | TabVectorTest | , |
XAtY45DegreeSlopeInRangeExact | |||
) |
tesseract::TEST_F | ( | TabVectorTest | , |
XAtYHorizontal | |||
) |
Definition at line 69 of file tabvector_test.cc.
tesseract::TEST_F | ( | TabVectorTest | , |
XAtYHorizontalInRangeExact | |||
) |
tesseract::TEST_F | ( | TabVectorTest | , |
XAtYLargeNumbers | |||
) |
Definition at line 90 of file tabvector_test.cc.
tesseract::TEST_F | ( | TabVectorTest | , |
XAtYRoundingSimple | |||
) |
tesseract::TEST_F | ( | TabVectorTest | , |
XAtYVerticalInRangeExact | |||
) |
tesseract::TEST_F | ( | TabVectorTest | , |
XYFlip | |||
) |
tesseract::TEST_F | ( | TatweelTest | , |
DictIgnoresTatweel | |||
) |
Definition at line 76 of file tatweel_test.cc.
tesseract::TEST_F | ( | TatweelTest | , |
UnicharsetIgnoresTatweel | |||
) |
Definition at line 68 of file tatweel_test.cc.
tesseract::TEST_F | ( | TatweelTest | , |
UnicharsetLoadKeepsTatweel | |||
) |
Definition at line 90 of file tatweel_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapBoolCorners | |||
) |
Definition at line 37 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapBoolSides | |||
) |
Definition at line 61 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapBoolSpan | |||
) |
Definition at line 85 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapFractionCorners | |||
) |
Definition at line 49 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapFractionSides | |||
) |
Definition at line 73 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapFractionSpan | |||
) |
Definition at line 97 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapInside | |||
) |
Definition at line 27 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapOutsideTests | |||
) |
Definition at line 110 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapXFraction | |||
) |
Definition at line 120 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapXFractionZeroSize | |||
) |
Definition at line 148 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapYFraction | |||
) |
Definition at line 134 of file rect_test.cc.
tesseract::TEST_F | ( | TBOXTest | , |
OverlapYFractionZeroSize | |||
) |
Definition at line 159 of file rect_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
AdaptToWordStrTest | |||
) |
Definition at line 163 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
BasicLSTMTest | |||
) |
Definition at line 211 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
BasicTesseractTest | |||
) |
Definition at line 72 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
HOCRContainsBaseline | |||
) |
Definition at line 141 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
HOCRWorksWithoutSetInputName | |||
) |
Definition at line 122 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
InitConfigOnlyTest | |||
) |
Definition at line 280 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
IteratesParagraphsEvenIfNotDetected | |||
) |
Definition at line 93 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
LSTMGeometryTest | |||
) |
Definition at line 236 of file baseapi_test.cc.
tesseract::TEST_F | ( | TesseractTest | , |
StaticTessBaseAPI | |||
) |
Definition at line 66 of file baseapi_test.cc.
tesseract::TEST_F | ( | TextlineProjectionTest | , |
Rotated | |||
) |
Definition at line 250 of file textlineprojection_test.cc.
tesseract::TEST_F | ( | TextlineProjectionTest | , |
Unrotated | |||
) |
Definition at line 245 of file textlineprojection_test.cc.
tesseract::TEST_F | ( | TfileTest | , |
BigEndian | |||
) |
Definition at line 196 of file tfile_test.cc.
tesseract::TEST_F | ( | TfileTest | , |
FGets | |||
) |
Definition at line 170 of file tfile_test.cc.
Definition at line 150 of file tfile_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesChinese | |||
) |
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesEnglish | |||
) |
Definition at line 200 of file unicharcompress_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesJapanese | |||
) |
Definition at line 174 of file unicharcompress_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesKannada | |||
) |
Definition at line 186 of file unicharcompress_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesKorean | |||
) |
Definition at line 180 of file unicharcompress_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesLigaturesWithDoubles | |||
) |
Definition at line 208 of file unicharcompress_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
DoesMarathi | |||
) |
Definition at line 194 of file unicharcompress_test.cc.
tesseract::TEST_F | ( | UnicharcompressTest | , |
GetEncodingAsString | |||
) |
Definition at line 228 of file unicharcompress_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
afr | |||
) |
Definition at line 49 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
amh | |||
) |
Definition at line 52 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ara | |||
) |
Definition at line 55 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
asm | |||
) |
Definition at line 58 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
aze | |||
) |
Definition at line 61 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
aze_cyrl | |||
) |
Definition at line 64 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
bel | |||
) |
Definition at line 67 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ben | |||
) |
Definition at line 70 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
bod | |||
) |
Definition at line 73 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
bos | |||
) |
Definition at line 76 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
bre | |||
) |
Definition at line 79 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
bul | |||
) |
Definition at line 82 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
cat | |||
) |
Definition at line 85 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ceb | |||
) |
Definition at line 88 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ces | |||
) |
Definition at line 91 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
chi_sim | |||
) |
Definition at line 94 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
chi_sim_vert | |||
) |
Definition at line 97 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
chi_tra | |||
) |
Definition at line 100 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
chi_tra_vert | |||
) |
Definition at line 103 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
chr | |||
) |
Definition at line 106 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
cos | |||
) |
Definition at line 109 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
cym | |||
) |
Definition at line 112 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
dan | |||
) |
Definition at line 115 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
deu | |||
) |
Definition at line 118 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
div | |||
) |
Definition at line 121 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
dzo | |||
) |
Definition at line 124 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ell | |||
) |
Definition at line 127 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
eng | |||
) |
Definition at line 130 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
enm | |||
) |
Definition at line 133 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
epo | |||
) |
Definition at line 136 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
est | |||
) |
Definition at line 139 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
eus | |||
) |
Definition at line 142 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
fao | |||
) |
Definition at line 145 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
fas | |||
) |
Definition at line 148 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
fil | |||
) |
Definition at line 151 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
fin | |||
) |
Definition at line 154 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
fra | |||
) |
Definition at line 157 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
frk | |||
) |
Definition at line 160 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
frm | |||
) |
Definition at line 163 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
fry | |||
) |
Definition at line 166 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
gla | |||
) |
Definition at line 169 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
gle | |||
) |
Definition at line 172 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
glg | |||
) |
Definition at line 175 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
grc | |||
) |
Definition at line 178 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
guj | |||
) |
Definition at line 181 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
hat | |||
) |
Definition at line 184 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
heb | |||
) |
Definition at line 187 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
hin | |||
) |
Definition at line 190 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
hrv | |||
) |
Definition at line 193 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
hun | |||
) |
Definition at line 196 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
hye | |||
) |
Definition at line 199 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
iku | |||
) |
Definition at line 202 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ind | |||
) |
Definition at line 205 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
isl | |||
) |
Definition at line 208 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ita | |||
) |
Definition at line 211 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ita_old | |||
) |
Definition at line 214 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
jav | |||
) |
Definition at line 217 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
jpn | |||
) |
Definition at line 220 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
jpn_vert | |||
) |
Definition at line 223 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kan | |||
) |
Definition at line 226 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kat | |||
) |
Definition at line 229 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kat_old | |||
) |
Definition at line 232 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kaz | |||
) |
Definition at line 235 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
khm | |||
) |
Definition at line 238 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kir | |||
) |
Definition at line 241 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kor | |||
) |
Definition at line 245 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
kor_vert | |||
) |
Definition at line 248 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
lao | |||
) |
Definition at line 251 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
lat | |||
) |
Definition at line 254 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
lav | |||
) |
Definition at line 257 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
lit | |||
) |
Definition at line 260 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ltz | |||
) |
Definition at line 263 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mal | |||
) |
Definition at line 266 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mar | |||
) |
Definition at line 269 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mkd | |||
) |
Definition at line 272 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mlt | |||
) |
Definition at line 275 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mon | |||
) |
Definition at line 278 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mri | |||
) |
Definition at line 281 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
msa | |||
) |
Definition at line 284 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
mya | |||
) |
Definition at line 287 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
nep | |||
) |
Definition at line 290 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
nld | |||
) |
Definition at line 293 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
nor | |||
) |
Definition at line 296 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
oci | |||
) |
Definition at line 299 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ori | |||
) |
Definition at line 302 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
osd | |||
) |
Definition at line 305 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
pan | |||
) |
Definition at line 308 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
pol | |||
) |
Definition at line 311 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
por | |||
) |
Definition at line 314 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
pus | |||
) |
Definition at line 317 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
que | |||
) |
Definition at line 320 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ron | |||
) |
Definition at line 323 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
rus | |||
) |
Definition at line 326 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
san | |||
) |
Definition at line 329 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
sin | |||
) |
Definition at line 332 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
slk | |||
) |
Definition at line 335 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
slv | |||
) |
Definition at line 338 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
snd | |||
) |
Definition at line 341 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
spa | |||
) |
Definition at line 344 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
spa_old | |||
) |
Definition at line 347 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
sqi | |||
) |
Definition at line 350 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
srp | |||
) |
Definition at line 353 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
srp_latn | |||
) |
Definition at line 356 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
sun | |||
) |
Definition at line 359 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
swa | |||
) |
Definition at line 362 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
swe | |||
) |
Definition at line 365 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
syr | |||
) |
Definition at line 368 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tam | |||
) |
Definition at line 371 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tat | |||
) |
Definition at line 374 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tel | |||
) |
Definition at line 377 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tgk | |||
) |
Definition at line 380 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tha | |||
) |
Definition at line 383 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tir | |||
) |
Definition at line 386 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ton | |||
) |
Definition at line 389 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
tur | |||
) |
Definition at line 392 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
uig | |||
) |
Definition at line 395 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
ukr | |||
) |
Definition at line 398 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
urd | |||
) |
Definition at line 401 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
uzb | |||
) |
Definition at line 404 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
uzb_cyrl | |||
) |
Definition at line 407 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
vie | |||
) |
Definition at line 410 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
yid | |||
) |
Definition at line 413 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadLanguage | , |
yor | |||
) |
Definition at line 416 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Arabic | |||
) |
Definition at line 430 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Armenian | |||
) |
Definition at line 433 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Bengali | |||
) |
Definition at line 436 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Canadian_Aboriginal | |||
) |
Definition at line 439 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Cherokee | |||
) |
Definition at line 442 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Cyrillic | |||
) |
Definition at line 445 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Devanagari | |||
) |
Definition at line 448 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Ethiopic | |||
) |
Definition at line 451 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Fraktur | |||
) |
Definition at line 454 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Georgian | |||
) |
Definition at line 457 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Greek | |||
) |
Definition at line 460 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Gujarati | |||
) |
Definition at line 463 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Gurmukhi | |||
) |
Definition at line 466 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Hangul | |||
) |
Definition at line 481 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Hangul_vert | |||
) |
Definition at line 484 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
HanS | |||
) |
Definition at line 469 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
HanS_vert | |||
) |
Definition at line 472 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
HanT | |||
) |
Definition at line 475 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
HanT_vert | |||
) |
Definition at line 478 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Hebrew | |||
) |
Definition at line 487 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Japanese | |||
) |
Definition at line 490 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Japanese_vert | |||
) |
Definition at line 493 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Kannada | |||
) |
Definition at line 496 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Khmer | |||
) |
Definition at line 499 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Lao | |||
) |
Definition at line 502 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Latin | |||
) |
Definition at line 505 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Malayalam | |||
) |
Definition at line 508 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Myanmar | |||
) |
Definition at line 511 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Oriya | |||
) |
Definition at line 514 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Sinhala | |||
) |
Definition at line 517 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Syriac | |||
) |
Definition at line 520 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Tamil | |||
) |
Definition at line 523 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Telugu | |||
) |
Definition at line 526 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Thaana | |||
) |
Definition at line 529 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Thai | |||
) |
Definition at line 532 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Tibetan | |||
) |
Definition at line 535 of file loadlang_test.cc.
tesseract::TEST_P | ( | LoadScript | , |
Vietnamese | |||
) |
Definition at line 538 of file loadlang_test.cc.
tesseract::TEST_P | ( | MatchGroundTruth | , |
BestPhototestOCR | |||
) |
Definition at line 89 of file apiexample_test.cc.
tesseract::TEST_P | ( | MatchGroundTruth | , |
FastPhototestOCR | |||
) |
Definition at line 84 of file apiexample_test.cc.
tesseract::TEST_P | ( | MatchGroundTruth | , |
TessPhototestOCR | |||
) |
Definition at line 94 of file apiexample_test.cc.
tesseract::TEST_P | ( | OSDTest | , |
MatchOrientationDegrees | |||
) |
Definition at line 65 of file osd_test.cc.
tesseract::TEST_P | ( | QRSequenceGeneratorTest | , |
GeneratesValidSequence | |||
) |
Definition at line 47 of file qrsequence_test.cc.
bool tesseract::test_underline | ( | bool | testing_on, |
C_BLOB * | blob, | ||
int16_t | baseline, | ||
int16_t | xheight | ||
) |
test_underline
Check to see if the blob is an underline. Return true if it is.
testing_on | drawing blob |
blob | blob to test |
baseline | coords of baseline |
xheight | height of line |
Definition at line 47 of file blkocc.cpp.
std::string tesseract::TestDataNameToPath | ( | const std::string & | name | ) |
Definition at line 24 of file lang_model_test.cc.
void tesseract::TestParagraphDetection | ( | const TextAndModel * | correct, |
int | num_rows | ||
) |
Definition at line 191 of file paragraphs_test.cc.
TESS_API void tesseract::tprintf | ( | const char * | format, |
... | |||
) |
Definition at line 41 of file tprintf.cpp.
Image tesseract::TraceBlockOnReducedPix | ( | BLOCK * | block, |
int | gridsize, | ||
ICOORD | bleft, | ||
int * | left, | ||
int * | bottom | ||
) |
Definition at line 250 of file bbgrid.cpp.
Image tesseract::TraceOutlineOnReducedPix | ( | C_OUTLINE * | outline, |
int | gridsize, | ||
ICOORD | bleft, | ||
int * | left, | ||
int * | bottom | ||
) |
Definition at line 224 of file bbgrid.cpp.
void tesseract::transform_to_next_perm | ( | WERD_RES_LIST & | words | ) |
Definition at line 391 of file fixspace.cpp.
bool tesseract::try_block_fixed | ( | TO_BLOCK * | block, |
int32_t | block_index | ||
) |
Definition at line 502 of file topitch.cpp.
bool tesseract::try_doc_fixed | ( | ICOORD | page_tr, |
TO_BLOCK_LIST * | port_blocks, | ||
float | gradient | ||
) |
Definition at line 371 of file topitch.cpp.
bool tesseract::try_rows_fixed | ( | TO_BLOCK * | block, |
int32_t | block_index, | ||
bool | testing_on | ||
) |
Definition at line 515 of file topitch.cpp.
float tesseract::tune_row_pitch | ( | TO_ROW * | row, |
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | space_size, | ||
float & | initial_pitch, | ||
float & | best_sp_sd, | ||
int16_t & | best_mid_cuts, | ||
ICOORDELT_LIST * | best_cells, | ||
bool | testing_on | ||
) |
Definition at line 1097 of file topitch.cpp.
float tesseract::tune_row_pitch2 | ( | TO_ROW * | row, |
STATS * | projection, | ||
int16_t | projection_left, | ||
int16_t | projection_right, | ||
float | space_size, | ||
float & | initial_pitch, | ||
float & | best_sp_sd, | ||
int16_t & | best_mid_cuts, | ||
ICOORDELT_LIST * | best_cells, | ||
bool | testing_on | ||
) |
Definition at line 1196 of file topitch.cpp.
void tesseract::tweak_row_baseline | ( | ROW * | row, |
double | blshift_maxshift, | ||
double | blshift_xfraction | ||
) |
Definition at line 864 of file tordmain.cpp.
void tesseract::UpdateMatchDisplay | ( | ) |
This routine clears the global feature and proto display lists.
Globals:
Definition at line 413 of file intproto.cpp.
bool tesseract::ValidBodyLine | ( | const std::vector< RowScratchRegisters > * | rows, |
int | row, | ||
const ParagraphModel * | model | ||
) |
Definition at line 1340 of file paragraphs.cpp.
bool tesseract::ValidCharDescription | ( | const FEATURE_DEFS_STRUCT & | FeatureDefs, |
CHAR_DESC_STRUCT * | CharDesc | ||
) |
Definition at line 131 of file featdefs.cpp.
bool tesseract::ValidFirstLine | ( | const std::vector< RowScratchRegisters > * | rows, |
int | row, | ||
const ParagraphModel * | model | ||
) |
Definition at line 1331 of file paragraphs.cpp.
Definition at line 871 of file blobbox.cpp.
Definition at line 890 of file blobbox.cpp.
void tesseract::vertical_cunderline_projection | ( | C_OUTLINE * | outline, |
QSPLINE * | baseline, | ||
float | xheight, | ||
float | baseline_offset, | ||
STATS * | lower_proj, | ||
STATS * | middle_proj, | ||
STATS * | upper_proj | ||
) |
Definition at line 202 of file underlin.cpp.
void tesseract::vigorous_noise_removal | ( | TO_BLOCK * | block | ) |
Definition at line 508 of file makerow.cpp.
void tesseract::Walk | ( | KDTREE * | tree, |
kdwalk_proc | action, | ||
ClusteringContext * | context, | ||
KDNODE * | sub_tree, | ||
int32_t | level | ||
) |
Walk a tree, calling action once on each node.
Operation: This routine walks through the specified sub_tree and invokes action action at each node as follows: action(context, data, level) data the data contents of the node being visited, level is the level of the node in the tree with the root being level 0.
tree | root of the tree being walked. |
action | action to be performed at every node |
context | action's context |
sub_tree | ptr to root of subtree to be walked |
level | current level in the tree for this node |
Definition at line 466 of file kdtree.cpp.
|
inline |
int16_t tesseract::word_blob_quality | ( | WERD_RES * | word | ) |
int tesseract::word_comparator | ( | const void * | word1p, |
const void * | word2p | ||
) |
bool tesseract::word_contains_non_1_digit | ( | const char * | word, |
const char * | word_lengths | ||
) |
bool tesseract::write_info | ( | FILE * | f, |
const FontInfo & | fi | ||
) |
Definition at line 157 of file fontinfo.cpp.
bool tesseract::write_set | ( | FILE * | f, |
const FontSet & | fs | ||
) |
Definition at line 222 of file fontinfo.cpp.
bool tesseract::write_spacing_info | ( | FILE * | f, |
const FontInfo & | fi | ||
) |
Definition at line 194 of file fontinfo.cpp.
void tesseract::WriteAdaptedClass | ( | FILE * | File, |
ADAPT_CLASS_STRUCT * | Class, | ||
int | NumConfigs | ||
) |
This routine writes a binary representation of Class to File.
File | open file to write Class to |
Class | adapted class to write to File |
NumConfigs | number of configs in Class |
Definition at line 307 of file adaptive.cpp.
void tesseract::WriteCharDescription | ( | const FEATURE_DEFS_STRUCT & | FeatureDefs, |
CHAR_DESC_STRUCT * | CharDesc, | ||
std::string & | str | ||
) |
Appends a textual representation of CharDesc to str. The format used is to write out the number of feature sets which will be written followed by a representation of each feature set.
Each set starts with the short name for that feature followed by a description of the feature set. Feature sets which are not present are not written.
FeatureDefs | definitions of feature types/extractors |
str | string to append CharDesc to |
CharDesc | character description to write to File |
Definition at line 109 of file featdefs.cpp.
void tesseract::WriteFeatureSet | ( | FEATURE_SET | FeatureSet, |
std::string & | str | ||
) |
Write a textual representation of FeatureSet to File. This representation is an integer specifying the number of features in the set, followed by a newline, followed by text representations for each feature in the set.
FeatureSet | feature set to write to File |
str | string to write Feature to |
Definition at line 129 of file ocrfeatures.cpp.
TESS_UNICHARSET_TRAINING_API bool tesseract::WriteFile | ( | const std::string & | output_dir, |
const std::string & | lang, | ||
const std::string & | suffix, | ||
const std::vector< char > & | data, | ||
FileWriter | writer | ||
) |
Definition at line 40 of file lang_model_helpers.cpp.
TESS_API void tesseract::WriteParamDesc | ( | FILE * | File, |
uint16_t | N, | ||
const PARAM_DESC | ParamDesc[] | ||
) |
This routine writes an array of dimension descriptors to the specified text file.
File | open text file to write param descriptors to |
N | number of param descriptors to write |
ParamDesc | array of param descriptors to write |
Definition at line 244 of file clusttool.cpp.
void tesseract::WritePermConfig | ( | FILE * | File, |
PERM_CONFIG_STRUCT * | Config | ||
) |
This routine writes a binary representation of a permanent configuration to File.
Definition at line 368 of file adaptive.cpp.
This routine writes a textual description of a prototype to the specified text file.
File | open text file to write prototype to |
N | number of dimensions in feature space |
Proto | prototype to write out |
Definition at line 271 of file clusttool.cpp.
bool tesseract::WriteRecoder | ( | const UNICHARSET & | unicharset, |
bool | pass_through, | ||
const std::string & | output_dir, | ||
const std::string & | lang, | ||
FileWriter | writer, | ||
std::string * | radical_table_data, | ||
TessdataManager * | traineddata | ||
) |
Definition at line 97 of file lang_model_helpers.cpp.
TESS_COMMON_TRAINING_API void tesseract::WriteShapeTable | ( | const std::string & | file_prefix, |
const ShapeTable & | shape_table | ||
) |
Definition at line 170 of file commontraining.cpp.
void tesseract::WriteTempConfig | ( | FILE * | File, |
TEMP_CONFIG_STRUCT * | Config | ||
) |
This routine writes a binary representation of a temporary configuration to File.
Definition at line 391 of file adaptive.cpp.
void tesseract::WriteTrainingSamples | ( | const tesseract::FEATURE_DEFS_STRUCT & | FeatureDefs, |
char * | Directory, | ||
tesseract::LIST | CharList, | ||
const char * | program_feature_type | ||
) |
bool tesseract::WriteUnicharset | ( | const UNICHARSET & | unicharset, |
const std::string & | output_dir, | ||
const std::string & | lang, | ||
FileWriter | writer, | ||
TessdataManager * | traineddata | ||
) |
Definition at line 82 of file lang_model_helpers.cpp.
|
inline |
Definition at line 245 of file functions.h.
TFNetworkModelDefaultTypeInternal tesseract::_TFNetworkModel_default_instance_ |
Definition at line 52 of file tfnetwork.pb.h.
ScrollView * tesseract::blob_window = nullptr |
Definition at line 36 of file render.cpp.
const int tesseract::case_state_table[6][4] |
Definition at line 28 of file context.cpp.
|
extern |
double tesseract::classify_max_slope = 2.414213562 |
double tesseract::classify_min_slope = 0.414213562 |
double tesseract::classify_norm_adj_curl = 2.0 |
"Norm adjust curl ..."
Definition at line 74 of file normmatch.cpp.
double tesseract::classify_norm_adj_midpoint = 32.0 |
control knobs used to control the normalization adjustment process "Norm adjust midpoint ..."
Definition at line 73 of file normmatch.cpp.
double tesseract::classify_pico_feature_length = 0.05 |
"Pico Feature Length"
Definition at line 37 of file picofeat.cpp.
ScrollView::Color tesseract::color_list |
Definition at line 38 of file render.cpp.
TESS_COMMON_TRAINING_API CLUSTERCONFIG tesseract::Config = {elliptical, 0.625, 0.05, 1.0, 1e-6, 0} |
Definition at line 89 of file commontraining.cpp.
|
extern |
bool tesseract::devanagari_split_debugimage = 0 |
"Whether to create a debug image for split shiro-rekha process."
Definition at line 39 of file devanagari_processing.cpp.
int tesseract::devanagari_split_debuglevel = 0 |
"Debug level for split shiro-rekha process."
Definition at line 36 of file devanagari_processing.cpp.
DotProductFunction tesseract::DotProduct |
Definition at line 80 of file simddetect.cpp.
ScrollView * tesseract::edge_window = nullptr |
Definition at line 37 of file plotedges.cpp.
int tesseract::editor_image_blob_bb_color = ScrollView::YELLOW |
"Blob bounding box colour"
Definition at line 127 of file pgedit.cpp.
char* tesseract::editor_image_win_name = "EditorImage" |
"Editor image window name"
Definition at line 122 of file pgedit.cpp.
int tesseract::editor_image_word_bb_color = ScrollView::BLUE |
"Word bounding box colour"
Definition at line 126 of file pgedit.cpp.
int tesseract::editor_image_xpos = 590 |
"Editor image X Pos"
Definition at line 123 of file pgedit.cpp.
int tesseract::editor_image_ypos = 10 |
"Editor image Y Pos"
Definition at line 124 of file pgedit.cpp.
int tesseract::editor_word_height = 240 |
"Word window height"
Definition at line 132 of file pgedit.cpp.
char* tesseract::editor_word_name = "BlnWords" |
"BL normalized word window"
Definition at line 129 of file pgedit.cpp.
int tesseract::editor_word_width = 655 |
"Word window width"
Definition at line 133 of file pgedit.cpp.
int tesseract::editor_word_xpos = 60 |
"Word window X Pos"
Definition at line 130 of file pgedit.cpp.
int tesseract::editor_word_ypos = 510 |
"Word window Y Pos"
Definition at line 131 of file pgedit.cpp.
TESS_COMMON_TRAINING_API FEATURE_DEFS_STRUCT tesseract::feature_defs |
Definition at line 90 of file commontraining.cpp.
Definition at line 41 of file cluster.cpp.
ScrollView * tesseract::fx_win = nullptr |
Definition at line 42 of file drawfx.cpp.
double tesseract::gapmap_big_gaps = 1.75 |
"xht multiplier"
Definition at line 20 of file gap_map.cpp.
bool tesseract::gapmap_debug = false |
"Say which blocks have tables"
Definition at line 17 of file gap_map.cpp.
bool tesseract::gapmap_no_isolated_quanta = false |
"Ensure gaps not less than 2quanta wide"
Definition at line 19 of file gap_map.cpp.
bool tesseract::gapmap_use_ends = false |
"Use large space at start and end of rows"
Definition at line 18 of file gap_map.cpp.
|
extern |
|
extern |
const int tesseract::kAdamCorrectionIterations = 200000 |
Definition at line 35 of file weightmatrix.cpp.
const TFloat tesseract::kAdamEpsilon = 1e-8 |
Definition at line 37 of file weightmatrix.cpp.
const int tesseract::kAdamFlag = 4 |
Definition at line 231 of file weightmatrix.cpp.
const int tesseract::kAdjacentLeaderSearchPadding = 2 |
Definition at line 117 of file tablefind.cpp.
const double tesseract::kAlignedFraction = 0.03125 |
Definition at line 46 of file alignedblob.cpp.
const double tesseract::kAlignedGapFraction = 0.75 |
Definition at line 50 of file alignedblob.cpp.
const double tesseract::kAllowBlobArea = 0.05 |
Definition at line 58 of file tablefind.cpp.
const double tesseract::kAllowBlobHeight = 0.3 |
Definition at line 56 of file tablefind.cpp.
const double tesseract::kAllowBlobWidth = 0.4 |
Definition at line 57 of file tablefind.cpp.
const double tesseract::kAllowTextArea = 0.8 |
Definition at line 51 of file tablefind.cpp.
const double tesseract::kAllowTextHeight = 0.5 |
Definition at line 49 of file tablefind.cpp.
const double tesseract::kAllowTextWidth = 0.6 |
Definition at line 50 of file tablefind.cpp.
const char tesseract::kArabicText = "والفكر والصراع 1234,\nوالفكر والصراع" |
Definition at line 40 of file pango_font_info_test.cc.
const char * tesseract::kBadlyFormedHinWords = {"उपयोक्ताो", "नहीें", "प्रंात", "कहीअे", "पत्रिाका", "छह्णाीस"} |
Definition at line 85 of file normstrngs_test.cc.
const char* tesseract::kBadlyFormedThaiWords[] = {"ฤิ", "กา้ํ", "กิำ", "นำ้", "เเก"} |
Definition at line 87 of file normstrngs_test.cc.
const int tesseract::kBatchIterations = 100 |
Definition at line 36 of file lstm_test.h.
const double tesseract::kBestCheckpointFraction = 31.0 / 32.0 |
Definition at line 70 of file lstmtrainer.cpp.
const double tesseract::kBigPartSizeRatio = 1.75 |
Definition at line 47 of file colpartitiongrid.cpp.
const char tesseract::kBlameAdaption[] = "adapt" |
Definition at line 46 of file blamer.cpp.
const char tesseract::kBlameChopper[] = "chop" |
Definition at line 40 of file blamer.cpp.
const char tesseract::kBlameClassifier[] = "cl" |
Definition at line 39 of file blamer.cpp.
const char tesseract::kBlameClassLMTradeoff[] = "cl/LM" |
Definition at line 41 of file blamer.cpp.
const char tesseract::kBlameClassOldLMTradeoff[] = "cl/old_LM" |
Definition at line 45 of file blamer.cpp.
const char tesseract::kBlameCorrect[] = "corr" |
Definition at line 38 of file blamer.cpp.
const char tesseract::kBlameNoTruth[] = "no_tr" |
Definition at line 48 of file blamer.cpp.
const char tesseract::kBlameNoTruthSplit[] = "no_tr_spl" |
Definition at line 47 of file blamer.cpp.
const char tesseract::kBlamePageLayout[] = "pglt" |
Definition at line 42 of file blamer.cpp.
const char tesseract::kBlameSegsearchHeur[] = "ss_heur" |
Definition at line 43 of file blamer.cpp.
const char tesseract::kBlameSegsearchPP[] = "ss_pp" |
Definition at line 44 of file blamer.cpp.
const char tesseract::kBlameUnknown[] = "unkn" |
Definition at line 49 of file blamer.cpp.
const int tesseract::kBlnBaselineOffset = 64 |
Definition at line 34 of file normalis.h.
const int tesseract::kBlnCellHeight = 256 |
Definition at line 32 of file normalis.h.
const int tesseract::kBlnXHeight = 128 |
Definition at line 33 of file normalis.h.
const PolyBlockType tesseract::kBlocks8087_054[] |
Definition at line 51 of file layout_test.cc.
const int tesseract::kBoxClipTolerance = 2 |
Definition at line 31 of file boxword.cpp.
const double tesseract::kBrokenCJKIterationFraction = 0.125 |
Definition at line 72 of file strokewidth.cpp.
const int tesseract::kBytesPer64BitNumber = 20 |
Max bytes in the decimal representation of int64_t.
Definition at line 1537 of file baseapi.cpp.
const int tesseract::kBytesPerBoxFileLine = (kBytesPerNumber + 1) * kNumbersPerBlob + 1 |
Multiplier for max expected textlength assumes (kBytesPerNumber + space)
Definition at line 1535 of file baseapi.cpp.
const int tesseract::kBytesPerNumber = 5 |
The number of bytes taken by each number. Since we use int16_t for ICOORD, assume only 5 digits max.
Definition at line 1529 of file baseapi.cpp.
const int tesseract::kCellSplitColumnThreshold = 0 |
Definition at line 41 of file tablerecog.cpp.
const int tesseract::kCellSplitRowThreshold = 0 |
Definition at line 40 of file tablerecog.cpp.
const ParagraphJustification tesseract::kCenter = JUSTIFICATION_CENTER |
Definition at line 27 of file paragraphs_test.cc.
const float tesseract::kCertaintyScale = 7.0f |
Definition at line 33 of file linerec.cpp.
const double tesseract::kCertOffset = -0.085 |
Definition at line 48 of file lstmrecognizer.cpp.
const double tesseract::kCJKAspectRatio = 1.25 |
Definition at line 66 of file strokewidth.cpp.
const double tesseract::kCJKAspectRatioIncrease = 1.0625 |
Definition at line 68 of file strokewidth.cpp.
const double tesseract::kCJKBrokenDistanceFraction = 0.25 |
Definition at line 62 of file strokewidth.cpp.
const int tesseract::kCJKMaxComponents = 8 |
Definition at line 64 of file strokewidth.cpp.
const int tesseract::kCJKRadius = 2 |
Definition at line 60 of file strokewidth.cpp.
TESS_API const char *const tesseract::kCNFeatureType = "cn" |
Definition at line 34 of file featdefs.cpp.
const int tesseract::kColumnWidthFactor = 20 |
const TextAndModel tesseract::kComplexPage1[] |
Definition at line 368 of file paragraphs_test.cc.
const TextAndModel tesseract::kComplexPage2[] |
Definition at line 413 of file paragraphs_test.cc.
const double tesseract::kComplexShapePerimeterRatio = 1.5 |
Definition at line 48 of file blobbox.cpp.
const double tesseract::kCosMaxSkewAngle = 0.866025 |
Definition at line 60 of file tabfind.cpp.
const double tesseract::kCosSmallAngle = 0.866 |
Definition at line 44 of file blobbox.cpp.
const int tesseract::kCrackSpacing = 100 |
Spacing of cracks across the page to break up tall vertical lines.
Definition at line 43 of file linefind.cpp.
const TextAndModel tesseract::kCrownedParagraph[] |
Definition at line 262 of file paragraphs_test.cc.
const ParagraphModel * tesseract::kCrownLeft |
Definition at line 56 of file paragraphs.cpp.
const ParagraphModel * tesseract::kCrownRight |
Definition at line 58 of file paragraphs.cpp.
const int tesseract::kDefaultResolution = 300 |
Definition at line 58 of file pango_font_info.cpp.
const double tesseract::kDefiniteAspectRatio = 2.0 |
Definition at line 46 of file blobbox.cpp.
const double tesseract::kDiacriticXPadRatio = 7.0 |
Definition at line 75 of file strokewidth.cpp.
const double tesseract::kDiacriticYPadRatio = 1.75 |
Definition at line 78 of file strokewidth.cpp.
const double tesseract::kDictRatio = 2.25 |
Definition at line 46 of file lstmrecognizer.cpp.
const TPOINT tesseract::kDivisibleVerticalItalic(1, 5) | ( | 1 | , |
5 | |||
) |
const TPOINT tesseract::kDivisibleVerticalUpright(0, 1) | ( | 0 | , |
1 | |||
) |
const int tesseract::kDoubleFlag = 128 |
Definition at line 235 of file weightmatrix.cpp.
const char tesseract::kEngLigatureText[] = "fidelity" |
Definition at line 39 of file stringrenderer_test.cc.
const char tesseract::kEngNonLigatureText[] = "fidelity" |
Definition at line 37 of file stringrenderer_test.cc.
const char tesseract::kEngText = "the quick brown fox jumps over the lazy dog" |
Definition at line 81 of file normstrngs_test.cc.
const int tesseract::kErrorGraphInterval = 1000 |
Definition at line 58 of file lstmtrainer.cpp.
const char* tesseract::kExpectedFontNames[] |
Definition at line 27 of file pango_font_info_test.cc.
const int tesseract::kExposureFactor = 16 |
Definition at line 56 of file degradeimage.cpp.
const int tesseract::kFeaturePadding = 2 |
Definition at line 37 of file imagedata.h.
const TextAndModel tesseract::kFewCluesWithCrown[] |
Definition at line 247 of file paragraphs_test.cc.
const float tesseract::kFinalPixelTolerance = 0.125f |
Definition at line 37 of file normalis.cpp.
const TextAndModel tesseract::kFlushLeftParagraphs[] |
Definition at line 279 of file paragraphs_test.cc.
const float tesseract::kFontMergeDistance = 0.025 |
Definition at line 50 of file mastertrainer.cpp.
TESS_API const char *const tesseract::kGeoFeatureType = "tb" |
Definition at line 36 of file featdefs.cpp.
const double tesseract::kGoodRowNumberOfColumnsLarge = 0.7 |
Definition at line 57 of file tablerecog.cpp.
const double tesseract::kGoodRowNumberOfColumnsSmall[] = {2, 2, 2, 2, 2, 3, 3} |
Definition at line 55 of file tablerecog.cpp.
const int tesseract::kGutterMultiple = 4 |
Definition at line 36 of file tabvector.cpp.
const int tesseract::kGutterToNeighbourRatio = 3 |
Definition at line 38 of file tabvector.cpp.
const char* tesseract::kGWR2nds[] |
Definition at line 43 of file recodebeam_test.cc.
const float tesseract::kGWR2ndScores[] |
Definition at line 45 of file recodebeam_test.cc.
const char* tesseract::kGWRTops[] |
Definition at line 39 of file recodebeam_test.cc.
const float tesseract::kGWRTopScores[] |
Definition at line 41 of file recodebeam_test.cc.
const float tesseract::kHanRatioInJapanese = 0.3 |
Definition at line 47 of file osdetect.cpp.
const float tesseract::kHanRatioInKorean = 0.7 |
Definition at line 46 of file osdetect.cpp.
const double tesseract::kHighConfidence = 0.9375 |
Definition at line 66 of file lstmtrainer.cpp.
const char tesseract::kHinText = "पिताने विवाह की | हो गई उद्विग्न वह सोचा" |
Definition at line 82 of file normstrngs_test.cc.
const int tesseract::kHistogramBuckets = 16 |
Definition at line 517 of file weightmatrix.cpp.
const double tesseract::kHorizontalGapMergeFraction = 0.5 |
Definition at line 51 of file colfind.cpp.
const double tesseract::kHorizontalSpacing = 0.30 |
Definition at line 34 of file tablerecog.cpp.
const int tesseract::kHorzStrongTextlineAspect = 5 |
Definition at line 77 of file colpartition.cpp.
const int tesseract::kHorzStrongTextlineCount = 8 |
Definition at line 73 of file colpartition.cpp.
const int tesseract::kHorzStrongTextlineHeight = 10 |
Definition at line 75 of file colpartition.cpp.
const int tesseract::kImagePadding = 4 |
Definition at line 39 of file imagedata.h.
const double tesseract::kImprovementFraction = 15.0 / 16.0 |
Definition at line 68 of file lstmtrainer.cpp.
const char* const tesseract::kIncorrectResultReasonNames[] |
Definition at line 51 of file blamer.cpp.
const float tesseract::kInfiniteDist = 999.0f |
Definition at line 966 of file mastertrainer.cpp.
const int tesseract::kInt8Flag = 1 |
Definition at line 229 of file weightmatrix.cpp.
TESS_API const char *const tesseract::kIntFeatureType = "if" |
Definition at line 35 of file featdefs.cpp.
const char tesseract::kKorText = "이는 것으로" |
Definition at line 83 of file normstrngs_test.cc.
const double tesseract::kLargeTableProjectionThreshold = 0.45 |
Definition at line 107 of file tablefind.cpp.
const int tesseract::kLargeTableRowCount = 6 |
Definition at line 109 of file tablefind.cpp.
const int tesseract::kLatinChs[] = {0x00a2, 0x0022, 0x0022, 0x0027, 0x0027, 0x00b7, 0x002d, 0} |
Latin chars corresponding to the unicode chars above.
Definition at line 1594 of file baseapi.cpp.
const double tesseract::kLearningRateDecay = M_SQRT1_2 |
Definition at line 54 of file lstmtrainer.cpp.
const ParagraphJustification tesseract::kLeft = JUSTIFICATION_LEFT |
Definition at line 26 of file paragraphs_test.cc.
const int tesseract::kLeftIndentAlignmentCountTh = 1 |
Definition at line 83 of file equationdetect.cpp.
const double tesseract::kLineCountReciprocal = 4.0 |
Definition at line 49 of file tabvector.cpp.
const int tesseract::kLinedTableMinHorizontalLines = 3 |
Definition at line 44 of file tablerecog.cpp.
const int tesseract::kLinedTableMinVerticalLines = 3 |
Definition at line 43 of file tablerecog.cpp.
const int tesseract::kLineFindGridSize = 50 |
Grid size used by line finder. Not very critical.
Definition at line 45 of file linefind.cpp.
const double tesseract::kLineFragmentAspectRatio = 10.0 |
Definition at line 54 of file tabfind.cpp.
const double tesseract::kLineResidueAspectRatio = 8.0 |
Definition at line 99 of file strokewidth.cpp.
const int tesseract::kLineResiduePadRatio = 3 |
Definition at line 101 of file strokewidth.cpp.
const double tesseract::kLineResidueSizeRatio = 1.75 |
Definition at line 103 of file strokewidth.cpp.
const int tesseract::kLineTrapLongest = 4 |
Definition at line 92 of file strokewidth.cpp.
const int tesseract::kLineTrapShortest = 2 |
Definition at line 94 of file strokewidth.cpp.
const double tesseract::kMarginFactor = 1.1 |
Definition at line 49 of file tablerecog.cpp.
const double tesseract::kMarginOverlapFraction = 0.25 |
Definition at line 45 of file colpartitiongrid.cpp.
const float tesseract::kMathDigitDensityTh1 = 0.25 |
Definition at line 78 of file equationdetect.cpp.
const float tesseract::kMathDigitDensityTh2 = 0.1 |
Definition at line 79 of file equationdetect.cpp.
const float tesseract::kMathItalicDensityTh = 0.5 |
Definition at line 80 of file equationdetect.cpp.
const int tesseract::kMaxAmbigStringSize = UNICHAR_LEN * (MAX_AMBIG_SIZE + 1) |
Definition at line 40 of file ambigs.cpp.
const double tesseract::kMaxBaselineDrift = 0.0625 |
Definition at line 51 of file ratngs.cpp.
const double tesseract::kMaxBaselineError = 0.4375 |
Definition at line 80 of file colpartition.cpp.
const double tesseract::kMaxBlobOverlapFactor = 4.0 |
Definition at line 77 of file tablefind.cpp.
const int tesseract::kMaxBlobWidth = 500 |
Definition at line 40 of file tablefind.cpp.
const int16_t tesseract::kMaxBoxEdgeDiff = 2 |
Definition at line 32 of file recogtraining.cpp.
const int tesseract::kMaxBoxesInDataPartition = 20 |
Definition at line 66 of file tablefind.cpp.
const int tesseract::kMaxBytesPerLine = kNumbersPerBlob * (kBytesPer64BitNumber + 1) + 1 + UNICHAR_LEN |
A maximal single box could occupy kNumbersPerBlob numbers at kBytesPer64BitNumber digits (if someone sneaks in a 64 bit value) and a space plus the newline and the maximum length of a UNICHAR. Test against this on each iteration for safety.
Definition at line 1544 of file baseapi.cpp.
const int tesseract::kMaxCaptionLines = 7 |
Definition at line 39 of file colpartitiongrid.cpp.
const int tesseract::kMaxCharTopRange = 48 |
Definition at line 69 of file fixxht.cpp.
const int tesseract::kMaxCircleErosions = 8 |
Definition at line 54 of file pagesegmain.cpp.
const int tesseract::kMaxCJKSizeRatio = 5 |
Definition at line 70 of file strokewidth.cpp.
const int tesseract::kMaxColorDistance = 900 |
Definition at line 87 of file colpartition.cpp.
const int tesseract::kMaxColumnHeaderDistance = 4 |
Definition at line 85 of file tablefind.cpp.
|
constexpr |
Maximum believable resolution.
Definition at line 38 of file publictypes.h.
const double tesseract::kMaxDiacriticDistanceRatio = 1.25 |
Definition at line 84 of file strokewidth.cpp.
const double tesseract::kMaxDiacriticGapToBaseCharHeight = 1.0 |
Definition at line 87 of file strokewidth.cpp.
const double tesseract::kMaxDistToPartSizeRatio = 1.5 |
Definition at line 56 of file colfind.cpp.
const int tesseract::kMaxDropCapBottom = -128 |
Definition at line 43 of file ratngs.cpp.
const int tesseract::kMaxFillinMultiple = 11 |
Definition at line 45 of file tabvector.cpp.
const double tesseract::kMaxGapInTextPartition = 4.0 |
Definition at line 69 of file tablefind.cpp.
const double tesseract::kMaxGutterWidthAbsolute = 2.00 |
Definition at line 49 of file tabfind.cpp.
const int tesseract::kMaxIncompatibleColumnCount = 2 |
Definition at line 48 of file colfind.cpp.
const int tesseract::kMaxIntPairSize = 45 |
Definition at line 47 of file scrollview.cpp.
const int tesseract::kMaxLargeOverlapsWithMedium = 12 |
Definition at line 44 of file ccnontextdetect.cpp.
const int tesseract::kMaxLargeOverlapsWithSmall = 3 |
Definition at line 35 of file ccnontextdetect.cpp.
const double tesseract::kMaxLeaderGapFractionOfMax = 0.25 |
Definition at line 63 of file colpartition.cpp.
const double tesseract::kMaxLeaderGapFractionOfMin = 0.5 |
Definition at line 65 of file colpartition.cpp.
const int tesseract::kMaxLigature = 0xfb17 |
Definition at line 45 of file ligature_table.cpp.
const int tesseract::kMaxLineLength = 1024 |
Definition at line 322 of file boxchar.cpp.
const int tesseract::kMaxLineResidue = 6 |
Definition at line 51 of file linefind.cpp.
const double tesseract::kMaxLineSizeRatio = 1.25 |
Definition at line 60 of file pageres.cpp.
const int tesseract::kMaxMediumOverlapsWithSmall = 12 |
Definition at line 40 of file ccnontextdetect.cpp.
const double tesseract::kMaxMediumSizeRatio = 4.0 |
Definition at line 52 of file blobbox.cpp.
const int tesseract::kMaxMsgSize = 4096 |
Definition at line 46 of file scrollview.cpp.
const int tesseract::kMaxNeighbourDistFactor = 4 |
Definition at line 37 of file colpartitiongrid.cpp.
const double tesseract::kMaxNonLineDensity = 0.25 |
Definition at line 56 of file linefind.cpp.
const int tesseract::kMaxNumberOfScripts = 116 + 1 + 2 + 1 |
Definition at line 36 of file osdetect.h.
const int tesseract::kMaxOffsetDist = 32 |
Definition at line 31 of file intfeaturemap.cpp.
const double tesseract::kMaxOverlapDenominator = 0.125 |
Definition at line 45 of file ratngs.cpp.
const int tesseract::kMaxPadFactor = 6 |
Definition at line 34 of file colpartitiongrid.cpp.
const double tesseract::kMaxParagraphEndingLeftSpaceMultiple = 3.0 |
Definition at line 126 of file tablefind.cpp.
const double tesseract::kMaxPartitionSpacing = 1.75 |
Definition at line 62 of file colpartitiongrid.cpp.
const double tesseract::kMaxPerimeterWidthRatio = 8.0 |
Definition at line 36 of file stepblob.cpp.
const int tesseract::kMaxRaggedSearch = 25 |
Definition at line 39 of file tabfind.cpp.
const int tesseract::kMaxReadAhead = 8 |
Definition at line 42 of file imagedata.cpp.
const int tesseract::kMaxRealDistance = 2.0 |
Definition at line 39 of file detlinefit.cpp.
const double tesseract::kMaxRectangularFraction = 0.75 |
Definition at line 43 of file imagefind.cpp.
const double tesseract::kMaxRectangularGradient = 0.1 |
Definition at line 46 of file imagefind.cpp.
const int tesseract::kMaxRMSColorNoise = 128 |
Definition at line 84 of file colpartition.cpp.
const double tesseract::kMaxRowSize = 2.5 |
Definition at line 52 of file tablerecog.cpp.
const double tesseract::kMaxSameBlockLineSpacing = 3 |
Definition at line 59 of file colpartition.cpp.
const double tesseract::kMaxSizeRatio = 1.5 |
Definition at line 61 of file colpartition.cpp.
const int tesseract::kMaxSkewFactor = 15 |
Definition at line 72 of file alignedblob.cpp.
const double tesseract::kMaxSmallNeighboursPerPix = 1.0 / 32 |
Definition at line 32 of file ccnontextdetect.cpp.
const double tesseract::kMaxSpacingDrift = 1.0 / 72 |
Definition at line 53 of file colpartition.cpp.
const double tesseract::kMaxStaveHeight = 1.0 |
Definition at line 58 of file linefind.cpp.
const double tesseract::kMaxTableCellXheight = 2.0 |
Definition at line 81 of file tablefind.cpp.
const double tesseract::kMaxTopSpacingFraction = 0.25 |
Definition at line 56 of file colpartition.cpp.
const int tesseract::kMaxUnicharsPerCluster = 2000 |
Definition at line 48 of file mastertrainer.cpp.
const int tesseract::kMaxVerticalSearch = 12 |
Definition at line 38 of file tabfind.cpp.
const int tesseract::kMaxVerticalSpacing = 500 |
Definition at line 38 of file tablefind.cpp.
const int tesseract::kMaxWinSize = 2000 |
Definition at line 52 of file network.cpp.
const double tesseract::kMaxWordGapRatio = 2.0 |
Definition at line 62 of file pageres.cpp.
const double tesseract::kMaxWordSizeRatio = 1.25 |
Definition at line 58 of file pageres.cpp.
const double tesseract::kMaxXProjectionGapFactor = 2.0 |
Definition at line 136 of file tablefind.cpp.
TESS_API const char *const tesseract::kMicroFeatureType = "mf" |
Definition at line 33 of file featdefs.cpp.
const int tesseract::kMinAcceptableBlobHeight = 10 |
Definition at line 42 of file osdetect.cpp.
const double tesseract::kMinAlignedGutter = 0.25 |
Definition at line 51 of file tabvector.cpp.
const int tesseract::kMinAlignedTabs = 4 |
Definition at line 62 of file alignedblob.cpp.
const double tesseract::kMinBaselineCoverage = 0.5 |
Definition at line 82 of file colpartition.cpp.
const int tesseract::kMinBoxesInTextPartition = 10 |
Definition at line 63 of file tablefind.cpp.
const double tesseract::kMinCapHeightFraction = 0.05 |
Definition at line 58 of file unicharset.cpp.
const double tesseract::kMinCaptionGapHeightRatio = 0.5 |
Definition at line 43 of file colpartitiongrid.cpp.
const double tesseract::kMinCaptionGapRatio = 2.0 |
Definition at line 41 of file colpartitiongrid.cpp.
const float tesseract::kMinCertainty = -20.0f |
Definition at line 30 of file networkio.cpp.
const int tesseract::kMinChainTextValue = 3 |
Definition at line 71 of file colpartition.cpp.
const int tesseract::kMinClusteredShapes = 1 |
Definition at line 46 of file mastertrainer.cpp.
const int tesseract::kMinColumnWidth = 2.0 / 3 |
Definition at line 31 of file colpartitionset.cpp.
|
constexpr |
Minimum believable resolution. Used as a default if there is no other information, as it is safer to under-estimate than over-estimate.
Definition at line 36 of file publictypes.h.
const double tesseract::kMinDiacriticSizeRatio = 1.0625 |
Definition at line 81 of file strokewidth.cpp.
const double tesseract::kMinDivergenceRate = 50.0 |
Definition at line 47 of file lstmtrainer.cpp.
const int tesseract::kMinEvaluatedTabs = 3 |
Definition at line 56 of file tabfind.cpp.
const double tesseract::kMinFilledArea = 0.35 |
Definition at line 60 of file tablerecog.cpp.
const double tesseract::kMinFractionalLinesInColumn = 0.125 |
Definition at line 45 of file tabfind.cpp.
const double tesseract::kMinGoodTextPARatio = 1.5 |
Definition at line 60 of file ccnontextdetect.cpp.
const double tesseract::kMinGutterFraction = 0.5 |
Definition at line 47 of file tabvector.cpp.
const double tesseract::kMinGutterWidthGrid = 0.5 |
Definition at line 53 of file colfind.cpp.
const int tesseract::kMinImageFindSize = 100 |
Definition at line 48 of file imagefind.cpp.
const int tesseract::kMinLeaderCount = 5 |
Definition at line 67 of file colpartition.cpp.
const int tesseract::kMinLigature = 0xfb00 |
Definition at line 44 of file ligature_table.cpp.
const int tesseract::kMinLineLengthFraction = 4 |
Denominator of resolution makes min pixels to demand line lengths to be.
Definition at line 41 of file linefind.cpp.
const int tesseract::kMinLinesInColumn = 10 |
Definition at line 41 of file tabfind.cpp.
const double tesseract::kMinMaxGapInTextPartition = 0.5 |
Definition at line 73 of file tablefind.cpp.
const double tesseract::kMinMediumSizeRatio = 0.25 |
Definition at line 50 of file blobbox.cpp.
const int tesseract::kMinModeFactor = 12 |
Definition at line 1506 of file oldbasel.cpp.
const int tesseract::kMinModeFactorOcropus = 32 |
Definition at line 1505 of file oldbasel.cpp.
const double tesseract::kMinMusicPixelFraction = 0.75 |
Definition at line 60 of file linefind.cpp.
const double tesseract::kMinOverlapWithTable = 0.6 |
Definition at line 97 of file tablefind.cpp.
const double tesseract::kMinParagraphEndingTextToWhitespaceRatio = 3.0 |
Definition at line 132 of file tablefind.cpp.
const int tesseract::kMinPointsForErrorCount = 16 |
Definition at line 36 of file detlinefit.cpp.
const float tesseract::kMinProb = std::exp(kMinCertainty) |
Definition at line 32 of file networkio.cpp.
const double tesseract::kMinRaggedGutter = 1.5 |
Definition at line 53 of file tabvector.cpp.
const int tesseract::kMinRaggedTabs = 5 |
Definition at line 60 of file alignedblob.cpp.
const int tesseract::kMinRampSize = 1000 |
Definition at line 60 of file degradeimage.cpp.
const double tesseract::kMinRectangularFraction = 0.125 |
Definition at line 41 of file imagefind.cpp.
const int tesseract::kMinRectSize = 10 |
Minimum sensible image size to be worth running Tesseract.
Definition at line 107 of file baseapi.cpp.
const int tesseract::kMinRowsInTable = 3 |
Definition at line 112 of file tablefind.cpp.
const int tesseract::kMinSize = 8 |
Definition at line 408 of file makerow.cpp.
const int tesseract::kMinStallIterations = 10000 |
Definition at line 49 of file lstmtrainer.cpp.
const int tesseract::kMinStartedErrorRate = 75 |
Definition at line 62 of file lstmtrainer.cpp.
const int tesseract::kMinStrongTextValue = 6 |
Definition at line 69 of file colpartition.cpp.
const int tesseract::kMinSubscriptOffset = 20 |
Definition at line 39 of file ratngs.cpp.
const int tesseract::kMinSuperscriptOffset = 20 |
Definition at line 41 of file ratngs.cpp.
const double tesseract::kMinTabGradient = 4.0 |
Definition at line 68 of file alignedblob.cpp.
const int tesseract::kMinThickLineWidth = 12 |
Definition at line 47 of file linefind.cpp.
const long double tesseract::kMinVariance = 1.0L / 1024 |
Definition at line 29 of file quadlsq.cpp.
const int tesseract::kMinVerticalSearch = 3 |
Definition at line 37 of file tabfind.cpp.
const int tesseract::kMinWinSize = 500 |
Definition at line 51 of file network.cpp.
const double tesseract::kMinXHeightFraction = 0.25 |
Definition at line 57 of file unicharset.cpp.
const double tesseract::kMinXHeightMatch = 0.5 |
Definition at line 48 of file ratngs.cpp.
const char tesseract::kMixedText[] = "والفكر 123 والصراع abc" |
Definition at line 35 of file stringrenderer_test.cc.
const int tesseract::kMostlyOneDirRatio = 3 |
Definition at line 97 of file strokewidth.cpp.
const double tesseract::kNeighbourSearchFactor = 2.5 |
Definition at line 107 of file strokewidth.cpp.
const TextAndModel tesseract::kNewZealandIndex[] |
Definition at line 691 of file paragraphs_test.cc.
const double tesseract::kNoiseOverlapAreaFactor = 1.0 / 512 |
Definition at line 112 of file strokewidth.cpp.
const double tesseract::kNoiseOverlapGrowthFactor = 4.0 |
Definition at line 109 of file strokewidth.cpp.
const int tesseract::kNoisePadding = 4 |
Definition at line 51 of file ccnontextdetect.cpp.
const double tesseract::kNoiseSize = 0.5 |
Definition at line 407 of file makerow.cpp.
const float tesseract::kNonAmbiguousMargin = 1.0 |
Definition at line 49 of file osdetect.cpp.
const int tesseract::kNumAdjustmentIterations = 100 |
Definition at line 56 of file lstmtrainer.cpp.
const int tesseract::kNumbersPerBlob = 5 |
The 5 numbers output for each box (the usual 4 and a page number.)
Definition at line 1524 of file baseapi.cpp.
const int tesseract::kNumChars = 100 |
Definition at line 28 of file recodebeam_test.cc.
const int tesseract::kNumEndPoints = 3 |
Definition at line 30 of file detlinefit.cpp.
const int tesseract::kNumPagesPerBatch = 100 |
Definition at line 60 of file lstmtrainer.cpp.
const TextAndModel tesseract::kOldManAndSea[] |
Definition at line 607 of file paragraphs_test.cc.
const int tesseract::kOriginalNoiseMultiple = 8 |
Definition at line 47 of file ccnontextdetect.cpp.
const int tesseract::kPadding = 64 |
Definition at line 30 of file recodebeam_test.cc.
const double tesseract::kParagraphEndingPreviousLineRatio = 1.3 |
Definition at line 122 of file tablefind.cpp.
const double tesseract::kPhotoOffsetFraction = 0.375 |
Definition at line 54 of file ccnontextdetect.cpp.
|
constexpr |
Number of printers' points in an inch. The unit of the pointsize return.
Definition at line 31 of file publictypes.h.
const int tesseract::kPrime1 = 17 |
Definition at line 41 of file trainingsampleset.cpp.
const int tesseract::kPrime2 = 13 |
Definition at line 42 of file trainingsampleset.cpp.
const int tesseract::kRadicalRadix = 29 |
Definition at line 31 of file unicharcompress.cpp.
const double tesseract::kRaggedFraction = 2.5 |
Definition at line 48 of file alignedblob.cpp.
const double tesseract::kRaggedGapFraction = 1.0 |
Definition at line 52 of file alignedblob.cpp.
const int tesseract::kRaggedGutterMultiple = 5 |
Definition at line 51 of file tabfind.cpp.
const int tesseract::kRandomizingCenter = 128 |
Definition at line 36 of file trainingsample.cpp.
const double tesseract::kRatingEpsilon = 1.0 / 32 |
Definition at line 36 of file errorcounter.cpp.
const double tesseract::kRequiredColumns = 0.7 |
Definition at line 47 of file tablerecog.cpp.
|
constexpr |
Ratio between median blob size and likely resolution. Used to estimate resolution when none is provided. This is basically 1/usual text size in inches.
Definition at line 43 of file publictypes.h.
const char tesseract::kReverseIfHasRTL[] = "RRP_REVERSE_IF_HAS_RTL" |
const int tesseract::kRGBRMSColors = 4 |
Definition at line 36 of file colpartition.h.
const ParagraphJustification tesseract::kRight = JUSTIFICATION_RIGHT |
Definition at line 28 of file paragraphs_test.cc.
const TextAndModel tesseract::kRightAligned[] |
Definition at line 331 of file paragraphs_test.cc.
const float tesseract::kRotationRange = 0.02f |
Definition at line 54 of file degradeimage.cpp.
const int tesseract::kSaltnPepper = 5 |
Definition at line 58 of file degradeimage.cpp.
|
constexpr |
Definition at line 37 of file functions.h.
const float tesseract::kScriptAcceptRatio = 1.3 |
Definition at line 44 of file osdetect.cpp.
const int tesseract::kSeedBlobsCountTh = 10 |
Definition at line 82 of file equationdetect.cpp.
const int tesseract::kSideSpaceMargin = 10 |
Definition at line 102 of file tablefind.cpp.
const int tesseract::kSimilarRaggedDist = 50 |
Definition at line 43 of file tabvector.cpp.
const int tesseract::kSimilarVectorDist = 10 |
Definition at line 40 of file tabvector.cpp.
const TextAndModel tesseract::kSingleFullPageContinuation[] |
Definition at line 298 of file paragraphs_test.cc.
|
inline |
Definition at line 19040 of file universalambigs.h.
const float tesseract::kSizeRatioToReject = 2.0 |
Definition at line 41 of file osdetect.cpp.
const int tesseract::kSloppyTolerance = 4 |
Definition at line 35 of file normalis.cpp.
const double tesseract::kSmallTableProjectionThreshold = 0.35 |
Definition at line 106 of file tablefind.cpp.
const int tesseract::kSmoothDecisionMargin = 4 |
Definition at line 65 of file colpartitiongrid.cpp.
const double tesseract::kSplitPartitionSize = 2.0 |
Definition at line 44 of file tablefind.cpp.
const int tesseract::kSquareLimit = 25 |
Definition at line 39 of file trainingsampleset.cpp.
const double tesseract::kStageTransitionThreshold = 10.0 |
Definition at line 64 of file lstmtrainer.cpp.
const char* tesseract::kStrings8087_054[] = {"dat", "Dalmatian", "", "DAMAGED DURING", "margarine,", nullptr} |
Definition at line 50 of file layout_test.cc.
const double tesseract::kStrokeWidthCJK = 2.0 |
Definition at line 57 of file strokewidth.cpp.
const double tesseract::kStrokeWidthConstantTolerance = 2.0 |
Definition at line 141 of file tablefind.cpp.
const double tesseract::kStrokeWidthFractionalTolerance = 0.25 |
Definition at line 140 of file tablefind.cpp.
const double tesseract::kStrokeWidthFractionCJK = 0.25 |
Definition at line 56 of file strokewidth.cpp.
const double tesseract::kStrokeWidthFractionTolerance = 0.125 |
Allowed proportional change in stroke width to be the same font.
Definition at line 49 of file strokewidth.cpp.
const double tesseract::kStrokeWidthTolerance = 1.5 |
Allowed constant change in stroke width to be the same font. Really 1.5 pixels.
Definition at line 54 of file strokewidth.cpp.
const TextAndModel tesseract::kSubtleCrown[] |
Definition at line 455 of file paragraphs_test.cc.
const double tesseract::kSubTrainerMarginFraction = 3.0 / 128 |
Definition at line 52 of file lstmtrainer.cpp.
const int tesseract::kSvPort = 8461 |
Definition at line 45 of file scrollview.cpp.
const double tesseract::kTableColumnThreshold = 3.0 |
Definition at line 89 of file tablefind.cpp.
const TextAndModel tesseract::kTableOfContents[] |
Definition at line 552 of file paragraphs_test.cc.
|
constexpr |
Definition at line 35 of file functions.h.
const int tesseract::kTabRadiusFactor = 5 |
Definition at line 35 of file tabfind.cpp.
const int tesseract::kTargetXScale = 5 |
Definition at line 73 of file lstmtrainer.cpp.
const int tesseract::kTargetYScale = 100 |
Definition at line 74 of file lstmtrainer.cpp.
const char tesseract::kTesseractReject = '~' |
Character returned when Tesseract couldn't recognize as anything.
Definition at line 109 of file baseapi.cpp.
const int tesseract::kTestChar = -1 |
Definition at line 37 of file trainingsampleset.cpp.
const int tesseract::kTestData[] = {2, 0, 12, 1, 1, 2, 10, 1, 0, 0, 0, 2, 0, 4, 1, 1} |
Definition at line 19 of file stats_test.cc.
const TextAndModel tesseract::kTextWithSourceCode[] |
Definition at line 572 of file paragraphs_test.cc.
const double tesseract::kThickLengthMultiple = 0.75 |
Definition at line 54 of file linefind.cpp.
const int tesseract::kThinLineFraction = 20 |
Denominator of resolution makes max pixel width to allow thin lines.
Definition at line 39 of file linefind.cpp.
const double tesseract::kTinyEnoughTextlineOverlapFraction = 0.25 |
Definition at line 49 of file colpartitiongrid.cpp.
const TextAndModel tesseract::kTinyParagraphs[] |
Definition at line 346 of file paragraphs_test.cc.
const int tesseract::kTrainerIterations = 600 |
Definition at line 34 of file lstm_test.h.
const char* tesseract::kTruthTextLine = "Tosimpleburnrunningofgoodslately.\n" |
Definition at line 24 of file applybox_test.cc.
const char* tesseract::kTruthTextWords = "To simple burn running of goods lately.\n" |
Definition at line 23 of file applybox_test.cc.
const TextAndModel tesseract::kTwoSimpleParagraphs[] |
Definition at line 231 of file paragraphs_test.cc.
const float tesseract::kUnclearDensityTh = 0.25 |
Definition at line 81 of file equationdetect.cpp.
const int tesseract::kUniChs[] = {0x20ac, 0x201c, 0x201d, 0x2018, 0x2019, 0x2022, 0x2014, 0} |
Conversion table for non-latin characters. Maps characters out of the latin set into the latin set. TODO(rays) incorporate this translation into unicharset.
Definition at line 1592 of file baseapi.cpp.
|
inline |
Definition at line 27 of file universalambigs.h.
const ParagraphJustification tesseract::kUnknown = JUSTIFICATION_UNKNOWN |
Definition at line 29 of file paragraphs_test.cc.
const char tesseract::kUNLVReject = '~' |
Character used by UNLV error counter as a reject.
Definition at line 111 of file baseapi.cpp.
const TextAndModel tesseract::kUnlvRep3AO[] |
Definition at line 474 of file paragraphs_test.cc.
const char tesseract::kUNLVSuspect = '^' |
Character used by UNLV as a suspect marker.
Definition at line 113 of file baseapi.cpp.
const double tesseract::kVerticalSpacing = -0.2 |
Definition at line 37 of file tablerecog.cpp.
const char* tesseract::kVi2nds[] = {"V", "a", "v", "", "l", "o", "", nullptr} |
Definition at line 55 of file recodebeam_test.cc.
const float tesseract::kVi2ndScores[] = {0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01} |
Definition at line 56 of file recodebeam_test.cc.
Definition at line 53 of file recodebeam_test.cc.
const float tesseract::kViTopScores[] = {0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.97} |
Definition at line 54 of file recodebeam_test.cc.
const int tesseract::kVLineAlignment = 3 |
Definition at line 54 of file alignedblob.cpp.
const int tesseract::kVLineGutter = 1 |
Definition at line 56 of file alignedblob.cpp.
const int tesseract::kVLineMinLength = 300 |
Definition at line 64 of file alignedblob.cpp.
const int tesseract::kVLineSearchSize = 150 |
Definition at line 58 of file alignedblob.cpp.
const double tesseract::kWidthErrorWeighting = 0.125 |
Weight of width variance against height and vertical position.
Definition at line 76 of file normmatch.cpp.
const int tesseract::kWordrecMaxNumJoinChunks = 4 |
Definition at line 55 of file pageres.cpp.
const float tesseract::kWorstDictCertainty = -25.0f |
Definition at line 35 of file linerec.cpp.
const int tesseract::kXWinFrameSize = 30 |
Definition at line 54 of file network.cpp.
const int tesseract::kYWinFrameSize = 80 |
Definition at line 55 of file network.cpp.
const char* tesseract::kZH2nds[] = {"学", "储", "投", "生", "学", "生", "实", nullptr} |
Definition at line 50 of file recodebeam_test.cc.
const float tesseract::kZH2ndScores[] = {0.01, 0.01, 0.01, 0.01, 0.01, 0.01, 0.01} |
Definition at line 51 of file recodebeam_test.cc.
const char* tesseract::kZHTops[] = {"实", "学", "储", "啬", "投", "学", "生", nullptr} |
Definition at line 48 of file recodebeam_test.cc.
const float tesseract::kZHTopScores[] = {0.98, 0.98, 0.98, 0.98, 0.98, 0.98, 0.98} |
Definition at line 49 of file recodebeam_test.cc.
int tesseract::log_level = INT_MAX |
"Logging level"
Definition at line 36 of file tprintf.cpp.
const TFloat tesseract::LogisticTable |
Definition at line 4102 of file functions.cpp.
const float tesseract::MF_SCALE_FACTOR = 0.5f / kBlnXHeight |
Definition at line 61 of file mfoutline.h.
|
extern |
EndParamDesc tesseract::of |
Definition at line 78 of file featdefs.cpp.
|
extern |
const int tesseract::par1 = 4500 / (approx_dist * approx_dist) |
Definition at line 43 of file polyaprx.cpp.
const int tesseract::par2 = 6750 / (approx_dist * approx_dist) |
Definition at line 44 of file polyaprx.cpp.
|
extern |
|
extern |
double tesseract::pitsync_joined_edge = 0.75 |
"Dist inside big blob for chopping"
Definition at line 27 of file pitsync1.cpp.
int tesseract::pitsync_linear_version = 6 |
"Use new fast algorithm"
Definition at line 26 of file pitsync1.cpp.
double tesseract::pitsync_offset_freecut_fraction = 0.25 |
"Fraction of cut for free cuts"
Definition at line 28 of file pitsync1.cpp.
const char* const tesseract::RTLReversePolicyNames[] = {kDoNotReverse, kReverseIfHasRTL, kForceReverse} |
const TFloat tesseract::TanhTable |
Definition at line 4 of file functions.cpp.
int tesseract::test_data = {8, 1, 2, -4, 7, 9, 65536, 4, 9, 0} |
Definition at line 23 of file heap_test.cc.
double tesseract::textord_ascheight_mode_fraction = 0.08 |
"Min pile height to make ascheight"
Definition at line 87 of file makerow.cpp.
double tesseract::textord_ascx_ratio_max = 1.8 |
"Max cap/xheight"
Definition at line 90 of file makerow.cpp.
double tesseract::textord_ascx_ratio_min = 1.25 |
"Min cap/xheight"
Definition at line 89 of file makerow.cpp.
double tesseract::textord_balance_factor = 1.0 |
"Ding rate for unbalanced char cells"
Definition at line 50 of file topitch.cpp.
bool tesseract::textord_blockndoc_fixed = false |
"Attempt whole doc/block fixed pitch"
Definition at line 48 of file topitch.cpp.
bool tesseract::textord_blocksall_fixed = false |
"Moan about prop blocks"
Definition at line 26 of file tovars.cpp.
bool tesseract::textord_blocksall_prop = false |
"Moan about fixed pitch blocks"
Definition at line 27 of file tovars.cpp.
double tesseract::textord_chop_width = 1.5 |
"Max width before chopping"
Definition at line 76 of file makerow.cpp.
bool tesseract::textord_chopper_test = false |
"Chopper is being tested."
Definition at line 42 of file wordseg.cpp.
bool tesseract::textord_debug_blob = false |
"Print test blob information"
Definition at line 96 of file makerow.cpp.
int tesseract::textord_debug_block = 0 |
"Block to do debug on"
Definition at line 29 of file tovars.cpp.
int tesseract::textord_debug_bugs = 0 |
"Turn on output related to bugs in tab finding"
Definition at line 30 of file alignedblob.cpp.
bool tesseract::textord_debug_pitch_metric = false |
"Write full metric stuff"
Definition at line 45 of file topitch.cpp.
bool tesseract::textord_debug_pitch_test = false |
"Debug on fixed pitch test"
Definition at line 42 of file topitch.cpp.
bool tesseract::textord_debug_printable = false |
"Make debug windows printable"
Definition at line 43 of file alignedblob.cpp.
int tesseract::textord_debug_tabfind = 0 |
"Debug tab finding"
Definition at line 29 of file alignedblob.cpp.
bool tesseract::textord_debug_xheights = false |
"Test xheight algorithms"
Definition at line 59 of file makerow.cpp.
double tesseract::textord_descx_ratio_max = 0.6 |
"Max desc/xheight"
Definition at line 92 of file makerow.cpp.
double tesseract::textord_descx_ratio_min = 0.25 |
"Min desc/xheight"
Definition at line 91 of file makerow.cpp.
int tesseract::textord_dotmatrix_gap = 3 |
"Max pixel gap for broken pixed pitch"
Definition at line 28 of file tovars.cpp.
double tesseract::textord_excess_blobsize = 1.3 |
"New row made if blob makes row this big"
Definition at line 81 of file makerow.cpp.
bool tesseract::textord_fast_pitch_test = false |
"Do even faster pitch algorithm"
Definition at line 44 of file topitch.cpp.
bool tesseract::textord_fix_makerow_bug = true |
"Prevent multiple baselines"
Definition at line 58 of file makerow.cpp.
bool tesseract::textord_fix_xheight_bug = true |
"Use spline baseline"
Definition at line 57 of file makerow.cpp.
bool tesseract::textord_force_make_prop_words = false |
"Force proportional word segmentation on all rows"
Definition at line 41 of file wordseg.cpp.
int tesseract::textord_fp_chop_error = 2 |
"Max allowed bending of chop cells"
Definition at line 34 of file fpchop.cpp.
double tesseract::textord_fpiqr_ratio = 1.5 |
"Pitch IQR/Gap IQR threshold"
Definition at line 53 of file tovars.cpp.
bool tesseract::textord_heavy_nr = false |
"Vigorously remove noise"
Definition at line 46 of file makerow.cpp.
double tesseract::textord_linespace_iqrlimit = 0.2 |
"Max iqr/median for linespace"
Definition at line 74 of file makerow.cpp.
int tesseract::textord_lms_line_trials = 12 |
"Number of linew fits to do"
Definition at line 94 of file makerow.cpp.
double tesseract::textord_max_pitch_iqr = 0.20 |
"Xh fraction noise in pitch"
Definition at line 54 of file tovars.cpp.
double tesseract::textord_min_blob_height_fraction = 0.75 |
"Min blob height/top to include blob top into xheight stats"
Definition at line 85 of file makerow.cpp.
int tesseract::textord_min_blobs_in_row = 4 |
"Min blobs before gradient counted"
Definition at line 66 of file makerow.cpp.
double tesseract::textord_min_linesize = 1.25 |
"* blob height for initial linesize"
Definition at line 80 of file makerow.cpp.
int tesseract::textord_min_xheight = 10 |
"Min credible pixel xheight"
Definition at line 70 of file makerow.cpp.
double tesseract::textord_minxh = 0.25 |
"fraction of linesize for min xheight"
Definition at line 79 of file makerow.cpp.
bool tesseract::textord_new_initial_xheight = true |
"Use test xheight mechanism"
Definition at line 95 of file makerow.cpp.
double tesseract::textord_occupancy_threshold = 0.4 |
"Fraction of neighbourhood"
Definition at line 82 of file makerow.cpp.
bool tesseract::textord_old_baselines = true |
"Use old baseline algorithm"
Definition at line 55 of file makerow.cpp.
bool tesseract::textord_old_xheight = false |
"Use old xheight algorithm"
Definition at line 56 of file makerow.cpp.
bool tesseract::textord_oldbl_debug = false |
"Debug old baseline generation"
Definition at line 43 of file oldbasel.cpp.
bool tesseract::textord_parallel_baselines = true |
"Force parallel baselines"
Definition at line 53 of file makerow.cpp.
int tesseract::textord_pitch_range = 2 |
"Max range test on pitch"
Definition at line 30 of file tovars.cpp.
double tesseract::textord_pitch_rowsimilarity = 0.08 |
"Fraction of xheight for sameness"
Definition at line 44 of file tovars.cpp.
bool tesseract::textord_pitch_scalebigwords = false |
"Scale scores on big words"
Definition at line 45 of file tovars.cpp.
double tesseract::textord_projection_scale = 0.200 |
"Ding rate for mid-cuts"
Definition at line 49 of file topitch.cpp.
bool tesseract::textord_restore_underlines = true |
"Chop underlines & put back"
Definition at line 24 of file underlin.cpp.
bool tesseract::textord_show_expanded_rows = false |
"Display rows after expanding"
Definition at line 49 of file makerow.cpp.
bool tesseract::textord_show_final_blobs = false |
"Display blob bounds after pre-ass"
Definition at line 51 of file makerow.cpp.
bool tesseract::textord_show_final_rows = false |
"Display rows after final fitting"
Definition at line 50 of file makerow.cpp.
bool tesseract::textord_show_fixed_cuts = false |
"Draw fixed pitch cell boundaries"
Definition at line 35 of file drawtord.cpp.
bool tesseract::textord_show_initial_rows = false |
"Display row accumulation"
Definition at line 47 of file makerow.cpp.
bool tesseract::textord_show_initial_words = false |
"Display separate words"
Definition at line 25 of file tovars.cpp.
bool tesseract::textord_show_page_cuts = false |
"Draw page-level cuts"
Definition at line 47 of file topitch.cpp.
bool tesseract::textord_show_parallel_rows = false |
"Display page correlated rows"
Definition at line 48 of file makerow.cpp.
bool tesseract::textord_show_row_cuts = false |
"Draw row-level cuts"
Definition at line 46 of file topitch.cpp.
double tesseract::textord_skew_ile = 0.5 |
"Ile of gradients for page skew"
Definition at line 72 of file makerow.cpp.
double tesseract::textord_skew_lag = 0.02 |
"Lag for skew on row accumulation"
Definition at line 73 of file makerow.cpp.
double tesseract::textord_spacesize_ratioprop = 2.0 |
"Min ratio space/nonspace"
Definition at line 52 of file tovars.cpp.
int tesseract::textord_spline_medianwin = 6 |
"Size of window for spline segmentation"
Definition at line 68 of file makerow.cpp.
int tesseract::textord_spline_minblobs = 8 |
"Min blobs in each spline segment"
Definition at line 67 of file makerow.cpp.
double tesseract::textord_spline_shift_fraction = 0.02 |
"Fraction of line spacing for quad"
Definition at line 71 of file makerow.cpp.
bool tesseract::textord_straight_baselines = false |
"Force straight baselines"
Definition at line 54 of file makerow.cpp.
double tesseract::textord_tabvector_vertical_box_ratio = 0.5 |
"Fraction of box matches required to declare a line vertical"
Definition at line 60 of file tabvector.cpp.
double tesseract::textord_tabvector_vertical_gap_fraction = 0.5 |
"max fraction of mean blob width allowed for vertical gaps in " "vertical text"
Definition at line 57 of file tabvector.cpp.
bool tesseract::textord_test_landscape = false |
"Tests refer to land/port"
Definition at line 52 of file makerow.cpp.
int tesseract::textord_test_x = -INT32_MAX |
"coord of test pt"
Definition at line 64 of file makerow.cpp.
int tesseract::textord_test_y = -INT32_MAX |
"coord of test pt"
Definition at line 65 of file makerow.cpp.
double tesseract::textord_underline_offset = 0.1 |
"Fraction of x to ignore"
Definition at line 23 of file underlin.cpp.
double tesseract::textord_underline_threshold = 0.5 |
"Fraction of width occupied"
Definition at line 32 of file blkocc.cpp.
double tesseract::textord_underline_width = 2.0 |
"Multiple of line_size for underline"
Definition at line 83 of file makerow.cpp.
double tesseract::textord_width_limit = 8 |
"Max width of blobs to make rows"
Definition at line 75 of file makerow.cpp.
double tesseract::textord_words_def_fixed = 0.016 |
"Threshold for definite fixed"
Definition at line 41 of file tovars.cpp.
double tesseract::textord_words_def_prop = 0.090 |
"Threshold for definite prop"
Definition at line 42 of file tovars.cpp.
double tesseract::textord_words_default_maxspace = 3.5 |
"Max believable third space"
Definition at line 33 of file tovars.cpp.
double tesseract::textord_words_default_minspace = 0.6 |
"Fraction of xheight"
Definition at line 34 of file tovars.cpp.
double tesseract::textord_words_default_nonspace = 0.2 |
"Fraction of xheight"
Definition at line 36 of file tovars.cpp.
double tesseract::textord_words_definite_spread = 0.30 |
"Non-fuzzy spacing region"
Definition at line 51 of file tovars.cpp.
double tesseract::textord_words_initial_lower = 0.25 |
"Max initial cluster size"
Definition at line 37 of file tovars.cpp.
double tesseract::textord_words_initial_upper = 0.15 |
"Min initial cluster spacing"
Definition at line 38 of file tovars.cpp.
double tesseract::textord_words_maxspace = 4.0 |
"Multiple of xheight"
Definition at line 32 of file tovars.cpp.
double tesseract::textord_words_min_minspace = 0.3 |
"Fraction of xheight"
Definition at line 35 of file tovars.cpp.
double tesseract::textord_words_minlarge = 0.75 |
"Fraction of valid gaps needed"
Definition at line 39 of file tovars.cpp.
double tesseract::textord_words_pitchsd_threshold = 0.040 |
"Pitch sync threshold"
Definition at line 40 of file tovars.cpp.
int tesseract::textord_words_veto_power = 5 |
"Rows required to outvote a veto"
Definition at line 43 of file tovars.cpp.
double tesseract::textord_wordstats_smooth_factor = 0.05 |
"Smoothing gap stats"
Definition at line 31 of file tovars.cpp.
double tesseract::textord_xheight_error_margin = 0.1 |
"Accepted variation"
Definition at line 93 of file makerow.cpp.
double tesseract::textord_xheight_mode_fraction = 0.4 |
"Min pile height to make xheight"
Definition at line 86 of file makerow.cpp.
|
extern |
ScrollView * tesseract::to_win = nullptr |
Definition at line 37 of file drawtord.cpp.
bool tesseract::wordrec_blob_pause = 0 |
"Blob pause"
Definition at line 43 of file render.cpp.
bool tesseract::wordrec_display_all_blobs = 0 |
"Display Blobs"
Definition at line 41 of file render.cpp.
bool tesseract::wordrec_display_splits = 0 |
double tesseract::words_default_fixed_limit = 0.6 |
"Allowed size variance"
Definition at line 50 of file tovars.cpp.
double tesseract::words_default_fixed_space = 0.75 |
"Fraction of xheight"
Definition at line 49 of file tovars.cpp.
double tesseract::words_default_prop_nonspace = 0.25 |
"Fraction of xheight"
Definition at line 48 of file tovars.cpp.
double tesseract::words_initial_lower = 0.5 |
"Max initial cluster size"
Definition at line 46 of file tovars.cpp.
double tesseract::words_initial_upper = 0.15 |
"Min initial cluster spacing"
Definition at line 47 of file tovars.cpp.