JP5857719B2 - Information processing apparatus, control method for information processing apparatus, and control program - Google Patents

Information processing apparatus, control method for information processing apparatus, and control program Download PDF

Info

Publication number
JP5857719B2
JP5857719B2 JP2011277204A JP2011277204A JP5857719B2 JP 5857719 B2 JP5857719 B2 JP 5857719B2 JP 2011277204 A JP2011277204 A JP 2011277204A JP 2011277204 A JP2011277204 A JP 2011277204A JP 5857719 B2 JP5857719 B2 JP 5857719B2
Authority
JP
Japan
Prior art keywords
character
image data
input
feature information
characters
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
JP2011277204A
Other languages
Japanese (ja)
Other versions
JP2013127714A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2011277204A priority Critical patent/JP5857719B2/en
Publication of JP2013127714A publication Critical patent/JP2013127714A/en
Application granted granted Critical
Publication of JP5857719B2 publication Critical patent/JP5857719B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Character Discrimination (AREA)

Description

本発明は、文字入力を受け付ける入力手段を有する情報処理装置に関する。   The present invention relates to an information processing apparatus having input means for receiving character input.

近年、書類や書籍の電子化(ペーパレス化)の需要が高まっている。特に書類などの場合、電子化の際に電子データとして取り込んだ画像内の文章に対して、その場で編集を行ないたいという要望がある。   In recent years, there has been an increasing demand for digitization (paperless) of documents and books. In particular, in the case of documents, there is a desire to edit on-the-spot text in an image captured as electronic data at the time of digitization.

このような、画像データ中の文章に編集を加えるために、画像データ内の文字を認識する技術(OCR(Optical Character Reader))が利用されている。   In order to edit such text in image data, a technique (OCR (Optical Character Reader)) for recognizing characters in image data is used.

しかし、従来の文字認識技術は文字情報の取得だけを目的としており、文字のフォント(書体データ)などの形状情報は認識の過程で省かれている。そのため、認識された画像データ内の文字に対する修正をしようとした場合に、取得元となるスキャンした画像データ上の文字のフォントと同じフォントを認識処理する側で持っていない場合には、異なるフォントで修正することとなる。これにより、フォントが異なるため周辺の文字に対して違和感が生じるという問題がある。この点で、例えば、特開2009−110246号公報においては、入力された文字列をデバイス内に保持された変換辞書により変換してフォントを再現する方式が示されているが、対応するフォントがなければ再現が行えない。また、入力された文字列のフォントに全て適合させる場合には、変換辞書のファイル容量が膨大に膨れ上ってしまうという問題がある。   However, the conventional character recognition technology aims only at obtaining character information, and shape information such as character font (typeface data) is omitted in the recognition process. Therefore, when trying to correct characters in recognized image data, if the recognition processing side does not have the same font as the character font on the scanned image data that is the acquisition source, a different font is used. Will be corrected. As a result, there is a problem that a sense of incongruity occurs in the surrounding characters because the fonts are different. In this regard, for example, Japanese Patent Application Laid-Open No. 2009-110246 discloses a method of reproducing a font by converting an input character string using a conversion dictionary held in the device. Without it, it cannot be reproduced. In addition, when all of the input character string fonts are adapted, there is a problem that the file capacity of the conversion dictionary increases enormously.

特開2009−110246号公報JP 2009-110246 A

本発明は、上記のような問題を解決するためになされたものであって、簡易な方式で画像データ上の文章を編集する際に違和感の少ない編集が可能な情報処理装置、情報処理装置の制御方法および制御プログラムを提供することを目的とする。   The present invention has been made to solve the above-described problems, and is an information processing apparatus and an information processing apparatus capable of editing with less discomfort when editing text on image data by a simple method. It is an object to provide a control method and a control program.

本発明のある局面に従う情報処理装置は、原稿から画像データを取得する画像データ取得手段と、画像データから画像データ上の文字の位置情報を取得する文字位置情報取得手段と、画像データ上の文字の変更または追加を指示する位置を選択する位置選択手段と、位置選択手段で選択した位置に入力される入力文字を受け付ける文字受付手段と、画像データ上の少なくとも選択した位置の周辺領域に配置されている文字の特徴情報を取得する文字特徴情報取得手段と、文字特徴情報取得手段で取得した文字の特徴情報に基づいて文字受付手段で受け付けた入力文字を補正する文字補正手段と、文字補正手段により補正された入力文字を選択した位置に配置する文字反映手段とを備える。   An information processing apparatus according to an aspect of the present invention includes an image data acquisition unit that acquires image data from a document, a character position information acquisition unit that acquires position information of characters on the image data from the image data, and a character on the image data. A position selecting means for selecting a position for instructing to change or add a character, a character accepting means for receiving an input character input at the position selected by the position selecting means, and at least a peripheral area of the selected position on the image data. Character feature information acquisition means for acquiring feature information of a character being read, character correction means for correcting an input character received by the character reception means based on the character feature information acquired by the character feature information acquisition means, and character correction means And a character reflecting means for arranging the input character corrected by the above at the selected position.

好ましくは、文字特徴情報取得手段は、画像データ上の少なくとも選択した位置に従って周辺領域を設定することを含む。
好ましくは、文字特徴情報取得手段は、画像データ上の文字を形成する線分の幅に関する特徴情報を取得し、文字補正手段は、入力文字の幅を特徴情報に従って補正をする。
Preferably, the character feature information acquisition means includes setting a peripheral region according to at least a selected position on the image data.
Preferably, the character feature information acquisition unit acquires feature information related to the width of a line segment forming a character on the image data, and the character correction unit corrects the width of the input character according to the feature information.

好ましくは、文字特徴情報取得手段は、画像データ上の文字を形成する線分の始点と終点の形状に関する特徴情報を取得し、文字補正手段は、入力文字の線分の始点と終点の形状を特徴情報に従って補正する。   Preferably, the character feature information acquisition unit acquires feature information related to the shape of the start point and the end point of the line segment forming the character on the image data, and the character correction unit determines the shape of the start point and the end point of the line segment of the input character. Correct according to the feature information.

好ましくは、文字特徴情報取得手段は、文字を認識する文字認識手段をさらに含み、文字補正手段は、入力文字の少なくとも一部が文字認識手段で認識された文字と同一の文字であると判断した場合には、画像データ上の対応する文字と置換する。   Preferably, the character feature information acquisition unit further includes a character recognition unit that recognizes the character, and the character correction unit determines that at least a part of the input character is the same character as the character recognized by the character recognition unit. In this case, the corresponding character on the image data is replaced.

好ましくは、入力文字に関する特徴情報を含む書体データが格納された記憶手段と、文字特徴情報取得手段で取得した文字の特徴情報が書体データの特徴情報と同一であるかどうかを判断する判断手段とをさらに備え、文字補正手段は、判断手段において同一でないと判断した場合に文字特徴情報取得手段で取得した文字の特徴情報に基づいて文字受付手段で受け付けた入力文字を補正する。   Preferably, storage means storing typeface data including feature information about input characters, and judgment means for judging whether the character feature information acquired by the character feature information acquisition means is the same as the feature information of the typeface data. The character correcting means corrects the input character received by the character receiving means based on the character feature information acquired by the character feature information acquiring means when the determining means determines that they are not the same.

本発明のある局面に従う情報処理装置の制御方法であって、原稿から画像データを取得するステップと、画像データから画像データ上の文字の位置情報を取得するステップと、画像データ上の文字の変更または追加を指示する位置を選択する入力を受け付けるステップと、選択した位置に入力される入力文字を受け付けるステップと、画像データ上の少なくとも選択した位置の周辺領域に配置されている文字の特徴情報を取得するステップと、取得した文字の特徴情報に基づいて受け付けた入力文字を補正するステップと、補正された入力文字を選択した位置に配置するステップとを備える。
好ましくは、文字の特徴情報を取得するステップは、画像データ上の少なくとも選択した位置の周辺領域を設定するステップを含む。
A method for controlling an information processing device according to an aspect of the present invention, comprising: obtaining image data from a document; obtaining character position information on image data from image data; and changing a character on image data Or a step of receiving an input for selecting a position for instructing addition, a step of receiving an input character input at the selected position, and feature information of characters arranged at least in the peripheral region of the selected position on the image data. A step of acquiring, a step of correcting the input character received based on the acquired character feature information, and a step of arranging the corrected input character at the selected position.
Preferably, the step of acquiring character feature information includes a step of setting a peripheral region of at least a selected position on the image data.

本発明のある局面に従う情報処理装置の制御プログラムであって、情報処理装置のコンピュータに実行させる制御プログラムであって、制御プログラムは、コンピュータに、原稿から画像データを取得するステップと、画像データから画像データ上の文字の位置情報を取得するステップと、画像データ上の文字の変更または追加を指示する位置を選択する入力を受け付けるステップと、選択した位置に入力される入力文字を受け付けるステップと、画像データ上の少なくとも選択した位置の周辺領域に配置されている文字の特徴情報を取得するステップと、取得した文字の特徴情報に基づいて受け付けた入力文字を補正するステップと、補正された入力文字を選択した位置に配置するステップとを備える。
好ましくは、文字の特徴情報を取得するステップは、画像データ上の少なくとも選択した位置の周辺領域を設定するステップを含む。
A control program for an information processing device according to an aspect of the present invention, wherein the control program is executed by a computer of the information processing device, the control program causing the computer to acquire image data from a document, and from the image data Obtaining character position information on the image data; receiving an input for selecting a position for instructing to change or add a character on the image data; receiving an input character input at the selected position; A step of acquiring feature information of a character arranged at least in a peripheral region of the selected position on the image data, a step of correcting an input character received based on the acquired feature information of the character, and the corrected input character Arranging at the selected position.
Preferably, the step of acquiring character feature information includes a step of setting a peripheral region of at least a selected position on the image data.

簡易な方式で画像データ上の文章を編集する際に違和感の少ない編集が可能である。   When editing text on image data with a simple method, editing with less discomfort is possible.

本発明の実施の形態に従う画像形成装置を説明する概略図である。1 is a schematic diagram illustrating an image forming apparatus according to an embodiment of the present invention. 本発明の実施の形態に従う画像形成装置における画像データ上の文章の編集を説明する概念図である。It is a conceptual diagram explaining edit of the text on the image data in the image forming apparatus according to the embodiment of the present invention. 本発明の実施の形態に従う画像形成装置における文字の変更処理のフロー図である。It is a flowchart of the change process of the character in the image forming apparatus according to the embodiment of the present invention. 本発明の実施の形態に従う画像形成装置における文字を補正する処理のフロー図である。It is a flowchart of the process which correct | amends the character in the image forming apparatus according to the embodiment of the present invention. 本発明の実施の形態に従う画像形成装置におけるステップS19を詳細に説明するフロー図である。It is a flowchart explaining in detail step S19 in the image forming apparatus according to the embodiment of the present invention. 入力文字を周辺の文字の特徴に合わせて補正する場合の具体例を説明する図である。It is a figure explaining the specific example in the case of correct | amending an input character according to the characteristic of a surrounding character. 本発明の実施の形態に従う入力文字の文字幅を補正する場合について説明する図である。It is a figure explaining the case where the character width of the input character according to embodiment of this invention is correct | amended. 本発明の実施の形態に従う入力文字の文字幅を補正する別の場合について説明する図である。It is a figure explaining another case which correct | amends the character width of the input character according to embodiment of this invention. 入力文字を周辺の文字の特徴に合わせて補正する場合の別の具体例を説明する図である。It is a figure explaining another specific example in the case of correct | amending an input character according to the characteristic of a surrounding character. 本発明の実施の形態に従う画像データ上の周辺の文字として抽出した文字から取得した文字の特徴情報を示す文字特徴テーブル図である。It is a character feature table figure which shows the character feature information acquired from the character extracted as a surrounding character on the image data according to embodiment of this invention. 本発明の実施の形態に従う画像形成装置におけるステップS19の変形例1を詳細に説明するフロー図である。It is a flowchart explaining in detail the modification 1 of step S19 in the image forming apparatus according to the embodiment of the present invention. 本発明の実施の形態に従う画像形成装置におけるステップS19の変形例2を詳細に説明するフロー図である。It is a flowchart explaining in detail the modification 2 of step S19 in the image forming apparatus according to the embodiment of the present invention. 本発明の実施の形態に従う画像形成装置におけるステップS19の変形例3を詳細に説明するフロー図である。It is a flowchart explaining in detail the modification 3 of step S19 in the image forming apparatus according to the embodiment of the present invention. 入力文字の一部の形状を周辺の文字の特徴に合わせて補正する場合の具体例を説明する図である。It is a figure explaining the specific example in the case of correct | amending the shape of a part of input character according to the characteristic of a surrounding character.

以下に図面を参照しつつ本発明の実施の形態について説明する。以下の説明においては同一の部品および構成要素には同一の符号を付してある。それらの名称および機能も同一であるものとする。以下においては、情報処理装置の一例であり画像形成装置の一種である複合機(MFP(Multi Function Peripheral))を用いて説明する。   Embodiments of the present invention will be described below with reference to the drawings. In the following description, the same parts and components are denoted by the same reference numerals. Their names and functions are also the same. The following description will be made using a multifunction peripheral (MFP (Multi Function Peripheral)) which is an example of an information processing apparatus and a kind of image forming apparatus.

図1は、本発明の実施の形態に従う画像形成装置を説明する概略図である。
図1を参照して、本発明の実施の形態に従う画像形成装置1は、制御部100と、HDD110と、スキャナー120と、操作パネル130と、プリンター140と、プリンターコントローラ150と、ネットワークI/F160と、内部バス170とを含む。なお、ネットワークI/F160は、図示しない外部のネットワークと接続されている。
FIG. 1 is a schematic diagram illustrating an image forming apparatus according to an embodiment of the present invention.
Referring to FIG. 1, image forming apparatus 1 according to the embodiment of the present invention includes control unit 100, HDD 110, scanner 120, operation panel 130, printer 140, printer controller 150, and network I / F 160. And an internal bus 170. The network I / F 160 is connected to an external network (not shown).

CPU101には、制御プログラムが格納されたROM102、作業用のS−RAM(Static Random Access Memory)103、画像形成に関わる各種の設定を記憶するバッテリバックアツプされたNV−RAM(不揮発性メモリ)104、計時することが可能な時計IC105が内部バス170を介して接続され、制御部100を構成している。   The CPU 101 includes a ROM 102 that stores a control program, a working S-RAM (Static Random Access Memory) 103, and a battery-backed NV-RAM (nonvolatile memory) 104 that stores various settings relating to image formation. A clock IC 105 capable of timing is connected via an internal bus 170 to constitute the control unit 100.

制御部100には、原稿画像を読み取るスキャナー120、各種の入力を行なうキーや表示部を備えた操作パネル130、ネットワークを介して接続された外部の装置との間で各種の情報を送受信するためのネットワークI/F160、該ネットワークI/F160により受信したプリントデータから複写画像を生成するためのプリンターコントローラ150、複写画像を用紙上に形成するプリンター140が、それぞれ内部バス170を介して接続されている。   The control unit 100 transmits and receives various types of information to and from a scanner 120 that reads a document image, an operation panel 130 that includes various input keys and a display unit, and an external device connected via a network. Network I / F 160, a printer controller 150 for generating a copy image from print data received by the network I / F 160, and a printer 140 for forming a copy image on paper are connected via an internal bus 170. Yes.

また、制御部100には、固定記憶装置(HDD)110が内部バス170を介して接続されている。固定記憶装置110とは、例えば、ハードディスク装置である。本例において固定記憶装置(HDD)110は、BOXジョブに従って保存データを格納する。   Further, a fixed storage device (HDD) 110 is connected to the control unit 100 via an internal bus 170. The fixed storage device 110 is, for example, a hard disk device. In this example, a fixed storage device (HDD) 110 stores saved data according to a BOX job.

また、以下に説明する文字認識および入力文字の修正を実行するプログラムは、例えばHDD110等に格納されており、当該プログラムをCPU101が読み込んで実行することにより各種機能が実行されるものとする。なお、当該プログラムは、制御部100内の他の記憶領域にあっても良いし、予め当該プログラムを保持していても良いし、あるいは、ネットワークを介してダウンロードして保持するものであっても良い。また、文字を入力する等の入力手段としては、操作パネル130を用いることが可能であり、当該文字に関する情報、具体的には、変換辞書やフォント(書体データ)等についてはHDD110等に格納されているものとする。   In addition, a program for executing character recognition and input character correction described below is stored in the HDD 110, for example, and various functions are executed by the CPU 101 reading and executing the program. Note that the program may be in another storage area in the control unit 100, may hold the program in advance, or may be downloaded and held via a network. good. As an input means for inputting characters, the operation panel 130 can be used, and information on the characters, specifically, conversion dictionaries, fonts (font data), and the like are stored in the HDD 110 or the like. It shall be.

図2は、本発明の実施の形態に従う画像形成装置における画像データ上の文章の編集を説明する概念図である。   FIG. 2 is a conceptual diagram illustrating editing of text on image data in the image forming apparatus according to the embodiment of the present invention.

図2を参照して、ここでは、原稿をスキャンした画像データが示されている。そして、当該画像データのうちの文章の一部の編集する場合について説明する。   Referring to FIG. 2, here, image data obtained by scanning a document is shown. A case of editing a part of the text in the image data will be described.

具体的には、スキャンした画像データ上の「文書3を変更したい」という文字領域において、「変更」という文字を「修正」という文字に変更する。   Specifically, in the character region “I want to change document 3” on the scanned image data, the character “change” is changed to the character “correction”.

まず、スキャンした画像データ上において、文字の変更をする位置を選択する。なお、本例においては、文字の変更とは、文字を異なる文字に置換すること以外に、当該文字を削除することも含まれるものとする。   First, on the scanned image data, a position for changing a character is selected. In this example, changing the character includes not only replacing the character with a different character but also deleting the character.

そして、選択された位置に従って周辺の周辺領域を設定して、周辺領域に含まれる文字から文字の特徴情報を取得する。具体的には、文字を形成する線分に関する特徴情報、線分の始点と終点等の形状に関する特徴情報等を取得する。   Then, the surrounding area is set according to the selected position, and character feature information is acquired from the characters included in the surrounding area. Specifically, the feature information related to the line segment forming the character, the feature information related to the shape of the start point and the end point of the line segment, and the like are acquired.

一方、文字の変更をする位置を選択した後、変更する文字を入力する。本例においては、一例として、入力手段等により「変更」という文字を削除して、「修正」という文字を入力する。入力手段としては本例の場合、操作パネル130を用いたインターフェイスとしてソフトキーボードを用いて当該文字の入力が可能であるものとする。なお、当該ソフトキーボード等のプログラムは、予めHDD110に格納されているものとする。   On the other hand, after selecting the position to change the character, the character to be changed is input. In this example, as an example, the characters “change” are deleted by the input means and the characters “correct” are input. In this example, as an input means, it is assumed that the character can be input using a soft keyboard as an interface using the operation panel 130. Note that the program such as the soft keyboard is stored in the HDD 110 in advance.

そして、入力した「修正」という文字を周辺領域に含まれる文字の特徴情報に基づいて文字を補正する。そして、当該補正した文字を画像データ上の選択した位置に反映する。   Then, the input “correction” character is corrected based on the character feature information included in the peripheral area. Then, the corrected character is reflected on the selected position on the image data.

当該処理により、画像データ上の文字と同じフォントを有していない場合であっても、画像データ上の周辺領域に含まれる文字から当該文字の特徴情報を取得し、取得した文字の特徴情報に基づいて文字を補正することが可能であるため画像データ上の文章の一部を編集する際に違和感の少ない編集が可能である。さらに、画像データ上の文字に関する種々のフォントをHDDに格納する必要は無く、少なくとも1つのフォントがあれば当該フォントを用いて編集することが可能であるためHDDの容量等の制約を軽減することも可能である。   By this processing, even if the font does not have the same font as the character on the image data, the character feature information is acquired from the characters included in the peripheral area on the image data, and the acquired character feature information is obtained. Since it is possible to correct the character based on this, it is possible to edit with less discomfort when editing a part of the text on the image data. Furthermore, it is not necessary to store various fonts related to characters on the image data in the HDD, and if there is at least one font, editing can be performed using the font, so that restrictions such as the capacity of the HDD are reduced. Is also possible.

以下、本発明の実施の形態に従う文字の変更処理について説明するフロー図である。
図3は、本発明の実施の形態に従う画像形成装置における文字の変更処理のフロー図である。当該ジョブ処理は、画像形成装置1の制御部100のCPU101が主に実行する処理であり、必要に応じて他の各部と協働する。
Hereinafter, it is a flowchart explaining the change process of the character according to embodiment of this invention.
FIG. 3 is a flowchart of character change processing in the image forming apparatus according to the embodiment of the present invention. The job process is a process mainly executed by the CPU 101 of the control unit 100 of the image forming apparatus 1 and cooperates with other units as necessary.

まず、画像データを取得する(ステップS2)。具体的には、原稿をスキャナー120で読み取って画像データを取得することが可能である。あるいは、外部からネットワークを介して取得するようにしても良い。なお、本例における画像データは、文字が含まれている画像データであるものとする。   First, image data is acquired (step S2). Specifically, it is possible to acquire image data by reading a document with the scanner 120. Or you may make it acquire via a network from the outside. Note that the image data in this example is image data including characters.

次に、文字位置情報を取得する(ステップS4)。具体的には、画像データ上において、当該画像に含まれている文字を構成する要素の各領域を特定し、各文字毎の位置情報を取得する。これにより入力手段による指示に従い文字単位での補正が可能となる。例えば、公知のOCRを用いることで1文字領域の特定および位置情報の取得が可能である。   Next, character position information is acquired (step S4). Specifically, on the image data, each region of the elements constituting the character included in the image is specified, and position information for each character is acquired. As a result, correction can be performed in character units in accordance with instructions from the input means. For example, it is possible to specify one character area and acquire position information by using a known OCR.

次に、入力手段による文字の位置選択があるかどうかを判断する(ステップS6)。具体的には、入力手段として例えば、マウス等のポインティング手段を用いて文字の位置選択を指示しても良いし、あるいは、タッチパネル等により位置選択を指示しても良い。   Next, it is determined whether or not there is a character position selection by the input means (step S6). Specifically, for example, a character position selection may be instructed by using a pointing means such as a mouse as an input means, or position selection may be instructed by a touch panel or the like.

ステップS6において、入力手段による文字の位置選択が無い場合(ステップS6においてNO)には、当該状態を維持する。   In step S6, when there is no character position selection by the input means (NO in step S6), this state is maintained.

一方で、ステップS6において、入力手段による文字の位置選択がある場合(ステップS6においてYES)には、次のステップS8に進む。   On the other hand, if there is character position selection by the input means in step S6 (YES in step S6), the process proceeds to the next step S8.

そして、入力文字があるかどうかを判断する(ステップS8)。本例においては、一例として、操作パネル130を用いたインターフェイスとしてソフトキーボードを用いて当該文字の入力が可能であるものとする。当該ソフトキーボードを用いた入力文字があるかどうかを判断する。   Then, it is determined whether there is an input character (step S8). In this example, as an example, it is assumed that the character can be input using a soft keyboard as an interface using the operation panel 130. It is determined whether there is an input character using the soft keyboard.

ステップS8において、入力文字があると判断した場合(ステップS8においてYES)には、文字を補正する処理を実行する(ステップS9)。文字を補正する処理の詳細については後述する。   If it is determined in step S8 that there is an input character (YES in step S8), processing for correcting the character is executed (step S9). Details of the character correction processing will be described later.

そして、文字の変更を反映させる(ステップS10)。
一方、ステップS8において、入力文字がないと判断した場合(ステップS8においてNO)には、ステップS9をスキップして、ステップS10に進み、文字の変更を反映させる(ステップS10)。例えば、入力文字がないと判断した場合として、文字の変更を反映させる場合として、例えば、文字の削除のみ等が挙げられる。
Then, the character change is reflected (step S10).
On the other hand, if it is determined in step S8 that there is no input character (NO in step S8), step S9 is skipped and the process proceeds to step S10 to reflect the change of character (step S10). For example, as a case where it is determined that there is no input character, as a case where a change in character is reflected, for example, only deletion of a character can be cited.

図4は、本発明の実施の形態に従う画像形成装置における文字を補正する処理のフロー図である。   FIG. 4 is a flowchart of processing for correcting characters in the image forming apparatus according to the embodiment of the present invention.

図4を参照して、まず、周辺領域を設定する(ステップS14)。具体的には、文字の位置選択があった画像データ上の位置情報を取得し、当該位置情報を基準に周辺領域を特定する。例えば、一例として予め周辺領域として設定する枠を設けておき、当該位置情報を基準として周辺領域を設定することが可能である。なお、当該周辺領域を設定する理由は、画像データ上の全領域を周辺領域として設定した場合に文字の抽出および特徴量の計算が膨大になるため過負荷とならないように領域に制限を設けたものである。   Referring to FIG. 4, first, a peripheral area is set (step S14). Specifically, the position information on the image data where the position of the character is selected is acquired, and the peripheral area is specified based on the position information. For example, it is possible to provide a frame to be set as a peripheral area in advance as an example, and set the peripheral area with reference to the position information. Note that the reason for setting the peripheral region is that the region is limited so as not to be overloaded because the extraction of characters and the calculation of feature amounts become enormous when all regions on the image data are set as the peripheral region. Is.

次に、周辺領域に含まれる周辺文字を抽出する(ステップS16)。具体的には、当該位置情報を基準に設定された枠内に含まれる周辺文字を抽出する。なお、同一の文字等については重複するため無視することにより計算量を軽減することが可能である。また、抽出する文字として本例においては文字の特徴を取得するために漢字を抽出するものとする。なお、漢字か否かは、例えば一例として公知のOCRを用いることで判別が可能である。   Next, peripheral characters included in the peripheral region are extracted (step S16). Specifically, peripheral characters included in a frame set based on the position information are extracted. Note that the same character or the like is duplicated, so that the amount of calculation can be reduced by ignoring it. Further, in this example, kanji characters are extracted as characters to be extracted in order to acquire character characteristics. Whether or not it is a Chinese character can be determined by using a known OCR as an example.

次に、周辺文字の特徴を取得する(ステップS18)。抽出した文字(漢字)から文字の特徴を示す情報を取得する。   Next, the characteristics of the surrounding characters are acquired (step S18). Information indicating character characteristics is acquired from the extracted characters (kanji).

次に、入力文字を補正する処理を実行する(ステップS19)。取得した文字の特徴に基づいて入力文字を補正する。   Next, a process for correcting the input character is executed (step S19). The input character is corrected based on the acquired character characteristics.

そして、処理を終了する(リターン)。
図5は、本発明の実施の形態に従う画像形成装置におけるステップS19を詳細に説明するフロー図である。
Then, the process ends (return).
FIG. 5 is a flowchart illustrating in detail step S19 in the image forming apparatus according to the embodiment of the present invention.

図5を参照して、ステップS19の処理として、入力文字を周辺の文字の特徴に合わせて補正する(ステップS20)処理を含む。   Referring to FIG. 5, the process of step S <b> 19 includes a process of correcting the input character according to the characteristics of surrounding characters (step S <b> 20).

図6は、入力文字を周辺の文字の特徴に合わせて補正する場合の具体例を説明する図である。   FIG. 6 is a diagram for explaining a specific example in a case where an input character is corrected according to the characteristics of surrounding characters.

図6を参照して、ここでは、一例として、画像データ上の周辺の文字として「永」という文字が抽出された場合の図が示されている。   Referring to FIG. 6, here, as an example, a diagram in which a character “Ei” is extracted as a peripheral character on the image data is shown.

そして、当該「永」という文字の骨格情報を取得し、当該骨格情報として取得した線分に直行する線の幅を各方向の線分毎に取得する場合が示されている。縦方向および横方向のみならず斜めの方向等の線分についても取得する。   And the case where the skeleton information of the character “Ei” is acquired and the width of the line orthogonal to the line segment acquired as the skeleton information is acquired for each line segment in each direction is shown. Not only the vertical and horizontal directions but also line segments such as diagonal directions are acquired.

一方で、一例として、例えば、入力文字が「文」であり、書式データとして有している「文」の文字を補正する。具体的には、周辺の文字「永」の線分に関する特徴情報(線分の幅)に基づいて文字を補正する。   On the other hand, as an example, for example, the input character is “sentence”, and the “sentence” character that is included in the format data is corrected. Specifically, the character is corrected based on the characteristic information (width of the line segment) regarding the line segment of the surrounding character “Ei”.

図7は、本発明の実施の形態に従う入力文字の文字幅を補正する場合について説明する図である。   FIG. 7 is a diagram illustrating a case where the character width of the input character according to the embodiment of the present invention is corrected.

図7を参照して、ここでは、入力文字が「文」であり、書式データとして「文」の文字を補正する場合について説明する。まず、「文」の文字の骨格情報を取得し、骨格情報として取得した線分の直行方向に文字幅を補正する。具体的には、画像データ上の周辺の文字として「永」という文字から各方向の線分の幅に関する値(特徴情報)に基づいて文字幅を補正する。   With reference to FIG. 7, here, a case where the input character is “sentence” and the character of “sentence” is corrected as format data will be described. First, the skeleton information of the character of “sentence” is acquired, and the character width is corrected in the direction perpendicular to the line segment acquired as the skeleton information. Specifically, the character width is corrected based on the value (characteristic information) regarding the width of the line segment in each direction from the character “periphery” as the peripheral character on the image data.

図8は、本発明の実施の形態に従う入力文字の文字幅を補正する別の場合について説明する図である。   FIG. 8 is a diagram illustrating another case of correcting the character width of the input character according to the embodiment of the present invention.

図8を参照して、ここでは、入力文字が「文」であり、書式データとして「文」の文字を補正する場合について説明する。   With reference to FIG. 8, here, a case where the input character is “sentence” and the character “sentence” is corrected as format data will be described.

書式データの「文」の文字と、画像データ上の「永」の文字とを比較して、書式データの「文」の文字幅を画像データ上の「永」の文字に合わせて補正する。   The character of the “sentence” of the format data is compared with the character of “permanent” on the image data, and the character width of the “sentence” of the format data is corrected according to the character of “permanent” on the image data.

具体的には、書式データの「文」の線分と同一方向の「永」の線分との線幅を比較して、書式データの「文」の線分の幅を「永」の線分に合わせる補正をする。   Specifically, the line width of the “sentence” line in the format data is compared with the line width of the “permanent” line in the same direction, and the width of the “sentence” line in the format data is set to the “eternal” line. Correct for minutes.

当該補正により、画像データ上の文字と同じフォントを有していない場合であっても、画像データ上の周辺領域に含まれる文字から当該文字の特徴情報を取得し、取得した文字の特徴情報に基づいて文字を補正することが可能である。ここでは、各方向に従って線分の幅を揃えることにより、周辺領域の文字の特徴が入力文字に反映されているため、画像データ上の文章の一部を編集する際に違和感の少ない編集が可能となる。   With this correction, even if the font does not have the same font as the character on the image data, the character feature information is acquired from the character included in the peripheral area on the image data, and the acquired character feature information It is possible to correct the character based on it. Here, by aligning the line width according to each direction, the character characteristics of the surrounding area are reflected in the input characters, so editing with a little discomfort is possible when editing part of the text on the image data It becomes.

次に、文字の特徴を反映する別の点について説明する。
図9は、入力文字を周辺の文字の特徴に合わせて補正する場合の別の具体例を説明する図である。
Next, another point that reflects character characteristics will be described.
FIG. 9 is a diagram for explaining another specific example in the case where the input character is corrected in accordance with the characteristics of surrounding characters.

図9を参照して、ここでは、一例として、画像データ上の周辺の文字として「永」という文字が抽出された場合の図が示されている。   Referring to FIG. 9, here, as an example, a diagram in the case where a character “permanent” is extracted as a peripheral character on the image data is shown.

そして、当該「永」という文字の骨格情報を取得し、当該骨格情報として取得した線分毎に端点部位の形状を取得する場合が示されている。縦方向および横方向のみならず斜めの方向等の線分についても取得する。   And the case where the skeleton information of the character "Ei" is acquired and the shape of the end point part is acquired for each line segment acquired as the skeleton information is shown. Not only the vertical and horizontal directions but also line segments such as diagonal directions are acquired.

一方で、一例として、例えば、入力文字が「文」であり、書式データとして有している「文」の文字を補正する。具体的には、周辺の文字「永」の線分に関する特徴情報(端点の形状)に基づいて文字を補正する。   On the other hand, as an example, for example, the input character is “sentence”, and the “sentence” character that is included in the format data is corrected. Specifically, the character is corrected based on the feature information (end point shape) regarding the line segment of the surrounding character “Ei”.

端点としては、始点および終点を含む。各方向の線分毎に当該線分の始点および終点の形状を取得し、書式データの文字の各方向の線分の端点について、取得した形状に合わせる。   The end points include a start point and an end point. The shape of the start point and end point of the line segment is acquired for each line segment in each direction, and the end points of the line segments in each direction of the characters of the format data are matched with the acquired shape.

図10は、本発明の実施の形態に従う画像データ上の周辺の文字として抽出した文字から取得した文字の特徴情報を示す文字特徴テーブル図である。   FIG. 10 is a character feature table showing character feature information acquired from characters extracted as peripheral characters on the image data according to the embodiment of the present invention.

図10(A)および(B)は、それぞれ線分が独立している場合と、独立しておらず、連接している線分である場合とで分けられている場合が示されている。   FIGS. 10A and 10B show a case where the line segments are separated from each other and a case where the line segments are not independent and connected to each other.

図10(A)および(B)において、それぞれ、各方向の線分の幅および当該線分の始点の形状および終点の形状がそれぞれ取得されて登録される。ここでは、一例として、線分の方向として、「上から下へ」、「左から右へ」、「左上から右下へ」、「右上から左下へ」の方向の線分について、それぞれの線分の幅、および始点および終点の形状が登録されている。   10A and 10B, the width of the line segment in each direction, the shape of the start point and the shape of the end point of the line segment are respectively acquired and registered. Here, as an example, for the line segments in the directions of “from top to bottom”, “from left to right”, “from top left to bottom right”, and “from top right to bottom left” The width of the minute and the shape of the start point and end point are registered.

線分の幅(pt)については、始点から終点までの平均値としても良いし、範囲で規定しても良い。また、形状としては、予め規定されている形状とのマッチングにより一致する形状を登録する。なお、当該形状は、完全に一致する必要はなく、類似している形状でも良い。本例においては、例えば、形状A、形状Bがそれぞれ登録されている場合が一例として示されている。   The line segment width (pt) may be an average value from the start point to the end point, or may be defined by a range. As the shape, a matching shape is registered by matching with a predetermined shape. In addition, the said shape does not need to correspond completely and a similar shape may be sufficient. In this example, for example, the case where the shape A and the shape B are registered is shown as an example.

なお、ここでは線分が独立している場合と、連接している線分である場合とでそれぞれテーブルを分けて、それぞれに該当する線分を補正する場合について説明しているが、線分が独立か連接かを分けることなく、1つのテーブルとしても良い。また、線分の幅のみのテーブルとしたり、あるいは、端点の形状のみのテーブルとすることも可能である。また、本例においては、線分の方向として4方向の場合について説明しているが、さらに複数の方向の線分の特徴情報を取得して反映することによりより精度の高い補正が可能である。   In this example, the table is divided into a case where the line segments are independent and a case where the line segments are connected, and the case where the corresponding line segments are corrected is described. It is good also as one table, without dividing whether it is independent or connected. It is also possible to use a table with only the width of the line segment, or a table with only the shape of the end points. In this example, the case of four directions is described as the direction of the line segment, but more accurate correction is possible by acquiring and reflecting the characteristic information of the line segments in a plurality of directions. .

当該処理により、画像データ上の文字と同じフォントを有していない場合であっても、画像データ上の周辺領域に含まれる文字から当該文字の特徴情報を取得し、取得した文字の特徴情報に基づいて文字を補正することが可能であり、画像データ上の文章の一部を編集する際に違和感の少ない編集が可能である。さらに、画像データ上の文字に関する種々のフォントをHDDに格納する必要は無く、少なくとも1つのフォントがあれば当該フォントを用いて編集することが可能であるためHDDの容量等の制約を軽減することも可能である。   By this processing, even if the font does not have the same font as the character on the image data, the character feature information is acquired from the characters included in the peripheral area on the image data, and the acquired character feature information is obtained. It is possible to correct characters based on this, and editing with less discomfort is possible when editing a part of a sentence on image data. Furthermore, it is not necessary to store various fonts related to characters on the image data in the HDD, and if there is at least one font, editing can be performed using the font, so that restrictions such as the capacity of the HDD are reduced. Is also possible.

また、周辺の文字として抽出する文字を予め定めておくようにして周辺の文字の特徴情報の取得の負荷を軽減するようにしても良い。   In addition, a character to be extracted as a peripheral character may be determined in advance to reduce the load of acquiring characteristic information of the peripheral character.

(変形例1)
上記においては、入力文字を周辺の文字の特徴に補正する場合について説明したが、周辺の文字のフォントが書式データと同じ場合も考えられる。当該場合の処理について説明する。
(Modification 1)
In the above description, the case where the input character is corrected to the character of the surrounding character has been described. However, the case where the font of the surrounding character is the same as the format data may be considered. Processing in this case will be described.

図11は、本発明の実施の形態に従う画像形成装置におけるステップS19の変形例1を詳細に説明するフロー図である。   FIG. 11 is a flowchart illustrating in detail Modification 1 of step S19 in the image forming apparatus according to the embodiment of the present invention.

図11を参照して、周辺の文字の特徴は書式データと同一であるかどうかを判断する(ステップS22)。   Referring to FIG. 11, it is determined whether or not the characteristics of surrounding characters are the same as the format data (step S22).

ステップS22において、周辺の文字の特徴は書式データと同一であると判断した場合(ステップS22においてYES)には、入力文字についての補正はしない(ステップS24)。   If it is determined in step S22 that the characteristics of the surrounding characters are the same as the format data (YES in step S22), the input characters are not corrected (step S24).

そして、処理を終了する(リターン)。
一方、ステップS22において、周辺の文字の特徴は書式データと同一でないと判断した場合(ステップS22においてNO)には、入力文字を周辺の文字の特徴に合わせて補正する(ステップS26)。当該処理は、上記で説明したのと同様であるのでその詳細な説明については繰り返さない。
Then, the process ends (return).
On the other hand, if it is determined in step S22 that the characteristics of the surrounding characters are not the same as the format data (NO in step S22), the input characters are corrected according to the characteristics of the surrounding characters (step S26). Since this process is the same as that described above, detailed description thereof will not be repeated.

そして、処理を終了する(リターン)。
当該処理により、周辺の文字のフォントが書式データと同じ場合には特に補正する必要がないため補正することなく入力文字を反映させる。
Then, the process ends (return).
With this processing, if the font of surrounding characters is the same as the format data, it is not necessary to make corrections, and the input characters are reflected without correction.

当該処理により不要な負荷をかけることなく補正処理を実行することが可能である。
なお、周辺の文字の特徴は書式データと同一であるかどうかについての判断は、例えば、書式データについての図10のようなテーブルを予め有しておいて、周辺の文字から取得された特徴情報と比較することにより同一か否かを判断することが可能である。あるいは、周辺の抽出した文字と、書式データの対応する文字との形状における類似度を判定して、同一であるか否かを判断するようにしても良い。
The correction process can be executed without applying unnecessary load by the process.
Note that the determination as to whether or not the characteristics of the surrounding characters are the same as the format data is made by, for example, having a table as shown in FIG. 10 for the format data in advance and obtaining the feature information obtained from the surrounding characters. It is possible to determine whether or not they are the same by comparing with. Or you may make it judge whether the similarity in the shape of the character extracted from the periphery and the character to which a format data respond | corresponds is the same.

なお、上記のステップS22において、周辺の文字の特徴は書式データと同一であるか否かを判断する場合について説明したが、同一に限らず、類似しているか否かを判断するようにしても良い。ある程度類似していれば、違和感の少ない編集が可能であり、当該場合には補正しないようにして補正書利の負荷を軽減することが可能である。   In the above-described step S22, the case where it is determined whether or not the characteristics of the surrounding characters are the same as the format data has been described. However, it is not limited to the same, and it may be determined whether or not they are similar. good. If they are similar to a certain extent, editing with less sense of incongruity is possible, and in this case, it is possible to reduce the burden of correction documents by not correcting them.

(変形例2)
上記においては、入力文字を周辺の文字の特徴に補正する場合について説明したが、さらに違和感の少ない編集が可能な方式について説明する。
(Modification 2)
In the above description, the case where the input character is corrected to the feature of the surrounding character has been described. However, a method capable of editing with less discomfort will be described.

図12は、本発明の実施の形態に従う画像形成装置におけるステップS19の変形例2を詳細に説明するフロー図である。   FIG. 12 is a flowchart illustrating in detail a modification 2 of step S19 in the image forming apparatus according to the embodiment of the present invention.

図12を参照して、周辺の文字の特徴は書式データと同一であるかどうかを判断する(ステップS22)。   Referring to FIG. 12, it is determined whether or not the characteristics of surrounding characters are the same as the format data (step S22).

ステップS22において、周辺の文字の特徴は書式データと同一であると判断した場合(ステップS22においてYES)には、入力文字についての補正はしない(ステップS24)。   If it is determined in step S22 that the characteristics of the surrounding characters are the same as the format data (YES in step S22), the input characters are not corrected (step S24).

そして、処理を終了する(リターン)。
一方、ステップS22において、周辺の文字の特徴は書式データと同一でないと判断した場合(ステップS22においてNO)には、文字認識処理を実行する(ステップS34)。文字認識処理としては、例えば一例として公知のOCRを用いるものとする。
Then, the process ends (return).
On the other hand, if it is determined in step S22 that the characteristics of surrounding characters are not the same as the format data (NO in step S22), character recognition processing is executed (step S34). As the character recognition process, for example, a known OCR is used as an example.

次に、文字認識処理結果として、周辺の文字の中に入力文字と同一の文字が有るかどうかを判断する(ステップS36)。   Next, as a result of the character recognition process, it is determined whether or not there is a character identical to the input character in the surrounding characters (step S36).

ステップS36において、同一の文字があると判断した場合(ステップS36においてYES)には、同一の文字をコピーする(ステップS38)。   If it is determined in step S36 that there is the same character (YES in step S36), the same character is copied (step S38).

そして、次に、その他の文字が有るかどうかを判断する(ステップS40)。その他の文字がある場合には、当該文字についても同一の文字があるかどうかを判断するようにしたものである。   Next, it is determined whether there are other characters (step S40). When there are other characters, it is determined whether or not the same character exists for the character.

ステップS40において、その他の文字があると判断した場合(ステップS40においてYES)には、ステップS36に戻る。   If it is determined in step S40 that there are other characters (YES in step S40), the process returns to step S36.

一方、ステップS40において、その他の文字が無いと判断した場合には、処理を終了する(リターン)。   On the other hand, if it is determined in step S40 that there are no other characters, the process ends (return).

そして、文字の変更を反映する処理において、コピーした文字を入力文字として反映させる。   In the process of reflecting the character change, the copied character is reflected as the input character.

一方、ステップS36において、同一の文字がないと判断した場合(ステップS36においてNO)には、入力文字を周辺の文字の特徴に合わせて補正する(ステップS26)。当該処理は、上記で説明したのと同様であるのでその詳細な説明については繰り返さない。   On the other hand, if it is determined in step S36 that there is no identical character (NO in step S36), the input character is corrected according to the characteristics of surrounding characters (step S26). Since this process is the same as that described above, detailed description thereof will not be repeated.

そして、処理を終了する(リターン)。
当該処理により、入力文字と同一の文字が周辺領域に含まれる場合には、当該周辺領域に含まれる文字をコピーして入力文字として用いることにより、さらに違和感の少ない編集が可能である。なお、入力文字と同一の文字があるか否かについては、周辺領域を拡げて例えば画像データ全体で検索するようにすることも可能である。
Then, the process ends (return).
When the same character as the input character is included in the peripheral area by the processing, editing with less discomfort is possible by copying the character included in the peripheral area and using it as the input character. Whether or not there is the same character as the input character can be searched by expanding the peripheral area, for example, the entire image data.

文字のフォントが書式データと同じ場合には特に補正する必要がないため補正することなく入力文字を反映させる。   When the character font is the same as the format data, the input character is reflected without correction because it is not necessary to correct it.

(変形例3)
上記においては、入力文字を周辺の文字の特徴に補正する場合について説明したが、さらに違和感の少ない編集が可能な方式について説明する。
(Modification 3)
In the above description, the case where the input character is corrected to the feature of the surrounding character has been described. However, a method capable of editing with less discomfort will be described.

図13は、本発明の実施の形態に従う画像形成装置におけるステップS19の変形例3を詳細に説明するフロー図である。   FIG. 13 is a flowchart illustrating in detail Modification 3 of step S19 in the image forming apparatus according to the embodiment of the present invention.

図13を参照して、周辺の文字の特徴は書式データと同一であるかどうかを判断する(ステップS22)。   Referring to FIG. 13, it is determined whether or not the characteristics of surrounding characters are the same as the format data (step S22).

ステップS22において、周辺の文字の特徴は書式データと同一であると判断した場合(ステップS22においてYES)には、入力文字についての補正はしない(ステップS24)。   If it is determined in step S22 that the characteristics of the surrounding characters are the same as the format data (YES in step S22), the input characters are not corrected (step S24).

そして、処理を終了する(リターン)。
一方、ステップS22において、周辺の文字の特徴は書式データと同一でないと判断した場合(ステップS22においてNO)には、文字認識処理を実行する(ステップS34)。文字認識処理としては、例えば一例として公知のOCRを用いるものとする。
Then, the process ends (return).
On the other hand, if it is determined in step S22 that the characteristics of surrounding characters are not the same as the format data (NO in step S22), character recognition processing is executed (step S34). As the character recognition process, for example, a known OCR is used as an example.

そして、次に、文字認識処理結果として、周辺の文字の一部と入力文字の一部の形状とが同一で有るかどうかを判断する(ステップS50)。具体的には、例えば、一部の形状が同一である場合として、部首が同一である場合が挙げられる。なお、部首が同じかどうかは、予め部首毎にグルーピングされた辞書情報を格納しておいて当該辞書情報に基づいて同じかどうかを判断しても良い。   Next, as a result of the character recognition process, it is determined whether a part of the surrounding characters and the shape of the part of the input character are the same (step S50). Specifically, for example, as a case where some shapes are the same, a case where the radicals are the same can be mentioned. Whether the radicals are the same may be determined by storing dictionary information grouped in advance for each radical and determining whether the radicals are the same based on the dictionary information.

ステップS50において、周辺の文字の一部と入力文字の一部の形状とが同一であると判断した場合(ステップS50においてYES)には、一部部位をコピーする(ステップS52)。   If it is determined in step S50 that a part of the surrounding characters and the shape of the part of the input character are the same (YES in step S50), a part of the part is copied (step S52).

そして、入力文字の残りの部位を周辺の文字の特徴に合わせて補正する(ステップS54)。   Then, the remaining part of the input character is corrected according to the characteristics of the surrounding characters (step S54).

そして、次に、その他の文字が有るかどうかを判断する(ステップS56)。
ステップS56において、その他の文字があると判断した場合(ステップS56においてYES)には、ステップS50に戻る。
Next, it is determined whether or not there are other characters (step S56).
If it is determined in step S56 that there are other characters (YES in step S56), the process returns to step S50.

一方、ステップS56において、その他の文字が無いと判断した場合には、処理を終了する(リターン)。   On the other hand, if it is determined in step S56 that there are no other characters, the process ends (return).

そして、文字の変更を反映する処理において、コピーした文字の一部部位と、修正した残り部位を入力文字として反映させる。   Then, in the process of reflecting the change of the character, a part of the copied character and the corrected remaining part are reflected as the input character.

一方、ステップS50において、周辺の文字の一部と入力文字の一部の形状とが同一ではないと判断した場合(ステップS50においてNO)には、入力文字を周辺の文字の特徴に合わせて補正する(ステップS26)。当該処理は、上記で説明したのと同様であるのでその詳細な説明については繰り返さない。   On the other hand, if it is determined in step S50 that some of the surrounding characters are not the same as the shape of some of the input characters (NO in step S50), the input characters are corrected according to the characteristics of the surrounding characters. (Step S26). Since this process is the same as that described above, detailed description thereof will not be repeated.

そして、処理を終了する(リターン)。
図14は、入力文字の一部の形状を周辺の文字の特徴に合わせて補正する場合の具体例を説明する図である。
Then, the process ends (return).
FIG. 14 is a diagram for explaining a specific example in a case where the shape of a part of an input character is corrected according to the characteristics of surrounding characters.

図14を参照して、ここでは、一例として、画像データ上の周辺の文字として「情」という文字が抽出された場合の図が示されている。   Referring to FIG. 14, here, as an example, a diagram in the case where a character “jo” is extracted as a peripheral character on the image data is shown.

一方で、例えば入力文字が「惰」である場合について説明する。「情」と「惰」という漢字はそれぞれ部首は同じである。すなわち、周辺の文字の一部と入力文字の一部の形状とは同一である。   On the other hand, for example, a case where the input character is “惰” will be described. The radicals for the Chinese characters "jo" and "惰" are the same. That is, a part of the surrounding characters and the shape of a part of the input characters are the same.

したがって、「情」という漢字の部首の部分を分割してコピーし、入力文字の「惰」の部首と置換する。また、入力文字の「惰」の残りの部位については周辺の文字の特徴情報に基づいて補正する。   Therefore, the radical part of the Chinese character “jo” is divided and copied and replaced with the radical “惰” of the input character. Further, the remaining portion of the input character “惰” is corrected based on the feature information of the surrounding characters.

当該補正により、画像データ上の文字と同じフォントを有していない場合であっても、画像データ上の周辺領域に含まれる文字の一部の形状と、入力文字の一部の形状とが同一である場合には、同一の形状部分をコピーして、それを反映する。これにより、周辺領域の文字の特徴の一部が入力文字の一部に反映されているため、画像データ上の文章の一部を編集する際により違和感の少ない編集が可能となる。   With this correction, even if the font does not have the same font as the characters on the image data, the shape of some of the characters included in the peripheral area on the image data and the shape of some of the input characters are the same If it is, copy the same shape part and reflect it. As a result, since some of the character features of the peripheral area are reflected in some of the input characters, editing with less discomfort is possible when editing a part of the text on the image data.

なお、文字の一部の形状ではなく全部の形状が同一である場合には、図12で説明したように全部をコピーして反映させれば良い。   If all the shapes are the same but not a part of the characters, the whole may be copied and reflected as described with reference to FIG.

なお、上記においては、主に入力文字が漢字である場合の例について説明したが、特に漢字に限られずひらがな等についても同様に反映することが可能である。また、特に日本語に限られず、他のアルファベット等の書式データについても同様に反映することが可能である。   In the above description, an example in which the input characters are mainly kanji has been described. However, the present invention is not limited to kanji and can be similarly applied to hiragana and the like. In addition, it is not limited to Japanese, and other format data such as alphabets can be similarly reflected.

なお、本発明にかかる情報処理装置の一例として、画像形成装置であるMFPについて説明したが、特にこれに限られず、プリンター装置あるいはファクシミリ装置等であってもよい。   Note that the MFP that is the image forming apparatus has been described as an example of the information processing apparatus according to the present invention. However, the present invention is not particularly limited thereto, and may be a printer apparatus, a facsimile apparatus, or the like.

なお、コンピュータを機能させて上述のフローで説明したような制御を実行させるプログラムを提供することも可能である。このようなプログラムは、コンピュータに付属するフレキシブルディスク、CD−ROM(Compact Disk-Read Only Memory)、ROM(Read Only Memory)、RAM(Random Access Memory)およびメモリカードなどのコンピュータ読取り可能な記録媒体にて記録させて、プログラム製品として提供することもできる。あるいは、コンピュータに内蔵するハードディスクなどの記録媒体にて記録させて、プログラムを提供することもできる。このような記憶媒体としては、フラッシュメモリ、マスクROM、EPROM(Electronically Programmable Read-Only Memory)、EEPROM(Electronically Erasable Programmable Read-Only Memory)、IC(Integrated Circuit)カードなどの半導体記憶媒体、CD−ROM(Compact Disc-Read Only Memory)やDVD−ROM(Digital Versatile Disk-Read Only Memory)などの光学ディスク記憶媒体、MO(Magnetic Optical Disc)やMD(Mini Disc)などの光磁気ディスク記憶媒体、FD(Flexible Disk)、磁気テープ、カセットテープなどの磁気記憶媒体を用いることができる。   It is also possible to provide a program that causes a computer to function and execute control as described in the above flow. Such a program is stored in a computer-readable recording medium such as a flexible disk attached to the computer, a CD-ROM (Compact Disk-Read Only Memory), a ROM (Read Only Memory), a RAM (Random Access Memory), and a memory card. And can be provided as a program product. Alternatively, the program can be provided by being recorded on a recording medium such as a hard disk built in the computer. As such storage media, semiconductor memories such as flash memory, mask ROM, EPROM (Electronically Programmable Read-Only Memory), EEPROM (Electronically Erasable Programmable Read-Only Memory), IC (Integrated Circuit) card, CD-ROM (Compact Disc-Read Only Memory) and optical disc storage media such as DVD-ROM (Digital Versatile Disk-Read Only Memory), magneto-optical disc storage media such as MO (Magnetic Optical Disc) and MD (Mini Disc), FD ( Magnetic storage media such as Flexible Disk), magnetic tape, and cassette tape can be used.

なお、本発明にかかるプログラムは、コンピュータのオペレーションシステム(OS)の一部として提供されるプログラムモジュールのうち、必要なモジュールを所定の配列で所定のタイミングで呼出して処理を実行させるものであってもよい。その場合、プログラム自体には上記モジュールが含まれずOSと協働して処理が実行される。このようなモジュールを含まないプログラムも、本発明にかかるプログラムに含まれ得る。   The program according to the present invention is a program module that is provided as a part of a computer operating system (OS) and calls necessary modules in a predetermined arrangement at a predetermined timing to execute processing. Also good. In that case, the program itself does not include the module, and the process is executed in cooperation with the OS. A program that does not include such a module can also be included in the program according to the present invention.

また、本発明にかかるプログラムは他のプログラムの一部に組込まれて提供されるものであってもよい。その場合にも、プログラム自体には上記他のプログラムに含まれるモジュールが含まれず、他のプログラムと協働して処理が実行される。このような他のプログラムに組込まれたプログラムも、本発明にかかるプログラムに含まれ得る。   The program according to the present invention may be provided by being incorporated in a part of another program. Even in this case, the program itself does not include the module included in the other program, and the process is executed in cooperation with the other program. Such a program incorporated in another program can also be included in the program according to the present invention.

提供されるプログラム製品は、ハードディスクなどのプログラム格納部にインストールされて実行される。なお、プログラム製品は、プログラム自体と、プログラムが記録された記録媒体とを含む。   The provided program product is installed in a program storage unit such as a hard disk and executed. The program product includes the program itself and a recording medium on which the program is recorded.

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

1 画像形成装置、100 制御部、101 CPU、102 ROM、110 固定記憶装置、120 スキャナー、130 操作パネル、140 プリンター、150 プリンターコントローラ、170 内部バス。   DESCRIPTION OF SYMBOLS 1 Image forming apparatus, 100 Control part, 101 CPU, 102 ROM, 110 Fixed storage device, 120 Scanner, 130 Operation panel, 140 Printer, 150 Printer controller, 170 Internal bus.

Claims (10)

原稿から画像データを取得する画像データ取得手段と、
前記画像データから前記画像データ上の文字の位置情報を取得する文字位置情報取得手段と、
前記画像データ上の文字の変更または追加を指示する位置を選択する位置選択手段と、
前記位置選択手段で選択した位置に入力される入力文字を受け付ける文字受付手段と、
前記画像データ上の少なくとも前記選択した位置の周辺領域に配置されている文字の特徴情報を取得する文字特徴情報取得手段と、
前記文字特徴情報取得手段で取得した文字の特徴情報に基づいて前記文字受付手段で受け付けた入力文字を補正する文字補正手段と、
前記文字補正手段により補正された入力文字を前記選択した位置に配置する文字反映手段とを備える、情報処理装置。
Image data acquisition means for acquiring image data from a document;
Character position information acquisition means for acquiring position information of characters on the image data from the image data;
Position selection means for selecting a position for instructing a change or addition of characters on the image data;
Character accepting means for accepting an input character input at the position selected by the position selecting means;
Character feature information acquisition means for acquiring feature information of characters arranged in at least a peripheral region of the selected position on the image data;
Character correcting means for correcting the input character received by the character receiving means based on the character feature information acquired by the character feature information acquiring means;
An information processing apparatus comprising: character reflecting means for arranging the input character corrected by the character correcting means at the selected position.
前記文字特徴情報取得手段は、前記画像データ上の少なくとも前記選択した位置に従って周辺領域を設定することを含む、請求項1記載の情報処理装置。The information processing apparatus according to claim 1, wherein the character feature information acquisition unit includes setting a peripheral region according to at least the selected position on the image data. 前記文字特徴情報取得手段は、前記画像データ上の文字を形成する線分の幅に関する特徴情報を取得し、
前記文字補正手段は、前記入力文字の幅を前記特徴情報に従って補正をする、請求項1または2のいずれか1項に記載の情報処理装置。
The character feature information acquisition means acquires feature information related to the width of a line segment forming a character on the image data,
The character correction means a correction in accordance with the feature information a width of the input character, the information processing apparatus according to any one of claims 1 or 2.
前記文字特徴情報取得手段は、前記画像データ上の文字を形成する線分の始点と終点の形状に関する特徴情報を取得し、
前記文字補正手段は、前記入力文字の線分の始点と終点の形状を前記特徴情報に従って補正する、請求項1または2のいずれか1項に記載の情報処理装置。
The character feature information acquisition means acquires feature information related to the shape of the start point and end point of a line segment forming a character on the image data,
The character correction means corrects the shape of the start and end points of the line segment of the input character according to said characteristic information, the information processing apparatus according to any one of claims 1 or 2.
前記文字特徴情報取得手段は、文字を認識する文字認識手段をさらに含み、
前記文字補正手段は、前記入力文字の少なくとも一部が前記文字認識手段で認識された文字と同一の文字であると判断した場合には、前記画像データ上の対応する文字と置換する、請求項1または2のいずれか1項に記載の情報処理装置。
The character feature information acquisition means further includes character recognition means for recognizing characters,
The character correction unit, when determining that at least a part of the input character is the same character as the character recognized by the character recognition unit, replaces the corresponding character on the image data. The information processing apparatus according to any one of 1 and 2 .
前記入力文字に関する特徴情報を含む書体データが格納された記憶手段と、
前記文字特徴情報取得手段で取得した文字の特徴情報が前記書体データの特徴情報と同一であるかどうかを判断する判断手段とをさらに備え、
前記文字補正手段は、前記判断手段において同一でないと判断した場合に前記文字特徴情報取得手段で取得した文字の特徴情報に基づいて前記文字受付手段で受け付けた入力文字を補正する、請求項1または2のいずれか1項に記載の情報処理装置。
Storage means storing typeface data including feature information related to the input characters;
Determining means for determining whether or not the character feature information acquired by the character feature information acquiring means is the same as the feature information of the typeface data;
The character correction means corrects the input character received by the character receiving unit based on the obtained character characteristic information in the character feature information obtaining means when it is judged not to be the same in the determining means, according to claim 1 or 3. The information processing apparatus according to any one of 2 above.
原稿から画像データを取得するステップと、
前記画像データから前記画像データ上の文字の位置情報を取得するステップと、
前記画像データ上の文字の変更または追加を指示する位置を選択する入力を受け付けるステップと、
選択した位置に入力される入力文字を受け付けるステップと、
前記画像データ上の少なくとも前記選択した位置の周辺領域に配置されている文字の特徴情報を取得するステップと、
取得した文字の特徴情報に基づいて受け付けた入力文字を補正するステップと、
補正された入力文字を前記選択した位置に配置するステップとを備える、情報処理装置の制御方法。
Obtaining image data from a document;
Obtaining position information of characters on the image data from the image data;
Receiving an input for selecting a position for instructing a change or addition of characters on the image data;
Receiving an input character input at the selected position;
Obtaining feature information of characters arranged in at least a peripheral region of the selected position on the image data;
Correcting the received input character based on the acquired character feature information;
Arranging the corrected input character at the selected position.
前記文字の特徴情報を取得するステップは、前記画像データ上の少なくとも前記選択した位置の周辺領域を設定するステップを含む、請求項7記載の制御方法。The control method according to claim 7, wherein obtaining the character feature information includes setting at least a peripheral region of the selected position on the image data. 情報処理装置のコンピュータに実行させる制御プログラムであって、
前記制御プログラムは、前記コンピュータに、
原稿から画像データを取得するステップと、
前記画像データから前記画像データ上の文字の位置情報を取得するステップと、
前記画像データ上の文字の変更または追加を指示する位置を選択する入力を受け付けるステップと、
選択した位置に入力される入力文字を受け付けるステップと、
前記画像データ上の少なくとも前記選択した位置の周辺領域に配置されている文字の特徴情報を取得するステップと、
取得した文字の特徴情報に基づいて受け付けた入力文字を補正するステップと、
補正された入力文字を前記選択した位置に配置するステップとを備える、処理を実行させる情報処理装置の制御プログラム。
A control program to be executed by a computer of an information processing device,
The control program is stored in the computer.
Obtaining image data from a document;
Obtaining position information of characters on the image data from the image data;
Receiving an input for selecting a position for instructing a change or addition of characters on the image data;
Receiving an input character input at the selected position;
Obtaining feature information of characters arranged in at least a peripheral region of the selected position on the image data;
Correcting the received input character based on the acquired character feature information;
A control program for an information processing apparatus for executing processing, comprising: arranging corrected input characters at the selected position.
前記文字の特徴情報を取得するステップは、前記画像データ上の少なくとも前記選択した位置の周辺領域を設定するステップを含む、請求項9記載の制御プログラム。The control program according to claim 9, wherein the step of acquiring the character feature information includes a step of setting at least a peripheral region of the selected position on the image data.
JP2011277204A 2011-12-19 2011-12-19 Information processing apparatus, control method for information processing apparatus, and control program Active JP5857719B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011277204A JP5857719B2 (en) 2011-12-19 2011-12-19 Information processing apparatus, control method for information processing apparatus, and control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011277204A JP5857719B2 (en) 2011-12-19 2011-12-19 Information processing apparatus, control method for information processing apparatus, and control program

Publications (2)

Publication Number Publication Date
JP2013127714A JP2013127714A (en) 2013-06-27
JP5857719B2 true JP5857719B2 (en) 2016-02-10

Family

ID=48778212

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011277204A Active JP5857719B2 (en) 2011-12-19 2011-12-19 Information processing apparatus, control method for information processing apparatus, and control program

Country Status (1)

Country Link
JP (1) JP5857719B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63197266A (en) * 1987-02-12 1988-08-16 Matsushita Electric Ind Co Ltd Document image editing device
JPH03103996A (en) * 1989-09-19 1991-04-30 Toshiba Corp Optical character reader
JPH06149216A (en) * 1992-10-30 1994-05-27 Casio Comput Co Ltd Font generating device
JP2005352735A (en) * 2004-06-10 2005-12-22 Fuji Xerox Co Ltd Document file creation support device, document file creation support method, and program thereof
JP4881605B2 (en) * 2005-10-28 2012-02-22 株式会社リコー Character recognition device, storage medium, and character recognition method

Also Published As

Publication number Publication date
JP2013127714A (en) 2013-06-27

Similar Documents

Publication Publication Date Title
JP4251629B2 (en) Image processing system, information processing apparatus, control method, computer program, and computer-readable storage medium
US7865353B2 (en) Translation device, image processing device, translation method, and recording medium
KR101227874B1 (en) Image processing apparatus, image processing method, and computer-readable storage medium
US8225200B2 (en) Extracting a character string from a document and partitioning the character string into words by inserting space characters where appropriate
KR100788444B1 (en) Log data recording device and log data recording method
JP5915628B2 (en) Image forming apparatus, text data embedding method, and embedding program
JP2007174270A (en) Image processing apparatus, image processing method, storage medium, and program
JP2010020468A (en) Image processing apparatus, image processing method, its program, and storage medium
US7417765B2 (en) Image processing apparatus and method, image processing program, and storage medium
US20120250107A1 (en) Image processing apparatus, image processing method, and computer readable medium storing program
US9659018B2 (en) File name producing apparatus that produces file name of image
JP6579332B2 (en) Image forming apparatus, document digitizing program, and document digitizing method
JP4505516B2 (en) Image processing apparatus, image processing program, and recording medium
US20200396351A1 (en) Character recognition device, method of generating document file, and storage medium
JP4924990B2 (en) Document processing apparatus and document processing program
JP5857719B2 (en) Information processing apparatus, control method for information processing apparatus, and control program
JP2009272962A (en) Image processor
JP6930455B2 (en) Information processing device
JP2006276905A (en) Translation device, image processing device, image forming device, and translation method and program
JP2006196976A (en) Copying system with automatic clean copy function using ocr
JP4043381B2 (en) Document creation support apparatus, method, program, and recording medium
US8004712B2 (en) Image processing apparatus and method
JP2006262152A (en) Image forming method and device, and program
JP6158736B2 (en) Information processing apparatus, information processing system, and information processing program
JP5723803B2 (en) Image processing apparatus and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130416

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140818

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150417

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150421

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150619

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151130

R150 Certificate of patent or registration of utility model

Ref document number: 5857719

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150