JP2019028094A - Character generation device, program and character output device - Google Patents

Character generation device, program and character output device Download PDF

Info

Publication number
JP2019028094A
JP2019028094A JP2017143640A JP2017143640A JP2019028094A JP 2019028094 A JP2019028094 A JP 2019028094A JP 2017143640 A JP2017143640 A JP 2017143640A JP 2017143640 A JP2017143640 A JP 2017143640A JP 2019028094 A JP2019028094 A JP 2019028094A
Authority
JP
Japan
Prior art keywords
character
character data
data
font
generation device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017143640A
Other languages
Japanese (ja)
Inventor
ジュリアン ピアテック
Peertech Julianne
ジュリアン ピアテック
伊藤 直之
Naoyuki Ito
直之 伊藤
錬 松山
Ren Matsuyama
錬 松山
拓也 生駒
Takuya Ikoma
拓也 生駒
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2017143640A priority Critical patent/JP2019028094A/en
Publication of JP2019028094A publication Critical patent/JP2019028094A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide a character generation device capable of reproducing a handwritten character while taking individual's variation into consideration.SOLUTION: A character generation device 1 comprises: a storage part which stores a model font consisting of a character data group corresponding to a plurality of character codes; a character data acquisition part which acquires character data; a character specifying part which specifies a character that the acquired character data corresponds to; a deformation quantity extraction part which extracts a deformation quantity from difference values of feature quantities by comparing the acquired character data with character data of the model font corresponding to the character that the character specifying part specifies; and a character data generation part which uses a value obtained by increasing or decreasing the deformation quantity for each character data of the model font to generate new character data made to correspond to a corresponding character code.SELECTED DRAWING: Figure 1

Description

本発明は、文字生成装置、プログラム及び文字出力装置に関する。   The present invention relates to a character generation device, a program, and a character output device.

人間が書いた手書き文字を再現したフォント文字を作成する技術が知られている。例えば特許文献1では、手書き文字画像とベースフォント画像とを比較して歪データを抽出し、歪データをベースフォントの複数の文字に展開して、手書き風のフォントデータを生成する端末装置等が開示されている。   Techniques for creating font characters that reproduce handwritten characters written by humans are known. For example, Patent Document 1 discloses a terminal device that compares handwritten character images with a base font image to extract distortion data, expands the distortion data into a plurality of characters in the base font, and generates handwritten font data. It is disclosed.

特許第5834822号公報Japanese Patent No. 5834822

しかしながら、特許文献1に係る発明は、同じ手書き文字からは同じ字体のフォント文字を生成することしかできず、書くたびに字体が微妙に変わるという個人内変動を考慮していない。   However, the invention according to Patent Document 1 can only generate font characters with the same font from the same handwritten character, and does not take into account individual variations that the font changes slightly each time it is written.

一つの側面では、個人内変動を考慮した手書き文字の再現を行うことができる文字生成装置等を提供することを目的とする。   In one aspect, an object of the present invention is to provide a character generation device or the like that can reproduce handwritten characters in consideration of intra-individual variation.

一つの案では、文字生成装置は、複数の文字コードに対応づいた文字データ群からなる手本フォントを記憶する記憶部と、文字データを取得する文字データ取得部と、取得した文字データの対応する文字を特定する文字特定部と、前記取得した文字データと、前記文字特定部が特定した文字に対応する前記手本フォントの文字データとを比較して、特徴量の差分値から変形量を抽出する変形量抽出部と、前記手本フォントの各文字データに対して前記変形量を加減させた値を用いて、新たな文字データを対応する文字コードと対応付けて生成する文字データ生成部とを備えることを特徴とする。   In one proposal, the character generation device includes a storage unit that stores a model font including character data groups corresponding to a plurality of character codes, a character data acquisition unit that acquires character data, and a correspondence between the acquired character data. A character specifying unit for specifying a character to be compared, the acquired character data, and character data of the sample font corresponding to the character specified by the character specifying unit, A deformation amount extraction unit to extract, and a character data generation unit that generates new character data in association with a corresponding character code using a value obtained by adding or subtracting the deformation amount to each character data of the model font It is characterized by providing.

一つの案では、文字生成装置は、前記加減させた値は一定の範囲のランダム数値である ことを特徴とする。   In one plan, the character generation device is characterized in that the adjusted value is a random numerical value within a certain range.

一つの案では、文字生成装置は、前記文字データ生成部は、前記変形量抽出部が抽出した前記変形量を用いて新たな文字データを生成することを特徴とする。   In one plan, the character generation device is characterized in that the character data generation unit generates new character data using the deformation amount extracted by the deformation amount extraction unit.

一つの案では、文字生成装置は、前記記憶部は、複数の前記手本フォントを記憶し、前記変形量抽出部は、複数の前記手本フォントから、前記取得した文字データと類似する前記手本フォントを特定し、前記取得した文字データと、特定した前記手本フォントの文字データとを比較して、特徴量の差分値から前記変形量を抽出することを特徴とする。   In one plan, in the character generation device, the storage unit stores a plurality of the model fonts, and the deformation amount extraction unit uses the plurality of model fonts to resemble the acquired character data. This font is specified, the acquired character data is compared with the character data of the specified sample font, and the deformation amount is extracted from the difference value of the feature amount.

一つの案では、文字生成装置は、文字コードの入力を受け付ける入力部を備え、前記文字データ生成部は、前記入力部において前記文字コードの入力を受け付けた場合、前記新たな文字データを生成することを特徴とする。   In one proposal, the character generation device includes an input unit that receives an input of a character code, and the character data generation unit generates the new character data when the input unit receives the input of the character code. It is characterized by that.

一つの案では、文字生成装置は、入力された文字コードに対応する前記新たな文字データを出力する出力部を備えることを特徴とする。   In one plan, the character generation device includes an output unit that outputs the new character data corresponding to the input character code.

一つの案では、文字生成装置は、前記文字データ生成部は、異なる変形量を用いて1つの文字に対して複数の文字データを生成し、生成した前記複数の文字データを文字単位でそれぞれ対応する文字コードに関連付けて記憶することを特徴とする。   In one plan, in the character generation device, the character data generation unit generates a plurality of character data for one character using different deformation amounts, and each of the generated character data corresponds to each character unit. The character code is stored in association with the character code.

一つの案では、文字生成装置は、文字コードの入力を受け付ける入力部と、入力された文字コードに対応する前記新たな文字データをランダムに選択して出力する出力部とを備えることを特徴とする。   In one plan, the character generation device includes an input unit that receives an input of a character code, and an output unit that randomly selects and outputs the new character data corresponding to the input character code. To do.

一つの案では、文字生成装置は、前記取得した文字データは、ユーザにより描画された手書き文字の描画データであり、前記出力部は、前記手書き文字が描画された際の書き順に応じて前記新たな文字データの文字を出力することを特徴とする。   In one plan, the character generation device is configured such that the acquired character data is drawing data of handwritten characters drawn by a user, and the output unit generates the new character in accordance with the writing order when the handwritten characters are drawn. Characters of character data are output.

一つの案では、プログラムは、複数の文字コードに対応づいた文字データ群からなる手本フォントを記憶する記憶部を備えたコンピュータに、文字データを取得し、取得した文字データの対応する文字を特定し、前記取得した文字データと、特定した文字に対応する前記手本フォントの文字データとを比較して、特徴量の差分値から変形量を抽出し、前記手本フォントの各文字データに対して前記変形量を加減させた値を用いて、新たな文字データを対応する文字コードと対応付けて生成する処理を実行させることを特徴とする。   In one plan, the program acquires character data in a computer having a storage unit that stores a model font composed of character data groups corresponding to a plurality of character codes, and stores the character corresponding to the acquired character data. The obtained character data is compared with the character data of the sample font corresponding to the specified character, and the deformation amount is extracted from the difference value of the feature amount, and each character data of the sample font is extracted. On the other hand, a process of generating new character data in association with a corresponding character code is executed using a value obtained by adjusting the amount of deformation.

一つの案では、文字出力装置は、複数のフォントの各文字をそれぞれ1つの文字コードと関連付けて記憶する記憶部と、文字コードの入力を受け付ける入力部と、前記入力部で受け付けた文字コードに対応する文字を前記複数のフォントのいずれかから選択して出力する出力部とを備えることを特徴とする。   In one proposal, the character output device includes a storage unit that stores each character of a plurality of fonts in association with one character code, an input unit that receives input of a character code, and a character code received by the input unit. And an output unit that selects and outputs a corresponding character from any of the plurality of fonts.

一つの側面では、個人内変動を考慮した手書き文字の再現を行うことができる。   In one aspect, handwritten characters can be reproduced in consideration of individual variations.

文字生成装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of a character production | generation apparatus. フォント生成処理に関する説明図である。It is explanatory drawing regarding a font production | generation process. 文字出力処理に関する説明図である。It is explanatory drawing regarding a character output process. フォント生成処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of a font production | generation process. 文字出力処理の処理手順の一例を示すフローチャートである。It is a flowchart which shows an example of the process sequence of a character output process. 実施の形態2に係る文字生成装置の処理概要を示す説明図である。It is explanatory drawing which shows the process outline | summary of the character generation apparatus which concerns on Embodiment 2. FIG. 実施の形態2に係るフォント生成処理の処理手順の一例を示すフローチャートである。12 is a flowchart illustrating an example of a processing procedure of font generation processing according to the second embodiment. 実施の形態2に係る文字出力処理の処理手順の一例を示すフローチャートである。10 is a flowchart illustrating an example of a processing procedure of character output processing according to the second embodiment. 実施の形態3に係る文字生成装置が実行する処理の概要を示す説明図である。FIG. 10 is an explanatory diagram showing an outline of processing executed by a character generation device according to Embodiment 3. 実施の形態3に係るフォント生成処理の処理手順の一例を示すフローチャートである。14 is a flowchart illustrating an example of a processing procedure of font generation processing according to the third embodiment. 実施の形態3に係る文字出力処理の処理手順の一例を示すフローチャートである。12 is a flowchart illustrating an example of a processing procedure of character output processing according to Embodiment 3. 上述した形態の文字生成装置の動作を示す機能ブロック図である。It is a functional block diagram which shows operation | movement of the character production | generation apparatus of the form mentioned above.

以下、本発明をその実施の形態を示す図面に基づいて詳述する。
(実施の形態1)
図1は、文字生成装置1の構成例を示すブロック図である。本実施の形態では、出力の都度、異なる形状の手書き風の文字データ(文字画像)を生成する文字生成装置1について説明する。なお、以下の説明では便宜上、ユーザの手書き文字を再現した文字フォントを「手書きフォント」と呼ぶ。
Hereinafter, the present invention will be described in detail with reference to the drawings illustrating embodiments thereof.
(Embodiment 1)
FIG. 1 is a block diagram illustrating a configuration example of the character generation device 1. In the present embodiment, a character generation device 1 that generates handwritten character data (character image) having a different shape each time output is described. In the following description, for convenience, a character font that reproduces a user's handwritten character is referred to as a “handwritten font”.

文字生成装置1は、種々の情報処理を行う情報処理装置であり、例えばパーソナルコンピュータ、サーバ装置、スマートフォン、タブレット端末等である。文字生成装置1は、ユーザの手書き文字の特徴を学習して手書きフォントを生成する。   The character generation device 1 is an information processing device that performs various types of information processing, such as a personal computer, a server device, a smartphone, a tablet terminal, or the like. The character generation device 1 learns the characteristics of the user's handwritten characters and generates a handwritten font.

文字生成装置1は、制御部11、記憶部12、RAM13、表示部14、入力部15、通信部16を含む。
制御部11は、一又は複数のCPU(Central Processing Unit)、MPU(Micro-Processing Unit)等の演算処理装置を有し、記憶部12に記憶されたプログラムPを読み出して実行することにより、文字生成装置1に係る種々の情報処理、制御処理等を行う。記憶部12は大容量メモリ、ハードディスク等であり、制御部11が処理を実行するために必要なプログラムP、その他のデータを記憶している。また、記憶部12は、手本フォントデータ121、学習データ122、基準フォントデータ123を記憶している。手本フォントデータ121は、一般にコンピュータに標準設定されている既存の文字フォントのデータであり、複数の文字コードにそれぞれ対応づいた文字データ群からなるフォントデータである。
The character generation device 1 includes a control unit 11, a storage unit 12, a RAM 13, a display unit 14, an input unit 15, and a communication unit 16.
The control unit 11 has an arithmetic processing unit such as one or a plurality of CPUs (Central Processing Units) and MPUs (Micro-Processing Units), and reads and executes a program P stored in the storage unit 12 to execute characters. Various information processing, control processing, and the like related to the generation device 1 are performed. The storage unit 12 is a large-capacity memory, a hard disk, or the like, and stores a program P and other data necessary for the control unit 11 to execute processing. The storage unit 12 stores model font data 121, learning data 122, and reference font data 123. The model font data 121 is data of an existing character font that is generally set as a standard in a computer, and is font data composed of character data groups respectively corresponding to a plurality of character codes.

学習データ122は、後述するディープラーニングにより、ユーザの手書き文字の特徴を学習することで構築されたデータである。基準フォントデータ123は、学習データ122を用いて生成された手書きフォントのデータであって、出力する文字データの基準となるフォントデータである。後述するように、文字生成装置1は、学習データ122から生成した手書きフォントを基準として、手書きフォントの文字をランダムに変形した文字データを生成して出力する。   The learning data 122 is data constructed by learning the characteristics of the user's handwritten characters by deep learning described later. The reference font data 123 is handwritten font data generated using the learning data 122, and is font data serving as a reference for character data to be output. As will be described later, the character generation device 1 generates and outputs character data obtained by randomly deforming characters of the handwritten font with reference to the handwritten font generated from the learning data 122.

RAM13は、SRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)、フラッシュメモリ等であり、制御部11が演算処理を実行するために必要なデータを一時的に記憶する。表示部14は、例えば液晶ディスプレイ等であり、制御部11から与えられた画像を表示する。入力部15は、例えばタッチパネル、キーボード、マウス等であり、手書き文字の描画や文字コードの入力を受け付ける。通信部16は、通信に関する処理を行うための処理回路等を含み、ネットワークNを介して他の装置と情報の送受信を行う。   The RAM 13 is an SRAM (Static Random Access Memory), a DRAM (Dynamic Random Access Memory), a flash memory, or the like, and temporarily stores data necessary for the control unit 11 to execute arithmetic processing. The display unit 14 is, for example, a liquid crystal display, and displays an image given from the control unit 11. The input unit 15 is a touch panel, a keyboard, a mouse, or the like, for example, and accepts drawing of handwritten characters and input of character codes. The communication unit 16 includes a processing circuit for performing processing related to communication, and transmits / receives information to / from other devices via the network N.

図2は、フォント生成処理に関する説明図である。以下では文字生成装置1が実行する処理の概要について説明する。
文字生成装置1は、ユーザが書いた手書き文字の画像データである文字データから、ユーザの手書き文字の特徴を学習することで、手書き文字の特徴を反映した手書きフォントを生成する処理を行う。図2に、当該処理の概要を示す。図2では、ユーザの手書き文字の特徴を反映した基準フォントを生成する様子を図示している。
FIG. 2 is an explanatory diagram regarding font generation processing. Below, the outline | summary of the process which the character production | generation apparatus 1 performs is demonstrated.
The character generation device 1 performs a process of generating a handwritten font that reflects the characteristics of the handwritten characters by learning the characteristics of the user's handwritten characters from the character data that is image data of the handwritten characters written by the user. FIG. 2 shows an outline of the processing. FIG. 2 illustrates a state in which a reference font that reflects the characteristics of the user's handwritten characters is generated.

例えば文字生成装置1は、ユーザが電子ペン、指などによりタッチパネルに文字を描画した描画データを取得する。また、例えば文字生成装置1は、外部のスキャナー装置(不図示)から、手書き文字が書かれた紙面のスキャンデータを取得するようにしてもよい。文字生成装置1は、後述するディープラーニングを行うべく、複数種類の文字について手書き文字の文字データを取得する。文字生成装置1は、文字データに対する文字認識を行い、各文字データについて、文字の種類(文字コード)を特定する。   For example, the character generation device 1 acquires drawing data in which a user draws characters on a touch panel with an electronic pen, a finger, or the like. Further, for example, the character generation device 1 may acquire scan data of the paper on which handwritten characters are written from an external scanner device (not shown). The character generation device 1 acquires character data of handwritten characters for a plurality of types of characters in order to perform deep learning described later. The character generation device 1 performs character recognition for character data, and specifies the type of character (character code) for each character data.

文字生成装置1は、取得した手書き文字の文字データから、手書き文字の特徴を抽出する。具体的には、文字生成装置1は、予め設定されている手本フォントの文字データと、手書き文字の文字データとを比較し、特徴量の差分値から変形量を抽出する。   The character generation device 1 extracts features of handwritten characters from the acquired character data of handwritten characters. Specifically, the character generation device 1 compares character data of a preset model font with character data of handwritten characters, and extracts a deformation amount from a difference value of feature amounts.

上述の如く、文字生成装置1は、複数の手本フォントを記憶している。文字生成装置1は、ユーザの手書き文字と、当該手書き文字に対応する各手本フォントの文字とを比較し、手書き文字と最も類似する手本フォントを選択する。図2に示す例の場合、文字生成装置1は、手書きされた「あ」の文字と、各フォントの「あ」の文字とを比較する。文字生成装置1は、最も類似すると判断した手本フォントを、手書きフォントを生成するための素材として選択する。   As described above, the character generation device 1 stores a plurality of model fonts. The character generation device 1 compares the handwritten character of the user with the characters of each example font corresponding to the handwritten character, and selects the example font most similar to the handwritten character. In the case of the example illustrated in FIG. 2, the character generation device 1 compares the handwritten “A” character with the “A” character of each font. The character generation device 1 selects the model font determined to be the most similar as a material for generating a handwritten font.

文字生成装置1は、類似すると判断した手本フォントの文字と、手書き文字とを比較し、各文字の特徴量の差分値から変形量を抽出する。文字の特徴量は、例えば文字のストロークの端点、屈折点、交点、分岐点等の特徴点に係る座標値である。文字生成装置1は、手書き文字、及び手書き文字と同じ手本フォントの文字について、各特徴点の座標位置を特定する。例えば図2に示す例の場合、文字生成装置1は、「あ」の手書き文字から各特徴点の位置を特定すると共に、「あ」のフォント文字からも各特徴点の位置を特定する。文字生成装置1は、手書き文字と手本フォントの文字との特徴点の座標値の差分を取り、変形量を抽出する。   The character generation device 1 compares the character of the model font determined to be similar to the handwritten character, and extracts the deformation amount from the difference value of the feature amount of each character. The character feature amount is, for example, a coordinate value related to a feature point such as an end point, a refraction point, an intersection, or a branch point of a character stroke. The character generation device 1 specifies the coordinate position of each feature point for handwritten characters and characters of the same model font as the handwritten characters. For example, in the example illustrated in FIG. 2, the character generation device 1 specifies the position of each feature point from the handwritten character “A” and also specifies the position of each feature point from the font character “A”. The character generation device 1 takes the difference of the coordinate values of the feature points between the handwritten character and the character of the model font, and extracts the deformation amount.

図示は省略するが、文字生成装置1は「あ」以外の他の文字についても、手書き文字と手本フォントとの比較を行う。文字生成装置1は、各種文字から抽出した変形量を記憶部12に順次格納し、ディープラーニングに係る学習データ122を構築する。例えば文字生成装置1は、GAN(Generative Adversarial Networks)に係るニューラルネットワークを構築する。GANは、ディープラーニングにより構築されるデータ構造の一種であり、学習対象であるサンプル群と似た性質を持つ出力を得るネットワークである。なお、GANの技術は公知であるため、詳細な説明は省略する。文字生成装置1は、手書き文字と手本フォントとの間の変形量を学習することで、手書き文字を再現した手書きフォントを出力するための学習データ122を構築する。   Although illustration is omitted, the character generation device 1 compares the handwritten character with the model font for characters other than “A”. The character generation device 1 sequentially stores deformation amounts extracted from various characters in the storage unit 12, and constructs learning data 122 related to deep learning. For example, the character generation device 1 constructs a neural network related to GAN (Generative Adversarial Networks). GAN is a kind of data structure constructed by deep learning, and is a network that obtains an output having properties similar to a sample group to be learned. Since the GAN technique is known, detailed description thereof is omitted. The character generation device 1 learns the amount of deformation between the handwritten character and the model font, thereby constructing learning data 122 for outputting a handwritten font that reproduces the handwritten character.

文字生成装置1は、手本フォントの各文字データに対して、上記で抽出した変形量を適用し、ユーザの手書き文字の特徴を反映した新たな文字データを生成する。例えば図2に概念的に示すように、文字生成装置1は「あ」の文字に関する変形量を、手本フォントの「い」、「う」、「え」…の文字に対して適用し、ユーザの手書き文字の特徴を反映した「い」、「う」、「え」…の手書きフォントを生成する。このように、文字生成装置1は、手書き文字のサンプル画像を取得していない「い」、「う」、「え」…の文字についても手書き風のフォント文字を生成する。文字生成装置1は、学習データ122に基づき生成した文字データ群、すなわち手書きフォントのデータを、基準フォントデータ123として記憶部12に記憶する。   The character generation device 1 applies the deformation amount extracted above to each character data of the model font, and generates new character data reflecting the characteristics of the user's handwritten characters. For example, as conceptually shown in FIG. 2, the character generation device 1 applies the deformation amount related to the character “A” to the characters “I”, “U”, “E”. Handwritten fonts “I”, “U”, “E”,... Reflecting the characteristics of the user's handwritten characters are generated. In this way, the character generation device 1 generates handwritten-style font characters for the characters “I”, “U”, “E”,... The character generation device 1 stores a character data group generated based on the learning data 122, that is, handwritten font data in the storage unit 12 as reference font data 123.

図3は、文字出力処理に関する説明図である。文字生成装置1は、上記で生成した基準フォントを基に、ユーザにより任意に入力された文字コードを手書き文字として再現したフォント文字を出力する。なお、文字生成装置1は、入力部15において文字コードの入力を受け付けるようにしても良く、クライアント端末から文字コードの入力を受け付けるようにしても良い。ここで、文字生成装置1は単に基準フォントをそのまま出力するのではなく、出力の都度、基準フォントの文字データをランダムに変形した新たな文字データを生成して出力する。   FIG. 3 is an explanatory diagram regarding character output processing. The character generation device 1 outputs a font character in which a character code arbitrarily input by a user is reproduced as a handwritten character based on the reference font generated above. Note that the character generation device 1 may accept input of a character code at the input unit 15 or may accept input of a character code from a client terminal. Here, the character generation device 1 does not simply output the reference font as it is, but generates and outputs new character data obtained by randomly deforming the character data of the reference font each time it is output.

一般的に、人が手書きする文字は常に同じものではなく、書くたびに形が異なるものである。しかしながら、学習したユーザの手書き文字をそのまま出力する場合、文字の形状は一定であり、人間味がない。そこで本実施の形態では、文字生成装置1は出力の都度、基準フォントの文字データを変形する。   In general, characters handwritten by a person are not always the same, and each time they are written, the shapes are different. However, when the learned user's handwritten character is output as it is, the shape of the character is constant and impersonal. Therefore, in the present embodiment, the character generation device 1 transforms the character data of the reference font every time it is output.

具体的には、文字生成装置1は、上記の変形量を加減した値を基準フォントの文字データに適用し、出力用の新たな文字データを変形する。例えば文字生成装置1は、学習した変形量を平均として、一定の数値範囲内で変形量をランダムに加減したランダム数値を基準フォントの文字に適用し、基準フォントの文字をランダムに変形した文字データを生成する。これにより、図3中央に示すように、文字生成装置1は、基準フォントの文字の特徴点の座標位置をランダムに変位させ、文字の形を少しずつ変化させた文字データを生成する。文字生成装置1は、入力された文字コードが示す各文字について、ランダムな形の文字データを生成していく。これにより、図3下に示すように、文字生成装置1は、出力の度に異なるパターンの手書き文字を出力する。例えば文字生成装置1は、ランダムに変形した文字データを表示部14に表示する。また、例えば文字生成装置1は、クライアントに文字データを出力するようにしてもよい。以上より、文字生成装置1は、出力の度に異なる手書きフォントを生成することで、手書き文字の傾向を反映した手書きフォントの文字生成が可能となる。   Specifically, the character generating device 1 applies the value obtained by adding or subtracting the above deformation amount to the character data of the reference font, and deforms new character data for output. For example, the character generation device 1 applies the random numerical value obtained by randomly adjusting the deformation amount within a certain numerical range to the reference font character, with the learned deformation amount as an average, and character data obtained by randomly deforming the reference font character. Is generated. As a result, as shown in the center of FIG. 3, the character generation device 1 randomly changes the coordinate positions of the feature points of the characters of the reference font, and generates character data in which the character shape is changed little by little. The character generation device 1 generates character data in a random form for each character indicated by the input character code. Thereby, as shown in the lower part of FIG. 3, the character generating device 1 outputs handwritten characters having a different pattern for each output. For example, the character generation device 1 displays randomly deformed character data on the display unit 14. For example, the character generation device 1 may output character data to the client. As described above, the character generation device 1 can generate handwritten font characters reflecting the tendency of handwritten characters by generating different handwritten fonts for each output.

図4は、フォント生成処理の処理手順の一例を示すフローチャートである。図4に基づき、手書きフォントの生成処理の処理内容について説明する。
文字生成装置1の制御部11は、ユーザが書いた手書き文字の文字データを取得する(ステップS11)。例えば制御部11は、タッチパネルに描画された手書き文字の描画データを取得する。また、例えば制御部11は、ユーザが手書き文字を書いた紙面をスキャナー装置により読み取ったスキャンデータを取得するようにしてもよい。制御部11は、複数種類の文字について、ユーザの手書き文字の文字データを取得する。
FIG. 4 is a flowchart illustrating an example of a processing procedure of font generation processing. The processing contents of the handwritten font generation processing will be described with reference to FIG.
The control unit 11 of the character generation device 1 acquires character data of handwritten characters written by the user (step S11). For example, the control unit 11 acquires drawing data of handwritten characters drawn on the touch panel. Further, for example, the control unit 11 may acquire scan data obtained by reading a paper surface on which a user has written handwritten characters with a scanner device. The control part 11 acquires the character data of a user's handwritten character about several types of characters.

制御部11は、文字データ(画像データ)に対する文字認識を行い、取得した文字データの対応する文字を特定する(ステップS12)。そして制御部11は、複数の手本フォントから、ステップS11で取得した文字データと類似する手本フォントを特定する(ステップS13)。具体的には、制御部11は、ステップS12で特定した文字に対応する各手本フォントの文字データを、ユーザの手書き文字の文字データと比較し、特徴量が最も近い文字データに係る手本フォントを特定する。   The control unit 11 performs character recognition on the character data (image data) and specifies a character corresponding to the acquired character data (step S12). And the control part 11 specifies the model font similar to the character data acquired by step S11 from a some sample font (step S13). Specifically, the control unit 11 compares the character data of each example font corresponding to the character specified in step S12 with the character data of the user's handwritten character, and the example relating to the character data having the closest feature amount. Identify the font.

制御部11は、ステップS11で取得した手書き文字の文字データと、ステップS13で特定した手本フォントの文字データとを比較し、特徴量の差分値から変形量を抽出する(ステップS14)。具体的には、制御部11は、ステップS12で特定した文字に対応する手本フォントの文字、すなわち手書き文字と同じ手本フォントの文字を比較対象にして、手書き文字の各特徴点の座標値と、手本フォントの文字の各特徴点の座標値とを比較し、座標値の差分から変形量を抽出する。制御部11は、ステップS11で取得した全ての手書き文字について手本フォントとの比較を行い、変形量を抽出する。制御部11は、各文字について抽出した変形量を記憶部12に順次格納し、学習データ122を構築する。   The control unit 11 compares the character data of the handwritten character acquired in step S11 with the character data of the model font specified in step S13, and extracts the deformation amount from the difference value of the feature amount (step S14). Specifically, the control unit 11 compares the character of the model font corresponding to the character specified in step S12, that is, the character of the same model font as the handwritten character, and the coordinate value of each feature point of the handwritten character. And the coordinate value of each feature point of the character of the model font, and the deformation amount is extracted from the difference between the coordinate values. The control unit 11 compares all the handwritten characters acquired in step S11 with the model font and extracts the deformation amount. The control unit 11 sequentially stores the deformation amount extracted for each character in the storage unit 12 and constructs learning data 122.

制御部11は、ステップS14で抽出した変形量を手本フォントの各文字データに対して適用し、基準フォントに係る新たな文字データを生成する(ステップS15)。つまり制御部11は、手書き文字のサンプル画像を未取得の文字について、ディープラーニングによる学習結果を手本フォントの文字データに適用し、ユーザの手書き文字の特徴を反映した文字データを生成する。例えば制御部11は、GANのアルゴリズムを用いて文字の生成を行う。制御部11は、生成した新たな文字データを対応する文字コードと対応付けた基準フォントのデータを記憶部12に記憶し(ステップS16)、一連の処理を終了する。   The control unit 11 applies the deformation amount extracted in step S14 to each character data of the model font, and generates new character data related to the reference font (step S15). That is, the control part 11 applies the learning result by deep learning to the character data of a model font about the character which has not acquired the sample image of the handwritten character, and produces | generates the character data reflecting the characteristic of a user's handwritten character. For example, the control unit 11 generates characters using a GAN algorithm. The control unit 11 stores the reference font data in which the generated new character data is associated with the corresponding character code in the storage unit 12 (step S16), and ends the series of processes.

図5は、文字出力処理の処理手順の一例を示すフローチャートである。図5に基づき、文字データの出力処理について説明する。
文字生成装置1の制御部11は、入力部15を介して文字コードの入力を受け付ける(ステップS31)。制御部11は、入力された文字コードに対応する基準フォントの文字データに対して、上述の変形量を加減させた値を用いて新たな文字データを生成する(ステップS32)。具体的には、制御部11は、ユーザの手書き文字と手本フォントの文字との間の変形量を一定の数値範囲内でランダムに加減したランダム数値を適用し、基準フォントの文字データをランダムに変形した文字データを生成する。制御部11は、入力された各文字コードについて、対応するランダムな形状の文字データを生成する。制御部11は、ステップS32で生成した文字データを出力し(ステップS33)、一連の処理を終了する。
FIG. 5 is a flowchart illustrating an example of a processing procedure for character output processing. The character data output process will be described with reference to FIG.
The control unit 11 of the character generation device 1 receives an input of a character code via the input unit 15 (step S31). The control unit 11 generates new character data using the value obtained by adding or subtracting the amount of deformation to the character data of the reference font corresponding to the input character code (step S32). Specifically, the control unit 11 applies a random numerical value obtained by randomly adjusting the deformation amount between the user's handwritten character and the character of the model font within a certain numerical range, and randomly determines the character data of the reference font. Generate character data transformed into. The control unit 11 generates corresponding random-shaped character data for each input character code. The control part 11 outputs the character data produced | generated by step S32 (step S33), and complete | finishes a series of processes.

なお、上記では手書き文字との比較対象とする手本フォントは、コンピュータに標準設定されている既存フォントであるものとしたが、手書き文字と比較可能なフォントであればよく、書体等の具体的内容は特に限定されない。   In the above description, the model font to be compared with handwritten characters is an existing font that is standardly set in the computer. However, any font that can be compared with handwritten characters may be used. The content is not particularly limited.

また、上記で文字生成装置1は、手書き文字と手本フォントの文字との間の変形量をランダムに変動させることとしたが、本実施の形態はこれに限定されるものではない。文字生成装置1は、出力されるフォント文字が見かけ上はランダムに変形されて見えるように、例えば出力時刻に応じて文字の変形パターンを変えるなど、一定ルールの下で字体の変形を行ってもよい。すなわち文字生成装置1は、差分値を変動させることで個人内変動を考慮した手書きフォントを生成することができればよく、乱数的に文字の変形を行ってもよいし、パターン化された文字の変形を行ってもよい。   Moreover, although the character production | generation apparatus 1 decided to change the deformation amount between the handwritten character and the character of a model font at random above, this Embodiment is not limited to this. The character generation device 1 may perform character deformation under certain rules such as changing the character deformation pattern according to the output time so that the output font characters appear to be randomly deformed. Good. That is, the character generation device 1 only needs to be able to generate a handwritten font that takes into account individual variations by changing the difference value. The character generation device 1 may perform random character deformation or pattern character deformation. May be performed.

以上より、本実施の形態1によれば、個人内変動を考慮した手書き文字の再現を行うことができる。   As described above, according to the first embodiment, handwritten characters can be reproduced in consideration of individual variation.

また、本実施の形態1によれば、変形量を一定の数値範囲内でランダムに加減した値を用いることで、より個人内変動に近い形での手書き文字の再現を行うことができる。   Further, according to the first embodiment, handwritten characters can be reproduced in a form closer to the intra-individual variation by using a value obtained by randomly adjusting the amount of deformation within a certain numerical range.

また、本実施の形態1によれば、手書き文字と手本フォントとの比較により抽出した変形量の加減値ではなく、変形量そのものを用いて中間的な基準フォントを生成しておくことで、より好適な実施が可能となる。   In addition, according to the first embodiment, by generating an intermediate reference font using the deformation amount itself instead of the deformation amount extracted by comparing the handwritten character with the model font, A more preferable implementation is possible.

また、本実施の形態1によれば、手書き文字と類似する手本フォントを手書きフォントの素材に選ぶことで、手書き文字の再現性を高めることができる。   Further, according to the first embodiment, reproducibility of handwritten characters can be improved by selecting a model font similar to handwritten characters as the material of the handwritten font.

また、本実施の形態1によれば、文字コードの入力を受け付けてからリアルタイムに文字データを生成することで、手書きに近い文字の再現が可能となる。   Further, according to the first embodiment, it is possible to reproduce characters close to handwriting by generating character data in real time after receiving an input of a character code.

また、本実施の形態1によれば、任意に入力された文字コードが示す文字をランダムに変形した手書き風のフォント文字を出力することができる。   Further, according to the first embodiment, it is possible to output a handwritten style font character obtained by randomly deforming a character indicated by an arbitrarily input character code.

(実施の形態2)
本実施の形態では、複数パターンの手書きフォントを事前生成しておき、出力時にフォントをランダムに選択して出力する形態について述べる。なお、実施の形態1と重複する内容については同一の符号を付して説明を省略する。
図6は、実施の形態2に係る文字生成装置1の処理概要を示す説明図である。実施の形態1において文字生成装置1は、出力の際に基準フォントを変形させ、ランダムな形状の文字データを生成した。本実施の形態において文字生成装置1は、文字データを逐次生成するのではなく、事前生成しておく。これにより、処理速度の向上を図る。
(Embodiment 2)
In the present embodiment, a mode will be described in which a plurality of patterns of handwritten fonts are generated in advance, and fonts are randomly selected and output at the time of output. In addition, about the content which overlaps with Embodiment 1, the same code | symbol is attached | subjected and description is abbreviate | omitted.
FIG. 6 is an explanatory diagram showing a processing outline of the character generation device 1 according to the second embodiment. In the first embodiment, the character generation device 1 deforms the reference font at the time of output to generate character data having a random shape. In this embodiment, the character generation device 1 generates character data in advance, not sequentially. Thereby, the processing speed is improved.

具体的には図6に示すように、文字生成装置1は、ディープラーニングにより生成した基準フォントから、複数パターンの手書きフォントを事前生成する。文字生成装置1は、基準フォントの1つの文字に対し、複数の異なる変形量を適用し、一文字当たり複数の文字データを生成する。例えば図6の例では、文字生成装置1は、基準フォントの「あ」の文字に対して異なる値の変形量を適用し、複数パターンの「あ」の文字データを生成する。例えば文字生成装置1は、実施の形態1と同様に、変形量を一定の数値範囲で加減した値を用いて各手書きフォントの文字データを生成する。同様に、文字生成装置1は「い」、「う」、「え」…の各文字についても複数パターンの文字データを生成していく。   Specifically, as illustrated in FIG. 6, the character generation device 1 generates a plurality of patterns of handwritten fonts in advance from a reference font generated by deep learning. The character generation device 1 applies a plurality of different deformation amounts to one character of the reference font, and generates a plurality of character data per character. For example, in the example of FIG. 6, the character generation device 1 applies different amounts of deformation to the character “A” of the reference font, and generates a plurality of patterns of character data “A”. For example, as in the first embodiment, the character generation device 1 generates character data of each handwritten font using a value obtained by adding or subtracting the deformation amount within a certain numerical range. Similarly, the character generation device 1 generates a plurality of patterns of character data for each of the characters “I”, “U”, “E”.

文字生成装置1は、基準フォントの1つの文字データから生成した複数の文字データを、対応する文字コードと対応付けて記憶部12に記憶しておく。上記の例の場合、文字生成装置1は、複数の「あ」の文字データを、「あ」の文字コードと対応付けて記憶する。他の文字についても同様である。これにより、記憶部12には、1つの文字コードに関連付けて、複数の手書きフォントの文字データが記憶される。このように、文字生成装置1は、生成した各パターンの手書きフォントの文字データを、文字単位でそれぞれ対応する文字コードに関連付けて記憶部12に記憶しておく。   The character generation device 1 stores a plurality of character data generated from one character data of the reference font in the storage unit 12 in association with the corresponding character code. In the case of the above example, the character generation device 1 stores a plurality of “A” character data in association with the “A” character code. The same applies to other characters. Thereby, the storage unit 12 stores character data of a plurality of handwritten fonts in association with one character code. In this manner, the character generation device 1 stores the generated character data of the handwritten font of each pattern in the storage unit 12 in association with the corresponding character code in character units.

文字生成装置1は、文字コードの入力を受け付け、文字を出力する場合、事前に生成した各パターンの手書きフォントのいずれかをランダムに選択して文字を出力する。例えば図6に示すように、3パターンのフォントを事前生成しておいた場合、文字生成装置1は、いずれかのフォントをランダムに採用して文字データを出力する。これにより文字生成装置1は、実施の形態1と同じく、出力の度に異なる文字データを出力することができる。   When the character generation device 1 accepts input of a character code and outputs a character, the character generation device 1 randomly selects one of the handwritten fonts of each pattern generated in advance and outputs the character. For example, as shown in FIG. 6, when three patterns of fonts are generated in advance, the character generation device 1 randomly selects one of the fonts and outputs character data. As a result, the character generation device 1 can output different character data each time it is output, as in the first embodiment.

図7は、実施の形態2に係るフォント生成処理の処理手順の一例を示すフローチャートである。基準フォントを生成する処理を実行した後(ステップS15)、文字生成装置1の制御部11は、以下の処理を実行する。
制御部11は、複数の異なる変形量を基準フォントの各文字に適用し、基準フォントの1つの文字に対して複数の文字データを生成する(ステップS201)。例えば制御部11は、実施の形態1と同じく、変形量に係るパラメータをランダムに加減したランダム数値を適用し、手書きフォントに係る文字データを生成する。本実施の形態において制御部11は、基準フォントの1つの文字に対し、値が異なる複数のランダム数値を適用し、1つの文字データから複数の手書きフォントの文字データを生成する。
FIG. 7 is a flowchart illustrating an example of a processing procedure of font generation processing according to the second embodiment. After executing the process of generating the reference font (step S15), the control unit 11 of the character generation apparatus 1 executes the following process.
The control unit 11 applies a plurality of different deformation amounts to each character of the reference font, and generates a plurality of character data for one character of the reference font (step S201). For example, as in the first embodiment, the control unit 11 applies a random numerical value obtained by randomly adjusting a parameter related to the deformation amount to generate character data related to a handwritten font. In the present embodiment, the control unit 11 applies a plurality of random numerical values having different values to one character of the reference font, and generates character data of a plurality of handwritten fonts from one character data.

制御部11は、基準フォントの各文字について生成した複数の文字データを、文字単位でそれぞれ対応する文字コードと関連付けて記憶部12に記憶する(ステップS202)。これにより、記憶部12には、複数の手書きフォントの各文字が、対応する文字コードに関連付けて記憶される。制御部11は、一連の処理を終了する。   The control unit 11 stores a plurality of character data generated for each character of the reference font in the storage unit 12 in association with the corresponding character code in units of characters (step S202). Thereby, each character of a plurality of handwritten fonts is stored in the storage unit 12 in association with the corresponding character code. The control unit 11 ends the series of processes.

図8は、実施の形態2に係る文字出力処理の処理手順の一例を示すフローチャートである。文字コードの入力を受け付けた後(ステップS31)、文字生成装置1の制御部11は、以下の処理を実行する。
制御部11は、ステップS31で入力された文字コードと関連付けて記憶部12に記憶されている複数の文字データのうち、いずれかをランダムに選択する(ステップS221)。すなわち制御部11は、複数の手書きフォントのいずれかをランダムに選択する。制御部11は、選択した文字データを出力し(ステップS222)、一連の処理を終了する。
FIG. 8 is a flowchart illustrating an example of a processing procedure of character output processing according to the second embodiment. After receiving the input of the character code (step S31), the control unit 11 of the character generation device 1 executes the following process.
The control unit 11 randomly selects one of a plurality of character data stored in the storage unit 12 in association with the character code input in step S31 (step S221). That is, the control unit 11 randomly selects one of a plurality of handwritten fonts. The control unit 11 outputs the selected character data (step S222), and ends a series of processes.

なお、上記では文字生成装置1が複数の手書きフォントの生成から出力までの全ての処理を行ったが、本実施の形態はこれに限定されるものではない。例えば文字生成装置1が生成した複数の手書きフォントのデータを所定の端末装置にインストールし、端末装置が文字出力(表示)の際に手書きフォントをランダムに選択して文字を出力するようにしてもよい。この場合、端末装置は、手書きフォントの文字をランダムに出力する文字出力装置として機能する。このように、文字生成装置1が手書きフォントの生成から出力に至る全ての処理を行う必要はなく、文字の生成処理と出力処理とを分散して行ってもよい。   In the above description, the character generation device 1 performs all the processes from generation to output of a plurality of handwritten fonts, but the present embodiment is not limited to this. For example, a plurality of handwritten font data generated by the character generation device 1 may be installed in a predetermined terminal device, and the terminal device may randomly select a handwritten font and output characters when outputting (displaying) characters. Good. In this case, the terminal device functions as a character output device that randomly outputs characters of the handwritten font. Thus, it is not necessary for the character generation device 1 to perform all processing from generation to output of the handwritten font, and character generation processing and output processing may be performed in a distributed manner.

以上より、本実施の形態2によれば、複数の手書きフォントのデータを事前生成しておくことで、実施の形態1と同様の効果を奏する。   As described above, according to the second embodiment, the same effects as those of the first embodiment can be obtained by generating data of a plurality of handwritten fonts in advance.

また、本実施の形態2によれば、文字出力の際に、事前生成された複数の手書きフォントのいずれかを選択することで、処理速度の向上を図ることができる。   Further, according to the second embodiment, it is possible to improve the processing speed by selecting one of a plurality of handwritten fonts generated in advance at the time of character output.

(実施の形態3)
本実施の形態では、手書き文字の書き順を再現してフォント文字を出力する形態について述べる。
図9は、実施の形態3に係る文字生成装置1が実行する処理の概要を示す説明図である。本実施の形態では、文字生成装置1は、ユーザが手書き文字を書いた際の書き順を再現して文字を出力する。
(Embodiment 3)
In the present embodiment, a mode is described in which font characters are output by reproducing the writing order of handwritten characters.
FIG. 9 is an explanatory diagram illustrating an outline of processing executed by the character generation device 1 according to the third embodiment. In the present embodiment, the character generation device 1 reproduces the writing order when the user writes handwritten characters and outputs the characters.

具体的には、文字生成装置1は、手書き文字の文字データとして、所定のタッチパネルに描画された手書き文字の描画データを取得する。そして文字生成装置1は、手書き文字の描画データから、文字を構成する各ストロークの書き順を読み取る。   Specifically, the character generation device 1 acquires drawing data of handwritten characters drawn on a predetermined touch panel as character data of handwritten characters. And the character production | generation apparatus 1 reads the writing order of each stroke which comprises a character from the drawing data of a handwritten character.

文字生成装置1は、文字データを出力する際、ユーザによる書き順に応じて文字を出力する。例えば図9に示すように、文字生成装置1は、書き順に従ってフォント文字の各ストロークを順次出力する。これにより、文字生成装置1は、ユーザの手書き文字の再現性を高めることができる。   The character generation device 1 outputs characters according to the writing order by the user when outputting character data. For example, as shown in FIG. 9, the character generation device 1 sequentially outputs each stroke of font characters according to the writing order. Thereby, the character production | generation apparatus 1 can improve the reproducibility of a user's handwritten character.

図10は、実施の形態3に係るフォント生成処理の処理手順の一例を示すフローチャートである。図10に基づき、実施の形態3に係るフォント生成処理の処理内容について説明する。
文字生成装置1の制御部11は、ユーザにより描画された手書き文字の描画データを取得する(ステップS301)。描画データは、例えば電子ペンにより所定のタッチパネルに描線された線画データであり、手書き文字の書き順を識別可能なデータである。制御部11は、ステップS12〜S14の処理を実行後、描画データを基に生成した基準フォントと共に、書き順に関する情報を、対応する文字データと関連付けて記憶部12に記憶し(ステップS302)、処理を終了する。
FIG. 10 is a flowchart illustrating an example of a processing procedure of font generation processing according to the third embodiment. Based on FIG. 10, the processing content of the font generation processing according to Embodiment 3 will be described.
The control unit 11 of the character generation device 1 acquires drawing data of handwritten characters drawn by the user (step S301). The drawing data is line drawing data drawn on a predetermined touch panel with an electronic pen, for example, and is data that can identify the writing order of handwritten characters. After executing the processes of steps S12 to S14, the control unit 11 stores information on the writing order in the storage unit 12 in association with the corresponding character data together with the reference font generated based on the drawing data (step S302). The process ends.

図11は、実施の形態3に係る文字出力処理の処理手順の一例を示すフローチャートである。基準フォントの文字をランダムに変形させた文字データを生成する処理を実行した後(ステップS32)、文字生成装置1の制御部11は、以下の処理を実行する。
制御部11は、記憶部12を参照して、手書き文字が描画された際の書き順に応じて文字データを出力する(ステップS321)。具体的には、制御部11は手書き文字の書き順に従って、文字を構成する各ストロークを順次出力する。制御部11は、一連の処理を終了する。
FIG. 11 is a flowchart illustrating an example of a processing procedure of character output processing according to the third embodiment. After executing the process of generating character data in which the characters of the reference font are randomly deformed (step S32), the control unit 11 of the character generation device 1 executes the following process.
The control unit 11 refers to the storage unit 12 and outputs character data according to the writing order when handwritten characters are drawn (step S321). Specifically, the control unit 11 sequentially outputs each stroke constituting the character according to the writing order of the handwritten character. The control unit 11 ends the series of processes.

以上より、本実施の形態3によれば、手書き文字の書き順を再現することで、より手書きに近い文字出力が可能となる。   As described above, according to the third embodiment, it is possible to output characters closer to handwriting by reproducing the writing order of handwritten characters.

(実施の形態4)
図12は、上述した形態の文字生成装置1の動作を示す機能ブロック図である。制御部11がプログラムPを実行することにより、文字生成装置1は以下のように動作する。記憶部1201は、複数の文字コードに対応づいた文字データ群からなる手本フォントを記憶する。文字データ取得部1202は、文字データを取得する。文字特定部1203は、取得した文字データの対応する文字を特定する。変形量抽出部1204は、前記取得した文字データと、前記文字特定部1203が特定した文字に対応する前記手本フォントの文字データとを比較して、特徴量の差分値から変形量を抽出する。文字データ生成部1205は、前記手本フォントの各文字データに対して前記変形量を加減させた値を用いて新たな文字データ対応する文字コードと対応付けて生成する。
(Embodiment 4)
FIG. 12 is a functional block diagram illustrating the operation of the character generation device 1 having the above-described form. When the control unit 11 executes the program P, the character generation device 1 operates as follows. The storage unit 1201 stores a model font composed of a character data group corresponding to a plurality of character codes. The character data acquisition unit 1202 acquires character data. The character specifying unit 1203 specifies a character corresponding to the acquired character data. The deformation amount extraction unit 1204 compares the acquired character data with the character data of the sample font corresponding to the character specified by the character specifying unit 1203, and extracts the deformation amount from the difference value of the characteristic amount. . The character data generation unit 1205 generates a character code corresponding to new character data by using a value obtained by adding or subtracting the deformation amount to each character data of the model font.

本実施の形態4は以上の如きであり、その他は実施の形態1から3と同様であるので、対応する部分には同一の符号を付してその詳細な説明を省略する。   The fourth embodiment is as described above, and the other parts are the same as those of the first to third embodiments. Therefore, the corresponding parts are denoted by the same reference numerals, and detailed description thereof is omitted.

今回開示された実施の形態はすべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記した意味ではなく、特許請求の範囲によって示され、特許請求の範囲と均等の意味及び範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time is to be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the meanings described above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

1 文字生成装置
11 制御部
12 記憶部
P プログラム
121 手本フォントデータ
122 学習データ
123 基準フォントデータ
13 RAM
14 表示部
15 入力部
16 通信部
DESCRIPTION OF SYMBOLS 1 Character generator 11 Control part 12 Memory | storage part P Program 121 Example font data 122 Learning data 123 Reference | standard font data 13 RAM
14 Display unit 15 Input unit 16 Communication unit

Claims (11)

複数の文字コードに対応づいた文字データ群からなる手本フォントを記憶する記憶部と、
文字データを取得する文字データ取得部と、
取得した文字データの対応する文字を特定する文字特定部と、
前記取得した文字データと、前記文字特定部が特定した文字に対応する前記手本フォントの文字データとを比較して、特徴量の差分値から変形量を抽出する変形量抽出部と、
前記手本フォントの各文字データに対して前記変形量を加減させた値を用いて、新たな文字データを対応する文字コードと対応付けて生成する文字データ生成部と
を備えることを特徴とする文字生成装置。
A storage unit for storing a model font composed of character data groups corresponding to a plurality of character codes;
A character data acquisition unit for acquiring character data;
A character identification part for identifying the corresponding character of the acquired character data;
A deformation amount extraction unit that compares the acquired character data with the character data of the example font corresponding to the character specified by the character specifying unit, and extracts a deformation amount from a difference value of the feature amount;
A character data generation unit that generates new character data in association with a corresponding character code using a value obtained by adding or subtracting the amount of deformation to each character data of the model font. Character generator.
前記加減させた値は一定の範囲のランダム数値である
ことを特徴とする請求項1に記載の文字生成装置。
The character generation apparatus according to claim 1, wherein the adjusted value is a random numerical value within a certain range.
前記文字データ生成部は、前記変形量抽出部が抽出した前記変形量を用いて新たな文字データを生成する
ことを特徴とする請求項1又は2に記載の文字生成装置。
The character generation device according to claim 1, wherein the character data generation unit generates new character data using the deformation amount extracted by the deformation amount extraction unit.
前記記憶部は、複数の前記手本フォントを記憶し、
前記変形量抽出部は、
複数の前記手本フォントから、前記取得した文字データと類似する前記手本フォントを特定し、
前記取得した文字データと、特定した前記手本フォントの文字データとを比較して、特徴量の差分値から前記変形量を抽出する
ことを特徴とする請求項1〜3のいずれか1項に記載の文字生成装置。
The storage unit stores a plurality of the model fonts,
The deformation amount extraction unit
Identifying the example font similar to the acquired character data from the plurality of example fonts;
4. The deformation amount is extracted from a difference value of feature amounts by comparing the acquired character data with the character data of the specified example font. 5. The described character generator.
文字コードの入力を受け付ける入力部を備え、
前記文字データ生成部は、前記入力部において前記文字コードの入力を受け付けた場合、前記新たな文字データを生成する
ことを特徴とする請求項1〜4のいずれか1項に記載の文字生成装置。
It has an input unit that accepts input of character codes,
The character generation device according to any one of claims 1 to 4, wherein the character data generation unit generates the new character data when the input unit receives the input of the character code. .
入力された文字コードに対応する前記新たな文字データを出力する出力部を備える
ことを特徴とする請求項5に記載の文字生成装置。
The character generation device according to claim 5, further comprising an output unit that outputs the new character data corresponding to the input character code.
前記文字データ生成部は、
異なる変形量を用いて1つの文字に対して複数の文字データを生成し、
生成した前記複数の文字データを文字単位でそれぞれ対応する文字コードに関連付けて記憶する
ことを特徴とする請求項1〜4のいずれか1項に記載の文字生成装置。
The character data generation unit
A plurality of character data is generated for one character using different deformation amounts,
5. The character generation device according to claim 1, wherein the generated character data is stored in association with a corresponding character code in character units.
文字コードの入力を受け付ける入力部と、
入力された文字コードに対応する前記新たな文字データをランダムに選択して出力する出力部と
を備えることを特徴とする請求項7に記載の文字生成装置。
An input unit that accepts input of a character code;
The character generation device according to claim 7, further comprising: an output unit that randomly selects and outputs the new character data corresponding to the input character code.
前記取得した文字データは、ユーザにより描画された手書き文字の描画データであり、
前記出力部は、前記手書き文字が描画された際の書き順に応じて前記新たな文字データの文字を出力する
ことを特徴とする請求項6又は8に記載の文字生成装置。
The acquired character data is drawing data of handwritten characters drawn by the user,
The character generation device according to claim 6 or 8, wherein the output unit outputs characters of the new character data according to a writing order when the handwritten characters are drawn.
複数の文字コードに対応づいた文字データ群からなる手本フォントを記憶する記憶部を備えたコンピュータに、
文字データを取得し、
取得した文字データの対応する文字を特定し、
前記取得した文字データと、特定した文字に対応する前記手本フォントの文字データとを比較して、特徴量の差分値から変形量を抽出し、
前記手本フォントの各文字データに対して前記変形量を加減させた値を用いて、新たな文字データを対応する文字コードと対応付けて生成する
処理を実行させることを特徴とするプログラム。
In a computer having a storage unit for storing a model font consisting of character data groups corresponding to a plurality of character codes,
Get character data,
Identify the corresponding character in the acquired character data,
Comparing the acquired character data with the character data of the model font corresponding to the specified character, and extracting the deformation amount from the difference value of the feature amount;
A program for executing a process for generating new character data in association with a corresponding character code using a value obtained by adding or subtracting the amount of deformation to each character data of the model font.
複数のフォントの各文字をそれぞれ1つの文字コードと関連付けて記憶する記憶部と、
文字コードの入力を受け付ける入力部と、
前記入力部で受け付けた文字コードに対応する文字を前記複数のフォントのいずれかから選択して出力する出力部と
を備えることを特徴とする文字出力装置。
A storage unit for storing each character of a plurality of fonts in association with one character code;
An input unit that accepts input of a character code;
A character output device comprising: an output unit that selects and outputs a character corresponding to a character code received by the input unit from any of the plurality of fonts.
JP2017143640A 2017-07-25 2017-07-25 Character generation device, program and character output device Pending JP2019028094A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017143640A JP2019028094A (en) 2017-07-25 2017-07-25 Character generation device, program and character output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017143640A JP2019028094A (en) 2017-07-25 2017-07-25 Character generation device, program and character output device

Publications (1)

Publication Number Publication Date
JP2019028094A true JP2019028094A (en) 2019-02-21

Family

ID=65476217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017143640A Pending JP2019028094A (en) 2017-07-25 2017-07-25 Character generation device, program and character output device

Country Status (1)

Country Link
JP (1) JP2019028094A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021026729A (en) * 2019-08-08 2021-02-22 ブラザー工業株式会社 Image processing apparatus and learned machine learning model
JP2021026191A (en) * 2019-08-08 2021-02-22 ブラザー工業株式会社 Learned machine learning model, image data generation apparatus, and method
CN113095421A (en) * 2021-04-20 2021-07-09 北京百度网讯科技有限公司 Method for generating font database, and training method and device of neural network model
JP2022058691A (en) * 2021-04-30 2022-04-12 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Method for training adversarial network model, method for establishing character library, apparatus therefor, electronic device, storage medium, and program

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62119691A (en) * 1985-11-20 1987-05-30 Fujitsu Ltd Character clean copy device
JPS6442689A (en) * 1987-08-10 1989-02-14 Nippon Telegraph & Telephone Media converter
JPH03135598A (en) * 1989-10-20 1991-06-10 Matsushita Electric Ind Co Ltd Character font output device
JPH05265429A (en) * 1992-03-19 1993-10-15 Fujitsu Ltd Character font generating process system
JPH0721158A (en) * 1993-06-22 1995-01-24 Sony Corp Word processor system
JPH0997253A (en) * 1995-09-29 1997-04-08 Matsushita Electric Ind Co Ltd Handwritten input device
JPH1166047A (en) * 1997-08-14 1999-03-09 Casio Comput Co Ltd Character output device and storage medium
JP2003058142A (en) * 2001-06-04 2003-02-28 Keio Gijuku Handwriting-like character font generation system, recording medium, and program
JP2009069657A (en) * 2007-09-14 2009-04-02 Toshiba Corp Image processing apparatus and image processing method
JP4886098B1 (en) * 2011-07-29 2012-02-29 義一 中村 Portable information terminal device
US20160364607A1 (en) * 2015-06-10 2016-12-15 Lenovo (Singapore) Pte, Ltd. Reduced document stroke storage

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62119691A (en) * 1985-11-20 1987-05-30 Fujitsu Ltd Character clean copy device
JPS6442689A (en) * 1987-08-10 1989-02-14 Nippon Telegraph & Telephone Media converter
JPH03135598A (en) * 1989-10-20 1991-06-10 Matsushita Electric Ind Co Ltd Character font output device
JPH05265429A (en) * 1992-03-19 1993-10-15 Fujitsu Ltd Character font generating process system
JPH0721158A (en) * 1993-06-22 1995-01-24 Sony Corp Word processor system
JPH0997253A (en) * 1995-09-29 1997-04-08 Matsushita Electric Ind Co Ltd Handwritten input device
JPH1166047A (en) * 1997-08-14 1999-03-09 Casio Comput Co Ltd Character output device and storage medium
JP2003058142A (en) * 2001-06-04 2003-02-28 Keio Gijuku Handwriting-like character font generation system, recording medium, and program
JP2009069657A (en) * 2007-09-14 2009-04-02 Toshiba Corp Image processing apparatus and image processing method
JP4886098B1 (en) * 2011-07-29 2012-02-29 義一 中村 Portable information terminal device
US20160364607A1 (en) * 2015-06-10 2016-12-15 Lenovo (Singapore) Pte, Ltd. Reduced document stroke storage

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021026729A (en) * 2019-08-08 2021-02-22 ブラザー工業株式会社 Image processing apparatus and learned machine learning model
JP2021026191A (en) * 2019-08-08 2021-02-22 ブラザー工業株式会社 Learned machine learning model, image data generation apparatus, and method
JP7372591B2 (en) 2019-08-08 2023-11-01 ブラザー工業株式会社 Image processing device and trained machine learning model
CN113095421A (en) * 2021-04-20 2021-07-09 北京百度网讯科技有限公司 Method for generating font database, and training method and device of neural network model
US20220180650A1 (en) * 2021-04-20 2022-06-09 Beijing Baidu Netcom Science Technology Co., Ltd. Method of generating font database, and method of training neural network model
EP4040404A3 (en) * 2021-04-20 2022-10-05 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus of generating font database, and method and apparatus of training neural network model
US11816908B2 (en) 2021-04-20 2023-11-14 Beijing Baidu Netcom Science Technology Co., Ltd. Method of generating font database, and method of training neural network model
CN113095421B (en) * 2021-04-20 2024-03-05 北京百度网讯科技有限公司 Method for generating font database, training method and device for neural network model
JP2022058691A (en) * 2021-04-30 2022-04-12 ベイジン バイドゥ ネットコム サイエンス テクノロジー カンパニー リミテッド Method for training adversarial network model, method for establishing character library, apparatus therefor, electronic device, storage medium, and program

Similar Documents

Publication Publication Date Title
US11899927B2 (en) Simulated handwriting image generator
CN114155543B (en) Neural network training method, document image understanding method, device and equipment
US20230234235A1 (en) Method for generating a handwriting vector
JP2019028094A (en) Character generation device, program and character output device
US20130181995A1 (en) Handwritten character font library
US9159147B2 (en) Method and apparatus for personalized handwriting avatar
JP2014522048A (en) Kanji composition method and apparatus, character composition method and apparatus, and font library construction method
JP5437340B2 (en) Viewer device, server device, display control method, electronic comic editing method and program
CN112819686A (en) Image style processing method and device based on artificial intelligence and electronic equipment
KR20150082097A (en) A cloud-based font service system
JP7450868B2 (en) Gesture stroke recognition in touch-based user interface input
US9208381B1 (en) Processing digital images including character recognition using ontological rules
KR100856775B1 (en) System for providing user specific handwriting style based on handwriting data
US11756244B1 (en) System and method for handwriting generation
WO2023284670A1 (en) Construction method and apparatus for graphic code extraction model, identification method and apparatus, and device and medium
CN114861595A (en) Vector line transformation-based individual font generation method
JP7171145B2 (en) Character data generator, method and program
CN114331932A (en) Target image generation method and device, computing equipment and computer storage medium
CN114419174A (en) On-line handwritten text synthesis method, device and storage medium
Chen et al. Data‐driven Handwriting Synthesis in a Conjoined Manner
KR101667910B1 (en) Method and apparatus for generating digital artifical hand-writing data and computer program stored in computer readable medium therefor
WO2023152828A1 (en) Learning model generation method, illustration conversion method, learning model generation device, illustration conversion device, learning model generation program, and illustration conversion program
Balreira Efficient acquisition and synthesis in computerized handwriting
Hsieh et al. An Expressive Chat Room with Personalized Fonts Mimicking Actual Inconsistencies in Human Handwriting
US20240070390A1 (en) Generating suggestions using extended reality

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200526

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210707

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210914

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220201

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20220401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220527

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20220816