JP2018173781A - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP2018173781A
JP2018173781A JP2017071060A JP2017071060A JP2018173781A JP 2018173781 A JP2018173781 A JP 2018173781A JP 2017071060 A JP2017071060 A JP 2017071060A JP 2017071060 A JP2017071060 A JP 2017071060A JP 2018173781 A JP2018173781 A JP 2018173781A
Authority
JP
Japan
Prior art keywords
text
area
edit
sheet
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017071060A
Other languages
Japanese (ja)
Other versions
JP6686957B2 (en
Inventor
正輝 西原
Masateru Nishihara
正輝 西原
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2017071060A priority Critical patent/JP6686957B2/en
Publication of JP2018173781A publication Critical patent/JP2018173781A/en
Application granted granted Critical
Publication of JP6686957B2 publication Critical patent/JP6686957B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image forming apparatus capable of editing a document without using an information device such as a PC.SOLUTION: The image forming apparatus generates a text file for each text area extracted from image data of a document sheet, prints an edit reception sheet on which a frame is arranged in an area corresponding to the extracted text area, configures a text for an edit object text in which the text is included in the text file in the text area corresponding to an edit text area that is a frame area where the text exists among image data obtained by reading out the edit reception sheet, substitute the edit object text with the text existing in the edit text area, and generates image data of an edited sheet in which the text existing in the edit object area that is the text area corresponding to the edit text area among image data of the document sheet is changed to the text after being substituted.SELECTED DRAWING: Figure 16

Description

本発明は、原稿を読み取って印刷を行う画像形成装置に関する。   The present invention relates to an image forming apparatus that reads a document and performs printing.

従来、テンプレート文書の所定領域(たとえば、名前欄や住所欄など)に予め登録されたテキストを埋め込んだ文書データを生成し、印刷する技術が知られている。このような技術は特許文献1に開示されている。   Conventionally, a technique for generating and printing document data in which text registered in advance in a predetermined area (for example, a name field or an address field) of a template document is known. Such a technique is disclosed in Patent Document 1.

特許文献1のデータ作成システムは、互いに通信可能に接続されたパーソナルコンピューター(PC)および画像形成装置を備える。PCは、テンプレート文書の文書データを生成し、文書データを画像形成装置に送信する。画像形成装置は、PCから受信した文書データに基づき、テンプレート文書を配した文書シートを印刷出力する。   The data creation system of Patent Document 1 includes a personal computer (PC) and an image forming apparatus that are connected to be communicable with each other. The PC generates document data of the template document and transmits the document data to the image forming apparatus. The image forming apparatus prints out a document sheet on which a template document is arranged based on document data received from the PC.

特開2011−248421号公報JP 2011-248421 A

たとえば、テンプレート文書が配された文書シートの印刷出力後、文書シートに印刷されたテンプレート文書を編集したい場合がある。この場合、特許文献1では、PC上でテンプレート文書を編集し、編集後のテンプレート文書の文書データを画像形成装置に送信する必要がある。すなわち、PCの使用が可能な状態でなければ、テンプレート文書の編集を行うことができない。   For example, there is a case where it is desired to edit the template document printed on the document sheet after the document sheet on which the template document is arranged is printed out. In this case, in Patent Document 1, it is necessary to edit a template document on a PC and transmit document data of the edited template document to the image forming apparatus. That is, the template document cannot be edited unless the PC can be used.

ここで、場合によっては、PCが故障していたり、画像形成装置にPCが接続されていなかったりすることがある。この場合、特許文献1では、テンプレート文書を編集したくても、テンプレート文書の編集を行うことができない(PCの使用が可能になるまで待たなくてはならない)。したがって、ユーザーにとっては利便性が悪い。   Here, in some cases, the PC may be out of order, or the PC may not be connected to the image forming apparatus. In this case, in Patent Document 1, even if the template document is to be edited, the template document cannot be edited (the user must wait until the PC can be used). Therefore, it is not convenient for the user.

本発明は、上記課題を解決するためになされたものであり、PCなどの情報機器を使用しなくても、文書を編集することが可能な画像形成装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image forming apparatus capable of editing a document without using an information device such as a PC.

上記目的を達成するため、本発明の画像形成装置は、シートを読み取ってシートの画像データを生成する画像読取部と、印刷を行う印刷部と、文書シートに記載された文書を編集するための処理を行う制御部と、を備える。制御部は、画像読取部により文書シートの読み取りが行われることによって文書シートの画像データが生成されると、文書シートの画像データからそれぞれがテキストを含む複数の領域を抽出し、当該抽出した領域であるテキスト領域ごとにテキスト領域に存在するテキストのテキストファイルを生成するテキスト抽出処理を行うとともに、テキスト領域に対応する各領域に枠内が空白の枠を配した編集受付シートの第2画像データを生成する編集受付シート生成処理を行い、編集受付シートの印刷を印刷部に行わせる。また、制御部は、画像読取部により編集受付シートの読み取りが行われることによって編集受付シートの第2画像データが生成されると、編集受付シートの第2画像データのうち枠に対応する枠領域に存在するテキストを認識する処理を行い、テキストが存在する枠領域である編集テキスト領域に対応するテキスト領域のテキストファイルに含まれるテキストを編集対象テキストに設定し、編集対象テキストを編集テキスト領域に存在するテキストに置き換えるテキスト置換処理を行うとともに、文書シートの画像データのうち編集テキスト領域に対応するテキスト領域を編集対象領域に設定し、編集対象領域に存在するテキストを編集対象領域のテキストファイルに含まれるテキスト置換処理後のテキストに変更した編集済シートの画像データを生成する編集済シート生成処理を行う。   In order to achieve the above object, an image forming apparatus according to the present invention includes an image reading unit that reads a sheet to generate image data of the sheet, a printing unit that performs printing, and a document that is described on a document sheet. And a control unit that performs processing. When the image data of the document sheet is generated by reading the document sheet by the image reading unit, the control unit extracts a plurality of regions each including text from the image data of the document sheet, and the extracted region The second image data of the edit reception sheet in which a text extraction process for generating a text file of the text existing in the text area is performed for each text area, and a blank frame is arranged in each area corresponding to the text area Edit reception sheet generation processing is performed to cause the printing unit to print the edit reception sheet. In addition, when the second image data of the edit receiving sheet is generated by reading the edit receiving sheet by the image reading unit, the control unit generates a frame area corresponding to the frame in the second image data of the edit receiving sheet. The text included in the text file of the text area corresponding to the edit text area that is the frame area where the text exists is set as the edit target text, and the edit target text is set in the edit text area. Performs text replacement processing to replace existing text, sets the text area corresponding to the edit text area in the image data of the document sheet as the edit target area, and converts the text existing in the edit target area to the text file in the edit target area The image data of the edited sheet changed to the text after the text replacement process included Perform the edited sheet generation process of generating the data.

本発明の構成では、テンプレート文書などの文書が記載された文書シートを画像形成装置に読み取らせると、編集受付シートが印刷される。その後、編集内容(編集後のテキスト)を記載した編集受付シートを画像形成装置に読み取らせることによって、編集受付シートに記載の編集内容を反映した編集済シートの画像データが生成される。これにより、パーソナルコンピューターのような情報機器を使用しなくても(編集受付シートに編集内容を記載するだけで)、文書シートに記載の文書を編集することができる(編集済シートを取得することができる)。   In the configuration of the present invention, when a document sheet on which a document such as a template document is described is read by the image forming apparatus, an edit acceptance sheet is printed. Thereafter, by causing the image forming apparatus to read the edit reception sheet describing the edited content (text after editing), image data of the edited sheet reflecting the edited content described in the edit received sheet is generated. As a result, it is possible to edit the document described in the document sheet (obtaining the edited sheet) without using an information device such as a personal computer (simply describing the edited contents on the edit reception sheet). Can do).

本発明の構成では、PCなどの情報機器を使用しなくても、文書を編集することができる。   With the configuration of the present invention, a document can be edited without using an information device such as a PC.

本発明の一実施形態による画像形成装置の全体構成を示す図1 is a diagram illustrating an overall configuration of an image forming apparatus according to an embodiment of the present invention. 本発明の一実施形態による画像形成装置のハードウェア構成を示す図1 is a diagram illustrating a hardware configuration of an image forming apparatus according to an embodiment of the present invention. 本発明の一実施形態による画像形成装置が記載文書を編集する文書シートを示す図2 is a diagram illustrating a document sheet for editing a document described by the image forming apparatus according to the embodiment of the invention. FIG. 本発明の一実施形態による画像形成装置が行う文書編集機能に関する処理(第1処理)の流れを示すフローチャート6 is a flowchart showing a flow of processing (first processing) related to a document editing function performed by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が行うテキスト抽出処理について説明するための図The figure for demonstrating the text extraction process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が行うテキスト抽出処理について説明するための図The figure for demonstrating the text extraction process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が行うテキスト抽出処理について説明するための図The figure for demonstrating the text extraction process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が行うテキスト抽出処理について説明するための図The figure for demonstrating the text extraction process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が生成する文書シートの画像データを示す図4 is a diagram showing image data of a document sheet generated by the image forming apparatus according to the embodiment of the present invention. FIG. 本発明の一実施形態による画像形成装置が生成するテキストファイルを示す図The figure which shows the text file which the image forming apparatus by one Embodiment of this invention produces | generates 本発明の一実施形態による画像形成装置が印刷する編集受付シートを示す図The figure which shows the edit reception sheet which the image forming apparatus by one Embodiment of this invention prints 図11に示した編集受付シートに編集内容が記載された状態の図The figure of the state where edit contents were described in the edit reception sheet shown in FIG. 本発明の一実施形態による画像形成装置が行う文書編集機能に関する処理(第2処理)の流れを示すフローチャート7 is a flowchart showing a flow of processing (second processing) related to a document editing function performed by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が生成する編集受付シートの画像データを示す図The figure which shows the image data of the edit reception sheet which the image forming apparatus by one Embodiment of this invention produces | generates 本発明の一実施形態による画像形成装置が行うテキスト置換処理について説明するための図The figure for demonstrating the text substitution process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が文書シートの画像データから編集済シートの画像データを生成するときの図The figure when the image forming apparatus by one Embodiment of this invention produces | generates the image data of an edited sheet from the image data of a document sheet 本発明の一実施形態による画像形成装置が印刷する編集済シートを示す図The figure which shows the edited sheet which the image forming apparatus by one Embodiment of this invention prints 本発明の一実施形態による画像形成装置が行う配置領域調整処理について説明するための図The figure for demonstrating the arrangement | positioning area | region adjustment process which the image forming apparatus by one Embodiment of this invention performs. 本発明の一実施形態による画像形成装置が行う配置領域調整処理について説明するための図The figure for demonstrating the arrangement | positioning area | region adjustment process which the image forming apparatus by one Embodiment of this invention performs. 本発明の一実施形態による画像形成装置が印刷する編集済シートの一部(補助画像が印刷された部分)を示す図FIG. 4 is a diagram showing a part of an edited sheet (a part on which an auxiliary image is printed) printed by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が印刷する編集済シートの一部(補助画像が印刷された部分)を示す図FIG. 4 is a diagram showing a part of an edited sheet (a part on which an auxiliary image is printed) printed by the image forming apparatus according to the embodiment of the present invention. 本発明の一実施形態による画像形成装置が行うテキスト置換処理の変形例(部分置換処理)について説明するための図The figure for demonstrating the modification (partial replacement process) of the text replacement process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が行うテキスト置換処理の変形例(部分置換処理)について説明するための図The figure for demonstrating the modification (partial replacement process) of the text replacement process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が行う編集受付シート生成処理の変形例について説明するための図The figure for demonstrating the modification of the edit reception sheet | seat production | generation process which the image forming apparatus by one Embodiment of this invention performs 本発明の一実施形態による画像形成装置が行う編集受付シート生成処理の変形例について説明するための図The figure for demonstrating the modification of the edit reception sheet | seat production | generation process which the image forming apparatus by one Embodiment of this invention performs

<装置構成>
図1に示すように、本実施形態の画像形成装置100は、画像読取部1を備える。画像読取部1は、原稿D(後述する文書シート300および後述する編集受付シート400を含む)を読み取って原稿Dの画像データを生成する。画像読取部1は、ランプ11やイメージセンサー12など原稿Dを光学的に読み取るための光学系部材を含む。ランプ11やイメージセンサー12などは、画像読取部1の筐体(読取筐体)の内部に収容される。読取筐体の上面にはコンタクトガラスCGが設けられる。そして、画像読取部1は、コンタクトガラスCGにセットされた原稿Dを読み取る。
<Device configuration>
As shown in FIG. 1, the image forming apparatus 100 of this embodiment includes an image reading unit 1. The image reading unit 1 reads a document D (including a document sheet 300 described later and an edit reception sheet 400 described later), and generates image data of the document D. The image reading unit 1 includes an optical system member for optically reading the document D such as a lamp 11 and an image sensor 12. The lamp 11, the image sensor 12, and the like are accommodated in a housing (reading housing) of the image reading unit 1. A contact glass CG is provided on the upper surface of the reading housing. The image reading unit 1 reads the document D set on the contact glass CG.

たとえば、読取筐体の上面には、コンタクトガラスCGにセットした原稿Dを押え付けるための原稿押え13が設けられる。図1では、原稿押え13によって原稿Dが押え付けられた状態を図示する。   For example, a document presser 13 for pressing the document D set on the contact glass CG is provided on the upper surface of the reading housing. FIG. 1 illustrates a state in which the document D is pressed by the document presser 13.

また、画像形成装置100は、印刷部2を備える。印刷部2は、給紙部21、画像形成部22および定着部23を含む。印刷部2は、用紙に画像を印刷する(たとえば、後述する編集受付シート400の印刷が行われる)。   Further, the image forming apparatus 100 includes a printing unit 2. The printing unit 2 includes a paper feeding unit 21, an image forming unit 22, and a fixing unit 23. The printing unit 2 prints an image on a sheet (for example, printing of an edit reception sheet 400 described later is performed).

給紙部21は、カセットに収容された用紙を用紙搬送路(図1では破線で示す)に給紙する。用紙搬送路に給紙された用紙は用紙搬送路に沿って搬送される。   The paper feeding unit 21 feeds the paper stored in the cassette to a paper transport path (shown by a broken line in FIG. 1). The paper fed to the paper transport path is transported along the paper transport path.

画像形成部22は、ブラック(Bk)、イエロー(Y)、シアン(C)およびマゼンタ(M)の各色にそれぞれ対応する機構部22Bk、22Y、22Cおよび22Mを含む。機構部22Bk、22Y、22Cおよび22Mは、それぞれ、対応する色のトナー像を形成し、中間ベルトに1次転写する。中間ベルトに転写されたトナー像は、搬送中の用紙に2次転写される。   The image forming unit 22 includes mechanism units 22Bk, 22Y, 22C, and 22M corresponding to the respective colors of black (Bk), yellow (Y), cyan (C), and magenta (M). The mechanism units 22Bk, 22Y, 22C, and 22M respectively form corresponding color toner images and primarily transfer them to the intermediate belt. The toner image transferred to the intermediate belt is secondarily transferred to the paper being conveyed.

定着部23は、トナー像が転写された用紙を加圧および加熱する。これにより、用紙にトナー像が定着される。トナー像が定着された印刷済み用紙は、用紙搬送路に沿ってそのまま搬送され、排出される。   The fixing unit 23 pressurizes and heats the sheet on which the toner image is transferred. As a result, the toner image is fixed on the sheet. The printed paper on which the toner image is fixed is transported as it is along the paper transport path and discharged.

なお、画像形成装置100には、操作パネル3が設けられる。操作パネル3は、タッチパネルディスプレイ31を含む。タッチパネルディスプレイ31は、ソフトウェアキーやメッセージなどを配した画面を表示し、表示画面(ソフトウェアキー)に対するタッチ操作をユーザーから受け付ける。また、操作パネル3は、複数のハードウェアキー32を含む。ハードウェアキー32としては、ジョブ実行指示をユーザーから受け付けるためのスタートキーなどがある。   The image forming apparatus 100 is provided with an operation panel 3. The operation panel 3 includes a touch panel display 31. The touch panel display 31 displays a screen on which software keys and messages are arranged, and accepts a touch operation on the display screen (software key) from the user. The operation panel 3 includes a plurality of hardware keys 32. The hardware key 32 includes a start key for receiving a job execution instruction from the user.

また、図2に示すように、画像形成装置100は、制御部4を備える。制御部4は、画像読取部1に接続され、画像読取部1の読取動作を制御する。また、制御部4は、印刷部2に接続され、印刷部2の印刷動作を制御する。さらに、制御部4は、操作パネル3に接続される。そして、制御部4は、タッチパネルディスプレイ31の表示動作を制御するとともに、タッチパネルディスプレイ31(ソフトウェアキー)に対するタッチ操作やハードウェアキー32に対する押下操作を検知する。   As illustrated in FIG. 2, the image forming apparatus 100 includes a control unit 4. The control unit 4 is connected to the image reading unit 1 and controls the reading operation of the image reading unit 1. The control unit 4 is connected to the printing unit 2 and controls the printing operation of the printing unit 2. Further, the control unit 4 is connected to the operation panel 3. The control unit 4 controls the display operation of the touch panel display 31 and detects a touch operation on the touch panel display 31 (software key) and a press operation on the hardware key 32.

制御部4は、CPU41およびメモリー42を含む。CPU41は、制御用のプログラムおよびデータに基づき動作し、各部を制御するための処理を行う。メモリー42は、CPU41を動作させるためのプログラムおよびデータを記憶する。   The control unit 4 includes a CPU 41 and a memory 42. The CPU 41 operates based on a control program and data, and performs processing for controlling each unit. The memory 42 stores a program and data for operating the CPU 41.

ここで、制御部4は、画像読取部1による原稿Dの読み取りによって得られた原稿Dの画像データに存在するテキスト(原稿Dに記載されたテキスト)を認識する文字認識処理を行う。なお、制御部4による文字認識処理では、たとえば、OCR(Optical Character Reader)技術が用いられる。   Here, the control unit 4 performs a character recognition process for recognizing text (text written on the document D) existing in the image data of the document D obtained by reading the document D by the image reading unit 1. In the character recognition processing by the control unit 4, for example, an OCR (Optical Character Reader) technique is used.

また、画像形成装置100は、記憶部5を備える。記憶部5は、ROM(たとえば、EEPROM)やHDDなどの不揮発性の記憶デバイスを含む。制御部4は、記憶部5に接続され、記憶部5からのデータの読み出しや記憶部5へのデータの書き込みを行う。たとえば、記憶部5には、後述するテキストファイル320が記憶される。   In addition, the image forming apparatus 100 includes a storage unit 5. The storage unit 5 includes a non-volatile storage device such as a ROM (for example, EEPROM) or an HDD. The control unit 4 is connected to the storage unit 5, and reads data from the storage unit 5 and writes data to the storage unit 5. For example, the storage unit 5 stores a text file 320 described later.

また、画像形成装置100は、通信部6を備える。通信部6は、通信回路やメモリー、通信用コネクターなどを含む。制御部4は、通信部6に接続され、通信部6を介して、画像形成装置100のユーザーにより使用されるユーザー端末200と通信する。ユーザー端末200は、パーソナルコンピューターや携帯情報端末(スマートフォンやタブレット端末)である。   In addition, the image forming apparatus 100 includes a communication unit 6. The communication unit 6 includes a communication circuit, a memory, a communication connector, and the like. The control unit 4 is connected to the communication unit 6 and communicates with the user terminal 200 used by the user of the image forming apparatus 100 via the communication unit 6. The user terminal 200 is a personal computer or a portable information terminal (smart phone or tablet terminal).

<文書編集機能>
画像形成装置100には、原稿Dの記載文書を編集する機能である文書編集機能が搭載される。以下、図3に示す文書シート300に記載されたテンプレート文書(テキスト)を編集対象とする場合について説明する。なお、図3では、テンプレート文書をアルファベットの羅列で示す。
<Document editing function>
The image forming apparatus 100 is equipped with a document editing function which is a function for editing a document described in the document D. Hereinafter, a case where the template document (text) described in the document sheet 300 shown in FIG. 3 is to be edited will be described. In FIG. 3, the template document is indicated by an alphabetic list.

たとえば、制御部4は、文書編集機能のオンオフ設定の受け付けを操作パネル3に行わせる。制御部4は、文書編集機能がオンに設定され、その状態で、ジョブ実行指示を操作パネル3が受け付けると、文書編集機能に関する処理を行う。このとき、画像読取部1のコンタクトガラスCGに文書シート300をセットしておくことにより、文書シート300に記載のテンプレート文書を編集対象とすることができる。   For example, the control unit 4 causes the operation panel 3 to accept the on / off setting of the document editing function. When the document editing function is set to ON and the operation panel 3 receives a job execution instruction in this state, the control unit 4 performs processing related to the document editing function. At this time, by setting the document sheet 300 on the contact glass CG of the image reading unit 1, the template document described in the document sheet 300 can be set as an editing target.

文書シート300を画像形成装置100に読み取らせると、画像形成装置100において文書編集機能に関する処理(第1処理)が開始される。以下に、図4に示すフローチャートを参照し、文書編集機能に関する処理である第1処理(文書シート300を読み取ったときに行われる処理)の流れを説明する。図4に示すフローチャートは、スキャンジョブの実行指示を操作パネル3が受け付けたときにスタートする。なお、この時点では、文書シート300(図3参照)が画像読取部1のコンタクトガラスCGにセットされているとする。   When the image forming apparatus 100 is made to read the document sheet 300, the image forming apparatus 100 starts a process related to the document editing function (first process). The flow of the first processing (processing performed when the document sheet 300 is read), which is processing related to the document editing function, will be described below with reference to the flowchart shown in FIG. The flowchart shown in FIG. 4 starts when the operation panel 3 receives a scan job execution instruction. At this point, it is assumed that the document sheet 300 (see FIG. 3) is set on the contact glass CG of the image reading unit 1.

ステップS1において、制御部4は、スキャン開始指示を画像読取部1に与える。画像読取部1は、スキャン開始指示を受けると、文書シート300(図3参照)を読み取る。そして、画像読取部1は、文書シート300の画像データを生成する。   In step S <b> 1, the control unit 4 gives a scan start instruction to the image reading unit 1. When receiving the scan start instruction, the image reading unit 1 reads the document sheet 300 (see FIG. 3). Then, the image reading unit 1 generates image data of the document sheet 300.

ステップS2において、制御部4は、文書シート300の画像データに対して文字認識処理を行い、文書シート300の画像データに存在するテキスト(文書シート300に記載されたテキスト)を認識する。このとき、制御部4は、文書シート300の画像データからそれぞれがテキストを含む複数の領域を抽出するテキスト抽出処理を行う。以下の説明では、制御部4によるテキスト抽出処理によって抽出された領域に符号310を付しテキスト領域310と称する。   In step S <b> 2, the control unit 4 performs character recognition processing on the image data of the document sheet 300 and recognizes text (text described in the document sheet 300) existing in the image data of the document sheet 300. At this time, the control unit 4 performs text extraction processing for extracting a plurality of regions each containing text from the image data of the document sheet 300. In the following description, the area extracted by the text extraction process by the control unit 4 is denoted by reference numeral 310 and referred to as a text area 310.

制御部4は、テキスト抽出処理を行うとき、文書シート300に記載のテンプレート文書(テキスト)の行方向(書字方向)を第1方向に設定し、第1方向と直交する方向を第2方向に設定する。たとえば、制御部4は、テンプレート文書の行方向の設定受付を操作パネル3に行わせ、操作パネル3が受け付けた設定内容に基づき第1方向および第2方向を設定する。その後、制御部4は、テキストの文字間隔(第1方向の間隔)やテキストの行間隔(第2方向の間隔)などに基づき、テキスト抽出処理(第1抽出処理〜第5抽出処理)を行う。   When performing the text extraction process, the control unit 4 sets the line direction (writing direction) of the template document (text) described in the document sheet 300 to the first direction, and sets the direction orthogonal to the first direction to the second direction. Set to. For example, the control unit 4 causes the operation panel 3 to accept the setting of the row direction of the template document, and sets the first direction and the second direction based on the setting content received by the operation panel 3. Thereafter, the control unit 4 performs text extraction processing (first extraction processing to fifth extraction processing) based on the text character spacing (interval in the first direction), text line spacing (interval in the second direction), and the like. .

第1抽出処理について、図5を用いて説明する。図5では、テキスト内の文字を「○」で示す。   The first extraction process will be described with reference to FIG. In FIG. 5, characters in the text are indicated by “◯”.

第1抽出処理では、制御部4は、1行分のテキストごとに、1行分のテキスト内に予め定められた閾値サイズ以上の空白部分BP(文字間隔が閾値サイズ以上の部分)が挿入されているか否かを判断する。たとえば、制御部4は、1文字分の文字サイズ(たとえば、文字サイズはユーザーにより設定される)を2倍した値を閾値サイズに設定して第1抽出処理を行う。   In the first extraction process, the control unit 4 inserts, for each line of text, a blank part BP (part where the character spacing is equal to or larger than the threshold size) having a predetermined threshold size or more in the text of one line. Judge whether or not. For example, the control unit 4 performs the first extraction process by setting a value obtained by doubling the character size for one character (for example, the character size is set by the user) as the threshold size.

そして、制御部4は、1行分のテキスト内に空白部分BPが挿入されていれば、空白部分BPの前に存在する第1テキストを含む領域および空白部分BPの後に存在する第2テキストを含む領域をそれぞれ別のテキスト領域310として抽出する。一方で、制御部4は、1行分のテキスト内に空白部分BPが挿入されていなければ、1行分のテキストを含む領域を単一のテキスト領域310として抽出する。   Then, if the blank part BP is inserted in the text for one line, the control unit 4 selects the area including the first text existing before the blank part BP and the second text existing after the blank part BP. The included area is extracted as a separate text area 310. On the other hand, if the blank portion BP is not inserted in the text for one line, the control unit 4 extracts an area including the text for one line as a single text area 310.

図5に示す例では、第1テキストと第2テキストとの間に2文字以上の空白部分BPが挿入されているので、第1テキストを含む領域および第2テキストを含む領域がそれぞれ別のテキスト領域310として抽出される。図示しないが、第1テキストと第2テキストとの間に空白部分BPが挿入されていなければ、第1テキストおよび第2テキストの両方を含む領域が単一のテキスト領域310として抽出される。   In the example shown in FIG. 5, since a blank portion BP of two or more characters is inserted between the first text and the second text, the area including the first text and the area including the second text are different texts. Extracted as region 310. Although not shown, if no blank portion BP is inserted between the first text and the second text, an area including both the first text and the second text is extracted as a single text area 310.

第2抽出処理について、図6を用いて説明する。ここでは一例として、第1テキストおよび第2テキストが第2方向に並列しているとする(第1テキストの第2方向の一方側に第2テキストが存在する)。図6では、テキスト内の文字を「○」で示す。   The second extraction process will be described with reference to FIG. Here, as an example, it is assumed that the first text and the second text are juxtaposed in the second direction (the second text exists on one side of the first text in the second direction). In FIG. 6, characters in the text are indicated by “◯”.

第2抽出処理では、制御部4は、第1テキストと第2テキストとの第2方向の間隔Spを判別する。また、制御部4は、間隔Spが予め定められた閾値間隔STh以上であるか否かを判断する。たとえば、制御部4は、1文字分の文字サイズ(たとえば、文字サイズはユーザーによって設定される)を閾値間隔SThに設定して第2抽出処理を行う。   In the second extraction process, the control unit 4 determines the interval Sp in the second direction between the first text and the second text. Further, the control unit 4 determines whether or not the interval Sp is greater than or equal to a predetermined threshold interval STh. For example, the control unit 4 performs the second extraction process by setting the character size for one character (for example, the character size is set by the user) as the threshold interval STh.

そして、制御部4は、間隔Spが閾値間隔STh以上であれば、第1テキストを含む領域および第2テキストを含む領域をそれぞれ別のテキスト領域310として抽出する。一方で、制御部4は、間隔Spが閾値間隔STh未満であれば、第1テキストおよび第2テキストの両方を含む領域を単一のテキスト領域310として抽出する。   Then, if the interval Sp is equal to or greater than the threshold interval STh, the control unit 4 extracts a region including the first text and a region including the second text as separate text regions 310, respectively. On the other hand, if the interval Sp is less than the threshold interval STh, the control unit 4 extracts an area including both the first text and the second text as a single text area 310.

図6に示す例では、間隔Spが閾値間隔STh以上であるので、第1テキストを含む領域および第2テキストを含む領域がそれぞれ別のテキスト領域310として抽出される。図示しないが、間隔Spが閾値間隔STh未満であれば、第1テキストおよび第2テキストの両方を含む領域が単一のテキスト領域310として抽出される。   In the example shown in FIG. 6, since the interval Sp is equal to or greater than the threshold interval STh, the region including the first text and the region including the second text are extracted as different text regions 310, respectively. Although not shown, if the interval Sp is less than the threshold interval STh, a region including both the first text and the second text is extracted as a single text region 310.

第3抽出処理について、図7を用いて説明する。ここでは一例として、第1テキスト、第2テキストおよび第3テキストが第2方向に並列しているとする(第1テキストの第2方向の一方側に第2テキストが存在するとともに第2テキストの第2方向の一方側に第3テキストが存在する)。図7では、テキスト内の文字を「○」で示す。   The third extraction process will be described with reference to FIG. Here, as an example, it is assumed that the first text, the second text, and the third text are juxtaposed in the second direction (the second text exists on one side of the first text in the second direction and the second text There is a third text on one side in the second direction). In FIG. 7, characters in the text are indicated by “◯”.

第3抽出処理では、制御部4は、第1テキストと第2テキストとの第2方向の間隔である第1間隔Sp1を判別するとともに、第2テキストと第3テキストとの第2方向の間隔である第2間隔Sp2を判別する。また、制御部4は、第1間隔Sp1と第2間隔Sp2とが異なっているか否かを判断する。   In the third extraction process, the control unit 4 determines the first interval Sp1, which is the interval in the second direction between the first text and the second text, and the interval in the second direction between the second text and the third text. The second interval Sp2 is determined. Further, the control unit 4 determines whether or not the first interval Sp1 and the second interval Sp2 are different.

そして、制御部4は、第1間隔Sp1と第2間隔Sp2とが異なっていれば、第2テキストを含む領域および第3テキストを含む領域をそれぞれ別のテキスト領域310として抽出する。一方で、制御部4は、第1間隔Sp1と第2間隔Sp2とが同じであれば、第2テキストおよび第3テキストの両方を含む領域を単一のテキスト領域310として抽出する。   Then, if the first interval Sp1 and the second interval Sp2 are different, the control unit 4 extracts a region including the second text and a region including the third text as separate text regions 310, respectively. On the other hand, if the first interval Sp1 and the second interval Sp2 are the same, the control unit 4 extracts a region including both the second text and the third text as a single text region 310.

図7に示す例では、第1間隔Sp1と第2間隔Sp2とが異なるので、第2テキストを含む領域および第3テキストを含む領域がそれぞれ別のテキスト領域310として抽出される。なお、この例では、第1間隔Sp1が閾値間隔STh未満であるので、第1テキストおよび第2テキストの両方を含む領域が単一のテキスト領域310として抽出される。図示しないが、第1間隔Sp1と第2間隔Sp2とが同じである場合(たとえば、第1間隔Sp1および第2間隔Sp2が閾値間隔STh未満である場合)には、第1テキスト、第2テキストおよび第3テキストの全てを含む領域が単一のテキスト領域310として抽出される。   In the example shown in FIG. 7, since the first interval Sp1 and the second interval Sp2 are different, the region including the second text and the region including the third text are extracted as separate text regions 310, respectively. In this example, since the first interval Sp1 is less than the threshold interval STh, an area including both the first text and the second text is extracted as a single text area 310. Although not shown, when the first interval Sp1 and the second interval Sp2 are the same (for example, when the first interval Sp1 and the second interval Sp2 are less than the threshold interval STh), the first text and the second text A region including all of the third text is extracted as a single text region 310.

第4抽出処理について、図8を用いて説明する。ここでは一例として、第1テキストおよび第2テキストが第2方向に並列しているとする(第1テキストの第2方向の一方側に第2テキストが存在する)。図8では、テキスト内の文字を「○」で示す。   The fourth extraction process will be described with reference to FIG. Here, as an example, it is assumed that the first text and the second text are juxtaposed in the second direction (the second text exists on one side of the first text in the second direction). In FIG. 8, characters in the text are indicated by “◯”.

第4抽出処理では、制御部4は、第1テキストの第1方向の一方端の位置である第1位置P1を判別するとともに、第2テキストの第1方向の一方端の位置である第2位置P2を判別する。また、制御部4は、第1位置P1と第2位置P2との第1方向のずれ量Gが予め定められた閾値ずれ量GTh以上であるか否かを判断する。たとえば、制御部4は、1文字分の文字サイズ(たとえば、文字サイズはユーザーによって設定される)を2倍した値を閾値ずれ量GThに設定して第4抽出処理を行う。   In the fourth extraction process, the control unit 4 determines the first position P1, which is the position of one end of the first text in the first direction, and the second position, which is the position of one end of the second text in the first direction. The position P2 is determined. Further, the control unit 4 determines whether or not the shift amount G in the first direction between the first position P1 and the second position P2 is equal to or greater than a predetermined threshold shift amount GTh. For example, the control unit 4 performs the fourth extraction process by setting a value obtained by doubling the character size for one character (for example, the character size is set by the user) as the threshold deviation amount GTh.

そして、制御部4は、第1位置P1と第2位置P2との第1方向のずれ量Gが閾値ずれ量GTh以上であれば、第1テキストを含む領域および第2テキストを含む領域をそれぞれ別のテキスト領域310として抽出する。一方で、制御部4は、第1位置P1と第2位置P2との第1方向のずれ量Gが閾値ずれ量GTh未満であれば、第1テキストおよび第2テキストの両方を含む領域を単一のテキスト領域310として抽出する。ただし、第1テキストと第2テキストとの間隔Spが閾値間隔STh以上であれば、第1テキストを含む領域および第2テキストを含む領域はそれぞれ別のテキスト領域310として抽出される。   Then, if the shift amount G in the first direction between the first position P1 and the second position P2 is equal to or greater than the threshold shift amount GTh, the control unit 4 sets the region including the first text and the region including the second text, respectively. Extract as another text area 310. On the other hand, if the shift amount G in the first direction between the first position P1 and the second position P2 is less than the threshold shift amount GTh, the control unit 4 simply sets an area including both the first text and the second text. Extracted as one text region 310. However, if the interval Sp between the first text and the second text is equal to or greater than the threshold interval STh, the region including the first text and the region including the second text are extracted as different text regions 310, respectively.

図8に示す例では、第1位置P1と第2位置P2とが第1方向に閾値ずれ量GTh以上ずれているので、第1テキストを含む領域および第2テキストを含む領域がそれぞれ別のテキスト領域310として抽出される。図示しないが、第1位置P1と第2位置P2との第1方向のずれ量Gが閾値ずれ量GTh未満であり、第1テキストと第2テキストとの間隔Spが閾値間隔STh未満であれば、第1テキストおよび第2テキストの両方を含む領域が単一のテキスト領域310として抽出される。   In the example shown in FIG. 8, since the first position P1 and the second position P2 are shifted in the first direction by a threshold shift amount GTh or more, the area containing the first text and the area containing the second text are different texts. Extracted as region 310. Although not shown, if the shift amount G in the first direction between the first position P1 and the second position P2 is less than the threshold shift amount GTh, and the interval Sp between the first text and the second text is less than the threshold interval STh A region including both the first text and the second text is extracted as a single text region 310.

なお、第1位置P1と第2位置P2との第1方向のずれ量Gが閾値ずれ量GTh以上であっても、第1テキストおよび第2テキストのそれぞれの第1方向の他方端の位置が第1方向にずれていなければ、第1テキストおよび第2テキストの両方を含む領域が単一のテキスト領域310として抽出されてもよい。これにより、第1テキストおよび第2テキストがそれぞれ他方端側に意図的に寄せられていることによって第1位置P1と第2位置P2との第1方向のずれ量Gが閾値ずれ量GTh以上になっていても、第1テキストおよび第2テキストを含む領域が単一のテキスト領域310として抽出されることになる。   Even if the shift amount G in the first direction between the first position P1 and the second position P2 is greater than or equal to the threshold shift amount GTh, the position of the other end in the first direction of each of the first text and the second text is If not shifted in the first direction, a region including both the first text and the second text may be extracted as a single text region 310. As a result, the first text and the second text are intentionally moved to the other end side, so that the shift amount G in the first direction between the first position P1 and the second position P2 is greater than or equal to the threshold shift amount GTh. Even so, the area including the first text and the second text is extracted as a single text area 310.

第5抽出処理では、制御部4は、テキスト内の文字の文字サイズを認識する。そして、制御部4は、第1文字サイズの文字からなるテキストを含む領域および第1文字サイズとは異なる第2文字サイズの文字からなるテキストを含む領域をそれぞれ別のテキスト領域310として抽出する。   In the fifth extraction process, the control unit 4 recognizes the character size of the characters in the text. Then, the control unit 4 extracts, as separate text regions 310, a region including text composed of characters of the first character size and a region including text composed of characters having a second character size different from the first character size.

なお、制御部4は、1行分のテキストだけを含む領域をテキスト領域310として抽出する場合、当該テキストの第1方向のサイズをテキスト領域310のサイズ(抽出する領域のサイズ)とする。また、制御部4は、複数行分のテキストを含む領域を単一のテキスト領域310として抽出する場合、複数行分のテキストのうち第1方向のサイズが最も大きいテキストを判別し、当該判別したテキストの第1方向のサイズをテキスト領域310の第1方向のサイズ(抽出する領域のサイズ)とする。   When the control unit 4 extracts a region including only one line of text as the text region 310, the size of the text in the first direction is set to the size of the text region 310 (the size of the region to be extracted). In addition, when the control unit 4 extracts a region including a plurality of lines of text as a single text region 310, the control unit 4 determines the text having the largest size in the first direction from the plurality of lines of text. The size of the text in the first direction is defined as the size of the text area 310 in the first direction (size of the area to be extracted).

制御部4は、第1〜第5抽出処理をテキスト抽出処理として行うことにより、図3に示した文書シート300の画像データからそれぞれがテキストを含む複数の領域(テキスト領域310)を抽出する。たとえば、文書シート300の画像データに対するテキスト抽出処理を制御部4が行うと、図9に示すように、複数の領域311〜315がテキスト領域310として抽出される。   The control unit 4 performs the first to fifth extraction processes as the text extraction process, thereby extracting a plurality of areas (text areas 310) each containing text from the image data of the document sheet 300 shown in FIG. For example, when the control unit 4 performs text extraction processing on the image data of the document sheet 300, a plurality of areas 311 to 315 are extracted as text areas 310 as shown in FIG. 9.

また、制御部4は、テキスト抽出処理の一処理として、テキスト領域310(311〜315)ごとにテキスト領域310に存在するテキストのテキストファイル320(321〜325)を生成するテキストファイル生成処理を行う。そして、テキスト領域310ごとのテキストファイル320を記憶部5に記憶させる。テキスト領域311〜315にそれぞれ対応するテキストファイル321〜325の概念図を図10に示す。   Moreover, the control part 4 performs the text file generation process which produces | generates the text file 320 (321-325) of the text which exists in the text area 310 for every text area 310 (311-315) as one process of a text extraction process. . Then, the text file 320 for each text area 310 is stored in the storage unit 5. FIG. 10 shows a conceptual diagram of text files 321 to 325 corresponding to the text areas 311 to 315, respectively.

図4に戻り、ステップS3において、制御部4は、編集受付シート400(図11参照)の印刷に必要な第1画像データを生成する処理である編集受付シート生成処理を行う。編集受付シート400は編集を受け付けるためのシート(編集内容を記載するためのシート)である。編集受付シート400のテキスト領域310(図9参照)に対応する各領域には枠410(枠410の枠内は空白である)が配される。なお、枠410の枠線は実線である。また、各枠内410には対応するテキスト領域310のサイズを示す破線枠420が配される。そして、編集内容は枠410の枠内に記載される。   Returning to FIG. 4, in step S <b> 3, the control unit 4 performs an edit reception sheet generation process that is a process of generating first image data necessary for printing the edit reception sheet 400 (see FIG. 11). The edit reception sheet 400 is a sheet for receiving edits (a sheet for describing edit contents). Each area corresponding to the text area 310 (see FIG. 9) of the edit reception sheet 400 is provided with a frame 410 (the frame 410 is blank). The frame line of the frame 410 is a solid line. In each frame 410, a broken line frame 420 indicating the size of the corresponding text area 310 is arranged. Then, the edited content is described in a frame 410.

制御部4は、編集受付シート生成処理の一処理として、枠410のサイズを設定する枠サイズ設定処理を行う。制御部4は、枠サイズ設定処理を行うとき、複数のテキスト領域310(図9参照)のそれぞれについて、テキスト領域310の第1方向(テキストの行方向)の一方側および他方側の各余白サイズに基づき、テキスト領域310に存在するテキストの配置形式を判別する(左寄せ、右寄せ、および中央寄せのいずれであるかを判別する)。図9に示す例では、テキスト領域311のテキストは左寄せである(第1方向の一方側に寄せられている)。テキスト領域312および315の各テキストは右寄せである(第1方向の他方側に寄せられている)。テキスト領域313および314の各テキストは中央寄せである(第1方向の中央に寄せられている)。   The control unit 4 performs a frame size setting process for setting the size of the frame 410 as one process of the edit reception sheet generation process. When performing the frame size setting process, the control unit 4 sets the margin sizes on one side and the other side of the text region 310 in the first direction (text line direction) for each of the plurality of text regions 310 (see FIG. 9). Based on the above, the arrangement format of the text existing in the text area 310 is determined (determining whether it is left-justified, right-justified, or center-justified). In the example shown in FIG. 9, the text in the text area 311 is left-justified (justed to one side in the first direction). The texts in the text areas 312 and 315 are right-justified (justed on the other side in the first direction). Each text in the text areas 313 and 314 is center-aligned (centered in the first direction).

そして、制御部4は、左寄せのテキストを含むテキスト領域310に対応する領域に配する枠410については当該枠410の第1方向のサイズを右方向(第1方向の他方側)に拡大し、右寄せのテキストを含むテキスト領域310に対応する領域に配する枠410については当該枠410の第1方向のサイズを左方向(第1方向の一方側)に拡大する。また、制御部4は、中央寄せのテキストを含むテキスト領域310に対応する領域に配する枠については、当該枠410の第1方向のサイズを左右方向(第1方向の一方側および他方側)に拡大する。すなわち、制御部4は、枠410のサイズを対応するテキスト領域310のサイズ以上に設定する。ただし、制御部4は、編集受付シート400の第1方向の両側に所定サイズの余白が残るように、枠410のサイズを第1方向に拡大する。   Then, the control unit 4 enlarges the size of the frame 410 in the first direction to the right (the other side in the first direction) for the frame 410 arranged in the region corresponding to the text region 310 including the left-justified text, For the frame 410 arranged in the region corresponding to the text region 310 including the right-justified text, the size of the frame 410 in the first direction is expanded leftward (one side in the first direction). Further, the control unit 4 sets the size of the frame 410 in the first direction in the left-right direction (one side and the other side in the first direction) for the frame arranged in the region corresponding to the text region 310 including the centered text. Expand to. That is, the control unit 4 sets the size of the frame 410 to be equal to or larger than the size of the corresponding text area 310. However, the control unit 4 enlarges the size of the frame 410 in the first direction so that margins of a predetermined size remain on both sides of the edit receiving sheet 400 in the first direction.

なお、枠410の第1方向と直交する第2方向のサイズを下方向(第2方向の一方側)に拡大してもよい。たとえば、制御部4は、或る枠410(ここでは第1枠410と称する)の第2方向のサイズを拡大するとき、第1枠410の第2方向の一方側に配すべき枠410(ここでは第2枠410と称する)の枠線位置を認識する。そして、制御部4は、第1枠410および第2枠410の互いに隣接する各枠線の間に一定の隙間が設けられるようにする。言い換えると、制御部4は、第1枠410の枠線と第2枠410の枠線とが重ならないようにする。   Note that the size of the frame 410 in the second direction orthogonal to the first direction may be expanded downward (one side in the second direction). For example, when the control unit 4 enlarges the size of a certain frame 410 (referred to as the first frame 410 here) in the second direction, the frame 410 (to be arranged on one side of the first frame 410 in the second direction). Here, the frame line position of the second frame 410 is recognized. And the control part 4 is made to provide a fixed clearance gap between the mutually adjacent frame lines of the 1st frame 410 and the 2nd frame 410. FIG. In other words, the control unit 4 prevents the frame line of the first frame 410 and the frame line of the second frame 410 from overlapping.

枠サイズ設定処理を行った後、制御部4は、枠410のサイズが枠サイズ設定処理で設定したサイズとなるよう編集受付シート400(図11参照)の画像データを生成する。図11に示す例では、枠411〜415がそれぞれテキスト領域311〜315(図9参照)に対応するとともに、破線枠421〜425がそれぞれテキスト領域311〜315に対応する。   After performing the frame size setting process, the control unit 4 generates image data of the edit reception sheet 400 (see FIG. 11) so that the size of the frame 410 becomes the size set in the frame size setting process. In the example shown in FIG. 11, the frames 411 to 415 correspond to the text areas 311 to 315 (see FIG. 9), respectively, and the broken line frames 421 to 425 correspond to the text areas 311 to 315, respectively.

図4に戻り、ステップS4において、制御部4は、編集受付シート400の画像データに基づく印刷を印刷部2に行わせる。これにより、図11に示すような編集受付シート400が印刷出力される(ユーザーに提供される)。   Returning to FIG. 4, in step S <b> 4, the control unit 4 causes the printing unit 2 to perform printing based on the image data of the edit reception sheet 400. As a result, an edit acceptance sheet 400 as shown in FIG. 11 is printed out (provided to the user).

編集受付シート400をユーザーが取得すると、当該ユーザーによって編集シート400に編集内容が記載される。編集内容が記載された編集受付シート400の一例を図12に示す。以下、図12に示す編集受付シート400に記載された編集内容に基づき文書シート300(図3参照)に記載のテンプレート文書を編集する場合について説明する。なお、図12では、編集受付シート400に記載の編集内容(テキスト)をアルファベットの羅列で示す。   When the user obtains the edit reception sheet 400, the edited content is described in the edit sheet 400 by the user. An example of the edit reception sheet 400 in which edit contents are described is shown in FIG. Hereinafter, a case will be described in which the template document described in the document sheet 300 (see FIG. 3) is edited based on the editing content described in the editing reception sheet 400 shown in FIG. In FIG. 12, the editing contents (text) described in the editing reception sheet 400 are shown in alphabetical enumeration.

編集受付シート400に編集内容を記載し、編集内容を記載した編集受付シート400を画像形成装置100に読み取らせると、画像形成装置100において文書編集機能に関する処理(第2処理)が開始される。以下に、図13に示すフローチャートを参照し、文書編集機能に関する処理である第2処理(編集受付シート400を読み取ったときに行われる処理)の流れを説明する。図13に示すフローチャートは、スキャンジョブの実行指示を操作パネル3が受け付けたときにスタートする。なお、この時点では、編集内容が記載された編集受付シート400(図12参照)が画像読取部1のコンタクトガラスCGにセットされているとする。   When the editing content is described on the editing reception sheet 400 and the image forming apparatus 100 is caused to read the editing reception sheet 400 describing the editing content, the image forming apparatus 100 starts processing (second processing) regarding the document editing function. The flow of the second processing (processing performed when the editing acceptance sheet 400 is read) that is processing related to the document editing function will be described below with reference to the flowchart shown in FIG. The flowchart shown in FIG. 13 starts when the operation panel 3 receives a scan job execution instruction. At this point, it is assumed that an edit acceptance sheet 400 (see FIG. 12) on which edit contents are described is set on the contact glass CG of the image reading unit 1.

ステップS11において、制御部4は、スキャン開始指示を画像読取部1に与える。画像読取部1は、スキャン開始指示を受けると、編集受付シート400(図12参照)を読み取る。そして、画像読取部1は、編集受付シート400の第2画像データを生成する。   In step S <b> 11, the control unit 4 gives a scan start instruction to the image reading unit 1. When receiving the scan start instruction, the image reading unit 1 reads the edit reception sheet 400 (see FIG. 12). Then, the image reading unit 1 generates second image data of the edit reception sheet 400.

ステップS12において、制御部4は、編集受付シート400の第2画像データに対して文字認識処理を行い、編集受付シート400の第2画像データのうち枠410に対応する枠領域430(図14参照)に存在するテキストを認識する。このときに制御部4によって認識されるテキストは編集内容を示すテキストである。そして、ステップS13において、制御部4は、テキスト置換処理を行う。   In step S12, the control unit 4 performs character recognition processing on the second image data of the edit reception sheet 400, and a frame area 430 corresponding to the frame 410 in the second image data of the edit reception sheet 400 (see FIG. 14). ) Is recognized. At this time, the text recognized by the control unit 4 is text indicating editing contents. In step S13, the control unit 4 performs text replacement processing.

制御部4は、テキスト置換処理を行うとき、編集受付シート400の第2画像データ(図14参照)のうち領域内にテキストが存在する枠領域430である編集テキスト領域を認識する。図12に示した編集受付シート400の読み取りが行われた場合には、図14に示すように、枠412、413および414に対応する各枠領域430が編集テキスト領域となる。以下の説明では、領域内にテキストが存在する枠領域430に符号430Tを付して編集テキスト領域430Tと称する場合がる。   When the text replacement process is performed, the control unit 4 recognizes an edited text area that is a frame area 430 in which text exists in the area of the second image data (see FIG. 14) of the edit receiving sheet 400. When the editing acceptance sheet 400 shown in FIG. 12 is read, as shown in FIG. 14, each frame area 430 corresponding to the frames 412, 413, and 414 becomes an edited text area. In the following description, a frame area 430 in which text exists in the area may be referred to as an edited text area 430T by adding a reference numeral 430T.

また、制御部4は、編集テキスト領域430Tに対応するテキスト領域310(図9参照)を判別し、当該判別したテキスト領域310のテキストファイル320(図10参照)のテキストを編集対象テキストに設定する。このとき、図15の上図に示すように、テキストファイル320のうち、テキストファイル322、323および324の各テキストが編集対象テキストに設定される(編集対象テキストを含むテキストファイル320を二重線で囲む)。   Further, the control unit 4 determines the text area 310 (see FIG. 9) corresponding to the edited text area 430T, and sets the text of the text file 320 (see FIG. 10) in the determined text area 310 as the text to be edited. . At this time, as shown in the upper diagram of FIG. 15, the text files 322, 323, and 324 in the text file 320 are set as the text to be edited (the text file 320 including the text to be edited is double-lined). Enclosed in).

その後、図15の下図に示すように、制御部4は、編集対象テキストを編集テキスト領域430T(図14参照)の領域内に存在するテキストに置換する。ここでは、テキストファイル322のテキストが枠412に対応する編集テキスト領域430Tに存在するテキストに置換され、テキストファイル323のテキストが枠413に対応する編集テキスト領域430Tに存在するテキストに置換され、テキストファイル324のテキストが枠414に対応する編集テキスト領域430Tに存在するテキストに置換される。   Thereafter, as shown in the lower diagram of FIG. 15, the control unit 4 replaces the text to be edited with text existing in the area of the edit text area 430T (see FIG. 14). Here, the text of the text file 322 is replaced with text existing in the edited text area 430T corresponding to the frame 412, and the text of the text file 323 is replaced with text existing in the edited text area 430T corresponding to the frame 413. The text in the file 324 is replaced with the text existing in the edit text area 430T corresponding to the frame 414.

図13に戻り、ステップS14において、制御部4は、編集済シート500(図17参照)の画像データを生成する処理である編集済シート生成処理を行う。制御部4は、編集済シート生成処理を行うとき、図16の上図に示すように、編集テキスト領域430T(図14参照)に対応するテキスト領域310(当該領域を二重に囲む)を編集対象領域に設定する。以下の説明では、編集テキスト領域430Tに対応するテキスト領域310に符号310Eを付して編集対象領域310Eと称する場合がある。   Returning to FIG. 13, in step S <b> 14, the control unit 4 performs an edited sheet generation process that is a process of generating image data of the edited sheet 500 (see FIG. 17). When performing the edited sheet generation process, the control unit 4 edits the text area 310 (doublely encloses the area) corresponding to the edited text area 430T (see FIG. 14), as shown in the upper diagram of FIG. Set to the target area. In the following description, the text area 310 corresponding to the edited text area 430T may be referred to as an editing target area 310E with reference numeral 310E.

そして、制御部4は、文書シート300の画像データのうち編集対象領域310Eに存在するテキストを編集対象領域310Eのテキストファイル320のテキスト置換処理後のテキストに変更した画像データを編集済シート500の画像データとして生成する。このように生成された編集済シート500の画像データを図16の下図に示す。   Then, the control unit 4 changes the image data in the edited sheet 500 from the image data of the document sheet 300 in which the text existing in the editing target area 310E is changed to the text after the text replacement process of the text file 320 in the editing target area 310E. Generate as image data. The image data of the edited sheet 500 generated in this way is shown in the lower part of FIG.

なお、制御部4は、編集シート生成処理を行うとき、テキスト置換処理後のテキストを配すべきテキスト配置領域を認識し、テキスト配置領域の領域内にテキスト置換処理後のテキストを収めることができるか否かを判断する。その結果、テキスト配置領域の領域内にテキスト置換処理後のテキストを収めることができなければ、制御部4は、テキストの配置領域を調整する配置領域調整処理を行う。   In addition, when performing the edit sheet generation process, the control unit 4 can recognize the text placement area where the text after the text replacement process is to be placed, and can store the text after the text replacement process within the text placement area. Determine whether or not. As a result, if the text after the text replacement process cannot be stored in the text placement area, the control unit 4 performs a placement area adjustment process for adjusting the text placement area.

配置領域調整処理について、図18および図19を用いて説明する。以下の説明では、テキストの行方向を第1方向と称するとともに、第1方向と直交する方向を第2方向と称する。また、テキスト置換処理後のテキストを配すべきテキスト配置領域に符号TA1を付し第1領域TA1と称する。さらに、第1領域TA1の第2方向の一方側に存在する別のテキスト配置領域に符号TA2を付し第2領域TA2と称する。   The arrangement area adjustment processing will be described with reference to FIGS. In the following description, the line direction of the text is referred to as a first direction, and the direction orthogonal to the first direction is referred to as a second direction. Also, a text placement area where the text after the text replacement process is to be placed is denoted by TA1 and is referred to as a first area TA1. Further, another text arrangement area existing on one side in the second direction of the first area TA1 is denoted by TA2 and is referred to as a second area TA2.

テキスト置換処理後のテキストを第1領域TA1に収めることができない場合、図18に示すように、制御部4は、第1領域TA1の領域内にテキストが収まるまで、第1領域TA1を第2方向の一方側(下方向)に向けて拡大する。図18では、第1領域TA1の拡大部分にハッチングを施す(以下の説明で参照する図面についても同様である)。   When the text after the text replacement process cannot be accommodated in the first area TA1, as shown in FIG. 18, the control unit 4 changes the first area TA1 to the second area until the text fits in the area of the first area TA1. Enlarge toward one side of the direction (downward). In FIG. 18, the enlarged portion of the first area TA1 is hatched (the same applies to the drawings referred to in the following description).

また、図19に示すように、第1領域TA1を第2方向の一方側(下方向)に向けて拡大すると第1領域TA1と第2領域TA2との間隔が閾値間隔(たとえば、図6に示した第2抽出処理で用いる閾値間隔SThと同じ間隔)よりも小さくなる場合、制御部4は、第2領域TA2を第2方向の一方側(下方向)に移動させる。すなわち、制御部4は、第1領域TA1と第2領域TA2との間に少なくとも閾値間隔以上の間隔を設ける。   Further, as shown in FIG. 19, when the first area TA1 is enlarged toward one side (downward) in the second direction, the interval between the first area TA1 and the second area TA2 becomes a threshold interval (for example, in FIG. When it becomes smaller than the threshold interval STh used in the second extraction process shown), the control unit 4 moves the second area TA2 to one side (downward) in the second direction. That is, the control unit 4 provides at least a threshold interval or more between the first region TA1 and the second region TA2.

なお、場合によっては、第2領域TA2を第2方向の一方側(下方向)に移動させることができないことがある(たとえば、第2領域TA2を移動させると余白が無くなる場合など)。この場合、制御部4は、第1領域TA1に配すべきテキストが第1領域TA1の領域内に収まるまで第1領域TA1に配すべきテキストの文字サイズを縮小する。   In some cases, it may not be possible to move the second area TA2 to one side (downward) in the second direction (for example, when the second area TA2 is moved, the margin disappears). In this case, the control unit 4 reduces the character size of the text to be arranged in the first area TA1 until the text to be arranged in the first area TA1 falls within the area of the first area TA1.

このようにして生成された編集済シート500の画像データはユーザーに提供される。たとえば、制御部4は、編集済シート500の印刷を印刷部2に行わせる。あるいは、制御部4は、通信部6を介してユーザー端末200と通信し、編集済シート500の画像データをユーザー端末200に送信する。   The image data of the edited sheet 500 generated in this way is provided to the user. For example, the control unit 4 causes the printing unit 2 to print the edited sheet 500. Alternatively, the control unit 4 communicates with the user terminal 200 via the communication unit 6 and transmits the image data of the edited sheet 500 to the user terminal 200.

本実施形態では、上記のように、テンプレート文書が記載された文書シート300を画像形成装置100に読み取らせると、編集受付シート400が印刷される。その後、編集内容(編集後のテキスト)を記載した編集受付シート400を画像形成装置100に読み取らせることにより、編集受付シート400に記載の編集内容を反映した編集済シート500の画像データが生成される。これにより、パーソナルコンピューターのような情報機器を使用しなくても(編集受付シート400に編集内容を記載するだけで)、文書シート300に記載のテンプレート文書を編集することができる(編集済シート500を取得することができる)。   In the present embodiment, as described above, when the image forming apparatus 100 reads the document sheet 300 on which the template document is described, the edit reception sheet 400 is printed. Thereafter, the image forming apparatus 100 is caused to read the editing reception sheet 400 describing the editing content (text after editing), so that image data of the edited sheet 500 reflecting the editing content described in the editing receiving sheet 400 is generated. The Thus, the template document described in the document sheet 300 can be edited (edited sheet 500) without using an information device such as a personal computer (only by describing the editing content in the editing reception sheet 400). Can get).

また、本実施形態では、テキスト抽出処理として第1〜第5抽出処理を行うので、文書シート300に記載のテンプレート文書の構成に応じた枠410を配した編集受付シート400を作成することができる。具体的には、文書シート300のテンプレート文書は5つの領域(テキスト「aaaa」、テキスト「bbbb」、テキスト「ABCD」、テキスト「ccc・・・」およびテキスト「dddd」の5つ)に分類されるが、テキスト抽出処理として第1〜第5抽出処理が行われると、テンプレート文書の5つの領域にそれぞれ対応する5つの枠410(411〜415)を含む編集受付シート400が得られる。これにより、ユーザーからすると、テンプレート文書を構成する領域ごとに文書編集を行うことができる(テンプレート文書のうち編集したい領域の文書に関する編集内容だけを対応する枠410に記載すればよい)ので、利便性が良い。   In this embodiment, since the first to fifth extraction processes are performed as the text extraction process, it is possible to create the edit reception sheet 400 in which the frame 410 corresponding to the configuration of the template document described in the document sheet 300 is arranged. . Specifically, the template document of the document sheet 300 is classified into five regions (text “aaaa”, text “bbbb”, text “ABCD”, text “ccc...”, And text “dddd”). However, when the first to fifth extraction processes are performed as the text extraction process, the edit reception sheet 400 including the five frames 410 (411 to 415) respectively corresponding to the five areas of the template document is obtained. Thus, the user can edit the document for each area constituting the template document (only the editing contents related to the document in the area to be edited out of the template document need be described in the corresponding frame 410). Good sex.

また、本実施形態では、枠410のサイズが枠410に対応するテキスト領域310のサイズ以上に設定されるので、枠内に編集内容を記載し易くなる。   In the present embodiment, the size of the frame 410 is set to be equal to or larger than the size of the text area 310 corresponding to the frame 410, so that editing contents can be easily written in the frame.

ここで、文書編集機能に関する処理の変形例について説明する。   Here, a modified example of processing related to the document editing function will be described.

まず、テキスト置換処理の変形例(部分置換処理)について説明する。なお、テキスト置換処理として通常の置換処理を行うか部分置換処理を行うかについてはユーザーが選択できてもよい。   First, a modified example (partial replacement process) of the text replacement process will be described. Note that the user may be able to select whether normal replacement processing or partial replacement processing is performed as the text replacement processing.

テキスト置換処理として部分置換処理を行う構成では、図20に示すような補助画像付きの編集受付シート400が用いられる。すなわち、制御部4は、編集受付シート生成処理を行うとき、補助画像付きの編集受付シート400の画像データを生成する。   In the configuration in which the partial replacement process is performed as the text replacement process, an edit reception sheet 400 with an auxiliary image as shown in FIG. 20 is used. That is, the control unit 4 generates the image data of the edit reception sheet 400 with the auxiliary image when performing the edit reception sheet generation process.

具体的には、制御部4は、各テキスト領域310(図9参照)について、テキスト領域310に存在する文字の文字数および文字位置を認識する。そして、制御部4は、補助画像付きの編集受付シート400の画像データを生成するとき、テキスト領域310に存在するテキスト内の各文字の文字位置(その直下位置)をそれぞれ付加位置として判別し、編集受付シート400の画像データの各付加位置に補助画像としての破線画像DL(図20参照)を配する。すなわち、図20に示すように、編集受付シート400の各枠410には、対応するテキスト領域310に存在するテキスト内の文字数と同数の破線画像DLが配される。   Specifically, the control unit 4 recognizes the number of characters and the character positions of the characters existing in the text region 310 for each text region 310 (see FIG. 9). Then, when generating the image data of the edit reception sheet 400 with the auxiliary image, the control unit 4 determines the character position (the position immediately below) of each character in the text existing in the text area 310 as an additional position, A broken line image DL (see FIG. 20) as an auxiliary image is arranged at each additional position of the image data of the edit reception sheet 400. That is, as shown in FIG. 20, each frame 410 of the edit reception sheet 400 is provided with the same number of broken line images DL as the number of characters in the text existing in the corresponding text area 310.

たとえば、テキスト領域313(図9参照)に対応する枠413を例にとると、テキスト領域313に存在する文字数は4つであるので、枠413には4つの破線画像DLが配される。なお、各破線画像DLの直上に対応する文字の文字画像CIを補助画像として配してもよい。さらに、図21に示すように、句読点(図21ではピリオド)の後に補助画像としてのガイドライン画像GLを配してもよい。補助画像(破線画像DL、文字画像CIおよびガイドライン画像GL)の濃度は、文字認識処理によって認識されない濃度に設定される。   For example, taking the frame 413 corresponding to the text region 313 (see FIG. 9) as an example, the number of characters existing in the text region 313 is four, so that four broken line images DL are arranged in the frame 413. Note that the character image CI of the corresponding character immediately above each broken line image DL may be arranged as an auxiliary image. Further, as shown in FIG. 21, a guideline image GL as an auxiliary image may be arranged after a punctuation mark (period in FIG. 21). The density of the auxiliary image (broken line image DL, character image CI, and guideline image GL) is set to a density that is not recognized by the character recognition process.

そして、制御部4は、テキスト置換処理を行うとき、編集テキスト領域430T(図22および図23参照)の領域内に編集情報が存在するか否かを判断する。編集情報は編集対象テキスト内のいずれの文字を編集するかを示す情報である。たとえば、図22および図23の各上図に示すように、編集テキスト領域430Tの領域内に実線画像SLが存在していれば、制御部4は、編集テキスト領域430Tの領域内に編集情報が存在すると判断する。なお、破線画像DLに沿って引いた実線画像SLが編集情報として認識され、破線画像DLから外れた位置に引いた実線画像SLは編集情報として認識されない。図22および図23では、便宜上、補助画像としての文字画像CIは省略する。   Then, when the text replacement process is performed, the control unit 4 determines whether editing information exists in the area of the edited text area 430T (see FIGS. 22 and 23). The edit information is information indicating which character in the edit target text is to be edited. For example, as shown in the upper diagrams of FIGS. 22 and 23, if the solid line image SL exists in the edit text region 430T, the control unit 4 stores the edit information in the edit text region 430T. Judge that it exists. Note that the solid line image SL drawn along the broken line image DL is recognized as editing information, and the solid line image SL drawn at a position outside the broken line image DL is not recognized as editing information. In FIG. 22 and FIG. 23, the character image CI as an auxiliary image is omitted for convenience.

編集テキスト領域430Tの領域内に編集情報(実線画像SL)が存在する場合、制御部4は、実線画像SLの位置に基づき、編集対象テキスト内のいずれの文字を編集すべきかを判別する。すなわち、制御部4は、編集情報で示される文字を判別する。   When edit information (solid line image SL) exists in the edit text area 430T, the control unit 4 determines which character in the edit target text should be edited based on the position of the solid line image SL. That is, the control unit 4 determines the character indicated by the editing information.

図22に示す例では、文字「C」に対応する下線画像DLに沿って実線画像SLが引かれている。この場合、制御部4は、文字「C」を編集すべき文字として認識し、文字「C」の順番を1番目に設定する。また、制御部4は、編集テキスト領域430Tに存在する複数の文字からなる文字列「XY」の順番を1番目に設定する。   In the example illustrated in FIG. 22, the solid line image SL is drawn along the underline image DL corresponding to the character “C”. In this case, the control unit 4 recognizes the character “C” as a character to be edited, and sets the order of the character “C” to the first. Further, the control unit 4 sets the order of the character string “XY” composed of a plurality of characters existing in the edit text area 430T to the first.

そして、制御部4は、編集対象テキスト内の文字「C」を当該文字「C」と順番が同じ文字列「XY」に置き換える。これにより、テキスト置換処理後のテキストは「ABXYD」となる。   Then, the control unit 4 replaces the character “C” in the text to be edited with a character string “XY” in the same order as the character “C”. As a result, the text after the text replacement process becomes “ABXYD”.

一方で、図23に示す例では、文字「A」および文字「B」に対応する各下線画像DLを繋ぐように実線画像SLが引かれ、文字「D」に対応する下線画像DLに沿って実線画像SLが引かれている。この場合、制御部4は、複数の文字からなる文字列「AB」および文字「D」を編集すべき文字として認識する。そして、制御部4は、文字列「AB」の順番を1番目に設定し、文字「D」の順番を2番目に設定する。   On the other hand, in the example shown in FIG. 23, a solid line image SL is drawn so as to connect the underline images DL corresponding to the characters “A” and “B”, and along the underline image DL corresponding to the character “D”. A solid line image SL is drawn. In this case, the control unit 4 recognizes a character string “AB” and a character “D” made up of a plurality of characters as characters to be edited. Then, the control unit 4 sets the order of the character string “AB” to the first, and sets the order of the character “D” to the second.

また、図23に示す例では、複数の文字からなる文字列「EFG」および文字列「YZ」がこの順番で編集テキスト領域430Tに存在する。この場合、制御部4は、文字列「EFG」の順番を1番目に設定し、文字列「YZ」の順番を2番目に設定する。   In the example shown in FIG. 23, a character string “EFG” and a character string “YZ” made up of a plurality of characters exist in this order in the edited text area 430T. In this case, the control unit 4 sets the order of the character string “EFG” to the first, and sets the order of the character string “YZ” to the second.

そして、制御部4は、文字列「AB」を当該文字列「AB」と順番が同じ文字列「EFG」に置き換える。また、制御部4は、文字「D」を当該文字「D」と順番が同じ文字列「YZ」に置き換える。これにより、テキスト置換処理後のテキストは「EFGCYZ」となる。   Then, the control unit 4 replaces the character string “AB” with a character string “EFG” in the same order as the character string “AB”. Further, the control unit 4 replaces the character “D” with a character string “YZ” in the same order as the character “D”. Thereby, the text after the text replacement process becomes “EFGCYZ”.

上記の構成では、テンプレート文書を1文字単位で編集することができるので、ユーザーの利便性が向上する。すなわち、編集内容の記載量を減らすことができる。たとえば、「ABCD」から「ABXYD」に変更したい場合には、編集受付シート400に「XY」と記載するだけでよい。   In the above configuration, the template document can be edited in units of characters, so that convenience for the user is improved. That is, it is possible to reduce the amount of description of editing content. For example, when it is desired to change from “ABCD” to “ABXYD”, it is only necessary to describe “XY” on the edit reception sheet 400.

次に、編集受付シート生成処理の変形例について説明する。   Next, a modification of the edit acceptance sheet generation process will be described.

図24に示すように、制御部4は、文書シート300の画像データが画像読取部1によって生成されると、文書シート300の一部が所定色(たとえば、蛍光色)でマーキングされている場合に文書シート300の画像データに出現するマーキング領域を検出するマーキング検出処理を行う。図24では、文書シート300のうちマーキングされている箇所にハッチングを施す。そして、制御部4は、テキスト抽出処理を行うとき、マーキング領域に存在するテキストを含む領域をテキスト領域310として抽出する。図24に示す例では、テキスト領域313および315が抽出される。   As shown in FIG. 24, when the image data of the document sheet 300 is generated by the image reading unit 1, the control unit 4 has a part of the document sheet 300 marked with a predetermined color (for example, a fluorescent color). Then, a marking detection process for detecting a marking area appearing in the image data of the document sheet 300 is performed. In FIG. 24, the marked part of the document sheet 300 is hatched. Then, when the text extraction process is performed, the control unit 4 extracts an area including text existing in the marking area as the text area 310. In the example shown in FIG. 24, text regions 313 and 315 are extracted.

その後、編集受付シート生成処理を行うとき、制御部4は、テキスト領域313および315に対応する各領域にだけ枠410が配された編集受付シート400(図25参照)の画像データを生成し、当該生成した画像データに基づく印刷を印刷部2に行わせる。図25に示す例では、枠413がテキスト領域313に対応し、枠415がテキスト領域315に対応する。   Thereafter, when the edit reception sheet generation process is performed, the control unit 4 generates image data of the edit reception sheet 400 (see FIG. 25) in which the frame 410 is arranged only in each area corresponding to the text areas 313 and 315. The printing unit 2 is caused to perform printing based on the generated image data. In the example shown in FIG. 25, the frame 413 corresponds to the text region 313, and the frame 415 corresponds to the text region 315.

ここで、図25に示す編集受付シート400には、図11に示した編集受付シート400と異なり、枠411、412および414が配されない。したがって、この構成では、編集受付シート400に配する枠410(ここの例では枠413)のサイズを大きくとることができる(記載し易くなる)ので、ユーザーの利便性が向上する。   Here, unlike the edit reception sheet 400 shown in FIG. 11, frames 411, 412 and 414 are not arranged on the edit reception sheet 400 shown in FIG. Therefore, in this configuration, the size of the frame 410 (the frame 413 in this example) arranged on the edit receiving sheet 400 can be increased (it is easy to describe), and the convenience for the user is improved.

今回開示された実施形態は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記実施形態の説明ではなく特許請求の範囲によって示され、さらに、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれる。   It should be thought that embodiment disclosed this time is an illustration and restrictive at no points. The scope of the present invention is shown not by the description of the above-described embodiment but by the scope of claims for patent, and further includes meanings equivalent to the scope of claims for patent and all modifications within the scope.

1 画像読取部
2 印刷部
4 制御部
100 画像形成装置
300 文書シート
310 テキスト領域
310E 編集対象領域
320 テキストファイル
400 編集受付シート
410 枠
430 枠領域
430T 編集テキスト領域
500 編集済シート
DESCRIPTION OF SYMBOLS 1 Image reading part 2 Printing part 4 Control part 100 Image forming apparatus 300 Document sheet 310 Text area 310E Edit object area 320 Text file 400 Edit reception sheet 410 Frame 430 Frame area 430T Edit text area 500 Edited sheet

Claims (10)

シートを読み取って前記シートの画像データを生成する画像読取部と、
印刷を行う印刷部と、
文書シートに記載された文書を編集するための処理を行う制御部と、を備え、
前記制御部は、前記画像読取部により前記文書シートの読み取りが行われることによって前記文書シートの画像データが生成されると、前記文書シートの画像データからそれぞれがテキストを含む複数の領域を抽出し、当該抽出した領域であるテキスト領域ごとに前記テキスト領域に存在するテキストのテキストファイルを生成するテキスト抽出処理を行うとともに、前記テキスト領域に対応する各領域に枠内が空白の枠を配した編集受付シートの第1画像データを生成する編集受付シート生成処理を行い、前記編集受付シートの印刷を前記印刷部に行わせ、
前記制御部は、前記画像読取部により前記編集受付シートの読み取りが行われることによって前記編集受付シートの第2画像データが生成されると、前記編集受付シートの第2画像データのうち前記枠に対応する枠領域に存在するテキストを認識する処理を行い、テキストが存在する前記枠領域である編集テキスト領域に対応する前記テキスト領域の前記テキストファイルに含まれるテキストを編集対象テキストに設定し、前記編集対象テキストを前記編集テキスト領域に存在するテキストに置き換えるテキスト置換処理を行うとともに、前記文書シートの画像データのうち前記編集テキスト領域に対応する前記テキスト領域を編集対象領域に設定し、前記編集対象領域に存在するテキストを前記編集対象領域の前記テキストファイルに含まれる前記テキスト置換処理後のテキストに変更した編集済シートの画像データを生成する編集済シート生成処理を行うことを特徴とする画像形成装置。
An image reading unit that reads the sheet and generates image data of the sheet;
A printing section for printing;
A control unit that performs processing for editing the document described in the document sheet,
When the image data of the document sheet is generated by reading the document sheet by the image reading unit, the control unit extracts a plurality of regions each containing text from the image data of the document sheet. The text extraction process for generating a text file of the text existing in the text area is performed for each text area that is the extracted area, and the frame corresponding to the text area is provided with a blank frame. Performing an edit reception sheet generation process for generating first image data of the reception sheet, causing the printing unit to print the edit reception sheet;
When the second image data of the edit receiving sheet is generated by the reading of the edit receiving sheet by the image reading unit, the control unit includes the second image data of the edit receiving sheet in the frame. Recognizing the text existing in the corresponding frame area, setting the text included in the text file of the text area corresponding to the edit text area that is the frame area where the text exists, as the text to be edited, A text replacement process is performed for replacing the text to be edited with text existing in the text area to be edited, and the text area corresponding to the text area to be edited is set as the area to be edited among the image data of the document sheet. The text existing in the area is included in the text file in the edit target area The text replacement processed image forming apparatus which is characterized in that the edited sheet generation process of generating image data of the edited sheets change to the text of that.
前記制御部は、前記テキスト抽出処理を行うとき、1行分のテキスト内に予め定められた閾値サイズ以上の空白部分が挿入されているか否かを判断し、前記1行分のテキスト内に前記空白部分が挿入されていれば、前記空白部分の前に存在するテキストを含む領域および前記空白部分の後に存在するテキストを含む領域をそれぞれ別の前記テキスト領域として抽出することを特徴とする請求項1に記載の画像形成装置。   When the text extraction process is performed, the control unit determines whether or not a blank portion having a predetermined threshold size or more is inserted in the text for one line, and the text in the text for the one line If a blank part is inserted, an area including text existing before the blank part and an area including text existing after the blank part are extracted as different text areas. The image forming apparatus according to 1. 前記制御部は、テキストの行方向を第1方向に設定するとともに前記第1方向と直交する方向を第2方向に設定し、前記テキスト抽出処理を行うとき、第1テキストと前記第1テキストの前記第2方向側に存在する第2テキストとの前記第2方向の間隔が予め定められた閾値間隔以上であれば、前記第1テキストを含む領域および前記第2テキストを含む領域をそれぞれ別の前記テキスト領域として抽出することを特徴とする請求項1または2に記載の画像形成装置。   The control unit sets the line direction of the text to the first direction, sets the direction orthogonal to the first direction to the second direction, and performs the text extraction process, so that the first text and the first text If an interval in the second direction with respect to the second text existing on the second direction side is equal to or greater than a predetermined threshold interval, the region including the first text and the region including the second text are different from each other. The image forming apparatus according to claim 1, wherein the image area is extracted as the text area. 前記制御部は、テキストの行方向を第1方向に設定するとともに前記第1方向と直交する方向を第2方向に設定し、前記テキスト抽出処理を行うとき、第1テキストと前記第1テキストの前記第2方向の一方側に存在する第2テキストとの前記第2方向の間隔である第1間隔を判別するとともに、前記第2テキストと前記第2テキストの前記一方側に存在する第3テキストとの前記第2方向の間隔である第2間隔を判別し、前記第1間隔と前記第2間隔とが異なっていれば、前記第2テキストを含む領域および前記第3テキストを含む領域をそれぞれ別の前記テキスト領域として抽出することを特徴とする請求項1〜3のいずれか1項に記載の画像形成装置。   The control unit sets the line direction of the text to the first direction, sets the direction orthogonal to the first direction to the second direction, and performs the text extraction process, so that the first text and the first text Determining a first interval that is an interval in the second direction from a second text existing on one side of the second direction, and a third text existing on the one side of the second text and the second text; And determining the second interval that is the interval in the second direction, and if the first interval and the second interval are different, the region including the second text and the region including the third text, respectively The image forming apparatus according to claim 1, wherein the image area is extracted as another text area. 前記制御部は、テキストの行方向を第1方向に設定するとともに前記第1方向と直交する方向を第2方向に設定し、前記テキスト抽出処理を行うとき、第1テキストの前記第1方向の一方端の位置である第1位置を判別するとともに、前記第1テキストの前記第2方向側に存在する第2テキストの前記第1方向の一方端の位置である第2位置を判別し、前記第1位置と前記第2位置との前記第1方向のずれ量が予め定められた閾値ずれ量以上であれば、前記第1テキストを含む領域および前記第2テキストを含む領域をそれぞれ別の前記テキスト領域として抽出することを特徴とする請求項1〜4のいずれか1項に記載の画像形成装置。   The control unit sets the line direction of the text to the first direction, sets the direction orthogonal to the first direction to the second direction, and performs the text extraction process to perform the text extraction process in the first direction of the first text. Determining a first position that is a position of one end, determining a second position that is a position of one end of the first text in the first direction of the second text existing on the second direction side of the first text, and If the shift amount in the first direction between the first position and the second position is greater than or equal to a predetermined threshold shift amount, the region including the first text and the region including the second text are different from each other. The image forming apparatus according to claim 1, wherein the image forming apparatus is extracted as a text area. 前記制御部は、前記編集受付シート生成処理を行うときに前記枠ごとに前記枠のサイズを設定する枠サイズ設定処理を行い、前記枠サイズ設定処理を行うとき、前記枠のサイズを前記枠に対応する前記テキスト領域のサイズ以上に設定することを特徴とする請求項1〜5のいずれか1項に記載の画像形成装置。   The control unit performs a frame size setting process for setting the frame size for each frame when performing the edit acceptance sheet generation process, and when performing the frame size setting process, the control unit sets the frame size to the frame. The image forming apparatus according to claim 1, wherein the image forming apparatus is set to be equal to or larger than a size of the corresponding text area. 前記制御部は、前記テキスト置換処理を行うとき、前記編集対象テキスト内のいずれの文字を編集するかを示す編集情報が前記編集テキスト領域に存在するか否かを判断し、前記編集テキスト領域に前記編集情報が存在すれば、前記編集対象テキスト内の文字のうち前記編集情報で示される文字だけを前記編集テキスト領域に存在する文字に置き換えることを特徴とする請求項1〜6のいずれか1項に記載の画像形成装置。   When the text replacement process is performed, the control unit determines whether edit information indicating which character in the edit target text is to be edited exists in the edit text area, and If the edit information exists, only the character indicated by the edit information among the characters in the edit target text is replaced with the character existing in the edit text area. The image forming apparatus described in the item. 前記制御部は、前記編集済シート生成処理を行うとき、前記テキスト置換処理後のテキストを配すべき領域である第1領域を認識し、前記テキスト置換処理後のテキストを前記第1領域の領域内に収めることができなければ、前記第1領域をテキストの行方向と直交する方向の一方側に向けて拡大することを特徴とする請求項1〜7のいずれか1項に記載の画像形成装置。   When performing the edited sheet generation process, the control unit recognizes a first area that is an area where the text after the text replacement process is to be arranged, and converts the text after the text replacement process into an area of the first area. 8. The image formation according to claim 1, wherein if the image cannot be accommodated, the first area is enlarged toward one side in a direction orthogonal to the line direction of the text. apparatus. 前記制御部は、前記第1領域の前記一方側に別のテキストが配置される第2領域が存在する場合において、前記第1領域を前記一方側に向けて拡大すると前記第1領域と前記第2領域との間隔が予め定められた閾値間隔未満になるとき、前記第2領域を前記一方側に移動させることを特徴とする請求項8に記載の画像形成装置。   In the case where there is a second region in which another text is arranged on the one side of the first region, the control unit expands the first region toward the one side, and the first region and the first region 9. The image forming apparatus according to claim 8, wherein the second area is moved to the one side when an interval between the two areas is less than a predetermined threshold interval. 前記制御部は、前記第2領域を前記一方側に移動させることができない場合、前記第1領域を拡大せず、前記第1領域に配すべきテキストが前記第1領域の領域内に収まるまで前記第1領域に配すべきテキストの文字サイズを縮小することを特徴とする請求項9に記載の画像形成装置。   If the control unit cannot move the second area to the one side, the control unit does not enlarge the first area until the text to be placed in the first area is within the area of the first area. The image forming apparatus according to claim 9, wherein a character size of text to be arranged in the first area is reduced.
JP2017071060A 2017-03-31 2017-03-31 Image forming device Active JP6686957B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017071060A JP6686957B2 (en) 2017-03-31 2017-03-31 Image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017071060A JP6686957B2 (en) 2017-03-31 2017-03-31 Image forming device

Publications (2)

Publication Number Publication Date
JP2018173781A true JP2018173781A (en) 2018-11-08
JP6686957B2 JP6686957B2 (en) 2020-04-22

Family

ID=64107465

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017071060A Active JP6686957B2 (en) 2017-03-31 2017-03-31 Image forming device

Country Status (1)

Country Link
JP (1) JP6686957B2 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07221972A (en) * 1994-02-08 1995-08-18 Fuji Xerox Co Ltd Image editing method
JPH09231215A (en) * 1996-02-27 1997-09-05 Sharp Corp Document processor
JPH1166063A (en) * 1997-08-27 1999-03-09 Nippon Telegr & Teleph Corp <Ntt> System and method for displaying text document data in high-dimensions and recording medium recording the same method
JPH11238072A (en) * 1998-02-23 1999-08-31 Ricoh Co Ltd Document keeping device
JP2007041944A (en) * 2005-08-04 2007-02-15 Canon Inc Image processing device, image processing method, computer program, computer-readable recording medium and image forming system
JP2007095102A (en) * 2006-12-25 2007-04-12 Toshiba Corp Document processor and document processing method
JP2009075879A (en) * 2007-09-20 2009-04-09 Ricoh Co Ltd Image processor, image processing method, and program
JP2011065621A (en) * 2009-08-20 2011-03-31 Fuji Xerox Co Ltd Information processing device and information processing program
JP2016218638A (en) * 2015-05-18 2016-12-22 京セラドキュメントソリューションズ株式会社 Electronic apparatus

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07221972A (en) * 1994-02-08 1995-08-18 Fuji Xerox Co Ltd Image editing method
JPH09231215A (en) * 1996-02-27 1997-09-05 Sharp Corp Document processor
JPH1166063A (en) * 1997-08-27 1999-03-09 Nippon Telegr & Teleph Corp <Ntt> System and method for displaying text document data in high-dimensions and recording medium recording the same method
JPH11238072A (en) * 1998-02-23 1999-08-31 Ricoh Co Ltd Document keeping device
JP2007041944A (en) * 2005-08-04 2007-02-15 Canon Inc Image processing device, image processing method, computer program, computer-readable recording medium and image forming system
JP2007095102A (en) * 2006-12-25 2007-04-12 Toshiba Corp Document processor and document processing method
JP2009075879A (en) * 2007-09-20 2009-04-09 Ricoh Co Ltd Image processor, image processing method, and program
JP2011065621A (en) * 2009-08-20 2011-03-31 Fuji Xerox Co Ltd Information processing device and information processing program
JP2016218638A (en) * 2015-05-18 2016-12-22 京セラドキュメントソリューションズ株式会社 Electronic apparatus

Also Published As

Publication number Publication date
JP6686957B2 (en) 2020-04-22

Similar Documents

Publication Publication Date Title
JP4201009B2 (en) Printing device
JP2007215117A (en) Image forming unit
US8749832B2 (en) Information processing device
JP2007253572A (en) Printer
JP7067124B2 (en) Display input device
JP2013196479A (en) Information processing system, information processing program, and information processing method
JP2009070107A (en) Image processor, image forming system, image processing method, and image processing program
US10638001B2 (en) Information processing apparatus for performing optical character recognition (OCR) processing on image data and converting image data to document data
JP6686957B2 (en) Image forming device
US8213043B2 (en) Printing apparatus, printing apparatus control method, printing apparatus control program, and printing system
JP6205973B2 (en) Change history output device, program
US20170346961A1 (en) Modified document generation
US20150085306A1 (en) Input device, image forming apparatus, and electronic apparatus
JP2020116849A (en) Image formation apparatus
JP2019197321A (en) Image processing apparatus and image forming apparatus
US20240129416A1 (en) Method of producing image data and image reading system
JP2020038576A (en) Electronic apparatus, image formation apparatus, electronic mail preparation support method and electronic mail preparation support program
JP6504104B2 (en) Image processing device
US20150146254A1 (en) Image Processing Apparatus and Image Processing Method That Ensures Effective Search
JP2007007871A (en) Image forming apparatus and control program
JP2007265007A (en) Image processor and document management system
JP2001127974A (en) Device and system for image reading apparatus
JP4011472B2 (en) Image processing device
JP6477577B2 (en) Image processing device
JP2021164123A (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181227

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190717

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190827

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191028

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200316

R150 Certificate of patent or registration of utility model

Ref document number: 6686957

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150