JP4107659B2 - Handwritten font output system - Google Patents
Handwritten font output system Download PDFInfo
- Publication number
- JP4107659B2 JP4107659B2 JP2003321251A JP2003321251A JP4107659B2 JP 4107659 B2 JP4107659 B2 JP 4107659B2 JP 2003321251 A JP2003321251 A JP 2003321251A JP 2003321251 A JP2003321251 A JP 2003321251A JP 4107659 B2 JP4107659 B2 JP 4107659B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- font
- memory
- character font
- inclination
- 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.)
- Expired - Lifetime
Links
- 238000006073 displacement reaction Methods 0.000 claims description 42
- 230000011218 segmentation Effects 0.000 claims description 25
- 238000000605 extraction Methods 0.000 claims description 14
- 238000012937 correction Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 44
- 238000000034 method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 6
- 239000006185 dispersion Substances 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- LFYJSSARVMHQJB-QIXNEVBVSA-N bakuchiol Chemical compound CC(C)=CCC[C@@](C)(C=C)\C=C\C1=CC=C(O)C=C1 LFYJSSARVMHQJB-QIXNEVBVSA-N 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Description
本発明は、ワープロ等で使用するための、各人の個性を反映した手書き風文字フォントを自動生成する手書き風文字フォント出力システムに関するものである。 The present invention relates to a handwritten character font output system that automatically generates a handwritten character font that reflects the individuality of each person for use in a word processor or the like.
オフライン入力によるユーザの手書き文字から、書き手の書き癖を抽出定量化し、その癖を反映させたユーザオリジナルの手書き文字フォント(以下、「個性入り文字フォント」)を生成する手法は、すでに特許文献1で提案されているが、その手法では、個性入り文字フォントを出力する際、等幅の文字を等間隔に出力することを想定している。
A method for extracting and quantifying a writer's handwritten character from off-line input user's handwritten character and generating a user's original handwritten character font (hereinafter referred to as “character font with individuality”) reflecting the character has already been disclosed in
ところが、人がペンやボールペンあるいは鉛筆等の筆記具を用いて書いた手書き文字は、書く人によって、文字幅(文字自体の幅)及び文字間スペースの取り方がかなり異なる。 However, handwritten characters written by a person using a writing instrument such as a pen, a ballpoint pen, or a pencil vary considerably in character width (width of the character itself) and the space between characters depending on the writer.
図3は、手書き文章の例を示す図である。この図3は、4人の人A〜Dに「な影響を与えています」と自然に書いてもらった例を示している。実際に、文字幅も人によって異なるし、文字間スペースの取り方も人によって異なる。この違いが手書きらしさの大きな要素であることを窺わせる。このため、せっかく手書き風の文字フォントであっても、等幅の文字を等間隔で碁盤目状に出力すると、見た目には “ギコチナサ”が目立ってしまって、手書き風としては物足りなさがあった。 FIG. 3 is a diagram illustrating an example of handwritten text. FIG. 3 shows an example in which four people A to D are naturally written as “having a big influence”. Actually, the character width varies from person to person, and the way of taking the space between characters varies from person to person. This difference suggests that it is a big element of handwriting. For this reason, even if it is a handwritten-style character font, if uniform-width characters are output in a grid pattern at regular intervals, “Gikochinasa” will be conspicuous in appearance, which is unsatisfactory as a handwritten style .
本発明は、上記問題点に鑑み、手書きの隣接する文字間スペース情報を抽出する文字セグメンテーションを可能とする手書き風文字フォント出力システム、プログラム及び記録媒体を提供することを目的とする。 In view of the above problems, an object of the present invention is to provide a handwritten-style character font output system, a program, and a recording medium that enable character segmentation to extract handwritten inter-character space information.
本発明の手書き風文字フォント出力システムは、標準のm(m:自然数)個の文字フォントを記憶する第1メモリと、イメージ入力されるn(n:自然数、2≦n<m)個の文字フォントの連なりを記憶する第2メモリと、該第2メモリに記憶されている入力された文字フォントの傾きを補正する傾き補正手段と、該傾き補正手段によって傾き補正された文字フォントに対応する文字フォントを第1メモリから読み出して両者を比較することによって入力され傾き補正された文字フォントの連なりから各文字フォントを切り出して隣接する文字の間隔を抽出するとともに、抽出された前記文字の間隔を、隣接する文字の種類の組合せ別に定量化して登録する文字セグメンテーション手段と、該文字セグメンテーション手段によって切り出された各文字フォントと前記第1メモリに記憶されている標準の対応する文字フォントとをそれぞれ比較して対応点の変位を抽出してその統計的情報を抽出する変位情報抽出手段と、該変位情報抽出手段の出力に応じて前記第1メモリに記憶されている文字フォントを変更して出力する変位情報付加手段と、該変位情報付加手段によって出力される文字フォントを前記文字セグメンテーション手段によって登録された文字の間隔に応じた文字間隔で出力する文字間スペース情報付加手段とを備える。 The handwritten character font output system of the present invention includes a first memory for storing standard m (m: natural number) character fonts, and n (n: natural number, 2 ≦ n <m) characters inputted as an image. a second memory for storing a series of fonts, a tilt correcting means for correcting the tilt of the input character font stored in the second memory, the character corresponding to the character fonts inclination correction by inclined-out correction means The character fonts are cut out from a series of character fonts that have been input by comparing the two read out from the first memory and the character fonts are cut out to extract the spacing between adjacent characters . character segmentation means for registering quantified by adjacent type of character combinations, cut out by the character segmentation unit Displacement information extracting means for comparing each character font with a standard corresponding character font stored in the first memory and extracting the displacement of the corresponding point to extract the statistical information, and the displacement information extraction Displacement information adding means for changing the character font stored in the first memory in accordance with the output of the means and outputting the character font output by the displacement information adding means by the character segmentation means Inter-character space information adding means for outputting at a character interval according to the interval.
また、本発明の手書き風文字フォント出力システムは、標準のm(m:自然数)個の文字フォントを記憶する第1メモリと、イメージ入力されるn(n:自然数、2≦n<m)個の文字フォントの連なりを記憶する第2メモリと、該第2メモリに記憶されている入力された文字フォントの傾きを補正する傾き補正手段と、該傾き補正手段によって傾き補正された文字フォントに対応する文字フォントを第1メモリから読み出して両者を比較することによって入力され傾き補正された文字フォントの連なりから各文字フォントを切り出して隣接する文字の間隔を抽出するとともに、抽出された前記文字の間隔を、隣接する文字のプロジェクションの複雑さの組合せ別に定量化して登録する文字セグメンテーション手段と、該文字セグメンテーション手段によって切り出された各文字フォントと前記第1メモリに記憶されている標準の対応する文字フォントとをそれぞれ比較して対応点の変位を抽出してその統計的情報を抽出する変位情報抽出手段と、該変位情報抽出手段の出力に応じて前記第1メモリに記憶されている文字フォントを変更して出力する変位情報付加手段と、該変位情報付加手段によって出力される文字フォントを前記文字セグメンテーション手段によって登録された文字の間隔に応じた文字間隔で出力する文字間スペース情報付加手段とを備える。 The handwritten-style character font output system of the present invention includes a first memory for storing standard m (m: natural number) character fonts, and n (n: natural number, 2 ≦ n <m) input image. A second memory that stores a series of character fonts, an inclination correction unit that corrects an inclination of the input character font stored in the second memory, and a character font that is inclined by the inclination correction unit The character fonts to be read out from the first memory and compared with each other are extracted from the series of character fonts that have been input and corrected to extract the spacing between adjacent characters by cutting out each character font. Character segmentation means for quantifying and registering each character according to the combination of the projection complexity of adjacent characters, and the character segmentation Displacement information extracting means for comparing each character font cut out by the image means with the standard corresponding character font stored in the first memory, extracting the displacement of the corresponding points, and extracting the statistical information thereof Displacement information adding means for changing and outputting the character font stored in the first memory in accordance with the output of the displacement information extracting means; and character font output by the displacement information adding means for the character segmentation. And an inter-character space information adding means for outputting at character intervals corresponding to the character intervals registered by the means.
本発明によれば、斜めに傾いた文字列に対しても手書き文字を正確に切り出すことができるので、文字間スペース情報を抽出して、ユーザの個性に応じた文字間スペースで手書き風文字を出力することができる。 According to the present invention, a handwritten character can be accurately cut out even with respect to a diagonally inclined character string. Can be output.
以下、添付図面を参照しながら本発明の好適な実施の形態について詳細に説明する。 Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
図1は、本発明の一実施の形態による手書き風文字フォント出力システムの構成を示すブロック図である。手書き風文字フォント出力システム1は、手書き風文字フォント出力システム1全体を制御する制御部11、文字を入力するキーボード及び文字フォントを入力するイメージスキャナなどからなる入力部12、作業領域として使用されるメモリであるRAM(Random Access Memory)13、制御プログラムや所定の定数等を固定的に記憶しているROM(Read Only Memory)14、コンピュータのディスプレイである表示部15、及び文字フォントを紙に印刷する印刷部16から成り、これら各構成要素は相互に接続されている。これらの各構成要素は通常のコンピュータにおける各構成要素と基本的には同じものであり汎用のものを用いることができる。
FIG. 1 is a block diagram showing a configuration of a handwritten character font output system according to an embodiment of the present invention. The handwritten character
図2は、本実施の形態による手書き風文字フォント出力システムの機能を示す機能ブロック図である。機能は大きく、個性情報抽出・登録機能2と個性情報入り文字フォント生成機能3の2つに分けられる。
FIG. 2 is a functional block diagram showing functions of the handwritten style font output system according to the present embodiment. The functions are large and can be divided into two functions: a personality information extraction /
個性情報抽出・登録機能2では、ユーザが罫線用紙上に筆記した予め決められている文章である複数の文字(以下、登録文字)を、イメージスキャナを用いて計算機に入力し、その登録文字フォントと標準文字フォントとを比較して登録文字を切り出して、隣接登録文字間の間隔、標準文字フォントに対する登録文字フォントの幾何学的変位、及び、登録文字の大きさを解析し、その統計的情報を、そのユーザの個性を表す特徴量(以下、個性情報)として登録する。
In the individuality information extraction /
まず、標準文字フォント群記憶機能21では、登録文字の切り出し、ユーザの個性情報抽出、及び、個性情報入り文字フォント作成にあたって、予め計算機内に数種類のペン楷書体文字フォント(以下、標準文字フォント)をインストールしておく。種類は多い方が良く、字のくずし方にできるだけ多くのヴァリエーションを持たせることが望ましい。例えば、千葉ペン字体、ペン行楷書体、白州ペン楷書体、創英ペン字体、セイビシロガネ、及びペン楷書体などである。
First, in the standard character font
つぎに、手書き文字入力記憶機能22では、ユーザに、罫線用紙に100〜200文字程度の文章を筆記してもらい、それをイメージとして計算機に入力し、記憶する。筆記する文章は予め決められたものである。用いる罫線用紙にはトンボ(+印)を打った赤色罫線(赤色というのは一例であり、モノクロ又は青系以外の色ならば何でも良い)の便箋を使用する(図4参照)。この便箋はアプリケーションソフト内蔵の便箋フォームをユーザがプリントアウトして使用しても良い。更にユーザが個性情報抽出用の筆記サンプルを記入する際には、トンボ(+印)を上にして、1行に10字程度(全体で100〜200文字程度)の文章(予め決められている指定文章)を記入させることが望ましい(黒もしくは青色のボールペン、万年筆又は鉛筆を使用)。文字のセグメンテーション(後に詳述する)を確実に行うためには、一行に10文字程度の文字数が適当である。文字数を多くすると、登録文字のプロジェクションと標準フォントのプロジェクションとの比較にエラーが生じた場合にそのエラーが芋づる式に拡大されてしまう可能性がある。したがって、文字数を増やすことは得策でない。反面、ユーザに書いてもらう文章においては、書字の流れの保存も重要である。そのため、ユーザがスラスラと自然な形で文字を記入することができるようにするため、一行の文字数をあまり少なくすることもまたできない。これらから適当な一行の文字数は「10字程度」ということになる。そのようにすることによって、一マスに一文字を書かなくてはならないという制約(一文字ずつ書くと、書字の流れに支障をきたしギコチナイものとなってしまう)をなくし、文字間の連続性と書き手固有の筆跡(文字幅及び文字間スペースの状態も含む)が保たれた文章(文字群)を得ることが可能となる。そして、以上のように書かれた文章を、イメージスキャナにより計算機に入力し、記憶する。上記のように文字記入用紙にはトンボが打ってあり、罫線もユーザが書く文字とは異なる色のものが使われているため、その両者の情報から、記入用紙の向きの変化に強い処理を行うことが可能となる。すなわち、イメージスキャナ面に対して記入用紙をどのようにセットしたとしても、記入用紙の向きを自動的に判別することが可能となり、用紙の向きに依存しない文字データの取得が可能となる。 Next, in the handwritten character input storage function 22, the user writes a sentence of about 100 to 200 characters on the ruled line paper, which is input to the computer as an image and stored. Sentences to be written are predetermined. As the ruled line paper to be used, a stationery of a red ruled line (a red color is just an example and any color other than monochrome or blue) may be used (see FIG. 4). For this stationery, the user may print out and use a stationery form with built-in application software. Furthermore, when the user enters a writing sample for extracting personality information, a sentence (predetermined about 100 to 200 characters in total) with a registration mark (+) on the top is used. (Specified text) should be entered (use black or blue ballpoint pen, fountain pen or pencil). In order to reliably perform character segmentation (to be described in detail later), the number of characters of about 10 characters per line is appropriate. If the number of characters is increased, if an error occurs in the comparison between the projection of registered characters and the projection of the standard font, there is a possibility that the error is expanded to a formula that can be determined. Therefore, increasing the number of characters is not a good idea. On the other hand, it is also important to preserve the flow of letters in sentences that are written by the user. For this reason, the number of characters in one line cannot be reduced so much that the user can enter characters in a natural manner. Accordingly, the appropriate number of characters in one line is “about 10 characters”. By doing so, it eliminates the restriction that one character must be written in one square (if you write one character at a time, it will hinder the flow of writing and it will be ugly), and the continuity between characters and the writer It is possible to obtain a sentence (character group) in which unique handwriting (including the state of character width and inter-character space) is maintained. Then, the sentence written as described above is input to the computer by the image scanner and stored. As mentioned above, the registration form is stamped on the character entry form, and the ruled line has a color different from the character written by the user. Can be done. That is, no matter how the entry sheet is set on the image scanner surface, it is possible to automatically determine the orientation of the entry sheet, and it is possible to acquire character data independent of the orientation of the sheet.
行又は列抽出機能23は、横書きに書かれた文字群の場合の行、又は、縦書きに書かれた文字群の場合の列を抽出する。ここでは、横書きに書かれた文字群の場合を例に説明する。
The row or
まず前処理として、取得イメージ全体に対して二値化処理を行う。そして文字記入用便箋に書かれた文字群は、赤色罫線に沿って配置されているため、赤色罫線を消去した後、赤色罫線の方向にプロジェクション(投影)を取り、プロジェクション像(投影像)を作成することによって、そのプロジェクション像の凹凸から、行の切り出しを行う 。 First, as preprocessing, binarization processing is performed on the entire acquired image. Since the character group written on the letter writing note is arranged along the red ruled line, after erasing the red ruled line, the projection is taken in the direction of the red ruled line, and the projection image (projected image) is taken. By creating, the line is cut out from the projections and depressions of the projection image.
図5は、行のプロジェクション像の例を示す図である。左側にユーザが罫線用紙に筆記した指定文章の取得イメージの例を示し、右側にその行方向のプロジェクション像を示す。プロジェクション像の“谷”の部分で行を切り出すことで行を抽出することができる。 FIG. 5 is a diagram illustrating an example of a row projection image. An example of the acquisition image of the designated sentence written by the user on the ruled line paper is shown on the left side, and the projection image in the row direction is shown on the right side. A row can be extracted by cutting out the row at the “valley” portion of the projection image.
標準文字フォント選択機能24は、行又は列抽出機能23により抽出された各文字列の傾きを補正し、標準文字フォント群記憶機能21によって予め計算機内にインストールされている登録文字フォントに対応する文字の数種類の標準文字フォントの各文字列とを比較して、全体として最も登録文字フォントに類似する標準文字フォントを選択する。
The standard character
まず、切り出された各行の文字列に対して、文字列単位で文字の傾き検出を行い、文字列の傾き補正を行う。ユーザによっては、斜めに傾いた文字列を書くことがあるため、文字列の傾きを検出し、補正することで、斜めに傾いた文字列に対しても、文字のセグメンテーションを行えるようにするためである。文字列の傾きを検出・補正する手法として、(ア)文字列の縦方向のプロジェクションの分散値によるものと、(イ)文字列の黒画素のストローク方向によるものの2つを提案する。 First, with respect to the extracted character string in each line, character inclination detection is performed on a character string basis, and character string inclination correction is performed. Some users write diagonally inclined character strings, so that character segmentation can be performed even for diagonally inclined character strings by detecting and correcting the inclination of the character string. It is. Two methods are proposed as methods for detecting and correcting the inclination of the character string: (a) using the dispersion value of the projection in the vertical direction of the character string, and (b) using the stroke direction of the black pixels of the character string.
まず、前者の手法(ア)について説明する。一行に切り出された各行の文字列に対して、縦方向のプロジェクションを作成する(図6参照)。作成された縦方向のプロジェクションは、文字列が傾いていなければ、プロジェクション値のばらつきが大きくなり(分散値が大きくなる)、文字列が傾いていれば、プロジェクション値のばらつきが小さくなる(分散値が小さくなる)。そして、罫線と垂直に書かれた文字列を基準の文字列の傾きとすると、ユーザにより書かれた文字列の傾きは、大きくても基準の文字列の傾きから±45°内の傾きに収まると考えられる。したがって、基準の文字列の傾きから±45°内のすべての方向に対して、文字列の縦方向のプロジェクションの分散値を算出し、(そのプロジェクションの分散値が一番大きいときがその文字列の傾きとなるので)検出された傾き分だけ逆方向に文字列を傾かせることで、文字列の傾き補正をする。 First, the former method (a) will be described. A projection in the vertical direction is created for the character string in each line cut out in one line (see FIG. 6). In the created vertical projection, if the character string is not inclined, the variation in the projection value is large (the variance value is large), and if the character string is inclined, the variation in the projection value is small (the variance value is Becomes smaller). If the character string written perpendicular to the ruled line is used as the inclination of the reference character string, the inclination of the character string written by the user is within ± 45 ° from the inclination of the reference character string at most. it is conceivable that. Accordingly, the dispersion value of the projection in the vertical direction of the character string is calculated for all directions within ± 45 ° from the inclination of the reference character string, and the character string is calculated when the dispersion value of the projection is the largest. The inclination of the character string is corrected by inclining the character string in the opposite direction by the detected inclination.
つぎに、後者の手法(イ)について説明する。切り出された各行の文字列に対して、文字列を構成するすべての黒画素におけるストローク(文字を構成する線分)方向を算出し、ストローク方向のヒストグラムを作成する。文字列のストローク方向は、文字を罫線と垂直に書いた場合、罫線と垂直方向のストロークが一番多くなる。すなわち、ストローク方向のヒストグラムは、確率的に罫線と垂直の方向が一番高くなる。したがって、ユーザにより書かれた文字列のストローク方向のヒストグラムが一番高い値を持つ方向が、その文字列のストローク方向ということなる。このように罫線と垂直方向のストローク方向を基準とすることにより、基準ストローク方向からユーザにより書かれた文字列のストローク方向までのずれが、文字列のストロークの傾きとして検出されるため、検出された傾き分だけ逆方向に傾かせることで、文字列の傾き補正を行うことができる。 Next, the latter method (A) will be described. The stroke direction (line segment constituting the character) in all the black pixels constituting the character string is calculated with respect to the character string of each cut out line, and a stroke direction histogram is created. As for the stroke direction of the character string, when the character is written perpendicular to the ruled line, the stroke in the direction perpendicular to the ruled line is the largest. That is, the stroke direction histogram has the highest probability in the direction perpendicular to the ruled line. Therefore, the direction in which the histogram of the stroke direction of the character string written by the user has the highest value is the stroke direction of the character string. Thus, by using the stroke direction perpendicular to the ruled line as a reference, a deviation from the reference stroke direction to the stroke direction of the character string written by the user is detected as the inclination of the stroke of the character string, and thus is detected. The inclination of the character string can be corrected by inclining in the opposite direction by the amount of inclination.
(ア)及び(イ)の処理により検出された傾きは、記憶しておく。以上のような処理によって、ユーザにより書かれた文字列は、罫線と垂直に配置された文字列になる。 The inclination detected by the processes (a) and (b) is stored. Through the processing described above, the character string written by the user becomes a character string arranged perpendicular to the ruled line.
つぎに、罫線と垂直に配置された全ての登録文字列と、標準文字フォント群記憶機能21によって予め計算機内にインストールされていてその登録文字列に対応する数種類の標準文字フォントの文字列とを比較することで、全体として最も登録文字フォントに類似する標準文字フォントを選択する。
Next, all the registered character strings arranged perpendicular to the ruled lines, and character strings of several types of standard character fonts which are installed in the computer in advance by the standard character font
文字セグメンテーション機能25は、文字列の傾きが補正された各文字列の縦方向のプロジェクションと対応する標準文字フォントの文字列の縦方向のプロジェクションとの対応点探索により文字列から各文字を切り出す。
The
そして、選択された標準文字フォントの文字列の縦方向のプロジェクションを算出し、その標準文字フォントの文字列の縦方向のプロジェクションと、ユーザにより書かれて傾き補正された登録文字列の縦方向のプロジェクションとの対応点探索を行う。ここで用いられる手法は、エネルギー汎関数E(DX)の最小化によるものである。 Then, the vertical projection of the character string of the selected standard character font is calculated, and the vertical projection of the character string of the standard character font and the vertical direction of the registered character string written and corrected by the user are corrected. Search for corresponding points with the projection. The technique used here is by minimizing the energy functional E (DX).
E(DX)=P(DX)+λS(DX) ・・・(1)
P(DX)=Σ(f(x+DX(x))−g(x))2 ・・・(2)
S(DX)=Σ(∂DX(x)/∂x)2 ・・・(3)
ここで、
P(DX):変位を加えた時のプロジェクション間の対応誤差、
S(DX):対応の滑らかさ、
λ:重み付けのためのパラメータ、
f(x):ユーザにより書かれた文字列の縦方向のプロジェクション、
g(x):標準文字フォントの縦方向のプロジェクション、
DX(x):位置(x)におけるx方向の変位量
である。
E (DX) = P (DX) + λS (DX) ... (1)
P (DX) = Σ (f (x + DX (x)) - g (x)) 2 ··· (2)
S (DX) = Σ (∂DX (x) / ∂x) 2 (3)
here,
P (DX): Corresponding error between projections when displacement is applied,
S (DX): corresponding smoothness,
λ: parameter for weighting,
f (x): vertical projection of a character string written by the user,
g (x): vertical projection of standard character font,
DX (x): A displacement amount in the x direction at the position (x).
式1に示すE(DX)を最小にするオイラー方程式を反復して解くことにより、プロジェクションの位置(x)での変位量DX(x)を求める(図7参照)。予め記憶されている標準フォントは、すでにどこからどこまでが一文字のプロジェクションに相当するかという情報を持っているので、その情報を基に、計測された位置(x)における変位量DX(x)から、登録文字が存在する範囲、すなわち、文字幅を抽出することができる。したがって、隣接する文字の間の間隔、つまり文字間スペースの情報も抽出することができる(図8参照)。これは文字のセグメンテーション(切り出し)に他ならない。こうして抽出された文字間スペース情報を書き手の個性として定量化し、記憶しておく。 The displacement amount DX (x) at the projection position (x) is obtained by repetitively solving the Euler equation that minimizes E (DX) shown in Equation 1 (see FIG. 7). Since the standard font stored in advance already has information on where to correspond to the projection of one character, based on the information, from the displacement amount DX (x) at the measured position (x), A range in which registered characters exist, that is, a character width can be extracted. Therefore, it is also possible to extract information about the space between adjacent characters, that is, the space between characters (see FIG. 8). This is nothing other than character segmentation. The extracted inter-character space information is quantified and stored as the writer's personality.
実際に、この文字のセグメンテーション法を、多数の手書き文字に適用したところ、95%以上の成功率で文字のセグメンテーションを行うことができた(図9参照)。このことから、本手法により高い成功率で、手書き文字を一文字毎にセグメンテーションできることが分かる。また縦書きに書かれた文字群の場合でも、同様の処理を行えば、横書きで書かれた文字群と同じように、一文字毎に文字をセグメンテーションできる。 Actually, when this character segmentation method was applied to a large number of handwritten characters, character segmentation could be performed with a success rate of 95% or more (see FIG. 9). This shows that handwritten characters can be segmented character by character with a high success rate by this method. In the case of a character group written in vertical writing, if the same processing is performed, characters can be segmented for each character in the same way as in a character group written in horizontal writing.
大きさ情報抽出機能26は、まず標準文字フォント選択機能24によって記憶された文字列の傾きから各登録文字の傾きを元に戻す。そして標準文字フォント選択機能24により選択された標準文字フォントであって登録文字と対応する標準文字フォントと登録文字フォントとの大きさを比較して、その大きさの違い(縦方向及び横方向)を抽出し、書き手の個性として定量化し、記憶する。その大きさの違いは、すべての登録文字フォントの平均を記憶しても良いし、漢字の登録文字フォントと英数かな文字の登録文字フォントを別々に平均して記憶しても良い。
The size
変位情報抽出機能27は、標準文字フォント選択機能24によって選択された標準文字フォントであって登録文字と対応する標準文字フォントと登録文字フォントとを比較して、標準文字フォントに対する登録文字フォントの画面内の各位置での幾何学的変位量(方向と大きさの情報を持つ)を2次元の対応点探索により抽出し、書き手の個性として定量化し、記憶する。
The displacement
個性情報入り文字フォント生成機能3では、個性情報抽出・登録機能2にて抽出された個性情報を標準文字フォントに付加することによって、任意の文字の個性情報入り文字フォントを生成して出力する。
In the character
まず、標準文字フォント呼び出し機能31は、個性情報抽出・登録機能2において選択された標準文字フォントを呼び出す。ユーザにより用いられるフォントが異なってくる。
First, the standard character
つぎに、キーボード入力機能32は、入力部12であるキーボードで入力した文字コードに従い、計算機内にあらかじめインストールされている複数の標準文字フォントから標準文字フォント呼び出し機能31にて呼び出されたユーザ特有の標準文字フォントの画像情報を一旦メモリに蓄える。それぞれの標準文字フォントは、明朝体、ゴシック体といった他の文字フォントと同様に、すべての文字についての情報を包含している。
Next, the
変位情報付加機能33は、メモリに蓄えられた標準文字フォントの各文字に対し、変位情報を加える。すなわち、変位情報抽出機能27において登録されたそのユーザの画像内の各位置での幾何学的変位量の平均値分の変位を標準文字フォントに加える。
The displacement
大きさ情報付加機能34は、変位情報付加機能33によって変位情報が加えられた標準文字フォントの大きさを決定して出力する。すなわち、大きさ情報抽出機能26において登録されたそのユーザの文字の大きさ平均値に応じた倍率で、変位情報が加えられた標準文字フォントの大きさを変える。
The size
文字間スペース情報付加機能35は、変位情報が加えられ大きさを決められた標準文字フォントの文字間スペースを決定して出力する。すなわち、文字セグメンテーション機能25において登録されたそのユーザの文字間スペースを開けて各文字を出力する。
The inter-character space
ユーザ固有の文字間スペース情報の付加方法としては、次のものがある。
(1).文字セグメンテーション機能25により抽出されたすべての文字間スペース情報から平均して算出された値をユーザ固有の文字間スペース情報として登録して、文字間スペース情報付加機能35により出力する。
(2).文字セグメンテーション機能25により抽出されたすべての文字間スペース情報から平均して算出された値を登録して、文字間スペース情報付加機能35により乱数により変動を持たせて出力する。
(3).文字セグメンテーション機能25により平仮名、漢字及び句読点などのような隣接する文字の種類の組合せ別に文字間スペースの個性を定量化して登録する。例えば、平仮名と平仮名との間、平仮名と漢字との間、平仮名と句読点との間などのように隣接する文字の種類の組合せ別に文字間スペースを定量化して登録する。そして、文字間スペース情報付加機能35により平仮名と平仮名との間、平仮名と漢字との間、平仮名と句読点との間などのように隣接する文字の種類の組合せ別に文字間スペースを付加する。
(4).文字セグメンテーション機能25により縦方向のプロジェクションの複雑さ(例えば分散の大きさ)により、文字間スペースの個性を定量化して登録する。例えばプロジェクションの複雑さを大中小に分けて、大と大との間、大と中との間、大と小との間などのように隣接する文字のプロジェクションの複雑さの組合せ別に文字間スペースを定量化して登録する。そして、文字間スペース情報付加機能35により大と大との間、大と中との間、大と小との間などのように隣接する文字のプロジェクションの複雑さの組合せ別に文字間スペースを付加する。
There are the following methods for adding user-specific character space information.
(1). Register the
(2). A value calculated by averaging from all the inter-character space information extracted by the
(3) The
(4) The
個性入り文字フォント出力機能36は、変位情報、大きさ情報及び文字間スペース情報が付加された個性入り文字フォントを表示部15に表示したり、印刷部16で印刷したりする。
The individual character
なお、本発明は上記実施の形態に限定されるものではない。 The present invention is not limited to the above embodiment.
個性情報は、変位情報及び大きさ情報の両方とも付加することが望ましいが、一方だけであっても良い。 Although it is desirable to add both the displacement information and the size information, the personality information may be only one.
ユーザの好みに応じて、自分の個性情報を加える量を制御できることが望ましい。 It is desirable to be able to control the amount of personality information added according to user preferences.
標準文字フォントはプロポーショナルフォントであることが望ましい。 The standard character font is preferably a proportional font.
上記実施の形態では、変位情報抽出機能として、2次元の対応点探索により幾何学的変位量を抽出するものを説明したが、標準文字フォントに対する登録文字フォントの対応点の変位を抽出するものであればいかなる手法によるものでも良い。 In the above embodiment, the displacement information extraction function has been described for extracting the geometric displacement amount by two-dimensional corresponding point search. However, the displacement information extracting function extracts the displacement of the corresponding point of the registered character font with respect to the standard character font. Any method may be used.
本発明の手書き風文字フォント出力システムは、コンピュータを本手書き風文字フォント出力システムとして機能させるためのプログラムでも実現される。このプログラムは、コンピュータで読み取り可能な記録媒体に格納されていても良い。 The handwritten character font output system of the present invention is also realized by a program for causing a computer to function as the handwritten character font output system. This program may be stored in a computer-readable recording medium.
このプログラムを記録した記録媒体は、図1に示されるROM14そのものであっても良いし、また、外部記憶装置としてCD−ROMドライブ等のプログラム読取装置が設けられ、そこに記録媒体を挿入することで読み取り可能なCD−ROM等であっても良い。
The recording medium on which this program is recorded may be the
また、上記記録媒体は、磁気テープ、カセットテープ、フレキシブルディスク、ハードディスク、MO/MD/DVD等、又は半導体メモリであっても良い。 The recording medium may be a magnetic tape, a cassette tape, a flexible disk, a hard disk, an MO / MD / DVD, or a semiconductor memory.
Claims (2)
イメージ入力されるn(n:自然数、2≦n<m)個の文字フォントの連なりを記憶する第2メモリと、
該第2メモリに記憶されている入力された文字フォントの傾きを補正する傾き補正手段と、
該傾き補正手段によって傾き補正された文字フォントに対応する文字フォントを第1メモリから読み出して両者を比較することによって入力され傾き補正された文字フォントの連なりから各文字フォントを切り出して隣接する文字の間隔を抽出するとともに、抽出された前記文字の間隔を、隣接する文字の種類の組合せ別に定量化して登録する文字セグメンテーション手段と、
該文字セグメンテーション手段によって切り出された各文字フォントと前記第1メモリに記憶されている標準の対応する文字フォントとをそれぞれ比較して対応点の変位を抽出してその統計的情報を抽出する変位情報抽出手段と、
該変位情報抽出手段の出力に応じて前記第1メモリに記憶されている文字フォントを変更して出力する変位情報付加手段と、
該変位情報付加手段によって出力される文字フォントを前記文字セグメンテーション手段によって登録された文字の間隔に応じた文字間隔で出力する文字間スペース情報付加手段と
を備えることを特徴とする手書き風文字フォント出力システム。 A first memory for storing standard m (m: natural number) character fonts;
A second memory for storing a series of n (n: natural number, 2 ≦ n <m) character fonts that are input as images;
Inclination correcting means for correcting the inclination of the input character font stored in the second memory ;
A character font corresponding to the character font whose inclination has been corrected by the inclination correction means is read out from the first memory and compared with the character fonts. Character segmentation means for extracting an interval and quantifying and registering the extracted character interval for each combination of adjacent character types ;
Displacement information for comparing each character font cut out by the character segmentation means with a standard corresponding character font stored in the first memory, extracting the displacement of the corresponding point, and extracting its statistical information Extraction means;
Displacement information adding means for changing and outputting the character font stored in the first memory in accordance with the output of the displacement information extracting means;
Handwritten-style character font output, comprising: character space information adding means for outputting the character font output by the displacement information adding means at character intervals corresponding to the character intervals registered by the character segmentation means. system.
イメージ入力されるn(n:自然数、2≦n<m)個の文字フォントの連なりを記憶する第2メモリと、
該第2メモリに記憶されている入力された文字フォントの傾きを補正する傾き補正手段と、
該傾き補正手段によって傾き補正された文字フォントに対応する文字フォントを第1メモリから読み出して両者を比較することによって入力され傾き補正された文字フォントの連なりから各文字フォントを切り出して隣接する文字の間隔を抽出するとともに、抽出された前記文字の間隔を、隣接する文字のプロジェクションの複雑さの組合せ別に定量化して登録する文字セグメンテーション手段と、
該文字セグメンテーション手段によって切り出された各文字フォントと前記第1メモリに記憶されている標準の対応する文字フォントとをそれぞれ比較して対応点の変位を抽出してその統計的情報を抽出する変位情報抽出手段と、
該変位情報抽出手段の出力に応じて前記第1メモリに記憶されている文字フォントを変更して出力する変位情報付加手段と、
該変位情報付加手段によって出力される文字フォントを前記文字セグメンテーション手段によって登録された文字の間隔に応じた文字間隔で出力する文字間スペース情報付加手段と
を備えることを特徴とする手書き風文字フォント出力システム。 A first memory for storing standard m (m: natural number) character fonts;
A second memory for storing a series of n (n: natural number, 2 ≦ n <m) character fonts that are input as images;
Inclination correcting means for correcting the inclination of the input character font stored in the second memory;
A character font corresponding to the character font whose inclination has been corrected by the inclination correction means is read out from the first memory and compared with the character fonts. A character segmentation means for extracting an interval and quantifying and registering the extracted character interval for each combination of projection complexity of adjacent characters;
Displacement information for comparing each character font cut out by the character segmentation means with a standard corresponding character font stored in the first memory, extracting the displacement of the corresponding point, and extracting its statistical information Extraction means;
Displacement information adding means for changing and outputting the character font stored in the first memory in accordance with the output of the displacement information extracting means;
Handwritten-style character font output, comprising: character space information adding means for outputting the character font output by the displacement information adding means at character intervals corresponding to the character intervals registered by the character segmentation means. system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003321251A JP4107659B2 (en) | 2003-09-12 | 2003-09-12 | Handwritten font output system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003321251A JP4107659B2 (en) | 2003-09-12 | 2003-09-12 | Handwritten font output system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2005091444A JP2005091444A (en) | 2005-04-07 |
JP4107659B2 true JP4107659B2 (en) | 2008-06-25 |
Family
ID=34452990
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003321251A Expired - Lifetime JP4107659B2 (en) | 2003-09-12 | 2003-09-12 | Handwritten font output system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4107659B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5628514B2 (en) * | 2009-12-17 | 2014-11-19 | シャープ株式会社 | Image processing apparatus, image processing method, and computer program |
-
2003
- 2003-09-12 JP JP2003321251A patent/JP4107659B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JP2005091444A (en) | 2005-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8515176B1 (en) | Identification of text-block frames | |
JP2004062891A (en) | Method for displaying writing guide for free form document editor | |
US7447361B2 (en) | System and method for generating a custom font | |
US20060179189A1 (en) | Personalized ink font | |
KR19990036515A (en) | Character recognition / modification method and device | |
US9734132B1 (en) | Alignment and reflow of displayed character images | |
JP4280355B2 (en) | Character recognition device | |
US20140126812A1 (en) | Detecting a junction in a text line of cjk characters | |
US6958755B1 (en) | Personalized computer fonts | |
JP4107659B2 (en) | Handwritten font output system | |
KR100833887B1 (en) | Handwriting Correction Note | |
JP3438009B2 (en) | Handwritten character font generation system, recording medium and program | |
JP4698308B2 (en) | Character input device, character input program, and recording medium for recording character input program | |
JPH0821054B2 (en) | Identification code reader | |
US7680334B2 (en) | Presenting recognised handwritten symbols | |
Jindal et al. | A Study of Touching Characters in Degraded Gurmukhi Text. | |
JP2569103B2 (en) | Character detection method | |
WO2002103619A1 (en) | Presentation of a recognition of a handwritten pattern | |
JP2006040263A (en) | Handwritten input for asian language | |
JP4759963B2 (en) | Character recognition device using multiple recognition dictionaries | |
US8340434B2 (en) | Image processing apparatus, image processing system and computer readable medium | |
JP3091543B2 (en) | Document processing device | |
JPS6385695A (en) | Serial character generation system | |
Janbi | Classifying Arabic Fonts Based on Design Characteristics: PANOSE-A | |
JPH08123904A (en) | Character style classification processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050713 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050801 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050810 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20050915 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20060113 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080227 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080331 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110411 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 4107659 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120411 Year of fee payment: 4 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130411 Year of fee payment: 5 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140411 Year of fee payment: 6 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
EXPY | Cancellation because of completion of term |