net.sourceforge.tess4j
Interface TessAPI.TessOrientation

Enclosing interface:
TessAPI

public static interface TessAPI.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
static int ORIENTATION_PAGE_DOWN
           
static int ORIENTATION_PAGE_LEFT
           
static int ORIENTATION_PAGE_RIGHT
           
static int ORIENTATION_PAGE_UP
           
 

Field Detail

ORIENTATION_PAGE_UP

static final int ORIENTATION_PAGE_UP
See Also:
Constant Field Values

ORIENTATION_PAGE_RIGHT

static final int ORIENTATION_PAGE_RIGHT
See Also:
Constant Field Values

ORIENTATION_PAGE_DOWN

static final int ORIENTATION_PAGE_DOWN
See Also:
Constant Field Values

ORIENTATION_PAGE_LEFT

static final int ORIENTATION_PAGE_LEFT
See Also:
Constant Field Values


Copyright © 2014 Tess4J. All Rights Reserved.