Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7528715B2 - Font setting device, font setting method, and computer program - Google Patents
[go: Go Back, main page]

JP7528715B2 - Font setting device, font setting method, and computer program - Google Patents

Font setting device, font setting method, and computer program Download PDF

Info

Publication number
JP7528715B2
JP7528715B2 JP2020178112A JP2020178112A JP7528715B2 JP 7528715 B2 JP7528715 B2 JP 7528715B2 JP 2020178112 A JP2020178112 A JP 2020178112A JP 2020178112 A JP2020178112 A JP 2020178112A JP 7528715 B2 JP7528715 B2 JP 7528715B2
Authority
JP
Japan
Prior art keywords
image
text
typeface
similar
superimposed
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.)
Active
Application number
JP2020178112A
Other languages
Japanese (ja)
Other versions
JP2022069122A (en
Inventor
隆寛 田中
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 JP2020178112A priority Critical patent/JP7528715B2/en
Publication of JP2022069122A publication Critical patent/JP2022069122A/en
Application granted granted Critical
Publication of JP7528715B2 publication Critical patent/JP7528715B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)

Description

本発明は、書体設定装置、書体設定方法及びコンピュータプログラムに関する。 The present invention relates to a typeface setting device, a typeface setting method, and a computer program.

従来、テキストを画像に重畳させる技術が知られており、例えばキャッチコピー付きの広告画像、プレゼンテーションソフトで用いるテキスト付き画像として広く利用されている(例えば、特許文献1を参照)。 Technology for superimposing text onto images has been known in the past and is widely used, for example, as advertising images with catchy slogans and images with text used in presentation software (see, for example, Patent Document 1).

特開2006-172118号公報JP 2006-172118 A

テキストの書体は数多くの種類が存在するため、テキストの書体と画像とが不調和となり、ユーザに違和感を与える場合がある。しかしながら、特許文献1に記載された技術は、画像を損なわない位置にテキストを重畳するための技術であり、違和感のない書体を重畳する技術でない。 There are many different types of text fonts, and the text font and the image may not match, causing the user to feel uncomfortable. However, the technology described in Patent Document 1 is a technology for overlaying text in a position that does not damage the image, and is not a technology for overlaying a font that does not look unnatural.

本発明は、斯かる事情に鑑みてなされたものであり、テキストを画像に重畳させる場合にテキストの書体と画像との不調和を抑えるための書体設定装置、書体設定方法及びコンピュータプログラムを提供することを目的とする。 The present invention has been made in consideration of the above circumstances, and aims to provide a font setting device, a font setting method, and a computer program for suppressing incongruity between the font of text and an image when the text is superimposed on the image.

本発明の一形態に係る書体設定装置は、素材画像と、該素材画像に重畳される素材テキストと、該素材テキストが前記素材画像に重畳される領域の情報とを取得する素材取得部と、テキストが重畳された複数の教師画像から、前記素材画像又は前記素材画像と前記素材テキストとの組み合わせに類似する類似画像を選定する画像選定部と、選定した類似画像に重畳されたテキストの書体に基づいて前記素材テキストに適用すべき書体を特定する書体特定部と、特定した書体により前記素材テキストを前記素材画像の前記領域に重畳させる重畳部とを備える。 A typeface setting device according to one embodiment of the present invention includes a material acquisition unit that acquires a material image, material text to be superimposed on the material image, and information on an area in which the material text is superimposed on the material image, an image selection unit that selects a similar image that is similar to the material image or a combination of the material image and the material text from a plurality of teacher images on which text is superimposed, a typeface identification unit that identifies a typeface to be applied to the material text based on the typeface of the text superimposed on the selected similar image, and a superimposition unit that superimposes the material text on the area of the material image using the identified typeface.

本願によれば、テキストを画像に重畳させる場合にテキストの書体と画像との不調和を抑えてユーザの違和感を低減することができる。 According to the present application, when text is superimposed on an image, it is possible to reduce the sense of discomfort felt by the user by suppressing the incongruity between the typeface of the text and the image.

実施の形態における書体設定方法の概略を説明する説明図である。FIG. 2 is an explanatory diagram outlining a typeface setting method according to an embodiment. 情報処理装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of an information processing device. フォントテーブルの一例を示す概念図である。FIG. 13 is a conceptual diagram illustrating an example of a font table. 素材画像及び素材テキストの一例を示す模式図である。1A and 1B are schematic diagrams showing examples of material images and material texts. 教師画像の例を示す模式図である。FIG. 2 is a schematic diagram showing an example of a teacher image. オブジェクトの検出に用いられる学習モデルの構成を示す模式図である。FIG. 2 is a schematic diagram showing a configuration of a learning model used for object detection. オブジェクトの検出例を示す模式図である。FIG. 13 is a schematic diagram showing an example of object detection. 相違度の算出結果を示す図である。FIG. 13 is a diagram showing a calculation result of the degree of difference. テキストの認識方法を説明する説明図である。FIG. 1 is an explanatory diagram illustrating a method of recognizing text. 書体の推定方法を説明する説明図である。FIG. 11 is an explanatory diagram for explaining a method of estimating a typeface. 書体設定後の画像を示す模式図である。FIG. 13 is a schematic diagram showing an image after a font style has been set. 情報処理装置が実行する処理の手順を説明するフローチャートである。11 is a flowchart illustrating a procedure of a process executed by an information processing device. 類似画像の選定手順を説明するフローチャートである。11 is a flowchart illustrating a procedure for selecting a similar image. 書体推定手順を説明するフローチャートである。13 is a flowchart illustrating a typeface estimation procedure. 実施の形態2における類似画像の選定手法を説明する説明図である。FIG. 11 is an explanatory diagram illustrating a method for selecting a similar image in the second embodiment. 実施の形態2における類似画像の選定手順を説明するフローチャートである。13 is a flowchart illustrating a procedure for selecting a similar image in the second embodiment.

以下、本発明をその実施の形態を示す図面に基づいて具体的に説明する。
(実施の形態1)
図1は実施の形態における書体設定方法の概略を説明する説明図である。実施の形態では、画像に重畳してテキストを配置する際の書体設定方法について説明する。図1に示す情報処理装置1は、例えばDTP(Desktop publishing)などに用いられる専用又は汎用のコンピュータである。情報処理装置1は、雑誌の紙面やチラシなどをコンピュータ上で作成するためのソフトウェア(以下、レイアウトソフトという)を備える。レイアウトソフトは、画像及びテキストを適宜に配置することができるソフトウェアである。レイアウトソフトの一例は、組版用のページレイアウトソフトである。代替的に、グラフィックソフト、文書作成ソフト、プレゼンテーションソフトなどが用いられる。
Hereinafter, the present invention will be described in detail with reference to the drawings showing embodiments thereof.
(Embodiment 1)
FIG. 1 is an explanatory diagram for explaining an outline of a font setting method in an embodiment. In the embodiment, a font setting method when arranging text superimposed on an image will be explained. The information processing device 1 shown in FIG. 1 is a dedicated or general-purpose computer used for, for example, DTP (Desktop Publishing). The information processing device 1 includes software (hereinafter referred to as layout software) for creating magazine pages, flyers, etc. on a computer. The layout software is software that can appropriately arrange images and text. An example of the layout software is page layout software for typesetting. Alternatively, graphic software, word processing software, presentation software, etc. can be used.

DTPの作業者は、レイアウトソフトを用いて、画像にテキストを配置し、雑誌の紙面やチラシなどのデータを作成する。以下では、テキストが配置される前の画像を素材画像、画像に配置される前のテキストを素材テキストという。素材画像には任意の画像が用いられる。例えば、素材画像として、デジタルカメラなどによって撮像された写真(画像)、グラフィックソフトなどを用いて作成された2次元又は3次元の画像、通信ネットワークNを介して取得した画像などを用いることができる。素材テキストは、レイアウトソフトを用いて入力される文字列のデータであり、情報処理装置1の内部では文字コードにより記述される。 DTP workers use layout software to place text on an image and create data for magazine pages, flyers, and the like. In the following, an image before text is placed on it is called a material image, and text before it is placed on an image is called material text. Any image can be used as a material image. For example, the material image can be a photograph (image) taken with a digital camera, a two-dimensional or three-dimensional image created using graphics software, or an image obtained via a communications network N. Material text is character string data entered using layout software, and is written in character code inside the information processing device 1.

作業者は、レイアウトソフトを用いて、素材画像に重畳して素材テキストを配置する。このとき、情報処理装置1は、通信ネットワークN上に存在するテキストが重畳された複数の教師画像から素材画像に類似する画像(以下、類似画像という)を検索し、類似画像に含まれるテキストの書体情報を参照して、素材画像上に配置する素材テキストの書体を設定する。本実施の形態では、素材テキストに適用する書体を情報処理装置1が自動的に設定するので、作業者が手動で書体を選定する場合と比較して作業負荷を軽減することができる。また、本実施の形態では、他の作業者によって作成された画像を参照して素材テキストの書体を設定するので、素材画像の内容と素材テキストの書体とが調和していないといった違和感を軽減できる。 The worker uses layout software to place the source text superimposed on the source image. At this time, the information processing device 1 searches for an image similar to the source image (hereinafter referred to as a similar image) from among multiple teacher images with superimposed text present on the communication network N, and sets the typeface of the source text to be placed on the source image by referring to the typeface information of the text contained in the similar image. In this embodiment, the information processing device 1 automatically sets the typeface to be applied to the source text, so the workload can be reduced compared to when the worker manually selects the typeface. Also, in this embodiment, the typeface of the source text is set by referring to an image created by another worker, so it is possible to reduce the sense of incongruity caused by the content of the source image and the typeface of the source text not matching.

図2は情報処理装置1の構成を示すブロック図である。情報処理装置1は、制御部11、記憶部12、通信部13、入力部14、操作部15、及び表示部16を備える。 Figure 2 is a block diagram showing the configuration of the information processing device 1. The information processing device 1 includes a control unit 11, a storage unit 12, a communication unit 13, an input unit 14, an operation unit 15, and a display unit 16.

制御部11は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)などを備える。制御部11が備えるROMには、上記ハードウェア各部の動作を制御するための制御プログラム等が記憶される。制御部11内のCPUは、ROMに記憶された制御プログラム及び記憶部12に記憶された各種プログラムを実行し、上記ハードウェア各部の動作を制御することにより、装置全体を本発明に係る書体設定装置として機能させる。制御部11が備えるRAMには、各種プログラムの実行中に一時的に利用されるデータが記憶される。 The control unit 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), etc. The ROM included in the control unit 11 stores control programs and the like for controlling the operation of each of the above hardware components. The CPU in the control unit 11 executes the control programs stored in the ROM and the various programs stored in the memory unit 12, and controls the operation of each of the above hardware components, causing the entire device to function as a typeface setting device according to the present invention. The RAM included in the control unit 11 stores data that is temporarily used while the various programs are being executed.

なお、制御部11は上記の構成に限定されるものではなく、シングルコアCPU、マルチコアCPU、GPU(Graphics Processing Unit)、マイコン、揮発性又は不揮発性のメモリ等を含む1又は複数の処理回路若しくは制御回路であればよい。また、制御部11は、日時情報を出力するクロック、計測開始指示を与えてから計測終了指示を与えるまでの経過時間を計測するタイマ、数をカウントするカウンタ等の機能を備えていてもよい。 The control unit 11 is not limited to the above configuration, and may be one or more processing circuits or control circuits including a single-core CPU, a multi-core CPU, a GPU (Graphics Processing Unit), a microcomputer, a volatile or non-volatile memory, etc. The control unit 11 may also have functions such as a clock that outputs date and time information, a timer that measures the elapsed time from when an instruction to start measurement is given to when an instruction to end measurement is given, and a counter that counts numbers.

記憶部12は、HDD(Hard Disk Drive)、SSD(Solid State Drive)などのストレージを備える。記憶部12には、制御部11に実行させる各種プログラムが記憶される。記憶部12に記憶されるプログラムは、素材画像に類似する類似画像を選定し、選定した類似画像に含まれるテキストの書体情報に基づき、素材画像に重畳する素材テキストの書体を設定するための書体設定プログラムPGを含む。なお、書体設定プログラムPGは、単一のコンピュータプログラムである必要はなく、複数のコンピュータプログラムにより構成されるプログラム群であってもよい。また、書体設定プログラムPGは、適宜のアプリケーションプログラムにおいて利用されるマクロやプラグインであってもよい。 The storage unit 12 includes storage devices such as a hard disk drive (HDD) and a solid state drive (SSD). The storage unit 12 stores various programs to be executed by the control unit 11. The programs stored in the storage unit 12 include a font setting program PG for selecting an image similar to the material image and setting the font of the material text to be superimposed on the material image based on the font information of the text contained in the selected similar image. Note that the font setting program PG does not need to be a single computer program, but may be a program group consisting of multiple computer programs. The font setting program PG may also be a macro or plug-in used in an appropriate application program.

なお、記憶部12に記憶されるコンピュータプログラムは、当該コンピュータプログラムを読み取り可能に記録した記録媒体Mにより提供されてもよい。記録媒体Mは、例えば、SD(Secure Digital)カード、マイクロSDカード、コンパクトフラッシュ(登録商標)などの可搬型のメモリである。この場合、制御部11は、不図示の読取装置を用いて記録媒体Mからプログラムを読み取り、読み取ったプログラムを記憶部12に記憶させればよい。また、記憶部12に記憶されるプログラムは、通信により提供されてもよい。この場合、制御部11は、通信部13を通じてプログラムを取得し、取得したプログラムを記憶部12に記憶させればよい。 The computer program stored in the memory unit 12 may be provided by a recording medium M on which the computer program is recorded in a readable manner. The recording medium M is, for example, a portable memory such as a Secure Digital (SD) card, a micro SD card, or a Compact Flash (registered trademark). In this case, the control unit 11 reads the program from the recording medium M using a reading device (not shown) and stores the read program in the memory unit 12. The program stored in the memory unit 12 may also be provided by communication. In this case, the control unit 11 obtains the program through the communication unit 13 and stores the obtained program in the memory unit 12.

また、記憶部12は、情報処理装置1が備えるフォントの情報を記憶するフォントテーブルTBを備える。図3はフォントテーブルTBの一例を示す概念図である。本実施の形態におけるフォントはデジタルフォントであり、表示や印刷のために利用できるようにした書体データを表す。書体とは、美的感覚に基づき、字体を統一的にデザインした文字のスタイルのことである。書体には、明朝体、ゴシック体、行書体などの和文書体、セリフ体、サンセリフ体などの欧文書体が含まれる。本実施の形態では、説明を簡略化するために、明朝体のフォントである「フォントA」、ゴシック体のフォントである「フォントB」、行書体のフォントである「フォントC」の3つのフォントのみが情報処理装置1にインストールされているものとする。 The storage unit 12 also includes a font table TB that stores information about fonts included in the information processing device 1. FIG. 3 is a conceptual diagram showing an example of the font table TB. The fonts in this embodiment are digital fonts, and represent typeface data that can be used for display and printing. A typeface is a style of characters that is designed in a unified manner based on aesthetic sensibility. Typefaces include Japanese typefaces such as Ming, Gothic, and cursive, and Western typefaces such as serif and sans serif. In this embodiment, for the sake of simplicity, it is assumed that only three fonts, "Font A", a Ming font, "Font B", a Gothic font, and "Font C", a cursive font, are installed in the information processing device 1.

通信部13は、インターネット網などの通信ネットワークNに接続するための通信インタフェースを備える。通信部13が備える通信インタフェースは、有線のインタフェースであってもよく、無線のインタフェースであってもよい。通信部13は、外部へ通知すべき各種情報を送信すると共に、外部から自装置宛に送信される各種情報を受信する。 The communication unit 13 has a communication interface for connecting to a communication network N such as the Internet. The communication interface provided in the communication unit 13 may be a wired interface or a wireless interface. The communication unit 13 transmits various information to be notified to the outside, and receives various information transmitted from the outside to the device itself.

入力部14は、デジタルカメラ、スキャナ装置などのイメージングデバイスを接続するためのインタフェースを備える。制御部11は、入力部14を通じて、イメージングデバイスにて生成された画像を素材画像として取得することが可能である。制御部11は、入力部14を通じて取得した素材画像を記憶部12に記憶させる。 The input unit 14 has an interface for connecting an imaging device such as a digital camera or a scanner. The control unit 11 can acquire an image generated by an imaging device as a material image through the input unit 14. The control unit 11 stores the material image acquired through the input unit 14 in the storage unit 12.

操作部15は、キーボード、タッチパネルなどの入力デバイスを接続するためのインタフェースを備える。制御部11は、操作部15を通じて、作業者による各種の操作や設定を受付ける。また、制御部11は、操作部15を通じて、素材テキストを受付けることが可能である。 The operation unit 15 has an interface for connecting input devices such as a keyboard and a touch panel. The control unit 11 accepts various operations and settings by the operator through the operation unit 15. The control unit 11 can also accept source text through the operation unit 15.

表示部16は、液晶表示パネル、有機EL(Electro Luminescence)表示パネル等の表示デバイスを備えており、制御部11から出力される制御信号に基づいて、作業者に報知すべき情報やデータを表示する。 The display unit 16 is equipped with a display device such as a liquid crystal display panel or an organic EL (Electro Luminescence) display panel, and displays information and data to be notified to the worker based on a control signal output from the control unit 11.

なお、情報処理装置1は、単一のコンピュータである必要はなく、複数のコンピュータや周辺機器により構成されるコンピュータシステムであってもよい。また、情報処理装置1は、ソフトウェアによって仮想的に構築される仮想マシンであってもよい。 In addition, the information processing device 1 does not have to be a single computer, but may be a computer system composed of multiple computers and peripheral devices. In addition, the information processing device 1 may be a virtual machine that is virtually constructed by software.

以下、情報処理装置1が実行する処理の内容について具体的に説明する。
(1)素材画像及び素材テキストの取得
作業者は、情報処理装置1においてレイアウトソフトを起動し、レイアウトソフトを操作することによって所望の素材画像を表示部16に表示させ、操作部15を用いて素材画像上に配置すべき素材テキストを入力する。図4は素材画像及び素材テキストの一例を示す模式図である。図4に一例として示す素材画像110は、ライトアップされた寺を被写体として撮像した写真(画像)である。素材画像110は、デジタル形式の画像であり、それぞれがRGB各色の画素値を有する複数の画素により構成される。素材画像110は、レイアウトソフトに取り込まれることによって情報処理装置1の表示部16に表示される。
The process executed by the information processing device 1 will now be described in detail.
(1) Obtaining material images and material text The worker starts the layout software on the information processing device 1, operates the layout software to display the desired material image on the display unit 16, and uses the operation unit 15 to input material text to be placed on the material image. Fig. 4 is a schematic diagram showing an example of a material image and material text. The material image 110 shown as an example in Fig. 4 is a photograph (image) captured with an illuminated temple as the subject. The material image 110 is a digital image, and is composed of a plurality of pixels, each having a pixel value for each of the RGB colors. The material image 110 is imported into the layout software and displayed on the display unit 16 of the information processing device 1.

素材画像110にテキストを配置する際、配置すべきテキストの位置を示すテキスト配置領域110Aが作業者の操作によって設定される。操作部15を用いて入力されたテキストは、テキスト配置領域110Aに表示される。図4に一例として示す素材テキスト120は、「暖かい灯に照らされた夜の本堂」という文字列により構成されている。入力直後の素材テキスト120には、予め定められたフォント(書体)若しくは作業者によって選択されたフォント(書体)が設定される。 When placing text in the material image 110, a text placement area 110A indicating the position of the text to be placed is set by the operator. Text entered using the operation unit 15 is displayed in the text placement area 110A. The material text 120 shown as an example in FIG. 4 is composed of the character string "The main hall at night lit by warm lights." Immediately after input, a predetermined font (typeface) or a font (typeface) selected by the operator is set in the material text 120.

(2)類似画像候補の検索
情報処理装置1は、素材画像110及び素材テキスト120が与えられた場合、通信ネットワークN上に存在するテキストが重畳された複数の教師画像から素材画像110に類似する画像(類似画像)を検索する。情報処理装置1は、素材画像110及び素材テキスト120が与えられたことをトリガとして類似画像を検索してもよく、作業者より検索指示が与えられたことをトリガとして類似画像を検索してもよい。本実施の形態では、画像間の類似性だけでなく、テキスト間の類似性を考慮して、最終的に素材画像110に最も近い類似画像を選定する。
(2) Search for Similar Image Candidates When the material image 110 and the material text 120 are given, the information processing device 1 searches for an image similar to the material image 110 (similar image) from a plurality of teacher images on which text is superimposed and which exist on the communication network N. The information processing device 1 may search for a similar image triggered by the provision of the material image 110 and the material text 120, or may search for a similar image triggered by a search instruction given by an operator. In this embodiment, the similarity between the texts as well as the similarity between the images is taken into consideration, and ultimately, a similar image closest to the material image 110 is selected.

情報処理装置1は、テキスト間の類似性を考慮するために、与えられた素材テキスト120について形態素解析を行い、素材テキスト120に含まれる単語を抽出する。例えば「暖かい灯に照らされた夜の本堂」という素材テキスト120からは、「暖かい」、「灯」、「照らされた」、「夜」、「本堂」の5つの単語が抽出される。情報処理装置1は、抽出したこれらの単語の少なくとも1つを含むような画像を通信ネットワークNを介して検索する。 In order to take into account similarities between texts, the information processing device 1 performs morphological analysis on the given material text 120 and extracts words contained in the material text 120. For example, five words, "warm," "light," "illuminated," "night," and "main hall," are extracted from the material text 120, "The main hall at night lit by warm lights." The information processing device 1 searches for images that contain at least one of these extracted words via the communication network N.

図5は教師画像の例を示す模式図である。図5Aに示す教師画像210は、夕日を背景として撮像した吊り橋の画像であり、「吊り橋にかかる夕日、幻想的な灯」とのテキストを含む。このテキストには素材テキスト120から抽出した単語と同一の「灯」という単語が含まれているため、図5Aに示す教師画像210は類似画像の候補として検索される。 Figure 5 is a schematic diagram showing an example of a teacher image. Teacher image 210 shown in Figure 5A is an image of a suspension bridge captured with a sunset in the background, and includes the text "Sunset over a suspension bridge, fantastic lights." This text includes the word "lights," which is the same as the word extracted from material text 120, so teacher image 210 shown in Figure 5A is searched for as a candidate for a similar image.

図5Bに示す教師画像220は、赤く色づき始めた落葉樹を被写体として撮像した画像であり、「日本の紅葉、暖かい景色」とのテキストを含む。このテキストには素材テキスト120から抽出した単語と同一の「暖かい」という単語が含まれているため、図5Bに示す教師画像220は類似画像の候補として検索される。 The teacher image 220 shown in FIG. 5B is an image captured of a deciduous tree that is beginning to turn red, and includes the text "Autumn leaves in Japan, a warm scene." Because this text includes the word "warm," which is the same as the word extracted from the material text 120, the teacher image 220 shown in FIG. 5B is searched for as a candidate for a similar image.

図5Cに示す教師画像230は、寺を被写体として撮像した画像であり、「本堂一般公開」とのテキストを含む。このテキストには素材テキスト120から抽出した単語と同一の「本堂」という単語が含まれているため、図5Cに示す教師画像230は類似画像の候補として検索される。 The teacher image 230 shown in FIG. 5C is an image captured with a temple as the subject, and includes the text "Main hall open to the public." Because this text includes the word "Main hall," which is the same as the word extracted from the material text 120, the teacher image 230 shown in FIG. 5C is searched for as a candidate for a similar image.

図5Dに示す教師画像240は、気球が浮かぶ風景を撮像した画像であり、「空の旅の希望者募集中」とのテキストを含む。このテキストには素材テキスト120から抽出した単語と同一の単語を含んでいないため、図5Dに示す教師画像240は類似画像の候補から除外される。 The teacher image 240 shown in FIG. 5D is an image of a landscape with a floating balloon, and includes the text "We are looking for people interested in air travel." Since this text does not include the same words as those extracted from the material text 120, the teacher image 240 shown in FIG. 5D is excluded from the candidates for similar images.

本実施の形態の形態に係る情報処理装置1は、素材テキスト120から抽出した単語の少なくとも1つを含むような教師画像を類似画像の候補として検索する構成としたが、同一の単語に限らず、同義語又は類義語を含むような教師画像を類似画像の候補として検索してもよい。例えば、情報処理装置1は、素材テキスト120から抽出した「暖かい」との単語に対して、「温かい」、「ぬくい」、「温暖」、「うららかな」、「ポカポカした」といった単語を含む教師画像を類似画像の候補として検索してもよい。また、情報処理装置1は、同一単語を含む教師画像を検索した結果、十分な数(例えば1枚以上)の類似画像の候補が得られなかった場合、検索の範囲を同義語又は類義語の範囲まで拡げてもよい。 The information processing device 1 according to the present embodiment is configured to search for teacher images that contain at least one of the words extracted from the material text 120 as candidates for similar images, but teacher images that contain not only the same word but also synonyms or similar words may be searched for as candidates for similar images. For example, the information processing device 1 may search for teacher images that contain words such as "warm," "tepid," "mild," "clear," and "warm" as candidates for similar images for the word "warm" extracted from the material text 120. Furthermore, when a sufficient number of candidates for similar images (e.g., one or more) are not obtained as a result of searching for teacher images that contain the same word, the information processing device 1 may expand the search range to include synonyms or similar words.

なお、通信ネットワークNを介して取得した教師画像にテキストが含まれている場合であっても、そのテキストは画像として埋め込まれている(すなわち、画像と一体的にビットマップで表現されている)ことが多い。この場合、情報処理装置1は、教師画像内のテキストを文字列(文字コード)として認識することはできず、素材テキスト120との類似性を判断することはできない。そこで、情報処理装置1は、通信ネットワークNから取得した教師画像にOCR(Optical Character Recognition)を施して画像として含まれるテキストを文字列として認識し、認識した文字列について形態素解析を行うことにより単語を抽出する。情報処理装置1は、素材画像110から抽出される単語と、通信ネットワークN上の画像から抽出される単語とを比較することによって、テキスト間の類似性を判断することができる。 Even if the teacher image acquired via the communication network N contains text, the text is often embedded as an image (i.e., expressed as a bitmap integrally with the image). In this case, the information processing device 1 cannot recognize the text in the teacher image as a character string (character code), and cannot determine the similarity with the material text 120. Therefore, the information processing device 1 performs OCR (Optical Character Recognition) on the teacher image acquired from the communication network N to recognize the text contained as an image as a character string, and extracts words by performing morphological analysis on the recognized character string. The information processing device 1 can determine the similarity between the texts by comparing the words extracted from the material image 110 with the words extracted from the image on the communication network N.

(3)類似画像の選定
次いで、情報処理装置1は、類似画像の候補として選定した教師画像の中から、素材画像110と最も類似する画像を最終的な類似画像として選定する。具体的には、情報処理装置1は、素材画像110及び類似画像の候補のそれぞれにおいて画像に含まれる1又は複数の物体(オブジェクトともいう)を検出し、画像全体の相違度と、オブジェクト間の相違度とを総合して、両者の類似性を判断する。情報処理装置1は、相違度が最も低い画像(すなわち類似度が最も高い画像)を素材画像110に対する類似画像として選定する。
(3) Selection of Similar Images Next, the information processing device 1 selects the image most similar to the material image 110 from among the teacher images selected as candidates for similar images as the final similar image. Specifically, the information processing device 1 detects one or more objects (also called objects) contained in each of the material image 110 and the candidate similar image, and determines the similarity between the two by combining the dissimilarity of the entire image and the dissimilarity between the objects. The information processing device 1 selects the image with the lowest dissimilarity (i.e., the image with the highest similarity) as the similar image to the material image 110.

図6はオブジェクトの検出に用いられる学習モデルMD1の構成を示す模式図である。情報処理装置1は、素材画像110及び類似画像の候補からそれぞれに含まれる1又は複数のオブジェクトを検出する。ここで、オブジェクトの検出とは、画像内のオブジェクトを囲むような矩形領域(バウンディングボックス)を検出し、その矩形領域内に含まれるオブジェクトをクラス識別することをいう。情報処理装置1は、深層学習による学習モデルMD1を用いてオブジェクトを検出する。 Figure 6 is a schematic diagram showing the configuration of a learning model MD1 used for object detection. The information processing device 1 detects one or more objects contained in each of the material image 110 and candidate similar images. Here, detecting an object means detecting a rectangular area (bounding box) that surrounds an object in an image and classifying the object contained within that rectangular area. The information processing device 1 detects objects using the learning model MD1 based on deep learning.

学習モデルMD1は、R-CNN(Region-based Convolutional Neural Network)、Fast R-CNN、SSD(Single Shot Detector)、Mask R-CNN、YOLO(You Only Look Once)、RetinaNetなどの深層学習による学習モデルである。学習モデルMD1は、入力層、中間層、及び出力層を備える。入力層には、処理対象の画像が入力される。中間層は、畳み込み層、プーリング層、及び全結合層などを備え、入力画像に含まれるオブジェクトらしき領域の候補を選定するための演算や入力画像から抽出される特徴量に基づきオブジェクトを識別するための演算等を実行する。出力層は、中間層による演算結果を基に、オブジェクトの検出結果を出力する。学習モデルMD1は、入力層への画像の入力に応じて、中間層にて演算を行い、例えば、クラス名、クラスの予測信頼度、及びバウンディングボックスに関する情報を出力層から出力するように構成される。 The learning model MD1 is a learning model based on deep learning such as R-CNN (Region-based Convolutional Neural Network), Fast R-CNN, SSD (Single Shot Detector), Mask R-CNN, YOLO (You Only Look Once), and RetinaNet. The learning model MD1 includes an input layer, an intermediate layer, and an output layer. An image to be processed is input to the input layer. The intermediate layer includes a convolution layer, a pooling layer, a fully connected layer, and the like, and performs calculations for selecting candidates for object-like regions included in the input image and calculations for identifying objects based on features extracted from the input image. The output layer outputs object detection results based on the calculation results by the intermediate layer. The learning model MD1 is configured to perform calculations in the intermediate layer according to the image input to the input layer, and to output, for example, information on class names, prediction reliability of classes, and bounding boxes from the output layer.

学習モデルMD1は、既知のオブジェクトが含まれる多数の画像と、各画像に含まれるオブジェクトのクラス名と、オブジェクトを囲むバウンディングボックスの座標値とを訓練データとして与え、所定のアルゴリズムを用いて機械学習を行うことにより生成される。学習モデルMD1は、情報処理装置1の内部で生成されてもよく、外部サーバにおいて生成されてもよい。生成された学習モデルMD1は情報処理装置1の記憶部12に記憶される。この場合、情報処理装置1の制御部11は、処理対象の画像を学習モデルMD1へ入力し、学習モデルMD1を用いた演算を実行することによって、オブジェクトの検出結果を取得する。代替的に、学習モデルMD1は外部サーバに記憶されてもよい。この場合、情報処理装置1は、処理対象の画像を外部サーバへ送信し、外部サーバによる演算結果(オブジェクトの検出結果)を通信により取得する。 The learning model MD1 is generated by providing a large number of images containing known objects, the class names of the objects contained in each image, and the coordinate values of the bounding box surrounding the objects as training data, and performing machine learning using a predetermined algorithm. The learning model MD1 may be generated inside the information processing device 1, or may be generated in an external server. The generated learning model MD1 is stored in the storage unit 12 of the information processing device 1. In this case, the control unit 11 of the information processing device 1 inputs the image to be processed into the learning model MD1 and executes a calculation using the learning model MD1 to obtain the object detection result. Alternatively, the learning model MD1 may be stored in an external server. In this case, the information processing device 1 transmits the image to be processed to the external server, and obtains the calculation result (object detection result) by the external server through communication.

本実施の形態では、深層学習による学習モデルMD1を用いてオブジェクトを検出する構成としたが、オブジェクトを検出する手法は特定の手法に限定されない。例えば、テンプレートマッチングなどの古典的手法を用いてオブジェクトを検出してもよい。 In this embodiment, the object is detected using a learning model MD1 based on deep learning, but the method for detecting the object is not limited to a specific method. For example, the object may be detected using a classical method such as template matching.

図7はオブジェクトの検出例を示す模式図である。図7Aは素材画像110についてのオブジェクトの検出例を示している。素材画像110には、本堂(寺)、五重塔(寺)、及び2つの樹木がオブジェクトとして含まれている。情報処理装置1は、上述したような学習モデルMD1を用いることによって、これらのオブジェクトを囲むバウンディングボックスS1~S4を検出し、バウンディングボックスS1~S4内のオブジェクトをそれぞれクラス識別する。例えば、バウンディングボックスS1は、領域内のオブジェクトのクラスが「寺」であると識別され、その予測信頼度が「98%」であることを示している。他のバウンディングボックスS2~S4についても図7Aに示す通りである。 Figure 7 is a schematic diagram showing an example of object detection. Figure 7A shows an example of object detection for material image 110. Material image 110 includes a main hall (temple), a five-story pagoda (temple), and two trees as objects. By using the learning model MD1 described above, the information processing device 1 detects bounding boxes S1 to S4 that surround these objects, and classifies the objects within the bounding boxes S1 to S4. For example, bounding box S1 indicates that the class of the object within the area is identified as "temple", and the prediction reliability is "98%". The other bounding boxes S2 to S4 are as shown in Figure 7A.

図7Bは類似画像の候補である画像230(図5Cを参照)についてのオブジェクトの検出例を示している。画像230には、本堂(寺)及び五重塔(寺)がオブジェクトとして含まれている。情報処理装置1は、上述したような学習モデルMD1を用いることによって、これらのオブジェクトを囲むバウンディングボックスT1~T2を検出し、バウンディングボックスT1~T2内のオブジェクトをそれぞれクラス識別する。例えば、バウンディングボックスT1は、領域内のオブジェクトのクラスが「寺」であると識別され、その予測信頼度が「100%」であることを示している。他のバウンディングボックスT2についても図7Bに示す通りである。 Figure 7B shows an example of object detection for image 230 (see Figure 5C), which is a candidate for a similar image. Image 230 includes a main hall (temple) and a five-story pagoda (temple) as objects. By using the learning model MD1 described above, the information processing device 1 detects bounding boxes T1 to T2 that surround these objects and performs class identification of each of the objects within the bounding boxes T1 to T2. For example, bounding box T1 indicates that the class of the object within the region is identified as "temple" and that the prediction reliability is "100%". The other bounding box T2 is also as shown in Figure 7B.

次いで、情報処理装置1は、素材画像110と類似画像の候補との間の相違度を算出する。本実施の形態では、情報処理装置1は、画像全体の相違度と、オブジェクト間の相違度とを総合して、素材画像110と類似画像の候補との間の相違度を算出する。 Next, the information processing device 1 calculates the degree of dissimilarity between the material image 110 and the candidate similar image. In this embodiment, the information processing device 1 calculates the degree of dissimilarity between the material image 110 and the candidate similar image by combining the degree of dissimilarity of the entire image and the degree of dissimilarity between the objects.

縦横の画素数が同一である任意の2つの画像(画像I及び画像Jとする)についての相違度d(I,J)は、例えば、次式により算出される。 The dissimilarity d(I, J) between any two images (image I and image J) that have the same number of pixels in both the vertical and horizontal directions is calculated, for example, using the following formula:

Figure 0007528715000001
Figure 0007528715000001

ここで、Iyxは、画像Iにおける座標(x,y)の画素値であり、Jyxは、画像Jにおける座標(x,y)の画素値である。すなわち、数1は2つの画像の全画素値の差分の絶対値の総和を表している。 Here, I yx is the pixel value of the coordinates (x, y) in image I, and J yx is the pixel value of the coordinates (x, y) in image J. In other words, Equation 1 represents the sum of the absolute values of the differences between all pixel values of the two images.

図7Aに示される素材画像110と、図7Bに示される類似画像の候補(画像230)との間に適用すれば、素材画像110と画像230との間の相違度は、数1に基づいて以下のように算出される。 When applied between the material image 110 shown in FIG. 7A and the candidate similar image (image 230) shown in FIG. 7B, the dissimilarity between the material image 110 and image 230 is calculated based on equation 1 as follows:

Figure 0007528715000002
Figure 0007528715000002

ここで、d(S1,T1)は、素材画像110において検出されたバウンディングボックスS1内の画像と、画像230において検出されたバウンディングボックスT1内の画像との相違度を表す。バウンディングボックスは固定サイズではないので、バウンディングボックスS1及びバウンディングボックスT1のサイズは同一とは限らない。このため、相違度を算出する前の事前処理として、情報処理装置1は、各バウンディングボックスの縦横のサイズが同一となるように所定サイズにリサイズを行う。d(S1,T2)、d(S2,T1)、d(S2,T2)に付いても同様である。すなわち、数2における右辺第1項から第4項までは、素材画像110に含まれるオブジェクトと、画像230に含まれるオブジェクトとの間の相違度を表す。 Here, d(S1, T1) represents the degree of difference between the image in the bounding box S1 detected in the material image 110 and the image in the bounding box T1 detected in the image 230. Since the bounding boxes are not of a fixed size, the sizes of the bounding boxes S1 and T1 are not necessarily the same. For this reason, as a pre-processing before calculating the degree of difference, the information processing device 1 resizes each bounding box to a predetermined size so that the vertical and horizontal sizes are the same. The same is true for d(S1, T2), d(S2, T1), and d(S2, T2). In other words, the first to fourth terms on the right-hand side of equation 2 represent the degree of difference between the object included in the material image 110 and the object included in the image 230.

数2の右辺第5項であるd(S,T)は、素材画像110と画像230との間の相違度を表す。素材画像110及び画像230は同一サイズとは限らないので、相違度を算出する前の事前処理として、両画像の縦横のサイズが同一となるように所定サイズにリサイズを行う。数2における右辺第1項から第4項まではオブジェクト間の相違度であるのに対し、第5項は画像全体の相違度を表す。 The fifth term on the right-hand side of Equation 2, d(S, T), represents the degree of dissimilarity between material image 110 and image 230. Material image 110 and image 230 are not necessarily the same size, so as a pre-processing step before calculating the degree of dissimilarity, the images are resized to a predetermined size so that their horizontal and vertical sizes are the same. The first through fourth terms on the right-hand side of Equation 2 represent the degree of dissimilarity between objects, while the fifth term represents the degree of dissimilarity of the entire image.

数2の右辺第6項及び第7項のp(S3)及びp(S4)は、ペナルティを表す。画像230には、素材画像110に含まれる2つの樹木のオブジェクトが含まれていないので、相違度が増加するようなペナルティが加算される。ペナルティは、固定値(例えば100)であってもよく、バウンディングボックスS3,S4の大きさに応じて変動する値であってもよい。また、素材画像110に存在しないオブジェクトが画像230に含まれる場合もペナルティが加算されてもよい。 p(S3) and p(S4) in the sixth and seventh terms on the right-hand side of equation 2 represent penalties. Since image 230 does not contain the two tree objects contained in material image 110, a penalty is added that increases the degree of dissimilarity. The penalty may be a fixed value (e.g., 100) or a value that varies depending on the size of bounding boxes S3 and S4. A penalty may also be added if image 230 contains an object that does not exist in material image 110.

図7を参照して素材画像110と画像230との間の相違度の算出例について説明した。情報処理装置1は、同じようにして、素材画像110と他の類似画像の候補との間の相違度を算出することができる。 An example of calculating the degree of dissimilarity between material image 110 and image 230 has been described with reference to FIG. 7. In a similar manner, information processing device 1 can calculate the degree of dissimilarity between material image 110 and other candidate similar images.

図8は相違度の算出結果を示す図である。図8は素材画像110と類似画像の候補として選定された画像210,220,230との間の相違度の算出結果を示している。相違度は、画像全体の相違度と、オブジェクト間の相違度とに基づき算出されるので、画像の全体的な印象が素材画像110と異なり、配置されているオブジェクトも素材画像110と異なる画像210及び画像220の相違度は相対的に高くなる。一方、全体的な印象が素材画像110と比較的似ており、素材画像110と同一種類のオブジェクトが配置されている画像230の相違度は相対的に低く算出される。 Figure 8 shows the results of calculating the dissimilarity. Figure 8 shows the results of calculating the dissimilarity between material image 110 and images 210, 220, and 230 selected as candidates for similar images. Since the dissimilarity is calculated based on the dissimilarity of the entire image and the dissimilarity between objects, the dissimilarity of images 210 and 220, which have a different overall impression from material image 110 and have objects that differ from material image 110, is relatively high. On the other hand, the dissimilarity of image 230, which has a relatively similar overall impression to material image 110 and has the same type of object as material image 110, is calculated to be relatively low.

情報処理装置1は、類似画像の候補として選定された画像のうち、最も相違度が低い画像(すなわち、最も類似度が高い画像)を、素材画像110の類似画像として選定する。図8の例では画像230が類似画像として選定される。 The information processing device 1 selects the image with the lowest degree of dissimilarity (i.e., the image with the highest degree of similarity) from among the images selected as candidates for similar images as the similar image of the material image 110. In the example of FIG. 8, image 230 is selected as the similar image.

本実施の形態に係る情報処理装置1は、画像間の相違度及びオブジェクト間の相違度を算出し、算出した相違度に基づいて類似画像を選定する構成としたが、比較対象の2枚の画像を入力として、相違度(若しくは相違度)に関する値を出力するように学習された学習モデルを用いて、類似画像を選定する構成としてもよい。 The information processing device 1 according to this embodiment is configured to calculate the dissimilarity between images and between objects, and select similar images based on the calculated dissimilarity, but it may also be configured to select similar images using a learning model that is trained to input two images to be compared and output a value related to the dissimilarity (or dissimilarity).

(4)書体の設定
情報処理装置1は、素材テキスト120に適用する書体を決定するために、類似画像に含まれるテキストの書体を推定する。このとき、情報処理装置1は、類似画像からテキスト領域を切り出し、切り出したテキスト領域に含まれる各文字を認識する。
(4) Setting of Font The information processing device 1 estimates the font of the text included in the similar image in order to determine the font to be applied to the material text 120. At this time, the information processing device 1 cuts out a text area from the similar image and recognizes each character included in the cut-out text area.

図9はテキストの認識方法を説明する説明図である。図9に一例として示す画像は、素材画像110の類似画像として選定された画像230である。画像230には「本堂一般公開」とのテキストが重畳されている。このテキストは画像として埋め込まれている(すなわち、画像と一体的にビットマップで表現されている)ので、情報処理装置1は、テキストを構成する各文字をコンピュータ上で識別可能な文字コードとして認識することはできない。 Figure 9 is an explanatory diagram explaining a method of recognizing text. The image shown as an example in Figure 9 is image 230, which has been selected as a similar image to material image 110. Image 230 has the text "Main hall open to the public" superimposed on it. Since this text is embedded as an image (i.e., it is represented as a bitmap integral with the image), the information processing device 1 cannot recognize each character that makes up the text as a character code that can be identified on a computer.

そこで、本実施の形態に係る情報処理装置1は、画像230からテキストを含むテキスト領域を抽出し、抽出したテキスト領域に含まれる各文字を認識する。本実施の形態において、テキスト領域は各文字を囲む矩形領域を表す。テキスト領域の抽出、及びテキスト領域に含まれる各文字の認識は既存のOCR技術を用いることにより実現できる。図9の例では、「本」、「堂」、「一」、「般」、「公」、「開」の6つの文字をそれぞれ囲むテキスト領域が抽出され、各テキスト領域に含まれる文字(文字コード)が認識される。 The information processing device 1 according to this embodiment extracts a text area including text from the image 230, and recognizes each character included in the extracted text area. In this embodiment, a text area represents a rectangular area surrounding each character. Extraction of a text area and recognition of each character included in a text area can be achieved by using existing OCR technology. In the example of Figure 9, text areas surrounding each of the six characters "本", "堂", "一", "普通", "公", and "開" are extracted, and the characters (character codes) included in each text area are recognized.

また、情報処理装置1は、画像セグメンテーションを行い、各文字を含むテキスト領域を文字領域と背景領域とに分離する。本実施の形態において、文字領域は各文字の形状を定める輪郭の内側の領域を表し、背景領域はその輪郭の外側の領域を表す。情報処理装置1は、SegNet、FCN(Fully Convolutional Network)、U-Net(U-Shaped Network)、PSPNet(Pyramid Scene Parsing Network)などのニューラルネットワークにより構築される学習モデル(不図示)を用いて、画像セグメンテーションを行う。画像セグメンテーション用の学習モデルは、情報処理装置1の記憶部12に記憶されてもよく、通信ネットワークNを介してアクセス可能な外部サーバに記憶されてもよい。 In addition, the information processing device 1 performs image segmentation to separate a text region including each character into a character region and a background region. In this embodiment, the character region represents the region inside the outline that defines the shape of each character, and the background region represents the region outside the outline. The information processing device 1 performs image segmentation using a learning model (not shown) constructed by a neural network such as SegNet, FCN (Fully Convolutional Network), U-Net (U-Shaped Network), or PSPNet (Pyramid Scene Parsing Network). The learning model for image segmentation may be stored in the storage unit 12 of the information processing device 1, or may be stored in an external server accessible via the communication network N.

更に、情報処理装置1は、テキスト領域毎に、文字領域内の画素値の平均値と、背景領域内の画素値の平均値を算出する。本実施の形態では、紙面の都合上、白地の背景に対して黒色の文字を描画しているので、文字領域内の画素値の平均値は黒色を示す(0,0,0)となり、背景領域内の画素値の平均値は白色を示す(255,255,255)となる。 Furthermore, the information processing device 1 calculates the average value of pixel values in the character region and the average value of pixel values in the background region for each text region. In this embodiment, due to space limitations, black characters are drawn against a white background, so the average value of pixel values in the character region is (0,0,0), which indicates black, and the average value of pixel values in the background region is (255,255,255), which indicates white.

次いで、情報処理装置1は、類似画像に含まれるテキストの書体を推定する。図10は書体の推定方法を説明する説明図である。類似画像に含まれるテキストの認識結果には、テキストを構成する各文字の認識結果(文字コード)、文字領域の色の情報、及び背景領域の色の情報が含まれている。情報処理装置1は、自装置にインストールされているフォントを用いて、類似画像に含まれるテキストの認識結果を反映させた書体見本を作成する。本実施の形態では、明朝体、ゴシック体、及び行書体のフォントがインストールされているので、情報処理装置1は、類似画像のテキストと同じ文字列を含み、文字領域の色と背景領域の色とを反映させた明朝体、ゴシック体、及び行書体の書体見本をビットマップのデータとして作成する。 Next, the information processing device 1 estimates the typeface of the text contained in the similar image. FIG. 10 is an explanatory diagram explaining a typeface estimation method. The recognition result of the text contained in the similar image includes the recognition result (character code) of each character constituting the text, color information of the character area, and color information of the background area. The information processing device 1 creates a typeface sample that reflects the recognition result of the text contained in the similar image using fonts installed in the device. In this embodiment, since fonts for Ming, Gothic, and cursive are installed, the information processing device 1 creates typeface samples for Ming, Gothic, and cursive as bitmap data that include the same character string as the text of the similar image and reflect the color of the character area and the color of the background area.

情報処理装置1は、類似画像に含まれるテキストの画像群と、作成した書体見本の画像群との間の相違度を算出し、算出した相違度に基づき、類似画像に含まれるテキストの書体を推定する。情報処理装置1は、例えば、以下の演算式に基づいて相違度d(I,J)を算出することができる。 The information processing device 1 calculates the degree of difference between the group of images of the text included in the similar images and the group of images of the created font sample, and estimates the font of the text included in the similar images based on the calculated degree of difference. The information processing device 1 can calculate the degree of difference d(I, J) based on the following formula, for example.

Figure 0007528715000003
Figure 0007528715000003

ここで、In yx は、n番目の類似画像に含まれるテキストの画像における座標(x,y)の画素の画素値であり、Jn yxは、n番目の書体見本の画像における座標(x,y)の画素の画素値である。nは文字数を表す。すなわち、数3は2つの画像の全画素値の差分の絶対値の総和を文字数分だけ合計した結果を示している。 Here, I n yx is the pixel value of the pixel at coordinates (x, y) in the image of the text contained in the nth similar image, and J n yx is the pixel value of the pixel at coordinates (x, y) in the image of the nth font sample. n represents the number of characters. In other words, Equation 3 shows the result of adding up the sum of the absolute values of the differences in all pixel values of the two images for the number of characters.

相違度を算出した結果、行書体の書体見本との相違度が最も低い場合(すなわち類似度が最も高い場合)、情報処理装置1は、類似画像に含まれるテキストの書体を「行書体」と推定する。 If the calculated difference between the image and the cursive typeface sample is the lowest (i.e., the similarity is the highest), the information processing device 1 estimates that the typeface of the text contained in the similar image is "cursive typeface."

情報処理装置1は、素材画像110に重畳する素材テキスト120の書体として、類似画像から推定したテキストの書体を設定する。情報処理装置1は、設定した書体を素材テキスト120に適用し、素材画像110のテキスト配置領域110Aに配置することによって、最終的な画像を取得する。図11は書体設定後の画像を示す模式図である。 The information processing device 1 sets the typeface of the text estimated from the similar image as the typeface of the material text 120 to be superimposed on the material image 110. The information processing device 1 applies the set typeface to the material text 120 and places it in the text placement area 110A of the material image 110 to obtain the final image. Figure 11 is a schematic diagram showing the image after the typeface has been set.

以下、情報処理装置1が実行する処理の手順について説明する。
図12は情報処理装置1が実行する処理の手順を説明するフローチャートである。情報処理装置1の制御部11は、書体設定プログラムPGを記憶部12から読み出して実行することにより、以下の処理を実行する。
The procedure of the process executed by the information processing device 1 will be described below.
12 is a flowchart illustrating the procedure of the process executed by the information processing device 1. The control unit 11 of the information processing device 1 reads out the typeface setting program PG from the storage unit 12 and executes it to execute the following process.

制御部11は、素材画像及び素材テキストの入力を受付ける(ステップS101)。素材画像は、情報処理装置1において起動されるレイアウトソフトを通じて取り込むことによって入力される。素材テキストは、作業者の入力操作を操作部15にて受付けることよって入力される。また、素材テキストの入力を受付ける際に、素材画像上の素材テキストの配置位置を定めるテキスト配置領域が設定される。 The control unit 11 accepts the input of a material image and material text (step S101). The material image is input by importing it through layout software launched on the information processing device 1. The material text is input by accepting an input operation by the worker at the operation unit 15. In addition, when accepting the input of the material text, a text placement area is set that determines the placement position of the material text on the material image.

次いで、制御部11は、素材画像と類似する類似画像の候補を通信ネットワークNを介して取得する(ステップS102)。このとき、制御部11は、素材画像を検索キーとして画像検索を行い、検索された画像のうち、素材テキストに含まれる単語と同一の単語を含むような画像を類似画像の候補として取得する。取得する類似画像の候補は複数であってもよい。ステップS102において、素材テキストを構成する単語を1つも含まないような画像は類似画像の候補から除外される。一例として、制御部11は、素材画像を検索キーとして画像検索を行う構成としたが、素材テキストが重畳された素材画像を検索キーに用いてもよく、素材テキストに含まれる単語を検索キーに用いてもよい。 The control unit 11 then acquires candidates for similar images similar to the material image via the communication network N (step S102). At this time, the control unit 11 performs an image search using the material image as a search key, and acquires, from among the searched images, images that contain the same words as those contained in the material text as candidates for similar images. A plurality of candidates for similar images may be acquired. In step S102, images that do not contain any of the words that make up the material text are excluded from the candidates for similar images. As an example, the control unit 11 is configured to perform an image search using the material image as a search key, but the material image on which the material text is superimposed may be used as the search key, or words contained in the material text may be used as the search key.

次いで、制御部11は、素材画像と類似画像の候補との間の相違度を算出し、算出した相違度に基づき1つの類似画像を選定する(ステップS103)。このステップS103における類似画像の選定手順については、図13に示すフローチャートを用いて詳細に説明する。 Next, the control unit 11 calculates the degree of dissimilarity between the material image and the candidate similar images, and selects one similar image based on the calculated degree of dissimilarity (step S103). The procedure for selecting a similar image in step S103 will be described in detail with reference to the flowchart shown in FIG. 13.

次いで、制御部11は、選定した類似画像からテキスト領域を抽出し、抽出したテキスト領域に含まれるテキストの書体を推定する(ステップS104)。このステップS104における書体推定手順については、図14に示すフローチャートを用いて詳細に説明する。 Next, the control unit 11 extracts a text region from the selected similar image and estimates the typeface of the text contained in the extracted text region (step S104). The typeface estimation procedure in step S104 will be described in detail with reference to the flowchart shown in FIG. 14.

次いで、制御部11は、ステップS104で推定した書体を素材テキストに適用して表示部16に表示させる(ステップS105)。このとき、書体適用後の素材テキストは、事前に設定された素材画像上のテキスト配置領域に重畳される。 Next, the control unit 11 applies the font estimated in step S104 to the material text and displays it on the display unit 16 (step S105). At this time, the material text after the font application is superimposed on the text placement area on the material image that was set in advance.

図13は類似画像の選定手順を説明するフローチャートである。制御部11は、素材画像に含まれるオブジェクトを検出する(ステップS121)。オブジェクトの検出には、R-CNNなどのニューラルネットワークにより構築された学習モデルMD1やテンプレートマッチングなどの古典的手法が用いられる。制御部11は、オブジェクトの検出結果として、オブジェクトを囲むバウンディングボックスの情報、バウンディングボックス内に存在するオブジェクトのクラス名、クラスの予測信頼度を取得する。 Figure 13 is a flowchart explaining the procedure for selecting similar images. The control unit 11 detects objects contained in the material image (step S121). Classical methods such as template matching and learning model MD1 constructed using a neural network such as R-CNN are used to detect the objects. As the object detection result, the control unit 11 obtains information on the bounding box surrounding the object, the class name of the object present within the bounding box, and the predicted reliability of the class.

制御部11は、類似画像の候補に含まれるオブジェクトを検出する(ステップS122)。オブジェクトの検出方法は、ステップS121と同様である。本実施の形態では、便宜上、素材画像に含まれるオブジェクトを検出した後に、類似画像の候補に含まれるオブジェクトを検出する手順としたが、これらの手順の順序は図13に示すフローチャートに限定されるものではなく、同時並行的に実行してもよい。 The control unit 11 detects objects included in the candidates for similar images (step S122). The method of detecting the objects is the same as in step S121. In this embodiment, for convenience, the procedure is such that objects included in the candidate similar images are detected after objects included in the material image are detected, but the order of these procedures is not limited to the flowchart shown in FIG. 13, and they may be executed simultaneously in parallel.

次いで、制御部11は、検出したオブジェクトを考慮して、素材画像と類似画像の候補との間の相違度を算出する(ステップS123)。相違度は、例えば画素値毎の差分の絶対値の総和として与えられる。制御部11は、画像全体から算出した相違度と、オブジェクト毎に算出した相違度とを合算することにより、素材画像と類似画像の候補との間の相違度を算出する。素材画像に含まれるオブジェクトが類似画像の候補に含まれない場合、若しくは、素材画像に含まれないオブジェクトが類似画像の候補に含まれる場合、相違度にペナルティ(正の値)を加算してもよい。 Next, the control unit 11 calculates the dissimilarity between the material image and the candidate similar images, taking into account the detected objects (step S123). The dissimilarity is given, for example, as the sum of the absolute values of the differences for each pixel value. The control unit 11 calculates the dissimilarity between the material image and the candidate similar images by adding up the dissimilarity calculated for the entire image and the dissimilarity calculated for each object. If an object included in the material image is not included in the candidate similar images, or if an object not included in the material image is included in the candidate similar images, a penalty (positive value) may be added to the dissimilarity.

次いで、制御部11は、算出した相違度に基づき類似画像を選定する(ステップS124)。すなわち、制御部11は、類似画像の候補のうち、算出した相違度が最も低い候補を類似画像として選定すればよい。 Next, the control unit 11 selects a similar image based on the calculated dissimilarity (step S124). That is, the control unit 11 may select, from among the candidates for similar images, the candidate with the lowest calculated dissimilarity as the similar image.

図14は書体推定手順を説明するフローチャートである。制御部11は、類似画像からテキスト領域を抽出し(ステップS141)、文字認識を実行する(ステップS142)。テキスト領域の抽出及び文字認識には、既存のOCR技術が用いられる。また、制御部11は、画像セグメンテーションによりテキスト領域を文字領域と背景領域とに分離し、それぞれの領域における平均画素値を算出する(ステップS143)。 Figure 14 is a flowchart explaining the typeface estimation procedure. The control unit 11 extracts a text region from a similar image (step S141) and performs character recognition (step S142). Existing OCR technology is used for the extraction of the text region and character recognition. The control unit 11 also separates the text region into a character region and a background region by image segmentation, and calculates the average pixel value in each region (step S143).

次いで、制御部11は、文字認識の実行結果と、算出した文字領域及び背景領域の平均画素値とに基づき、情報処理装置1にインストールされているフォントを用いて書体見本を作成する(ステップS144)。書体見本は、ビットマップ形式の画像として作成される。 Next, the control unit 11 creates a typeface sample using fonts installed in the information processing device 1 based on the results of the character recognition and the calculated average pixel values of the character area and background area (step S144). The typeface sample is created as an image in bitmap format.

次いで、制御部11は、作成した書体見本と、類似画像から抽出したテキスト領域の画像との相違度を算出する(ステップS145)。本実施の形態では、書体見本はビットマップ形式の画像として作成されるので、制御部11は、画像間の画素値の相違に基づき、相違度を算出すればよい。すなわち、制御部11は、画素値毎の差分の絶対値の総和として相違度を算出すればよい。 Next, the control unit 11 calculates the degree of dissimilarity between the created font sample and the image of the text region extracted from the similar image (step S145). In this embodiment, the font sample is created as a bitmap image, so the control unit 11 can calculate the degree of dissimilarity based on the difference in pixel values between the images. In other words, the control unit 11 can calculate the degree of dissimilarity as the sum of the absolute values of the differences for each pixel value.

次いで、制御部11は、算出した相違度に基づき、類似画像に含まれるテキストの書体を推定する(ステップS146)。すなわち、制御部11は、作成した書体見本のうち、算出した相違度が最も低い書体見本を選定し、その書体見本が示す書体を、類似画像に含まれるテキストの書体として推定すればよい。 Next, the control unit 11 estimates the typeface of the text included in the similar image based on the calculated degree of difference (step S146). That is, the control unit 11 selects the typeface sample with the lowest calculated degree of difference from among the created typeface samples, and estimates the typeface indicated by that typeface sample as the typeface of the text included in the similar image.

以上のように、本実施の形態では、素材画像及び素材テキストを与えることによって、素材画像に配置される素材テキストの書体が自動的に設定される。素材テキストの書体は、通信ネットワークNを介して取得可能な既存の画像を参照して設定されるので、素材テキストを素材画像に調和させることができ、違和感の少ない画像を作業者に提供できる。 As described above, in this embodiment, by providing a material image and material text, the typeface of the material text to be placed on the material image is automatically set. The typeface of the material text is set by referring to an existing image that can be obtained via the communication network N, so that the material text can be made to blend in with the material image, and an image that looks less unnatural can be provided to the worker.

本実施の形態では、レイアウトソフトを用いて、画像にテキストを配置し、雑誌の紙面やチラシなどのデータを作成する際の適用例について説明したが、例えば、キャッチコピー付きの広告画像、プレゼンテーションソフトで用いるテキスト付きの画像、ソーシャルネットワークで用いるコメント付きの画像などとして広く利用することができる。 In this embodiment, we have described an application example in which layout software is used to place text in an image and create data for magazine pages, flyers, etc., but the software can also be used widely, for example, as advertising images with catchy slogans, images with text for use in presentation software, images with comments for use in social networks, etc.

また、本実施の形態では、情報処理装置1において各処理を実行する構成としたが、情報処理装置1からアクセス可能な外部サーバにおいて各処理を実行してもよい。この場合、情報処理装置1において素材画像及び素材テキストの入力を受付け、受付けた素材画像及び素材テキストのデータを外部サーバへアップロードする。外部サーバは、受信した素材画像及び素材テキストのデータに基づき、上述した各処理を実行し、素材画像に配置する素材テキストの書体を設定する。外部サーバは、書体設定後の素材テキストを配置した素材画像を情報処理装置1に返信すればよい。 Although the present embodiment is configured to execute each process in the information processing device 1, each process may be executed in an external server accessible from the information processing device 1. In this case, the information processing device 1 accepts input of the material image and material text, and uploads the accepted material image and material text data to the external server. The external server executes each of the above-mentioned processes based on the received material image and material text data, and sets the typeface of the material text to be placed in the material image. The external server simply returns the material image with the material text after the typeface setting to the information processing device 1.

また、本実施の形態では、画像間の類似性とテキスト間の類似性とを考慮して、素材画像と素材テキストとの組み合わせに類似する類似画像を選定する構成としたが、テキスト間の類似性を考慮せずに、素材画像のみに類似する類似画像を選定する構成としてもよい。後者の場合、情報処理装置1は、画像全体の相違度と、オブジェクト間の相違度とに基づき、素材画像に最も類似する類似画像を選定すればよい。 In addition, in this embodiment, a similar image that is similar to the combination of the material image and the material text is selected by taking into consideration the similarity between the images and the similarity between the texts, but a similar image that is similar only to the material image may be selected without taking into consideration the similarity between the texts. In the latter case, the information processing device 1 may select a similar image that is most similar to the material image based on the degree of dissimilarity of the entire image and the degree of dissimilarity between the objects.

更に、本実施の形態では、類似画像の候補を通信ネットワークを介して検索する構成としたが、類似画像として使用する可能性がある教師画像を予め収集し、データベースに登録しておく構成としてもよい。この場合、情報処理装置1は、データベースにアクセスして類似画像の候補を取得すればよい。 Furthermore, in this embodiment, candidates for similar images are searched for via a communication network, but it is also possible to configure the system so that teacher images that may be used as similar images are collected in advance and registered in a database. In this case, the information processing device 1 can access the database to obtain candidates for similar images.

(実施の形態2)
実施の形態1では、類似画像の選定基準として、画像に含まれる単語の同一性と、画像全体及び画像に含まれるオブジェクトの類似性を用いた。実施の形態2では、これらの選定基準に加え、画像内に占めるテキストの大きさを考慮して類似画像を選定する構成について説明する。
(Embodiment 2)
In the first embodiment, the criteria for selecting similar images are the identity of words contained in the images and the similarity of the entire image and objects contained in the image. In the second embodiment, a configuration will be described in which similar images are selected taking into consideration the size of text in the image in addition to these selection criteria.

図15は実施の形態2における類似画像の選定手法を説明する説明図である。図15に示す画像110は実施の形態1において説明した素材画像110と同一である。素材画像110に素材テキスト120が配置される際、テキスト配置領域110Aが設定される。素材画像110において、テキスト配置領域110Aが占める割合(面積比率)をS0とする。 Figure 15 is an explanatory diagram explaining a method for selecting similar images in embodiment 2. The image 110 shown in Figure 15 is the same as the material image 110 explained in embodiment 1. When material text 120 is placed in material image 110, text placement area 110A is set. The proportion (area ratio) of text placement area 110A in material image 110 is set as S0.

画像231~画像233は通信ネットワークNを介して得られた類似画像の候補群である。画像231~画像233において、画像及びテキストの内容は同一であるが、配置されているテキストの大きさのみが異なるものとする。画像231においてテキスト領域231Aが占める割合をS1、画像232においてテキスト領域232Aが占める割合をS2、画像233においてテキスト領域233Aが占める割合をS3とする。 Images 231 to 233 are a group of candidate similar images obtained via communication network N. Images 231 to 233 have the same image and text content, but differ only in the size of the text that is placed. The proportion of text area 231A in image 231 is S1, the proportion of text area 232A in image 232 is S2, and the proportion of text area 233A in image 233 is S3.

実施の形態2に係る情報処理装置1は、素材画像110においてテキスト配置領域110Aが占める割合と、各画像231~233内においてテキスト領域231A~233Aが占める割合とを比較し、割合が最も近くなるような候補を類似画像として選定する。図15の例では、画像232の割合S2が素材画像110の割合S0に最も近いので、情報処理装置1は、画像232を素材画像110の類似画像として選定する。 The information processing device 1 according to the second embodiment compares the proportion of the text placement area 110A in the material image 110 with the proportion of the text areas 231A to 233A in each of the images 231 to 233, and selects the candidate with the closest proportion as the similar image. In the example of FIG. 15, the proportion S2 of the image 232 is closest to the proportion S0 of the material image 110, so the information processing device 1 selects the image 232 as the similar image to the material image 110.

図16は実施の形態2における類似画像の選定手順を説明するフローチャートである。制御部11は、実施の形態1と同様の手順により、素材画像及び類似画像の候補に含まれるオブジェクトを検出し、検出したオブジェクトを考慮して、素材画像と類似画像の候補との間の相違度を算出する(ステップS201~S203)。 Figure 16 is a flowchart explaining the procedure for selecting similar images in embodiment 2. The control unit 11 detects objects contained in the material image and the candidate similar images using the same procedure as in embodiment 1, and calculates the degree of dissimilarity between the material image and the candidate similar images, taking into account the detected objects (steps S201 to S203).

次いで、制御部11は、素材画像との相違度が比較的小さい類似画像の候補を選択する(ステップS204)。例えば、制御部11は、相違度が最も小さいものから順に所定数の類似画像の候補を選択する。また、制御部11は、算出した相違度と予め設定した閾値とを比較し、相違度が閾値より小さい類似画像の候補を選択してもよい。 Next, the control unit 11 selects similar image candidates whose degree of dissimilarity with the material image is relatively small (step S204). For example, the control unit 11 selects a predetermined number of similar image candidates in order from the one with the smallest degree of dissimilarity. The control unit 11 may also compare the calculated degree of dissimilarity with a preset threshold value, and select similar image candidates whose degree of dissimilarity is smaller than the threshold value.

次いで、制御部11は、素材画像に占めるテキスト配置領域の割合を算出する(ステップS205)。制御部11は、素材画像の大きさ(総画素数)と、作業者によって設定されるテキスト配置領域の大きさ(総画素数)との比率を算出すればよい。 Next, the control unit 11 calculates the proportion of the text placement area in the material image (step S205). The control unit 11 calculates the ratio between the size (total number of pixels) of the material image and the size (total number of pixels) of the text placement area set by the worker.

次いで、制御部11は、ステップS204で選択した類似画像の候補のそれぞれからテキスト領域を抽出し(ステップS206)、類似画像の候補のそれぞれにおいてテキスト領域が占める割合を算出する(ステップS207)。テキスト領域の抽出方法は実施の形態1と同様であるが、文字毎にテキスト領域を抽出する必要はなく、文字列全体を含むような領域を抽出すればよい。また、制御部11は、類似画像の候補の大きさ(総画素数)と、抽出したテキスト領域の大きさ(総画素数)との比率を算出すればよい。 Next, the control unit 11 extracts a text area from each of the similar image candidates selected in step S204 (step S206), and calculates the proportion of the text area in each of the similar image candidates (step S207). The method of extracting the text area is the same as in embodiment 1, but it is not necessary to extract a text area for each character, and it is sufficient to extract an area that includes the entire character string. In addition, the control unit 11 calculates the ratio between the size (total number of pixels) of the similar image candidate and the size (total number of pixels) of the extracted text area.

次いで、制御部11は、ステップS205及びステップS207で算出した割合に基づき、類似画像を選定する(ステップS208)。すなわち、制御部11は、素材画像においてテキスト配置領域が占める割合と、類似画像の候補のそれぞれにおいてテキスト領域が占める割合とを比較し、両者が最も近くなるような候補を類似画像として選定する。 Next, the control unit 11 selects a similar image based on the ratios calculated in steps S205 and S207 (step S208). That is, the control unit 11 compares the ratio of the text placement area in the material image with the ratio of the text area in each of the similar image candidates, and selects the candidate that is closest to the two as the similar image.

類似画像を選定した後の処理は実施の形態と同様である。例えば、図15の例では、テキスト領域232Aに含まれるテキストから推定される書体(行書体)が素材テキストに適用される。 The process after similar images are selected is the same as in the embodiment. For example, in the example of FIG. 15, a font (cursive) estimated from the text included in the text area 232A is applied to the source text.

以上のように、実施の形態2では、画像内に占めるテキスト領域の割合を考慮して類似画像を選定するので、画像内のテキストから受ける印象が比較的近い類似画像を選定することができ、このような類似画像を基に素材テキストの書体を設定することができる。 As described above, in the second embodiment, similar images are selected taking into consideration the proportion of the text area in the image, so that similar images that give a relatively similar impression to the text in the image can be selected, and the typeface of the source text can be set based on such similar images.

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

1 情報処理装置
11 制御部
12 記憶部
13 通信部
14 入力部
15 操作部
16 表示部
PG 書体設定プログラム
TB フォントテーブル
M 記録媒体
Reference Signs List 1 Information processing device 11 Control unit 12 Storage unit 13 Communication unit 14 Input unit 15 Operation unit 16 Display unit PG Font setting program TB Font table M Recording medium

Claims (7)

素材画像と、該素材画像に重畳される素材テキストと、該素材テキストが前記素材画像に重畳される領域の情報とを取得する素材取得部と、
テキストが重畳された複数の教師画像から、前記素材画像又は前記素材画像と前記素材テキストとの組み合わせに類似する類似画像を選定する画像選定部と、
選定した類似画像に重畳されたテキストの書体に基づいて前記素材テキストに適用すべき書体を特定する書体特定部と、
特定した書体により前記素材テキストを前記素材画像の前記領域に重畳させる重畳部と
を備える書体設定装置。
a material acquisition unit that acquires a material image, material text to be superimposed on the material image, and information on an area where the material text is superimposed on the material image;
an image selection unit that selects, from a plurality of teacher images having text superimposed thereon, an image similar to the material image or a combination of the material image and the material text;
a typeface specification unit that specifies a typeface to be applied to the source text based on a typeface of the text superimposed on the selected similar image;
and a superimposing unit that superimposes the material text on the region of the material image in the specified typeface.
前記素材テキストを複数の単語に分割する分割部を備え、
前記画像選定部は、分割した一又は複数の単語が重畳された候補画像を前記複数の教師画像から抽出し、抽出した候補画像から前記類似画像を選定する
請求項1に記載の書体設定装置。
A division unit that divides the material text into a plurality of words,
The typeface setting device according to claim 1 , wherein the image selection unit extracts candidate images on which one or more divided words are superimposed from the plurality of teacher images, and selects the similar image from the extracted candidate images.
前記候補画像の一又は複数の画像内オブジェクトと前記素材画像の一又は複数の画像内オブジェクトとを検出する検出部を備え、
前記画像選定部は、前記候補画像の各画像内オブジェクトの画素値と前記素材画像の各画像内オブジェクトの画素値との関係に基づいて、前記候補画像から前記類似画像を選定する
請求項2に記載の書体設定装置。
a detection unit that detects one or more in-image objects of the candidate image and one or more in-image objects of the material image;
The typeface setting device according to claim 2 , wherein the image selection unit selects the similar image from the candidate images based on a relationship between a pixel value of each intra-image object of the candidate images and a pixel value of each intra-image object of the element image.
複数の書体見本群を記憶する記憶部を備え、
前記書体特定部は、前記画像選定部が選定した前記類似画像に重畳されたテキストの書体に最も近似する書体を前記複数の書体見本群に基づいて特定する
請求項2又は請求項3に記載の書体設定装置。
A storage unit for storing a plurality of font sample groups,
4. The typeface setting device according to claim 2, wherein the typeface specification unit specifies a typeface that is most similar to a typeface of the text superimposed on the similar image selected by the image selection unit, based on the group of the plurality of typeface samples.
前記領域が前記素材画像に占める割合を算出する算出部を備え、
前記画像選定部は、算出した前記割合に基づいて、前記複数の教師画像から、前記類似画像を選定する
請求項1から請求項4のいずれか一つに記載の書体設定装置。
a calculation unit that calculates a ratio of the region to the material image,
The typeface setting device according to claim 1 , wherein the image selection unit selects the similar image from the plurality of teacher images based on the calculated ratio.
素材画像と、該素材画像に重畳される素材テキストと、該素材テキストが前記素材画像に重畳される領域の情報とを取得し、
テキストが重畳された複数の教師画像から、前記素材画像又は前記素材画像と前記素材テキストとの組み合わせに類似する類似画像を選定し、
選定した類似画像に重畳されたテキストの書体に基づいて前記素材テキストに適用すべき書体を特定し、
特定した書体により前記素材テキストを前記素材画像の前記領域に重畳させる
処理をコンピュータに実行させる書体設定方法。
Acquiring a material image, material text to be superimposed on the material image, and information on an area in which the material text is superimposed on the material image;
selecting a similar image that is similar to the material image or a combination of the material image and the material text from a plurality of teacher images having text superimposed thereon;
Identifying a typeface to be applied to the source text based on the typeface of the text superimposed on the selected similar image;
The font setting method causes a computer to execute a process of superimposing the material text on the region of the material image using the specified font.
素材画像と、該素材画像に重畳される素材テキストと、該素材テキストが前記素材画像に重畳される領域の情報とを取得し、
テキストが重畳された複数の教師画像から、前記素材画像又は前記素材画像と前記素材テストとの組み合わせに類似する類似画像を選定し、
選定した該類似画像に重畳されたテキストの書体に基づいて前記素材テキストに適用すべき書体を特定し、
特定した書体により前記素材テキストを前記素材画像の前記領域に重畳させる
処理をコンピュータに実行させるためのコンピュータプログラム。
Acquiring a material image, material text to be superimposed on the material image, and information on an area in which the material text is superimposed on the material image;
selecting a similar image that is similar to the material image or a combination of the material image and the material text from a plurality of teacher images having text superimposed thereon;
Identifying a typeface to be applied to the source text based on the typeface of the text superimposed on the selected similar image;
A computer program for causing a computer to execute a process of superimposing the material text in the specified font on the region of the material image.
JP2020178112A 2020-10-23 2020-10-23 Font setting device, font setting method, and computer program Active JP7528715B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020178112A JP7528715B2 (en) 2020-10-23 2020-10-23 Font setting device, font setting method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020178112A JP7528715B2 (en) 2020-10-23 2020-10-23 Font setting device, font setting method, and computer program

Publications (2)

Publication Number Publication Date
JP2022069122A JP2022069122A (en) 2022-05-11
JP7528715B2 true JP7528715B2 (en) 2024-08-06

Family

ID=81521950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020178112A Active JP7528715B2 (en) 2020-10-23 2020-10-23 Font setting device, font setting method, and computer program

Country Status (1)

Country Link
JP (1) JP7528715B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7383083B1 (en) 2022-06-20 2023-11-17 楽天グループ株式会社 Information processing device, information processing method, and information processing program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001283235A (en) 2000-02-28 2001-10-12 Canon Inc Font and theme selection method and device
JP2007058627A (en) 2005-08-25 2007-03-08 Make Softwear:Kk Photo vending apparatus, photo vending method, image editing apparatus, and photo vending program
JP2012058905A (en) 2010-09-07 2012-03-22 Canon Inc Printing control apparatus, printing control method, program, and storage medium
JP2017049798A (en) 2015-09-02 2017-03-09 富士ゼロックス株式会社 Information processing device and program
US20190311227A1 (en) 2018-04-06 2019-10-10 Dropbox, Inc. Generating searchable text for documents portrayed in a repository of digital images utilizing orientation and text prediction neural networks
JP2020154951A (en) 2019-03-22 2020-09-24 大日本印刷株式会社 Font selection device and program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001283235A (en) 2000-02-28 2001-10-12 Canon Inc Font and theme selection method and device
JP2007058627A (en) 2005-08-25 2007-03-08 Make Softwear:Kk Photo vending apparatus, photo vending method, image editing apparatus, and photo vending program
JP2012058905A (en) 2010-09-07 2012-03-22 Canon Inc Printing control apparatus, printing control method, program, and storage medium
JP2017049798A (en) 2015-09-02 2017-03-09 富士ゼロックス株式会社 Information processing device and program
US20190311227A1 (en) 2018-04-06 2019-10-10 Dropbox, Inc. Generating searchable text for documents portrayed in a repository of digital images utilizing orientation and text prediction neural networks
JP2020154951A (en) 2019-03-22 2020-09-24 大日本印刷株式会社 Font selection device and program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
飯場 咲紀、外2名,"テキストのイメージに適した色彩・感性情報・フォントの提案システム",情報処理学会研究報告 ,日本,一般社団法人情報処理学会,2012年04月15日,Vol.2012-EC-23, No.14,pp.1-6

Also Published As

Publication number Publication date
JP2022069122A (en) 2022-05-11

Similar Documents

Publication Publication Date Title
US7912289B2 (en) Image text replacement
KR101611895B1 (en) Apparatus and Method of Automatic Text Design based on Emotion
CN111898411B (en) Text image annotation system, method, computer device and storage medium
CN110674814A (en) Picture identification and translation method, terminal and medium
CN110019912B (en) Shape-based graph search
JP2002063215A (en) Document display method and system, computer program, recording medium
RU2677573C2 (en) System and method of adding stylized properties to image
WO2018233055A1 (en) Method, device, computer device and storage medium for policy information entry
RU2619712C1 (en) Optical character recognition of image series
CN112381057A (en) Handwritten character recognition method and device, storage medium and terminal
CN113673294B (en) Method, device, computer equipment and storage medium for extracting document key information
CN111783514A (en) Facial parsing method, device and computer-readable storage medium
US9245357B2 (en) Image processing apparatus, image processing method, and storage medium
KR20200020305A (en) Method and Apparatus for character recognition
KR101552525B1 (en) A system for recognizing a font and providing its information and the method thereof
CN113537184A (en) OCR (optical character recognition) model training method and device, computer equipment and storage medium
CN112528997A (en) Tibetan-Chinese bilingual scene text detection method based on text center region amplification
CN112560857B (en) Character area boundary detection method, equipment, storage medium and device
JP7528715B2 (en) Font setting device, font setting method, and computer program
TWI726268B (en) Image information processing device, image information processing method, and recording medium for recording image information processing program
CN109101973B (en) Character recognition method, electronic device and storage medium
CN113642642B (en) Control identification method and device
CN115223171A (en) Text recognition method, device, equipment and storage medium
JP2008282094A (en) Character recognition processing device
Zhandong et al. From Detection to Understanding: A Systematic Survey of Deep Learning for Scene Text Processing

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230829

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20240604

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20240613

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: 20240625

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240708

R150 Certificate of patent or registration of utility model

Ref document number: 7528715

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150