JPH03212780A - Detector for inclination of character string - Google Patents
Detector for inclination of character stringInfo
- Publication number
- JPH03212780A JPH03212780A JP2007068A JP706890A JPH03212780A JP H03212780 A JPH03212780 A JP H03212780A JP 2007068 A JP2007068 A JP 2007068A JP 706890 A JP706890 A JP 706890A JP H03212780 A JPH03212780 A JP H03212780A
- Authority
- JP
- Japan
- Prior art keywords
- character string
- inclination
- area
- character
- peripheral distribution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Landscapes
- Character Input (AREA)
Abstract
Description
本発明は、文字列を含む文章画像から文字列を含む領域
を1行ずつ求める処理部を備えたデジタル画像処理装置
における文字列傾き検出装置に関する。The present invention relates to a character string inclination detection device in a digital image processing device, which includes a processing unit that calculates a region including a character string line by line from a text image including a character string.
入力画像から文字列領域を抽出し文字列領域の中の文字
を認識するとき、文字列が傾いていると、切り出し処理
が非常に難しくなるばかりでなく、認識も困難になるこ
とがある。
従来、文字列の傾き検出は、原稿画像全体を微小角度毎
に回転させ周辺分布をとり、分布が最も急峻になった回
転角を傾きとする手法[電子通信学会研究報告(儒学技
法) PRL80−70. PP9−161や、多数の
文字列の疑似的な中心線を求めて、その傾きにより、原
稿全体の傾きを抽出する手法[信学論 ’84/11
.VOL、87D、No、11.PP1277−128
4コ や、二次元フーリエ変換(FFT)により、文字
や文字列の空間分布を求めて、それから角度を推定する
手法(信学論 ’84/9. Vol、87D、No、
9. PP1044−10511等が提案されている。When extracting a character string region from an input image and recognizing characters within the character string region, if the character string is tilted, not only the extraction process becomes extremely difficult, but also recognition may become difficult. Conventionally, the inclination of a character string has been detected using a method in which the entire manuscript image is rotated by small angles to obtain the peripheral distribution, and the rotation angle at which the distribution becomes the steepest is determined as the inclination [IEICE Research Report (Confucian Techniques) PRL80- 70. PP9-161, a method of finding the pseudo center line of many character strings and extracting the inclination of the entire manuscript from the inclination [IEICE '84/11
.. VOL, 87D, No. 11. PP1277-128
A method of determining the spatial distribution of characters and character strings using two-dimensional Fourier transform (FFT) and then estimating the angle (IEICE '84/9. Vol, 87D, No.
9. PP1044-10511 and the like have been proposed.
本発明は、個々の文字列を含む領域301内の複数部分
401.402の周辺分布403,404を抽出する周
辺分布抽出部10と、抽出した周辺分布から前記複数部
分401,402のそれぞれにお(する文字列の位14
05.406を推定する部分文字列位置推定部11と、
部分文字列位置推定部11により推定した複数部分40
1.402における文字列の位@405.40B (=
501.502)から文字列全体の傾き504を推定す
る文字列傾き推定部12と、を備えたことを特徴とする
文字列傾き検出装置である。The present invention includes a marginal distribution extraction unit 10 that extracts marginal distributions 403 and 404 of a plurality of parts 401 and 402 in a region 301 including individual character strings, and a marginal distribution extraction unit 10 that extracts marginal distributions 403 and 404 of a plurality of parts 401 and 402 in an area 301 including individual character strings, and (The 14th digit of the character string
a partial character string position estimation unit 11 that estimates 05.406;
Multiple parts 40 estimated by the partial character string position estimation unit 11
Character string position in 1.402 @405.40B (=
501, 502), a character string inclination estimating unit 12 that estimates the inclination 504 of the entire character string.
指定された領域内にデータが周辺分布抽出部10に入力
されると、周辺分布抽出部10は文字列領域301内の
複数の部分401,402について、その縦方向(また
は横方向)の周辺分布403.404を求め、その結果
を部分文字列位置推定部11に送る。部分文字列位置推
定部11は、複数の部分401.402それぞれにおけ
る文字列の位置405,406を推定し、その結果を文
字列傾き推定部12に送る。文字列傾き推定部12は複
数の部分401.402それぞれにおける文字列の位置
405,406 (501,502)から、文字列の傾
き(504)を求める。これにより、短時間に容易に文
字列の傾きを求めることができる。When data is input to the marginal distribution extraction unit 10 within the specified area, the marginal distribution extraction unit 10 extracts the vertical (or horizontal) marginal distribution for the plurality of parts 401 and 402 in the character string area 301. 403 and 404, and sends the results to the partial character string position estimation unit 11. The partial character string position estimation unit 11 estimates the positions 405 and 406 of the character string in each of the plurality of parts 401 and 402, and sends the results to the character string slope estimation unit 12. The character string inclination estimating unit 12 calculates the inclination (504) of the character string from the positions 405, 406 (501, 502) of the character string in each of the plurality of portions 401, 402. Thereby, the inclination of a character string can be easily determined in a short time.
第2図は本発明の一実施例による文書画像処理装置の全
体構成を示すものである。この文書処理装置は文書画像
をデジタル画像として走査入力するイメージスキャナ1
、入力画像を処理のため記憶するイメージメモリ2、文
字列を含む領域を抽出する文字列領域抽出装置13、本
発明の文字列の傾き検出を行う文字列傾き検出装置4、
装置全体を制御するCPU5、データバス6、画像やメ
ツセージを表示するモニター7、キーボード8、画像等
を格納する外部記憶装置19等から構成されている
第1図は第2図における文字列傾き検出装置4を詳細に
示すものである。イメージメモリ2に格納されたデータ
の内、文字列領域抽出装置3により指定された領域内に
相当するデータが周辺分布抽出部10に送られる。周辺
分布抽出部10は文字列領域内の複数の部分について、
その縦方向の周辺分布を求め、その結果を部分文字列位
置推定部11に送る。部分文字列位置推定部11は、複
数の部分それぞれにおける文字列の位置を推定し、その
結果を文字列傾き推定部12に送る。文字列傾き推定部
12は複数の部分それぞれにおける文字列の位置から、
文字列の傾きを求める。文字列の傾きはCPU5に送ら
れる。
以下、横書きの文字列を例に動作を詳細に説明する。
第3図に、傾いた文字列の画像を含む文字列領域の例を
示す。
第3図のように文字列領域301内にある文字列のよう
に、英文の文字列、あるいは英文字が含まれる文字列で
ある場合は、文字列の下端より下に突き出る文字があり
、また、入力時の雑音等がある場合は文字列の下端より
下に黒画素できることがある。そのため、文字列領域の
各部分の最も下の黒画素が文字列の下端と一致するとは
限らない。一方、文字列領域の幅のうち一部を取り出し
、その部分において縦方向の周辺分布をとると、その部
分での文字列の位置に対応した分布が得られる。
第4図に、文字列の両端部分において縦方向の周辺分布
をとった例を示す。すなわち、第4図(a)は、文字列
領域301(第3図)の左端部分の領域401を示し、
同図(b)は文字列領域301の右端部分を表す。周辺
分布抽出部10により、文字列領域の左端部分の領域4
01について6w1方向の周辺分布403を求めると共
に、文字列領域の右端部分の領域402について縦方向
の周辺分布404を求める。
次に、部分文字列位置推定部11において、これらの周
辺分布403.404から文字列の位置を推定する。周
辺分布の頻度は第4図の横軸方向の長さで示されるが、
この頻度が定められた値a。
bを越える最も低い位置を、文字列の下端の位置405
.408と推定する。これにより、文字列の下端より下
に突き出る文字がある場合や、雑音等により文字列の下
端より下に黒画素がある場合でも、文字列領域のある部
分における文字列の下端の位置を安定して推定できる。
第4図(a)では、文字列領域の左端部分の領域401
における文字列の下端の位置405を文字列の左端部分
401の文字の位置とする例を示している。同様に同図
(b)では位1140Bを文字列の左端部分4o1の文
字列の位置と推定した例を示す。
文字列の傾きは、文字列の各部分の横方向の位置と、各
部分において推定した文字列の下端の高さから、求める
ことができる。第5図に文字列の両端部の間の横方向の
位置と、両端部において推定した文字列の下端の高さの
差から文字列の傾きを求めた例を示す。この例では、両
端部2か所における文字列の位置から文字列の傾きを求
めて〜)るが、文字列の位置を推定する箇所を増やすこ
とにより、更に安定、かつ精度良(文字列の傾きを求め
ることができる。
また、実施例では、横書きの文字列について説明したが
、縦書きの文字列に対しても横方向の周辺分布を用いる
ことにより同様の処理により傾きを検出できる。また、
文字列の他にも、図表等子めその構造が分かっている対
象に対しては、その領域中の各部分の周辺分布からその
構成要素の位置を推定することにより、その対象の傾き
を検知することができる。
【発明の効果]
本発明は、文字列領域中の部分的な周辺分布を用いて、
各部分での文字列の位置を推定し、文字列の傾きを検出
するので、少ない計算量で、雑音等に左右されず安定し
て文字列の傾きを検出できる。
したがって、本発明によれば、短時間で容易に文字列の
傾きを求めることができる。FIG. 2 shows the overall configuration of a document image processing apparatus according to an embodiment of the present invention. This document processing device includes an image scanner 1 that scans and inputs document images as digital images.
, an image memory 2 that stores an input image for processing, a character string region extraction device 13 that extracts a region containing a character string, a character string tilt detection device 4 that detects the tilt of a character string according to the present invention,
It consists of a CPU 5 that controls the entire device, a data bus 6, a monitor 7 that displays images and messages, a keyboard 8, an external storage device 19 that stores images, etc. Figure 1 shows the character string tilt detection in Figure 2. 4 shows the device 4 in detail. Among the data stored in the image memory 2, data corresponding to the area specified by the character string area extraction device 3 is sent to the peripheral distribution extraction section 10. The marginal distribution extraction unit 10 extracts multiple parts within the character string area,
The peripheral distribution in the vertical direction is determined, and the result is sent to the partial character string position estimation section 11. The partial character string position estimation unit 11 estimates the position of the character string in each of the plurality of parts, and sends the result to the character string slope estimation unit 12. The character string inclination estimation unit 12 calculates, from the position of the character string in each of the plurality of parts,
Find the slope of a string. The inclination of the character string is sent to the CPU 5. The operation will be explained in detail below using a horizontally written character string as an example. FIG. 3 shows an example of a character string area including an image of a tilted character string. If it is an English character string or a character string containing English characters, such as the character string in the character string area 301 as shown in Figure 3, there may be characters that protrude below the bottom edge of the character string, or , if there is noise during input, black pixels may appear below the bottom edge of the character string. Therefore, the lowest black pixel in each part of the character string area does not necessarily match the lower end of the character string. On the other hand, if a part of the width of the character string area is extracted and the peripheral distribution in the vertical direction is obtained in that part, a distribution corresponding to the position of the character string in that part is obtained. FIG. 4 shows an example in which the vertical peripheral distribution is taken at both end portions of a character string. That is, FIG. 4(a) shows an area 401 at the left end of the character string area 301 (FIG. 3),
FIG. 3B shows the right end portion of the character string area 301. The marginal distribution extraction unit 10 extracts a region 4 at the left end of the character string region.
A marginal distribution 403 in the 6w1 direction is determined for 01, and a vertical marginal distribution 404 is determined for the region 402 at the right end of the character string region. Next, the partial character string position estimation unit 11 estimates the position of the character string from these peripheral distributions 403 and 404. The frequency of the marginal distribution is shown by the length in the horizontal axis direction in Figure 4,
This frequency is determined by a value a. The lowest position exceeding b is the lower end position 405 of the character string.
.. Estimated to be 408. As a result, even if there are characters that protrude below the bottom edge of the string, or if there are black pixels below the bottom edge of the string due to noise, etc., the position of the bottom edge of the string in a certain part of the string area is stabilized. It can be estimated by In FIG. 4(a), an area 401 at the left end of the character string area
An example is shown in which the lower end position 405 of the character string is the position of the character in the left end portion 401 of the character string. Similarly, FIG. 3B shows an example in which the position 1140B is estimated to be the position of the left end portion 4o1 of the character string. The inclination of a character string can be determined from the horizontal position of each part of the character string and the estimated height of the lower end of the character string in each part. FIG. 5 shows an example in which the inclination of a character string is determined from the difference between the horizontal position between both ends of the character string and the height of the lower end of the character string estimated at both ends. In this example, the slope of the character string is calculated from the positions of the character string at two locations at both ends. In addition, in the embodiment, a horizontally written character string has been described, but the slope can also be detected for a vertically written character string by the same process by using the horizontal peripheral distribution. ,
In addition to character strings, for objects whose structure is known, such as diagrams, tables, etc., the tilt of the object can be detected by estimating the position of its constituent elements from the peripheral distribution of each part in the area. can do. [Effects of the Invention] The present invention uses a partial marginal distribution in a character string region to
Since the position of the character string in each part is estimated and the inclination of the character string is detected, the inclination of the character string can be detected stably with a small amount of calculation and unaffected by noise. Therefore, according to the present invention, the slope of a character string can be easily determined in a short time.
第1図は本発明による文字列傾き検出部の構成を示す図
である。
第2図は本発明を適用できる文書画像処理装置の一例の
構成を示す図である。
第3図は文字列画像の一例を示す図である。
第4図は周辺分布抽出の一例を示す図である。
第5図は文字列傾き推定の一例を示す図である。
1・・・イメージスキャナ、2・・・イメージメモリ、
3・・・文字列領域抽出装置、4・・・文字列傾き検出
装置、5・・・CPU、6・・・データバス、7・・・
モニター 8・・・キーボード、9・・・外部記憶装置
、10・・・周辺分布抽出部、11・・・部分文字列位
置推定部、12・・・文字列傾き推定部、301・・・
文字列領域、401・・・文字列領域の左端部分、40
2・・・文字列領域の右端部分、403・・・文字列領
域の左端部分における縦方向の周辺分布、404・・・
文字列領域の右端部分における縦方向の周辺分布、40
5・・・文字列領域の左端部分における文字列下端の位
置、406・・・文字列領域の右端部分における文字列
下端の位置、501・・・文字列領域の左端部分におけ
る文字列下端の位置、502・・・文字列領域の右端部
分における文字列下端の位置、503・・・水平線、5
04・・・文字列の傾きの角度。FIG. 1 is a diagram showing the configuration of a character string inclination detecting section according to the present invention. FIG. 2 is a diagram showing the configuration of an example of a document image processing device to which the present invention can be applied. FIG. 3 is a diagram showing an example of a character string image. FIG. 4 is a diagram showing an example of marginal distribution extraction. FIG. 5 is a diagram showing an example of character string inclination estimation. 1... Image scanner, 2... Image memory,
3... Character string area extraction device, 4... Character string inclination detection device, 5... CPU, 6... Data bus, 7...
Monitor 8... Keyboard, 9... External storage device, 10... Marginal distribution extraction section, 11... Partial string position estimation section, 12... Character string inclination estimation section, 301...
Character string area, 401...Left end portion of character string area, 40
2... Right end part of the character string area, 403... Vertical peripheral distribution in the left end part of the character string area, 404...
Vertical peripheral distribution at the right end of the character string area, 40
5...Position of the bottom end of the character string in the left end part of the character string area, 406...Position of the bottom end of the character string in the right end part of the character string area, 501...Position of the bottom end of the character string in the left end part of the character string area , 502...Position of the bottom end of the character string in the right end portion of the character string area, 503...Horizontal line, 5
04... Angle of inclination of character string.
Claims (1)
する周辺分布抽出部と、 抽出した周辺分布から前記領域内の前記複数部分のそれ
ぞれにおける文字列の位置を推定する部分文字列位置推
定部と、 複数部分における文字列の位置から文字列全体の傾きを
推定する文字列傾き推定部と、 を備えたことを特徴とする文字列傾き検出装置。[Scope of Claims] A marginal distribution extracting unit that extracts the marginal distribution of a plurality of parts within a region containing each character string, and estimating the position of a character string in each of the plurality of parts within the region from the extracted marginal distribution. A character string inclination detection device comprising: a partial character string position estimating unit that estimates the inclination of the entire character string from the position of the character string in a plurality of parts;
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007068A JPH03212780A (en) | 1990-01-18 | 1990-01-18 | Detector for inclination of character string |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2007068A JPH03212780A (en) | 1990-01-18 | 1990-01-18 | Detector for inclination of character string |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03212780A true JPH03212780A (en) | 1991-09-18 |
Family
ID=11655761
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2007068A Ceased JPH03212780A (en) | 1990-01-18 | 1990-01-18 | Detector for inclination of character string |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03212780A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6683983B1 (en) * | 1999-03-01 | 2004-01-27 | Riso Kagaku Corporation | Document-inclination detector |
| JP2005275951A (en) * | 2004-03-25 | 2005-10-06 | Canon Inc | Image processing apparatus, image processing method, program, and storage medium |
-
1990
- 1990-01-18 JP JP2007068A patent/JPH03212780A/en not_active Ceased
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6683983B1 (en) * | 1999-03-01 | 2004-01-27 | Riso Kagaku Corporation | Document-inclination detector |
| JP2005275951A (en) * | 2004-03-25 | 2005-10-06 | Canon Inc | Image processing apparatus, image processing method, program, and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6526161B1 (en) | System and method for biometrics-based facial feature extraction | |
| US8170368B2 (en) | Correcting device and method for perspective transformed document images | |
| JP3249605B2 (en) | Document edge detection device | |
| Palmer et al. | A Hough transform algorithm with a 2D hypothesis testing kernel | |
| JP3346795B2 (en) | Image processing method | |
| JP4114959B2 (en) | Image processing method and apparatus | |
| JP4323606B2 (en) | Document image tilt detection device | |
| US8077976B2 (en) | Image search apparatus and image search method | |
| US20130050765A1 (en) | Method and apparatus for document authentication using image comparison on a block-by-block basis | |
| KR101377910B1 (en) | Image processing method and image processing apparatus | |
| Lehal et al. | A range free skew detection technique for digitized Gurmukhi script documents | |
| JPH05174182A (en) | Document tilt angle detection method and document tilt angle detection device | |
| US20020164087A1 (en) | System and method for fast rotation of binary images using block matching method | |
| JPH06203202A (en) | Image processor | |
| JPH0373915B2 (en) | ||
| JP2843638B2 (en) | Character image alignment method | |
| JP2536205B2 (en) | Document image skew detection method and apparatus | |
| JP2893747B2 (en) | Document image tilt detection method and apparatus | |
| JPH0679348B2 (en) | Line cutting method | |
| JP2001291056A (en) | Document image recognition device and recording medium | |
| JP3000480B2 (en) | Character area break detection method | |
| JPH0490082A (en) | Device for detecting character direction in document | |
| JPH02158882A (en) | Original inclination detector | |
| JP2982221B2 (en) | Character reader | |
| JP3400154B2 (en) | Document image area extraction method and apparatus |