JP2016157314A - Character recognition device, character recognition program, character recognition system, and character recognition method - Google Patents

Character recognition device, character recognition program, character recognition system, and character recognition method Download PDF

Info

Publication number
JP2016157314A
JP2016157314A JP2015035490A JP2015035490A JP2016157314A JP 2016157314 A JP2016157314 A JP 2016157314A JP 2015035490 A JP2015035490 A JP 2015035490A JP 2015035490 A JP2015035490 A JP 2015035490A JP 2016157314 A JP2016157314 A JP 2016157314A
Authority
JP
Japan
Prior art keywords
determination
character
area
determination area
input
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.)
Granted
Application number
JP2015035490A
Other languages
Japanese (ja)
Other versions
JP6052636B2 (en
Inventor
絢也 片山
Junya Katayama
絢也 片山
佳之 上野
Yoshiyuki Ueno
佳之 上野
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.)
Saito Sokki Kk
Original Assignee
Saito Sokki Kk
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 Saito Sokki Kk filed Critical Saito Sokki Kk
Priority to JP2015035490A priority Critical patent/JP6052636B2/en
Publication of JP2016157314A publication Critical patent/JP2016157314A/en
Application granted granted Critical
Publication of JP6052636B2 publication Critical patent/JP6052636B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a novel character recognition technique.SOLUTION: A character recognition device displays a plurality of determination areas on a display screen, and a user inputs a track by referring to the displayed determination areas. When the input track input by the user is obtained, the character recognition device calculates a determination value for each determination area by determining whether the input track hits the determination areas. The character recognition device determines a character corresponding to the input track on the basis of a position of each determination area, the order in which the input track hits the determination areas, and the determination value for each determination area, and outputs the determined character.SELECTED DRAWING: Figure 21

Description

本発明は、手書きされた文字を認識する文字認識装置に関する。   The present invention relates to a character recognition device that recognizes handwritten characters.

従来より、手書き文字を認識する文字認識装置が開示されている。例えば、特許文献1では、続けて書かれた文字を分割して各文字を切り出して文字を認識する技術が開示されている。   Conventionally, character recognition devices that recognize handwritten characters have been disclosed. For example, Patent Document 1 discloses a technique for recognizing characters by dividing characters written in succession and cutting out each character.

特開2014−130510号公報JP 2014-130510 A

しかしながら、従来の技術では、手書きされた文字の形状が予め定められた形状と一致するか否かを判定することにより文字を認識するものであった。   However, in the conventional technique, the character is recognized by determining whether or not the shape of the handwritten character matches a predetermined shape.

本発明の目的の一つは、従来にはない新規な文字認識技術を提供することである。   One of the objects of the present invention is to provide a novel character recognition technique that has not been found in the past.

本発明の一例では、上記の課題を解決するために、以下の構成を採用した。   In an example of the present invention, the following configuration is adopted in order to solve the above-described problem.

本発明の一例は、ユーザによって行われた入力から文字を認識する文字認識装置であって、ユーザによって入力された入力軌跡を取得する取得手段と、複数の判定領域を設定する領域設定手段と、前記入力軌跡と前記判定領域との位置関係に基づいて、前記判定領域の判定値を判定領域毎に算出する算出手段と、前記算出手段によって算出された前記判定領域毎の判定値に基づいて、文字を判定する文字判定手段とを備える。   An example of the present invention is a character recognition device that recognizes a character from an input made by a user, an acquisition unit that acquires an input locus input by the user, an area setting unit that sets a plurality of determination areas, Based on the positional relationship between the input locus and the determination region, a calculation unit that calculates a determination value of the determination region for each determination region, and a determination value for each determination region calculated by the calculation unit, Character determination means for determining characters.

上記によれば、ユーザによって入力された入力軌跡に基づいて各判定領域の判定値を算出することにより、入力軌跡が示す文字を判定することができる。   According to the above, the character indicated by the input trajectory can be determined by calculating the determination value of each determination region based on the input trajectory input by the user.

また、他の構成では、前記算出手段は、前記入力軌跡が前記判定領域に当たったか否かに基づいて、前記判定値を算出してもよい。   In another configuration, the calculation unit may calculate the determination value based on whether or not the input locus hits the determination region.

上記によれば、入力軌跡が判定領域に当たったか否かに基づいて判定値を算出し、算出された判定値に基づいて文字を判定することができる。   According to the above, it is possible to calculate a determination value based on whether or not the input locus hits the determination region, and to determine a character based on the calculated determination value.

また、他の構成では、前記算出手段は、前記判定領域の判定値として、前記入力軌跡が前記判定領域に当たったか否かに基づく第1判定値と、前記入力軌跡が前記判定領域の境界を通過したか否かに基づく第2判定値とを算出してもよい。   Further, in another configuration, the calculating means determines, as the determination value of the determination region, a first determination value based on whether the input locus hits the determination region, and the input locus defines a boundary of the determination region. You may calculate the 2nd determination value based on whether it passed.

上記によれば、入力軌跡が判定領域に当たったか否かと、入力軌跡が判定領域の境界を通過したか否かに基づいて判定値を算出することができ、より多様な文字を判定することができる。   According to the above, it is possible to calculate a determination value based on whether or not the input trajectory hits the determination area and whether or not the input trajectory has passed the boundary of the determination area, so that more various characters can be determined. it can.

また、他の構成では、前記判定領域にはそれぞれ位置情報が設定されており、前記文字判定手段は、複数の前記判定領域の判定値と、各判定領域の位置情報とに基づいて、文字を判定してもよい。   Further, in another configuration, position information is set in each of the determination areas, and the character determination unit is configured to detect characters based on the determination values of the plurality of determination areas and the position information of each determination area. You may judge.

上記によれば、判定領域の位置情報と当該判定領域の判定値とに基づいて文字を判定することができる。   Based on the above, it is possible to determine a character based on the position information of the determination area and the determination value of the determination area.

また、他の構成では、前記文字判定手段は、複数の前記判定領域の判定値と、各判定領域の位置情報と、当該複数の判定領域に前記入力軌跡が当たった順番とに基づいて、文字を判定してもよい。   In another configuration, the character determination unit is configured to determine a character based on the determination values of the plurality of determination areas, the position information of each determination area, and the order in which the input locus hits the determination areas. May be determined.

上記によれば、さらに入力軌跡が判定領域に当たった順番に基づいて文字を判定することができる。これにより、任意の方向に入力された入力軌跡でも文字を正しく認識することができ、例えば速記文字が任意の方向に入力されても正しく文字を判定することができる。   According to the above, it is possible to determine a character based on the order in which the input locus hits the determination area. Thereby, a character can be correctly recognized even in an input locus input in an arbitrary direction. For example, even if a shorthand character is input in an arbitrary direction, the character can be correctly determined.

また、他の構成では、前記文字判定手段は、複数の前記判定領域の判定値に基づいて文字を判定した場合、当該文字に対応する複数の判定領域のうちの最後の判定領域を次の文字の先頭の判定領域として、当該次の文字の判定を行ってもよい。   In another configuration, when the character determination unit determines a character based on the determination values of the plurality of determination regions, the character determination unit sets the last determination region among the plurality of determination regions corresponding to the character as the next character. The next character may be determined as the first determination region.

上記によれば、連結された文字を正しく判定することができる。   Based on the above, it is possible to correctly determine the connected characters.

また、他の構成では、前記複数の判定領域を表示手段に表示する表示制御手段を更に備え、前記取得手段は、前記表示手段に表示された複数の判定領域を含む入力面において入力された入力軌跡を取得してもよい。   In another configuration, the image processing apparatus further includes display control means for displaying the plurality of determination areas on a display means, and the acquisition means is an input input on an input surface including the plurality of determination areas displayed on the display means. A trajectory may be acquired.

上記によれば、ユーザは表示手段に表示された判定領域を見ながら入力することができる。   Based on the above, the user can input while viewing the determination area displayed on the display means.

また、他の構成では、前記複数の判定領域には、第1の判定領域と、当該第1の判定領域よりも小さな第2の判定領域とが含まれてもよい。   In another configuration, the plurality of determination areas may include a first determination area and a second determination area smaller than the first determination area.

また、他の構成では、前記入力軌跡は速記文字であってもよい。   In another configuration, the input trajectory may be a shorthand character.

また、他の形態では、文字認識装置のコンピュータを上記各手段として機能させるプログラムであってもよい。また、他の形態では、上記各手段を備える、1又は複数の装置(要素)によって構成される文字認識システムであってもよい。当該システムは、複数の装置がネットワークで接続されて実現されてもよい。   In another form, a program that causes a computer of a character recognition apparatus to function as each of the above means may be used. Moreover, in another form, the character recognition system comprised by 1 or several apparatus (element) provided with said each means may be sufficient. The system may be realized by connecting a plurality of devices via a network.

本発明の一例によれば、複数の判定領域の判定値を算出することにより、文字を認識することができる。   According to an example of the present invention, a character can be recognized by calculating determination values of a plurality of determination areas.

本実施形態の文字認識装置1の機能構成を示すブロック図The block diagram which shows the function structure of the character recognition apparatus 1 of this embodiment. V式速記文字の一例を示す図The figure which shows an example of V type shorthand character 入力された入力軌跡を判別するための判定領域を示す図The figure which shows the determination area | region for discriminating the input locus | trajectory input 判定領域に対する判定値の定義を説明するための図Diagram for explaining definition of judgment value for judgment area あ行の各速記文字のパターンを示す図A diagram showing the pattern of each shorthand character on the line か行の各速記文字のパターンを示す図Figure showing the pattern of each shorthand character た行の各速記文字のパターンを示す図Showing the pattern of each shorthand character in a line 連結して書かれた文字について説明するための図Illustration to explain the characters written in concatenation 濁音文字の一例を示す図A figure showing an example of muffled characters 半濁音文字の一例を示す図Figure showing an example of semi-voiced characters 促音の一例を示す図The figure which shows an example of the sound 長音の一例を示す図A figure showing an example of a long sound 拗音の一例を示す図Figure showing an example of stuttering 撥音の一例を示す図Diagram showing an example of sound repellent 「く(き)」音の一例を示す図A figure showing an example of a “ku” sound 「つ」音の一例を示す図A figure showing an example of a “tsu” sound V式速記における「ヲコト点」を説明するための図A figure to explain the “best point” in V-style shorthand 本実施形態の文字認識装置1における「ヲコト点」の定義を示す図The figure which shows the definition of the "wo point" in the character recognition apparatus 1 of this embodiment 図18に示すヲコト点を含む速記文字の一例を示す図The figure which shows an example of the shorthand character containing the worst point shown in FIG. 判定領域に対する判定値のパターンと文字とを対応させた判定パターンテーブルの一例を示す図The figure which shows an example of the determination pattern table which matched the pattern of the determination value with respect to a determination area | region, and a character 本実施形態に係る文字認識処理の詳細を示すフローチャートThe flowchart which shows the detail of the character recognition process which concerns on this embodiment 入力軌跡の一例を示す図Diagram showing an example of the input trajectory 図22に示す入力軌跡が取得された場合の文字判定処理の概要を示す図The figure which shows the outline | summary of the character determination process when the input locus | trajectory shown in FIG. 22 is acquired. 文字の独立と連結の判定を説明するための図Figure for explaining character independence and connection determination 文字認識装置1の一実施例としての携帯電子機器100を示す図The figure which shows the portable electronic device 100 as one Example of the character recognition apparatus 1. FIG.

(文字認識装置の構成)
以下、本発明の一実施形態に係る文字認識装置について説明する。図1は、本実施形態の文字認識装置1の機能構成を示すブロック図である。
(Configuration of character recognition device)
Hereinafter, a character recognition device according to an embodiment of the present invention will be described. FIG. 1 is a block diagram showing a functional configuration of the character recognition device 1 of the present embodiment.

図1に示すように、文字認識装置1は、入力手段2と、入力軌跡取得手段3と、判定領域設定手段4と、判定値算出手段5と、文字判定手段6と、データベース7と、表示手段8とを備える。文字認識装置1は、CPU、RAM、ハードディスクや不揮発性メモリ等の記憶装置を備え、CPUが所定の文字認識プログラムを実行することにより、CPUが図1に示す各手段として機能する。   As shown in FIG. 1, the character recognition device 1 includes an input unit 2, an input locus acquisition unit 3, a determination area setting unit 4, a determination value calculation unit 5, a character determination unit 6, a database 7, and a display. Means 8. The character recognition device 1 includes a storage device such as a CPU, a RAM, a hard disk, and a nonvolatile memory, and the CPU functions as each unit shown in FIG. 1 when the CPU executes a predetermined character recognition program.

入力手段2は、ユーザが文字(速記文字)を入力するための入力装置であり、例えば、タッチパネルやマウス等の位置入力装置が用いられる。入力軌跡取得手段3は、入力手段2によって入力された軌跡を取得する。判定領域設定手段4は、後述する複数の判定領域を設定するとともに、表示手段8に当該複数の判定領域を表示する。判定値算出手段5は、入力軌跡取得手段3によって取得された入力軌跡と、判定領域設定手段4によって設定された判定領域とに基づいて、各判定領域について判定値を算出する。文字判定手段6は、判定値算出手段5によって算出された判定値と、データベース7に保存されたパターンとに基づいて、入力軌跡が示す文字を判定するとともに、表示手段8に判定した文字を出力する。   The input unit 2 is an input device for a user to input characters (shorthand characters), and for example, a position input device such as a touch panel or a mouse is used. The input trajectory acquisition unit 3 acquires the trajectory input by the input unit 2. The determination area setting unit 4 sets a plurality of determination areas, which will be described later, and displays the plurality of determination areas on the display unit 8. The determination value calculation unit 5 calculates a determination value for each determination region based on the input trajectory acquired by the input trajectory acquisition unit 3 and the determination region set by the determination region setting unit 4. The character determination means 6 determines the character indicated by the input locus based on the determination value calculated by the determination value calculation means 5 and the pattern stored in the database 7 and outputs the determined character to the display means 8. To do.

(文字認識処理の概要)
本実施形態の文字認識装置1は、速記者によって入力された速記文字を通常の文字(ひらがなやカタカナ等)に変換する。本実施形態の文字認識装置1は、任意の速記法(V式、衆議院式、参議院式、中根式、早稲田式、田鎖式等、任意の速記法)によって入力された速記文字を通常の文字に変換してもよいが、以下ではV式速記法に基づいて入力された速記文字を変換する場合について説明する。
(Outline of character recognition processing)
The character recognition device 1 of the present embodiment converts a shorthand character input by a stenographer into a normal character (such as hiragana or katakana). The character recognition device 1 according to the present embodiment converts a shorthand character input by an arbitrary shorthand method (an arbitrary shorthand method such as V-type, House of Representatives, House of Councilors, Nakane-type, Waseda-type, Tachain-type, etc.) into a normal character. Although it may convert, the case where the shorthand character input based on the V-type shorthand method is converted is demonstrated below.

図2は、V式速記文字の一例を示す図である。図2に示すように、速記文字は、線の長さや角度によってそれぞれ五十音の文字が対応付けられている。例えば、「あ」は、右上に向かう直線であって、水平から30度傾いた線によって表され、「い」は、左下に向かう線であって、水平から60度(垂直から30度)傾いた線によって表される。また、「か」は、右上に向かう左回りの曲線によって表される。また、「た」行は、「あ」行の半分の長さの線によって表される。   FIG. 2 is a diagram illustrating an example of a V-type shorthand character. As shown in FIG. 2, shorthand characters are associated with 50-character characters according to the length and angle of the line. For example, “A” is a straight line that goes to the upper right and is inclined by 30 degrees from the horizontal, and “I” is a line that goes to the lower left and is inclined by 60 degrees from the horizontal (30 degrees from the vertical). Represented by a line. Also, “ka” is represented by a counterclockwise curve toward the upper right. Further, the “ta” line is represented by a line that is half the length of the “a” line.

図3は、入力された入力軌跡を判別するための判定領域を示す図である。本実施形態では、例えば、図3に示すような複数の判定領域が並べられて表示された画面に対して、速記者が速記文字を入力し、入力された速記文字を通常の文字に変換する。   FIG. 3 is a diagram illustrating a determination area for determining the input trajectory. In the present embodiment, for example, a stenographer inputs a stenographic character on a screen on which a plurality of determination areas as shown in FIG. 3 are arranged and displayed, and the inputted stenographic character is converted into a normal character. .

図3に示すように、複数の判定領域は、メイン判定領域Mと、メイン判定領域Mの右側に配置されるサブ判定領域Aと、メイン判定領域Mの下側に配置されるサブ判定領域Bとを含む。サブ判定領域Aおよびサブ判定領域Bは、同じ半径の円であり、メイン判定領域Mよりも小さな円である。なお、各判定領域の形状は円に限らず、四角形等の多角形であってもよい。また、全ての判定領域の大きさは同じであってもよい。図3に示すように、メイン判定領域Mと、その右側のサブ判定領域Aおよび下側のサブ判定領域Bとの3つの判定領域をセットとして、複数のセットの判定領域が縦および横方向に等間隔で設けられる。   As shown in FIG. 3, the plurality of determination areas include a main determination area M, a sub determination area A disposed on the right side of the main determination area M, and a sub determination area B disposed below the main determination area M. Including. The sub determination area A and the sub determination area B are circles having the same radius and are smaller than the main determination area M. The shape of each determination area is not limited to a circle, and may be a polygon such as a quadrangle. Moreover, the size of all the determination areas may be the same. As shown in FIG. 3, a set of three determination areas, a main determination area M, a sub determination area A on the right side thereof, and a sub determination area B on the lower side, are set in a vertical and horizontal direction. Provided at equal intervals.

具体的には、メイン判定領域M11の右側にはサブ判定領域A11が設けられ、その右側には、メイン判定領域M12が設けられ、その右側には、サブ判定領域A12が設けらる。また、メイン判定領域M11の下側にはサブ判定領域B11が設けられ、その下側には、メイン判定領域M21が設けられ、その下側には、サブ判定領域B21が設けられる。このように、メイン判定領域Mおよびそのサブ判定領域A,Bは、それぞれ縦方向(行)および横方向(列)に等間隔で配置される。   Specifically, the sub determination area A11 is provided on the right side of the main determination area M11, the main determination area M12 is provided on the right side thereof, and the sub determination area A12 is provided on the right side thereof. A sub determination area B11 is provided below the main determination area M11, a main determination area M21 is provided below the main determination area M11, and a sub determination area B21 is provided below the main determination area M11. Thus, the main determination area M and its sub determination areas A and B are arranged at equal intervals in the vertical direction (row) and the horizontal direction (column), respectively.

以下では、左上端のメイン判定領域M11から数えてi行目、j列目に位置するメイン判定領域を「Mi,j」(i,jはそれぞれ正の整数)と表記する。また、メイン判定領域Mi,jの右側のサブ判定領域を「Ai,j」と表記し、メイン判定領域Mi,jの下側のサブ判定領域を「Bi,j」と表記する。   Hereinafter, the main determination area located in the i-th row and the j-th column from the main determination area M11 at the upper left corner is denoted as “Mi, j” (i and j are respectively positive integers). Further, the sub determination area on the right side of the main determination area Mi, j is expressed as “Ai, j”, and the sub determination area below the main determination area Mi, j is expressed as “Bi, j”.

本実施形態の文字認識装置1は、入力された速記文字が示す線が、図3に示す複数の判定領域のそれぞれをどのように通過しているか(当たっているか)によって各判定領域に対する判定値を求め、各判定領域の判定値に基づいて、速記文字に対応する通常の文字を判別する。   The character recognition device 1 according to the present embodiment determines the determination value for each determination region depending on how the line indicated by the input shorthand character passes through each of the determination regions shown in FIG. And a normal character corresponding to the shorthand character is determined based on the determination value of each determination region.

図4は、判定領域に対する判定値の定義を説明するための図である。本実施形態では、判定値として、「当」値と、「通」値とが定義される。「当」値は、線あるいは点が、判定領域に入った(当たった)ときに「1」増加する。より具体的には、ユーザによって入力された入力軌跡の少なくとも一部が、判定領域内に存在する場合に、入力軌跡が当該判定領域に当たったとされる。「通」値は、線が、判定領域の境界を通過したとき(判定領域外から判定領域内に入ったとき、又は、判定領域内から判定領域外に出たとき)に「1」増加する。   FIG. 4 is a diagram for explaining the definition of the determination value for the determination region. In the present embodiment, a “present” value and a “communication” value are defined as determination values. The “to” value increases by “1” when the line or the point enters (hits) the determination region. More specifically, when at least a part of the input trajectory input by the user exists in the determination area, the input trajectory hits the determination area. The “communication” value increases by “1” when the line passes the boundary of the determination region (when the line enters the determination region from outside the determination region, or when the line goes out of the determination region from the determination region). .

図4(A)に示すように、線が判定領域外から判定領域内を通って判定領域外に出ている場合、上記定義により、線は判定領域に1回だけ当たっているため、「当」値は「1」となる。また、上記定義により、線は判定領域外から判定領域内に入ったときに「1」増加し、さらに、判定領域内から判定領域外に出たときに「1」増加するため、「通」値は「2」となる。以下では、この2つの値を判定値「当1通2」と表記する。   As shown in FIG. 4A, when the line passes from the outside of the determination area to the outside of the determination area, the line hits the determination area only once according to the above definition. The value is “1”. Further, according to the above definition, the line increases by “1” when entering the determination area from outside the determination area, and further increases by “1” when moving from the determination area to outside the determination area. The value is “2”. In the following, these two values will be referred to as a judgment value “this one 2”.

ここで、V式速記においては、濁音又は半濁音を表す「切り線」と、促音を表す「交差」又は「並行」と、長音(又はイ音)を表す「流し」と、「ん」を表す「円(小円)」と、「く、き」を表す「大円」と、「つ」を表す「長円」とが定義されている。本実施形態の文字認識装置1では、これらを次のように表現する。   Here, in V-type shorthand, “cut line” representing muddy sound or semi-turbid sound, “crossing” or “parallel” representing prompt sound, “sink” representing long sound (or sound), and “n” “Circle (small circle)”, “large circle” representing “ku, ki”, and “oval” representing “tsu” are defined. In the character recognition apparatus 1 of this embodiment, these are expressed as follows.

例えば、図4(B)に示すように、2本の線が1つの判定領域を通過した場合に「切り線」と判定する。具体的には、「切り線」では、2本の線が判定領域外から判定領域内を通って判定領域外に出る。このときの判定値は、上記定義により、「当2通4」である。   For example, as shown in FIG. 4B, when two lines pass through one determination area, it is determined as “cut line”. Specifically, in the “cut line”, two lines pass from the outside of the determination area to the outside of the determination area. The determination value at this time is “this 2 4” according to the above definition.

また、図4(C)に示すように、2本の線が1つの判定領域内に入り、当該判定領域から出ない場合に「交差」と判定する。具体的には、「交差」では、2本の線が判定領域外(又は内)から判定領域内(又は外)に進入し、判定領域内で交差して当該判定領域から出ない。このときの判定値は「当2通2」である。また、図4(D)に示すように、2本の線が1つの判定領域内に入り、当該判定領域から出ない場合に「並行」と判定する。具体的には、「並行」では、2本の線が判定領域外(又は内)から判定領域内(又は外)に進入し、判定領域内で交差せずに当該判定領域から出ない。このときの判定値は「当2通2」である。   In addition, as shown in FIG. 4C, when two lines enter one determination area and do not exit the determination area, it is determined as “intersection”. Specifically, in the “intersection”, two lines enter from outside (or inside) the determination area to inside (or outside) the determination area, intersect within the determination area, and do not exit the determination area. The determination value at this time is “this two-way two”. Further, as shown in FIG. 4D, when two lines enter one determination area and do not exit the determination area, it is determined as “parallel”. Specifically, in “parallel”, two lines enter from the outside (or inside) of the determination area to the inside (or outside) of the determination area, and do not cross within the determination area and do not exit from the determination area. The determination value at this time is “this two-way two”.

図4(C)および(D)に示すように、この2つの判定値は何れも「当2通2」であり、上記定義ではこの2つを区別することができない。しかしながら、V式速記では「交差」も「並行」も同じ促音を意味するため、これらを区別する必要がない。   As shown in FIGS. 4C and 4D, the two determination values are both “two 2”, and the above definition cannot distinguish the two. However, in the V-type shorthand, “crossing” and “parallel” mean the same prompting sound, so it is not necessary to distinguish between them.

また、図4(E)に示すように、1本の線が1つの判定領域内に入り、当該判定領域から出ない場合に「流し」と判定する。具体的には、「流し」では、1本の線が判定領域外から判定領域内に進入し、当該判定領域から出ないため、判定値は「当1通1」である。   Further, as shown in FIG. 4E, when one line enters one determination area and does not exit the determination area, it is determined as “sink”. Specifically, in the “sink”, since one line enters the determination area from outside the determination area and does not come out of the determination area, the determination value is “this one 1”.

また、図4(F)に示すように、1本の線が1つの判定領域内に入り、当該判定領域から出て再びこの判定領域内に入る場合、「小円」と判定する。このときの判定値は、線が判定領域内に入ってから出て、再び入るため、上記定義により「当2通3」である。また、1本の線が1つの判定領域内に入り、当該判定領域から出て再びこの判定領域内に入り、さらに判定領域外に出る場合も、「小円」と判定する。このときの判定値は、上記定義により「当2通4」である。なお、「小円」と「切り線」とは判定値は同じであるが、「切り線」は文字の最初又は最後の判定領域に対して用いられることはなく、「小円」は必ず文字の最後の判定領域に用いられるため、これらの判定値が同じであっても、「小円」と「切り線」とを区別することができる。   In addition, as shown in FIG. 4F, when one line enters one determination area and exits from the determination area and enters the determination area again, it is determined as a “small circle”. The determination value at this time is “this two times three” according to the above definition because the line enters and exits after entering the determination region. Also, when a single line enters one determination area, exits from the determination area, enters the determination area again, and goes out of the determination area, it is determined as a “small circle”. The determination value at this time is “this 2 4” according to the above definition. Note that “small circle” and “cut line” have the same judgment value, but “cut line” is not used for the first or last judgment area of a character, and “small circle” is always a character. Therefore, even if these determination values are the same, “small circle” and “cut line” can be distinguished.

また、図4(G)に示すように、「大円」は、最後の判定領域については上記「小円」と同様の判定値を取り得るが、当該最後のメイン判定領域に隣接するサブ判定領域を含めて円が描かれる。このようなパターンは、最後のメイン判定領域の判定値と、それに隣接するサブ判定領域(メイン判定領域の上下左右のサブ判定領域)の判定値とに基づいて認識される。   Further, as shown in FIG. 4G, the “large circle” can take the same determination value as the “small circle” for the last determination region, but the sub determination adjacent to the last main determination region. A circle is drawn including the area. Such a pattern is recognized based on the determination value of the last main determination area and the determination values of the sub determination areas adjacent to it (up / down / left / right sub determination areas).

また、図4(H)に示すように、「長円」は、最後の判定領域については上記「小円」と同様の判定値を取り得るが、当該最後のメイン判定領域の斜め方向のサブ判定領域を含めて円が描かれる。このようなパターンは、最後のメイン判定領域の判定値と、その斜め方向のサブ判定領域の判定値とに基づいて認識される。   Further, as shown in FIG. 4H, the “oval” can take the same determination value as the above “small circle” for the last determination area, but the diagonal sub-direction of the last main determination area. A circle is drawn including the judgment area. Such a pattern is recognized based on the determination value of the last main determination region and the determination value of the sub determination region in the diagonal direction.

次に、具体的な速記文字の一部を例にして各判定領域の通過、および、そのときの判定値について説明する。図5は、あ行の各速記文字のパターンを示す図である。図6は、か行の各速記文字のパターンを示す図である。図7は、た行の各速記文字のパターンを示す図である。なお、本実施形態では、必ずメイン判定領域Mから文字が書き始められるものとするが、サブ判定領域から文字が書き始められてもよい。また、本実施形態では、メイン判定領域Mで文字が書き終わるものとするが、サブ判定領域で文字が書き終わってもよい。   Next, the passage of each determination area and the determination value at that time will be described by taking a part of a specific shorthand character as an example. FIG. 5 is a diagram showing a pattern of each shorthand character in the line. FIG. 6 is a diagram showing patterns of shorthand characters in each line. FIG. 7 is a diagram showing patterns of each shorthand character in the line. In this embodiment, it is assumed that characters are always started to be written from the main determination area M, but characters may be started from the sub determination area. Further, in the present embodiment, it is assumed that characters are written in the main determination area M, but characters may be written in the sub determination area.

図5に示すように、「あ」を表す線は、例えばメイン判定領域M42を通過し、M42の右上のサブ判定領域B33を通過し、その右のサブ判定領域B34を通過し、その右上のメイン判定領域M35を通過する。このときの各判定領域の判定値は「当1通2」である。   As shown in FIG. 5, for example, the line representing “A” passes through the main determination area M42, passes through the upper right sub-determination area B33, passes through the right sub-determination area B34, and passes through the upper right. Passes through the main determination area M35. At this time, the determination value of each determination region is “this one 2”.

また、「い」を表す線は、例えばメイン判定領域M24を通過し、M24の左下のサブ判定領域A33を通過し、その下のサブ判定領域A43を通過し、その左下のメイン判定領域M53を通過する。   For example, the line representing “I” passes through the main determination area M24, passes through the lower left sub determination area A33 of M24, passes through the lower sub determination area A43, and passes through the lower left main determination area M53. pass.

また、「う」を表す線は、例えばメイン判定領域M32を通過し、M32の右下のサブ判定領域B33を通過し、その右のサブ判定領域B34を通過し、その右下のメイン判定領域M45を通過する。   The line representing “U” passes through the main determination area M32, passes through the lower right sub-determination area B33 of M32, passes through the right sub-determination area B34, and lower right in the main determination area. Pass through M45.

また、「え」を表す線は、例えばメイン判定領域M24を通過し、M24の下のサブ判定領域B24を通過し、その下のメイン判定領域M34を通過し、その下のサブ判定領域B34を通過し、その下のメイン判定領域M44を通過する。   For example, the line representing “e” passes through the main determination area M24, passes through the sub determination area B24 below M24, passes through the main determination area M34 below, and passes through the sub determination area B34 below. Passes through the main determination area M44 below.

また、「お」を表す線は、例えばメイン判定領域M32を通過し、その右のサブ判定領域A32を通過し、その右のメイン判定領域M33を通過し、その右のサブ判定領域A33を通過し、その右のメイン判定領域M34を通過する。   For example, the line representing “o” passes through the main determination region M32, passes through the right sub determination region A32, passes through the right main determination region M33, and passes through the right sub determination region A33. Then, it passes through the right main determination area M34.

また、図6に示すように、「か」を表す線は、例えばメイン判定領域M32、サブ判定領域B32、メイン判定領域M33、メイン判定領域M24を通過する。また、「き」を表す線は、例えばメイン判定領域M24、サブ判定領域A33、サブ判定領域A43、メイン判定領域M44を通過する。また、「く」を表す線は、例えばメイン判定領域M32、サブ判定領域A42、サブ判定領域B43、メイン判定領域M54を通過する。また、「け」を表す線は、例えばメイン判定領域M24、サブ判定領域A33、サブ判定領域A43、メイン判定領域M54を通過する。また、「こ」を表す線は、例えばメイン判定領域M32、サブ判定領域B33、サブ判定領域B34、メイン判定領域M35を通過する。   As shown in FIG. 6, the line representing “ka” passes through, for example, the main determination area M32, the sub determination area B32, the main determination area M33, and the main determination area M24. The line representing “ki” passes through, for example, the main determination area M24, the sub determination area A33, the sub determination area A43, and the main determination area M44. Further, the line representing “ku” passes through, for example, the main determination area M32, the sub determination area A42, the sub determination area B43, and the main determination area M54. Further, the line representing “ke” passes through, for example, the main determination area M24, the sub determination area A33, the sub determination area A43, and the main determination area M54. Further, the line representing “ko” passes through, for example, the main determination area M32, the sub determination area B33, the sub determination area B34, and the main determination area M35.

また、図7に示すように、「た」を表す線は、例えばメイン判定領域M43、サブ判定領域B34、メイン判定領域M35を通過する。また、「ち」を表す線は、例えばメイン判定領域M34、サブ判定領域A43、メイン判定領域M53を通過する。また、「つ」を表す線は、例えばメイン判定領域M33、サブ判定領域B34、メイン判定領域M45を通過する。また、「て」を表す線は、例えばメイン判定領域M34、サブ判定領域B34、メイン判定領域M44を通過する。また、「と」を表す線は、例えばメイン判定領域M33、サブ判定領域A33、メイン判定領域M34を通過する。   Further, as shown in FIG. 7, the line representing “ta” passes through, for example, the main determination area M43, the sub determination area B34, and the main determination area M35. Further, the line representing “chi” passes through, for example, the main determination area M34, the sub determination area A43, and the main determination area M53. Further, the line representing “tsu” passes through, for example, the main determination region M33, the sub determination region B34, and the main determination region M45. The line representing “te” passes through, for example, the main determination region M34, the sub determination region B34, and the main determination region M44. Further, the line representing “to” passes through, for example, the main determination region M33, the sub determination region A33, and the main determination region M34.

なお、図5〜図7に示す書きはじめの判定領域の位置は一例であり、各線はどの領域から書きはじめられてもよい。文字認識装置1は、書きはじめの判定領域(あるいは最後の判定領域)からの相対位置によって、入力された線がどの文字を表すかを判別することができる。例えば、図5に示す「あ」は、i行j列目のメイン判定領域Mi,jから書き始められたとすると、「あ」を示す線は、Mi,jと、Bi−1,j+1と、Bi−1,j+2と、Mi−1,j+3とを通過することになる。   Note that the positions of the determination areas at the beginning of writing shown in FIGS. 5 to 7 are examples, and each line may be started from any area. The character recognition device 1 can determine which character the input line represents based on the relative position from the determination area (or the final determination area) at the beginning of writing. For example, if “A” shown in FIG. 5 is started to be written from the main determination area Mi, j in the i-th row and j-th column, the lines indicating “A” are Mi, j, Bi-1, j + 1, It will pass through Bi-1, j + 2 and Mi-1, j + 3.

このように、各五十音のひらがなは、V式速記に準じた形状と大きさの線(V式速記に準拠して若干の変更が加えられた形状や大きさの線でもよいし、V式速記に完全に一致する形状や大きさの線でもよい)で定義され、文字毎にどの判定領域を通過するかが定義される。通常の五十音の文字では、線は各判定領域を通過するため、その判定値は「当1通2」である。本実施形態の文字認識装置1では、各判定領域の判定値のパターンと、文字とが対応付けされて記憶されている。文字認識装置1は、入力された線についてどの判定領域をどの順番で通過したか、および、各判定領域の判定値を計算することにより、入力された速記文字に対応する通常の文字を判別することができる。   In this way, the hiragana of each Japanese syllabary may be a line with a shape and size in accordance with the V-type shorthand (a line with a shape or size slightly modified in accordance with the V-type shorthand, It may be a line having a shape or size that completely matches the expression shorthand), and it is defined which judgment area passes for each character. In a normal Japanese character, since the line passes through each determination area, the determination value is “this one 2”. In the character recognition device 1 according to the present embodiment, a pattern of determination values in each determination area and a character are stored in association with each other. The character recognition device 1 discriminates a normal character corresponding to the inputted shorthand character by calculating which judgment area is passed in which order with respect to the input line and calculating a judgment value of each judgment area. be able to.

次に、上述のようにして定義された速記文字を連結して書く場合について説明する。図8は、連結して書かれた文字について説明するための図である。   Next, the case where the shorthand characters defined as described above are connected and written will be described. FIG. 8 is a diagram for explaining the characters written in a linked manner.

図8は、「ち」、「け」、「い」の3つの文字が連結して書かれた場合が示されている。「ちけい」が連結して書かれる場合は、「ち」を示す線がメイン判定領域M14と、サブ判定領域A23と、メイン判定領域M33を通過し、その線が「け」を示す線の一部として続けて描かれて、M33の次にサブ判定領域A42及びA52を通過して、メイン判定領域M63を通過する。さらに、その線が「い」を示す線として続けて描かれて、M63の次にサブ判定領域A72及びA82を通過して、最後にメイン判定領域M92を通過する。このように、文字が連結して(一筆書きで)描かれる場合は、ある文字の最後の判定領域と、その次に描かれる文字の最初の判定領域とが共通する。   FIG. 8 shows a case where three characters “CHI”, “KE”, and “I” are connected and written. When “chikei” is written concatenated, a line indicating “chi” passes through the main determination area M14, the sub determination area A23, and the main determination area M33, and the line indicates “ke”. It is drawn continuously as a part, passes through the sub determination areas A42 and A52 next to M33, and passes through the main determination area M63. Further, the line is continuously drawn as a line indicating “yes”, passes through the sub determination areas A72 and A82 next to M63, and finally passes through the main determination area M92. In this way, when characters are connected and drawn (with a single stroke), the last determination region of a character and the first determination region of the next character to be drawn are common.

次に、濁音および半濁音について説明する。図9は、濁音文字の一例を示す図である。図10は、半濁音文字の一例を示す図である。   Next, muddy sound and semi-muddy sound will be described. FIG. 9 is a diagram illustrating an example of muffled characters. FIG. 10 is a diagram illustrating an example of a semi-voice character.

図9に示すように、濁音文字の「ご」は、図6で定義した「こ」の最後の判定領域の1つ前の判定領域(サブ判定領域B34)に対して、「切り線」が加えられる。このとき、サブ判定領域B34の判定値は「当2通4」となる。すなわち、「こ」のサブ判定領域B34の判定値が「当1通2」であるのに対して、「ご」のサブ判定領域B34の判定値が「当2通4」であり、その他の判定領域の判定値は「こ」と「ご」で同じである。   As shown in FIG. 9, the voiced character “G” has a “cut line” with respect to the determination region (sub determination region B 34) immediately before the last determination region of “ko” defined in FIG. Added. At this time, the determination value of the sub-determination area B34 is “this two 4”. That is, the determination value of the sub-determination area B34 of “ko” is “this one-way two”, whereas the determination value of the sub-determination area B34 of “go” is “two-time four”. The determination value in the determination area is the same for “ko” and “go”.

また、図10(A)に示すように、「は」を示す線は、例えばメイン判定領域M43、サブ判定領域A43、メイン判定領域M44、メイン判定領域M35、メイン判定領域M26を通過する。これに対して、半濁音文字の「ぱ」では、「は」の2番目の判定領域(サブ判定領域A43)に対して、「切り線」が加えられる。すなわち、「は」のサブ判定領域A43の判定値が「当1通2」であるのに対して、「ぱ」のサブ判定領域A43の判定値が「当2通4」であり、その他の判定領域の判定値は「は」と「ぱ」で同じである。   As shown in FIG. 10A, the line indicating “ha” passes through, for example, the main determination area M43, the sub determination area A43, the main determination area M44, the main determination area M35, and the main determination area M26. On the other hand, in the semi-voice character “Pa”, a “cut line” is added to the second determination region (sub-determination region A43) of “ha”. That is, the determination value of the sub-determination area A43 of “ha” is “this 1 2”, whereas the determination value of the sub-determination area A43 of “pa” is “this 2 4”. The determination value of the determination area is the same for “ha” and “pa”.

次に、促音および長音の表現について説明する。図11は、促音の一例を示す図である。図12は、長音の一例を示す図である。   Next, the expression of the prompt sound and the long sound will be described. FIG. 11 is a diagram illustrating an example of the prompt sound. FIG. 12 is a diagram illustrating an example of a long sound.

図11では、促音を含む「かった」の文字が記載されている。上述のように、「か」がメイン判定領域M41から書き始められたとすると、線は書き始めの次にサブ判定領域B41、及び、メイン判定領域M42を通過し、最後にメイン判定領域M33を通過する。これに対して、図11に示すように、促音を含む「かった」の場合、「か」を示す線は最後のメイン判定領域M33内で止まるように描かれる。そして、そのメイン判定領域M33内から「た」を示す線が書き始められる。このとき、メイン判定領域M33の判定値は、上述のように「当2通2」である(図4(D)に示す「並行」)。   In FIG. 11, the letters “Kak” including the prompt sound are described. As described above, if “ka” is started to be written from the main determination area M41, the line passes through the sub determination area B41 and the main determination area M42 after the start of writing, and finally passes through the main determination area M33. To do. On the other hand, as shown in FIG. 11, in the case of “Kaku” including a prompt sound, a line indicating “K” is drawn so as to stop within the last main determination region M33. Then, a line indicating “ta” is started from within the main determination region M33. At this time, the determination value of the main determination region M33 is “this two 2” as described above (“parallel” shown in FIG. 4D).

また、図12では、長音を含む「くうこう」(くーこー)の文字が記載されている。上述のように、「く」がメイン判定領域M31から書き始められたとすると、線は書き始めの次にサブ判定領域A41、及び、サブ判定領域B42を通過し、最後にメイン判定領域M53を通過する。これに対して、図12に示すように、長音「くうこう」の場合、「く」を示す線は最後のメイン判定領域M53内で止まるように描かれ、「こ」を示す線は、このメイン判定領域M53の外から書き始められる。このとき、メイン判定領域M53の判定値は、上述のように「当1通1」である(図4(E)に示す「流し」)。なお、文字の終わりが「流し」である場合において、「あ」列の文字の後には「い」が付加される。例えば、「あ」の最後の判定領域が「流し」である場合は、「あい」となる。   Further, in FIG. 12, the characters “kuuko” including a long sound are described. As described above, if “ku” is started to be written from the main determination area M31, the line passes through the sub determination area A41 and the sub determination area B42 after the start of writing, and finally passes through the main determination area M53. To do. On the other hand, as shown in FIG. 12, in the case of the long sound “kukou”, the line indicating “ku” is drawn so as to stop in the last main determination area M53, and the line indicating “ko” Writing is started from outside the main determination area M53. At this time, the determination value of the main determination region M53 is “this 1 through 1” as described above (“sink” shown in FIG. 4E). When the end of the character is “sink”, “i” is added after the character in the “a” column. For example, when the last determination area of “A” is “sink”, it becomes “Ai”.

次に、拗音の表現について説明する。図13は、拗音の一例を示す図である。   Next, the expression of stuttering will be described. FIG. 13 is a diagram illustrating an example of stuttering.

V式速記法では、「きゃ」などの拗音は、「か」に小さなカギを付けることによって表現される。「きゅ」は「く」に小さなカギを付けることによって表現され、「きょ」は「こ」に小さなカギを付けることによって表現される。   In the V shorthand notation, a roaring sound such as “Kya” is expressed by attaching a small key to “ka”. “Kyu” is expressed by attaching a small key to “ku”, and “Kyo” is expressed by attaching a small key to “ko”.

本実施形態では、このV式速記の表記に準じて、図13(A)に示すように、「か」にカギを付けることで、「きゃ」を表現する。具体的には、「か」を例えばメイン判定領域M42から書き始めるとすると、「きゃ」を示す線は、メイン判定領域M32から書き始められ、続けてメイン判定領域M42を通過する。その後は「か」と同様である。また、図13(B)に示すように、「く」を例えばメイン判定領域M32から書き始めるとすると、「きゅ」を示す線は、メイン判定領域M22から書き始められ、続けてメイン判定領域M32を通過し、その後は「く」と同様の判定領域を通過する。また、図13(C)に示すように、「こ」を例えばメイン判定領域M32から書き始めるとすると、「きょ」を示す線は、メイン判定領域M22から書き始められ、続けてメイン判定領域M32を通過し、その後は「こ」と同様の判定領域を通過する。すなわち、本実施形態では、拗音は、書き始めに、上のメイン判定領域M(1つ上のサブ判定領域のさらに1つ上のメイン判定領域)を通過するカギが付加されることによって表現される。   In the present embodiment, “Kya” is expressed by attaching a key to “ka” as shown in FIG. Specifically, assuming that “ka” is written from, for example, the main determination area M42, a line indicating “ky” is started to be written from the main determination area M32, and then passes through the main determination area M42. After that, it is the same as “ka”. Also, as shown in FIG. 13B, if “ku” is started to be written from, for example, the main determination area M32, a line indicating “kyu” is started to be written from the main determination area M22, and subsequently the main determination area is displayed. Passes through M32, and thereafter passes through a determination region similar to “ku”. Further, as shown in FIG. 13C, if “ko” is started to be written from, for example, the main determination area M32, a line indicating “cho” is started to be written from the main determination area M22, and subsequently, the main determination area Passes through M32, and thereafter passes through a determination region similar to “ko”. That is, in this embodiment, the stuttering is expressed by adding a key that passes through the upper main determination area M (a main determination area one level higher than the sub determination area one level higher) at the beginning of writing. The

次に、撥音(「ん」)の表現について説明する。図14は、撥音の一例を示す図である。図14に示す例では、「かんとう(かんとー)」と書かれている。具体的には、「か」を示す線が、例えばメイン判定領域M51から描かれる場合、サブ判定領域B51、メイン判定領域M52、及び、メイン判定領域M43を通る。このとき、「か」を示す線の最後はメイン判定領域M43を通過することになるが、「かん」と表記する場合には、この最後のメイン判定領域M43に小円(図4(F)参照)を追加する。この場合のメイン判定領域M43の判定値は、図4(F)に示すように「当2通4」である。さらにその小円から続けて「と」を示す線が描かれ、「と」の最後であるM44では流されて、「とー」が表現される。このようにして描かれた1本の線は、「かんとう」として認識される。   Next, the expression of sound repellent (“n”) will be described. FIG. 14 is a diagram illustrating an example of sound repellent. In the example shown in FIG. 14, “Kantou” is written. Specifically, when a line indicating “ka” is drawn from the main determination area M51, for example, it passes through the sub determination area B51, the main determination area M52, and the main determination area M43. At this time, the end of the line indicating “ka” passes through the main determination area M43. However, in the case of “kan”, a small circle (see FIG. 4F) is displayed in the last main determination area M43. Add). In this case, the determination value of the main determination region M43 is “this two 4” as shown in FIG. Further, a line indicating “to” is drawn continuously from the small circle, and is flowed at M44 which is the last of “to” to express “to-”. One line drawn in this way is recognized as “Kantou”.

図15は、「ク(キ)」音の一例を示す図である。「ク(キ)」音を表現する場合は、上述した大円(図4(G)参照)が描かれる。例えば、図15に示すように、メイン判定領域M21から「か」が書き始められ、「か」の最後のメイン判定領域M13と、その左隣のサブ判定領域A12とを含む大円が描かれると、書かれた文字「か」に「く」が付加されて、「かく」として認識される。図15では、さらに続けて「に」が書かれており、「に」の最後のメイン判定領域M34には小円が描かれているため、図15に示す線は、「かくにん」として認識される。このように大円が描かれる場合、文字の最後のメイン判定領域の判定値が「当2通3」又は「当2通4」であり、かつ、当該最後のメイン判定領域の上下左右の何れかのサブ判定領域は「当」値(「当1通2」)を有することとなる。このようなパターンの文字が認識された場合は、文字の後に「く」が付加される。なお、上下左右の何れのサブ判定領域を含めて大円が描かれるかは、その文字によって異なる。また、「え」列の文字の最後に大円が書かれた場合には、当該「え」列の文字の後に「き」が付加される。例えば、「え」の最後のメイン判定領域Mに大円が付加されている場合は、「えき」として認識される。   FIG. 15 is a diagram illustrating an example of a “ku” sound. In the case of expressing the “ku” sound, the above-described great circle (see FIG. 4G) is drawn. For example, as shown in FIG. 15, “ka” is started to be written from the main determination area M21, and a great circle including the last main determination area M13 of “ka” and the sub determination area A12 adjacent to the left is drawn. Then, “ku” is added to the written character “ka” and recognized as “ku”. In FIG. 15, “NI” is further written, and a small circle is drawn in the last main determination area M34 of “NI”, so the line shown in FIG. Be recognized. When a great circle is drawn in this way, the determination value of the last main determination area of the character is “this two-way three” or “this two-way four”, and either the upper, lower, left, or right of the last main determination area Such a sub-determination area has a “this” value (“this one 2”). When a character having such a pattern is recognized, “ku” is added after the character. Note that whether the upper, lower, left, or right sub-determination area is drawn includes a great circle depending on the character. When a great circle is written at the end of the characters in the “e” column, “ki” is added after the characters in the “e” column. For example, when a great circle is added to the last main determination area M of “e”, it is recognized as “eki”.

図16は、「ツ」音の一例を示す図である。「ツ」音を表現する場合は、上述した長円(図4(H)参照)が描かれる。例えば、図16に示すように、メイン判定領域M31から「か」が書き始められ、「か」の最後のメイン判定領域M23と、その右斜め上のサブ判定領域A13とを含む長円が描かれると、書かれた文字「か」に「つ」が付加されて、「かつ」として認識される。図16では、さらに続けて「と」が書かれており、「と」の最後のメイン判定領域M24は「流し」となっている。また、「と」を示す線のサブ判定領域A23は「切り線」となっている。このため、図16に示す線は「かつどう」として認識される。このように長円が描かれる場合、文字の最後のメイン判定領域の判定値が「当2通3」又は「当2通4」であり、かつ、当該最後のメイン判定領域の斜めのサブ判定領域は「当」値(「当1通2」)を有することとなる。このようなパターンの文字が認識された場合は、文字の後に「つ」が付加される。なお、斜め方向の何れのサブ判定領域を含めて長円が描かれるかは、その文字によって異なる。   FIG. 16 is a diagram illustrating an example of the “tsu” sound. When the “tsu” sound is expressed, the above-described ellipse (see FIG. 4H) is drawn. For example, as shown in FIG. 16, “ka” is started to be written from the main determination area M31, and an ellipse including the last main determination area M23 of “ka” and the sub determination area A13 on the upper right is drawn. Is added to the written character “ka” and recognized as “and”. In FIG. 16, “to” is further written, and the last main determination area M24 of “to” is “sink”. Further, the sub-determination area A23 of the line indicating “to” is “cut line”. For this reason, the line shown in FIG. 16 is recognized as “Katsudo”. When an ellipse is drawn in this way, the determination value of the last main determination area of the character is “this two-way three” or “this two-way four”, and the diagonal sub-determination of the last main determination area The region will have a “this” value (“one per two”). When a character having such a pattern is recognized, “t” is added after the character. It should be noted that whether the ellipse is drawn including which sub-determination area in the oblique direction differs depending on the character.

次に、「ヲコト点」処理について説明する。ここで、速記における「ヲコト点」は、ある文字を示す線の終端からの所定位置に点を付した場合に、その点を所定の文字列とみなすものである。図17は、V式速記における「ヲコト点」を説明するための図である。   Next, the “bad point” process will be described. In this case, the “bad point” in the shorthand is to regard a point as a predetermined character string when a point is attached to a predetermined position from the end of a line indicating a certain character. FIG. 17 is a diagram for explaining the “bad point” in V-type shorthand.

V式速記では、図17の(1)に示すように、線の終端に対して右斜め上の位置P1の点は文字「こと」を意味し、線の終端に対して右の位置P2の点は文字「ので」を意味し、線の終端に対して下の位置P3の点は文字「わけで」を意味し、線の終端に対して左斜め下の位置P4の点は文字「もの」を意味する。また、V式速記では、図17の(2)に示すように、線の終端に対して右斜め上の位置P1の点は文字「した」を意味し、線の終端に対して右の位置P2の点は文字「おり」を意味し、線の終端に対して下の位置P3の点は文字「いる」を意味し、線の終端に対して左斜め下の位置P4の点は文字「して」を意味する。また、図17の(2)に示すように、線の終端に対して右斜め下の位置P5の点は文字「する」を意味する。ここで、図17の(1)及び(2)に示すように、同じ位置P1の点は異なる文字を意味するが、速記においては通常、(1)のパターンか、(2)のパターンかは、文脈から判断する。   In the V-type shorthand, as shown in (1) of FIG. 17, the point at the position P1 diagonally right above the end of the line means the character “that”, and at the right position P2 with respect to the end of the line. The point means the character “So”, the point at the position P3 below the end of the line means the character “That”, and the point at the position P4 diagonally lower left to the end of the line means the character “thing” "Means. Further, in the V-type shorthand, as shown in FIG. 17 (2), the point at the position P1 diagonally to the upper right with respect to the end of the line means the character “done”, and the right position with respect to the end of the line. The point at P2 means the character “ori”, the point at the position P3 below the end of the line means the character “is”, and the point at the position P4 diagonally lower left relative to the end of the line is the character “ Means " Further, as shown in (2) of FIG. 17, a point at a position P5 diagonally lower right with respect to the end of the line means the character “do”. Here, as shown in (1) and (2) of FIG. 17, the point at the same position P1 means a different character. However, in shorthand, the pattern of (1) or (2) is usually used. Judging from the context.

本実施形態の文字認識装置1では、図17に示した「ヲコト点」にならって、ヲコト点を定義する。図18は、本実施形態の文字認識装置1における「ヲコト点」の定義を示す図である。図18の(1)は、図17の(1)のパターンに対応するヲコト点を示し、図18の(2)は、図17の(2)のパターンに対応するヲコト点を示す。   In the character recognition apparatus 1 according to the present embodiment, the “best point” shown in FIG. 17 is defined. FIG. 18 is a diagram showing the definition of “null point” in the character recognition device 1 of the present embodiment. (1) in FIG. 18 shows a point corresponding to the pattern of (1) in FIG. 17, and (2) in FIG. 18 shows a point corresponding to the pattern (2) in FIG.

図18の(1)に示すように、ある文字の終端を示すメイン判定領域M23の右上のメイン判定領域M14の判定値が「当1通1」である場合は、図17の(1)のパターンにおける位置P1の点とみなして、「こと」を意味するものとする。また、ある文字の終端を示すメイン判定領域M23の右のメイン判定領域M24の判定値が「当1通1」である場合は、「ので」を意味し、メイン判定領域M23の下のメイン判定領域M33の判定値が「当1通1」である場合は、「わけで」を意味する。また、ある文字の終端を示すメイン判定領域M23の左斜め下のメイン判定領域M32又はサブ判定領域A32の判定値が「当1通1」である場合は、「もの」を意味する。   As shown in (1) of FIG. 18, when the determination value in the main determination area M14 at the upper right of the main determination area M23 indicating the end of a certain character is “this one 1”, in FIG. It is regarded as a point at position P1 in the pattern, and means “that”. Further, when the determination value in the main determination area M24 on the right of the main determination area M23 indicating the end of a certain character is “this 1 through 1”, it means “no”, and the main determination area below the main determination area M23. When the determination value of the area M33 is “this one 1”, it means “reason”. In addition, when the determination value of the main determination area M32 or the sub determination area A32 diagonally lower left of the main determination area M23 indicating the end of a certain character is “one 1”, it means “thing”.

また、各判定領域の判定値が「当1通0」の場合(すなわち、判定領域内に点が描かれ、判定領域外には出ない場合)には、図17の(2)のパターンに対応するヲコト点として判定される。具体的には、図18の(2)に示すように、ある文字の終端を示すメイン判定領域M23の右上のメイン判定領域M14の判定値が「当1通0」である場合は、図17の(2)のパターンにおける位置P1の点とみなして、「した」を意味するものとする。また、ある文字の終端を示すメイン判定領域M23の右のメイン判定領域M24の判定値が「当1通0」である場合は、「おり」を意味し、メイン判定領域M23の下のメイン判定領域M33の判定値が「当1通0」である場合は、「いる」を意味する。また、ある文字の終端を示すメイン判定領域M23の左斜め下のメイン判定領域M32又はサブ判定領域A32の判定値が「当1通0」である場合は、「して」を意味する。また、ある文字の終端を示すメイン判定領域M23の右斜め下のメイン判定領域M34の判定値が「当1通0」である場合は、「する」を意味する。   In addition, when the determination value of each determination area is “this one 0” (that is, when a point is drawn in the determination area and does not go outside the determination area), the pattern of (2) in FIG. It is determined as a corresponding point. Specifically, as shown in (2) of FIG. 18, when the determination value in the main determination area M14 at the upper right of the main determination area M23 indicating the end of a certain character is “this one 0”, FIG. In the pattern (2), it is regarded as a point at the position P1, and it means “do”. Further, when the determination value in the main determination area M24 on the right of the main determination area M23 indicating the end of a certain character is “this one 0”, it means “origin” and the main determination below the main determination area M23. When the determination value of the area M33 is “this one 0”, it means “is”. Further, when the determination value in the main determination area M32 or the sub determination area A32 diagonally to the left of the main determination area M23 indicating the end of a certain character is “this one 0”, it means “do”. In addition, when the determination value in the main determination area M34 diagonally to the lower right of the main determination area M23 indicating the end of a certain character is “this one 0”, it means “Yes”.

図19は、図18に示すヲコト点を含む速記文字の一例を示す図である。図19の(1)は、図18の(1)に示すヲコト点を含む速記文字の一例を示し、図19の(2)は、図18の(2)に示すヲコト点を含む速記文字の一例を示す。   FIG. 19 is a diagram showing an example of a shorthand character including the worst point shown in FIG. (1) in FIG. 19 shows an example of a shorthand character including the worst point shown in (1) of FIG. 18, and (2) in FIG. 19 shows the shorthand character including the worst point shown in (2) of FIG. An example is shown.

図19の(1)において、メイン判定領域M11〜M14の線は、通常の文字「よ」として認識され、続けて描かれたM14〜M43の線は、「い」として認識される。この「い」の終端であるメイン判定領域M43の右斜め上のメイン判定領域M34の判定値は「当1通1」であるため、このM34は上記ヲコト点の定義に従って「こと」と認識される。さらにこのM34から続けてM26まで線が描かれており、このM34〜M26の線は、通常の文字「な」として認識される。そして、この「な」を示す線の終端であるM26の右のM27の判定値が「当1通1」であるため、上記ヲコト点の定義に従って「ので」と認識される。したがって、図19の(1)に示す一連の軌跡は、「よいことなので」と認識される。   In (1) of FIG. 19, the lines in the main determination areas M11 to M14 are recognized as normal characters “Y”, and the lines M14 to M43 drawn in succession are recognized as “I”. Since the determination value of the main determination area M34 that is diagonally to the upper right of the main determination area M43, which is the end of this “I”, is “1”, this M34 is recognized as “that” according to the definition of the above point. The Further, a line is drawn from M34 to M26, and the lines M34 to M26 are recognized as the normal character “NA”. And since the judgment value of M27 on the right of M26 which is the end of the line indicating “NA” is “this 1 through 1”, it is recognized as “NO” according to the definition of the above point. Accordingly, the series of trajectories shown in (1) of FIG. 19 is recognized as “because it is good”.

また、図19の(2)において、メイン判定領域M11〜M23の線は、通常の文字「す」として認識され、続けて描かれたM23〜M33の線は、「て」を意味するが、M23とM33の間のB23に切り線が加えられているため(B23の判定値が「当2通4」であるため)、「で」として認識される。M33に続けてM54まで連続的に線が描かれており、このM33〜M54までの線は、通常の文字「に」として認識される。このM54の左斜め下のM63の判定領域は「当1通0」であるため、このM63内に描かれた点は、上記ヲコト点の定義にしたがって「して」と認識される。同様に、このM63の右側のM64の判定値は「当1通0」であるため、M64内に描かれた点は、上記ヲコト点の定義にしたがって「おり」と認識される。そして、M64に続けてM57まで描かれた線は、通常の文字「ま」として認識され、M57に続けてM69まで描かれた線は、通常の文字「す」として認識される。したがって、図19の(2)に示す一連の軌跡は、「すでにしております」と認識される。   Further, in (2) of FIG. 19, the lines of the main determination areas M11 to M23 are recognized as ordinary characters “su”, and the lines of M23 to M33 drawn subsequently mean “te”. Since a cut line is added to B23 between M23 and M33 (because the determination value of B23 is “this 2 through 4”), it is recognized as “de”. A line is continuously drawn from M33 to M54, and the line from M33 to M54 is recognized as a normal character “ni”. Since the determination area of M63 diagonally to the left of M54 is “this one 0”, the point drawn in M63 is recognized as “do” according to the definition of the above point. Similarly, since the determination value of M64 on the right side of M63 is “this one 0”, the point drawn in M64 is recognized as “origin” according to the definition of the above point. A line drawn from M64 to M57 is recognized as a normal character “MA”, and a line drawn from M57 to M69 is recognized as a normal character “SU”. Accordingly, the series of trajectories shown in (2) of FIG. 19 is recognized as “already done”.

なお、図18の(1)に示すヲコト点を示す判定値は、上述した「流し」のときの判定値と同じである。このため、「流し」を意図して線が描かれた場合に、ヲコト点として誤認識される可能性がある。このような誤認識を防止するために、パターン(線分)の最後の判定領域の判定値が「当1通1」(流し)のときは、そのパターンを認識した後に、パターンの最後の判定領域の判定値を「当1通2」(通常)に変更する。また、流し以外の「平行」や「交差」、「小円」、「大円」、「長円」など、パターン(文字に対応する線)の最後の判定領域の判定値が「当1通2」以外の値である場合も同様に、そのパターンを認識した後に、パターンの最後の判定領域の判定値を「当1通2」(通常)に変更する。   Note that the determination value indicating the worst point shown in (1) of FIG. 18 is the same as the determination value at the time of “sink” described above. For this reason, when a line is drawn with the intention of “sink”, it may be erroneously recognized as a critical point. In order to prevent such misrecognition, when the determination value of the last determination area of the pattern (line segment) is “this one 1” (sink), the last determination of the pattern is recognized after the pattern is recognized. The judgment value of the area is changed to “this one 2” (normal). In addition, the judgment value of the last judgment area of the pattern (line corresponding to the character) such as “parallel”, “intersection”, “small circle”, “large circle”, “ellipse”, etc. Similarly, when the value is other than “2”, after the pattern is recognized, the determination value of the last determination area of the pattern is changed to “this one 2” (normal).

次に、予めデータベースに記憶された文字判定のための判定テーブルについて説明する。図20は、判定領域に対する判定値のパターンと文字とを対応させた判定パターンテーブルの一例を示す図である。なお、図20では、上述した「あ行」、「か行」、「た行」、「は」、及び、拗音の一部(「きゃ」、「きゅ」、「きょ」)のみが示されているが、他の文字についても各文字の定義に従ったパターンがテーブルに記憶されている。具体的には、判定パターンテーブルには、判定値が当1通2の判定領域によって定義されるすべての文字が記憶されており、通常の五十音のひらがなの他に拗音の文字等が記憶されている。   Next, a determination table for character determination stored in advance in the database will be described. FIG. 20 is a diagram illustrating an example of a determination pattern table in which a determination value pattern for a determination region is associated with a character. In FIG. 20, only the above-mentioned “A row”, “Ka row”, “Ta row”, “Ha”, and a part of the roar (“Kya”, “Kyu”, “Kyo”). As shown, patterns for the other characters according to the definition of each character are stored in the table. Specifically, in the determination pattern table, all characters defined by the determination region having the determination value of 1 and 2 are stored, and in addition to the normal hiragana characters, stuttering characters are stored. Has been.

図20に示すように、例えば、パターン1は、線が1番目にメイン判定領域「Mi,j」を通過し、2番目にサブ判定領域「Ai,j」を通過し、3番目にメイン判定領域「Mi,j+1」を通過するパターンであり、このパターン1は、「と」を意味する。また、パターン2では、線は、1番目にメイン判定領域「Mi,j」、2番目にサブ判定領域「Ai,j」、3番目にメイン判定領域「Mi,j+1」、4番目にサブ判定領域「Ai,j+1」、5番目にメイン判定領域「Mi,j+2」を通過し、このパターン2は、「お」を意味する。文字認識装置1は、ユーザによって入力された軌跡がどの判定領域をどの順番で当たったか(通過したか)を検出し、その当たり(通過)のパターンが、図20に示す何れのパターンと一致するかを判定し、一致するパターンに対応する文字を出力する。   As shown in FIG. 20, for example, in the pattern 1, the line passes the main determination area “Mi, j” first, passes the sub determination area “Ai, j” second, and the main determination third. The pattern passes through the region “Mi, j + 1”, and this pattern 1 means “to”. In pattern 2, the line is first in the main determination area “Mi, j”, second in the sub determination area “Ai, j”, third in the main determination area “Mi, j + 1”, and fourth in the sub determination. The region “Ai, j + 1” and the fifth main determination region “Mi, j + 2” are passed, and this pattern 2 means “o”. The character recognizing device 1 detects in which order and in which order the trajectory input by the user has hit (passed), and the pattern of the hit (pass) matches any of the patterns shown in FIG. And the character corresponding to the matching pattern is output.

(文字認識処理の詳細)
次に、本実施形態の文字認識装置1における文字認識処理の詳細について説明する。図21は、本実施形態に係る文字認識処理の詳細を示すフローチャートである。図21に示す処理は、文字認識装置1のCPUが文字認識プログラムを実行することによって行われる。なお、図21に示すフローチャートの処理では、説明の便宜上、図20に示すテーブルを用いて文字を判定するものとして説明するものとし、このテーブルにリストされた19のパターン以外のパターンは無いものとして説明する。
(Details of character recognition processing)
Next, details of character recognition processing in the character recognition device 1 of the present embodiment will be described. FIG. 21 is a flowchart showing details of character recognition processing according to the present embodiment. The process shown in FIG. 21 is performed by the CPU of the character recognition device 1 executing a character recognition program. In the process of the flowchart shown in FIG. 21, for convenience of explanation, it is assumed that characters are determined using the table shown in FIG. 20, and there are no patterns other than the 19 patterns listed in this table. explain.

図21に示すように、まず、CPUは、表示装置に各判定領域を表示する(ステップS1)。具体的には、CPUは、複数の判定領域の位置及び大きさを設定するとともに、表示装置の画面の予め定められた位置に複数の判定領域を並べて表示する。次に、CPUは、速記文字を示す軌跡の入力を受け付ける(ステップS2)。具体的には、CPUは、入力手段を用いて入力された画面上の位置(縦横の座標値)を順次取得する。ユーザによって軌跡が入力されると、CPUは、次に、入力軌跡の判定情報を取得する(ステップS3)。ここでは、CPUは、取得した入力軌跡に対して、各判定領域の判定値(「当」値、及び、「通」値)を算出する。具体的には、CPUは、入力された位置を示す座標値と各判定領域の位置及び大きさとに基づいて、入力軌跡が判定領域に当たったか否か、判定領域を通過したか否かを判定することにより、各判定領域の判定値を算出する。   As shown in FIG. 21, first, the CPU displays each determination area on the display device (step S1). Specifically, the CPU sets the positions and sizes of the plurality of determination areas, and displays the plurality of determination areas side by side at predetermined positions on the screen of the display device. Next, the CPU accepts an input of a locus indicating a shorthand character (step S2). Specifically, the CPU sequentially acquires positions on the screen (vertical and horizontal coordinate values) input using the input unit. When a trajectory is input by the user, the CPU next acquires input trajectory determination information (step S3). Here, the CPU calculates a determination value (a “current” value and a “communication” value) of each determination region with respect to the acquired input trajectory. Specifically, the CPU determines whether or not the input trajectory hits the determination area and whether or not the determination area has passed based on the coordinate value indicating the input position and the position and size of each determination area. By doing so, the judgment value of each judgment area is calculated.

次に、CPUは、文字判定処理を行う(ステップS4)。ここで、ステップS4の文字判定処理について、図22及び図23を参照して説明する。図22は、入力軌跡の一例を示す図である。図23は、図22に示す入力軌跡が取得された場合の文字判定処理の概要を示す図である。   Next, the CPU performs character determination processing (step S4). Here, the character determination processing in step S4 will be described with reference to FIGS. FIG. 22 is a diagram illustrating an example of an input trajectory. FIG. 23 is a diagram showing an outline of the character determination process when the input locus shown in FIG. 22 is acquired.

例えば、図22に示すような入力軌跡が取得された場合、ステップS3において、10個の判定領域の判定値が「当1通2」と算出される。算出された各判定領域の判定情報は、図23(A)に示すように、入力軌跡が当たった順に配列に格納される。図23(A)では、M14、A23、M33、A42、M53、A52、M63、A72、A82、及び、M92の順に並べられている。具体的には、判定領域の種類(メイン判定領域M、サブ判定領域A、B)及びその位置を示す情報(何行目の何列目かを示す情報)と、その判定領域の判定値とが、配列の各要素に格納される。なお、図23では、判定領域の種類及びその位置を示す情報のみが示されている。   For example, when the input trajectory as shown in FIG. 22 is acquired, the determination values of the ten determination areas are calculated as “this one 2” in step S3. As shown in FIG. 23A, the calculated determination information of each determination area is stored in the array in the order in which the input trajectory hits. In FIG. 23A, M14, A23, M33, A42, M53, A52, M63, A72, A82, and M92 are arranged in this order. Specifically, the type of determination area (main determination area M, sub-determination areas A and B) and information indicating its position (information indicating what row and what column), and the determination value of the determination area Is stored in each element of the array. In FIG. 23, only the information indicating the type and position of the determination area is shown.

ここで、CPUは、配列の1番目及び2番目に格納された情報を取り出し、1番目に判定領域M14、2番目に判定領域A32となるパターンが、図20で示す判定パターンの中にあるか否かを判定する。M14の次にA23(相対位置で示すと「Mi,j」の次に「Ai+1,j−1」)がくるパターンとしては、パターン12〜15があるため、CPUは、これらパターン12〜15を判定文字の候補として選択する。さらにCPUは、3番目のM33を含めて、M14、A23、M33の順に並ぶパターンが、候補として選択したパターン12〜15の中にあるか否かを判定する。ここでは、パターン15が唯一、一致するパターンであるため、CPUは、M14、A23、M33の順に並ぶパターンをパターン15として認識する。すなわち、この3つの判定領域M14、A23、及び、M33を通過する線を文字「ち」と判定する。なお、この段階では、「当」値が1以上か否かしか判定されないため、例えば、A23の判定値が「当2通4」の場合も同様に「ち」と判定される。しかしながら、CPUは、入力軌跡が示す各文字を判定した後で、それぞれの文字に対応する各判定領域の判定値を参照することで、例えば切り線が加えられたかどうかを判定し、「ち」か「ぢ」かを判定する。交差や並行、流し、小円かどうかも、同様に、各文字を認識した後に判定される。   Here, the CPU retrieves the information stored in the first and second of the array, and whether the pattern that becomes the determination area M14 first and the determination area A32 second is in the determination pattern shown in FIG. Determine whether or not. Since there are patterns 12 to 15 in which M23 is followed by A23 (in terms of relative position, “Mi, j” followed by “Ai + 1, j−1”), the CPU uses these patterns 12-15. Select as a candidate for judgment character. Further, the CPU determines whether or not the patterns arranged in the order of M14, A23, and M33 including the third M33 are among the patterns 12 to 15 selected as candidates. Here, since the pattern 15 is the only matching pattern, the CPU recognizes the pattern arranged in the order of M14, A23, and M33 as the pattern 15. That is, the line passing through the three determination areas M14, A23, and M33 is determined as the character “Chi”. At this stage, since it is only determined whether or not the “present” value is 1 or more, for example, when the determination value of A23 is “present two 4”, it is similarly determined as “chi”. However, after determining each character indicated by the input trajectory, the CPU refers to the determination value of each determination area corresponding to each character to determine, for example, whether or not a cut line has been added. Or “ぢ”. Whether it is an intersection, parallel, flow, or small circle is similarly determined after each character is recognized.

続いて、CPUは、1文字目の最後の判定領域M33(配列の3番目)を最初の判定領域とする2文字目のパターンの検索を開始する。具体的には、図23(B)に示すように、3番目〜10番目を残りの入力軌跡として、上記と同様の手順で図20に示す複数のパターンの中から一致するパターンを探索する。具体的には、2文字目の1番目及び2番目(配列の3番目及び4番目)は、それぞれM33及びA42(相対位置では、「Mi,j」及び「Ai+1,j−1」)であるため、CPUは、図20に示すテーブルを参照して一致するパターンを選択することにより、パターン12〜15を判定文字の候補として選択する。次に、CPUは、図23(C)に示すように、配列の5番目(2文字目の3番目)を参照し、M33、A42、M53の順に並ぶパターンが図20に示すテーブルにあるか否かを判定する。このようなパターンはテーブルには存在しない。このため、CPUは、5番目のM53を無視し、次に6番目を2文字目の3番目として参照する。ここで、5番目のM53を無視するのは、ユーザによる書き間違いを考慮するためであり、本実施形態では、判定領域を1つ進むごとに1つの書き間違いを許容するものとする。すなわち、入力された線が、正しい判定領域(1番目)を通過した後に誤った判定領域(2番目)を通過し、さらに正しい判定領域(3番目)を通過している場合は、当該誤った判定領域(2番目)を無視し、正しい2つの判定領域(1番目と3番目)を用いて文字認識が行われる。一方、入力された線が、正しい判定領域(1番目)を通過した後に2つ続けて誤った判定領域(2番目及び3番目)を通過している場合は、認識不能として処理するものとする。なお、ユーザによる書き間違いをどの程度許容するかは適宜調整されてもよい。   Subsequently, the CPU starts searching for the second character pattern using the last determination region M33 of the first character as the first determination region. Specifically, as shown in FIG. 23B, the third to the tenth are set as the remaining input trajectories, and a matching pattern is searched from the plurality of patterns shown in FIG. 20 in the same procedure as described above. Specifically, the first and second characters (third and fourth in the array) of the second character are M33 and A42 ("Mi, j" and "Ai + 1, j-1" in relative positions), respectively. Therefore, the CPU selects patterns 12 to 15 as candidates for determination characters by selecting matching patterns with reference to the table shown in FIG. Next, as shown in FIG. 23C, the CPU refers to the fifth (third third character) of the array, and whether there is a pattern arranged in the order of M33, A42, and M53 in the table shown in FIG. Determine whether or not. Such a pattern does not exist in the table. For this reason, the CPU ignores the fifth M53 and then refers to the sixth as the third of the second character. Here, the reason why the fifth M53 is ignored is to consider a writing mistake by the user, and in this embodiment, one writing error is allowed every time the determination area is advanced by one. That is, if the input line passes through the incorrect determination region (second) after passing through the correct determination region (first), and further passes through the correct determination region (third), the incorrect line Character recognition is performed by ignoring the determination region (second) and using the two correct determination regions (first and third). On the other hand, if the input line passes through the wrong judgment area (second and third) after passing through the correct judgment area (first), it is processed as unrecognizable. . It should be noted that the extent to which a user's writing mistake is allowed may be adjusted as appropriate.

すなわち、本実施形態では、ある判定領域(N番目)の次の判定領域(N+1番目)を参照して、予め定められたパターンと一致しない場合は、当該判定領域(N+1番目)を無視し、さらに次の判定領域(N+2番目)を参照して、N番目とN+2番目とを含むパターンが、予め定められたパターンと一致するか否かを判定する。6番目はM52であるため、CPUは、図23(C)に示すように、M33、A42、A52の順に並ぶパターンが、図20に示すパターン12〜15の中にあるか否かを判定する。ここでは、パターン12〜14が候補として残るため、CPUは、探索を続行する。CPUは、さらに次の7番目を参照して、M33、A42、A52、M63の順に並ぶパターンが、候補として残ったパターン12〜14の何れかと一致するか否かを判定する。ここでは、パターン14が唯一、一致するパターンであるため、CPUは、M33、A42、A52、M63の順に並ぶパターンをパターン14として認識する。すなわち、この3つの判定領域M33、A42、A52、M63を通過する線を文字「け」と判定する(図23(D))。   That is, in the present embodiment, with reference to a determination area (N + 1) next to a certain determination area (Nth), if the pattern does not match a predetermined pattern, the determination area (N + 1) is ignored, Further, with reference to the next determination area (N + 2), it is determined whether or not the pattern including the Nth and N + 2th matches a predetermined pattern. Since the sixth is M52, as shown in FIG. 23C, the CPU determines whether the patterns arranged in the order of M33, A42, and A52 are in the patterns 12 to 15 shown in FIG. . Here, since the patterns 12 to 14 remain as candidates, the CPU continues the search. The CPU further refers to the next seventh to determine whether the pattern arranged in the order of M33, A42, A52, and M63 matches any of the patterns 12 to 14 remaining as candidates. Here, since the pattern 14 is the only matching pattern, the CPU recognizes the pattern arranged in the order of M33, A42, A52, and M63 as the pattern 14. That is, the line passing through the three determination areas M33, A42, A52, and M63 is determined as the character “ke” (FIG. 23D).

残りの入力軌跡についても同様である。すなわち、図23(E)に示すように、CPUは、配列の7番目〜10番目を参照して、M63、A72、A82、M92の順に並ぶパターンをパターン12として認識し、文字「い」と判定する。   The same applies to the remaining input trajectories. That is, as shown in FIG. 23E, the CPU refers to the seventh to tenth arrays, recognizes the pattern arranged in the order of M63, A72, A82, and M92 as the pattern 12, and determines the character “I”. judge.

このように、ステップS4の文字判定処理では、当値が1以上の領域が順に格納された配列を最初から探索して1文字ずつ判定が行われる。なお、当値が1以上の領域であって当該領域の判定値が図4に示す何れでもない場合は、その領域の判定値は「当1通2」としてステップS4の文字判定処理を行ってもよい。   As described above, in the character determination process in step S4, an array in which areas having a value of 1 or more are sequentially stored is searched from the beginning, and determination is performed for each character. Note that if the current value is an area of 1 or more and the determination value of the area is not any of those shown in FIG. 4, the determination value of that area is set to “this 1 2” and the character determination process of step S4 is performed. Also good.

ステップS4に続いて、CPUは、文字判定処理で判定された文字を出力する(ステップS5)。そして、CPUは、図21の処理を終了するか否かを判定する(ステップS6)。例えば、ユーザによって終了が指示された場合は、CPUは、ステップS6においてYESと判定して、図21に示す処理を終了する。一方、ステップS6でNOと判定した場合、CPUは、再びステップS2の処理を実行する。   Subsequent to step S4, the CPU outputs the character determined in the character determination process (step S5). And CPU determines whether the process of FIG. 21 is complete | finished (step S6). For example, if termination is instructed by the user, the CPU determines YES in step S6 and terminates the processing shown in FIG. On the other hand, when it determines with NO by step S6, CPU performs the process of step S2 again.

なお、入力軌跡が独立した文字か、連結された複数の文字かによって出力される文字が異なる場合がある。また、連結された文字列の最初か最後かによっても出力する文字を異ならせてもよい。このため、CPUは、ステップS4の文字判定処理において、独立した文字か、連結した文字かを判定してもよい。   The output character may differ depending on whether the input locus is an independent character or a plurality of connected characters. Further, the output character may be different depending on whether the connected character string is the first or last character string. For this reason, the CPU may determine whether it is an independent character or a connected character in the character determination processing in step S4.

図24は、文字の独立と連結の判定を説明するための図である。図24(A)は、独立した文字を示し、図24(B)は、連結された文字を示す。   FIG. 24 is a diagram for explaining determination of character independence and connection. FIG. 24A shows independent characters, and FIG. 24B shows concatenated characters.

図24(A)に示すように、文字が独立して描かれている場合、その文字を示す最初の判定領域M42の周囲(8個のメイン判定領域M及び12個のサブ判定領域)には、次の判定領域B33を除いて、「当」値が1以上となる領域は存在しない。また、文字の最後の判定領域M35の周囲には、判定領域M35の前の判定領域B34を除いて、「当」値が1以上となる領域は存在しない。したがって、CPUは、このようなパターンは、独立したものであると判定することができる。   As shown in FIG. 24A, when characters are drawn independently, there are around the first determination region M42 indicating the characters (eight main determination regions M and twelve sub determination regions). Except for the next determination area B33, there is no area where the “present” value is 1 or more. In addition, there is no area where the “present” value is 1 or more around the last determination area M35 of the character, except for the determination area B34 before the determination area M35. Therefore, the CPU can determine that such a pattern is independent.

一方、図24(B)に示すように、文字が連結されている場合は、連結された文字列のうちの先頭の文字については、複数の判定領域のうち、最初の判定領域M24の周囲(判定領域M24の次の判定領域A33を除く)に「当」値が無く、その先頭の文字の最後の判定領域M43の周囲(M43の前のA33を除く)には、「当」値がある(A52には「当」値がある)。かつ、連結された文字列のうちの末尾の文字については、複数の判定領域のうち、最初の判定領域M73の周囲(次のA82を除く)に「当」値があり(A62には「当」値がある)、その末尾の文字における最後の判定領域M10,2の周囲(M10,2の前のA92を除く)には、「当」値が無い。すなわち、連結された文字列のうちの先頭の文字については、その先頭の文字における最初の判定領域Mの周囲(次の領域を除く19個の領域)に「当」値がなく、かつ、その先頭の文字における最後の判定領域Mの周囲(前の領域を除く19個の領域)に「当」値がある。連結された文字列のうちの末尾の文字については、その末尾の文字における最初の判定領域Mの周囲(次の領域を除く19個の領域)には「当」値があり、かつ、その末尾の文字における最後の判定領域Mの周囲(前の領域を除く19個の領域)には「当」値がない。したがって、CPUは、このようなパターンは、先頭から末尾までが連結したものであると判定することができる。このように、ある文字が連結しているか独立しているかは、その文字の最初と最後の判定領域の周囲の判定領域のうち、その文字自身で用いられる判定領域を除いた複数の領域に「当」値があるかどうかで判定することができる。すなわち、ある文字が別の文字と連結される場合、ある文字の最初又は最後の判定領域が、別の文字の最後又は最初の判定領域として用いられる。このため、ある文字について、その文字の最初の判定領域の周囲(20個の判定領域のうち、その文字自身で用いる判定領域を除く複数の判定領域)に当値がある場合は、少なくともその文字の前に別の文字が連結されていると判断することができる。同様に、ある文字について、その文字の最後の判定領域の周囲(20個の判定領域のうち、その文字自身で用いる判定領域を除く複数の判定領域)に当値がある場合は、少なくともその文字の後に別の文字が連結されていると判断することができる。なお、文字の定義によっては文字の最初及び最後の判定領域の周囲の判定領域に当値があるか否かを判断するだけでは、その文字が連結されたものかどうかを判断できない場合もある。しかしながら、そのような特殊な文字についてもその文字特有の判定を行うことで、その文字が連結されたものかどうかを判断することはできる。   On the other hand, as shown in FIG. 24B, when characters are connected, the first character in the connected character string is surrounded by the first determination region M24 (see FIG. 24B). There is no “To” value in the determination area M24 (except for the next determination area A33), and there is a “To” value around the last determination area M43 of the first character (except A33 before M43). (A52 has a “current” value). In addition, for the last character in the concatenated character string, there is a “current” value around the first determination region M73 (excluding the next A82) among the plurality of determination regions (A62 includes “ There is no “present” value around the last determination area M10,2 (except A92 before M10,2) in the last character. That is, for the first character in the concatenated character string, there is no “this” value around the first determination region M (19 regions excluding the next region) in the first character, and There is a “present” value around the last determination area M in the first character (19 areas excluding the previous area). For the last character in the concatenated character string, there is a “to” value around the first determination area M (19 areas excluding the next area) in the last character, and at the end. There is no “current” value around the last determination area M (19 areas excluding the previous area) in the character of. Therefore, the CPU can determine that such a pattern is a concatenation from the beginning to the end. In this way, whether a character is connected or independent is determined in a plurality of areas excluding the determination area used by the character itself, among the determination areas around the first and last determination areas of the character. Judgment can be made based on whether or not there is a value. That is, when a certain character is connected to another character, the first or last determination area of a certain character is used as the last or first determination area of another character. For this reason, if a certain character has a value around the first determination area of the character (a plurality of determination areas excluding the determination areas used by the character itself among the 20 determination areas), at least the character It can be determined that another character is connected before. Similarly, if a certain character has a value around the last determination area of the character (a plurality of determination areas excluding the determination areas used by the character itself among the 20 determination areas), at least the character It can be determined that another character is connected after. Depending on the definition of the character, it may not be possible to determine whether or not the character is concatenated only by determining whether or not there is a corresponding value in the determination region around the first and last determination regions of the character. However, it is possible to determine whether or not such a character is a concatenated character by making a determination specific to that character.

このような特徴を探索することで、入力軌跡が取得された場合に、CPUは、独立した文字か連結された文字かを判断することができ、連結された文字列単位で文字を認識することができる。本実施形態の文字認識装置1は、上述のようにして文字が連結されているか否か、および、文字の連結の最初と最後を判断し、その結果に応じて出力する文字を変えることができる。例えば、通常の速記においては略語があり、文字「あ」を「あります」として用いることがある。通常の速記においては、文字「あ」と略語の「あります」は同じであり、これらを文脈から判断する。本実施形態の文字認識装置1は、文字の連結の最初と最後を上述のようにして判断し、例えば、連結された文字列が「あ」で終わる場合には当該最後の文字「あ」を「あります」として出力してもよい。一方で、独立した「あ」や連結された文字列中の最後以外の「あ」は、そのまま「あ」として出力してもよい。このように、各文字を認識した場合に、独立した文字か、連結された文字か、連結された文字列のうちのどの位置かによって、出力する文字を異ならせてもよい。   By searching for such a feature, when an input trajectory is acquired, the CPU can determine whether it is an independent character or a concatenated character, and recognizes the character in units of concatenated character strings. Can do. The character recognition device 1 of the present embodiment can determine whether or not characters are connected as described above, and determine the start and end of character connection, and can change the character to be output according to the result. . For example, in normal shorthand, there are abbreviations, and the letter “A” is sometimes used as “A”. In normal shorthand, the letter “A” and the abbreviation “Ari” are the same, and these are judged from the context. The character recognition device 1 of the present embodiment determines the beginning and end of character concatenation as described above. For example, if the concatenated character string ends with “a”, the character “a” is the last character. It may be output as “Yes”. On the other hand, an independent “a” or “a” other than the last in a concatenated character string may be output as “a” as it is. Thus, when each character is recognized, the character to be output may be different depending on the position of the independent character, the connected character, or the connected character string.

次に、上記文字認識装置1の具体的な実施例について説明する。例えば、文字認識装置1の実施例として、タッチパネルを備えるタブレット型の携帯電子機器100が用いられてもよい。図25は、文字認識装置1の一実施例としての携帯電子機器100を示す図である。携帯電子機器100は、ディスプレイ108と、当該ディスプレイ上に設けられたタッチパネル102とを備える。また、ディスプレイ108には、判定した文字を表示するための文字表示領域が設けられる。また、ディスプレイ108には、「消しゴムボタン」、「漢字変換ボタン」、「クリアボタン」等が設けられてもよい。   Next, a specific embodiment of the character recognition device 1 will be described. For example, as an example of the character recognition device 1, a tablet-type portable electronic device 100 including a touch panel may be used. FIG. 25 is a diagram illustrating a portable electronic device 100 as an example of the character recognition device 1. The portable electronic device 100 includes a display 108 and a touch panel 102 provided on the display. Further, the display 108 is provided with a character display area for displaying the determined character. The display 108 may be provided with an “eraser button”, “kanji conversion button”, “clear button”, and the like.

ディスプレイ108としては、例えば、液晶表示装置や有機EL表示装置等、任意の表示装置が用いられてもよい。また、タッチパネル102は、タッチペン(又はユーザの指)でディスプレイ108の画面がタッチされた場合に、当該タッチされた位置を検出する位置入力装置であり、抵抗膜方式、静電容量方式等、任意のものが用いられてもよい。   As the display 108, for example, an arbitrary display device such as a liquid crystal display device or an organic EL display device may be used. The touch panel 102 is a position input device that detects the touched position when the screen of the display 108 is touched with a touch pen (or a user's finger). May be used.

図25に示すように、ユーザがペンを用いてディスプレイ108上をタッチしたままペンを移動させると、携帯電子機器100は所定の時間間隔でタッチ位置を順次検出し、検出したタッチ位置に点を描画することで、入力軌跡を示す画像をディスプレイ108にリアルタイムで表示する。入力された入力軌跡は、所定のタイミングで文字に変換されて、文字表示領域に表示される。例えば、ユーザによって変換の指示がされた場合に文字認識処理が行われて、文字表示領域に文字が表示されてもよいし、一筆書きの軌跡が入力された後に自動的に文字認識処理が行われ、一筆書きの軌跡に対応する文字列が表示されてもよい。   As shown in FIG. 25, when the user moves the pen while touching the display 108 using the pen, the portable electronic device 100 sequentially detects the touch position at predetermined time intervals, and points are detected at the detected touch position. By drawing, an image showing the input locus is displayed on the display 108 in real time. The inputted input locus is converted into characters at a predetermined timing and displayed in the character display area. For example, character recognition processing may be performed when conversion is instructed by the user, and characters may be displayed in the character display area, or character recognition processing may be performed automatically after a stroke stroke is input. In other words, a character string corresponding to a one-stroke trajectory may be displayed.

「消しゴムボタン」は、ユーザが誤ってある判定領域をタッチしてしまった場合に、その判定領域の判定値を消去するためのものである。図23を参照して説明した例では、文字認識装置1がユーザの誤入力を自動的に検出するものとしたが、「消しゴムボタン」を用いることで、ユーザが自身で誤って接触してしまった判定領域を削除することができる。例えば、ユーザは、所定の操作を行うことで判定値を消去したい判定領域を選択し、「消しゴムボタン」をタッチすることにより、選択した領域の判定値をクリアすることができる。   The “eraser button” is for erasing the determination value of the determination area when the user accidentally touches the determination area. In the example described with reference to FIG. 23, it is assumed that the character recognition device 1 automatically detects a user's erroneous input. However, by using the “eraser button”, the user accidentally touches himself / herself. The determination area can be deleted. For example, the user can clear the determination value of the selected area by selecting a determination area where the determination value is to be deleted by performing a predetermined operation and touching an “eraser button”.

また、「漢字変換ボタン」は、入力された文字を漢字変換して出力させるためのものである。ユーザは、速記文字を入力した後、漢字変換ボタンをタッチすることで、文字表示領域に漢字変換後の文字が表示される。なお、一度ひらがなで表示された後に、漢字変換ボタンがタッチされた場合に漢字に変換されてもよい。このような漢字変換ボタンの他にも、ひらがなボタン、カタカナボタン、英字ボタン、数字・記号ボタン、略語ボタン(略語を出力するためのボタン)等が設けられ、各ボタンに応じて出力する文字を変更してもよい。また、濁音、半濁音を入力するためのボタンを設け、当該ボタンが押されているときに軌跡が入力された場合、その入力された軌跡が示す文字に濁音又は半濁音がつけられてもよい。   The “kanji conversion button” is used to convert an input character into kanji and output it. The user touches the Kanji conversion button after inputting the shorthand characters, and the characters after Kanji conversion are displayed in the character display area. It should be noted that after being displayed in hiragana, it may be converted into kanji when the kanji conversion button is touched. In addition to these Kanji conversion buttons, hiragana buttons, katakana buttons, alphabetic buttons, numbers / symbol buttons, abbreviation buttons (buttons for outputting abbreviations), etc. are provided. It may be changed. In addition, a button for inputting muddy sound or semi-muddy sound may be provided, and when a locus is inputted when the button is pressed, muddy sound or semi-muddy sound may be added to the character indicated by the inputted locus. .

また、「クリアボタン」は、入力された軌跡を消去するためのものである。このクリアボタンがタッチされると、ディスプレイ109に表示された入力軌跡が全て消去されるとともに、文字表示領域に表示された文字も消去される。なお、入力された軌跡を消去するためのボタンと、文字表示領域に出力された文字を消去するボタンとが別に設けられてもよい。   The “clear button” is for erasing the input locus. When this clear button is touched, all of the input locus displayed on the display 109 is deleted, and characters displayed in the character display area are also deleted. Note that a button for deleting the input locus and a button for deleting the character output in the character display area may be provided separately.

このような機能の他にも、入力された軌跡を示す画像を保存する機能があってもよい。例えば、「クリアボタン」がタッチされた場合に、入力軌跡が画像として保存されてもよいし、「保存ボタン」が設けられ、保存ボタンがタッチされた場合に画像を不揮発性メモリやハードディスク等の記憶手段に保存するようにしてもよい。このように、入力された軌跡を示す画像が保存されることにより、ユーザは、どのような文字を入力したかを後に確認することができる。   In addition to such a function, there may be a function of saving an image indicating an input locus. For example, when the “clear button” is touched, the input trajectory may be saved as an image, or when the “save button” is provided and the save button is touched, the image is stored in a non-volatile memory or a hard disk. You may make it preserve | save in a memory | storage means. As described above, the image indicating the input locus is saved, so that the user can later confirm what character has been input.

また、文字認識装置1の他の具体的な実施例としては、入力された軌跡をデータとして保存可能なデジタルペンが用いられてもよい。具体的には、デジタルペンは、紙に文字や図形等を書くことが可能なペンであり、描かれた文字や図形を示すデータを当該デジタルペン内部の不揮発性メモリに保存することができる。例えば、デジタルペンは、専用紙に印刷された所定のパターンをデジタルペンに設けられたカメラで読み取ることで、書き込み位置を把握して記憶することができる。このようなデジタルペンを用いて入力された速記文字を、上述した方法により通常の文字に変換することができる。例えば、デジタルペンと無線又は有線で接続された情報処理装置が上記処理を実行するように構成されてもよい。具体的には、デジタルペンで読み取った入力軌跡を示すデータが情報処理装置に送信され、送信されたデータに基づいて、情報処理装置が上述した処理を行う。あるいは、デジタルペンに記憶されたデータを後に情報処理装置に取り込んで、当該データに基づいて上述した処理を実行することにより、入力された速記文字を通常の文字に変換してもよい。また、例えば、デジタルペン自体が上述した処理を実行し、入力された速記文字を読み取って通常の文字に変換してもよい。   As another specific example of the character recognition device 1, a digital pen that can store an input locus as data may be used. Specifically, the digital pen is a pen capable of writing characters, figures, and the like on paper, and data indicating the drawn characters and figures can be stored in a nonvolatile memory inside the digital pen. For example, the digital pen can grasp and store the writing position by reading a predetermined pattern printed on the dedicated paper with a camera provided on the digital pen. A shorthand character input using such a digital pen can be converted into a normal character by the method described above. For example, an information processing apparatus connected to the digital pen wirelessly or by wire may be configured to execute the above processing. Specifically, data indicating the input locus read with the digital pen is transmitted to the information processing apparatus, and the information processing apparatus performs the above-described processing based on the transmitted data. Or the data memorize | stored in the digital pen may be taken into an information processing apparatus later, and the input shorthand character may be converted into a normal character by performing the process mentioned above based on the said data. Further, for example, the digital pen itself may execute the above-described processing, read an input shorthand character, and convert it into a normal character.

また、本発明は、タッチパネルが設けられた画面やデジタルペンを用いて専用紙に入力された入力軌跡を読み取って文字に変換する場合に限らず、他の方法によって入力された入力軌跡を読み取って文字に変換してもよい。例えば、画面に複数の判定領域が表示され、マウスやジョイスティック等の位置入力装置を用いて画面上を指示しながら入力軌跡が入力されてもよい。マウス等の位置入力装置を用いて指示された画面上の位置には、ポインタが表示され、ユーザは当該ポインタを移動させることで速記文字を入力してもよい。   In addition, the present invention is not limited to the case where an input locus input on dedicated paper is read using a screen provided with a touch panel or a digital pen and converted into characters, and an input locus input by another method is read. It may be converted to characters. For example, a plurality of determination areas may be displayed on the screen, and an input locus may be input while instructing on the screen using a position input device such as a mouse or a joystick. A pointer may be displayed at a position on the screen instructed using a position input device such as a mouse, and the user may input a shorthand character by moving the pointer.

なお、このような判定領域が表示された画面に対して入力軌跡が入力された場合において、判定領域の判定値に応じて、判定領域が異なる表示態様で表示されてもよい。例えば、入力軌跡が当たっていない領域については通常の色で表示され、「当1通1」の判定領域については、青色で表示され、「当2通4」の判定領域については緑色で表示されてもよい。   In addition, when an input locus is input on the screen on which such a determination area is displayed, the determination area may be displayed in a different display mode according to the determination value of the determination area. For example, an area where the input locus is not hit is displayed in a normal color, a determination area of “This 1 through 1” is displayed in blue, and a determination area of “This 2 through 4” is displayed in green. May be.

また、通常の紙に通常のペンを用いて入力された入力軌跡が読み取られて通常の文字に変換されてもよい。この場合、紙には上述した判定領域が印刷され、ユーザは、印刷された判定領域を見ながら速記文字を入力することができる。紙に入力された入力軌跡は、スキャナやカメラ等で読み取られ、上述した文字認識処理が行われることで、文字に変換される。具体的には、文字認識装置は、読み取った紙に印刷された判定領域をパターンマッチング等により認識するとともに、ユーザによって入力された入力軌跡を認識する。そして、文字認識装置は、判定領域と入力軌跡との位置関係に基づいて、各判定領域に入力軌跡が当たったか(通過したか)を判別することができる。この場合は、文字認識装置は、入力軌跡の方向(入力軌跡が各判定領域に当たった順番)を認識する必要があるが、速記文字は基本的に左から右方向に、上から下方向に入力されるという前提を用いて、読み取られた入力軌跡がどこからどの方向に書かれたのかを推定することができる。すなわち、読み取られた線が左から右方向、上から下方向に向かって描かれたと仮定すると、実際に描かれた向きと同じ向きで紙を読み取ることで、線が描かれた方向を推定することができる。線が描かれた方向を推定した後は、上述した方法により、線がどの判定領域にどのような順番で当たったかを判定することができる。また、紙に上下左右方向を認識させるための所定のパターンを印刷しておけば、文字認識装置は、当該所定のパターンを認識することで紙の方向を認識することができ、入力軌跡の方向を推定することができる。   In addition, an input trajectory input to a normal paper using a normal pen may be read and converted to a normal character. In this case, the above-described determination area is printed on the paper, and the user can input shorthand characters while looking at the printed determination area. The input locus input on the paper is read by a scanner, a camera, or the like, and converted into characters by performing the character recognition process described above. Specifically, the character recognition device recognizes a determination area printed on the read paper by pattern matching or the like and recognizes an input locus input by the user. Then, the character recognition device can determine whether the input track has hit (passed) each determination region based on the positional relationship between the determination region and the input track. In this case, the character recognition device needs to recognize the direction of the input trajectory (the order in which the input trajectory hits each determination area), but the shorthand characters are basically from left to right and from top to bottom. Using the premise that the input is input, it is possible to estimate from where and in which direction the read input trajectory is written. That is, assuming that the read line is drawn from left to right and from top to bottom, the direction in which the line is drawn is estimated by reading the paper in the same direction as the actual drawn direction. be able to. After estimating the direction in which the line is drawn, it is possible to determine in which order the line hits and in what order by the method described above. In addition, if a predetermined pattern for recognizing the vertical and horizontal directions is printed on the paper, the character recognition device can recognize the direction of the paper by recognizing the predetermined pattern, and the direction of the input locus Can be estimated.

また、ユーザによって種々のカスタマイズが可能であってもよい。例えば、文字判定に用いられる判定パターンテーブルに、ユーザ独自のパターンが登録されてもよい。この場合ユーザ独自に登録されたパターン(文字を示すパターン)が優先的に出力されてもよい。また、ユーザによって判定領域のサイズや形状、配置、行数、列数が設定されてもよいし、メインとサブの判定領域の大きさの比率、メインとサブの判定領域の間の距離等が設定されてもよい。また、判定領域の判定値毎の色や入力軌跡を描画する線の色や太さ等がユーザによって設定されてもよい。   Various customizations may be possible depending on the user. For example, a user-specific pattern may be registered in a determination pattern table used for character determination. In this case, a pattern uniquely registered by the user (pattern indicating characters) may be preferentially output. In addition, the size, shape, arrangement, number of rows, and number of columns of the determination area may be set by the user, the ratio of the size of the main and sub determination areas, the distance between the main and sub determination areas, etc. It may be set. Further, the color for each determination value in the determination region, the color or thickness of the line for drawing the input locus, and the like may be set by the user.

また、上記実施形態のフローチャートで示した処理は単なる一例であり、上述した文字認識方法を実現する処理であれば、上記処理の一部又は全部が変更されてもよいし、上記処理の一部が実行されなくてもよいし、上記処理の他の処理が付加されてもよい。また、処理の順番はどのようなものでもよい。例えば、全ての判定領域を順に調べて、「当」値がある判定領域を探索するようにしてもよい。「当」値がある判定領域が見つかった場合に、その判定領域を起点として周囲に「当」値がある判定領域があるか否かを判定することで、入力軌跡のパターンを探索してもよい。   Moreover, the process shown in the flowchart of the said embodiment is only an example, and if it is a process which implement | achieves the character recognition method mentioned above, a part or all of the said process may be changed, and a part of said process May not be executed, or other processing may be added. Further, any order of processing may be used. For example, all the determination areas may be examined in order to search for a determination area having a “present” value. When a determination area with a “to” value is found, it is possible to search for an input trajectory pattern by determining whether or not there is a determination area with a “to” value around that determination area. Good.

また、例えば、上記実施形態では、複数の判定領域が画面に表示されたが、必ずしも複数の判定領域は表示される必要はなく、文字認識装置の内部的に複数の判定領域が定義されてもよい。   Also, for example, in the above embodiment, a plurality of determination areas are displayed on the screen. However, the plurality of determination areas are not necessarily displayed, and a plurality of determination areas may be defined internally in the character recognition device. Good.

また、速記文字を入力するため入力領域に、行(範囲)が複数設けられ、行単位で速記文字が入力されてもよい。例えば、縦方向にメイン判定領域Mが複数並んだ領域を1行目とし、その1行目の下に同様に縦方向にメイン判定領域Mが複数並んだ領域が設けられて2行目と定義されてもよい。   Further, a plurality of lines (ranges) may be provided in the input area for inputting shorthand characters, and shorthand characters may be input in units of lines. For example, an area in which a plurality of main determination areas M are arranged in the vertical direction is defined as the first line, and an area in which a plurality of main determination areas M are similarly arranged in the vertical direction is provided below the first line. Also good.

また、上記実施形態では、速記文字が入力され、入力された速記文字を認識するものとしたが、速記文字に限らず、他の文字(ひらがなやカタカナ、漢字、アルファベット等)が入力されて上述の方法により認識されてもよい。例えば、アルファベットの筆記体は速記文字と同様に続けて書かれるが、上述した方法を用いることで、筆記体で書かれた各文字を認識することができる。このように、連結されて書かれる文字(一筆書きで書かれる文字)について、本発明を適用することにより、手書きされた文字を認識することができる。   In the above embodiment, a shorthand character is inputted and the inputted shorthand character is recognized. It may be recognized by this method. For example, an alphabetic script is written in the same manner as a shorthand character, but each character written in a script can be recognized by using the method described above. As described above, the handwritten character can be recognized by applying the present invention to the characters written concatenated (characters written with a single stroke).

また、他の実施形態では、複数(又は単数)の装置によって構成されるシステムによって上記処理が行われてもよい。例えば、ネットワークに接続された複数の装置が処理を分担して実行することにより、上記処理が実行されてもよい。いわゆるクラウドコンピューティングのような分散型のネットワークシステムによって上記処理が行われてもよい。また、上記処理の一部又は全部が複数のプロセッサによって実行されてもよいし、上記処理の一部又は全部が専用回路によって行われてもよい。   In another embodiment, the above-described processing may be performed by a system configured by a plurality (or a single) device. For example, the above processing may be executed by a plurality of devices connected to the network sharing the processing. The above processing may be performed by a distributed network system such as so-called cloud computing. Further, part or all of the above processing may be executed by a plurality of processors, and part or all of the above processing may be performed by a dedicated circuit.

1 文字認識装置
2 入力手段
8 表示手段
M メイン判定領域
A サブ判定領域
B サブ判定領域
DESCRIPTION OF SYMBOLS 1 Character recognition apparatus 2 Input means 8 Display means M Main determination area A Sub determination area B Sub determination area

Claims (12)

ユーザによって行われた入力から文字を認識する文字認識装置であって、
ユーザによって入力された入力軌跡を取得する取得手段と、
複数の判定領域を設定する領域設定手段と、
前記入力軌跡と前記判定領域との位置関係に基づいて、前記判定領域の判定値を判定領域毎に算出する算出手段と、
前記算出手段によって算出された前記判定領域毎の判定値に基づいて、文字を判定する文字判定手段とを備える、文字認識装置。
A character recognition device that recognizes characters from input made by a user,
Obtaining means for obtaining an input trajectory input by the user;
Area setting means for setting a plurality of determination areas;
Calculation means for calculating a determination value of the determination area for each determination area based on a positional relationship between the input locus and the determination area;
A character recognition device comprising: character determination means for determining a character based on a determination value for each determination area calculated by the calculation means.
前記算出手段は、前記入力軌跡が前記判定領域に当たったか否かに基づいて、前記判定値を算出する、請求項1に記載の文字認識装置。   The character recognition device according to claim 1, wherein the calculation unit calculates the determination value based on whether or not the input trajectory hits the determination area. 前記算出手段は、前記判定領域の判定値として、前記入力軌跡が前記判定領域に当たったか否かに基づく第1判定値と、前記入力軌跡が前記判定領域の境界を通過したか否かに基づく第2判定値とを算出する、請求項1又は2に記載の文字認識装置。   The calculation unit is configured to determine, as a determination value of the determination region, a first determination value based on whether or not the input locus has hit the determination region, and whether or not the input locus has passed a boundary of the determination region. The character recognition device according to claim 1 or 2, wherein the second determination value is calculated. 前記判定領域にはそれぞれ位置情報が設定されており、
前記文字判定手段は、複数の前記判定領域の判定値と、各判定領域の位置情報とに基づいて、文字を判定する、請求項1から3の何れかに記載の文字認識装置。
Position information is set in each of the determination areas,
The character recognition device according to claim 1, wherein the character determination unit determines a character based on determination values of the plurality of determination areas and position information of the determination areas.
前記文字判定手段は、複数の前記判定領域の判定値と、各判定領域の位置情報と、当該複数の判定領域に前記入力軌跡が当たった順番とに基づいて、文字を判定する、請求項4に記載の文字認識装置。   The character determination means determines a character based on determination values of the plurality of determination areas, position information of the determination areas, and an order in which the input trajectory hits the determination areas. The character recognition device described in 1. 前記文字判定手段は、複数の前記判定領域の判定値に基づいて文字を判定した場合、当該文字に対応する複数の判定領域のうちの最後の判定領域を次の文字の先頭の判定領域として、当該次の文字の判定を行う、請求項4又は5に記載の文字認識装置。   When the character determination unit determines a character based on the determination values of the plurality of determination areas, the last determination area of the plurality of determination areas corresponding to the character is set as the determination area at the beginning of the next character. The character recognition device according to claim 4 or 5, wherein the next character is determined. 前記複数の判定領域を表示手段に表示する表示制御手段を更に備え、
前記取得手段は、前記表示手段に表示された複数の判定領域を含む入力面において入力された入力軌跡を取得する、請求項1から6の何れかに記載の文字認識装置。
A display control means for displaying the plurality of determination areas on a display means;
The character recognition device according to claim 1, wherein the acquisition unit acquires an input locus input on an input surface including a plurality of determination areas displayed on the display unit.
前記複数の判定領域には、第1の判定領域と、当該第1の判定領域よりも小さな第2の判定領域とが含まれる、請求項1から7の何れかに記載の文字認識装置。   The character recognition device according to claim 1, wherein the plurality of determination areas include a first determination area and a second determination area smaller than the first determination area. 前記入力軌跡は速記文字である、請求項1から8の何れかに記載の文字認識装置。   The character recognition device according to claim 1, wherein the input locus is a shorthand character. ユーザによって行われた入力から文字を認識する文字認識装置のコンピュータによって実行される文字認識プログラムであって、前記コンピュータを、
ユーザによって入力された入力軌跡を取得する取得手段と、
複数の判定領域を設定する領域設定手段と、
前記入力軌跡と前記判定領域との位置関係に基づいて、前記判定領域の判定値を判定領域毎に算出する算出手段と、
前記算出手段によって算出された前記判定領域毎の判定値に基づいて、文字を判定する文字判定手段として機能させる、文字認識プログラム。
A character recognition program executed by a computer of a character recognition device for recognizing characters from input made by a user, the computer comprising:
Obtaining means for obtaining an input trajectory input by the user;
Area setting means for setting a plurality of determination areas;
Calculation means for calculating a determination value of the determination area for each determination area based on a positional relationship between the input locus and the determination area;
A character recognition program that functions as a character determination unit that determines a character based on a determination value for each determination region calculated by the calculation unit.
ユーザによって行われた入力から文字を認識する文字認識システムであって、
ユーザによって入力された入力軌跡を取得する取得手段と、
複数の判定領域を設定する領域設定手段と、
前記入力軌跡と前記判定領域との位置関係に基づいて、前記判定領域の判定値を判定領域毎に算出する算出手段と、
前記算出手段によって算出された前記判定領域毎の判定値に基づいて、文字を判定する文字判定手段とを備える、文字認識システム。
A character recognition system for recognizing characters from input made by a user,
Obtaining means for obtaining an input trajectory input by the user;
Area setting means for setting a plurality of determination areas;
Calculation means for calculating a determination value of the determination area for each determination area based on a positional relationship between the input locus and the determination area;
A character recognition system comprising: character determination means for determining a character based on a determination value for each determination area calculated by the calculation means.
ユーザによって行われた入力から文字を認識する文字認識方法であって、
取得手段が、ユーザによって入力された入力軌跡を取得するステップと、
領域設定手段が、複数の判定領域を設定するステップと、
算出手段が、前記入力軌跡と前記判定領域との位置関係に基づいて、前記判定領域の判定値を判定領域毎に算出するステップと、
文字判定手段が、前記算出手段によって算出された前記判定領域毎の判定値に基づいて、文字を判定するステップとを備える、文字認識方法。
A character recognition method for recognizing characters from input made by a user,
An acquisition means for acquiring an input trajectory input by a user;
A region setting means for setting a plurality of determination regions;
Calculating a determination value of the determination area for each determination area based on a positional relationship between the input locus and the determination area;
A character recognition method comprising: a character determination unit including a step of determining a character based on a determination value for each determination area calculated by the calculation unit.
JP2015035490A 2015-02-25 2015-02-25 Character recognition device, character recognition program, character recognition system, and character recognition method Active JP6052636B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015035490A JP6052636B2 (en) 2015-02-25 2015-02-25 Character recognition device, character recognition program, character recognition system, and character recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015035490A JP6052636B2 (en) 2015-02-25 2015-02-25 Character recognition device, character recognition program, character recognition system, and character recognition method

Publications (2)

Publication Number Publication Date
JP2016157314A true JP2016157314A (en) 2016-09-01
JP6052636B2 JP6052636B2 (en) 2016-12-27

Family

ID=56826101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015035490A Active JP6052636B2 (en) 2015-02-25 2015-02-25 Character recognition device, character recognition program, character recognition system, and character recognition method

Country Status (1)

Country Link
JP (1) JP6052636B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6224382A (en) * 1985-07-24 1987-02-02 C I C Japan Kk Method for recognizing handwritten character
JPH01222367A (en) * 1987-10-23 1989-09-05 Hitachi Ltd Handwritten stenograph converting device
JP2004127200A (en) * 2002-10-07 2004-04-22 Dainippon Printing Co Ltd Form for electronic pen, system for providing verification data, server device, and program for obtaining verification data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6224382A (en) * 1985-07-24 1987-02-02 C I C Japan Kk Method for recognizing handwritten character
JPH01222367A (en) * 1987-10-23 1989-09-05 Hitachi Ltd Handwritten stenograph converting device
JP2004127200A (en) * 2002-10-07 2004-04-22 Dainippon Printing Co Ltd Form for electronic pen, system for providing verification data, server device, and program for obtaining verification data

Also Published As

Publication number Publication date
JP6052636B2 (en) 2016-12-27

Similar Documents

Publication Publication Date Title
US9881224B2 (en) User interface for overlapping handwritten text input
US10268370B2 (en) Character input device and character input method with a plurality of keypads
KR101323281B1 (en) Input device and method for inputting character
WO2010125744A1 (en) Input device
JP2008250375A (en) Character input device, method, and program
JP2013004095A (en) Character recognition about user input of overlapped text
CN102662603A (en) Input method display method and input method display system for mobile phone with touch screen
US20130050096A1 (en) Data entry systems and methods
AU2010200603A1 (en) Calculator and computer-readable medium
JP2015536000A (en) Displaying the progress of handwriting input
WO2012132244A1 (en) Handwritten character input device
JP6275840B2 (en) How to identify handwritten characters
JP6081606B2 (en) Electronic apparatus and method
CN103092460A (en) Method for inputting Chinese characters on equipment and equipment
JP6052636B2 (en) Character recognition device, character recognition program, character recognition system, and character recognition method
CN105260113A (en) Sliding input method and apparatus and terminal device
CN105260124B (en) Six button Chinese characters and English touch-screen slide input method
KR20150104025A (en) Character input device and information processing apparatus
US20150089432A1 (en) Quick data entry systems and methods
US11216691B2 (en) Input method and system for electronic device
KR100886251B1 (en) Character input device using touch sensor
KR20160082030A (en) Method and apparatus for compensation of virtual keyboard
US11244138B2 (en) Hologram-based character recognition method and apparatus
US20070160292A1 (en) Method of inputting chinese characters
CN102156616B (en) Touch screen key-writing input method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160617

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20161031

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20161117

R150 Certificate of patent or registration of utility model

Ref document number: 6052636

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250