A method and apparatus for determining an orientation of a document
including Korean text are presented. A binarized pixel image is created
from the document image. Contiguous pixels are grouped and labeled using
a bounding box. A spanning stroke may be detected from a group of the
contiguous pixels. The orientation of the document is determined by
comparing counts associated with spanning strokes in the left, right,
top, and bottom halves of the bounding boxes.