Method for determining oriention of Chinese words
AssigneeCompal Electronics, Inc.
InventorsWen-Hann Tsai, Tzu-Ta Huang
Life of this patent
Estimating the term…
Abstract
A method for determining the orientation of Chinese words is provided. The amount of dark pixels in each column of a Chinese word image is calculated. Then, a first point, a second point, and a third point are determined. The first point and the second point correspond to the columns with the largest and the second largest amount of dark pixels, respectively. The third point is located between the first point and the second point. The Chinese word is right-side up if the third point is located on the left side of the Chinese word. The Chinese word is upside down if the third point is located on the right side of the Chinese word.
Claims14
A method for determining the orientation of Chinese words, the method comprising the steps of:
- (a) entering a word image that has a plurality of pixels, including a plurality of dark pixels forming a Chinese word and a plurality of bright pixels;
- (b) generating a plurality of horizontal coordinates corresponding to a plurality of vertical lines of the word image;
- (c) counting a plurality of vertical projections, each of which is the number of dark pixels on the vertical line associated with each of the horizontal coordinates;
- (d) selecting a first coordinate and a second coordinate, corresponding to the largest and second largest vertical projections, respectively;
- (e) selecting a third coordinate between the first coordinate and the second coordinate;
- and
- (f) determining the orientation of the Chinese word as right-side up if the third coordinate is located to the left of the word image center and as upside down if the third coordinate is located to the right of the word image center.
Dependencies are inferred from the claim text.