#include <equationdetectbase.h>
Definition at line 32 of file equationdetectbase.h.
◆ EquationDetectBase()
tesseract::EquationDetectBase::EquationDetectBase |
( |
| ) |
|
|
default |
◆ ~EquationDetectBase()
tesseract::EquationDetectBase::~EquationDetectBase |
( |
| ) |
|
|
virtualdefault |
◆ FindEquationParts()
◆ LabelSpecialText()
virtual int tesseract::EquationDetectBase::LabelSpecialText |
( |
TO_BLOCK * |
to_block | ) |
|
|
pure virtual |
◆ RenderSpecialText()
void tesseract::EquationDetectBase::RenderSpecialText |
( |
Pix * |
pix, |
|
|
BLOBNBOX * |
blob |
|
) |
| |
|
static |
Definition at line 31 of file equationdetectbase.cpp.
33 ASSERT_HOST(pix !=
nullptr && pixGetDepth(pix) == 32 && blob !=
nullptr);
35 int height = pixGetHeight(pix);
36 const int box_width = 5;
40 Box *box = boxCreate(tbox.
left(), height - tbox.
top(),
44 pixRenderBoxArb(pix, box, box_width, 255, 0, 0);
47 pixRenderBoxArb(pix, box, box_width, 0, 255, 255);
50 pixRenderBoxArb(pix, box, box_width, 0, 255, 0);
53 pixRenderBoxArb(pix, box, box_width, 0, 255, 0);
58 pixRenderBoxArb(pix, box, box_width, 255, 255, 0);
BlobSpecialTextType special_text_type() const
const TBOX & bounding_box() const
The documentation for this class was generated from the following files: