JP2020154951A - Font selection device and program - Google Patents
Font selection device and program Download PDFInfo
- Publication number
- JP2020154951A JP2020154951A JP2019054449A JP2019054449A JP2020154951A JP 2020154951 A JP2020154951 A JP 2020154951A JP 2019054449 A JP2019054449 A JP 2019054449A JP 2019054449 A JP2019054449 A JP 2019054449A JP 2020154951 A JP2020154951 A JP 2020154951A
- Authority
- JP
- Japan
- Prior art keywords
- font
- text
- selection device
- information
- layout
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Document Processing Apparatus (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、フォント選定装置及びプログラムに関する。 The present invention relates to a font selection device and a program.
従来、雑誌や書籍等の制作工程において、印刷版面のレイアウト作成は、デザインがシンプルであるか複雑であるかを問わず、一般的に、レイアウト作成ソフトを用いて、レイアウト編集者が手作業で行っている。印刷版面のレイアウト作成は、例えば、毎号ごとに新規で行われるため、レイアウト編集者にとって負担な作業になっている。
この問題を解決するためのものとして、例えば、レイアウトを生成するための編集装置が提案されている(例えば、特許文献1)。特許文献1には、レイアウト対象の素材を自動配置するのか、固定位置に配置するのかの属性情報及びレイアウトを生成するための規則であるデザインルールをもとに、前記レイアウト対象の素材の配置を決定することが開示されている。
Conventionally, in the production process of magazines, books, etc., layout creation of the printing plate surface is generally performed manually by a layout editor using layout creation software regardless of whether the design is simple or complicated. Is going. For example, the layout of the print plate is newly created for each issue, which is a burdensome task for the layout editor.
As a device for solving this problem, for example, an editing device for generating a layout has been proposed (for example, Patent Document 1). In Patent Document 1, the layout target material is arranged based on the attribute information of whether the layout target material is automatically arranged or arranged at a fixed position and the design rule which is a rule for generating the layout. The decision is disclosed.
印刷版面のレイアウト作成では、与えたい印象に合ったフォントを選択したテキストの表示態様も、適切なデザインにするために重要である。また、印刷版面のレイアウトにおいて、テキストを有する箇所は、比較的多く存在する。しかし、特許文献1に記載のものでは、レイアウト編集者がテキストごとにフォントを決定して、テキストに対して設定しなければならず、レイアウト編集者にとって負担になる作業が残ったままであった。 In creating the layout of the printing plate surface, the display mode of the text in which the font suitable for the desired impression is selected is also important for proper design. Further, in the layout of the printing plate surface, there are relatively many places having text. However, in the case described in Patent Document 1, the layout editor has to determine the font for each text and set the font for the text, which leaves a burden on the layout editor.
そこで、本発明は、レイアウト編集者の負担を軽減するためのフォント選定装置及びプログラムを提供することを目的とする。 Therefore, an object of the present invention is to provide a font selection device and a program for reducing the burden on the layout editor.
本発明は、以下のような解決手段により、前記課題を解決する。
第1の発明は、テキストと、配置情報を含む前記テキストに関する書式情報とを、前記テキストのフォントに対応付けながら学習した学習済モデルを記憶する記憶手段と、入力されたテキストと、前記テキストの書式情報とに対応するフォントを、前記学習済モデルを用いて取得するフォント取得手段と、を備えるフォント選定装置である。
第2の発明は、第1の発明のフォント選定装置において、文字情報を含む画像データからテキスト及び取得した前記テキストの書式情報を取得するテキスト書式取得手段を備え、前記フォント取得手段は、前記テキスト書式取得手段により取得した前記テキストと前記書式情報とに対応するフォントを、前記学習済モデルを用いて取得する、フォント選定装置である。
第3の発明は、第2の発明のフォント選定装置において、前記画像データの文字情報を、前記フォント取得手段により取得した前記フォントへ変換するフォント変換手段を備える、フォント選定装置である。
第4の発明は、第1の発明から第3の発明までのいずれかのフォント選定装置において、前記フォント取得手段が取得する前記フォントは、前記テキストに対応したフォント画像である、フォント選定装置である。
第5の発明は、第1の発明から第3の発明までのいずれかのフォント選定装置において、前記フォント取得手段が取得する前記フォントは、前記テキストに対応したコード情報である、フォント選定装置である。
第6の発明は、第1の発明から第5の発明までのいずれかのフォント選定装置において、前記フォント取得手段は、前記テキストに対する前記フォントを、推薦順を示すスコアに対応付けて複数取得する、フォント選定装置である。
第7の発明は、第6の発明のフォント選定装置において、前記フォント取得手段により取得した前記フォントを前記テキストに適用したフォント適用後のテキストを、前記スコアに対応付けて出力するフォント出力手段を備える、フォント選定装置である。
第8の発明は、第1の発明から第7の発明までのいずれかのフォント選定装置において、前記書式情報は、前記配置情報の他、前記テキストの文字サイズ、文字色、背景色のうち少なくとも1つを含む、フォント選定装置である。
第9の発明は、第1の発明から第8の発明までのいずれかのフォント選定装置において、入力されたテキストと、前記テキストの書式情報と、前記テキストのフォントとを取得するテキスト情報取得手段と、前記テキスト情報取得手段により取得した前記テキストと、前記書式情報と、前記フォントとを教師データとして前記学習済モデルを構築する学習手段と、を備えるフォント選定装置である。
第10の発明は、第1の発明から第9の発明までのいずれかのフォント選定装置としてコンピュータを機能させるためのプログラムである。
The present invention solves the above-mentioned problems by the following solutions.
The first invention is a storage means for storing a learned model in which a text and format information related to the text including arrangement information are associated with a font of the text, and the input text and the text. It is a font selection device including a font acquisition means for acquiring a font corresponding to format information by using the trained model.
The second invention includes, in the font selection apparatus of the first invention, a text format acquisition means for acquiring text and format information of the acquired text from image data including character information, and the font acquisition means is the text. This is a font selection device that acquires a font corresponding to the text and the format information acquired by the format acquisition means using the trained model.
A third invention is a font selection device according to the second invention, which includes a font conversion means for converting character information of the image data into the font acquired by the font acquisition means.
A fourth invention is a font selection device in which the font acquired by the font acquisition means is a font image corresponding to the text in any of the font selection devices from the first invention to the third invention. is there.
A fifth invention is a font selection device according to any one of the first to third inventions, wherein the font acquired by the font acquisition means is code information corresponding to the text. is there.
According to a sixth aspect of the present invention, in any of the font selection devices from the first invention to the fifth invention, the font acquisition means acquires a plurality of the fonts for the text in association with a score indicating a recommendation order. , Font selection device.
A seventh invention is a font output means for outputting the text after applying a font obtained by the font acquisition means to the text in the font selection device of the sixth invention in association with the score. It is a font selection device provided.
The eighth invention is in any of the font selection devices from the first invention to the seventh invention, in which the format information includes at least the character size, character color, and background color of the text in addition to the arrangement information. It is a font selection device including one.
A ninth invention is a text information acquisition means for acquiring input text, the text format information, and the font of the text in any of the font selection devices from the first invention to the eighth invention. A font selection device including the text acquired by the text information acquisition means, the format information, and a learning means for constructing the trained model using the font as teacher data.
The tenth invention is a program for operating a computer as any font selection device from the first invention to the ninth invention.
本発明によれば、レイアウト編集者の負担を軽減するためのフォント選定装置及びプログラムを提供することができる。 According to the present invention, it is possible to provide a font selection device and a program for reducing the burden on the layout editor.
以下、本発明を実施するための形態について、図を参照しながら説明する。なお、これは、あくまでも一例であって、本発明の技術的範囲はこれに限られるものではない。
(実施形態)
<フォント選定システム100>
図1は、本実施形態に係るフォント選定システム100の全体概要図及びフォント選定装置1の機能ブロック図である。
Hereinafter, embodiments for carrying out the present invention will be described with reference to the drawings. It should be noted that this is only an example, and the technical scope of the present invention is not limited to this.
(Embodiment)
<
FIG. 1 is an overall schematic diagram of the
図1に示すフォント選定システム100は、フォント選定装置1と、端末4とを備えたシステムである。フォント選定装置1は、フォントの選定対象であるテキストを含む作成中のレイアウトに関する情報(画像データ)を、端末4から受信し、受信したレイアウトに関する情報からテキストと、テキストに関する書式情報とを取得する。そして、フォント選定装置1は、取得したテキストと、テキストに関する書式情報とを入力として、学習済モデルを用いてテキストに対するフォントを取得する。その後、フォント選定装置1は、取得したフォントを、端末4に提示する。
フォント選定装置1と、端末4とは、通信ネットワークNを介して通信可能に接続されている。通信ネットワークNは、例えば、インターネット回線等であり、有線であるか無線であるかを問わない。
The
The font selection device 1 and the terminal 4 are communicably connected via the communication network N. The communication network N is, for example, an Internet line or the like, regardless of whether it is wired or wireless.
<フォント選定装置1>
フォント選定装置1は、フォントを選定するための学習済モデルを用いて、テキストと、テキストに関する書式情報とから、フォントを選定する装置である。
また、フォント選定装置1は、テキストと、テキストに関する書式情報と、フォントとを教師データとして、学習済モデルを構築する装置である。
<Font selection device 1>
The font selection device 1 is a device that selects a font from text and format information related to the text by using a trained model for selecting a font.
Further, the font selection device 1 is a device for constructing a trained model using the text, the format information related to the text, and the font as teacher data.
フォント選定装置1は、例えば、サーバである。フォント選定装置1は、その他、パーソナルコンピュータ(PC)等であってもよい。
図1に示すように、フォント選定装置1は、制御部10と、記憶部20と、通信インタフェース部29とを備える。
制御部10は、フォント選定装置1の全体を制御する中央処理装置(CPU)である。制御部10は、記憶部20に記憶されているオペレーティングシステム(OS)やアプリケーションプログラムを適宜読み出して実行することにより、上述したハードウェアと協働し、各種機能を実行する。
The font selection device 1 is, for example, a server. The font selection device 1 may also be a personal computer (PC) or the like.
As shown in FIG. 1, the font selection device 1 includes a control unit 10, a storage unit 20, and a
The control unit 10 is a central processing unit (CPU) that controls the entire font selection device 1. The control unit 10 appropriately reads and executes the operating system (OS) and the application program stored in the storage unit 20 to cooperate with the above-mentioned hardware and execute various functions.
制御部10は、モデル構築部11と、フォント選定部15とを備える。
モデル構築部11は、フォントを選定するための学習済モデルを構築する。
モデル構築部11は、テキスト情報取得部12(テキスト情報取得手段)と、学習部13(学習手段)とを備える。
The control unit 10 includes a
The
The
テキスト情報取得部12は、例えば、レイアウト作成ソフトウェア等を用いてレイアウトが作成済であり、手作業によってフォントが設定された作成済レイアウトから、テキストと、書式情報と、フォントとを、教師データとして取得する。ここで、作成済レイアウトは、例えば、印刷版面を構成するものである。また、印刷版面としては、雑誌や書籍の表紙等であり、雑誌のページ等であってもよい。そして、印刷版面は、多数のテキストが様々な位置に配置され、写真やイラスト等の画像を含むものであると、より本願発明の効果が発揮できる。
The text
テキストは、作成済レイアウトに含まれる各文字列である。テキストは、例えば、単語であっても、まとまりの文書であってよい。まとまりの文書の場合には、例えば、空白や句点に到達するまでの1つのまとまりを、テキストとしてよい。
書式情報は、テキストに関する情報であり、例えば、テキストのレイアウトである配置位置や、テキストの大きさ、テキストの色等の情報を含む。配置位置は、座標値そのものであってもよい。また、配置位置は、座標値そのものではなく、レイアウト中に予め領域を定義しておき(例えば、左上を座標(0,0)とし、「(0,0)−(30,30):上段」等)、その範囲内に入る領域を指定するようにすることも可能である。テキストの大きさは、例えば、ポイント(pt)により表すことができる。テキストの色は、例えば、「赤」、「黒」といったものでもよいし、CMYK(Cyan−Magenta−Yellow−blacK)値によって表すものであってもよい。
フォントは、明朝、ゴシック等の書体データを表す情報である。フォントは、明朝等の名称であってもよい。また、フォントは、独自に作成した書体の画像であってもよく、その場合には、フォントは、独自の書体の画像を表す識別情報であってもよい。
The text is each string contained in the created layout. The text may be, for example, a word or a cohesive document. In the case of a cohesive document, for example, one cohesive until reaching a blank or a punctuation mark may be a text.
The format information is information about text, and includes, for example, information such as an arrangement position which is a layout of text, a size of text, and a color of text. The arrangement position may be the coordinate value itself. In addition, the arrangement position is not the coordinate value itself, but an area is defined in advance in the layout (for example, the upper left is the coordinate (0,0), and "(0,0)-(30,30): upper row". Etc.), it is also possible to specify an area within that range. The size of the text can be represented by, for example, points (pt). The color of the text may be, for example, "red", "black", or may be represented by a CMYK (Cyan-Magenta-Yellow-blacK) value.
The font is information representing typeface data such as Mincho and Gothic. The font may have a name such as Mincho. Further, the font may be an image of a typeface originally created, and in that case, the font may be identification information representing an image of a unique typeface.
ここで、テキスト情報取得部12は、例えば、レイアウト作成ソフトウェアを用いてレイアウトを生成した場合には、レイアウト作成ソフトウェアが有する各種のデータから、教師データを取得できる。
しかし、紙媒体の雑誌のページ等のように、データ化した情報がないが、学習対象にしたい場合がある。そのような場合には、テキスト情報取得部12は、例えば、図示しないイメージスキャナ等のOCR(Optical character recognition)の機能を用いて、生成したレイアウトの画像からテキストを得ることができる。また、テキスト情報取得部12は、公知の画像処理の技術によって、書式情報を得ることができる。さらに、テキスト情報取得部12は、例えば、事前に学習させておいた図示しないフォント分類器を用いて、テキストのフォントを推定することができる。そして、テキスト情報取得部12は、上述した方法で得た各種の情報を、教師データとすることができる。
なお、テキスト情報取得部12は、学習済モデルを構築するユーザが、テキスト、書式情報、フォントを手作業で設定(入力)し、それらを教師データとして受け付けることで取得してもよい。
Here, the text
However, there are cases where there is no information converted into data, such as pages of paper magazines, but it is desired to be a learning target. In such a case, the text
The text
学習部13は、テキスト情報取得部12により取得した教師データを入力データとして、機械学習を実行し、学習済モデルを生成する。機械学習のアルゴリズムとして、本実施形態では、例えば、再帰型ニューラルネットワーク(RNN)による教師あり学習を行う。ここで、再帰型ニューラルネットワークを用いるのは、テキストを時系列データとしてとらえ、文字の出現順を考慮するためである。そのようにすれば、テキストが意味を有する単語や文書である場合に、単語や文書の並びを含めて学習を行うことができる。そして、学習部13は、生成した学習済モデルを、学習済モデル記憶部22に記憶させる。
The
なお、再帰型ニューラルネットワークによる機械学習は、公知の技術であるため、詳細な説明を省略する。また、機械学習のアルゴリズムとしては、テキストを時系列データとしてとらえなければ、例えば、畳み込みニューラルネットワーク(CNN)等の他のアルゴリズムを用いてもよい。 Since machine learning by a recursive neural network is a known technique, detailed description thereof will be omitted. Further, as the machine learning algorithm, for example, another algorithm such as a convolutional neural network (CNN) may be used as long as the text is not regarded as time series data.
フォント選定部15は、テキストと、書式情報とを入力データとし、モデル構築部11で構築された学習済モデルを用いてフォントを取得する。
フォント選定部15は、テキスト書式取得部16(テキスト書式取得手段)と、フォント取得部17(フォント取得手段)と、レイアウト更新部18(フォント変換手段)とを備える。
The
The
テキスト書式取得部16は、フォント以外のレイアウトを生成した作成中のレイアウトから、テキストと、書式情報とを取得する。例えば、レイアウト作成ソフトウェアを用いてレイアウトを生成している場合には、レイアウト作成ソフトウェアは、テキストやテキストの配置位置、文字サイズ、文字色等の各種のデータを有する。その場合、テキスト書式取得部16は、レイアウト作成ソフトウェアが有する各種のデータから、テキストと、書式情報とを取得してもよい。また、レイアウト編集者が、テキスト、書式情報を手作業で入力することで、テキスト書式取得部16は、それらのデータを取得してもよい。
The text
フォント取得部17は、テキスト書式取得部16が取得したテキストと、書式情報とを、学習済モデルの入力として、学習済モデルに適用し、学習済モデルの出力としてフォントを取得する。
レイアウト更新部18はフォント取得部17で取得したフォントを用いて、レイアウトのテキストを変換する。
なお、各機能部の詳細は、後述する。
The
The
The details of each functional unit will be described later.
記憶部20は、制御部10が各種の処理を実行するために必要なプログラム、データ等を記憶するためのハードディスク、半導体メモリ素子等の記憶領域である。
記憶部20は、プログラム記憶部21と、学習済モデル記憶部22(記憶手段)とを備える。
プログラム記憶部21は、各種のプログラムを記憶する記憶領域である。プログラム記憶部21は、フォント選定プログラム21aを記憶している。フォント選定プログラム21aは、フォント選定装置1の制御部10が実行する各種機能を行うためのプログラムである。なお、記憶部20は、フォント選定プログラム21aの他、自動でレイアウトを生成する、例えば、レイアウト作成ソフトウェア等のプログラム等を含むものであってもよい。
The storage unit 20 is a storage area for a hard disk, a semiconductor memory element, or the like for storing programs, data, and the like necessary for the control unit 10 to execute various processes.
The storage unit 20 includes a
The
学習済モデル記憶部22は、教師データを用いて構築する学習済モデルを記憶するための記憶領域である。
通信インタフェース部29は、通信ネットワークNを介して、例えば、端末4との間の通信を行うためのインタフェースである。
The trained
The
<端末4>
図1に示す端末4は、レイアウト編集者等が使用する、例えば、PCである。端末4は、その他、タブレットに代表されるコンピュータの機能を併せ持った携帯型の端末でもよい。
端末4は、例えば、フォント選定装置1に対して作成中のレイアウトを送信し、フォント選定装置1から、フォントが変更されたレイアウトを受信する。
端末4は、図示しないが、制御部と、記憶部と、入力部と、表示部と、通信インタフェース部等とを備える。
<Terminal 4>
The terminal 4 shown in FIG. 1 is, for example, a PC used by a layout editor or the like. The terminal 4 may also be a portable terminal having a computer function represented by a tablet.
The terminal 4 transmits, for example, the layout being created to the font selection device 1, and receives the layout in which the font has been changed from the font selection device 1.
Although not shown, the terminal 4 includes a control unit, a storage unit, an input unit, a display unit, a communication interface unit, and the like.
ここで、コンピュータとは、制御部、記憶装置等を備えた情報処理装置をいい、フォント選定装置1及び端末4は、各々制御部、記憶部等を備えた情報処理装置であり、コンピュータの概念に含まれる。 Here, the computer refers to an information processing device provided with a control unit, a storage device, etc., and the font selection device 1 and the terminal 4 are information processing devices provided with a control unit, a storage unit, etc., respectively, and are a concept of a computer. include.
<フォント選定システム100の処理>
次に、フォント選定システム100における処理について説明する。
まず、学習済モデルを構築する処理について、図2に基づき説明する。
図2は、本実施形態に係るフォント選定装置1のモデル構築処理を示すフローチャートである。
<Processing of
Next, the processing in the
First, the process of constructing the trained model will be described with reference to FIG.
FIG. 2 is a flowchart showing a model construction process of the font selection device 1 according to the present embodiment.
図2のステップS(以下、単に「S」という。)11において、例えば、端末4の制御部が、作成済レイアウトを、フォント選定装置1に対して送信することで、フォント選定装置1の制御部10(モデル構築部11)は、作成済レイアウトを受け付ける。
S12において、制御部10(テキスト情報取得部12)は、受け付けた作成済レイアウトから、テキストと、書式情報と、フォントとを取得し、これらを教師データとする。
S13において、制御部10(学習部13)は、機械学習として、再帰型ニューラルネットワークによる教師あり学習を行う。
S14において、制御部10(学習部13)は、機械学習により構築した学習済モデルを、学習済モデル記憶部22に記憶させる。その後、制御部10は、本処理を終了する。
In
In S12, the control unit 10 (text information acquisition unit 12) acquires text, format information, and a font from the received created layout, and uses these as teacher data.
In S13, the control unit 10 (learning unit 13) performs supervised learning by a recursive neural network as machine learning.
In S14, the control unit 10 (learning unit 13) stores the learned model constructed by machine learning in the learned
なお、上述したモデル構築処理では、多数の作成済レイアウトから取得した教師データを入力データとして、機械学習することが望ましい。
また、モデル構築処理において、例えば、出版社や、雑誌のカテゴリごとに、学習済モデルを構築することが望ましい。そのようにすることで、出版社や、雑誌ごとに一貫したデザインのレイアウトを作ることができるようになる。
さらに、学習済みモデルは、文字サイズや配置ごとにそれぞれ構築するようにしてもよい。そのようにすることで、用途に合わせて、文字サイズや配置に特化した学習済モデルを構築できる。
In the model construction process described above, it is desirable to perform machine learning using teacher data acquired from a large number of created layouts as input data.
Further, in the model building process, it is desirable to build a trained model for each category of publishers and magazines, for example. By doing so, it will be possible to create a consistent design layout for each publisher and magazine.
Further, the trained model may be constructed for each character size and arrangement. By doing so, it is possible to build a trained model specialized in character size and arrangement according to the application.
次に、構築した学習済モデルを用いてフォントを選定する処理について、図3に基づき説明する。
図3は、本実施形態に係るフォント選定装置1のフォント取得処理を示すフローチャートである。
例えば、フォント取得処理に係るプログラムがレイアウト作成ソフトウェアにプラグインされている場合、端末4において、レイアウト作成ソフトウェアを用いて作成中のレイアウトが表示されている状態で、レイアウト編集者等がフォント変換の指示を行う。そうすることで、端末4から作成中のレイアウト(文字情報を含む画像データ)が、フォント選定装置1に送信され、本処理を開始する。
Next, the process of selecting a font using the constructed trained model will be described with reference to FIG.
FIG. 3 is a flowchart showing a font acquisition process of the font selection device 1 according to the present embodiment.
For example, when a program related to font acquisition processing is plugged into layout creation software, a layout editor or the like performs font conversion while the layout being created using the layout creation software is displayed on the terminal 4. Give instructions. By doing so, the layout (image data including character information) being created from the terminal 4 is transmitted to the font selection device 1, and this process is started.
図3のS21において、制御部10(テキスト書式取得部16)は、作成中のレイアウトからテキストと、書式情報とを取得する。
S22において、制御部10(フォント取得部17)は、学習済モデルに対してS21で取得したテキストと、書式情報とを適用して、フォントを取得する。
In S21 of FIG. 3, the control unit 10 (text format acquisition unit 16) acquires text and format information from the layout being created.
In S22, the control unit 10 (font acquisition unit 17) applies the text acquired in S21 to the trained model and the format information to acquire the font.
ここで、テキストと、書式情報とを、学習済モデルへの入力情報とした場合に、制御部10のフォント出力手段は、学習済モデルから複数種類のフォントを出力し、それらのフォントに順序付けをしてもよい。具体的には、制御部10のフォント出力手段は、学習済モデルから出力されるフォントを、適用度合を表すスコアを付して、スコアと共に端末4に出力してもよい。そして、端末4では、スコアと共にフォントを表示し、レイアウト編集者等がフォントを選択した場合に、選択されたフォントを、フォント選定装置1に送信してもよい。
S23において、制御部10(レイアウト更新部18)は、取得したフォントを適用したレイアウトに更新する。つまり、制御部10は、作成中のレイアウトから取得したテキストを、S22で取得したフォントへ変換したものにする。なお、更新したレイアウトは、例えば、端末4に送信されることで、端末4は、フォントが変更されたレイアウトを表示する。その後、制御部10は、本処理を終了する。
Here, when the text and the format information are input information to the trained model, the font output means of the control unit 10 outputs a plurality of types of fonts from the trained model and orders the fonts. You may. Specifically, the font output means of the control unit 10 may output the font output from the trained model to the terminal 4 together with the score with a score indicating the degree of application. Then, the terminal 4 may display the font together with the score, and when the layout editor or the like selects the font, the selected font may be transmitted to the font selection device 1.
In S23, the control unit 10 (layout update unit 18) updates the layout to which the acquired font is applied. That is, the control unit 10 converts the text acquired from the layout being created into the font acquired in S22. The updated layout is transmitted to, for example, the terminal 4, and the terminal 4 displays the layout in which the font is changed. After that, the control unit 10 ends this process.
ここで、フォント選定について具体例に基づき説明する。
図4は、本実施形態に係るフォント取得処理を具体例と共に説明するための図である。
まず、フォント選定対象の作成中レイアウト51を、フォント選定装置1に入力すると、制御部10は、作成中レイアウト51から、入力データ61を得る(図3のS21)。入力データ61は、テキストである文字列「おはよう」を含む。また、入力データ61は、書式情報である配置位置が「上段中央」と、文字サイズが「12pt」と、文字色が「黒」とを含む。ここで、書式情報として、他に、背景色等を含んでもよい。
次に、制御部10は、入力データを学習済モデル記憶部22に記憶された学習済モデルに適用することで、出力データ62を得る(図3のS22)。出力データ62は、例えば、フォントの名称である「HG創英角ポップ体」を含む。
そして、制御部10は、出力データ62のフォントを、テキストに反映させたレイアウト71を生成する(図3のS23)。レイアウト71は、作成中レイアウト51と比較して、「おはよう」のテキストのフォントが異なるものになる。
Here, font selection will be described based on a specific example.
FIG. 4 is a diagram for explaining the font acquisition process according to the present embodiment together with a specific example.
First, when the creating
Next, the control unit 10 obtains the
Then, the control unit 10 generates a
次に、機械学習のアルゴリズムとして、再帰型ニューラルネットワークを用いて構築した学習モデルであることによって生成しうるフォントの例を示す。
図5は、本実施形態に係るフォント取得処理による処理例を示す図である。
図5に示す作成中レイアウト53は、テキストが「おすすめならさんぽ」である。このテキストは、単語「おすすめ」と、「なら」と、「さんぽ」とが結合されたものである。
レイアウト73は、このテキストを含む入力データを、学習済モデル記憶部22に記憶された学習済モデルに適用することで得たフォントを、テキストに反映させたものである。ここで、学習済モデルは、上述したように、再帰型ニューラルネットワークを用いて構築したものである。そのため、テキストを順番に読み込んでいき、例えば、意味を有する単語を、異なるフォントにすることができる。この例の場合、学習済モデルが、観光ガイドブックの印刷版面について学習したものであり、そのため、「なら」という地名が強調されたフォントが選定されている。
Next, as an algorithm for machine learning, an example of a font that can be generated by a learning model constructed using a recursive neural network is shown.
FIG. 5 is a diagram showing a processing example by the font acquisition processing according to the present embodiment.
In the
The
次に、雑誌の表紙を例にしたものを示す。
図6は、本実施形態に係るフォント取得処理による処理例を示す図である。
図6に示す作成中レイアウト55は、雑誌の表紙に関するものである。そして、作成中レイアウト55のうち、「奈良」を示すテキスト55aについて、学習モデルを利用してフォントを変換したものである。
レイアウト75は、テキスト55aを含む入力データを、学習済モデル記憶部22に記憶された学習済モデルに適用することで得たフォントを、テキスト55aに反映させて得たテキスト75aを含む。
このように、フォント選定装置1は、作成中レイアウト55に含むテキスト55aを、フォントを変換後のテキスト75aを含むレイアウト75にして出力する。よって、レイアウトを作成中に、適したフォントのレイアウトを生成することができ、利便性が向上する。
Next, an example of the cover of a magazine is shown.
FIG. 6 is a diagram showing a processing example by the font acquisition processing according to the present embodiment.
The
The
As described above, the font selection device 1 outputs the
このように、本実施形態のフォント選定装置1によれば、以下のような効果がある。
(1)テキストと、書式情報と、フォントを含む教師データを用いて学習した学習済モデルを用いて、テキストと、書式情報とを入力データとし、フォントを取得する。よって、例えば、作成中のレイアウトに用いた場合に、レイアウトに適したフォントを取得するので、レイアウト編集者の負担を軽減できる。
(2)作成中のレイアウトからテキストと、書式情報とを取得するので、特に、レイアウト作成ソフトウェアを利用して行ってる場合には、学習済モデルの入力データとして用いる各種のデータを、簡単に取得できる。
(3)取得したフォントを、作成中のレイアウトの該当のテキストに適用してフォントが変換されたレイアウトに、レイアウトを更新するので、フォントを含めてレイアウトの作成に関する利便性が向上する。
As described above, the font selection device 1 of the present embodiment has the following effects.
(1) Using the trained model learned using the text, the format information, and the teacher data including the font, the text and the format information are used as input data, and the font is acquired. Therefore, for example, when it is used for the layout being created, the font suitable for the layout is acquired, so that the burden on the layout editor can be reduced.
(2) Since the text and format information are acquired from the layout being created, various data used as input data of the trained model can be easily acquired, especially when using layout creation software. it can.
(3) Since the acquired font is applied to the corresponding text of the layout being created and the layout is updated to the layout in which the font is converted, the convenience for creating the layout including the font is improved.
(4)学習済モデルの生成時に、教師データとしてフォント画像を用いた場合には、フォント取得処理によって取得するフォントがフォント画像になる。そのため、一般的なフォントではなく、例えば、飾り文字のような書体のフォントであっても用いることができる。
(5)学習済モデルの生成時に、教師データとしてフォントを示すコード情報を用いた場合には、取得するフォントが、フォントを示すコード情報になる。そのため、学習済モデルでは、コード情報を有すればよく、フォント選定装置1と端末4との間の通信に係るデータ量を抑えることができる。
(4) When a font image is used as teacher data when the trained model is generated, the font acquired by the font acquisition process becomes the font image. Therefore, instead of a general font, a font of a typeface such as a decorative character can be used.
(5) When the code information indicating the font is used as the teacher data when the trained model is generated, the acquired font becomes the code information indicating the font. Therefore, in the trained model, it is sufficient to have the code information, and the amount of data related to the communication between the font selection device 1 and the terminal 4 can be suppressed.
(6)フォントを、推薦順を示すスコアに対応付けて複数取得して、フォントをテキストに適用したものを出力するので、複数のフォントからレイアウト編集者が選ぶことができる。また、選ぶ際に、スコアを参考にすることができる。
(7)書式情報は、配置情報の他に、テキストの文字サイズや、文字色、背景色のうち少なくとも1つを含むので、テキストのフォントを、よりレイアウトにふさわしいものにできる。
(8)例えば、完成されたレイアウトに基づいて入力されたテキストと、書式情報と、フォントとを取得し、取得した各データを教師データとして学習済モデルを構築することも可能である。よって、構築した学習済モデルを、実際のレイアウト編集者等の意向が反映されたものにでき、完成度の高いものにできる。
(6) Since a plurality of fonts are acquired in association with the score indicating the recommended order and the font applied to the text is output, the layout editor can select from the plurality of fonts. In addition, the score can be used as a reference when making a selection.
(7) Since the format information includes at least one of the character size, character color, and background color of the text in addition to the arrangement information, the font of the text can be made more suitable for the layout.
(8) For example, it is also possible to acquire the text input based on the completed layout, the format information, and the font, and construct a trained model using each acquired data as teacher data. Therefore, the constructed trained model can be made to reflect the intentions of the actual layout editor and the like, and can be made highly complete.
以上、本発明の実施形態について説明したが、本発明は上述した実施形態に限定されるものではない。また、実施形態に記載した効果は、本発明から生じる最も好適な効果を列挙したに過ぎず、本発明による効果は、実施形態に記載したものに限定されない。なお、上述した実施形態及び後述する変形形態は、適宜組み合わせて用いることもできるが、詳細な説明は省略する。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments. Moreover, the effects described in the embodiments are merely a list of the most preferable effects arising from the present invention, and the effects according to the present invention are not limited to those described in the embodiments. The above-described embodiment and the modified form described later can be used in combination as appropriate, but detailed description thereof will be omitted.
(変形形態)
(1)本実施形態では、端末4からフォント選定装置1に対してアクセスして処理を行うものを例に説明したが、これに限定されない。フォント選定装置は、入力部と表示部とを備えたスタンドアロンのパーソナルコンピュータ(PC)等であってもよい。
(Transformed form)
(1) In the present embodiment, an example of accessing the font selection device 1 from the terminal 4 and performing processing has been described, but the present invention is not limited to this. The font selection device may be a stand-alone personal computer (PC) or the like having an input unit and a display unit.
(2)本実施形態では、学習済モデルの構築と、フォントの選定とを、1台のフォント選定装置が行うものを例に説明したが、これに限定されない。学習済モデルの構築と、フォントの選定とは、別々の装置であってもよい。その場合、フォントの選定を行う装置に、学習済モデルを構築する装置が生成した学習済モデルを移植したり、フォントの選定を行う装置と、学習済モデルを構築して、学習済モデルを有する装置とフォントを選定する装置とを、通信可能に接続したりすればよい。
また、本実施形態では、フォント選定プログラムを、学習済モデルを構築する処理と、フォントを選定する処理との両方を行うものとして説明したが、これに限定されない。学習済モデルを構築するプログラムと、フォントを選定するプログラムとは、別のプログラムであってもよい。
(2) In the present embodiment, the construction of the trained model and the selection of fonts have been described by taking as an example a font selection device, but the present invention is not limited to this. The construction of the trained model and the selection of the font may be separate devices. In that case, the trained model generated by the device for constructing the trained model is transplanted to the device for selecting the font, or the device for selecting the font and the trained model are constructed to have the trained model. The device and the device for selecting the font may be connected so as to be able to communicate with each other.
Further, in the present embodiment, the font selection program has been described as performing both the process of constructing the trained model and the process of selecting the font, but the present invention is not limited to this. The program for constructing the trained model and the program for selecting the font may be different programs.
(3)本実施形態では、フォント取得処理を、レイアウト作成ソフトウェアのプラグインである場合の処理として説明したが、これに限定されない。レイアウト作成ソフトウェアと別に行うものであってももちろんよい。
(4)本実施形態では、書式情報は、配置情報の他、テキストの文字サイズ、文字色、背景色のうち少なくとも1つを含んでもよいものであることを説明したが、これに限定されない。レイアウトの全体の大きさに占めるテキスト領域の割合であってもよい。
(3) In the present embodiment, the font acquisition process has been described as a process in the case of a plug-in of layout creation software, but the present invention is not limited to this. Of course, it may be performed separately from the layout creation software.
(4) In the present embodiment, it has been described that the format information may include at least one of the character size, the character color, and the background color of the text in addition to the arrangement information, but the format information is not limited to this. It may be the ratio of the text area to the total size of the layout.
1 フォント選定装置
4 端末
10 制御部
11 モデル構築部
12 テキスト情報取得部
13 学習部
15 フォント選定部
16 テキスト書式取得部
17 フォント取得部
18 レイアウト更新部
20 記憶部
21a フォント選定プログラム
22 学習済モデル記憶部
100 フォント選定システム
1 Font selection device 4 Terminal 10
Claims (10)
入力されたテキストと、前記テキストの書式情報とに対応するフォントを、前記学習済モデルを用いて取得するフォント取得手段と、
を備えるフォント選定装置。 A storage means for storing a learned model in which a text and format information related to the text including arrangement information are associated with a font of the text and learned.
A font acquisition means for acquiring a font corresponding to the input text and the format information of the text by using the trained model, and
Font selection device equipped with.
文字情報を含む画像データからテキスト及び取得した前記テキストの書式情報を取得するテキスト書式取得手段を備え、
前記フォント取得手段は、前記テキスト書式取得手段により取得した前記テキストと前記書式情報とに対応するフォントを、前記学習済モデルを用いて取得する、フォント選定装置。 In the font selection device according to claim 1,
A text format acquisition means for acquiring text and acquired format information of the text from image data including character information is provided.
The font acquisition means is a font selection device that acquires fonts corresponding to the text and the format information acquired by the text format acquisition means using the trained model.
前記画像データの文字情報を、前記フォント取得手段により取得した前記フォントへ変換するフォント変換手段を備える、フォント選定装置。 In the font selection device according to claim 2.
A font selection device including a font conversion means for converting character information of the image data into the font acquired by the font acquisition means.
前記フォント取得手段が取得する前記フォントは、前記テキストに対応したフォント画像である、フォント選定装置。 In the font selection device according to any one of claims 1 to 3.
The font selected by the font acquisition means is a font image corresponding to the text.
前記フォント取得手段が取得する前記フォントは、前記テキストに対応したコード情報である、フォント選定装置。 In the font selection device according to any one of claims 1 to 3.
The font acquired by the font acquisition means is a font selection device which is code information corresponding to the text.
前記フォント取得手段は、前記テキストに対する前記フォントを、推薦順を示すスコアに対応付けて複数取得する、フォント選定装置。 In the font selection device according to any one of claims 1 to 5.
The font acquisition means is a font selection device that acquires a plurality of the fonts for the text in association with scores indicating a recommendation order.
前記フォント取得手段により取得した前記フォントを前記テキストに適用したフォント適用後のテキストを、前記スコアに対応付けて出力するフォント出力手段を備える、フォント選定装置。 In the font selection device according to claim 6,
A font selection device comprising a font output means for outputting a text after applying a font obtained by applying the font acquired by the font acquisition means to the text in association with the score.
前記書式情報は、前記配置情報の他、前記テキストの文字サイズ、文字色、背景色のうち少なくとも1つを含む、フォント選定装置。 In the font selection device according to any one of claims 1 to 7.
The format information is a font selection device that includes at least one of a character size, a character color, and a background color of the text in addition to the arrangement information.
入力されたテキストと、前記テキストの書式情報と、前記テキストのフォントとを取得するテキスト情報取得手段と、
前記テキスト情報取得手段により取得した前記テキストと、前記書式情報と、前記フォントとを教師データとして前記学習済モデルを構築する学習手段と、
を備えるフォント選定装置。 In the font selection device according to any one of claims 1 to 8.
A text information acquisition means for acquiring the input text, the format information of the text, and the font of the text,
A learning means for constructing the trained model using the text acquired by the text information acquisition means, the format information, and the font as teacher data.
Font selection device equipped with.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019054449A JP7287038B2 (en) | 2019-03-22 | 2019-03-22 | Font selection device and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2019054449A JP7287038B2 (en) | 2019-03-22 | 2019-03-22 | Font selection device and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2020154951A true JP2020154951A (en) | 2020-09-24 |
| JP7287038B2 JP7287038B2 (en) | 2023-06-06 |
Family
ID=72559308
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2019054449A Active JP7287038B2 (en) | 2019-03-22 | 2019-03-22 | Font selection device and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7287038B2 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022069122A (en) * | 2020-10-23 | 2022-05-11 | 大日本印刷株式会社 | Typeface setting device, typeface setting method and computer program |
| WO2022113907A1 (en) * | 2020-11-25 | 2022-06-02 | ヤマハ株式会社 | Music element generation assistance device, music element learning device, music element generation assistance method, music element learning method, music element generation assistance program, and music element learning program |
| CN115062584A (en) * | 2022-06-28 | 2022-09-16 | 杭州数梦工场科技有限公司 | Document style generation method and device and electronic equipment |
| KR20230082926A (en) * | 2021-12-02 | 2023-06-09 | 숭실대학교산학협력단 | Font generating method and apparatus thereof |
| JPWO2023187889A1 (en) * | 2022-03-28 | 2023-10-05 | ||
| JP7383083B1 (en) | 2022-06-20 | 2023-11-17 | 楽天グループ株式会社 | Information processing device, information processing method, and information processing program |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06203018A (en) * | 1992-12-29 | 1994-07-22 | Casio Comput Co Ltd | Document processor |
| JP2007172573A (en) * | 2005-09-28 | 2007-07-05 | Seiko Epson Corp | Document creation system, document creation method, program, and storage medium |
| US20110289407A1 (en) * | 2010-05-18 | 2011-11-24 | Naik Devang K | Font recommendation engine |
| JP2018200645A (en) * | 2017-05-29 | 2018-12-20 | 京セラドキュメントソリューションズ株式会社 | Document data processing apparatus, document data processing program, and document data processing method |
| WO2018235326A1 (en) * | 2017-06-23 | 2018-12-27 | 大日本印刷株式会社 | Computer program, font switching device and font switching method |
-
2019
- 2019-03-22 JP JP2019054449A patent/JP7287038B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06203018A (en) * | 1992-12-29 | 1994-07-22 | Casio Comput Co Ltd | Document processor |
| JP2007172573A (en) * | 2005-09-28 | 2007-07-05 | Seiko Epson Corp | Document creation system, document creation method, program, and storage medium |
| US20110289407A1 (en) * | 2010-05-18 | 2011-11-24 | Naik Devang K | Font recommendation engine |
| JP2018200645A (en) * | 2017-05-29 | 2018-12-20 | 京セラドキュメントソリューションズ株式会社 | Document data processing apparatus, document data processing program, and document data processing method |
| WO2018235326A1 (en) * | 2017-06-23 | 2018-12-27 | 大日本印刷株式会社 | Computer program, font switching device and font switching method |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2022069122A (en) * | 2020-10-23 | 2022-05-11 | 大日本印刷株式会社 | Typeface setting device, typeface setting method and computer program |
| JP7528715B2 (en) | 2020-10-23 | 2024-08-06 | 大日本印刷株式会社 | Font setting device, font setting method, and computer program |
| WO2022113907A1 (en) * | 2020-11-25 | 2022-06-02 | ヤマハ株式会社 | Music element generation assistance device, music element learning device, music element generation assistance method, music element learning method, music element generation assistance program, and music element learning program |
| KR20230082926A (en) * | 2021-12-02 | 2023-06-09 | 숭실대학교산학협력단 | Font generating method and apparatus thereof |
| KR102623293B1 (en) | 2021-12-02 | 2024-01-10 | 숭실대학교산학협력단 | Font generating method and apparatus thereof |
| JPWO2023187889A1 (en) * | 2022-03-28 | 2023-10-05 | ||
| JP7750392B2 (en) | 2022-03-28 | 2025-10-07 | 日本電気株式会社 | Information processing device, layout support method, and layout support program |
| JP7383083B1 (en) | 2022-06-20 | 2023-11-17 | 楽天グループ株式会社 | Information processing device, information processing method, and information processing program |
| JP2024000072A (en) * | 2022-06-20 | 2024-01-05 | 楽天グループ株式会社 | Information processing apparatus, information processing method, and information processing program |
| CN115062584A (en) * | 2022-06-28 | 2022-09-16 | 杭州数梦工场科技有限公司 | Document style generation method and device and electronic equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| JP7287038B2 (en) | 2023-06-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7287038B2 (en) | Font selection device and program | |
| JP7371297B1 (en) | Writing support system, information processing method and program | |
| JPS6165290A (en) | Vector character font creation device | |
| AU2021269326B2 (en) | Device and method for automatically creating cartoon image based on input sentence | |
| US11854132B2 (en) | Device and method for automatically creating cartoon image based on input sentence | |
| US20200104586A1 (en) | Method and system for manual editing of character recognition results | |
| JP2013161463A (en) | Information extraction device | |
| JP2007316929A (en) | Information processing apparatus, information processing method, and program | |
| CN105447899B (en) | The generation method and device of copybook | |
| JP4093241B2 (en) | Document creation support apparatus, document creation support program and storage medium, and document creation support method | |
| US10970483B2 (en) | Information processing apparatus and non-transitory computer readable medium storing program | |
| JP7598576B2 (en) | Document creation support device, document creation support program, and document creation support method | |
| JP2018207408A (en) | Image reading apparatus and image forming apparatus | |
| JPH08137842A (en) | Language information processing system and method | |
| KR20220032429A (en) | Method for designing e-introduction for branding based on artificial intelligence | |
| JP2017194612A (en) | Calligraphy learning support device, calligraphy learning support method, and calligraphy learning program | |
| JP6988101B2 (en) | Information processing equipment, programs and information processing methods | |
| JP2024133919A (en) | Information processing device, information processing method, and program | |
| JP2023047180A (en) | Information processing device and information processing program | |
| JP6574278B2 (en) | How to create learning materials for Kuzushi characters | |
| JP4631587B2 (en) | Document creation support apparatus, document creation support program and storage medium, and document creation support method | |
| Cleveland | Bound to technology—the telltale signs in print | |
| KR20220032428A (en) | Method for providing e-introduction share service for pr based on untact online | |
| Parhami | Computers and challenges of writing in Persian: Explorations at the intersection of culture and technology | |
| CN121505646A (en) | Answer sheet generation methods, devices, electronic equipment, storage media and products |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220128 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20221216 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20221220 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230123 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20230425 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230508 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7287038 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |