#include "bits16.h"
#include "elst2.h"
#include "params.h"
#include "stepblob.h"
#include <tesseract/strngs.h>
#include "ocrrow.h"
Go to the source code of this file.
|
enum | WERD_FLAGS {
W_SEGMENTED,
W_ITALIC,
W_BOLD,
W_BOL,
W_EOL,
W_NORMALIZED,
W_SCRIPT_HAS_XHEIGHT,
W_SCRIPT_IS_LATIN,
W_DONT_CHOP,
W_REP_CHAR,
W_FUZZY_SP,
W_FUZZY_NON,
W_INVERSE
} |
|
enum | DISPLAY_FLAGS {
DF_BOX,
DF_TEXT,
DF_POLYGONAL,
DF_EDGE_STEP,
DF_BN_POLYGONAL,
DF_BLAMER
} |
|
◆ DISPLAY_FLAGS
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 43 of file werd.h.
◆ WERD_FLAGS
Enumerator |
---|
W_SEGMENTED | correctly segmented
|
W_ITALIC | italic text
|
W_BOLD | bold text
|
W_BOL | start of line
|
W_EOL | end of line
|
W_NORMALIZED | flags
|
W_SCRIPT_HAS_XHEIGHT | x-height concept makes sense.
|
W_SCRIPT_IS_LATIN | Special case latin for y. splitting.
|
W_DONT_CHOP | fixed pitch chopped
|
W_REP_CHAR | repeated character
|
W_FUZZY_SP | fuzzy space
|
W_FUZZY_NON | fuzzy nonspace
|
W_INVERSE | white on black
|
Definition at line 27 of file werd.h.
◆ word_comparator()
int word_comparator |
( |
const void * |
word1p, |
|
|
const void * |
word2p |
|
) |
| |
word_comparator()
word comparator used to sort a word list so that words are in increasing order of left edge.
Definition at line 369 of file werd.cpp.
371 const WERD* word1 = *reinterpret_cast<const WERD* const*>(word1p);
372 const WERD* word2 = *reinterpret_cast<const WERD* const*>(word2p);