Package net.sourceforge.tess4j
Interface ITessAPI.TessOrientation
- Enclosing interface:
- ITessAPI
public static interface ITessAPI.TessOrientation
+------------------+ | 1 Aaaa Aaaa Aaaa | | Aaa aa aaa aa | | aaaaaa A aa aaa. | | 2 | | ####### c c C | | ####### c c c | | < ####### c c c | | < ####### c c | | < ####### . c | | 3 ####### c | +------------------+Orientation Example:
====================
Above is a diagram of some (1) English and (2) Chinese text and a (3) photo credit.
Upright Latin characters are represented as A and a. '<' represents a latin character rotated anti-clockwise 90 degrees. Upright Chinese characters are represented C and c.
NOTA BENE: enum values here should match goodoc.proto
If you orient your head so that "up" aligns with Orientation, then the characters will appear "right side up" and readable.
In the example above, both the English and Chinese paragraphs are oriented so their "up" is the top of the page (page up). The photo credit is read with one's head turned leftward ("up" is to page left).
The values of this enum match the convention of Tesseract's osdetect.h
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Field Details
-
ORIENTATION_PAGE_UP
static final int ORIENTATION_PAGE_UP- See Also:
-
ORIENTATION_PAGE_RIGHT
static final int ORIENTATION_PAGE_RIGHT- See Also:
-
ORIENTATION_PAGE_DOWN
static final int ORIENTATION_PAGE_DOWN- See Also:
-
ORIENTATION_PAGE_LEFT
static final int ORIENTATION_PAGE_LEFT- See Also:
-