| tesseract
    4.0.0-1-g2a2b
    | 
#include <equationdetect.h>
 
  
 | Public Types | |
| enum | IndentType { NO_INDENT, LEFT_INDENT, RIGHT_INDENT, BOTH_INDENT, INDENT_TYPE_COUNT } | 
| Public Member Functions | |
| EquationDetect (const char *equ_datapath, const char *equ_language) | |
| ~EquationDetect () | |
| void | SetLangTesseract (Tesseract *lang_tesseract) | 
| int | LabelSpecialText (TO_BLOCK *to_block) | 
| int | FindEquationParts (ColPartitionGrid *part_grid, ColPartitionSet **best_columns) | 
| void | SetResolution (const int resolution) | 
|  Public Member Functions inherited from tesseract::EquationDetectBase | |
| EquationDetectBase ()=default | |
| virtual | ~EquationDetectBase () | 
| Protected Member Functions | |
| void | IdentifySpecialText (BLOBNBOX *blob, const int height_th) | 
| BlobSpecialTextType | EstimateTypeForUnichar (const UNICHARSET &unicharset, const UNICHAR_ID id) const | 
| void | IdentifySpecialText () | 
| void | IdentifyBlobsToSkip (ColPartition *part) | 
| void | MergePartsByLocation () | 
| void | SearchByOverlap (ColPartition *seed, GenericVector< ColPartition *> *parts_overlap) | 
| void | InsertPartAfterAbsorb (ColPartition *part) | 
| void | IdentifySeedParts () | 
| bool | CheckSeedBlobsCount (ColPartition *part) | 
| float | ComputeForegroundDensity (const TBOX &tbox) | 
| bool | CheckForSeed2 (const GenericVector< int > &indented_texts_left, const float foreground_density_th, ColPartition *part) | 
| int | CountAlignment (const GenericVector< int > &sorted_vec, const int val) const | 
| bool | CheckSeedFgDensity (const float density_th, ColPartition *part) | 
| void | SplitCPHorLite (ColPartition *part, GenericVector< TBOX > *splitted_boxes) | 
| void | SplitCPHor (ColPartition *part, GenericVector< ColPartition *> *parts_splitted) | 
| bool | CheckSeedDensity (const float math_density_high, const float math_density_low, const ColPartition *part) const | 
| IndentType | IsIndented (ColPartition *part) | 
| void | IdentifyInlineParts () | 
| void | ComputeCPsSuperBBox () | 
| void | IdentifyInlinePartsHorizontal () | 
| int | EstimateTextPartLineSpacing () | 
| void | IdentifyInlinePartsVertical (const bool top_to_bottom, const int textPartsLineSpacing) | 
| bool | IsInline (const bool search_bottom, const int textPartsLineSpacing, ColPartition *part) | 
| bool | ExpandSeed (ColPartition *seed) | 
| void | ExpandSeedHorizontal (const bool search_left, ColPartition *seed, GenericVector< ColPartition *> *parts_to_merge) | 
| void | ExpandSeedVertical (const bool search_bottom, ColPartition *seed, GenericVector< ColPartition *> *parts_to_merge) | 
| bool | IsNearSmallNeighbor (const TBOX &seed_box, const TBOX &part_box) const | 
| bool | CheckSeedNeighborDensity (const ColPartition *part) const | 
| void | ProcessMathBlockSatelliteParts () | 
| bool | IsMathBlockSatellite (ColPartition *part, GenericVector< ColPartition *> *math_blocks) | 
| ColPartition * | SearchNNVertical (const bool search_bottom, const ColPartition *part) | 
| bool | IsNearMathNeighbor (const int y_gap, const ColPartition *neighbor) const | 
| void | GetOutputTiffName (const char *name, STRING *image_name) const | 
| void | PaintColParts (const STRING &outfile) const | 
| void | PaintSpecialTexts (const STRING &outfile) const | 
| void | PrintSpecialBlobsDensity (const ColPartition *part) const | 
| Protected Attributes | |
| Tesseract | equ_tesseract_ | 
| Tesseract * | lang_tesseract_ | 
| ColPartitionGrid * | part_grid_ | 
| ColPartitionSet ** | best_columns_ | 
| TBOX * | cps_super_bbox_ | 
| GenericVector< ColPartition * > | cp_seeds_ | 
| int | resolution_ | 
| int | page_count_ | 
| Additional Inherited Members | |
|  Static Public Member Functions inherited from tesseract::EquationDetectBase | |
| static void | RenderSpecialText (Pix *pix, BLOBNBOX *blob) | 
Definition at line 39 of file equationdetect.h.
| Enumerator | |
|---|---|
| NO_INDENT | |
| LEFT_INDENT | |
| RIGHT_INDENT | |
| BOTH_INDENT | |
| INDENT_TYPE_COUNT | |
Definition at line 45 of file equationdetect.h.
| tesseract::EquationDetect::EquationDetect | ( | const char * | equ_datapath, | 
| const char * | equ_language | ||
| ) | 
Definition at line 103 of file equationdetect.cpp.
| tesseract::EquationDetect::~EquationDetect | ( | ) | 
Definition at line 122 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 738 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 984 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1002 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 626 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1293 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 792 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 612 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 760 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 868 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 225 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1085 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1128 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1184 of file equationdetect.cpp.
| 
 | virtual | 
Implements tesseract::EquationDetectBase.
Definition at line 359 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1457 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 311 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 784 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 803 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 908 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 540 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 152 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 259 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 513 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1021 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 937 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1359 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1448 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1271 of file equationdetect.cpp.
| 
 | virtual | 
Implements tesseract::EquationDetectBase.
Definition at line 132 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 425 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1482 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1465 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1505 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1310 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 464 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 1413 of file equationdetect.cpp.
| void tesseract::EquationDetect::SetLangTesseract | ( | Tesseract * | lang_tesseract | ) | 
Definition at line 124 of file equationdetect.cpp.
| void tesseract::EquationDetect::SetResolution | ( | const int | resolution | ) | 
Definition at line 128 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 648 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 698 of file equationdetect.cpp.
| 
 | protected | 
Definition at line 257 of file equationdetect.h.
| 
 | protected | 
Definition at line 263 of file equationdetect.h.
| 
 | protected | 
Definition at line 260 of file equationdetect.h.
| 
 | protected | 
Definition at line 244 of file equationdetect.h.
| 
 | protected | 
Definition at line 248 of file equationdetect.h.
| 
 | protected | 
Definition at line 269 of file equationdetect.h.
| 
 | protected | 
Definition at line 252 of file equationdetect.h.
| 
 | protected | 
Definition at line 266 of file equationdetect.h.