|
tesseract v5.3.3.20231005
|
#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 () override | |
| void | SetLangTesseract (Tesseract *lang_tesseract) |
| int | LabelSpecialText (TO_BLOCK *to_block) override |
| int | FindEquationParts (ColPartitionGrid *part_grid, ColPartitionSet **best_columns) override |
| void | SetResolution (const int resolution) |
Public Member Functions inherited from tesseract::EquationDetectBase | |
| EquationDetectBase ()=default | |
| virtual | ~EquationDetectBase () |
| virtual int | LabelSpecialText (TO_BLOCK *to_block)=0 |
| virtual int | FindEquationParts (ColPartitionGrid *part_grid, ColPartitionSet **best_columns)=0 |
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, std::vector< ColPartition * > *parts_overlap) |
| void | InsertPartAfterAbsorb (ColPartition *part) |
| void | IdentifySeedParts () |
| bool | CheckSeedBlobsCount (ColPartition *part) |
| float | ComputeForegroundDensity (const TBOX &tbox) |
| bool | CheckForSeed2 (const std::vector< int > &indented_texts_left, const float foreground_density_th, ColPartition *part) |
| int | CountAlignment (const std::vector< int > &sorted_vec, const int val) const |
| bool | CheckSeedFgDensity (const float density_th, ColPartition *part) |
| void | SplitCPHorLite (ColPartition *part, std::vector< TBOX > *splitted_boxes) |
| void | SplitCPHor (ColPartition *part, std::vector< 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, std::vector< ColPartition * > *parts_to_merge) |
| void | ExpandSeedVertical (const bool search_bottom, ColPartition *seed, std::vector< 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, std::vector< 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, std::string &image_name) const |
| void | PaintColParts (const std::string &outfile) const |
| void | PaintSpecialTexts (const std::string &outfile) const |
| void | PrintSpecialBlobsDensity (const ColPartition *part) const |
Protected Attributes | |
| Tesseract | equ_tesseract_ |
| Tesseract * | lang_tesseract_ |
| ColPartitionGrid * | part_grid_ = nullptr |
| ColPartitionSet ** | best_columns_ = nullptr |
| TBOX * | cps_super_bbox_ |
| std::vector< ColPartition * > | cp_seeds_ |
| int | resolution_ |
| int | page_count_ |
Additional Inherited Members | |
Static Public Member Functions inherited from tesseract::EquationDetectBase | |
| static void | RenderSpecialText (Image pix, BLOBNBOX *blob) |
Definition at line 37 of file equationdetect.h.
| Enumerator | |
|---|---|
| NO_INDENT | |
| LEFT_INDENT | |
| RIGHT_INDENT | |
| BOTH_INDENT | |
| INDENT_TYPE_COUNT | |
Definition at line 42 of file equationdetect.h.
| tesseract::EquationDetect::EquationDetect | ( | const char * | equ_datapath, |
| const char * | equ_language | ||
| ) |
Definition at line 98 of file equationdetect.cpp.
|
override |
Definition at line 117 of file equationdetect.cpp.
|
protected |
Definition at line 708 of file equationdetect.cpp.
|
protected |
Definition at line 942 of file equationdetect.cpp.
|
protected |
Definition at line 959 of file equationdetect.cpp.
|
protected |
Definition at line 599 of file equationdetect.cpp.
|
protected |
Definition at line 1231 of file equationdetect.cpp.
|
protected |
Definition at line 761 of file equationdetect.cpp.
|
protected |
Definition at line 586 of file equationdetect.cpp.
|
protected |
Definition at line 727 of file equationdetect.cpp.
|
protected |
Definition at line 829 of file equationdetect.cpp.
|
protected |
Definition at line 218 of file equationdetect.cpp.
|
protected |
Definition at line 1038 of file equationdetect.cpp.
|
protected |
Definition at line 1080 of file equationdetect.cpp.
|
protected |
Definition at line 1132 of file equationdetect.cpp.
|
overridevirtual |
Implements tesseract::EquationDetectBase.
Definition at line 343 of file equationdetect.cpp.
|
protected |
Definition at line 1391 of file equationdetect.cpp.
|
protected |
Definition at line 297 of file equationdetect.cpp.
|
protected |
Definition at line 753 of file equationdetect.cpp.
|
protected |
Definition at line 772 of file equationdetect.cpp.
|
protected |
Definition at line 869 of file equationdetect.cpp.
|
protected |
Definition at line 518 of file equationdetect.cpp.
|
protected |
Definition at line 250 of file equationdetect.cpp.
|
protected |
Definition at line 148 of file equationdetect.cpp.
|
protected |
Definition at line 492 of file equationdetect.cpp.
|
protected |
Definition at line 976 of file equationdetect.cpp.
|
protected |
Definition at line 897 of file equationdetect.cpp.
|
protected |
Definition at line 1295 of file equationdetect.cpp.
|
protected |
Definition at line 1383 of file equationdetect.cpp.
|
protected |
Definition at line 1213 of file equationdetect.cpp.
|
overridevirtual |
Implements tesseract::EquationDetectBase.
Definition at line 129 of file equationdetect.cpp.
|
protected |
Definition at line 408 of file equationdetect.cpp.
|
protected |
Definition at line 1415 of file equationdetect.cpp.
|
protected |
Definition at line 1398 of file equationdetect.cpp.
|
protected |
Definition at line 1437 of file equationdetect.cpp.
|
protected |
Definition at line 1248 of file equationdetect.cpp.
|
protected |
Definition at line 447 of file equationdetect.cpp.
|
protected |
Definition at line 1349 of file equationdetect.cpp.
| void tesseract::EquationDetect::SetLangTesseract | ( | Tesseract * | lang_tesseract | ) |
Definition at line 121 of file equationdetect.cpp.
| void tesseract::EquationDetect::SetResolution | ( | const int | resolution | ) |
Definition at line 125 of file equationdetect.cpp.
|
protected |
Definition at line 620 of file equationdetect.cpp.
|
protected |
Definition at line 670 of file equationdetect.cpp.
|
protected |
Definition at line 233 of file equationdetect.h.
|
protected |
Definition at line 239 of file equationdetect.h.
|
protected |
Definition at line 236 of file equationdetect.h.
|
protected |
Definition at line 220 of file equationdetect.h.
|
protected |
Definition at line 224 of file equationdetect.h.
|
protected |
Definition at line 245 of file equationdetect.h.
|
protected |
Definition at line 228 of file equationdetect.h.
|
protected |
Definition at line 242 of file equationdetect.h.