[go: up one dir, main page]

JPH1097591A - Frameless on-line character recognition device - Google Patents

Frameless on-line character recognition device

Info

Publication number
JPH1097591A
JPH1097591A JP8250556A JP25055696A JPH1097591A JP H1097591 A JPH1097591 A JP H1097591A JP 8250556 A JP8250556 A JP 8250556A JP 25055696 A JP25055696 A JP 25055696A JP H1097591 A JPH1097591 A JP H1097591A
Authority
JP
Japan
Prior art keywords
character string
baseline
handwriting
stroke
character
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.)
Pending
Application number
JP8250556A
Other languages
Japanese (ja)
Inventor
Yojiro Touchi
洋次郎 登内
Toshinori Kawamura
聡典 河村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP8250556A priority Critical patent/JPH1097591A/en
Publication of JPH1097591A publication Critical patent/JPH1097591A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily detect the line direction of a character string and decide whether the character string is written longitudinally or laterally without previously fixing a way of writing the character string and the line direction of the character string. SOLUTION: A handwriting inputted on a coordinate input surface is detected by a handwriting input part 11 as a time series of two-dimensional coordinates and stored in a storage part 12. A base line detection part 13 detects a base line from strokes constituting the handwriting (indicated by the coordinate series) stored in the storage part 12. A character string information extraction part 14 detects the line direction of the character string in the handwriting from the base line and decides whether the character string is written longitudinally or laterally on the basis of the position relation between the detected base line and the character string in the handwriting according to the restrictions of the predetermined position relation between the character string and base line. A line correction part 15 rotates the character string in the handwriting according to the line direction detection result and longitudinal/lateral writing decision result of the character string to enable a recognizing process by a character recognition part 16.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、枠のない領域に手
書きされた筆跡の文字列を実時間で認識するのに好適な
枠なしオンライン文字認識装置に係り、特に文字列の行
方向、更には文字列の縦書き/横書きの区別等の検出機
能を持ったオンライン文字認識装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a frameless online character recognition device suitable for recognizing, in real time, a character string of handwriting handwritten in an area without a frame, and more particularly to a line direction of a character string, and more particularly, to a character string line direction. The present invention relates to an online character recognition device having a function of detecting vertical / horizontal writing of a character string.

【0002】[0002]

【従来の技術】近年、タブレットなどの座標入力面を介
して筆記された文字列を実時間(リアルタイム)で認識
するオンライン文字認識装置が注目されている。この種
のオンライン文字認識装置の1つに、枠のない領域に筆
記きされた手書き文字を認識する枠なしオンライン文字
認識装置がある。
2. Description of the Related Art In recent years, an online character recognition device that recognizes a character string written on a coordinate input surface of a tablet or the like in real time has attracted attention. One such type of online character recognition device is a frameless online character recognition device that recognizes handwritten characters written in a frameless region.

【0003】従来の枠なしオンライン文字認識装置に
は、次の2つの手法のいずれか一方が適用されるのが一
般的である。第1の手法は筆記方向を制限するもので、
文字列が横書きならば、図19に示す水平方向(x軸方
向)に、縦書きならば、図19に示す鉛直方向(y軸方
向)に、筆記方向が限定される。
[0003] One of the following two methods is generally applied to the conventional frameless online character recognition device. The first method restricts the writing direction,
If the character string is written horizontally, the writing direction is limited to the horizontal direction (x-axis direction) shown in FIG. 19, and if it is written vertically, the writing direction is limited to the vertical direction (y-axis direction) shown in FIG.

【0004】この第1の手法を適用する枠なしオンライ
ン文字認識装置では、結果として、縦書きであるか或い
は横書きであるかの判別と文字列の行方向(文字行の方
向)の検出とを行わずに文字認識を行うことができる。
しかし、第1の手法は筆記における制限を加えるもので
あるため、ユーザ(筆記者)に対して負担を強いること
になる。
In the frameless online character recognition apparatus to which the first method is applied, as a result, it is necessary to determine whether the text is written vertically or horizontally and to detect the line direction of the character string (the direction of the character line). Character recognition can be performed without performing.
However, the first method imposes restrictions on writing, and thus imposes a burden on the user (writer).

【0005】一方、第2の手法は、筆記方向を制限せず
に、任意の書き方(縦書きあるいは横書き)で任意の方
向に書かれた文字列に対して認識を行うものである。こ
の第2の手法を適用する枠なしオンライン文字認識装置
では、ユーザの自由度は増すが、上記第1の手法とは異
なって、認識を行う前に、縦書きであるか或いは横書き
であるかの判別と文字列の行方向の検出とを行う必要が
ある。このため、処理に時間がかかり、検出に失敗した
場合に認識精度が悪くなる。
On the other hand, the second technique is to recognize a character string written in an arbitrary direction in an arbitrary writing method (vertical writing or horizontal writing) without limiting the writing direction. In the frameless online character recognition device to which the second method is applied, the degree of freedom of the user is increased. However, unlike the first method, before the recognition, the character is written vertically or horizontally. Must be determined and the line direction of the character string must be detected. For this reason, processing takes time, and recognition accuracy deteriorates when detection fails.

【0006】[0006]

【発明が解決しようとする課題】上記したように、従来
の枠なしオンライン文字認識技術においては、縦書きで
あるか或いは横書きであるかの判別と文字列の行方向
(文字行の方向)の検出とを不要にしようとすると、筆
記方向に制限を加えなければならず、ユーザに負担を強
いることになり、逆に筆記方向を制限しないようにする
には、認識を行う前に、縦書きであるか或いは横書きで
あるかの判別と文字行の方向の検出を行わなければなら
ず、認識速度及び認識精度が低下するという問題があっ
た。
As described above, in the conventional frameless on-line character recognition technology, it is determined whether the text is written vertically or horizontally and the line direction of the character string (the direction of the character line). If the detection is not required, the writing direction must be restricted, which imposes a burden on the user. Conversely, in order not to restrict the writing direction, it is necessary to write vertically before recognition. Or horizontal writing and the direction of the character line must be detected, which causes a problem that the recognition speed and the recognition accuracy are reduced.

【0007】本発明は上記事情を考慮してなされたもの
でその目的は、文字列の書き方や文字列の行方向につい
て予め固定せずに、ユーザが任意の書き方で且つ任意の
方向に文字列を筆記入力することを許しながら、その文
字列の認識に必要な文字列の行方向の検出、更には文字
列の縦書き/横書きの判別が容易に行え、認識速度及び
認識精度の向上が図れる枠なしオンライン文字認識装置
を提供することにある。
The present invention has been made in consideration of the above circumstances, and has as its object to fix a character string in an arbitrary writing method and in an arbitrary direction without fixing in advance the method of writing a character string and the line direction of the character string. , The line direction of a character string necessary for recognition of the character string can be detected, and the vertical / horizontal writing of the character string can be easily determined, thereby improving the recognition speed and the recognition accuracy. An object of the present invention is to provide a frameless online character recognition device.

【0008】[0008]

【課題を解決するための手段】本発明の第1の観点に係
る枠なしオンライン文字認識装置は、座標入力面に筆記
された筆跡を2次元座標の時系列として検出・入力する
筆跡入力手段と、この筆跡入力手段により入力された筆
跡を構成する複数のストロークから、当該筆跡中の文字
列の傾きを示すストロークであるベースラインストロー
クを検出するベースライン検出手段と、このベースライ
ン検出手段により検出されたベースラインストロークか
ら文字列の行方向を検出する文字列情報抽出手段と、こ
の文字列情報抽出手段による文字列の行方向の検出結果
をもとに上記筆跡中の文字列の回転を行う行補正手段
と、この行補正手段により回転された文字列の認識を行
う文字列認識手段とを備えたことを特徴とする。
A frameless online character recognition apparatus according to a first aspect of the present invention includes a handwriting input means for detecting and inputting a handwriting written on a coordinate input surface as a time series of two-dimensional coordinates. A plurality of strokes constituting the handwriting input by the handwriting input means, a baseline detection means for detecting a stroke indicating the inclination of the character string in the handwriting, and a baseline detection means for detecting the baseline stroke. Character string information extracting means for detecting the line direction of the character string from the obtained baseline stroke, and rotating the character string in the handwriting based on the detection result of the character string line direction by the character string information extracting means. It is characterized by comprising a line correcting means and a character string recognizing means for recognizing a character string rotated by the line correcting means.

【0009】このような構成においては、ユーザが任意
の書き方で且つ任意の方向に文字列を筆記入力すること
を許しながら、文字列の筆記時にユーザが当該文字列の
傾きを示すストロークを書くだけで、そのストローク
(ベースライン)を基準に筆跡中の文字列の行方向が簡
単に自動検出できる。これにより認識速度及び認識精度
の向上が図れる。但し、文字列が縦書き或いは横書きの
いずれであるかは簡単には検出できないため、文字列の
書き方や文字列の行方向について予め固定するものより
は落ちる。そこで、文字列の書き方(縦書きあるいは横
書き)について制約を設けることにより、即ち任意の方
向に文字列を筆記入力することのみを許すことにより、
文字列の書き方だけでなく文字列の行方向についても予
め固定するものと同レベルの認識速度及び認識精度を実
現することも可能である。
In such a configuration, the user only writes a stroke indicating the inclination of the character string at the time of writing the character string, while allowing the user to write and input the character string in an arbitrary manner and in an arbitrary direction. Thus, the line direction of the character string in the handwriting can be easily and automatically detected based on the stroke (base line). Thereby, the recognition speed and the recognition accuracy can be improved. However, since it is not easy to detect whether the character string is written vertically or horizontally, the writing method and the line direction of the character string are lower than those fixed in advance. Therefore, by restricting how to write a character string (vertical writing or horizontal writing), that is, by only allowing a character string to be written and input in any direction,
It is also possible to realize the same level of recognition speed and recognition accuracy as those that are fixed in advance not only in how to write a character string but also in the line direction of the character string.

【0010】本発明の第2の観点に係る枠なしオンライ
ン文字認識装置は、上記第1の観点に係る枠なしオンラ
イン文字認識装置における文字列情報抽出手段に、次の
判別機能、即ち、予め定められた文字列とベースライン
との位置関係の制約に従って、上記ベースライン検出手
段により検出されたベースラインストロークと上記筆跡
中の文字列との位置関係をもとに当該文字列が縦書きで
あるか或いは横書きであるかを判別する判別機能を付加
すると共に、上記行補正手段による文字列の回転を、上
記文字列情報抽出手段による文字列の行方向の検出結果
だけでなく、文字列の縦書き/横書き判別結果も用いて
行うようにしたことを特徴とする。
A frameless online character recognition device according to a second aspect of the present invention provides the character string information extracting means in the frameless online character recognition device according to the first aspect with the following determination function, The character string is written vertically based on the positional relationship between the baseline stroke detected by the baseline detection means and the character string in the handwriting according to the restriction on the positional relationship between the character string and the baseline. In addition to adding a discriminating function of judging whether the character is written horizontally or not, the rotation of the character string by the line correction means is not limited to the detection result of the line direction of the character string by the character string information extraction means, but also the vertical direction of the character string. It is characterized in that the determination is made by using the writing / horizontal writing discrimination result.

【0011】このような構成においては、文字列とベー
スラインとの位置関係に制約が設けられるものの、ユー
ザが任意の書き方で且つ任意の方向に文字列を筆記入力
することを許しながら、文字列の筆記時にユーザが当該
文字列の傾きを示すストロークを書くだけで、そのスト
ローク(ベースライン)を基準に筆跡中の文字列の行方
向が簡単に自動検出できると共に、そのストロークと文
字列との位置関係をもとに当該文字列が縦書きであるか
或いは横書きであるかも簡単に自動検出できる。これに
より、認識速度及び認識精度の一層の向上が図れる。
In such a configuration, although the positional relationship between the character string and the baseline is restricted, the character string is written while allowing the user to write and input the character string in an arbitrary manner and in an arbitrary direction. By simply writing a stroke indicating the inclination of the character string when writing, the line direction of the character string in the handwriting can be easily and automatically detected based on the stroke (base line). Whether the character string is written vertically or horizontally can be automatically detected based on the positional relationship. Thereby, the recognition speed and the recognition accuracy can be further improved.

【0012】文字列とベースラインとの位置関係の制約
には、例えば、横書きの文字列を書く場合には、文字列
の下側にベースラインを引くとか、縦書きの文字列を書
く場合には、文字列の右側にベースラインを引くという
こと、更には、文字列を横書きなら右向きに、縦書きな
ら下向きに書くか、或いはベースラインの向きを文字列
の行方向に合わせるということが適用可能である。
The restrictions on the positional relationship between a character string and a baseline include, for example, writing a horizontal character string, drawing a baseline below the character string, or writing a vertical character string. Means that the baseline is drawn on the right side of the character string, and that the character string is written to the right if it is written horizontally, it is written down if it is written vertically, or the baseline is aligned with the line direction of the character string It is possible.

【0013】また、文字列の傾きを示すストローク(ベ
ースラインストローク)自体に制約を設け、最初に書か
れた直線状のストローク、最後に書かれた直線状のスト
ローク、最長の直線状のストローク、または2重に書か
れた一定長以上の直線状のストロークのいずれか1つに
予め固定するとか、そのうちの少なくとも2つのストロ
ークを候補として、その候補中からユーザによって選択
指定されるストロークとすることにより、筆跡を構成す
る複数のストロークの中からベースラインストロークが
簡単に検出可能となる。
In addition, a stroke (baseline stroke) indicating the inclination of the character string itself is restricted, and a linear stroke written first, a linear stroke written last, a longest linear stroke, Alternatively, the stroke may be fixed in advance to any one of two linear strokes having a predetermined length or more, or at least two strokes may be set as candidates, and a stroke selected and designated by the user from the candidates. Accordingly, a baseline stroke can be easily detected from a plurality of strokes constituting a handwriting.

【0014】[0014]

【発明の実施の形態】以下、本発明の実施の形態につき
図面を参照して説明する。図1は本発明の一実施形態に
係る枠なしオンライン文字認識装置の概略構成を示すブ
ロック図である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a frameless online character recognition device according to an embodiment of the present invention.

【0015】図1の枠なしオンライン文字認識装置は、
筆跡入力部11と、記憶部12と、ベースライン検出部
13と、文字列情報抽出部14と、行補正部15と、文
字列認識部16とから構成される。
The frameless online character recognition device shown in FIG.
It comprises a handwriting input unit 11, a storage unit 12, a baseline detection unit 13, a character string information extraction unit 14, a line correction unit 15, and a character string recognition unit 16.

【0016】筆跡入力部11は、タブレット等の座標入
力装置により実現されるもので、筆記用のペン(図示せ
ず)にて座標入力面(タブレット面)に筆記された筆跡
を2次元座標の時系列として検出・入力する。
The handwriting input unit 11 is realized by a coordinate input device such as a tablet. The handwriting input unit 11 converts a handwriting written on a coordinate input surface (tablet surface) with a writing pen (not shown) into two-dimensional coordinates. Detect and input as time series.

【0017】記憶部12は、筆跡入力部11により入力
された筆跡座標の時系列(筆跡座標列)等を記憶してお
くのに用いられる。ベースライン検出部13は、記憶部
12に記憶されている筆跡座標の時系列の示す複数のス
トロークの中からベースラインストロークを検出する。
ベースラインストローク以外のストロークは文字列と見
なされる。
The storage unit 12 is used to store a time series (handwriting coordinate sequence) of handwriting coordinates input by the handwriting input unit 11 and the like. The baseline detecting unit 13 detects a baseline stroke from a plurality of strokes indicated by the time series of handwriting coordinates stored in the storage unit 12.
Strokes other than the baseline stroke are regarded as character strings.

【0018】ここで、ストロークとは、ペンが筆跡入力
部11の座標入力面に触れてから離れるまでの筆跡のこ
とをいう。また、ベースラインとは、ユーザ(筆記者)
によって筆記された筆跡のうちの文字列以外の部分で、
文字列の傾きを示すストロークをいう。
Here, the stroke means a handwriting from the time when the pen touches the coordinate input surface of the handwriting input unit 11 until the pen leaves. In addition, the baseline is a user (scribe)
Non-string part of the handwriting written by
A stroke indicating the inclination of a character string.

【0019】文字列情報抽出部14は、ベースライン検
出部13によって検出されたベースラインと文字列の位
置関係から、文字列の行方向(文字行の方向)の検出と
縦書きか或いは横書きか(縦書き/横書き)の判別を行
い、その結果を示す文字列情報を出力する。
The character string information extraction unit 14 determines whether the line direction (character line direction) of the character string is to be written vertically or horizontally based on the positional relationship between the baseline detected by the baseline detection unit 13 and the character string. (Vertical writing / horizontal writing) is determined, and character string information indicating the result is output.

【0020】行補正部15は、文字列情報抽出部14に
より出力された文字列情報の示す行方向及び縦書き/横
書きの区別をもとに、記憶部12に記憶されている筆跡
座標列の示す(筆跡中の)文字列内の各文字の上下左右
が座標の上下左右と同一になるように、文字列(を示す
座標列)の行方向の補正を行う。
The line correcting unit 15 converts the handwriting coordinate sequence stored in the storage unit 12 based on the line direction indicated by the character string information output by the character string information extracting unit 14 and the distinction between vertical writing and horizontal writing. The line direction of the character string (coordinate sequence indicating) is corrected so that the upper, lower, left, and right of each character in the character string shown (in the handwriting) are the same as the upper, lower, left, and right coordinates.

【0021】文字列認識部16は、行補正部15による
行補正の結果得られる文字列の筆跡座標列に対して認識
処理を行い、認識結果を出力する。次に、図1の構成の
動作を、図2乃至図図18を適宜参照して説明する。
The character string recognizing unit 16 performs a recognition process on a handwriting coordinate sequence of a character string obtained as a result of the line correction by the line correcting unit 15, and outputs a recognition result. Next, the operation of the configuration of FIG. 1 will be described with reference to FIGS.

【0022】まずユーザが、筆跡入力部11の座標入力
面上でペンを用いて筆記入力を開始したものとする。す
ると、ユーザが筆記した筆跡の座標列(のデータ)が筆
跡入力部11により検出されて、その座標列が記憶部1
2に時系列順に格納される。各座標のデータ(座標デー
タ)には、ペンが座標入力面に触れているか、或いは離
れているか(座標検出が可能な範囲内で一定高さ以上離
れているか)を示すオン/オフフラグが付されている。
First, it is assumed that the user has started writing with a pen on the coordinate input surface of the handwriting input unit 11. Then, the coordinate sequence (data) of the handwriting written by the user is detected by the handwriting input unit 11, and the coordinate sequence is stored in the storage unit 1.
2 are stored in chronological order. The data of each coordinate (coordinate data) is provided with an on / off flag indicating whether the pen is touching the coordinate input surface or separated from the coordinate input surface (whether the pen is separated from the coordinate input surface by a certain height or more within a range where the coordinates can be detected). ing.

【0023】さて本実施形態では、筆跡入力部11の座
標入力面に筆記する文字列の行方向を、ベースラインと
呼ぶ直線状のストロークをユーザが描くことで指定する
ようになっている。ベースラインとして指定(使用)可
能なストロークは以下の4種である。
In the present embodiment, the user specifies the line direction of a character string to be written on the coordinate input surface of the handwriting input unit 11 by drawing a linear stroke called a baseline. The following four types of strokes can be designated (used) as a baseline.

【0024】(a1)筆跡中の直線状のストロークのうち、
最初に筆記されたストローク (a2)筆跡中の直線状のストロークのうち、最後に筆記さ
れたストローク (a3)筆跡中の直線状のストロークのうち、長さが最大の
ストローク (a4)筆跡中の直線状のストロークのうち、2重に書かれ
た一定長以上の長さのストローク ユーザは、上記の4種のストロークのいずれをベースラ
インとして使用するかを、ユーザインタフェース(図示
せず)を通して予め選択指定する。ユーザインタフェー
スは、ユーザからのベースラインストローク種類の選択
指定を受け取ると、その選択指定されたベースラインス
トローク種類(の情報)をベースライン検出部13に設
定する。なお、初期状態では、ベースライン検出部13
には、システムで予め定められているデフォルトのベー
スラインストローク種類が設定される。したがって、ユ
ーザからのベースラインストローク種類の選択指定がな
されない場合には、このデフォルトのベースラインスト
ローク種類で示されるストロークが、ベースラインとし
て指定可能なストロークとなる。
(A1) Of the linear strokes in the handwriting,
Stroke written first (a2) Of the linear strokes in the handwriting, the last stroke written (a3) Of the linear strokes in the handwriting, the longest stroke (a4) Of the linear strokes, a stroke having a length equal to or more than a certain length written twice is used by the user through a user interface (not shown) to determine which of the above four types of strokes to use as a baseline. Select and specify. When the user interface receives the specification of the selection of the baseline stroke type from the user, the user interface sets (the information on) the selected and specified baseline stroke type in the baseline detection unit 13. In the initial state, the baseline detection unit 13
In, a default baseline stroke type predetermined in the system is set. Therefore, when the selection of the baseline stroke type is not specified by the user, the stroke indicated by the default baseline stroke type is the stroke that can be specified as the baseline.

【0025】ベースライン検出部13は、ユーザによる
文字列の筆記入力が終了すると、その時点において記憶
部12に格納されている筆跡座標の時系列(筆跡座標
列)からベースラインストローク(ベースラインとなる
ストローク)を検出する動作を、図14のフローチャー
トに従って次のように行う。なお、ユーザによる文字列
の筆記入力の終了は、ペンが座標入力面から一定期間以
上離れている状態、即ちオフフラグが付された座標デー
タが一定個数以上続いている状態を検出することで判別
できる。この他、文字列の筆記入力終了を示すアイコン
を表示しておき、当該アイコンをユーザがペンで触れた
ことを検出することで判別するようにしても構わない。
When the user completes the handwriting input of the character string, the baseline detecting unit 13 determines the baseline stroke (baseline stroke and baseline stroke) from the time series of handwriting coordinates (handwriting coordinate sequence) stored in the storage unit 12 at that time. The operation for detecting the stroke is performed as follows in accordance with the flowchart of FIG. The end of the character string input by the user can be determined by detecting a state in which the pen is away from the coordinate input surface for a certain period or more, that is, a state in which the coordinate data with the OFF flag is continued for a certain number or more. . In addition, an icon indicating the end of the handwriting input of the character string may be displayed, and the determination may be made by detecting that the user touches the icon with a pen.

【0026】ベースライン検出部13はまず、当該検出
部13内に設定されているベースラインストローク種類
が、上記(a1)〜(a4)のいずれであるかを調べる(図14
ステップS1)。
First, the baseline detection unit 13 checks which of the above (a1) to (a4) the type of the baseline stroke set in the detection unit 13 (FIG. 14).
Step S1).

【0027】もし、上記(a1)のベースラインストローク
種類(以下、種類(a1)と称する)が設定されている場合
であれば、ベースライン検出部13は、記憶部12に格
納されている座標列の示す筆跡中の直線状のストローク
のうち、最初に筆記されたストローク(の座標列)をベ
ースラインとして検出する(図14ステップS2)。
If the type (a1) of the baseline stroke (hereinafter referred to as type (a1)) is set, the baseline detection unit 13 determines the coordinates stored in the storage unit 12. Of the linear strokes in the handwriting indicated by the column, the stroke (coordinate sequence of) the first handwritten is detected as the baseline (step S2 in FIG. 14).

【0028】またベースライン検出部13は、上記(a2)
のベースラインストローク種類(以下、種類(a2)と称す
る)が設定されている場合であれば、上記筆跡中の直線
状のストロークのうち、最後に筆記されたストローク
(の座標列)をベースラインとして検出する(図14ス
テップS3)。
Further, the base line detecting section 13 performs the above (a2)
If the baseline stroke type (hereinafter referred to as type (a2)) is set, the stroke (coordinate sequence) of the last written stroke among the linear strokes in the handwriting is set as the baseline. (Step S3 in FIG. 14).

【0029】またベースライン検出部13は、上記(a3)
のベースラインストローク種類(以下、種類(a3)と称す
る)が設定されている場合であれば、上記筆跡中の直線
状のストロークのうち、長さが最大のストローク(の座
標列)をベースラインとして検出する(図14ステップ
S4)。
Further, the base line detecting section 13 performs the above (a3)
If the baseline stroke type (hereinafter referred to as type (a3)) is set, the stroke (coordinate sequence) of the longest stroke among the linear strokes in the handwriting is used as the baseline. (Step S4 in FIG. 14).

【0030】ここで、ストロークの長さとは、例えば当
該ストロークを構成する座標列を折れ線で結んだときの
各折れ線の長さの和sのことである。また、直線状のス
トロークとは、例えばストロークの長さsとストローク
の始点、終点間の距離Lとの比L/sが、次式に示すよ
うに、予め定められた閾値αを越えているストロークを
いう。
Here, the length of the stroke is, for example, the sum s of the lengths of the respective polygonal lines when the coordinate strings constituting the stroke are connected by polygonal lines. In addition, a linear stroke means that a ratio L / s of a length s of the stroke and a distance L between the start point and the end point of the stroke exceeds a predetermined threshold α as shown in the following equation. Refers to stroke.

【0031】α<L/s≦1 図2は、このストロークの長さと直線状ストロークとを
説明するためのものである。図2の例では、ストローク
21を構成する座標列を折れ線で結んだときの折れ線の
数が9であり、各折れ線の長さはs1 ,s2 ,…,s9
となっている。この場合、ストローク21の長さsは、
次式 s=s1 +s2 +…+s9 で表される。
Α <L / s ≦ 1 FIG. 2 illustrates the length of the stroke and the linear stroke. In the example of FIG. 2, the number of polygonal lines when connecting the coordinate sequence forming the stroke 21 with polygonal lines is 9, and the length of each polygonal line is s1, s2,..., S9.
It has become. In this case, the length s of the stroke 21 is
It is expressed by the following equation: s = s1 + s2 +... + S9.

【0032】また、ストローク21の始点211と終点
212との間の距離をLとすると、L/sの値はストロ
ーク21の直線らしさを表し、この値が大きいほど(1
に近いほど)直線に近いことになる。
Assuming that the distance between the start point 211 and the end point 212 of the stroke 21 is L, the value of L / s indicates the likeness of the stroke 21 as a straight line.
Is closer to a straight line.

【0033】またベースライン検出部13は、上記(a4)
のベースラインストローク種類(以下、種類(a4)と称す
る)が設定されている場合であれば、上記筆跡中の直線
状のストロークのうち、2重に書かれた一定長以上の長
さのストローク(の座標列)をベースラインとして検出
する(図14ステップS5)。
Further, the base line detecting section 13 performs the above (a4)
If the type of the baseline stroke (hereinafter referred to as type (a4)) is set, of the linear strokes in the handwriting, the strokes of a certain length or more that are written twice or more (Coordinate sequence of) is detected as a baseline (step S5 in FIG. 14).

【0034】ここで、2重に書かれた直線状のストロー
クとは、上記筆跡中の直線状のストロークのうち、図3
に示すような、2つのある一定長以上の直線状のストロ
ーク31,32の始点をb1 ,b2 、終点をe1 ,e2
とし、任意の2点p,q間の距離をD(p,q)で表す
と、次の条件 D(b1 ,b2 )<γ 且つD(e1 ,e2 )<γ または D(b1 ,e2 )<γ 且つD(e1 ,b2 )<γ を満たすストロークをいう。但し、γは予め定められた
閾値である。
Here, the linear stroke written twice is one of the linear strokes in the handwriting shown in FIG.
The start points of two linear strokes 31 and 32 having a certain length or more are b1 and b2, and the end points are e1 and e2.
When the distance between any two points p and q is represented by D (p, q), the following conditions D (b1, b2) <γ and D (e1, e2) <γ or D (b1, e2) A stroke satisfying <γ and D (e1, b2) <γ. Here, γ is a predetermined threshold.

【0035】即ち2重に書かれた直線状のストロークと
は、2つの直線状のストロークの両始点間並びに両終点
間、或いは互いの始点、終点間が(γで示される距離の
範囲内まで)それぞれ接近していることをいう。
That is, a linear stroke written in double means that the distance between both start points and both end points of two linear strokes, or the start point and end point of each other is within the range of the distance indicated by γ. ) Means approaching each other.

【0036】ベースライン検出部13は、上記ステップ
S2〜S5のいずれかによりベースラインストロークを
検出すると、そのストロークの情報を文字列情報抽出部
14に通知する(図14ステップS6)。
When the baseline detecting section 13 detects a baseline stroke in any of the above steps S2 to S5, it notifies the character string information extracting section 14 of information on the stroke (step S6 in FIG. 14).

【0037】文字列情報抽出部14は、ベースライン検
出部13により通知されたベースライン(ベースライン
ストローク)と、記憶部12に格納されている座標列の
示す筆跡の文字列との位置関係から、文字列の行方向と
縦書き/横書きの情報とを検出する。
The character string information extraction unit 14 calculates the position of the base line (base line stroke) notified by the baseline detection unit 13 and the character string of the handwriting indicated by the coordinate sequence stored in the storage unit 12. , The line direction of the character string and the information of vertical writing / horizontal writing are detected.

【0038】以下、文字列情報抽出部14による文字列
の行方向と縦書き/横書きの情報の検出の詳細につき説
明する。なお、以下の説明で出てくる文字列の上側、下
側、左側、右側とは、文字列中の各文字の上下左右が正
しくなるような方向から見た場合の文字列の上側、下
側、左側、右側を指すことにする。
Hereinafter, details of the detection of the line direction and the vertical / horizontal writing information of the character string by the character string information extracting unit 14 will be described. Note that the upper, lower, left, and right sides of the character string appearing in the following description are the upper and lower sides of the character string when viewed from the direction in which the upper, lower, left, and right of each character in the character string is correct. , Left and right.

【0039】図4は文字列が書かれる向きを説明するた
めのもので、横書きの文字列41の向きは右向き、横書
きの文字列42の向きは左向き、縦書きの文字列43の
向きは下向き、縦書きの文字列44の向きは上向きであ
る。この図4に示したような文字列が縦書きであるか或
いは横書きであるかを文字列情報抽出部14にて判別す
るためには、その文字列中の各文字の上下左右を検出す
る必要がある。しかし、文字の上下左右を検出するには
複雑な処理が必要となる。
FIG. 4 is for explaining the direction in which the character string is written. The direction of the horizontally written character string 41 is rightward, the direction of the horizontally written character string 42 is leftward, and the direction of the vertically written character string 43 is downward. The direction of the vertically written character string 44 is upward. In order for the character string information extraction unit 14 to determine whether the character string as shown in FIG. 4 is vertical writing or horizontal writing, it is necessary to detect the upper, lower, left and right of each character in the character string. There is. However, complicated processing is required to detect the top, bottom, left, and right of a character.

【0040】そこで本実施形態では、ユーザに対して、 (b1)横書きの文字列を書く場合には、文字列の下側にベ
ースラインを引く (b2)縦書きの文字列を書く場合には、文字列の右側にベ
ースラインを引く という制約を設けることにより、記憶部12に格納され
ている座標列の示す筆跡の文字列と(ベースライン検出
部13から通知される)ベースラインとの位置関係か
ら、当該文字列の縦書き/横書きの判別が文字列情報抽
出部14において簡単に行えるようにしている。
Therefore, in this embodiment, for the user, (b1) when writing a character string in horizontal writing, a baseline is drawn below the character string. (B2) When writing a character string in vertical writing, , By setting a constraint that a baseline is drawn on the right side of the character string, the position of the character string of the handwriting indicated by the coordinate sequence stored in the storage unit 12 and the position of the baseline (notified from the baseline detection unit 13) From the relationship, the character string information extraction unit 14 can easily determine whether the character string is written vertically or horizontally.

【0041】また、以下の説明で出てくる文字列及びベ
ースラインの向きの上下左右に関しても、文字列中の各
文字が上下左右で正しくなるように見た場合の上下左右
の向きのことをいう。したがって、同じ傾きで書かれた
文字列においては、縦書きと横書きのそれぞれの場合
で、2種類の向きが存在する。
In addition, regarding the vertical and horizontal directions of the character string and the baseline that appear in the following description, the upper, lower, left and right directions when each character in the character string is viewed correctly in the upper, lower, left and right directions. Say. Therefore, in a character string written with the same inclination, there are two types of directions in each of vertical writing and horizontal writing.

【0042】図5は、このような例を示すもので、文字
列51,52のように、横書きの文字列の場合には、右
向きと左向きの2種類の向きが存在し、文字列53,5
4のように、縦書きの文字列の場合には、下向きと上向
きの2種類の向きが存在する。また、文字列51〜54
に対してそれぞれ引かれるベースラインBLも、その文
字列が縦書きであるか或いは横書きであるかによって、
それぞれ2種類の向き(縦書きの文字列であれば上向き
と下向きの2種類、横書きの文字列であれば左向きと右
向きの2種類)が存在する。なお、図5において、ベー
スラインBLは実線の矢印で表されているが、それはベ
ースラインの書かれた(引かれた)方向を表すためであ
り、実際にユーザが書くベースラインは単なる直線であ
る。このことは、他の図におけるベースラインについて
も同様である。
FIG. 5 shows such an example. In the case of a horizontally written character string such as character strings 51 and 52, there are two types of directions, rightward and leftward. 5
As shown in FIG. 4, in the case of a vertically written character string, there are two types of directions, downward and upward. In addition, character strings 51 to 54
Is also drawn depending on whether the character string is written vertically or horizontally.
There are two types of directions (upward and downward for a vertically written character string and left and right for a horizontally written character string). In FIG. 5, the baseline BL is represented by a solid arrow, but this is to indicate the direction in which the baseline is written (drawn), and the baseline actually written by the user is simply a straight line. is there. This is the same for the baseline in other figures.

【0043】さて本実施形態における文字列情報抽出部
14は、記憶部12に格納されている座標列の示す(筆
跡中の)文字列と(ベースライン検出部13から通知さ
れる)ベースラインの位置関係から、当該文字列の縦書
き/横書きを判別するのに、次の2種の縦書き/横書き
判別手法(c1),(c2)のいずれか一方を適用する。
The character string information extracting unit 14 according to the present embodiment compares the character string (in the handwriting) indicated by the coordinate string stored in the storage unit 12 with the baseline (notified from the baseline detecting unit 13). To determine vertical / horizontal writing of the character string from the positional relationship, one of the following two types of vertical / horizontal writing determination methods (c1) and (c2) is applied.

【0044】まず、縦書き/横書き判別手法(c1)を適用
した場合、文字列情報抽出部14は、図15のフローチ
ャートに示すように、筆跡の文字列に対して、当該文字
列に引かれたベースラインが水平になり、且つ当該文字
列が右向きに書かれているように見た場合に、ベースラ
インの上部または下部のいずれの側に当該文字列が位置
するかを調べる処理を行う(ステップS11)。そして
文字列情報抽出部14は、ベースラインの上部に文字列
が位置するならば、当該文字列の向きを横書きと判別す
る(ステップS12)。これに対し、ベースラインの下
部に文字列が位置するならば、当該文字列の向きを縦書
きと判別する(ステップS13)。
First, when the vertical / horizontal writing discrimination method (c1) is applied, the character string information extraction unit 14 draws the character string of the handwriting on the character string as shown in the flowchart of FIG. If the baseline is horizontal and the character string appears to be written rightward, processing is performed to determine whether the character string is located on the upper or lower side of the baseline ( Step S11). Then, if the character string is located above the baseline, the character string information extraction unit 14 determines that the direction of the character string is horizontal writing (step S12). On the other hand, if the character string is located below the baseline, it is determined that the direction of the character string is vertical writing (step S13).

【0045】図9は、このような文字列の縦書き/横書
きの判別のために、ベースラインが水平になり、且つ文
字列が右向きになるように筆跡を見た場合の様子を示
す。図9の例では、同図(a),(b)に示すような筆
跡の文字列91,92は、その文字列91,92に対し
て引かれたベースラインBL1,BL2が水平になり、
且つ文字列91,92が右向きに書かれているように見
た場合には、ベースラインBL1,BL2の上部に位置
することから、横書きと判別される。
FIG. 9 shows a state in which the handwriting is viewed such that the base line is horizontal and the character string is rightward for such vertical / horizontal character string determination. In the example of FIG. 9, in the character strings 91 and 92 of the handwriting as shown in FIGS. 9A and 9B, the base lines BL1 and BL2 drawn with respect to the character strings 91 and 92 become horizontal.
In addition, when the character strings 91 and 92 appear to be written rightward, they are determined to be horizontal writing because they are located above the base lines BL1 and BL2.

【0046】同様に図9(c),(d)に示すような筆
跡の文字列93,94は、その文字列93,94に引か
れたベースラインBL3,BL4が水平になり、且つ文
字列93,94が右向きに書かれているように見た場合
には、ベースラインBL3,BL4の下部に位置するこ
とから、縦書きと判別される。
Similarly, the character strings 93 and 94 of the handwriting as shown in FIGS. 9C and 9D have the base lines BL3 and BL4 drawn by the character strings 93 and 94, and the character strings 93 and 94 are horizontal. When it is seen that 93 and 94 are written rightward, they are determined to be vertical writing because they are located below the base lines BL3 and BL4.

【0047】一方、縦書き/横書き判別手法(c2)を適用
した場合には、文字列情報抽出部14は、図16のフロ
ーチャートに示すように、筆跡の文字列に対して、当該
文字列に引かれたベースラインが水平になり、且つ右向
きに書かれているように見た場合に、ベースラインの上
部または下部のいずれの側に当該文字列が位置するかを
調べる処理を行う(ステップS21)。そして文字列情
報抽出部14は、ベースラインの上部に文字列が位置す
るならば、当該文字列の向きを横書きと判別する(ステ
ップS22)。これに対し、ベースラインの下部に文字
列が位置するならば、当該文字列の向きを縦書きと判別
する(ステップS23)。
On the other hand, when the vertical / horizontal writing discrimination method (c2) is applied, the character string information extracting unit 14 converts the character string of the handwriting into the character string as shown in the flowchart of FIG. When the drawn baseline is viewed as being horizontal and written rightward, a process is performed to determine whether the character string is located on the upper or lower side of the baseline (step S21). ). If the character string is located above the baseline, the character string information extraction unit 14 determines that the direction of the character string is horizontal writing (step S22). On the other hand, if the character string is located below the baseline, the direction of the character string is determined to be vertical writing (step S23).

【0048】図10は、このような文字列の縦書き/横
書きの判別のために、ベースラインが水平になり、且つ
右向きになるように筆跡を見た場合の様子を示す。図1
0の例では、同図(a),(b)に示すような筆跡の文
字列101,102は、その文字列101,102に引
かれたベースラインBL1,BL2が水平になり、且つ
右向きに書かれているように見た場合には、ベースライ
ンBL1,BL2の上部に位置することから、横書きと
判別される。
FIG. 10 shows a state in which the handwriting is viewed such that the baseline is horizontal and rightward for the purpose of vertical / horizontal writing of such a character string. FIG.
In the example of 0, the character strings 101 and 102 of the handwriting as shown in FIGS. 7A and 7B are such that the base lines BL1 and BL2 drawn on the character strings 101 and 102 are horizontal and rightward. When viewed as written, it is determined to be horizontal writing because it is located above the baselines BL1 and BL2.

【0049】同様に図10(c),(d)に示すような
筆跡の文字列103,104は、その文字列103,1
04に引かれたベースラインBL3,BL4が水平にな
り、且つ右向きに書かれているように見た場合には、ベ
ースラインBL3,BL4の下部に位置することから、
縦書きと判別される。
Similarly, the character strings 103 and 104 of the handwriting as shown in FIGS.
When the base lines BL3 and BL4 drawn on the line 04 are viewed horizontally and written rightward, they are located below the base lines BL3 and BL4.
It is determined as vertical writing.

【0050】ここで、ベースラインが水平になるように
見るとは、ベースラインの始点と終点とが水平に並ぶよ
うにして見るということであり、2通りの見方がある。
図8は、この2通りの見方の例を示すもので、文字列8
1に引かれたベースラインBLが水平になるようにした
際に、そのベースラインBLが、図8(a)に示すよう
に文字列81の下部に位置するような見方と、図8
(b)に示すように文字列81の上部に位置するような
見方とがある。
Here, viewing the base line so as to be horizontal means that the starting point and the end point of the baseline are viewed horizontally, and there are two views.
FIG. 8 shows an example of these two viewpoints.
When the base line BL drawn in FIG. 1 is set to be horizontal, the base line BL is positioned below the character string 81 as shown in FIG.
There is a view that is located at the top of the character string 81 as shown in FIG.

【0051】また、上記(c1)の縦書き/横書き判別手法
での文字列が右向きに書かれているように見るとは、図
9の例のように、ベースラインが水平になるように見た
状態で、文字列の始点が左側に、終点が右側に位置する
見方のことを指す。
When the character string in the vertical / horizontal discrimination method (c1) is viewed to be written rightward, as shown in the example of FIG. 9, the character string is viewed so that the baseline is horizontal. In this state, the start point of the character string is on the left and the end point is on the right.

【0052】また、上記(c2)の縦書き/横書き判別手法
でのベースラインが右向きに書かれているように見ると
は、図10の例のように、当該ベースラインが水平にな
るように見た状態で、当該ベースラインの始点が左側
に、終点が右側に位置する見方のことを指す。
When the baseline is written rightward in the vertical / horizontal discrimination method (c2), as shown in the example of FIG. 10, the baseline is horizontal. When viewed, the starting point of the baseline is on the left side, and the ending point is on the right side.

【0053】さて、上記(c1)の縦書き/横書き判別手法
で筆跡の文字列の縦書き/横書きを判別する場合、即ち
ベースラインが水平になり、且つ文字列が右向きになる
ように筆跡を見た状態でのベースラインと文字列の上下
の位置関係により縦書き/横書きを判別する場合に、文
字列が書かれる向きに制約を加えないならば、図6
(a)〜(h)に示す文字列61〜68のうち、×印が
付けられた横書き左向きの文字列63,64及び縦書き
上向きの文字列67,68は誤って判別される。
When the vertical / horizontal writing method of (c1) is used to determine the vertical / horizontal writing of the character string of the handwriting, that is, the handwriting is set so that the baseline is horizontal and the character string is rightward. In the case where vertical writing / horizontal writing is determined based on the positional relationship between the baseline and the character string in the viewed state, if there is no restriction on the direction in which the character string is written, FIG.
Of the character strings 61 to 68 shown in (a) to (h), the character strings 63 and 64 of the horizontal writing left direction and the character strings 67 and 68 of the vertical writing upward marked with X are erroneously determined.

【0054】同様に、上記(c2)の縦書き/横書き判別手
法で筆跡の文字列の縦書き/横書きを判別する場合、即
ちベースラインが水平に且つ右向きになるように筆跡を
見た状態でのベースラインと文字列の上下の位置関係に
より縦書き/横書きを判別する場合に、ベースラインが
引かれる向きに制約を加えないならば、図7(a)〜
(h)に示す文字列71〜78のうち、左向きのベース
ラインBL2,BL4が引かれた横書きの文字列72,
74及び上向きのベースラインBL6,BL8が引かれ
た縦書きの文字列76,78(図7において×印が付け
られた文字列)は誤って判別される。
Similarly, when the vertical / horizontal writing method of the above (c2) is used to determine the vertical / horizontal writing of the character string of the handwriting, that is, in a state where the handwriting is viewed so that the baseline is horizontal and rightward. If vertical / horizontal writing is determined based on the positional relationship between the baseline and the character string in the vertical direction, if there is no restriction on the direction in which the baseline is drawn, FIGS.
Of the character strings 71 to 78 shown in (h), a horizontally written character string 72 with a leftward baseline BL2, BL4 drawn.
74 and the vertically written character strings 76 and 78 on which the upward baselines BL6 and BL8 are drawn (character strings marked X in FIG. 7) are erroneously determined.

【0055】そこで本実施形態では、ユーザに対して、 (d1)縦書き/横書き判別手法(c1)を適用する場合には、
文字列を横書きなら右向きに、縦書きなら下向きに限定
して書く (d2)縦書き/横書き判別手法(c2)を適用する場合には、
ベースラインの向きを片方(ここでは、文字列が横書き
ならベースラインは右向きに、縦書きなら下向き)に限
定して書くという制約を設ける。
Therefore, in this embodiment, when the (d1) vertical / horizontal discrimination method (c1) is applied to the user,
If the character string is written horizontally, write it to the right, and if it is vertical, write it down. (D2) When applying the vertical / horizontal discrimination method (c2),
There is a restriction that the direction of the baseline is limited to one direction (here, the base line is directed rightward if the character string is written horizontally, and downward if the character string is written vertically).

【0056】しかし、上記の制約は、文字列を縦書き或
いは横書きする際の、ごく自然なものであり、ユーザに
対して負担を強いるものではない。ここで、文字列情報
抽出部14における上記判別手法(c1)に従う文字列の縦
書き/横書き判別処理(図15ステップS11)の具体
的な手順につき、図17のフローチャートを参照して説
明する。
However, the above-described restrictions are very natural when writing a character string vertically or horizontally, and do not impose a burden on the user. Here, a specific procedure of the vertical / horizontal character string discrimination processing (step S11 in FIG. 15) in the character string information extraction unit 14 according to the above-described discrimination method (c1) will be described with reference to the flowchart in FIG.

【0057】まず文字列情報抽出部14は、記憶部12
に格納されている筆跡の文字列と(ベースライン検出部
13により検出された)ベースラインの座標列から、文
字列部分の始点から終点へ向かう方向ベクトルPと、ベ
ースラインの始点(xs ,ys )から終点(xe ,ye
)へ向かう方向ベクトルQを求め(ステップS3
1)、その方向ベクトルPとQの内積(P,Q)が (P,Q)<0 の場合には、(xs ,ys )と(xe ,ye )を交換す
る(ステップS32,S33)。
First, the character string information extraction unit 14
, A direction vector P from the start point to the end point of the character string portion, and a start point (xs, ys) of the base line from the character string of the handwriting stored in the character string and the coordinate line of the baseline (detected by the baseline detection unit 13). ) To the end point (xe, ye)
) Is obtained (step S3).
1) If the inner product (P, Q) of the direction vectors P and Q is (P, Q) <0, (xs, ys) and (xe, ye) are exchanged (steps S32 and S33).

【0058】次に文字列情報抽出部14は、ベースライ
ンの始点から終点への直線の式 f(x,y)=(xe −xs )(y−ys )+(ys −
ye )(x−xs )=0 を求める(ステップS34)。
Next, the character string information extraction unit 14 calculates the equation f (x, y) = (xe-xs) (y-ys) + (ys-) from the start point to the end point of the baseline.
ye) (x-xs) = 0 is obtained (step S34).

【0059】次に文字列情報抽出部14は、文字列部分
の座標列(xi ,yi )(i=1,2,…,N)の重心
の座標(xg ,yg )を次式に従って求める(ステップ
S35)。
Next, the character string information extracting unit 14 obtains the coordinates (xg, yg) of the center of gravity of the coordinate string (xi, yi) (i = 1, 2,..., N) of the character string part according to the following equation ( Step S35).

【0060】 xg =(1/N)Σxi ,yg =(1/N)Σyi 但し、Σxi ,Σyi は、それぞれxi ,yi のi=1
からi=Nまでの総和である。
Xg = (1 / N) Σxi, yg = (1 / N) Σyi where, Σxi and Σyi are i = 1 of xi and yi, respectively.
To i = N.

【0061】次に文字列情報抽出部14は、ステップS
35で求めた文字列部分の重心の座標(xg ,yg )を
上記ベースラインの直線の式f(x,y)に代入し、そ
のf(xg ,yg )の正負により、ベースラインと文字
列部分の重心との位置関係、即ちベースラインが水平に
なり、且つ文字列が右向きになるように筆跡を見た状態
でのベースラインと文字列の上下の位置関係を調べて、
該当する文字列が縦書きであるか或いは横書きであるか
を判別する(ステップS36)。
Next, the character string information extraction unit 14 determines in step S
Substituting the coordinates (xg, yg) of the center of gravity of the character string portion obtained in 35 into the above-mentioned equation f (x, y) of the straight line of the base line, and determining whether the base line and the character string are positive or negative by f (xg, yg) By examining the positional relationship with the center of gravity of the part, that is, the vertical and horizontal positional relationship between the baseline and the character string while looking at the handwriting so that the baseline is horizontal and the character string is rightward,
It is determined whether the corresponding character string is written vertically or horizontally (step S36).

【0062】ここでは、f(xg ,yg )>0の場合
に、文字列が横書きであると判断され、f(xg ,yg
)<0の場合に、文字列が縦書きであると判断され
る。次に、文字列情報抽出部14における上記判別手法
(c2)に従う文字列の縦書き/横書き判別処理(図16ス
テップS21)の具体的な手順につき、図18のフロー
チャートを参照して説明する。
Here, when f (xg, yg)> 0, it is determined that the character string is horizontal writing, and f (xg, yg)
If <0), it is determined that the character string is written vertically. Next, the above-described determination method in the character string information extraction unit 14
The specific procedure of the vertical / horizontal character string discrimination processing (step S21 in FIG. 16) according to (c2) will be described with reference to the flowchart in FIG.

【0063】ここでの手順は、図17のフローチャート
中のステップS31〜S33(に相当する処理)が不要
な点を除けば、上記判別手法(c1)に従う文字列の縦書き
/横書き判別処理の手順と同様であり、図17のフロー
チャート中のステップS34〜S36に相当するステッ
プS41〜S43の処理により、文字列の縦書き/横書
きが判別される。
The procedure here is the same as that in the vertical / horizontal writing discrimination process according to the discrimination method (c1) except that steps (S31 to S33) in the flowchart of FIG. 17 are unnecessary. The procedure is the same, and the vertical / horizontal writing of the character string is determined by the processing of steps S41 to S43 corresponding to steps S34 to S36 in the flowchart of FIG.

【0064】次に、文字列情報抽出部14における文字
列の行方向の検出手法について説明する。この文字列の
行方向の検出手法は、縦書き/横書きの判別手法として
上記(C1)と(c2)のいずれを適用するかで異なり、(C1)の
適用時のそれを(e1)と呼び、(C2)の適用時のそれを(e2)
と呼ぶ。なお、文字列の行方向とは、横書きの場合に
は、文字列の書かれた向きによらず、文字列が左から右
に向かう方向のことを意味する。また、縦書きの場合に
も、文字列の書かれた向きによらず、文字列が上から下
に向かう方向のことを意味する。
Next, a description will be given of a method of detecting the line direction of a character string in the character string information extraction unit 14. The method of detecting the line direction of this character string differs depending on whether the above (C1) or (c2) is applied as a vertical / horizontal writing discrimination method, and it is called (e1) when (C1) is applied. , When applying (C2), (e2)
Call. Note that, in the case of horizontal writing, the line direction of the character string means a direction in which the character string goes from left to right regardless of the written direction of the character string. Also, in the case of vertical writing, it means a direction in which a character string goes from top to bottom, regardless of the written direction of the character string.

【0065】図11は文字列の行方向を説明するための
ものであり、各文字列111〜114に付された点線の
矢印RD1〜RD4の向きが、当該文字列111〜11
4の行方向を示す。
FIG. 11 is for explaining the line direction of the character strings. The directions of the dotted arrows RD1 to RD4 attached to the character strings 111 to 114 correspond to the character strings 111 to 11 respectively.
4 shows the row direction.

【0066】文字列情報抽出部14は、縦書き/横書き
判別手法(c1)の適用時には、文字列の行方向検出手法(e
1)に従い、ベースライン検出部13により検出されたベ
ースラインの始点と終点のうち、文字列の始点に近い方
の点から文字列の終点に近い方の点へ向かうベクトルの
方向を、当該文字列の行方向とする(図15ステップS
14)。図12は、この検出手法(e1)により検出された
文字列の行方向の例を示すもので、各文字列121〜1
24に付された点線の矢印RD1〜RD4の向きが、検
出された(文字列の)行方向を示す。なお、実線の矢印
BL1〜BL4はベースラインとその向きを示す。
When applying the vertical / horizontal discrimination method (c1), the character string information extraction unit 14 detects the line direction of the character string (e1).
According to 1), the direction of the vector from the point closer to the start point of the character string to the point closer to the end point of the character string between the start point and the end point of the baseline detected by the baseline detection unit 13 is represented by the character Row direction of column (step S in FIG. 15)
14). FIG. 12 shows an example of the line direction of a character string detected by this detection method (e1).
The direction of the dotted arrows RD1 to RD4 attached to 24 indicates the detected (character string) line direction. The solid arrows BL1 to BL4 indicate the baseline and its direction.

【0067】一方、縦書き/横書き判別手法(c2)の適用
時には、文字列情報抽出部14は文字列の行方向検出手
法(e2)に従って、ベースライン検出部13により検出さ
れたベースラインの始点から終点に向かうベクトルの方
向を、文字列の行方向とする(図16ステップS2
4)。図13は、この検出手法(e2)により検出された文
字列の行方向の例を示すもので、各文字列131〜13
4に付された点線の矢印RD1〜RD4の向きが、検出
された(文字列の)行方向を示す。なお、実線の矢印B
L1〜BL4はベースラインとその向きを示す。
On the other hand, when the vertical writing / horizontal writing discrimination method (c2) is applied, the character string information extraction unit 14 determines the starting point of the baseline detected by the baseline detection unit 13 according to the character string line direction detection method (e2). The direction of the vector from to the end point is the line direction of the character string (step S2 in FIG. 16).
4). FIG. 13 shows an example of the line direction of a character string detected by this detection method (e2).
The direction of the dotted arrows RD1 to RD4 attached to 4 indicates the detected (character string) line direction. The solid arrow B
L1 to BL4 indicate a baseline and its direction.

【0068】文字列情報抽出部14は、以上のようにし
て記憶部12に格納されている筆跡の文字列と(ベース
ライン検出部13により検出された)ベースラインとの
位置関係から、当該文字列の行方向と、当該文字列が縦
書きであるか或いは横書きであるかの情報を取得する
と、その情報(文字列情報)を行補正部15に通知する
(図15ステップS15または図16ステップS2
5)。
The character string information extracting unit 14 determines the character string based on the positional relationship between the character string of the handwriting stored in the storage unit 12 and the baseline (detected by the baseline detecting unit 13) as described above. When the information on the row direction of the column and whether the character string is written vertically or horizontally is obtained, the information (character string information) is notified to the row correction unit 15 (step S15 in FIG. 15 or step S15 in FIG. 16). S2
5).

【0069】行補正部15は、文字列情報抽出部14か
ら文字列情報を受け取ると、当該文字列情報の示す行方
向と縦書き/横書きの別をもとに、記憶部12に格納さ
れている筆跡の文字列の各文字の上下左右が、図4の例
のように正しく位置するように(具体的には、縦書きな
らばy軸に平行となり、横書きならばx軸に平行となる
ように)、その文字列部分の座標列に対して回転変換を
施す。行補正部15は、記憶部12に格納されている筆
跡の文字列部分の座標列に対して回転変換を施すと、即
ち文字列の行方向の補正を行うと、その旨を文字列認識
部16に通知する。
When the line correction unit 15 receives the character string information from the character string information extraction unit 14, it is stored in the storage unit 12 based on the line direction indicated by the character string information and the vertical / horizontal writing. The upper, lower, left, and right sides of each character of the character string of the handwriting are correctly positioned as in the example of FIG. 4 (specifically, vertical writing is parallel to the y-axis, and horizontal writing is parallel to the x-axis). As described above, a rotation conversion is performed on the coordinate sequence of the character string portion. The line correction unit 15 performs the rotation conversion on the coordinate sequence of the character string portion of the handwriting stored in the storage unit 12, that is, when the line direction of the character string is corrected, the character string recognition unit Notify 16.

【0070】すると文字列認識部16は、行補正部15
による行補正が施された文字列部分に対し、縦書きであ
るか或いは横書きであるかに応じて、1文字ずつ文字を
切り出しながら認識処理を行う。ここで、文字列から文
字を切り出す手法としては、例えば「候補文字ラティス
法による枠無し筆記文字列のオンライン文字認識」(電
子通信学会論文集 Vol.J68-D No.4,p765,1985)に記載
されている周知の切り出し手法を用いればよい。また、
文字認識の手法としては、例えば特開平3−21157
号に記載されている周知のオンライン文字認識手法を用
いればよい。
Then, the character string recognizing section 16 changes the line correcting section 15
The character string portion subjected to the line correction according to the above is subjected to recognition processing while cutting out characters one by one according to whether the character string is written vertically or horizontally. Here, as a method of extracting characters from a character string, for example, “Online Character Recognition of Borderless Written Character String by Candidate Character Lattice Method” (Transactions of the Institute of Electronics and Communication Engineers Vol.J68-D No.4, p765, 1985) The described well-known cutting-out method may be used. Also,
As a method of character recognition, for example,
A well-known online character recognition method described in the issue may be used.

【0071】以上に述べた図1の構成の枠なしオンライ
ン文字認識装置の各部の機能は、タブレットなどの座標
入力面を持つペン入力パーソナルコンピュータや携帯情
報端末に代表される情報処理機器を、主としてベースラ
イン検出部13、文字列情報抽出部14、行補正部15
及び文字列認識部16として機能させるためのプログラ
ムを記録した磁気ディスク(フロッピーディスク)、光
ディスク(CD−ROM,DVDなど)、半導体メモリ
などの記憶媒体を用い、当該記憶媒体を上記情報処理機
器に装着して、当該記憶媒体に記録されているプログラ
ムを上記情報処理機器で読み取り実行させることにより
実現される。
The function of each section of the above-described frameless online character recognition apparatus having the configuration of FIG. 1 is mainly performed by an information processing device represented by a pen input personal computer having a coordinate input surface such as a tablet or a portable information terminal. Baseline detector 13, character string information extractor 14, line corrector 15
And a storage medium such as a magnetic disk (floppy disk), an optical disk (CD-ROM, DVD, etc.), a semiconductor memory, etc., on which a program for functioning as the character string recognizing unit 16 is recorded. It is realized by mounting and reading and executing the program recorded in the storage medium by the information processing device.

【0072】このようにすると、上記ペン入力パーソナ
ルコンピュータや携帯情報端末を、タブレットなどの座
標入力面に筆記入力された手書き筆跡を文字として認識
し、得られた情報によって、コンピュータを操作した
り、情報をコンピュータに入力したり、入力したコンピ
ュータ上の情報を編集したりすることが効率的に行え
る、携帯性に優れ、しかもキーボードに不慣れな人でも
扱いやすいオンライン手書き文字入力装置を構築でき
る。
In this way, the pen-input personal computer or portable information terminal recognizes handwritten handwriting input by hand on a coordinate input surface of a tablet or the like as a character, and operates the computer or the like based on the obtained information. It is possible to construct an online handwritten character input device which can efficiently input information into a computer and edit information input on the computer, has excellent portability, and is easy to handle even for a person who is unfamiliar with a keyboard.

【0073】なお、本発明は前記実施形態に限定される
ものではなく、その要旨を逸脱しない範囲で、種々変形
して実施することができる。例えば、前記実施形態で
は、ユーザが選択指定可能なベースラインストロークの
種類を(a1)〜(a4)の4種類としたが、これに限るもので
はなく、また使用可能なベースラインストロークが固定
されているものであっても構わない。
The present invention is not limited to the above-described embodiment, and can be implemented in various modifications without departing from the scope of the invention. For example, in the above-described embodiment, the types of the baseline strokes that can be selected and designated by the user are four types (a1) to (a4), but are not limited thereto, and the available baseline strokes are fixed. It may be something that is.

【0074】また前記実施形態では、文字列が縦書きで
あるか或いは横書きであるかの判別を、縦書き/横書き
判別手法(C1)の適用時では、ベースラインが水平にな
り、且つ文字列が右向きに書かれているように筆跡を見
た場合の、ベースラインと文字列との位置関係をもとに
行い、縦書き/横書き判別手法(C2)では、ベースライン
が水平になり、且つ右向きに書かれているように筆跡を
見た場合の、ベースラインと文字列との位置関係をもと
に行うようにしているが、これに限るものではなく、例
えば判別手法(C1)において文字列が左向きに書かれてい
るように筆跡を見るようにし、判別手法(C2)においてベ
ースラインが左向きに書かれているように筆跡を見るよ
うにしても構わない。この場合、ベースラインと文字列
との位置関係(上下の関係)は縦書きと横書きとで前記
実施形態と逆になる。
In the above embodiment, the determination whether the character string is vertical writing or horizontal writing is made by applying the vertical writing / horizontal writing determination method (C1). Is performed based on the positional relationship between the baseline and the character string when the handwriting is viewed as if it were written rightward. In the vertical / horizontal discrimination method (C2), the baseline is horizontal, and It is based on the positional relationship between the baseline and the character string when looking at the handwriting as if it were written rightward, but this is not a limitation.For example, in the discrimination method (C1), The handwriting may be viewed as if the column is written leftward, and the handwriting may be viewed as if the baseline was written leftward in the determination method (C2). In this case, the positional relationship (upper / lower relationship) between the baseline and the character string is reversed between the vertical writing and the horizontal writing in the above embodiment.

【0075】この他、文字列の行方向の判別を、ベース
ラインの向きが鉛直方向となり、且つ文字列が上向きま
たは下向きのうちの所定の向きに書かれているように筆
跡を見た場合の、ベースラインと文字列との位置関係
(左右の関係)をもとに行うとか、ベースラインの向き
が鉛直方向となり、且つ上向きまたは下向きのうちの所
定の向きに書かれているように筆跡を見た場合の、ベー
スラインと文字列との位置関係(左右の関係)をもとに
行うようにしても構わない。
In addition, the determination of the line direction of the character string is made when the handwriting is viewed as if the direction of the base line was vertical and the character string was written in a predetermined direction of upward or downward. The handwriting may be performed based on the positional relationship (left-right relationship) between the baseline and the character string, or as if the direction of the baseline is vertical and written in a predetermined direction, upward or downward. It may be performed based on the positional relationship (left-right relationship) between the baseline and the character string when viewed.

【0076】[0076]

【発明の効果】以上詳述したように本発明によれば、ユ
ーザが任意の書き方で且つ任意の方向に文字列を筆記入
力することを許しながら、その文字列の認識に必要な文
字列の行方向の検出、更には文字列の縦書き/横書きの
判別が、文字列の筆記時にユーザが当該文字列の傾きを
示すストロークを書くだけで簡単に行えるため、認識速
度及び認識精度が向上する。
As described in detail above, according to the present invention, while allowing a user to write and input a character string in an arbitrary writing style and in an arbitrary direction, a character string necessary for recognizing the character string is input. The detection of the line direction and the determination of the vertical / horizontal writing of a character string can be easily performed only by the user writing a stroke indicating the inclination of the character string when writing the character string, so that the recognition speed and the recognition accuracy are improved. .

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施形態に係る枠なしオンライン文
字認識装置の概略構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of a frameless online character recognition device according to an embodiment of the present invention.

【図2】同実施形態における直線状のストロークの検出
法を説明するための図。
FIG. 2 is an exemplary view for explaining a method of detecting a linear stroke in the embodiment.

【図3】同実施形態における2重に書かれた直線状のス
トロークの検出法を説明するための図。
FIG. 3 is an exemplary view for explaining a method of detecting a linearly written stroke in the embodiment;

【図4】文字列が書かれる向きを説明するためのもの
で、縦書き横書きそれぞれの文字列を、文字列中の各文
字が上下左右正しくなるように見た状態を示す図。
FIG. 4 is a view for explaining a direction in which a character string is written, and shows a state in which each character string in the vertical and horizontal writing is viewed so that each character in the character string is vertically and horizontally correctly.

【図5】縦書き横書きそれぞれの文字列に対するベース
ラインの2種類の向きを説明するための図。
FIG. 5 is a view for explaining two types of directions of a baseline with respect to each character string of vertical writing and horizontal writing.

【図6】ベースラインが水平になり、且つ文字列が右向
きになるように筆跡を見た状態を、縦書き/横書きが正
しく判定される筆跡と誤って判定される筆跡のそれぞれ
について示す図。
FIG. 6 is a diagram illustrating a state in which a handwriting is viewed such that a baseline is horizontal and a character string is directed rightward, for each of handwriting in which vertical writing / horizontal writing is correctly determined and handwriting which is erroneously determined;

【図7】ベースラインが水平且つ右向きになるように筆
跡を見た状態を、縦書き/横書きが正しく判定される筆
跡と誤って判定される筆跡のそれぞれについて示す図。
FIG. 7 is a diagram illustrating a state in which a handwriting is viewed so that the baseline is horizontal and rightward, for each of handwriting in which vertical writing / horizontal writing is correctly determined and handwriting in which erroneous determination is made;

【図8】ベースラインが水平になるように筆跡を見る場
合に2通りの見方があることを説明するための図。
FIG. 8 is a view for explaining that there are two ways of looking at handwriting so that the baseline is horizontal.

【図9】ベースラインが水平になり、且つ文字列が右向
きになるように筆跡を見た状態での、ベースラインと文
字列との位置関係を説明するための図。
FIG. 9 is a view for explaining the positional relationship between the baseline and the character string when the handwriting is viewed so that the baseline is horizontal and the character string is rightward.

【図10】ベースラインが水平且つ右向きになるように
筆跡を見た状態での、ベースラインと文字列との位置関
係を説明するための図。
FIG. 10 is a view for explaining a positional relationship between a baseline and a character string when the handwriting is viewed so that the baseline is horizontal and rightward.

【図11】文字列の行方向を説明するための図。FIG. 11 is a diagram for explaining the line direction of a character string.

【図12】検出手法(e1)により検出された文字列の行方
向の例を示す図。
FIG. 12 is a diagram showing an example of a character string detected by a detection method (e1) in the row direction.

【図13】検出手法(e2)により検出された文字列の行方
向の例を示す図。
FIG. 13 is a diagram showing an example of a character string detected by a detection method (e2) in the row direction.

【図14】図1中のベースライン検出部13によるベー
スライン検出処理を説明するためのフローチャート。
FIG. 14 is a flowchart for explaining a baseline detection process by a baseline detection unit 13 in FIG. 1;

【図15】図1中の文字列情報抽出部14による判別手
法(C1)を用いた縦書き/横書き判別処理を含む文字列情
報抽出処理を説明するためのフローチャート。
FIG. 15 is a flowchart for explaining character string information extraction processing including vertical / horizontal writing determination processing using a determination method (C1) by the character string information extraction unit 14 in FIG. 1;

【図16】図1中の文字列情報抽出部14による判別手
法(C2)を用いた縦書き/横書き判別処理を含む文字列情
報抽出処理を説明するためのフローチャート。
FIG. 16 is a flowchart for explaining character string information extraction processing including vertical / horizontal writing determination processing using a determination method (C2) by the character string information extraction unit 14 in FIG. 1;

【図17】上記判別手法(C1)を用いた縦書き/横書き判
別処理の具体的な手順を説明するためのフローチャー
ト。
FIG. 17 is a flowchart for explaining a specific procedure of vertical / horizontal writing discrimination processing using the discrimination method (C1).

【図18】上記判別手法(C2)を用いた縦書き/横書き判
別処理の具体的な手順を説明するためのフローチャー
ト。
FIG. 18 is a flowchart for explaining a specific procedure of vertical / horizontal writing discrimination processing using the discrimination method (C2).

【図19】ユーザから見た水平、鉛直方向と、x軸、y
軸の方向との関係を示す図。
FIG. 19 shows the horizontal and vertical directions as viewed from the user, and the x axis and y.
The figure which shows the relationship with the direction of an axis.

【符号の説明】[Explanation of symbols]

11…筆跡入力部、 12…記憶部、 13…ベースライン検出部、 14…文字列情報抽出部、 15…行補正部、 16…文字列認識部、 BL,BL1〜BL8…ベースライン。 11: Handwriting input unit, 12: Storage unit, 13: Baseline detection unit, 14: Character string information extraction unit, 15: Line correction unit, 16: Character string recognition unit, BL, BL1 to BL8: Baseline.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 座標入力面に筆記された筆跡を2次元座
標の時系列として検出・入力する筆跡入力手段と、 前記筆跡入力手段により入力された筆跡を構成する複数
のストロークから、当該筆跡中の文字列の傾きを示すス
トロークであるベースラインストロークを検出するベー
スライン検出手段と、 前記ベースライン検出手段により検出されたベースライ
ンストロークから文字列の行方向を検出する文字列情報
抽出手段と、 前記文字列情報抽出手段による文字列の行方向の検出結
果をもとに前記筆跡中の文字列の回転を行う行補正手段
と、 前記行補正手段により回転された文字列の認識を行う文
字列認識手段とを具備することを特徴とする枠なしオン
ライン文字認識装置。
1. A handwriting input unit for detecting and inputting a handwriting written on a coordinate input surface as a two-dimensional coordinate time series, and a plurality of strokes constituting the handwriting input by the handwriting input unit, the handwriting being input into the handwriting. Baseline detection means for detecting a baseline stroke that is a stroke indicating the inclination of the character string, character string information extraction means for detecting the line direction of the character string from the baseline stroke detected by the baseline detection means, A line correcting means for rotating the character string in the handwriting based on the detection result of the character string in the line direction by the character string information extracting means; and a character string for recognizing the character string rotated by the line correcting means. A frameless online character recognition device comprising: a recognition unit.
【請求項2】 座標入力面に筆記された筆跡を2次元座
標の時系列として検出・入力する筆跡入力手段と、 前記筆跡入力手段により入力された筆跡を構成する複数
のストロークから、当該筆跡中の文字列の傾きを示すス
トロークであるベースラインストロークを検出するベー
スライン検出手段と、 前記ベースライン検出手段により検出されたベースライ
ンストロークから文字列の行方向を検出すると共に、予
め定められた文字列とベースラインとの位置関係の制約
に従って、前記検出されたベースラインストロークと前
記筆跡中の文字列との位置関係をもとに当該文字列が縦
書きであるか或いは横書きであるかを判別する文字列情
報抽出手段と、 前記文字列情報抽出手段による文字列の行方向の検出結
果及び文字列の縦書き/横書き判別結果をもとに前記筆
跡中の文字列の回転を行う行補正手段と、 前記行補正手段により回転された文字列の認識を行う文
字列認識手段とを具備することを特徴とする枠なしオン
ライン文字認識装置。
2. A handwriting input unit for detecting and inputting a handwriting written on a coordinate input surface as a time series of two-dimensional coordinates, and a plurality of strokes constituting the handwriting input by the handwriting input unit. A baseline detection means for detecting a baseline stroke which is a stroke indicating the inclination of the character string of the character string; and detecting a line direction of the character string from the baseline stroke detected by the baseline detection means, and determining a predetermined character. Based on the positional relationship between the line and the baseline, it is determined whether the character string is written vertically or horizontally based on the positional relationship between the detected baseline stroke and the character string in the handwriting. Character string information extracting means, a detection result of a character string in a row direction by the character string information extracting means, and a vertical / horizontal writing determination result of the character string Line-correcting means for rotating a character string in the handwriting based on the character string; and a character string recognizing means for recognizing the character string rotated by the line correcting means. Recognition device.
【請求項3】 前記ベースライン検出手段は、前記筆跡
を構成する複数のストロークの中から、最初に書かれた
直線状のストロークを前記ベースラインストロークとし
て検出することを特徴とする請求項1または請求項2記
載の枠なしオンライン文字認識装置。
3. The method according to claim 1, wherein the baseline detection unit detects a first linear stroke as the baseline stroke from a plurality of strokes forming the handwriting. The online character recognition apparatus without a frame according to claim 2.
【請求項4】 前記ベースライン検出手段は、前記筆跡
を構成する複数のストロークの中から、最後に書かれた
直線状のストロークを前記ベースラインストロークとし
て検出することを特徴とする請求項1または請求項2記
載の枠なしオンライン文字認識装置。
4. The method according to claim 1, wherein the baseline detection unit detects a last linear stroke as the baseline stroke from a plurality of strokes forming the handwriting. The online character recognition apparatus without a frame according to claim 2.
【請求項5】 前記ベースライン検出手段は、前記筆跡
を構成する複数のストロークの中から、最長の直線状の
ストロークを前記ベースラインストロークとして検出す
ることを特徴とする請求項1または請求項2記載の枠な
しオンライン文字認識装置。
5. The apparatus according to claim 1, wherein the baseline detecting means detects a longest linear stroke as the baseline stroke from a plurality of strokes constituting the handwriting. Online character recognition device without the described frame.
【請求項6】 前記ベースライン検出手段は、前記筆跡
を構成する複数のストロークの中から、2重に書かれた
一定長以上の直線状のストロークを前記ベースラインス
トロークとして検出することを特徴とする請求項1また
は請求項2記載の枠なしオンライン文字認識装置。
6. A method according to claim 1, wherein said baseline detecting means detects, as the baseline stroke, a linear stroke having a predetermined length or more, which is written twice, from a plurality of strokes constituting the handwriting. 3. The frameless online character recognition device according to claim 1 or 2, wherein:
【請求項7】 前記ベースライン検出手段は、最初に書
かれた直線状のストローク、最後に書かれた直線状のス
トローク、最長の直線状のストローク、及び2重に書か
れた一定長以上の直線状のストロークのうちの予め定め
られた少なくとも2つのストロークの中から選択された
ストロークを、前記筆跡を構成する複数のストロークの
中から前記ベースラインストロークとして検出すること
を特徴とする請求項1または請求項2記載の枠なしオン
ライン文字認識装置。
7. The system according to claim 1, wherein the first linear stroke, the last linear stroke, the longest linear stroke, and the double linear stroke having a predetermined length or more. 2. A stroke selected from at least two predetermined strokes of a linear stroke is detected as the baseline stroke from a plurality of strokes constituting the handwriting. Or the frameless online character recognition device according to claim 2.
【請求項8】 座標入力面に筆記された筆跡を2次元座
標の時系列として検出・入力する第1のステップと、 前記第1のステップで入力した筆跡を構成する複数のス
トロークから、当該筆跡中の文字列の傾きを示すストロ
ークであるベースラインストロークを検出する第2のス
テップと、 前記第2のステップで検出したベースラインストローク
から文字列の行方向を検出する第3のステップと、 前記第3のステップでの文字列の行方向の検出結果をも
とに前記筆跡中の文字列の回転を行う第4ステップと、 前記第4のステップで回転された文字列の認識を行う第
4のステップとを具備することを特徴とする枠なしオン
ライン文字認識方法。
8. A first step of detecting and inputting a handwriting written on a coordinate input surface as a time series of two-dimensional coordinates; and A second step of detecting a baseline stroke which is a stroke indicating the inclination of the middle character string, a third step of detecting a line direction of the character string from the baseline stroke detected in the second step, A fourth step of rotating the character string in the handwriting based on the detection result of the line direction of the character string in the third step; and a fourth step of recognizing the character string rotated in the fourth step. And a frameless online character recognition method.
【請求項9】 座標入力面に筆記された筆跡を2次元座
標の時系列として検出・入力する第1のステップと、 前記第1のステップで入力した筆跡を構成する複数のス
トロークから、当該筆跡中の文字列の傾きを示すストロ
ークであるベースラインストロークを検出する第2のス
テップと、 前記第2のステップで検出したベースラインストローク
から文字列の行方向を検出すると共に、予め定められた
文字列とベースラインとの位置関係の制約に従って、前
記検出したベースラインストロークと前記筆跡中の文字
列との位置関係をもとに当該文字列が縦書きであるか或
いは横書きであるかを判別する第3のステップと、 前記第3のステップでの文字列の行方向の検出結果及び
文字列の縦書き/横書き判別結果をもとに前記筆跡中の
文字列の回転を行う第4ステップと、 前記第4のステップで回転された文字列の認識を行う第
4のステップとを具備することを特徴とする枠なしオン
ライン文字認識方法。
9. A first step of detecting and inputting a handwriting written on a coordinate input surface as a time series of two-dimensional coordinates, and a plurality of strokes constituting the handwriting input in the first step, wherein the handwriting is obtained. A second step of detecting a baseline stroke, which is a stroke indicating the inclination of the character string in the middle, detecting a line direction of the character string from the baseline stroke detected in the second step, and According to the restriction on the positional relationship between the column and the baseline, it is determined whether the character string is written vertically or horizontally based on the positional relationship between the detected baseline stroke and the character string in the handwriting. A third step; rotation of the character string in the handwriting based on the detection result of the line direction of the character string and the result of vertical / horizontal writing determination of the character string in the third step; And a fourth step of recognizing the character string rotated in the fourth step.
JP8250556A 1996-09-20 1996-09-20 Frameless on-line character recognition device Pending JPH1097591A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8250556A JPH1097591A (en) 1996-09-20 1996-09-20 Frameless on-line character recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8250556A JPH1097591A (en) 1996-09-20 1996-09-20 Frameless on-line character recognition device

Publications (1)

Publication Number Publication Date
JPH1097591A true JPH1097591A (en) 1998-04-14

Family

ID=17209672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8250556A Pending JPH1097591A (en) 1996-09-20 1996-09-20 Frameless on-line character recognition device

Country Status (1)

Country Link
JP (1) JPH1097591A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6600834B1 (en) 1999-01-13 2003-07-29 International Business Machines Corporation Handwriting information processing system with character segmentation user interface
JP5284523B1 (en) * 2012-09-05 2013-09-11 株式会社東芝 Information processing system, program, and processing method of information processing system
JP2015225526A (en) * 2014-05-28 2015-12-14 株式会社東芝 Electronic device and method
CN114691009A (en) * 2022-03-14 2022-07-01 深圳汉王友基科技有限公司 Method, system, device and medium for always forward displaying handwriting data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6600834B1 (en) 1999-01-13 2003-07-29 International Business Machines Corporation Handwriting information processing system with character segmentation user interface
JP5284523B1 (en) * 2012-09-05 2013-09-11 株式会社東芝 Information processing system, program, and processing method of information processing system
JP2015225526A (en) * 2014-05-28 2015-12-14 株式会社東芝 Electronic device and method
CN114691009A (en) * 2022-03-14 2022-07-01 深圳汉王友基科技有限公司 Method, system, device and medium for always forward displaying handwriting data
CN114691009B (en) * 2022-03-14 2024-10-01 深圳汉王友基科技有限公司 Method, system, device and medium for always displaying handwriting data in forward direction

Similar Documents

Publication Publication Date Title
US7167165B2 (en) Temporary lines for writing
KR102489578B1 (en) Formula inputting method, apparatus and electronic device
JP5604279B2 (en) Gesture recognition apparatus, method, program, and computer-readable medium storing the program
EP3104305B1 (en) Apparatus and method of reducing storage of handwritten strokes
US9292739B1 (en) Automated recognition of text utilizing multiple images
JP4560062B2 (en) Handwriting determination apparatus, method, and program
JP4936753B2 (en) Scratch-out gesture recognition based on word or character boundary
CN1218274C (en) On-line handwrited script mode identifying editing device and method
CN111931710B (en) Online handwritten character recognition method and device, electronic equipment and storage medium
KR20100135281A (en) Methods and tools for recognizing hand drawn tables
CN104008363A (en) Handwriting track detection, standardization and online-identification and abnormal radical collection
JPH06332610A (en) Handwriting information input processing method
US8494277B2 (en) Handwritten character recognition based on frequency variations in characters
JP3795238B2 (en) Document image processing apparatus and document image processing method
JP2007188512A (en) Character recognition method, character recognition program, and computer-readable recording medium on which character recognition program is recorded
JP2018067298A (en) Handwritten content editing device and handwritten content editing method
JP3958003B2 (en) Character recognition method, character recognition program, computer-readable recording medium recording character recognition program, and character recognition apparatus
JPH1097591A (en) Frameless on-line character recognition device
WO2004095361A1 (en) Online hand-written character input device and method
JP2761679B2 (en) Online handwritten character recognition device
JP2007172640A (en) Character recognition method, character recognition program, and computer-readable recording medium on which character recognition program is recorded
JP6030172B2 (en) Handwritten character search device, method and program
JP4882929B2 (en) Image processing apparatus and image processing program
JP2007172639A (en) Character recognition method, character recognition program, and computer-readable recording medium on which character recognition program is recorded
JP6897095B2 (en) Image processing program, image processing device and image processing method