JP2014212387A - Image forming apparatus and image formation control method - Google Patents
Image forming apparatus and image formation control method Download PDFInfo
- Publication number
- JP2014212387A JP2014212387A JP2013086518A JP2013086518A JP2014212387A JP 2014212387 A JP2014212387 A JP 2014212387A JP 2013086518 A JP2013086518 A JP 2013086518A JP 2013086518 A JP2013086518 A JP 2013086518A JP 2014212387 A JP2014212387 A JP 2014212387A
- Authority
- JP
- Japan
- Prior art keywords
- image
- image data
- margin
- read
- 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.)
- Pending
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B41—PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
- B41J—TYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
- B41J29/00—Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
- B41J29/40—Means for printing fixed, i.e. unchanging, matter in addition to selectable matter
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/38—Circuits or arrangements for blanking or otherwise eliminating unwanted parts of pictures
Abstract
Description
本発明は、記録媒体上に画像を形成する技術に関し、特に、記録媒体の余白範囲に付加情報を表す画像を形成する技術に関するものである。 The present invention relates to a technique for forming an image on a recording medium, and more particularly to a technique for forming an image representing additional information in a margin range of a recording medium.
近年、1枚または複数枚のページで構成された電子ファイル(文書ファイルや画像ファイルなど)を処理するコンピュータ・ソフトウェア及び電子機器が広く普及している。ユーザは、その種のコンピュータ・ソフトウェアや電子機器を使用して電子ファイルにページ番号及び日付などの付加情報を電子的に付加することができる。一方、紙媒体などの記録媒体上に形成された印刷画像にページ番号や日付などの付加情報を付加するには、たとえば、手書きであるいは印刷機器を用いて物理的に付加情報を付け加える必要がある。 In recent years, computer software and electronic devices that process electronic files (document files, image files, etc.) composed of one or a plurality of pages have become widespread. A user can electronically add additional information such as a page number and date to an electronic file using such computer software or electronic equipment. On the other hand, in order to add additional information such as a page number or date to a print image formed on a recording medium such as a paper medium, it is necessary to add the additional information physically, for example, by handwriting or using a printing device. .
特開平7‐17113号公報(特許文献1)には、手書き図面若しくは既にプリント(画像形成)された書面にページ番号を自動的に印刷する機能を有する文書処理装置が開示されている。この文書処理装置は、ユーザによってページ付け開始番号とページ付け位置とが指定されると、当該ページ付け開始番号から始まるページ番号を、記録媒体上の当該ページ付け位置に自動的に印刷することができる。 Japanese Patent Application Laid-Open No. 7-17113 (Patent Document 1) discloses a document processing apparatus having a function of automatically printing page numbers on a handwritten drawing or an already printed (image-formed) document. When the user specifies a pagination start number and a pagination position, the document processing apparatus can automatically print a page number starting from the pagination start number at the pagination position on the recording medium. it can.
特許文献1に開示されている文書処理装置では、ユーザ指定のページ付け位置に既に印刷画像が形成されている場合には、既存の印刷画像上に重ねてページ番号が印刷されるという問題がある。この問題を回避するには、ユーザは、記録媒体上の既存の印刷画像の位置を予め目視で確認したうえでページ付け位置を慎重に指定するか、あるいは、ページ付け位置の指定とページ番号の試し印刷とを試行錯誤で繰り返して適切なページ付け位置を見つけ出すことが必要である。
In the document processing apparatus disclosed in
しかしながら、記録媒体上の印刷画像の正確な位置を予め目視で確認する作業は、ユーザにとって負担であり、利便性に欠けるという問題がある。また、ページ付け位置の指定とページ番号の試し印刷とを試行錯誤で繰り返すことも、利便性に欠けると同時に、試し印刷に使用される記録媒体の資源の無駄を招くという問題がある。 However, the task of visually confirming the exact position of the printed image on the recording medium is a burden on the user and is not convenient. Further, repeating the designation of the page position and the trial printing of the page number by trial and error is not convenient, and there is a problem that the resources of the recording medium used for the trial printing are wasted.
上記に鑑みて本発明の目的は、記録媒体上の印刷画像と付加画像との重複を極めて簡便に且つ確実に防止することができる画像形成装置及び画像形成制御方法を提供することである。 In view of the above, an object of the present invention is to provide an image forming apparatus and an image forming control method capable of preventing an overlap between a print image and an additional image on a recording medium very simply and reliably.
本発明の第1の態様による画像形成装置は、利用者により入力された印刷設定情報を受け付ける操作入力部と、少なくとも1枚の記録媒体上の印刷済み画像の形成領域と該形成領域以外の余白とから読み取られた原画像データに基づいて読取画像データを生成する読取画像生成部と、前記読取画像データで表される読取画像の余白範囲を検出する余白検出部と、前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定する配置決定部と、前記挿入位置に配置された当該付加画像を含む挿入画像データを生成する挿入画像生成部と、前記挿入画像データで表される印刷画像を前記記録媒体上に形成する印刷実行部とを備えることを特徴とする。 An image forming apparatus according to a first aspect of the present invention includes an operation input unit that receives print setting information input by a user, a printed image formation region on at least one recording medium, and blanks other than the formation region. A read image generation unit that generates read image data based on original image data read from the image, a margin detection unit that detects a margin range of a read image represented by the read image data, and an arrangement of the margin ranges. Based on this, an arrangement determining unit that determines an insertion position of an additional image that represents additional information specified by the print setting information, and an insertion image generation unit that generates insertion image data including the additional image arranged at the insertion position And a print execution unit for forming a print image represented by the inserted image data on the recording medium.
本発明の第2の態様による画像形成装置は、利用者により入力された印刷設定情報を受け付ける操作入力部と、
少なくとも1枚の被読取媒体上の印刷済み画像の形成領域と該形成領域以外の余白とから読み取られた原画像データに基づいて読取画像データを生成する読取画像生成部と、前記読取画像データで表される読取画像の余白範囲を検出する余白検出部と、前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定する配置決定部と、前記挿入位置を有する当該付加画像を表すデータと前記原画像データとを互いに合成して合成画像データを生成する画像合成部と、前記合成画像データで表される印刷画像を記録媒体上に形成する印刷実行部とを備えることを特徴とする。
An image forming apparatus according to a second aspect of the present invention includes an operation input unit that receives print setting information input by a user;
A read image generation unit configured to generate read image data based on original image data read from a formation area of a printed image on at least one read medium and a margin other than the formation area; and the read image data A margin detection unit that detects a margin range of the read image that is represented; an arrangement determination unit that determines an insertion position of an additional image representing additional information specified by the print setting information based on the arrangement of the margin range; An image composition unit that composes data representing the additional image having the insertion position and the original image data to generate composite image data, and forms a print image represented by the composite image data on a recording medium And a print execution unit.
本発明の第3の態様による画像形成制御方法は、利用者により操作入力された印刷設定情報を用いた画像形成制御方法であって、少なくとも1枚の記録媒体上の印刷済み画像の形成領域と該形成領域以外の余白とから読み取られた原画像データに基づいて読取画像データを生成するステップと、前記読取画像データで表される読取画像の余白範囲を検出するステップと、前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定するステップと、前記挿入位置に配置された当該付加画像を含む挿入画像データを生成するステップと、前記挿入画像データで表される印刷画像を前記記録媒体上に形成するステップとを備えることを特徴とする。 An image formation control method according to a third aspect of the present invention is an image formation control method using print setting information input by a user, and includes a printed image formation area on at least one recording medium, Generating read image data based on original image data read from a margin other than the formation region; detecting a margin range of a read image represented by the read image data; and arranging the margin range A step of determining an insertion position of the additional image representing the additional information designated by the print setting information, a step of generating insertion image data including the additional image arranged at the insertion position, and the insertion Forming a print image represented by image data on the recording medium.
本発明の第4の態様による画像形成制御方法は、利用者により操作入力された印刷設定情報を用いた画像形成制御方法であって、少なくとも1枚の被読取媒体上の印刷済み画像の形成領域と該形成領域以外の余白領域とから読み取られた原画像データに基づいて読取画像データを生成するステップと、前記読取画像データで表される読取画像の余白範囲を検出するステップと、前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定するステップと、前記挿入位置を有する当該付加画像を表すデータと前記原画像データとを互いに合成して合成画像データを生成するステップと、前記合成画像データで表される印刷画像を記録媒体上に形成させるステップとを備えることを特徴とする。 An image formation control method according to a fourth aspect of the present invention is an image formation control method using print setting information input by a user, and is a formation area of a printed image on at least one read medium. Generating read image data based on original image data read from a blank area other than the formation area, detecting a blank area of a read image represented by the read image data, and the blank area And determining the insertion position of the additional image representing the additional information specified by the print setting information, and combining the data representing the additional image having the insertion position with the original image data. Generating composite image data, and forming a print image represented by the composite image data on a recording medium.
本発明によれば、記録媒体上の印刷画像と付加画像との重複を極めて簡便に且つ確実に防止することができる。 According to the present invention, it is possible to prevent the print image and the additional image on the recording medium from being overlapped with each other very easily and reliably.
以下、本発明に係る種々の実施の形態について図面を参照しつつ説明する。 Hereinafter, various embodiments according to the present invention will be described with reference to the drawings.
実施の形態1.
図1は、本発明に係る実施の形態1の画像形成装置である複合機1の概略構成を示すブロック図である。図1に示されるように、複合機1は、操作パネル11、データ記憶部14、画像読取部20、画像領域決定部30、挿入画像生成部40及び印刷実行部50を備え、さらに、これら処理ブロック11,14,20,30,40,50の動作を個別に制御し得る主制御部10を備えている。
FIG. 1 is a block diagram showing a schematic configuration of a
データ記憶部14は、主制御部10により転送されたデータを一時的に記憶する機能を有し、たとえば、データの読み出し速度及び書込み速度が高速なSDRAMなどのメモリを用いて構成され得る。データ記憶部14は、画像読取部20で生成された画像データを記憶するための記憶領域と、画像領域決定部30または挿入画像生成部40で生成または加工されたデータを記憶するための記憶領域とを有する。
The
操作パネル11は、表示部13と、この表示部13にタッチパネル機能を付与する操作入力部12とを有している。表示部13は、液晶表示パネルまたは有機EL表示パネルなどの画像表示デバイスからなる。操作入力部12は、タッチパネル機能に加えて、入力ボタン(図示せず)と、英数字などの符号を入力するための入力キー(図示せず)とを備えている。複合機1のユーザは、表示部13の表示領域に指先または指示具を接触させることで主制御部10に情報を入力することができる。主制御部10は、複合機1に関する各種設定及び指示のための画面を表示部13に表示させたり、複合機1の動作状態を示す画面を表示部13に表示させたりすることが可能である。
The
画像読取部20は、スキャナ装置である撮像部21と、読取画像生成部22とを有する。撮像部21は、シート状の記録媒体の表面を撮像走査してこの記録媒体上の印刷済み画像を読み取る機能を有する。記録媒体としては、たとえば、用紙、プラスチックフィルム、合成紙もしくは布などのシート状のものが挙げられる。
The
図2は、撮像部21の構成例を概略的に示す図である。図2に示されるように、撮像部21は、シート状の記録媒体Stの表面を撮像走査するイメージセンサ211と、このイメージセンサ211から出力されたアナログ画像信号S0に信号処理を施して多階調のデジタル画像データ(原画像データ)P0を生成する画像処理部212とを含む。イメージセンサ211は、主制御部10の制御を受けて、記録媒体St上の任意の範囲を撮像走査することが可能である。また、撮像部21は、連続的に供給された複数枚の記録媒体Stを順次撮像走査して複数ページ分のデジタル画像データP0を生成し出力することもできる。デジタル画像データP0は、複合機1の動作モードに応じて主制御部10及び読取画像生成部22のいずれか一方に供給される。
FIG. 2 is a diagram schematically illustrating a configuration example of the
なお、本実施の形態では、デジタル画像データP0は、撮像部21から読取画像生成部22に直接出力されるが、この代わりに、主制御部10がデジタル画像データP0をデータ記憶部14に一時的に記憶させた後に、適当なタイミングでデータ記憶部14からデジタル画像データP0を読み出して読取画像生成部22に供給してもよい。
In the present embodiment, the digital image data P0 is directly output from the
読取画像生成部22は、デジタル画像データP0を2値化して各画素1ビットの情報量を持つ2値化画像データを生成し、この2値化画像データから読取画像データP1を生成する。ここで、2値化画像データを構成する各画素は印刷時の1ドット(dot)に対応している。2値化画像データを構成する画素は、情報を持つ「1」の値もしくは情報を持たない「0」の値のいずれか一方を有する。
The read
なお、読取画像生成部22は、デジタル画像データP0に空間フィルタを適用して空間周波数の高いノイズ成分を除去した後に、ノイズ成分除去後のデジタル画像データP0を2値化してもよい。これにより、余白範囲の検出精度を向上させることが可能となる。
The read
主制御部10は、読取画像データP1を画像領域決定部30に転送する。ここで、主制御部10は、読取画像データP1をデータ記憶部14に一時的に記憶させた後に、適当なタイミングでデータ記憶部14から読取画像データP1を読み出して画像領域決定部30に供給してもよい。
The
画像領域決定部30は、図1に示されるように、余白検出部31、画像サイズ設定部32及び配置決定部33を有する。余白検出部31は、読取画像データP1で表される読取画像から、何ら情報を持たない画素群が存在する余白範囲を検出する。余白範囲内の全ての画素は「0」の値を有している。
As illustrated in FIG. 1, the image
画像サイズ設定部32は、余白検出部31で検出された余白範囲の大きさに基づいて、印刷設定情報で指定された付加情報(ページ番号及び日付など)を表す付加画像の画像サイズを設定する。配置決定部33は、余白検出部31で検出された余白範囲の大きさと、画像サイズ設定部32で設定された画像サイズとに基づいて、付加画像の挿入位置を演算により決定する機能を有する。主制御部10は、配置決定部33で決定された挿入位置と画像サイズ設定部32で設定された画像サイズとを示すデータBpを挿入画像生成部40に転送する。
The image
挿入画像生成部40は、図1に示されるように、付加画像生成部41及び画像配置部42を有する。付加画像生成部41は、ページ番号及び日付などの付加情報を画像化して、画像サイズ設定部32で設定された画像サイズを有する付加画像を生成する。そして、画像配置部42は、配置決定部33で決定された挿入位置に配置された付加画像を含む挿入画像データP3を生成する。
As shown in FIG. 1, the insertion
主制御部10は、挿入画像データP3を印刷実行部50に転送する。印刷実行部50は、主制御部10の制御を受けて、給紙トレイ52から供給されたシート状の記録媒体St上に挿入画像データP3で表される印刷画像を形成し、その後、記録媒体Stを排出トレイ51に排出する。印刷実行部50としては、たとえば、電子写真方式またはインクジェット方式で動作する印刷機器を使用すればよい。なお、印刷方式は、電子写真方式またはインクジェット方式に限定されるものではない。
The
主制御部10は、たとえば、CPU(central processing unit)などのマイクロプロセッサ、ROM(Read Only Memory)、RAM(Random Access Memory)及び入出力インタフェースを含む回路で構成することができる。また、読取画像生成部22、画像領域決定部30及び挿入画像生成部40の機能は、ハードウェアで実現されてもよいし、あるいは、マイクロプロセッサにより実行されるコンピュータプログラムで実現されてもよい。
The
次に、上記構成を有する複合機1の動作を以下に説明する。
Next, the operation of the
ユーザは、図2に示すような印刷済み画像PTを有する記録媒体Stにページ番号などの付加画像を追加印刷したい場合にその記録媒体Stを撮像部21にセットする。以下に説明するように、複合機1は、記録媒体Stの表面から印刷済み画像PTが形成されていない余白範囲を自動検出し、この余白範囲にユーザ指定の付加画像を追加印刷(挿入)することができる。
When the user wants to additionally print an additional image such as a page number on the recording medium St having the printed image PT as shown in FIG. 2, the user sets the recording medium St in the
図3は、複合機1の動作を概略的に示すフローチャートである。図4は、操作パネル11の表示部13に表示された初期画面130Aの一例を示す図である。図4に示されるように、初期画面130Aには、「コピー」選択ボタン、「印刷」選択ボタン及び「挿入文字印刷」選択ボタンが設けられている。主制御部10は、「コピー」選択ボタン、「印刷」選択ボタン及び「挿入文字印刷」選択ボタンのいずれかをユーザが選択するまで待機している(ステップS10,S12,S14のNO)。ユーザが自己の指先または指示具で「コピー」選択ボタン、「印刷」選択ボタン及び「挿入文字印刷」選択ボタンのいずれかの領域に触れると、操作入力部12は、ユーザが触れた領域を検出しその位置情報を主制御部10に供給する。主制御部10は、その位置情報に基づいていずれのボタンが選択されたかを検知することができる。
FIG. 3 is a flowchart schematically showing the operation of the
ユーザが「コピー」選択ボタンを選択したとき、主制御部10は、コピー指示有りと判断し(ステップS10のYES)、コピー処理(複写処理)を実行する(ステップS11)。具体的には、撮像部21は、原稿である記録媒体Stの表面を撮像走査してそのデジタル画像データP0を生成し、主制御部10に出力する。主制御部10は、そのデジタル画像データP0を印刷データに変換し、印刷実行部50に転送する。そして、印刷実行部50は、主制御部10の制御を受けて、内部トレイ(図示せず)から取り出された別の記録媒体上に当該印刷データで表される印刷画像を形成する。
When the user selects the “copy” selection button, the
一方、ユーザが「印刷」選択ボタンを選択したときは、主制御部10は、通常印刷の指示有りと判断し(ステップS12のYES)、印刷実行部50にユーザ指定の印刷画像を記録媒体上に形成させる(ステップS13)。
On the other hand, when the user selects the “print” selection button, the
他方、ユーザが「挿入文字印刷」選択ボタンを選択したとき、主制御部10は、挿入印刷指示有りと判断し(ステップS14のYES)、挿入印刷処理を実行する(ステップS15)。
On the other hand, when the user selects the “inserted character printing” selection button, the
図5は、図3のステップS15の挿入印刷処理の手順を概略的に示すフローチャートである。主制御部10は、ユーザによる「挿入文字印刷」選択ボタンの選択に応じて、挿入印刷用の初期設定画面を表示部13に表示させ(ステップS21)、印刷設定処理を実行する(ステップS22)。図6は、挿入印刷用の初期設定画面130Bの一例を示す図である。図6に示されるように、初期設定画面130Bには、挿入(追加印刷)すべき「文字列」と、この「文字列」の「色」、「位置」及び「サイズ」とに関する項目が設けられている。ステップS22の印刷設定処理では、ユーザは、操作パネル11を操作して以下に説明する各種設定を行うことができる。
FIG. 5 is a flowchart schematically showing the procedure of the insertion printing process in step S15 of FIG. In response to the selection of the “inserted character printing” selection button by the user, the
先ず、挿入すべき文字列の印刷色については、ユーザは、初期設定画面130Bに触れて「黒」選択ボタン、「青」選択ボタン、「赤」選択ボタン及び「白」選択ボタンのいずれかを選択状態とすることで印刷色(黒色、青色、赤色または白色)を指定することができる。 First, regarding the print color of the character string to be inserted, the user touches the initial setting screen 130B and selects any one of the “black” selection button, the “blue” selection button, the “red” selection button, and the “white” selection button. A printing color (black, blue, red, or white) can be specified by selecting the selected state.
次に、挿入すべき文字列の印刷位置(挿入位置)については、ユーザは、初期設定画面130Bに触れて「自動」選択ボタンを選択状態とすることで当該文字列の印刷位置の自動調整を選択することができる。一方、「自動」選択ボタンが非選択状態のときは、印刷位置の自動調整は行われず、主制御部10は、デフォルト設定の印刷位置に文字列が印刷されるように印刷実行部50を制御する。ユーザは、「自動」選択ボタンの領域に触れることでその選択状態を解除することが可能である。
Next, regarding the print position (insertion position) of the character string to be inserted, the user touches the initial setting screen 130B to select the “auto” selection button to automatically adjust the print position of the character string. You can choose. On the other hand, when the “automatic” selection button is not selected, the print position is not automatically adjusted, and the
また、ユーザは、初期設定画面130Bにおける「位置」に関する「詳細設定」選択ボタンを選択してその印刷位置の許容範囲(余白対象範囲)を指定することができる。図7は、ユーザがその「詳細設定」選択ボタンを選択した場合に表示部13に表示される詳細設定画面130Cの一例を示す図である。図7に示されるように、詳細設定画面130Cには、余白対象範囲を定める「上限値」及び「下限値」をそれぞれ入力するための入力ボックスが設けられている。ユーザは、入力ボックスの表示領域に触れて当該入力ボックスを選択状態とした後に、操作入力部12の入力キーを押下して所望の数値を入力することができる。入力設定が完了した後、ユーザは、詳細設定画面130Cの「設定完了」選択ボタンを選択することで、表示部13の画面を図6の初期設定画面130Bに戻すことができる。
Further, the user can select the “detailed setting” selection button for “position” on the initial setting screen 130B and specify the allowable range (margin target range) of the print position. FIG. 7 is a diagram illustrating an example of a detailed setting screen 130 </ b> C displayed on the
図8は、記録媒体Stに対して設定された余白対象範囲Stbの一例を示す図である。図8に示される記録媒体Stは、X方向(横方向)の幅LxとY方向(縦方向)の長さLyとを有する。図8に示されるように、余白対象範囲Stbは、記録媒体Stの下端(用紙下端)からのY方向距離の上限値ULと下限値LLとの間の数値に対応する範囲である。図7に示されるように一般的と考えられる上限値20mm及び下限値5mmが予めデフォルト値として設定されていてもよい。
FIG. 8 is a diagram illustrating an example of the margin target range Stb set for the recording medium St. The recording medium St shown in FIG. 8 has a width Lx in the X direction (horizontal direction) and a length Ly in the Y direction (vertical direction). As shown in FIG. 8, the margin target range Stb is a range corresponding to a numerical value between the upper limit UL and the lower limit LL of the Y-direction distance from the lower end (sheet lower end) of the recording medium St. As shown in FIG. 7, an
たとえば、印刷実行部50の印刷能力が600dpi(dot‐per‐inch)であり、記録媒体Stのサイズとして、横幅(Lx)が約4960ドットに相当する210mmであり、縦方向長さ(Ly)が297mmである場合を考える。上限値ULが20mmに設定され且つ下限値LLが5mmに設定されたとき、余白対象範囲Stbの上限位置と記録媒体Stの上端との間の長さDUは、約6543ドットに相当する277mmであり、余白対象範囲Stbの下限位置と記録媒体Stの上端との間の長さDLは、約6897ドットに相当する292mmとなる。
For example, the
なお、本実施の形態では、上限値ULと下限値LLとでY方向に余白対象範囲Stbが限定されているが、X方向に余白対象範囲Stbを限定する数値(たとえば、記録媒体Stの右端からの距離と左端からの距離との組)を設定可能なように図7の詳細設定画面130Cを変更してもよい。
In the present embodiment, the margin target range Stb is limited in the Y direction by the upper limit UL and the lower limit LL, but a numerical value that limits the margin target range Stb in the X direction (for example, the right end of the recording medium St The
次に、図6を参照すると、挿入すべき文字列のサイズについては、ユーザは、初期設定画面130Bに触れてサイズ設定用の「自動」選択ボタンを選択状態とすることで画像サイズの自動調整を選択することができる。サイズ設定用の「自動」選択ボタン(図6)が選択状態のとき、文字列の画像サイズは可変となる。このとき、画像サイズは、後述するように余白範囲と挿入文字列の長さとに応じたサイズに自動的に調整される。ユーザは、選択状態の「自動」選択ボタンの領域に触れることでその選択状態を解除することが可能である。 Next, referring to FIG. 6, regarding the size of the character string to be inserted, the user touches the initial setting screen 130 </ b> B to select the “auto” selection button for size setting, and automatically adjusts the image size. Can be selected. When the “auto” selection button for size setting (FIG. 6) is selected, the image size of the character string is variable. At this time, the image size is automatically adjusted to a size corresponding to the margin range and the length of the inserted character string, as will be described later. The user can release the selected state by touching the area of the “automatic” selection button in the selected state.
また、ユーザは、サイズ設定用の「詳細設定」選択ボタンを選択してその画像サイズを設定することができる。図9は、ユーザがその「詳細設定」選択ボタンを選択した場合に表示部13に表示される詳細設定画面130Dの一例を示す図である。図9に示されるように、詳細設定画面130Dには、文字列を構成する各文字のサイズ(文字サイズ)を定めるポイント数を入力するための入力ボックスが設けられている。ユーザは、詳細設定画面130Dにおける入力ボックスの表示領域に触れて当該入力ボックスを選択状態とした後に、操作入力部12を操作して数値を入力することができる。入力設定が完了した後、ユーザは、詳細設定画面130Dの「設定完了」選択ボタンを選択することで、表示部13の画面を図6の初期設定画面130Bに戻すことができる。なお、図9に示されるように、一般的と考えられる文字サイズのデフォルト値として10ポイントが予め設定されていてもよい。
Further, the user can select the “detail setting” selection button for size setting and set the image size. FIG. 9 is a diagram showing an example of a
主制御部10は、サイズ設定用の「自動」選択ボタン(図6)が非選択状態のときには、図9の詳細設定画面130Dで指定されたポイント数を有する文字からなる文字列が印刷されるように印刷実行部50を制御する。
When the “automatic” selection button for size setting (FIG. 6) is in a non-selected state, the
次に、図6を参照すると、挿入すべき文字列の内容については、ユーザは、初期設定画面130Bに触れて「ページ」選択ボタンを選択状態とすることでページ番号の文字列を指定することができ、「日付」選択ボタンを選択状態とすることで日付の文字列を指定することができる。ユーザは、「ページ」選択ボタンまたは「日付」選択ボタンの領域に触れることでその選択状態を解除することが可能である。 Next, referring to FIG. 6, regarding the contents of the character string to be inserted, the user specifies the character string of the page number by touching the initial setting screen 130B and selecting the “page” selection button. The date character string can be specified by selecting the “date” selection button. The user can cancel the selected state by touching the area of the “page” selection button or the “date” selection button.
ユーザは、初期設定画面130Bの文字列設定用の「詳細設定」選択ボタンを選択してその挿入文字列の内容を設定することができる。図10は、ユーザが「詳細設定」選択ボタンを選択した場合に表示部13に表示される詳細設定画面130Eの一例を示す図である。図10に示されるように、詳細設定画面130Eには、開始ページ番号を入力するための入力ボックスと、日付を入力するための入力ボックスと、ページ番号及び日付以外の任意の文字列(たとえば、ファイル名や所有者名)を入力するための入力ボックスとが設けられている。開始ページ番号のデフォルト値としては、「1」を予め設定しておくことができる。また、ユーザが複合機1を操作する当日の日付が自動的に入力されてもよい。入力設定が完了した後、ユーザは、詳細設定画面130Eの「設定完了」選択ボタンを選択することで、表示部13の画面を図6の初期設定画面130Bに戻すことができる。
The user can set the contents of the inserted character string by selecting the “detailed setting” selection button for character string setting on the initial setting screen 130B. FIG. 10 is a diagram illustrating an example of a
なお、詳細設定画面130Eの任意の文字列を入力するための入力ボックスについては、予め文字列を設定登録しないことが望ましい。これにより、仮にユーザの誤操作で文字列指定が有効とされても、登録文字列がないため、意図しない文字列印刷を回避することができる。
Note that it is desirable not to set and register a character string in advance for an input box for inputting an arbitrary character string on the
印刷設定が完了した後は、ユーザは、図6に示される「実行開始」選択ボタンを選択して印刷設定処理(ステップS22)を完了させ、処理を次の手順に移行させることができる。主制御部10は、印刷設定情報をデータ記憶部14の所定の記憶領域に記憶する。たとえば、ユーザは、ページ番号の挿入(追加印刷)を望むとき、印刷色を黒に、挿入位置の範囲を用紙下端から20mmないし51mmの範囲内に、文字サイズを10ポイントに、開始ページ番号を「1」にそれぞれ設定することができる。
After the print setting is completed, the user can select the “execution start” selection button shown in FIG. 6 to complete the print setting process (step S22) and shift the process to the next procedure. The
主制御部10は、ユーザによる「実行開始」選択ボタンの選択に応じて、画像読取処理(図5のステップS40)を開始する。図11は、ステップS40の画像読取処理の手順を概略的に示すフローチャートである。
The
図11を参照すると、主制御部10は、上記印刷設定処理(ステップS22)で設定された余白対象範囲Stbに対応する局所画像データを初期化する(ステップS41)。局所画像データは、各画素1ビットの情報量を持つ2値化画像を表すデータである。各画素は、印刷時の1ドットに対応している。局所画像データの初期化は、当該局所画像データの全ての画素値を「0」に設定することで行われる。
Referring to FIG. 11, the
次に、主制御部10は、撮像部21を起動させて記録媒体Stからの原稿1ページ分の画像読み取りを指示する(ステップS42)。この指示に応じて、撮像部21は、記録媒体Stを撮像走査し、デジタル画像データ(原画像データ)P0を生成する。
Next, the
読取画像生成部22は、デジタル画像データP0を取得し(ステップS43)、さらにデジタル画像データP0を2値化して2値化画像データを生成する(ステップS44)。ここで、デジタル画像データP0が各画素3色(たとえば、R(赤色),G(緑色)及びB(青色))の情報を持つカラー画像データである場合は、3色それぞれの2値化データを生成し、これら2値化データを画素ごとに論理和演算して2値化画像データを生成すればよい。
The read
そして、読取画像生成部22は、2値化画像データで表されるページ画像から、余白対象範囲Stbに対応する領域画像データを抽出する(ステップS45)。
Then, the read
次に、読取画像生成部22は、ステップS45で抽出された領域画像データと局所画像データとを論理和演算して論理和画像データを生成する(ステップS46)。具体的には、局所画像データの座標(x,y)での画素値をP1(x,y)とし、領域画像データの同一座標(x,y)での画素値をP2(x,y)とし、論理和画像データの同一座標(x,y)での画素値をP3(x,y)とするとき、画素値P1(x,y)と画素値P2(x,y)との論理和演算により論理和画像データの画素値P3(x,y)が算出される。画素値P1(x,y),P2(x,y)の少なくとも一方が「1」の値のときは、画素値P3(x,y)は「1」の値となり、画素値P1(x,y),P2(x,y)の両方が「0」の値のときは、画素値P3(x,y)は「0」の値となる。
Next, the read
次に、読取画像生成部22は、論理和画像データを局所画像データとすることで局所画像データを更新する(ステップS47)。そして、読取画像生成部22は、全原稿からの画像読み取りが終了しないとき(ステップS48のNO)、ステップS42に処理を移行させる。一方、全原稿からの画像読み取りが終了したときは(ステップS48のYES)、読取画像生成部22は、局所画像データを読取画像データP1として出力する(ステップS49)。ここで、読み取られるべき原稿の枚数が1枚しかないとき、読取画像生成部22は、実質的に領域画像データを読取画像データP1として出力することとなる(ステップS48のYES及びステップS49)。
Next, the read
上記画像読取処理により、全ての原稿に関する画像データの2値化情報が反映された局所画像データが読取画像データP1として出力される。よって、読取画像データP1のうち情報を持つ画素は「1」の値を有し、情報を持たない画素は「0」の値を有する。 By the image reading process, local image data reflecting the binarization information of the image data regarding all the originals is output as the read image data P1. Therefore, a pixel having information in the read image data P1 has a value of “1”, and a pixel having no information has a value of “0”.
なお、主制御部10は、ページカウンタ(図示せず)を有し、このページカウンタは、撮像部21が原稿1枚から画像を読み取るごとにカウンタ値を更新する。全ての原稿からの読画像読み取りが終了したとき(ステップS48のYES)のカウンタ値から原稿の総枚数(総ページ数)を把握することができる。
The
図5を参照すると、上記画像読取処理が完了した後は、余白検出部31は、挿入データに関するデータを初期化し(ステップS50)、次いで、余白検出処理を実行して読取画像データP1の余白範囲を検出する(ステップS51)。図12は、ステップS51の余白検出処理の手順を概略的に示すフローチャートである。
Referring to FIG. 5, after the image reading process is completed, the
図12を参照すると、まず、余白検出部31は、余白領域情報を初期化する(ステップS52)。図13は、余白領域情報を構成するパラメータの例を示す図であり、図14は、図13の余白領域情報によって定められる矩形状の余白範囲BAを表す図である。図14に示されるように、用紙範囲Saにおける余白範囲BAの四隅は、x座標値及びy座標値の4つの組(x0,y0),(x1,y0),(x0,y1),(x1,y1)でそれぞれ指定され得る。図13の余白領域情報は、y座標開始位置y0、余白範囲BAのライン数(余白ライン数)Nb、x座標開始位置x0及びx座標終了位置x1を含むものである。
Referring to FIG. 12, first, the
次に、余白検出部31は、ライン番号nを1に設定する(ステップS53)。次いで、余白検出部31は、読取画像データP1中の最初のライン画像L(1)を読み出し(ステップS54)、この最初のライン画像L(1)を対象ラインとする(ステップS55)。たとえば、用紙幅Lxが、600dpiで4960ドットに相当する210mmである場合、各ライン画像L(n)の画素数は4960画素となる。
Next, the
続けて、余白検出部31は、読取画像データP1中の2番目ライン画像L(2)を読み出し(ステップS56)、この2番目ライン画像L(2)と対象ラインとに画素ごとの論理和演算を施して論理和ライン画像ALを生成する(ステップS57)。次いで、2番目ライン画像L(2)が最終ラインでは無い場合は(ステップS58のNO)、余白検出部31は、ステップS57で生成された論理和ライン画像ALを対象ラインとし(ステップS59)、ライン番号nを1だけインクリメントする(ステップS60)。その後、余白検出部31は、ステップS56,S57を実行する。
Subsequently, the
ステップS58で(n+1)番目ライン画像L(n+1)が最終ラインであると判定されるまで、ステップS58,S57は繰り返し実行される。最終的に(n+1)番目ライン画像L(n+1)が最終ラインであると判定されたとき(ステップS58のYES)、余白検出部31は、論理和ライン画像を探索して、この論理和ライン画像において連続する「0」の値を持つ画素領域すなわち余白領域を探す(ステップS61)。余白領域が存在しない場合(ステップS62のNO)、余白検出処理は終了する。
Steps S58 and S57 are repeatedly executed until it is determined in step S58 that the (n + 1) th line image L (n + 1) is the last line. When it is finally determined that the (n + 1) -th line image L (n + 1) is the last line (YES in step S58), the
一方、ステップS62で余白領域が存在すると判定された場合は(ステップS62のYES)、余白検出部31は、当該余白領域に基づいて、余白範囲を定める余白領域情報を作成し(ステップS63)、余白検出処理を終了させる。図15は、余白領域B1,B2,B3の例を示す図である。図15に示されるように、余白検出部31は、1番目〜Nb番目のライン画像L(1)〜L(Nb)に論理和演算を施して論理和ライン画像ALを生成することができる。この論理和ライン画像ALには、「0」の値が連続する余白領域B1,B2,B3が存在する。余白検出部31は、これら余白領域B1,B2,B3のうち「0」の値が多く連続する余白領域B2を抽出し、当該抽出された余白領域B2のx座標開始位置x0及びx座標終了位置x1を余白領域情報のパラメータとして設定することができる(ステップS63)。図15の例では、余白領域B2の余白領域情報が作成される。
On the other hand, if it is determined in step S62 that a margin area exists (YES in step S62), the
図5を参照すると、上記余白検出処理の完了後、主制御部10は、挿入すべき文字列に適した余白範囲が存在しない場合は(ステップS69のNO)、挿入印刷処理を終了させる。このとき、主制御部10は、挿入印刷ができない旨のメッセージを表示部13に表示させてもよい。
Referring to FIG. 5, after the margin detection process is completed, the
一方、挿入すべき文字列に適した余白範囲が存在すると判定された場合(ステップS69のYES)、画像サイズ設定部32は、挿入すべき文字列の画像サイズを設定する(ステップS70)。具体的には、画像サイズ設定部32は、挿入すべき文字列(ページ番号、日付及びユーザ指定の任意の文字列の中から選択された文字列の組み合わせ)全体が当該余白範囲内に挿入可能となるように文字サイズを選択することができる。サイズ設定用の「自動」選択ボタン(図6)が選択状態のとき、画像サイズ設定部32は、たとえば、以下の式(1)に従ってドット数を表す文字サイズSd(単位:ドット)を演算により算出することができる。
Sd=Lb/Nc ・・・(1)
On the other hand, when it is determined that there is a blank range suitable for the character string to be inserted (YES in step S69), the image
Sd = Lb / Nc (1)
ここで、Lbは、余白範囲BA(図14)の横方向サイズ(単位:ドット)であり、Ncは、挿入すべき文字列を構成する文字の数である。 Here, Lb is the horizontal size (unit: dot) of the margin range BA (FIG. 14), and Nc is the number of characters constituting the character string to be inserted.
さらに、画像サイズ設定部32は、以下の式(2)に従って、画素のポイント数を表す文字サイズSp(単位:ポイント)を演算により算出することもできる。
Sp=(Sd/Pr)×α×72 ・・・(2)
Furthermore, the image
Sp = (Sd / Pr) × α × 72 (2)
ここで、Prは、印刷解像度(単位:dpi)であり、αは、変換係数である。また、「72」の係数値は、固定値であるが、印刷解像度Prに応じて適宜変更されてもよい。 Here, Pr is a printing resolution (unit: dpi), and α is a conversion coefficient. The coefficient value of “72” is a fixed value, but may be changed as appropriate according to the printing resolution Pr.
一方、サイズ設定用の「自動」選択ボタン(図6)が非選択状態のときは、画像サイズ設定部32は、図9の詳細設定画面130Dを通じてユーザが指定したポイント数を文字サイズとして選択する(ステップS70)。
On the other hand, when the “auto” selection button for size setting (FIG. 6) is in a non-selected state, the image
次に、配置決定部33は、余白検出部31で検出された余白範囲の配置と画像サイズ設定部32で設定された画像サイズ(文字サイズ)とに基づいて、挿入すべき文字列画像の最適な挿入位置を決定する(ステップS71)。たとえば、配置決定部33は、当該文字列のうちの先頭の文字を表す画像の最適な挿入位置を決定することができる。当該文字列がページ番号の場合には、そのページ番号の最大桁数(たとえば3桁)とnページ目(nは正整数)に挿入すべきページ番号の桁数とを互いに比較し、両者が一致したときは、nページ目に挿入すべきページ番号のうちの先頭の数字を表す画像の配置を左端とし、ページ番号の桁数が最大桁数よりも少ない場合には、当該ページ番号を表す画像の配置をその桁数に合わせて最適な配置(たとえば、右寄りの配置)とすることができる。ページ番号の最大桁数は、上記画像読取処理(図11)の終了時にページカウンタが保持するカウンタ値から算出することができる。
Next, the
その後、主制御部10は、撮像部21で画像が読み取られた記録媒体Stの印刷実行部50への供給をユーザに促すメッセージを表示部13に表示させ(ステップS72)、その後、ユーザによる記録媒体Stの供給があるまで待機する(ステップS73のNO)。記録媒体Stが印刷実行部50の給紙トレイ52に供給されると、主制御部10は、この供給を検知し(ステップS73のYES)、挿入画像生成部40と連携して印刷処理を実行する(ステップS80)。
Thereafter, the
図16は、ステップS80の印刷処理の手順を概略的に示すフローチャートである。付加画像生成部41は、先ず、挿入すべき文字列のデータ(挿入データ)を生成する(ステップS81)。具体的には、付加画像生成部41は、画像サイズ設定部32で設定された文字サイズに応じて、内蔵メモリ(図示せず)に予め記憶された複数の文字データセットの中から適切な文字データセットを選択し、当該選択された文字データセットを用いて挿入データを構成することができる。たとえば、ページ番号の挿入データが生成される場合には、付加画像生成部41は、開始ページ番号(たとえば、「1」)の挿入データを生成する。
FIG. 16 is a flowchart schematically showing the procedure of the printing process in step S80. First, the additional image generating unit 41 generates data of a character string to be inserted (inserted data) (step S81). Specifically, the additional image generation unit 41 selects an appropriate character from a plurality of character data sets stored in advance in a built-in memory (not shown) according to the character size set by the image
なお、画像サイズ設定部32は、内蔵メモリから適切な文字データセットを取得することができないときは、内蔵メモリ中の既存の文字データを加工して適切な文字データを作成してもよい。
Note that when the appropriate character data set cannot be acquired from the internal memory, the image
次に、付加画像生成部41は、ステップS81で生成された挿入データを画像化して文字列画像(付加画像)を生成する(ステップS82)。その後、画像配置部42は、配置決定部33で決定された挿入位置に配置された文字列画像を含む挿入画像データP3を生成する(ステップS83)。そして、主制御部10は、印刷実行部50を制御して、挿入画像データP3で表される印刷画像を原稿上に形成させる(ステップS85)。
Next, the additional image generation unit 41 converts the insertion data generated in step S81 into an image and generates a character string image (additional image) (step S82). Thereafter, the image placement unit 42 generates insertion image data P3 including a character string image placed at the insertion position determined by the placement determination unit 33 (step S83). Then, the
その後、全ページの原稿への印刷処理が完了していない場合(ステップS86のNO)、付加画像生成部41は、次ページの原稿への印刷処理を実行するために挿入データを更新する(ステップS87)。たとえば、ページ番号の挿入データが生成される場合、付加画像生成部41は、次ページのページ番号(たとえば、「2」)の挿入データを生成する。その後、ステップS82,S83,S85が実行される。全ページの原稿への印刷処理が完了したと判定された場合(ステップS86のYES)、印刷処理は終了する。 Thereafter, when the printing process for all pages of the document has not been completed (NO in step S86), the additional image generation unit 41 updates the insertion data to execute the printing process for the document of the next page (step S86). S87). For example, when page number insertion data is generated, the additional image generation unit 41 generates insertion data for the page number (for example, “2”) of the next page. Thereafter, steps S82, S83, and S85 are executed. If it is determined that the printing process for all pages of the document has been completed (YES in step S86), the printing process ends.
以上で図3及び図5の挿入印刷処理(ステップS15)は完了する。 Thus, the insertion printing process (step S15) in FIGS. 3 and 5 is completed.
以上に説明したように、実施の形態1の複合機1では、余白検出部31は、読取画像データP1で表される読取画像の余白範囲を検出し(図5のステップS51)、配置決定部33は、当該検出された余白範囲の配置に基づいて、印刷設定情報で指定されたページ番号などの付加情報を表す付加画像の挿入位置を決定することができる(図5のステップS71)。このため、印刷済み画像を有する記録媒体上に当該印刷済み画像と重なることの無い付加画像を簡便に印刷することができる。
As described above, in the
特に、本実施の形態の複合機1は、複数ページの記録媒体へ追加印刷を行う場合でも、複数ページの記録媒体の全てで共通の余白範囲を自動検出することができるため(図12のステップS52〜S63)、ユーザの負担を大幅に軽減することができる。
In particular, the
また、画像サイズ設定部32は、検出された余白範囲の大きさに基づいて、付加画像の最適な画像サイズを演算により算出することができる(図5のステップS70)。配置決定部33は、検出された余白範囲の大きさとその最適な画像サイズとに基づいて、付加画像の最適な挿入位置を決定することが可能である(図5のステップS71)。これにより、印刷された付加画像の視認性を良好にすることができる。
Further, the image
さらに、ユーザは、印刷済み画像を有する記録媒体を撮像部21にセットし、操作パネル11の表示画面(図4,図6,図7,図9及び図10)に従って操作入力するだけで、その記録媒体の余白範囲に付加画像を追加印刷させることが可能である。しかも、複合機1の動作を制御するホスト機器などの上位装置(たとえば、パーソナル・コンピュータ)が無い状態でも付加画像を簡単に追加印刷することができる。
Further, the user simply sets a recording medium having a printed image on the
特に、ユーザが図7の詳細設定画面130Cを通じて予め上限値ULと下限値LLとを指定して余白対象範囲Stb(図8)を設定することができるため、読取画像生成部22は、この余白対象範囲Stbに対応する局所領域の読取画像データP1を余白検出部31に供給することができる(図11のステップS41〜S49)。このため、余白検出部31は、余白範囲を定める余白領域情報を短時間で算出することができる。
In particular, since the user can set the margin target range Stb (FIG. 8) by specifying the upper limit value UL and the lower limit value LL in advance through the
実施の形態2.
次に、本発明に係る実施の形態2について説明する。図17は、実施の形態2に係る余白検出処理の手順を概略的に示すフローチャートである。本実施の形態の画像形成装置の構成及び動作は、余白検出部31が図12に示した余白検出処理に代えて図17に示す余白検出処理を実行する点を除いて、上記実施の形態1の画像形成装置の構成及び動作と同じである。
Next, a second embodiment according to the present invention will be described. FIG. 17 is a flowchart schematically showing a procedure of margin detection processing according to the second embodiment. The configuration and operation of the image forming apparatus according to the present embodiment are the same as those in the first embodiment except that the
上記実施の形態1では、余白検出処理により、図15に示したように、ライン画像L(1)〜L(Nb)に論理和演算を施して生成された論理和ライン画像ALに基づいて、余白範囲を検出することができる。しかしながら、仮に最初のライン画像L(1)のほとんど全ての画素が「1」の値を有する場合、論理和ライン画像ALのほとんど全ての画素が「1」の値を有することになるため、たとえ2番目以後のライン画像L(2)〜L(Nb)に余白範囲が存在する場合でも、この余白範囲を検出することができないという課題がある。以下に説明するように、本実施の形態に係る余白検出処理はこのような課題を解決することができる。 In the first embodiment, based on the logical sum line image AL generated by performing the logical sum operation on the line images L (1) to L (Nb), as shown in FIG. A margin range can be detected. However, if almost all pixels of the first line image L (1) have a value of “1”, almost all pixels of the logical sum line image AL have a value of “1”. There is a problem that even if a margin range exists in the second and subsequent line images L (2) to L (Nb), this margin range cannot be detected. As described below, the margin detection process according to the present embodiment can solve such a problem.
図17を参照すると、余白検出部31は、先ず、余白領域情報を初期化する(ステップS91)。図18は、余白領域情報を構成するパラメータの例を示す図である。図18に示されるように、余白領域情報は、図13に示した余白領域情報と同様の、y座標開始位置y0、余白ライン数Nb、x座標開始位置x0及びx座標終了位置x1を含む。図18の余白領域情報は、さらに「次の余白情報ポインタ」を含む。「次の余白情報ポインタ」は、複数の余白範囲をそれぞれ定める複数の余白領域情報が生成された場合に、これら複数の余白領域情報間を論理的に結合する情報である。
Referring to FIG. 17, the
次に、余白検出部31は、ライン番号nを1に設定する(ステップS92)。次いで、余白検出部31は、読取画像データP1中の最初のライン画像L(1)を読み出し(ステップS93)、この最初のライン画像L(1)を対象ラインとする(ステップS94)。そして、余白検出部31は、対象ラインを探索して、この対象ラインにおいて連続する「0」の値を持つ画素領域すなわち余白領域を探す(ステップS95)。
Next, the
余白領域が検出されない場合(ステップS96のNO)、余白検出部31は、ライン番号nを1だけインクリメントし(ステップS103)、読取画像データP1中の2番目のライン画像L(2)を読み出し(ステップS93)、ステップS94,S95を繰り返し実行する。
When the margin area is not detected (NO in step S96), the
その後、対象ラインL(n)に余白領域が検出された場合(ステップS96のYES)、余白検出部31は、当該検出された余白領域に対応する余白領域情報(図18)を作成する。たとえば、2番目のライン画像L(2)中に余白領域が初めて検出された場合、y座標開始位置y0は、ライン画像L(2)のy座標値に設定され、余白ライン数Nbは、「1」の値に設定され、x座標開始位置x0及びx座標終了位置x1は、当該余白領域の開始位置及び終了位置のx座標値にそれぞれ設定される。
Thereafter, when a margin area is detected in the target line L (n) (YES in step S96), the
次に、n番目ライン画像が最終ラインでない場合(ステップS98のNO)、余白検出部31は、ライン番号nを1だけインクリメントし(ステップS99)、読取画像データP1中のn番目ライン画像L(n)を読み出す(ステップS100)。そして、余白検出部31は、このn番目ライン画像L(n)と対象ラインL(n−1)とに画素ごとの論理和演算を施して論理和ライン画像ALiを生成し(ステップS101)、この論理和ライン画像ALiを対象ラインとする(ステップS102)。
Next, when the n-th line image is not the final line (NO in step S98), the
その後、ステップS96に戻り、余白検出部31は、対象ラインALiを探索して余白領域を探す(ステップS95)。対象ラインALiに余白領域が検出された場合(ステップS96のYES)、余白検出部31は、当該検出された余白領域に対応する余白領域情報(図18)を更新する(ステップS97)。対象ラインALi中の余白領域は、連続する2つのライン画像L(n),L(n−1)において縦方向(y方向)に余白が連続することを意味する。具体的には、余白検出部31は、ライン画像L(n)について既に作成されている余白領域情報のうち、余白ライン数Nbを更新し、x座標開始位置x0及びx座標終了位置x1を、当該余白領域の開始位置及び終了位置のx座標値にそれぞれ更新する(ステップS97)。
Thereafter, the process returns to step S96, and the
たとえば、最初のライン画像L(1)中に余白領域が検出されず、2番目のライン画像L(2)中に余白領域が初めて検出され、且つ、ライン画像L(2),L(3)に基づいて生成された論理和ラインALi中に余白領域が検出された場合を考える。この場合、2番目のライン画像L(2)中に余白領域が検出されたときに、上記のように余白領域情報が作成される(ステップS97)。その後、論理和ラインALi中に余白領域が検出されたときは、その余白領域情報のうち、余白ライン数Nbが「1」から「2」に更新され、x座標開始位置x0及びx座標終了位置x1は、論理和ラインALi中の余白領域の開始位置及び終了位置のx座標値にそれぞれ更新される(ステップS97)。 For example, a blank area is not detected in the first line image L (1), and a blank area is detected for the first time in the second line image L (2), and the line images L (2) and L (3) are detected. Consider a case where a blank area is detected in the logical sum line ALi generated based on the above. In this case, when a blank area is detected in the second line image L (2), blank area information is created as described above (step S97). Thereafter, when a blank area is detected in the logical sum line ALi, the number Nb of blank lines in the blank area information is updated from “1” to “2”, and the x coordinate start position x0 and the x coordinate end position are updated. x1 is updated to the x-coordinate values of the start position and end position of the blank area in the logical sum line ALi (step S97).
一方、論理和ラインALiである対象ラインに余白領域が検出されない場合(ステップS96のNO)は、当該論理和ラインALiの基となるライン画像L(n),L(n−1)において縦方向(y方向)に余白が連続しないことを意味する。この場合は、余白検出部31は、ライン番号nを1だけインクリメントし(ステップS103)、ステップSS93,S94,S95を繰り返し実行する。
On the other hand, when a blank area is not detected in the target line that is the logical sum line ALi (NO in step S96), the vertical direction in the line images L (n) and L (n−1) that are the basis of the logical sum line ALi. It means that the margin is not continuous in (y direction). In this case, the
ステップS98でn番目ライン画像が最終ラインであると判定されたとき(ステップS98のYES)、余白検出処理は終了する。これにより、余白範囲の数だけ余白領域情報(図18)を得ることができる。 When it is determined in step S98 that the nth line image is the final line (YES in step S98), the blank space detection process ends. Thereby, margin area information (FIG. 18) can be obtained by the number of margin ranges.
以上に説明したように、実施の形態2に係る余白検出処理では、読取画像データP1を構成するライン画像群の中に余白領域を持たないライン画像が存在しても、他のライン画像に存在する余白範囲を確実に検出することができる。 As described above, in the margin detection process according to the second embodiment, even if a line image having no margin area exists in the line image group constituting the read image data P1, it exists in another line image. The margin range to be detected can be reliably detected.
また、余白領域情報が複数個作成された場合、横方向(x方向)及び縦方向(y方向)に分布する矩形状の余白範囲が複数個検出される。余白領域情報同士は、「次の余白情報ポインタ」により論理的にチェインされているため、全ての余白領域情報を辿ることが可能である。よって、これら複数個の余白範囲の中から最適な余白範囲を選択することができる。 When a plurality of margin area information is created, a plurality of rectangular margin ranges distributed in the horizontal direction (x direction) and the vertical direction (y direction) are detected. Since the margin area information is logically chained by the “next margin information pointer”, it is possible to trace all the margin area information. Therefore, an optimum margin range can be selected from the plurality of margin ranges.
実施の形態3.
次に、本発明に係る実施の形態3について説明する。図19は、実施の形態3の画像形成装置である複合機2の概略構成を示すブロック図である。図19に示されるように、この複合機2は、操作パネル11、データ記憶部14、画像読取部20B、画像領域決定部30、合成画像生成部40B及び印刷実行部50を備え、さらに、これら処理ブロック11,14,20B,30,40B,50の動作を個別に制御し得る主制御部10Bを備えている。主制御部10Bは、上記実施の形態1の主制御部10と同じ機能を有し、さらに以下に説明する機能を有している。
Next, a third embodiment according to the present invention will be described. FIG. 19 is a block diagram illustrating a schematic configuration of the
操作パネル11,データ記憶部14及び画像領域決定部30の構成及び動作は、上記実施の形態1の操作パネル11,データ記憶部14及び画像領域決定部30(図1)の構成及び動作と同じであるため、それらの詳細な説明は省略する。
The configuration and operation of
画像読取部20Bは、図19に示されるように、撮像部21、読取画像生成部22及びデータ蓄積部23を有する。図19に示した撮像部21及び読取画像生成部22の構成及び動作は、図1に示した撮像部21及び読取画像生成部22の構成及び動作と同じである。データ蓄積部23は、撮像部21で生成されたデジタル画像データP0を一時的に記憶する機能を有する。
As illustrated in FIG. 19, the
合成画像生成部40Bは、図19に示されるように、付加画像生成部41及び画像合成部43を有する。図19に示した付加画像生成部41の機能は、図1に示した付加画像生成部41の機能と同じである。主制御部10Bは、データ蓄積部23からデジタル画像データP0を読み出して画像合成部43に転送することができる。
As illustrated in FIG. 19, the composite
画像合成部43は、データ蓄積部23から転送されたデジタル画像データP0と付加画像生成部41で生成された付加画像データとを互いに合成して印刷用の合成画像データP4を生成する機能を有する。ここで、付加画像は、合成画像データP4で表される全体画像において配置決定部33で決定された挿入位置に配置される。
The
印刷実行部50は、主制御部10Bの制御を受けて、撮像部21での読取対象となった記録媒体とは別の記録媒体上に、合成画像データP4で表される印刷画像を形成する。
Under the control of the
次に、上記構成を有する複合機2の動作を以下に説明する。
Next, the operation of the
ユーザは、図2に示すようなシート状の記録媒体(被読取媒体)St上の印刷済み画像PTとページ番号などの付加画像との合成画像を、記録媒体Stとは別の記録媒体上に形成したい場合に記録媒体Stを撮像部21にセットする。
The user places a composite image of the printed image PT on the sheet-like recording medium (read medium) St as shown in FIG. 2 and an additional image such as a page number on a recording medium different from the recording medium St. When the recording medium St is desired to be formed, the recording medium St is set in the
主制御部10Bは、挿入印刷処理を除いて、図3のフローチャートの手順に沿った制御を実行する。図20は、本実施の形態に係る挿入印刷処理の手順を概略的に示すフローチャートである。図20のフローチャート中のステップS21,S22,S40,S50,S51,S69,S70,S71の内容は、図5のフローチャート中のステップS21,S22,S40,S50,S51,S69,S70,S71の内容と同じであるため、その詳細な説明を省略する。
The
ステップS71の実行後、主制御部10Bは、合成画像生成部40Bと連携して印刷処理を実行する(ステップS80B)。
After execution of step S71, the
図21は、この印刷処理(ステップS80B)の手順を概略的に示すフローチャートである。ここで、図21のフローチャートの内容は、ステップS84,S85Bを除いて、図16のフローチャートの内容と同じである。 FIG. 21 is a flowchart schematically showing the procedure of the printing process (step S80B). Here, the content of the flowchart of FIG. 21 is the same as the content of the flowchart of FIG. 16 except for steps S84 and S85B.
本実施の形態では、ステップS82で付加情報が画像化された後、画像合成部43は、データ蓄積部23から転送されたデジタル画像データP0と付加画像生成部41で生成された付加画像データとを互いに合成して印刷用の合成画像データP4を生成する(ステップS84)。そして、主制御部10Bは、印刷実行部50を制御して、合成画像データP4で表される印刷画像を原稿上に形成させる(ステップS85B)。
In the present embodiment, after the additional information is imaged in step S82, the
その後、全ページの原稿への印刷処理が完了していない場合(ステップS86のNO)、付加画像生成部41は、次ページの原稿への印刷処理を実行するために挿入データを更新する(ステップS87)。その後、ステップS82,S84,S85Bが実行される。全ページの原稿への印刷処理が完了したと判定された場合(ステップS86のYES)、印刷処理は終了する。 Thereafter, when the printing process for all pages of the document has not been completed (NO in step S86), the additional image generation unit 41 updates the insertion data to execute the printing process for the document of the next page (step S86). S87). Thereafter, steps S82, S84, and S85B are executed. If it is determined that the printing process for all pages of the document has been completed (YES in step S86), the printing process ends.
以上に説明したように、実施の形態3の複合機2では、上記実施の形態1の場合と同様に、余白検出部31は、読取画像データP1で表される読取画像の余白範囲を検出し(図20のステップS51)、配置決定部33は、当該検出された余白範囲の配置に基づいて、印刷設定情報で指定されたページ番号などの付加情報を表す付加画像の挿入位置を決定することができる(図20のステップS71)。本実施の形態では、画像合成部43が合成画像データを生成し(図21のステップS84)、印刷実行部50がその合成画像データで表される印刷画像を記録媒体上に形成する(図21のステップS85B)。よって、印刷済み画像を有する被読取媒体Stとは別の記録媒体上に、当該読取画像の非余白範囲と付加画像とを互いに重複させることなく簡便に印刷することができる。
As described above, in the
これにより、元の原稿である被読取媒体Stをそのまま保存することができるため、仮に印刷設定処理で間違いが発生しても、元の原稿が損なわれることがなく、ユーザは、再度改めて正しい印刷設定処理を実行することができる。また、複数部数の印刷を一度の指示で実行することができるという利点もある。 As a result, the read medium St that is the original document can be stored as it is, so that even if an error occurs in the print setting process, the original document is not damaged, and the user can print again correctly. A setting process can be executed. There is also an advantage that printing of a plurality of copies can be executed with a single instruction.
以上、図面を参照して本発明に係る種々の実施の形態について述べたが、これらは本発明の例示であり、上記以外の様々な形態を採用することもできる。たとえば、上記実施の形態1〜3はいずれも複合機1,2であるが、これに限定されるものではなく、複合機以外の、原稿から画像を読み取る機能と印刷機能とを有する任意の機器に本発明を適用することができる。
Although various embodiments according to the present invention have been described above with reference to the drawings, these are examples of the present invention, and various forms other than the above can be adopted. For example, each of the first to third embodiments is the
また、上記実施の形態1〜3では、付加画像として文字列画像が想定されていたが、文字列画像に限定されるものではなく、文字列以外の付加情報を表す画像を挿入するように上記実施の形態1〜3の構成を変更してもよい。 In the first to third embodiments, a character string image is assumed as the additional image. However, the character string image is not limited to the character string image, and the image representing additional information other than the character string is inserted. You may change the structure of Embodiment 1-3.
また、付加画像データが外部の記憶媒体(不揮発性メモリなど)から読み出されて利用されるように複合機1,2の構成を変更してもよい。たとえば、ユーザが外部の記憶媒体に格納された付加画像データを選択または取得できるように図10の詳細設定画面130Eの構成を変更することができる。
Further, the configuration of the
1,2 複合機(画像形成装置)、 10,10B 主制御部、 11 操作パネル、 12 操作入力部、 13 表示部、 14 データ記憶部、 20,20B 画像読取部、 21 撮像部、 211 イメージセンサ、 212 画像処理部、 22 読取画像生成部、 23 データ蓄積部、 30 画像領域決定部、 31 余白検出部、 32 画像サイズ設定部、 33 配置決定部、 40 挿入画像生成部、 40B 合成画像生成部、 41 付加画像生成部、 42 画像配置部、 43 画像合成部、 50 印刷実行部。
DESCRIPTION OF
Claims (13)
少なくとも1枚の記録媒体上の印刷済み画像の形成領域と該形成領域以外の余白とから読み取られた原画像データに基づいて読取画像データを生成する読取画像生成部と、
前記読取画像データで表される読取画像の余白範囲を検出する余白検出部と、
前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定する配置決定部と、
前記挿入位置に配置された当該付加画像を含む挿入画像データを生成する挿入画像生成部と、
前記挿入画像データで表される印刷画像を前記記録媒体上に形成する印刷実行部と
を備えることを特徴とする画像形成装置。 An operation input unit for receiving print setting information input by a user;
A read image generation unit that generates read image data based on original image data read from a formation area of a printed image on at least one recording medium and a margin other than the formation area;
A margin detection unit for detecting a margin range of the read image represented by the read image data;
An arrangement determining unit that determines an insertion position of an additional image representing additional information specified by the print setting information based on the arrangement of the margin range;
An insertion image generation unit for generating insertion image data including the additional image arranged at the insertion position;
An image forming apparatus comprising: a print execution unit that forms a print image represented by the inserted image data on the recording medium.
少なくとも1枚の被読取媒体上の印刷済み画像の形成領域と該形成領域以外の余白とから読み取られた原画像データに基づいて読取画像データを生成する読取画像生成部と、
前記読取画像データで表される読取画像の余白範囲を検出する余白検出部と、
前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定する配置決定部と、
前記挿入位置を有する当該付加画像を表すデータと前記原画像データとを互いに合成して合成画像データを生成する画像合成部と、
前記合成画像データで表される印刷画像を記録媒体上に形成する印刷実行部と
を備えることを特徴とする画像形成装置。 An operation input unit for receiving print setting information input by a user;
A read image generation unit that generates read image data based on original image data read from a formation region of a printed image on at least one read medium and a blank space other than the formation region;
A margin detection unit for detecting a margin range of the read image represented by the read image data;
An arrangement determining unit that determines an insertion position of an additional image representing additional information specified by the print setting information based on the arrangement of the margin range;
An image composition unit that composes data representing the additional image having the insertion position and the original image data to generate composite image data;
An image forming apparatus comprising: a print execution unit that forms a print image represented by the composite image data on a recording medium.
前記配置決定部は、前記余白範囲の配置に加えて当該設定された画像サイズに基づいて前記挿入位置を決定する
ことを特徴とする画像形成装置。 The image forming apparatus according to claim 1, further comprising an image size setting unit that sets an image size of the additional image based on a size of the margin range.
The image forming apparatus, wherein the arrangement determining unit determines the insertion position based on the set image size in addition to the arrangement of the margin range.
前記印刷設定情報は、余白対象範囲を指定する情報を含み、
前記配置決定部は、前記挿入位置を前記余白対象範囲内に限定する
ことを特徴とする画像形成装置。 The image forming apparatus according to any one of claims 1 to 8,
The print setting information includes information for specifying a margin target range,
The image forming apparatus, wherein the arrangement determining unit limits the insertion position to the margin target range.
少なくとも1枚の記録媒体上の印刷済み画像の形成領域と該形成領域以外の余白とから読み取られた原画像データに基づいて読取画像データを生成するステップと、
前記読取画像データで表される読取画像の余白範囲を検出するステップと、
前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定するステップと、
前記挿入位置に配置された当該付加画像を含む挿入画像データを生成するステップと、
前記挿入画像データで表される印刷画像を前記記録媒体上に形成するステップと
を備えることを特徴とする画像形成制御方法。 An image formation control method using print setting information input by a user.
Generating read image data based on original image data read from a formation region of a printed image on at least one recording medium and a margin other than the formation region;
Detecting a margin range of a read image represented by the read image data;
Determining an insertion position of an additional image representing additional information specified by the print setting information based on the arrangement of the margin range;
Generating insertion image data including the additional image arranged at the insertion position;
And a step of forming a print image represented by the insertion image data on the recording medium.
少なくとも1枚の被読取媒体上の印刷済み画像の形成領域と該形成領域以外の余白領域とから読み取られた原画像データに基づいて読取画像データを生成するステップと、
前記読取画像データで表される読取画像の余白範囲を検出するステップと、
前記余白範囲の配置に基づいて、前記印刷設定情報で指定された付加情報を表す付加画像の挿入位置を決定するステップと、
前記挿入位置を有する当該付加画像を表すデータと前記原画像データとを互いに合成して合成画像データを生成するステップと、
前記合成画像データで表される印刷画像を記録媒体上に形成させるステップと
を備えることを特徴とする画像形成制御方法。 An image formation control method using print setting information input by a user.
Generating read image data based on original image data read from a formation area of a printed image on at least one read medium and a blank area other than the formation area;
Detecting a margin range of a read image represented by the read image data;
Determining an insertion position of an additional image representing additional information specified by the print setting information based on the arrangement of the margin range;
Combining the data representing the additional image having the insertion position and the original image data with each other to generate composite image data;
Forming a print image represented by the composite image data on a recording medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013086518A JP2014212387A (en) | 2013-04-17 | 2013-04-17 | Image forming apparatus and image formation control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013086518A JP2014212387A (en) | 2013-04-17 | 2013-04-17 | Image forming apparatus and image formation control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2014212387A true JP2014212387A (en) | 2014-11-13 |
Family
ID=51931856
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013086518A Pending JP2014212387A (en) | 2013-04-17 | 2013-04-17 | Image forming apparatus and image formation control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2014212387A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017050690A (en) * | 2015-09-01 | 2017-03-09 | コニカミノルタ株式会社 | Image processing apparatus, image editing method, and image editing program |
-
2013
- 2013-04-17 JP JP2013086518A patent/JP2014212387A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2017050690A (en) * | 2015-09-01 | 2017-03-09 | コニカミノルタ株式会社 | Image processing apparatus, image editing method, and image editing program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2007013924A (en) | Image processing apparatus, program and image processing method | |
US20080218816A1 (en) | Image processing apparatus, computer program product, and preview image displaying method | |
JP6021751B2 (en) | Image processing apparatus, image processing method, and program | |
US9223485B2 (en) | Image processing apparatus, image forming apparatus including same, and method for controlling image processing apparatus | |
JP2009033530A (en) | Image forming apparatus | |
JP6332477B2 (en) | Image forming apparatus and method of controlling image forming apparatus | |
JP6662328B2 (en) | Electronic imprinting device | |
JP2014212387A (en) | Image forming apparatus and image formation control method | |
US20090122344A1 (en) | Image processing apparatus and control method thereof | |
TWI656783B (en) | Copying device and copying method capable of correcting copy position | |
JP2019201358A (en) | Image processing apparatus, program, and image processing method | |
JP2019201356A (en) | Image processing apparatus, program, and image processing method | |
US20180084122A1 (en) | Processing device, image forming apparatus, and non-transitory computer readable medium | |
JP2007226350A (en) | Image reading method, program, and image reader | |
JP6787298B2 (en) | Image processing device | |
JP5983264B2 (en) | Control apparatus, image forming apparatus, display method, and control program | |
JP2011166591A (en) | Image forming apparatus and image forming program | |
JP6607042B2 (en) | Image forming apparatus and image forming method | |
JP2014220560A (en) | Image forming apparatus | |
EP3865944B1 (en) | Image forming apparatus, image forming method, and image forming system | |
JP5935376B2 (en) | Copy machine | |
JP4232051B2 (en) | Tiling offset output system | |
JP4803243B2 (en) | Image processing apparatus and image processing program | |
JP2018023022A (en) | Image processing system and image processing method | |
JP2010147655A (en) | Print data generating device |