Tesseract
3.02
|
Go to the source code of this file.
Namespaces | |
namespace | tesseract |
Macros | |
#define | PSM_OSD_ENABLED(pageseg_mode) ((pageseg_mode) <= PSM_AUTO_OSD) |
#define | PSM_COL_FIND_ENABLED(pageseg_mode) ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_AUTO) |
#define | PSM_BLOCK_FIND_ENABLED(pageseg_mode) ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_COLUMN) |
#define | PSM_LINE_FIND_ENABLED(pageseg_mode) ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_BLOCK) |
#define | PSM_WORD_FIND_ENABLED(pageseg_mode) ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_LINE) |
Functions | |
bool | PTIsLineType (PolyBlockType type) |
bool | PTIsImageType (PolyBlockType type) |
bool | PTIsTextType (PolyBlockType type) |
Variables | |
const int | kPointsPerInch = 72 |
const char * | kPolyBlockNames [] |
#define PSM_BLOCK_FIND_ENABLED | ( | pageseg_mode | ) | ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_COLUMN) |
Definition at line 173 of file publictypes.h.
#define PSM_COL_FIND_ENABLED | ( | pageseg_mode | ) | ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_AUTO) |
Definition at line 171 of file publictypes.h.
#define PSM_LINE_FIND_ENABLED | ( | pageseg_mode | ) | ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_BLOCK) |
Definition at line 175 of file publictypes.h.
#define PSM_OSD_ENABLED | ( | pageseg_mode | ) | ((pageseg_mode) <= PSM_AUTO_OSD) |
Macros that act on a PageSegMode to determine whether components of layout analysis are enabled. Depend critically on the order of elements of PageSegMode.
Definition at line 170 of file publictypes.h.
#define PSM_WORD_FIND_ENABLED | ( | pageseg_mode | ) | ((pageseg_mode) >= PSM_AUTO_OSD && (pageseg_mode) <= PSM_SINGLE_LINE) |
Definition at line 177 of file publictypes.h.
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 41 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of image type
Definition at line 65 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of horizontal line type
Definition at line 61 of file publictypes.h.
|
inline |
Returns true if PolyBlockType is of text type
Definition at line 70 of file publictypes.h.
const 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.