tesseract
4.0.0-1-g2a2b
|
Go to the source code of this file.
Namespaces | |
tesseract | |
Functions | |
bool | PTIsLineType (PolyBlockType type) |
bool | PTIsImageType (PolyBlockType type) |
bool | PTIsTextType (PolyBlockType type) |
bool | PTIsPulloutType (PolyBlockType type) |
bool | tesseract::PSM_OSD_ENABLED (int pageseg_mode) |
bool | tesseract::PSM_ORIENTATION_ENABLED (int pageseg_mode) |
bool | tesseract::PSM_COL_FIND_ENABLED (int pageseg_mode) |
bool | tesseract::PSM_SPARSE (int pageseg_mode) |
bool | tesseract::PSM_BLOCK_FIND_ENABLED (int pageseg_mode) |
bool | tesseract::PSM_LINE_FIND_ENABLED (int pageseg_mode) |
bool | tesseract::PSM_WORD_FIND_ENABLED (int pageseg_mode) |
Variables | |
constexpr int | kPointsPerInch = 72 |
constexpr int | kMinCredibleResolution = 70 |
constexpr int | kMaxCredibleResolution = 2400 |
constexpr int | kResolutionEstimationFactor = 10 |
const char * | kPolyBlockNames [] |
enum PolyBlockType |
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 publictypes.cpp. Used extensively by ColPartition, and POLY_BLOCK.
Definition at line 53 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of image type
Definition at line 77 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of horizontal line type
Definition at line 73 of file publictypes.h.
|
inline |
Definition at line 89 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of text type
Definition at line 82 of file publictypes.h.
constexpr int kMaxCredibleResolution = 2400 |
Maximum believable resolution.
Definition at line 40 of file publictypes.h.
constexpr int kMinCredibleResolution = 70 |
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 38 of file publictypes.h.
constexpr int kPointsPerInch = 72 |
Number of printers' points in an inch. The unit of the pointsize return.
Definition at line 33 of file publictypes.h.
const char* kPolyBlockNames[] |
String name for each block type. Keep in sync with PolyBlockType.
Definition at line 23 of file publictypes.cpp.
constexpr int kResolutionEstimationFactor = 10 |
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 45 of file publictypes.h.