JP6866636B2 - Character editing methods, electronic devices, and programs - Google Patents
Character editing methods, electronic devices, and programs Download PDFInfo
- Publication number
- JP6866636B2 JP6866636B2 JP2016252073A JP2016252073A JP6866636B2 JP 6866636 B2 JP6866636 B2 JP 6866636B2 JP 2016252073 A JP2016252073 A JP 2016252073A JP 2016252073 A JP2016252073 A JP 2016252073A JP 6866636 B2 JP6866636 B2 JP 6866636B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- image
- formats
- format
- candidate
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41F—PRINTING MACHINES OR PRESSES
- B41F33/00—Indicating, counting, warning, control or safety devices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
Description
本発明は、文字編集方法、電子機器、及び、プログラムに関する。 The present invention relates to character editing methods, electronic devices, and programs.
従来から、ラベルプリンタなどの印刷装置によって被印刷媒体に印刷される文字を、スマートフォンやパーソナルコンピュータなどの電子機器上で編集するアプリケーションプログラムが知られている。そのようなアプリケーションプログラムは、例えば、特許文献1に記載されている。
Conventionally, an application program for editing characters printed on a print medium by a printing device such as a label printer on an electronic device such as a smartphone or a personal computer has been known. Such an application program is described in, for example,
ところで、電子機器には、文字を編集する様々な機能、例えば、フォント、斜体、太字などの文字書式を設定する機能が備わっている。文字の編集は非常に手間の掛かる作業であり、例えば、フォント設定一つとってみても、電子機器には通常数多くのフォントが登録されているため、好みのフォントを探し出して設定することは容易ではない。 By the way, electronic devices are provided with various functions for editing characters, for example, a function for setting character formats such as fonts, italics, and bold characters. Editing characters is a very time-consuming task. For example, even if you take one font setting, many fonts are usually registered in electronic devices, so it is easy to find and set your favorite font. is not it.
以上のような実情を踏まえ、本発明の一側面に係る目的は、文字編集に要する利用者の作業負担を軽減することである。 Based on the above circumstances, an object of one aspect of the present invention is to reduce the work load of the user required for character editing.
本発明の一態様に係る方法は、文字を編集するコンピュータで実行される文字編集方法であって、参照文字の画像を含む参照画像から前記参照文字の文字情報を取得するステップと、前記参照文字の文字情報と、記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成するステップと、前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出するステップと、入力された編集対象文字に、前記類似度に基づいて前記複数の文字書式から少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を表示部に表示させるステップと、前記表示部に表示された前記少なくとも一つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定するステップと、を含む。 A method according to one aspect of the present invention is a character editing method executed by a computer that edits characters, and includes a step of acquiring character information of the reference character from a reference image including an image of the reference character, and the reference character. A step of generating a plurality of comparison images in which each of the plurality of character formats is applied to the reference character based on the character information of the above and a plurality of character formats stored in the storage unit, and the reference character. At least one character format from the plurality of character formats is applied to the input edit target character based on the similarity, and the step of calculating the similarity between the image of the image and each of the plurality of comparison images. From the step of displaying an image of one candidate character on the display unit and the image of at least one candidate character displayed on the display unit, a specific candidate character in which a specific character format is applied to the character to be edited When an image is selected, it includes a step of setting a character to which the specific character format is applied to the character to be edited as a character to be printed.
本発明の別の態様に係る電子機器は、複数の文字書式の情報を記憶した記憶部と、表示部と、演算部と、を備え、前記演算部は、参照文字の画像を含む参照画像から前記参照文字の文字情報を取得し、前記参照文字の文字情報と、前記記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成し、前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出し、入力された編集対象文字に、前記類似度に基づいて前記複数の文字書式から少なくとも一つの文字書式を適用した少なくとも一つの候補文字画像を前記表示部に表示させ、前記表示部に表示された前記少なくとも一つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定する。 An electronic device according to another aspect of the present invention includes a storage unit that stores information in a plurality of character formats, a display unit, and a calculation unit, and the calculation unit is derived from a reference image including an image of reference characters. The character information of the reference character was acquired, and each of the plurality of character formats was applied to the reference character based on the character information of the reference character and the plurality of character formats stored in the storage unit. A plurality of comparison images are generated, the similarity between the reference character image and each of the plurality of comparison images is calculated, and the input edit target character is subjected to the plurality of character formats based on the similarity. At least one candidate character image to which at least one character format is applied is displayed on the display unit, and from the image of the at least one candidate character displayed on the display unit, a specific character format is applied to the character to be edited. when an image of the applied specific candidate character is selected, to set the character of applying the specific character format to the edited character printed characters.
本発明の一態様に係るプログラムは、参照文字の画像を含む参照画像から前記参照文字の文字情報を取得し、前記参照文字の文字情報と、記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成し、前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出し、入力された編集対象文字に、前記類似度に基づいて前記複数の文字書式から少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を表示部に表示し、前記表示部に表示された前記少なくとも一つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定する処理を前記コンピュータに実行させる。 The program according to one aspect of the present invention acquires the character information of the reference character from the reference image including the image of the reference character, and includes the character information of the reference character, a plurality of character formats stored in the storage unit, and the like. Based on, a plurality of comparison images in which each of the plurality of character formats is applied to the reference character are generated, the similarity between the image of the reference character and each of the plurality of comparison images is calculated, and input is performed. An image of at least one candidate character obtained by applying at least one character format from the plurality of character formats to the edited character to be edited based on the similarity is displayed on the display unit, and the at least displayed on the display unit. When an image of a specific candidate character to which a specific character format is applied to the character to be edited is selected from the image of one candidate character, the character to which the specific character format is applied to the character to be edited is printed. to execute processing to set the character to the computer.
上記の態様によれば、文字編集に要する利用者の作業負担を軽減することができる。 According to the above aspect, it is possible to reduce the work load of the user required for character editing.
図1は、本実施形態に係る印刷システムの構成を例示した図である。図2は、印刷装置1と電子機器100の構成を示すブロック図である。図1に示す印刷システムは、印刷装置1と、印刷装置1へ印刷データを送信する電子機器100と、を含んでいる。印刷装置1と電子機器100は、無線通信又は有線通信でデータをやり取りする。
FIG. 1 is a diagram illustrating the configuration of the printing system according to the present embodiment. FIG. 2 is a block diagram showing the configurations of the
印刷装置1は、被印刷媒体Mに印刷を行う印刷装置であり、例えば、長尺状の被印刷媒体Mに、シングルパス方式で印刷を行うラベルプリンタである。以降では、印刷装置1がインクリボンを使用する熱転写方式のラベルプリンタである場合を例にして説明するが、印刷装置1は感熱紙を使用する感熱方式のラベルプリンタであってもよい。また、ラベルプリンタである印刷装置1は、サーマルプリンタに限らず、インクジェットプリンタであってもよい。
The
被印刷媒体Mは、例えば、接着層を有する基材と、接着層を覆うように剥離可能に基材に貼付された剥離紙と、を有するテープ部材である。被印刷媒体Mは、離型紙なしのテープ部材であってもよい。 The print medium M is, for example, a tape member having a base material having an adhesive layer and a release paper removably attached to the base material so as to cover the adhesive layer. The print medium M may be a tape member without a paper pattern.
印刷装置1には、図1に示すように、キューブ形状の装置筐体20の上面に、蓋部10と、複数のボタン(ボタン21、ボタン22a、ボタン22b、ボタン22c、ボタン22d)が設けられている。ボタン21は、蓋部10の開閉ボタンである。ボタン22aからボタン22dは、それぞれ電源ボタン、無線通信ボタン、フィードボタン、カットボタンである。また、図示しないが、装置筐体20には、電源コード接続端子、外部機器接続端子等が設けられている。
As shown in FIG. 1, the
蓋部10は、開閉可能に配置されている。蓋部10は、ボタン21が押下されることで開かれて、テープカセットを収容するカセット収容部が外部に露出する。蓋部10には、蓋部10が閉じた状態でもカセット収容部にテープカセットが収納されているか否かを目視で確認可能とするために、窓11が形成されている。また、装置筐体20の側面には、排出口20aが形成されている。印刷装置1内で印刷が行われた被印刷媒体Mは、排出口20aから装置外へ排出される。
The
印刷装置1は、上述した構成に加えて、図2に示すように、制御部2、通信インターフェース3、ROM(Read Only Memory)4、RAM(Random Access Memory)5、サーミスタ23、ヘッド駆動回路24、サーマルヘッド25、プラテンローラ26、搬送用モータ27、搬送用モータ駆動回路28、カッターモータ駆動回路29、カッターモータ30、フルカット機構31、ハーフカット機構32、テープ幅検出スイッチ33を備える。
In addition to the above-described configuration, the
制御部2は、例えばCPU(Central Processing Unit)などのプロセッサ2aを含む。制御部2は、ROM4に記憶されているプログラムをRAM5に展開し実行することで、印刷装置1の各部の動作を制御する。通信インターフェース3は、有線通信又は無線通信により外部装置(例えば、電子機器100)との間でデータを授受する。
The
ROM4には、被印刷媒体Mに印刷を行う印刷プログラム、印刷プログラムの実行に必要な各種データ(例えば、フォント等)が記憶されている。なお、ROM4は、制御部2によって読取り可能なプログラムが記憶された記憶媒体としても機能する。RAM5は、印刷データを記憶する印刷データメモリであり、プログラムの実行に用いられるワークメモリである。
The
ヘッド駆動回路24は、印刷データとストローブ信号に基づいてサーマルヘッド25が有する発熱素子25aへの通電を行う。サーマルヘッド25は、主走査方向に配列された複数の発熱素子25aを有する印刷ヘッドである。サーマルヘッド25には、サーマルヘッド25の温度を測定するサーミスタ23が埋め込まれている。サーマルヘッド25は、発熱素子25aでインクリボンを加熱して熱転写により被印刷媒体Mに一ラインずつ印刷を行う。
The
搬送用モータ駆動回路28は、搬送用モータ27を駆動する。搬送用モータ27は、例えばステッピングモーターであり、プラテンローラ26を回転させる。プラテンローラ26は、搬送用モータ27の動力によって回転し、被印刷媒体Mの長手方向(副走査方向、搬送方向)に被印刷媒体Mを搬送する。
The transport
カッターモータ駆動回路29は、カッターモータ30を駆動する。フルカット機構31及びハーフカット機構32は、カッターモータ30の動力によって動作し、被印刷媒体Mをフルカット又はハーフカットする。フルカットとは、被印刷媒体Mの基材を剥離紙とともに被印刷媒体Mの幅方向に沿って切断する動作のことであり、ハーフカットは、基材のみを幅方向に沿って切断する動作のことである。カッターモータ駆動回路29は、例えば、ボタン22dが押下されるとカッターモータ30を駆動してフルカット機構31に被印刷媒体Mをフルカットさせてもよい。
The cutter
テープ幅検出スイッチ33は、テープカセットの形状に基づいて被印刷媒体Mの幅を検出するためのスイッチである。テープ幅検出スイッチ33は、カセット収容部に複数設けられている。テープ幅の異なるテープカセットは、複数のテープ幅検出スイッチ33をそれぞれ異なる組み合わせで押下するように構成されている。制御部2は、押下されたテープ幅検出スイッチ33の組み合わせから、テープカセットの種類を特定し、被印刷媒体Mの幅(テープ幅)を検出する。
The tape
電子機器100は、図1及び図2に示すように、表示部101と入力部103と撮像装置104を備える、例えば、スマートフォン、タブレット端末などの携帯型のコンピュータである。表示部101は、例えば、液晶ディスプレイであっても、有機エレクトロルミネッセンス(有機EL)ディスプレイであってもよい。入力部103は、例えば、タッチパネルである。撮像装置104は、例えば、CMOS(Complementary Metal Oxide Semiconductor)センサなどの撮像素子を備えるカメラモジュールであり、後述する参照画像を取得する。
As shown in FIGS. 1 and 2, the
電子機器100は、上記の構成に加えて、表示駆動回路102、ストレージ105、通信インターフェース106、ROM107、RAM108、制御部109を備える。表示駆動回路102は、例えば、液晶表示ドライバ回路、有機EL表示ドライバ回路である。ストレージ105は、複数の文字書式を記憶した記憶部である。文字書式とは、文字に設定される書式のことであり、文字の体裁についての設定である。文字書式には、フォント、フォントサイズ、文字の色、斜体、下線、太字などが含まれる。制御部109は、プロセッサ110を備える。プロセッサ110は、演算部であり、アプリケーションプログラムを実行することで、印刷装置1で被印刷媒体Mに印刷する文字を編集する。
In addition to the above configuration, the
図3は、文字編集処理のフローチャートの一例である。図4は、フォント設定前のラベル編集画面の一例である。図5は、参照画像の取得方法を説明するための図である。図6は、参照画像表示画面の一例である。図7は、フォント選択画面の一例である。図8は、フォント選択後のラベル編集画面の一例である。以下、図3から図8を参照しながら、電子機器100で行われる図3に示す文字編集処理について説明する。
FIG. 3 is an example of a flowchart of the character editing process. FIG. 4 is an example of the label editing screen before setting the font. FIG. 5 is a diagram for explaining a method of acquiring a reference image. FIG. 6 is an example of a reference image display screen. FIG. 7 is an example of a font selection screen. FIG. 8 is an example of a label editing screen after selecting a font. Hereinafter, the character editing process shown in FIG. 3 performed by the
図3に示す文字編集処理は、フォント設定を変更して文字を編集する処理である。図3に示す文字編集処理は、例えば、電子機器100が被印刷媒体Mに印刷する文字を編集するアプリケーションを実行中に、図4に示すラベル編集画面上でフォント設定ボタンB1を押下することで開始される。図4には、ラベル編集画面中の編集領域ERに編集対象文字C1(ここでは、“ABC計算機”)が入力されている例が示されている。なお、編集対象文字とは、フォントなどの文字書式の変更によって編集の対象となる文字のことである。
The character editing process shown in FIG. 3 is a process of editing characters by changing font settings. The character editing process shown in FIG. 3 is performed by, for example, pressing the font setting button B1 on the label editing screen shown in FIG. 4 while the
文字編集処理が開始されると、まず、プロセッサ110は、編集対象文字C1の文字情報を取得する(ステップS1)。なお、文字情報は、文字書式の設定に依存しない文字の内容のことであり、例えば文字コードなどで特定される。また、文字とは、文字の内容(文字情報)に加えて文字の体裁を含むものであり、同じ文字情報を有していても、互いに異なる体裁(フォントなどの書式)を有している複数の文字は、互いに異なる文字として扱われる。 When the character editing process is started, the processor 110 first acquires the character information of the character C1 to be edited (step S1). The character information is the content of characters that does not depend on the setting of the character format, and is specified by, for example, a character code. In addition, the characters include the appearance of the characters in addition to the content of the characters (character information), and even if they have the same character information, they have different appearances (formats such as fonts). Characters are treated as different characters from each other.
次に、プロセッサ110は、参照画像M1を取得する(ステップS2)。ここで、参照画像M1とは、利用者が編集対象文字に対して設定したい文字書式(ここでは、フォント)が設定されている文字(以降、参照文字と記す)を含む画像である。参照画像M1は、例えば、利用者が電子機器100を操作することでインターネット上から取得してもよく、利用者が電子機器100の撮像装置104で対象物を撮影することによって取得した画像であってもよい。
Next, the processor 110 acquires the reference image M1 (step S2). Here, the reference image M1 is an image including characters (hereinafter, referred to as reference characters) in which a character format (here, a font) that the user wants to set for the character to be edited is set. The reference image M1 may be acquired from the Internet by, for example, operating the
なお、図5には、利用者が電子機器100の撮像装置104でポスター(対象物)200を撮影して、参照画像M1を取得した例が示されている。また、図6(a)には、取得した参照画像M1が表示部101に表示されている例が示されている。
Note that FIG. 5 shows an example in which the user photographs the poster (object) 200 with the
参照画像M1が取得されると、プロセッサ110は、参照画像M1から参照文字C11の文字情報を取得する(ステップS3)。参照文字C11(ここでは、“XYZ自動車”)の文字情報は、例えば、画像から文字情報を抽出する光学文字認識(OCR)などの技術を用いて、取得される。 When the reference image M1 is acquired, the processor 110 acquires the character information of the reference character C11 from the reference image M1 (step S3). The character information of the reference character C11 (here, "XYZ automobile") is acquired by using a technique such as optical character recognition (OCR) for extracting the character information from the image.
なお、参照文字C11以外の文字等が参照画像M1に含まれている場合には、プロセッサ110は、まず、利用者からの入力に従って参照画像M1上で注目領域を設定する前処理を行い、その後、注目領域から参照文字C11の文字情報を取得するようにしてもよい。ここで、注目領域は、参照画像M1内の選択された領域であり、参照文字C11を含む領域である。これにより、参照文字C11の文字情報をより確実に取得することができる。図6(b)には、参照画像M2上で参照文字C11を含む注目領域ROI(破線で囲んだ領域)が設定された例が示されている。 When characters other than the reference character C11 are included in the reference image M1, the processor 110 first performs preprocessing for setting a region of interest on the reference image M1 according to an input from the user, and then performs preprocessing. , The character information of the reference character C11 may be acquired from the region of interest. Here, the region of interest is a selected region in the reference image M1 and is an region including the reference character C11. As a result, the character information of the reference character C11 can be acquired more reliably. FIG. 6B shows an example in which a region of interest ROI (region surrounded by a broken line) including the reference character C11 is set on the reference image M2.
参照文字C11の文字情報が取得されると、プロセッサ110は、複数の比較用画像を生成する(ステップS4)。具体的には、プロセッサ110は、参照文字C11の文字情報とストレージ105に記憶されている複数のフォントとに基づいて、各々が参照文字C11に対応する文字を含む、複数の比較用画像を生成する。図6(c)に複数の比較用画像P1〜Pnの一例を示す。ここで、複数の比較用画像の各々に含まれる、参照文字C11に対応する文字とは、参照文字C11と同じ文字情報を有する文字であり、参照文字C11に、ストレージ105に記憶されている、互いに異なる複数のフォントの各々が適用されたものである。即ち、複数の比較用画像は、参照文字C11に複数のフォントの各々を適用した複数の画像である。
When the character information of the reference character C11 is acquired, the processor 110 generates a plurality of comparison images (step S4). Specifically, the processor 110 generates a plurality of comparison images, each including a character corresponding to the reference character C11, based on the character information of the reference character C11 and the plurality of fonts stored in the
複数の比較用画像が生成されると、プロセッサ110は、ステップS2で取得した参照画像M1における参照文字C11の画像とステップS4で生成した複数の比較用画像の各々との類似度を算出する(ステップS5)。類似度とは、2つの画像がどの程度似ているかを定量的に表したものである。画像間の類似度を算出する手法としては様々な手法が知られている。ステップS5で使用する算出方法は、特定の方法に限定されるものではない。例えば、画像間の類似度は、画像から生成したLPB(ローカルバイナリパターン)に基づいて算出されてもよい。また、Average Hashと呼ばれる類似度計算手法を用いて類似度を算出してもよい。その他、例えば、差分二乗和(SSD)、差分絶対値和(SAD)、正規化相互相関(NNC)を算出することで類似度を算出してもよい。ここで、参照画像M1が撮像装置104で対象物を撮影することによって取得されたものである場合に、対象物を正面からずれた位置から撮影していて、対象物が歪んでいる場合がある。このような場合に、例えば、参照画像M1を変形させて、対象物を正面から撮影した場合の画像に近づけるようにしたうえで、上述の処理を行うことが好ましい。
When a plurality of comparison images are generated, the processor 110 calculates the similarity between the image of the reference character C11 in the reference image M1 acquired in step S2 and each of the plurality of comparison images generated in step S4 (). Step S5). The degree of similarity is a quantitative expression of how similar the two images are. Various methods are known as methods for calculating the similarity between images. The calculation method used in step S5 is not limited to a specific method. For example, the similarity between images may be calculated based on the LPB (local binary pattern) generated from the images. Further, the similarity may be calculated by using a similarity calculation method called Average Hash. In addition, for example, the similarity may be calculated by calculating the difference squared sum (SSD), the difference absolute value sum (SAD), and the normalized cross-correlation (NNC). Here, when the reference image M1 is acquired by photographing the object with the
類似度が算出されると、プロセッサ110は、ステップS5で算出された類似度に基づいて、ストレージ105に記憶されている複数のフォントから少なくとも1つのフォントを選択する(ステップS6)。ここでは、プロセッサ110は、例えば、複数の比較用画像における、参照画像M1との類似度が閾値以上となる比較用画像に設定されているフォントを特定して、これを少なくとも1つ以上の特定のフォントとして選択してもよい。これにより、類似するフォントの存在を見逃すことを防止することができる。なお、閾値は利用者によって任意に変更されてもよい。プロセッサ110は、例えば、複数の比較用画像における、参照画像M1における参照文字C11の画像との類似度が高い上位所定数の比較用画像に設定されている所定数のフォントを特定して、これを少なくとも1つ以上の特定のフォントとして設定してもよい。これにより、類似するフォントの数を予め表示部101の大きさなどに応じた望ましい数に絞り込むことができる。なお、所定数は利用者によって任意に変更されてもよい。
When the similarity is calculated, the processor 110 selects at least one font from the plurality of fonts stored in the
その後、プロセッサ110は、互いに異なるフォントが設定されている候補文字の画像をリスト表示する(ステップS7)。ここでは、プロセッサ110は、ステップS6で選択された少なくとも1つの特定のフォントを編集対象文字C1に適用して、編集対象文字C1に対応する少なくとも1つの候補文字を得る。少なくとも1つの候補文字は、いずれも、編集対象文字C1と同じ文字情報を有している。その後、プロセッサ110は、得られた少なくとも1つの候補文字の画像を表示部101にリスト表示する。これにより、少なくとも1つのフォントの各々が適用されている少なくとも1つの候補文字の画像が表示部101に表示される。なお、図7には、4つの候補文字の画像Q1〜Q4(候補文字C2、候補文字C3、候補文字C4、候補文字C5の画像)が表示部101にリスト状に表示されている例が示されている。
After that, the processor 110 displays a list of images of candidate characters in which different fonts are set (step S7). Here, the processor 110 applies at least one specific font selected in step S6 to the edit target character C1 to obtain at least one candidate character corresponding to the edit target character C1. At least one candidate character has the same character information as the edit target character C1. After that, the processor 110 displays a list of the obtained images of at least one candidate character on the
次に、プロセッサ110は、利用者による候補文字の選択を監視する(ステップS8)。そして、プロセッサ110は、表示部101に表示された少なくとも1つの候補文字の画像から1つの候補文字の画像の選択を受け付けると、選択された1つの候補文字(以降、第1の候補文字と記す)に適用されているフォントを、編集対象文字C1に適用する(ステップS9)。ここでは、プロセッサ110は、フォントの適用により編集対象文字C1を第1の印刷対象文字に編集し、ラベル編集画面の表示を更新する。図8には、図7に示すフォント選択画面で候補文字C2が選択された結果、ラベル編集画面の編集領域ER中の編集対象文字C1が印刷対象文字C2に編集されて、編集対象文字C1にフォントを適用した印刷対象文字C2を印刷対象の文字に設定した例が示されている。
Next, the processor 110 monitors the selection of the candidate character by the user (step S8). Then, when the processor 110 accepts the selection of the image of one candidate character from the image of at least one candidate character displayed on the
最後に、プロセッサ110は、図3に示す文字編集処理を終了するか否かを判定し(ステップS10)、文字編集処理を終了すると判定されるまで、ステップS1からステップS10の処理を繰り返す。 Finally, the processor 110 determines whether or not to end the character editing process shown in FIG. 3 (step S10), and repeats the processes of steps S1 to S10 until it is determined that the character editing process is completed.
電子機器100では、利用者が編集対象文字に対して設定したいフォントが設定されている文字(参照文字)を含む画像を選択することで、編集対象文字にそのフォントと同一又は類似したフォントを設定(適用)した候補文字の画像がリスト表示される。このため、利用者は、リスト表示された候補文字の画像から任意の文字を選択するだけで、編集対象文字を好みのフォントに容易に編集することができる。従って、電子機器100によれば、文字編集に要する利用者の作業負担を軽減することができる。
In the
図3ではフォント設定を変更することで文字を編集する処理を例示したが、電子機器100は、フォント設定に限らず文字書式全般の設定を変更することで文字を編集しても良い。
Although FIG. 3 illustrates the process of editing characters by changing the font settings, the
図9は、文字編集処理のフローチャートの変形例である。図10は、参照画像表示画面の別の例である。図11は、フォント選択画面の別の例である。以下、図9から図11を参照しながら、電子機器100で行われる図9に示す文字編集処理について説明する。
FIG. 9 is a modified example of the flowchart of the character editing process. FIG. 10 is another example of the reference image display screen. FIG. 11 is another example of the font selection screen. Hereinafter, the character editing process shown in FIG. 9 performed by the
図9に示す文字編集処理は、文字書式全般(フォントに加えて、斜体、下線、太字などを含む)の設定を変更して文字を編集する処理である。図9に示す文字編集処理は、例えば、電子機器100が被印刷媒体Mに印刷する文字を編集するアプリケーションを実行中に、ラベル編集画面上で文字書式を設定する設定ボタンを押下することで開始される。
The character editing process shown in FIG. 9 is a process of editing characters by changing the settings of general character formats (including italics, underlines, bold characters, etc. in addition to fonts). The character editing process shown in FIG. 9 is started by, for example, pressing a setting button for setting a character format on the label editing screen while the
文字編集処理が開始されると、まず、プロセッサ110は、編集対象文字C1の文字情報を取得する(ステップS11)。次いで、参照画像M3を取得し(ステップS12)、参照画像M3から参照文字C12の文字情報を取得する(ステップS13)。なお、ステップS11からステップS13の処理は、図3に示すステップS1からステップS3の処理と同様である。図10には、ステップS12で取得した参照画像M3が表示部101に表示されている例が示されている。参照画像M3には、下線が付された参照文字C12が含まれている。
When the character editing process is started, the processor 110 first acquires the character information of the character C1 to be edited (step S11). Next, the reference image M3 is acquired (step S12), and the character information of the reference character C12 is acquired from the reference image M3 (step S13). The processing of steps S11 to S13 is the same as the processing of steps S1 to S3 shown in FIG. FIG. 10 shows an example in which the reference image M3 acquired in step S12 is displayed on the
次に、プロセッサ110は、複数の比較用画像を生成する(ステップS14)。具体的には、プロセッサ110は、参照文字C12の文字情報とストレージ105に記憶されている複数の文字書式とに基づいて、各々が参照文字C12に対応する文字を含む、複数の比較用画像を生成する。複数の比較用画像に含まれる参照文字C12に対応する文字の各々に適用されている文字書式は互いに異なっており、それぞれストレージ105に記憶されている。
Next, the processor 110 generates a plurality of comparison images (step S14). Specifically, the processor 110 produces a plurality of comparison images, each containing a character corresponding to the reference character C12, based on the character information of the reference character C12 and the plurality of character formats stored in the
複数の比較用画像が生成されると、プロセッサ110は、ステップS12で取得した参照画像M3における参照文字C12の画像とステップS14で生成した複数の比較用画像の各々との類似度を算出し(ステップS15)、類似度に基づいて少なくとも1つの特定の文字書式を選択する(ステップS16)。なお、ステップS15の処理は、図3に示すステップS5の処理と同様である。また、ステップS16の処理は、フォントの代わりに文字書式を選択する点を除き、図3に示すステップS6の処理と同様である。 When a plurality of comparison images are generated, the processor 110 calculates the similarity between the image of the reference character C12 in the reference image M3 acquired in step S12 and each of the plurality of comparison images generated in step S14 ( Step S15), select at least one particular character format based on similarity (step S16). The process of step S15 is the same as the process of step S5 shown in FIG. Further, the process of step S16 is the same as the process of step S6 shown in FIG. 3, except that a character format is selected instead of the font.
その後、プロセッサ110は、互いに異なる文字書式が適用されている候補文字の画像をリスト表示する(ステップS17)。ここでは、プロセッサ110は、ステップS16で選択された少なくとも1つの特定の文字書式を編集対象文字C1に設定して、編集対象文字C1に対応する少なくとも1つの候補文字を得る。その後、プロセッサ110は、得られた少なくとも1つの候補文字の画像を表示部101にリスト表示する。これにより、少なくとも1つの文字書式の各々が適用されている少なくとも1つの候補文字の画像が表示部101に表示される。なお、図11には、4つの候補文字の画像Q5〜Q8(候補文字C6、候補文字C7、候補文字C8、候補文字C9の画像)が表示部101にリスト状に表示されている例が示されている。
After that, the processor 110 displays a list of images of candidate characters to which different character formats are applied (step S17). Here, the processor 110 sets at least one specific character format selected in step S16 to the edit target character C1 to obtain at least one candidate character corresponding to the edit target character C1. After that, the processor 110 displays a list of the obtained images of at least one candidate character on the
次に、プロセッサ110は、利用者による候補文字の選択を監視し(ステップS18)、1つの候補文字の画像の選択を受け付けると、選択された1つの候補文字に適用されている文字書式を、編集対象文字C1に適用する(ステップS19)。これにより、編集対象文字C1が編集されて、ラベル編集画面の表示が更新される。その後、プロセッサ110は、文字編集処理を終了すると判定されるまで(ステップS20YES)、ステップS11からステップS20の処理を繰り返す。 Next, the processor 110 monitors the selection of the candidate character by the user (step S18), and when the selection of the image of one candidate character is accepted, the character format applied to the selected one candidate character is changed. It is applied to the character to be edited C1 (step S19). As a result, the edit target character C1 is edited, and the display of the label edit screen is updated. After that, the processor 110 repeats the processes from step S11 to step S20 until it is determined that the character editing process is completed (step S20YES).
電子機器100が図9に示す文字編集処理を行うことで、利用者は、リストされた候補文字から任意の文字を選択するだけで、編集対象文字を好みの文字書式に容易に編集することができる。従って、電子機器100によれば、文字編集に要する利用者の作業負担を軽減することができる。
図9では文字書式の設定を変更することで文字を編集する処理を例示したが、電子機器100は、さらに、文字書式の設定に加えて余白の設定を行ってもよい。
When the
Although FIG. 9 illustrates a process of editing characters by changing the character format setting, the
図12は、文字編集処理のフローチャートの別の変形例である。図13は、印刷物と参照文字のサイズ比率の算出方法を説明するための図である。以下、図12及び図13を参照しながら、電子機器100で行われる図12に示す文字編集処理について説明する。
FIG. 12 is another modified example of the flowchart of the character editing process. FIG. 13 is a diagram for explaining a method of calculating the size ratio between the printed matter and the reference character. Hereinafter, the character editing process shown in FIG. 12 performed by the
図12に示す文字編集処理では、印刷データを送信する際に、文字書式に加えて余白の設定が行われる。なお、図12に示す文字編集処理は、図9に示す文字編集処理と同様に、ラベル編集画面上で文字書式を設定する設定ボタンを押下することで開始される。ステップS21からステップS30までの処理は、図9に示すステップS11からステップS20までの処理と同様である。以降では、ステップS22において、図13に示すような、参照画像M4が取得された場合を例に説明する。参照画像M4は、参照文字C14が印刷されたラベルである印刷物Pを撮像した画像である。 In the character editing process shown in FIG. 12, when the print data is transmitted, a margin is set in addition to the character format. The character editing process shown in FIG. 12 is started by pressing the setting button for setting the character format on the label editing screen, similarly to the character editing process shown in FIG. The processing from step S21 to step S30 is the same as the processing from step S11 to step S20 shown in FIG. Hereinafter, in step S22, a case where the reference image M4 as shown in FIG. 13 is acquired will be described as an example. The reference image M4 is an image obtained by capturing a printed matter P which is a label on which the reference character C14 is printed.
プロセッサ110は、ステップS30で編集終了と判定すると、印刷指示が入力されたか否かを判定する(ステップS31)。ここでは、プロセッサ110は、例えば、ラベル編集画面の印刷ボタンB2が押下されたか否かを判定する。 When the processor 110 determines in step S30 that the editing is completed, it determines whether or not a print instruction has been input (step S31). Here, the processor 110 determines, for example, whether or not the print button B2 on the label editing screen is pressed.
印刷指示が入力されていないと判定すると、プロセッサ110は、図12に示す文字編集処理を終了する。一方、印刷指示が入力されたと判定すると、プロセッサ110は、被印刷媒体Mのサイズの情報を印刷装置1から取得する(ステップS32)。ここでは、プロセッサ110は、例えば、通信IF106を介して印刷装置1に情報を要求することで、印刷装置1から被印刷媒体Mのサイズの情報を取得する。被印刷媒体Mのサイズの情報は、被印刷媒体Mがテープ部材の場合であれば、例えば、テープ幅である。
If it is determined that the print instruction has not been input, the processor 110 ends the character editing process shown in FIG. On the other hand, if it is determined that the print instruction has been input, the processor 110 acquires the size information of the print medium M from the printing device 1 (step S32). Here, the processor 110 acquires information on the size of the print medium M from the
次に、プロセッサ110は、ステップS22で取得した参照画像M4に基づいて、参照画像M4に表れる印刷物PのサイズL1と印刷物Pに印刷された参照文字C14のサイズL2との比率を算出する(ステップS33)。上記のサイズ(サイズL1とサイズL4)は、いずれも参照画像M4中でのサイズであってもよい。 Next, the processor 110 calculates the ratio of the size L1 of the printed matter P appearing in the reference image M4 to the size L2 of the reference character C14 printed on the printed matter P based on the reference image M4 acquired in step S22 (step). S33). Both of the above sizes (size L1 and size L4) may be the sizes in the reference image M4.
その後、プロセッサ110は、被印刷媒体Mに印刷する文字のサイズを設定する(ステップS34)。ここでは、プロセッサ110は、ステップS32で取得した被印刷媒体Mのサイズの情報とステップS33で算出した比率の値とに基づいて、被印刷媒体Mに印刷する文字のサイズ、即ち、ステップS29で編集された候補文字のサイズを決定し、設定する。具体的には、プロセッサ110は、例えば、被印刷媒体Mのサイズと比率(L2/L1)の積を候補文字のサイズに設定する。 After that, the processor 110 sets the size of the characters to be printed on the print medium M (step S34). Here, the processor 110 prints on the print medium M based on the size information of the print medium M acquired in step S32 and the ratio value calculated in step S33, that is, in step S29. Determine and set the size of the edited candidate character. Specifically, the processor 110 sets, for example, the product of the size of the print medium M and the ratio (L2 / L1) to the size of the candidate characters.
最後に、プロセッサ110は、ステップS29で編集された候補文字とステップS34で設定したフォントサイズを含む印刷データを印刷装置1に送信し(ステップS35)、図12に示す文字編集処理を終了する。これにより、印刷物Pにおける参照文字C14と余白のバランスと同じバランスで、編集された候補文字が被印刷媒体Mに印刷される。 Finally, the processor 110 transmits the print data including the candidate character edited in step S29 and the font size set in step S34 to the printing device 1 (step S35), and ends the character editing process shown in FIG. As a result, the edited candidate character is printed on the print medium M with the same balance as the balance between the reference character C14 and the margin in the printed matter P.
電子機器100が図12に示す文字編集処理を行うことで、利用者は、リストされた候補文字から任意の文字を選択するだけで、編集対象文字を好みの文字書式に容易に編集することができる。さらに、利用者は、余白の設定についても、参照画像と同じバランスに容易に設定することができる。従って、電子機器100によれば、文字編集に要する利用者の作業負担を軽減することができる。
When the
上述した実施形態は、発明の理解を容易にするために具体例を示したものであり、本発明は上述した実施形態に限定されるものではない。プログラム、文字編集方法、及び、電子機器は、特許請求の範囲の記載を逸脱しない範囲において、さまざまな変形、変更が可能である。例えば、図1では、電子機器100が携帯型のコンピュータである例を示したが、据え置き型のコンピュータであってもよい。また、図3、図9、図12では、複数のフォント又は文字書式を選択する例を示したが、1つのフォント又は文字書式を選択してもよく、選択された1つの文字書式を編集対象文字に設定することで編集対象文字を設定しても良い。
The above-described embodiment shows a specific example for facilitating the understanding of the invention, and the present invention is not limited to the above-mentioned embodiment. The program, character editing method, and electronic device can be modified and changed in various ways without departing from the description of the claims. For example, although FIG. 1 shows an example in which the
以下、本願の出願当初の特許請求の範囲に記載された発明を付記する。
[付記1]
文字を編集するコンピュータで実行される文字編集方法であって、
参照文字の画像を含む参照画像から前記参照文字の文字情報を取得するステップと、
前記参照文字の文字情報と、記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成するステップと、
前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出するステップと、
入力された編集対象文字に、前記複数の文字書式における、前記類似度に基づく少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を表示部に表示させるステップと、
を含むことを特徴とする編集方法。
[付記2]
付記1に記載の編集方法は、
前記表示部に表示された前記少なくとも1つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定するステップを含むことを特徴とする編集方法。
[付記3]
付記2に記載の編集方法は、
印刷装置から被印刷媒体のサイズの情報を取得するステップと、
前記参照画像に基づいて、前記参照画像中の、前記参照文字が印刷されている印刷物のサイズと、前記印刷物に印刷されている前記参照文字のサイズと、の比率を算出するステップと、
前記被印刷媒体のサイズの情報と前記比率の値とに基づいて前記特定の候補文字のサイズを決定するステップと、
を含むことを特徴とする編集方法。
[付記4]
付記1乃至付記3にいずれか1つに記載の編集方法は、
前記類似度に基づいて、前記複数の文字書式から前記少なくとも一つの文字書式を選択するステップを含むことを特徴とする編集方法。
[付記5]
付記4に記載の編集方法において、
前記文字書式を選択するステップは、
前記複数の文字書式のうちの、前記参照文字の画像との前記類似度が閾値以上の前記比較用画像に適用されている文字書式を前記少なくとも1つ以上の文字書式として選択するステップを含むことを特徴とする編集方法。
[付記6]
付記4又は付記5に記載の編集方法において、
前記文字書式を選択するステップは、
前記複数の文字書式のうちの、前記参照文字画像との前記類似度が高い上位所定数の前記比較用画像に適用されている文字書式を前記少なくとも1つ以上の文字書式として選択するステップを含むことを特徴とする編集方法。
[付記7]
付記1乃至付記6のいずれか1つに記載の編集方法は、
前記参照画像内の選択された領域の画像から前記参照文字の文字情報を取得するステップを含むことを特徴とする編集方法。
[付記8]
付記1乃至付記7のいずれか1つに記載の編集方法において、
前記文字書式は、フォント、フォントサイズ、文字の色、斜体、下線、太字の少なくとも何れかを含んでいることを特徴とする編集方法。
[付記9]
複数の文字書式の情報を記憶した記憶部と、
表示部と、
演算部と、を備え、
前記演算部は、
参照文字の画像を含む参照画像から前記参照文字の文字情報を取得し、
前記参照文字の文字情報と、前記記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成し、
前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出し、
入力された編集対象文字に、前記複数の文字書式における、前記類似度に基づく少なくとも一つの文字書式を適用した少なくとも一つの候補文字画像を前記表示部に表示させることを特徴とする電子機器。
[付記10]
付記9に記載の電子機器において、さらに、
前記参照画像を取得する撮像装置を備えることを特徴とする電子機器。
[付記11]
参照文字の画像を含む参照画像から前記参照文字の文字情報を取得し、
前記参照文字の文字情報と、記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成し、
前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出し、
入力された編集対象文字に、前記類似度に基づいた少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を表示部に表示させる処理を前記コンピュータに実行させることを特徴とするプログラム。
Hereinafter, the inventions described in the claims at the time of filing the application of the present application will be added.
[Appendix 1]
Editing characters A character editing method performed on a computer.
The step of acquiring the character information of the reference character from the reference image including the image of the reference character, and
A step of generating a plurality of comparison images in which each of the plurality of character formats is applied to the reference character based on the character information of the reference character and the plurality of character formats stored in the storage unit.
A step of calculating the similarity between the image of the reference character and each of the plurality of comparison images, and
A step of displaying an image of at least one candidate character to which at least one character format based on the similarity in the plurality of character formats is applied to the input character to be edited, and a step of displaying the image on the display unit.
An editing method characterized by including.
[Appendix 2]
The editing method described in
When an image of a specific candidate character to which a specific character format is applied to the edit target character is selected from the image of the at least one candidate character displayed on the display unit, the specific candidate character is selected as the edit target character. An editing method characterized by including a step of setting a character to which a character format is applied as a character to be printed.
[Appendix 3]
The editing method described in
Steps to obtain information on the size of the print medium from the printing device,
A step of calculating the ratio of the size of the printed matter on which the reference character is printed and the size of the reference character printed on the printed matter in the reference image based on the reference image.
A step of determining the size of the specific candidate character based on the size information of the print medium and the value of the ratio, and
An editing method characterized by including.
[Appendix 4]
The editing method described in any one of
An editing method comprising the step of selecting the at least one character format from the plurality of character formats based on the similarity.
[Appendix 5]
In the editing method described in
The step of selecting the character format is
Including a step of selecting as the at least one or more character formats of the plurality of character formats applied to the comparison image whose similarity with the image of the reference character is equal to or greater than a threshold value. An editing method characterized by.
[Appendix 6]
In the editing method described in
The step of selecting the character format is
The step includes selecting, as the at least one or more character formats, a character format applied to a predetermined number of higher-order comparison images having a high degree of similarity to the reference character image among the plurality of character formats. An editing method characterized by that.
[Appendix 7]
The editing method described in any one of
An editing method comprising the step of acquiring character information of the reference character from an image of a selected area in the reference image.
[Appendix 8]
In the editing method described in any one of
The editing method, wherein the character format includes at least one of a font, a font size, a character color, italics, an underline, and bold characters.
[Appendix 9]
A storage unit that stores information in multiple character formats,
Display and
With a calculation unit,
The calculation unit
The character information of the reference character is acquired from the reference image including the image of the reference character, and the character information is obtained.
Based on the character information of the reference character and the plurality of character formats stored in the storage unit, a plurality of comparison images in which each of the plurality of character formats is applied to the reference character are generated.
The degree of similarity between the image of the reference character and each of the plurality of comparison images is calculated.
An electronic device characterized in that at least one candidate character image obtained by applying at least one character format based on the similarity in the plurality of character formats to the input characters to be edited is displayed on the display unit.
[Appendix 10]
In the electronic device described in
An electronic device including an imaging device that acquires the reference image.
[Appendix 11]
The character information of the reference character is acquired from the reference image including the image of the reference character, and the character information is obtained.
Based on the character information of the reference character and the plurality of character formats stored in the storage unit, a plurality of comparison images in which each of the plurality of character formats is applied to the reference character are generated.
The degree of similarity between the image of the reference character and each of the plurality of comparison images is calculated.
A program characterized in that the computer executes a process of displaying an image of at least one candidate character to which at least one character format based on the similarity is applied to an input character to be edited.
1・・・印刷装置、2、109・・・制御部、2a、110・・・プロセッサ、3、106・・・通信IF、4、107・・・ROM、5、108・・・RAM、10・・・蓋部、11・・・窓、20・・・装置筐体、20a・・・排出口、21、22a、22b、22c、22d、B1、B2・・・ボタン、23・・・サーミスタ、24・・・ヘッド駆動回路、25・・・サーマルヘッド、25a・・・発熱素子、26・・・プラテンローラ、27・・・搬送用モータ、28・・・搬送用モータ駆動回路、29・・・カッターモータ駆動回路、30・・・カッターモータ、31・・・フルカット機構、32・・・ハーフカット機構、33・・・テープ幅検出スイッチ、100・・・電子機器、101・・・表示部、102・・・表示駆動回路、103・・・入力部、104・・・撮像装置、105・・・ストレージ、200・・・ポスター、C1・・・編集対象文字、C2、C3、C4、C5、C6、C7、C8、C9・・・候補文字、C11、C12、C13・・・参照文字、ER・・・編集領域、M・・・被印刷媒体、M1、M2、M3、M4・・・参照画像、P・・・印刷物、P1、P2、P3、Pn・・・比較用画像、Q1、Q2、Q3、Q4、Q5、Q6、Q7、Q8・・・画像、R・・・インクリボン、SR・・・選択領域 1 ... Printing device, 2,109 ... Control unit, 2a, 110 ... Processor, 3,106 ... Communication IF, 4,107 ... ROM, 5,108 ... RAM, 10 ... lid, 11 ... window, 20 ... device housing, 20a ... outlet, 21, 22a, 22b, 22c, 22d, B1, B2 ... button, 23 ... thermistor , 24 ... head drive circuit, 25 ... thermal head, 25a ... heat generating element, 26 ... platen roller, 27 ... transfer motor, 28 ... transfer motor drive circuit, 29. Cutter motor drive circuit, 30 ... Cutter motor, 31 ... Full cut mechanism, 32 ... Half cut mechanism, 33 ... Tape width detection switch, 100 ... Electronic equipment, 101 ... Display unit, 102 ... Display drive circuit, 103 ... Input unit, 104 ... Imaging device, 105 ... Storage, 200 ... Poster, C1 ... Editing target character, C2, C3, C4 , C5, C6, C7, C8, C9 ... Candidate characters, C11, C12, C13 ... Reference characters, ER ... Editing area, M ... Printed media, M1, M2, M3, M4 ... ... Reference image, P ... Printed matter, P1, P2, P3, Pn ... Comparison image, Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8 ... Image, R ... Ink Ribbon, SR ... Selection area
Claims (10)
参照文字の画像を含む参照画像から前記参照文字の文字情報を取得するステップと、
前記参照文字の文字情報と、記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成するステップと、
前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出するステップと、
入力された編集対象文字に、前記類似度に基づいて前記複数の文字書式から少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を表示部に表示させるステップと、
前記表示部に表示された前記少なくとも一つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定するステップと、
を含むことを特徴とする文字編集方法。 Editing characters A character editing method performed on a computer.
The step of acquiring the character information of the reference character from the reference image including the image of the reference character, and
A step of generating a plurality of comparison images in which each of the plurality of character formats is applied to the reference character based on the character information of the reference character and the plurality of character formats stored in the storage unit.
A step of calculating the similarity between the image of the reference character and each of the plurality of comparison images, and
A step of displaying an image of at least one candidate character to which at least one character format from the plurality of character formats is applied to the input character to be edited based on the similarity, and a step of displaying the image on the display unit.
When an image of a specific candidate character to which a specific character format is applied to the edit target character is selected from the image of the at least one candidate character displayed on the display unit, the specific candidate character is selected as the edit target character. Steps to set the characters to which the character format is applied as the characters to be printed, and
A character editing method characterized by including.
印刷装置から被印刷媒体のサイズの情報を取得するステップと、
前記参照画像に基づいて、前記参照画像中の、前記参照文字が印刷されている印刷物のサイズと、前記印刷物に印刷されている前記参照文字のサイズと、の比率を算出するステップと、
前記被印刷媒体のサイズの情報と前記比率の値とに基づいて前記特定の候補文字のサイズを決定するステップと、
を含むことを特徴とする文字編集方法。 The character editing method according to claim 1 is
Steps to obtain information on the size of the print medium from the printing device,
A step of calculating the ratio of the size of the printed matter on which the reference character is printed and the size of the reference character printed on the printed matter in the reference image based on the reference image.
A step of determining the size of the specific candidate character based on the size information of the print medium and the value of the ratio, and
A character editing method characterized by including.
前記類似度に基づいて、前記複数の文字書式から前記少なくとも一つの文字書式を選択するステップを含むことを特徴とする文字編集方法。 The character editing method according to claim 1 or 2.
A character editing method comprising the step of selecting the at least one character format from the plurality of character formats based on the similarity.
前記文字書式を選択するステップは、
前記複数の文字書式のうちの、前記参照文字の画像との前記類似度が閾値以上の前記比較用画像に適用されている文字書式を前記少なくとも一つ以上の文字書式として選択するステップを含むことを特徴とする文字編集方法。 In the character editing method according to claim 3,
The step of selecting the character format is
Including a step of selecting as the at least one or more character formats of the plurality of character formats applied to the comparison image whose similarity with the image of the reference character is equal to or greater than a threshold value. Character editing method characterized by.
前記文字書式を選択するステップは、
前記複数の文字書式のうちの、前記参照文字の画像との前記類似度が高い上位所定数の前記比較用画像に適用されている文字書式を前記少なくとも一つ以上の文字書式として選択するステップを含むことを特徴とする文字編集方法。
In the character editing method according to claim 3 or 4.
The step of selecting the character format is
A step of selecting, as the at least one or more character formats, a character format applied to a predetermined number of higher-order comparison images having a high degree of similarity to the image of the reference character among the plurality of character formats. A character editing method characterized by including.
前記参照画像内の選択された領域の画像から前記参照文字の文字情報を取得するステップを含むことを特徴とする文字編集方法。 The character editing method according to any one of claims 1 to 5.
A character editing method comprising a step of acquiring character information of the reference character from an image of a selected area in the reference image.
前記文字書式は、フォント、フォントサイズ、文字の色、斜体、下線、太字の少なくとも何れかを含んでいることを特徴とする文字編集方法。 In the character editing method according to any one of claims 1 to 6,
The character editing method is characterized in that the character format includes at least one of a font, a font size, a character color, italics, an underline, and bold characters.
表示部と、
演算部と、を備え、
前記演算部は、
参照文字の画像を含む参照画像から前記参照文字の文字情報を取得し、
前記参照文字の文字情報と、前記記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成し、
前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出し、
入力された編集対象文字に、前記類似度に基づいて前記複数の文字書式から少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を前記表示部に表示させ、
前記表示部に表示された前記少なくとも一つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定することを特徴とする電子機器。 A storage unit that stores information in multiple character formats,
Display and
With a calculation unit,
The calculation unit
The character information of the reference character is acquired from the reference image including the image of the reference character, and the character information is obtained.
Based on the character information of the reference character and the plurality of character formats stored in the storage unit, a plurality of comparison images in which each of the plurality of character formats is applied to the reference character are generated.
The degree of similarity between the image of the reference character and each of the plurality of comparison images is calculated.
An image of at least one candidate character to which at least one character format is applied from the plurality of character formats based on the similarity to the input character to be edited is displayed on the display unit .
When an image of a specific candidate character to which a specific character format is applied to the edit target character is selected from the image of the at least one candidate character displayed on the display unit, the specific candidate character is selected as the edit target character. electronic apparatus, characterized in that you set the character to which the character format to be printed characters.
前記参照画像を取得する撮像装置を備えることを特徴とする電子機器。 In the electronic device according to claim 8, further
An electronic device including an imaging device that acquires the reference image.
前記参照文字の文字情報と、記憶部に記憶されている複数の文字書式と、に基づいて、前記参照文字に前記複数の文字書式の各々を適用した複数の比較用画像を生成し、
前記参照文字の画像と前記複数の比較用画像の各々との類似度を算出し、
入力された編集対象文字に、前記類似度に基づいて前記複数の文字書式から少なくとも一つの文字書式を適用した少なくとも一つの候補文字の画像を表示部に表示させ、
前記表示部に表示された前記少なくとも一つの候補文字の画像から、前記編集対象文字に特定の文字書式が適用された特定の候補文字の画像が選択されたとき、前記編集対象文字に前記特定の文字書式を適用した文字を印刷対象文字に設定する処理をコンピュータに実行させることを特徴とするプログラム。 The character information of the reference character is acquired from the reference image including the image of the reference character, and the character information is obtained.
Based on the character information of the reference character and the plurality of character formats stored in the storage unit, a plurality of comparison images in which each of the plurality of character formats is applied to the reference character are generated.
The degree of similarity between the image of the reference character and each of the plurality of comparison images is calculated.
An image of at least one candidate character to which at least one character format is applied from the plurality of character formats based on the similarity is displayed on the display unit of the input character to be edited.
When an image of a specific candidate character to which a specific character format is applied to the edit target character is selected from the image of the at least one candidate character displayed on the display unit, the specific candidate character is selected as the edit target character. a program characterized by executing to set the character to which the character format to the print object character processing to computer.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016252073A JP6866636B2 (en) | 2016-12-26 | 2016-12-26 | Character editing methods, electronic devices, and programs |
CN201710975869.1A CN108241594B (en) | 2016-12-26 | 2017-10-19 | Character editing method, electronic device, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016252073A JP6866636B2 (en) | 2016-12-26 | 2016-12-26 | Character editing methods, electronic devices, and programs |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2018106422A JP2018106422A (en) | 2018-07-05 |
JP2018106422A5 JP2018106422A5 (en) | 2019-08-08 |
JP6866636B2 true JP6866636B2 (en) | 2021-04-28 |
Family
ID=62700859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016252073A Active JP6866636B2 (en) | 2016-12-26 | 2016-12-26 | Character editing methods, electronic devices, and programs |
Country Status (2)
Country | Link |
---|---|
JP (1) | JP6866636B2 (en) |
CN (1) | CN108241594B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111402367B (en) * | 2020-03-27 | 2023-09-26 | 维沃移动通信有限公司 | Image processing method and electronic equipment |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4624611B2 (en) * | 2001-09-06 | 2011-02-02 | セイコーエプソン株式会社 | CHARACTER INPUT DEVICE, TAPE PRINTING DEVICE HAVING THE SAME, AND CHARACTER INPUT METHOD FOR CHARACTER INPUT DEVICE |
JP4788106B2 (en) * | 2004-04-12 | 2011-10-05 | 富士ゼロックス株式会社 | Image dictionary creation device, encoding device, image dictionary creation method and program thereof |
CN101000601B (en) * | 2007-01-10 | 2010-05-19 | 方正国际软件(北京)有限公司 | Device and method for automatic changing type face in type-setting process |
CN101226596B (en) * | 2007-01-15 | 2012-02-01 | 夏普株式会社 | Document image processing apparatus and document image processing process |
CN101354703B (en) * | 2007-07-23 | 2010-11-17 | 夏普株式会社 | Apparatus and method for processing document image |
CN101493811A (en) * | 2008-01-24 | 2009-07-29 | 鸿富锦精密工业(深圳)有限公司 | Font automatic identification and conversion system and method |
JP2010146185A (en) * | 2008-12-17 | 2010-07-01 | Sharp Corp | Image processing apparatus, image reading apparatus, image sending apparatus, image processing method, program, and recording medium thereof |
CN103400127A (en) * | 2013-08-05 | 2013-11-20 | 苏州鼎富软件科技有限公司 | Picture and text identifying method |
CN103488608A (en) * | 2013-09-27 | 2014-01-01 | 杨昕吉 | Method and system for quickly creating visual-style electronic business card |
JPWO2015136692A1 (en) * | 2014-03-14 | 2017-04-06 | 株式会社日立製作所 | Electronic image document editing system |
CN104954605B (en) * | 2014-03-31 | 2018-02-06 | 京瓷办公信息系统株式会社 | Image processing system, image formation system and image forming method |
-
2016
- 2016-12-26 JP JP2016252073A patent/JP6866636B2/en active Active
-
2017
- 2017-10-19 CN CN201710975869.1A patent/CN108241594B/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2018106422A (en) | 2018-07-05 |
CN108241594B (en) | 2022-05-03 |
CN108241594A (en) | 2018-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4638274B2 (en) | Image selection method, image selection apparatus, program, and print order receiving machine | |
US20080304745A1 (en) | Image display apparatus, image display method, and recording medium containing an image-display-method program | |
JP6380159B2 (en) | Information processing apparatus, information processing apparatus display method and program | |
CN108139874B (en) | Information processing apparatus, tape printing apparatus, and display control method for information processing apparatus | |
JP2007331321A (en) | Image processing device and its control method | |
JP7130948B2 (en) | ELECTRONIC DEVICE, PRINTING SUPPORT METHOD AND PROGRAM | |
US20110222946A1 (en) | Tape printer, method for controlling tape printer, and computer program product | |
JP6866636B2 (en) | Character editing methods, electronic devices, and programs | |
JP6766563B2 (en) | Image editing program and image editing device | |
JP2011143648A (en) | Tape printing device, label forming method, and storage medium storing program for forming label | |
JP6409430B2 (en) | Print image generation apparatus, print system, print image generation method, and program | |
JP7070627B2 (en) | Image display program | |
JP2007048235A (en) | Information processor, control method, and program | |
JP2010068347A (en) | Image forming apparatus, image forming method and image forming program | |
JP4424228B2 (en) | Display processing apparatus, display processing method and program thereof | |
JP6686746B2 (en) | Program, label image creating method, and label image creating apparatus | |
JP2019501794A (en) | Print data input method for printing on a print object using a printer, and print system including at least two printers | |
JP2007336414A (en) | Image processor and control method of image processing | |
JP4501731B2 (en) | Image processing device | |
JP6102391B2 (en) | Printed material creating apparatus, printed material creating method, and printed material creating program | |
JP2019074976A (en) | Operation terminal, program and printing system | |
JP2015060540A (en) | Creation device and creation method of correction sheet | |
US10708453B2 (en) | Display apparatus, non-transitory storage medium storing instructions readable by the display apparatus, method of displaying print image on display of the display apparatus | |
JP2022182365A (en) | Print control device and print control program | |
JP6265042B2 (en) | Printing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20190415 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190701 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190701 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200127 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200204 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200312 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200804 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20201001 |
|
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: 20210309 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210322 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6866636 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |