JP2014212387A - Image forming apparatus and image formation control method - Google Patents

Image forming apparatus and image formation control method Download PDF

Info

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
Application number
JP2013086518A
Other languages
Japanese (ja)
Inventor
昌子 山中
Masako Yamanaka
昌子 山中
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data Corp
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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2013086518A priority Critical patent/JP2014212387A/en
Publication of JP2014212387A publication Critical patent/JP2014212387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/40Means for printing fixed, i.e. unchanging, matter in addition to selectable matter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/12Digital output to print unit, e.g. line printer, chain printer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/38Circuits or arrangements for blanking or otherwise eliminating unwanted parts of pictures

Abstract

PROBLEM TO BE SOLVED: To prevent overlapping of a print image on a recording medium and an additional image in a simple and reliable way.SOLUTION: An image forming apparatus 1 includes: a read image creation unit 22 that creates read image data P1 on the basis of the original image data read from at least one recording medium; a margin detection unit 31 that detects a margin range of the read image represented by the read image data P1; an arrangement determination unit 33 that determines an insertion position of an additional image showing specified additional information on the basis of the arrangement of the margin range; an insertion image creation unit 40 that creates insertion image data P3 including the additional image arranged at the insertion position; and a print execution unit 50 that forms a print image represented by the insertion image data P3 on the recording medium.

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.

特開平7−17113号公報(図3及び段落0017〜0019など)Japanese Patent Laid-Open No. 7-17113 (FIG. 3, paragraphs 0017 to 0019, etc.)

特許文献1に開示されている文書処理装置では、ユーザ指定のページ付け位置に既に印刷画像が形成されている場合には、既存の印刷画像上に重ねてページ番号が印刷されるという問題がある。この問題を回避するには、ユーザは、記録媒体上の既存の印刷画像の位置を予め目視で確認したうえでページ付け位置を慎重に指定するか、あるいは、ページ付け位置の指定とページ番号の試し印刷とを試行錯誤で繰り返して適切なページ付け位置を見つけ出すことが必要である。   In the document processing apparatus disclosed in Patent Document 1, when a print image has already been formed at a user-specified pagination position, there is a problem in that the page number is printed over the existing print image. . In order to avoid this problem, the user carefully checks the position of the existing print image on the recording medium in advance and carefully designates the pagination position, or specifies the pagination position and the page number. It is necessary to repeat trial printing with trial and error to find an appropriate pagination position.

しかしながら、記録媒体上の印刷画像の正確な位置を予め目視で確認する作業は、ユーザにとって負担であり、利便性に欠けるという問題がある。また、ページ付け位置の指定とページ番号の試し印刷とを試行錯誤で繰り返すことも、利便性に欠けると同時に、試し印刷に使用される記録媒体の資源の無駄を招くという問題がある。   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.

本発明に係る実施の形態1の画像形成装置である複合機の概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a multifunction peripheral that is an image forming apparatus according to a first embodiment of the present invention. 実施の形態1の撮像部の構成例を概略的に示す図である。3 is a diagram schematically illustrating a configuration example of an imaging unit according to Embodiment 1. FIG. 実施の形態1の複合機の動作を概略的に示すフローチャートである。3 is a flowchart schematically showing the operation of the multifunction machine of the first embodiment. 実施の形態1の操作パネルに表示された初期画面の一例を示す図である。6 is a diagram illustrating an example of an initial screen displayed on the operation panel according to Embodiment 1. FIG. 実施の形態1に係る挿入印刷処理の手順を概略的に示すフローチャートである。4 is a flowchart schematically showing a procedure of insertion printing processing according to the first embodiment. 操作パネルに表示された初期設定画面の一例を示す図である。It is a figure which shows an example of the initial setting screen displayed on the operation panel. 操作パネルに表示された詳細設定画面の他の例を示す図である。It is a figure which shows the other example of the detailed setting screen displayed on the operation panel. 設定された余白対象範囲の一例を示す図である。It is a figure which shows an example of the set margin object range. 操作パネルに表示された詳細設定画面の他の例を示す図である。It is a figure which shows the other example of the detailed setting screen displayed on the operation panel. 操作パネルに表示された詳細設定画面の他の例を示す図である。It is a figure which shows the other example of the detailed setting screen displayed on the operation panel. 実施の形態1に係る画像読取処理の手順を概略的に示すフローチャートである。3 is a flowchart schematically showing a procedure of image reading processing according to the first embodiment. 実施の形態1に係る余白検出処理の手順を概略的に示すフローチャートである。6 is a flowchart schematically showing a procedure of margin detection processing according to the first embodiment. 実施の形態1で使用される余白領域情報の構成例を示す図である。6 is a diagram illustrating a configuration example of blank area information used in the first embodiment. FIG. 図13の余白領域情報によって定められる余白範囲を表す図である。It is a figure showing the margin range defined by the margin area information of FIG. 余白領域の生成方法の例を示す図である。It is a figure which shows the example of the production | generation method of a blank area | region. 実施の形態1に係る印刷処理の手順を概略的に示すフローチャートである。4 is a flowchart schematically showing a procedure of printing processing according to the first embodiment. 実施の形態2に係る余白検出処理の手順を概略的に示すフローチャートである。10 is a flowchart schematically showing a procedure of margin detection processing according to the second embodiment. 実施の形態1で使用される余白領域情報の構成例を示す図である。6 is a diagram illustrating a configuration example of blank area information used in the first embodiment. FIG. 実施の形態3の画像形成装置である複合機の概略構成を示すブロック図である。FIG. 6 is a block diagram illustrating a schematic configuration of a multifunction peripheral that is an image forming apparatus according to a third embodiment. 実施の形態3に係る挿入印刷処理の手順を概略的に示すフローチャートである。14 is a flowchart schematically showing a procedure of insertion printing processing according to the third embodiment. 実施の形態3に係る印刷処理の手順を概略的に示すフローチャートである。10 is a flowchart schematically showing a procedure of print processing according to the third embodiment.

以下、本発明に係る種々の実施の形態について図面を参照しつつ説明する。   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を備えている。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a schematic configuration of a multifunction machine 1 which is an image forming apparatus according to Embodiment 1 of the present invention. As shown in FIG. 1, the multi function device 1 includes an operation panel 11, a data storage unit 14, an image reading unit 20, an image area determination unit 30, an insertion image generation unit 40, and a print execution unit 50, and further performs these processes. A main control unit 10 capable of individually controlling the operations of the blocks 11, 14, 20, 30, 40, and 50 is provided.

データ記憶部14は、主制御部10により転送されたデータを一時的に記憶する機能を有し、たとえば、データの読み出し速度及び書込み速度が高速なSDRAMなどのメモリを用いて構成され得る。データ記憶部14は、画像読取部20で生成された画像データを記憶するための記憶領域と、画像領域決定部30または挿入画像生成部40で生成または加工されたデータを記憶するための記憶領域とを有する。   The data storage unit 14 has a function of temporarily storing data transferred by the main control unit 10, and may be configured using, for example, a memory such as an SDRAM having a high data reading speed and writing speed. The data storage unit 14 stores a storage area for storing the image data generated by the image reading unit 20 and a storage area for storing the data generated or processed by the image area determination unit 30 or the insertion image generation unit 40. And have.

操作パネル11は、表示部13と、この表示部13にタッチパネル機能を付与する操作入力部12とを有している。表示部13は、液晶表示パネルまたは有機EL表示パネルなどの画像表示デバイスからなる。操作入力部12は、タッチパネル機能に加えて、入力ボタン(図示せず)と、英数字などの符号を入力するための入力キー(図示せず)とを備えている。複合機1のユーザは、表示部13の表示領域に指先または指示具を接触させることで主制御部10に情報を入力することができる。主制御部10は、複合機1に関する各種設定及び指示のための画面を表示部13に表示させたり、複合機1の動作状態を示す画面を表示部13に表示させたりすることが可能である。   The operation panel 11 includes a display unit 13 and an operation input unit 12 that imparts a touch panel function to the display unit 13. The display unit 13 includes an image display device such as a liquid crystal display panel or an organic EL display panel. In addition to the touch panel function, the operation input unit 12 includes an input button (not shown) and an input key (not shown) for inputting a code such as alphanumeric characters. The user of the multi-function device 1 can input information to the main control unit 10 by bringing a fingertip or an indicator into contact with the display area of the display unit 13. The main control unit 10 can cause the display unit 13 to display a screen for various settings and instructions related to the multifunction device 1, and can display a screen indicating the operation state of the multifunction device 1 on the display unit 13. .

画像読取部20は、スキャナ装置である撮像部21と、読取画像生成部22とを有する。撮像部21は、シート状の記録媒体の表面を撮像走査してこの記録媒体上の印刷済み画像を読み取る機能を有する。記録媒体としては、たとえば、用紙、プラスチックフィルム、合成紙もしくは布などのシート状のものが挙げられる。   The image reading unit 20 includes an imaging unit 21 that is a scanner device and a read image generation unit 22. The imaging unit 21 has a function of imaging and scanning the surface of a sheet-like recording medium and reading a printed image on the recording medium. Examples of the recording medium include sheet-like materials such as paper, plastic film, synthetic paper, and cloth.

図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 imaging unit 21. As shown in FIG. 2, the imaging unit 21 performs image processing on the surface of the sheet-like recording medium St and performs signal processing on the analog image signal S0 output from the image sensor 211 to perform multi-step processing. And an image processing unit 212 that generates tone digital image data (original image data) P0. The image sensor 211 can scan an arbitrary range on the recording medium St under the control of the main control unit 10. The imaging unit 21 can also sequentially scan and scan a plurality of continuously supplied recording media St to generate and output digital image data P0 for a plurality of pages. The digital image data P <b> 0 is supplied to either the main control unit 10 or the read image generation unit 22 according to the operation mode of the multifunction machine 1.

なお、本実施の形態では、デジタル画像データP0は、撮像部21から読取画像生成部22に直接出力されるが、この代わりに、主制御部10がデジタル画像データP0をデータ記憶部14に一時的に記憶させた後に、適当なタイミングでデータ記憶部14からデジタル画像データP0を読み出して読取画像生成部22に供給してもよい。   In the present embodiment, the digital image data P0 is directly output from the imaging unit 21 to the read image generation unit 22, but instead, the main control unit 10 temporarily stores the digital image data P0 in the data storage unit 14. After the data is stored, the digital image data P0 may be read from the data storage unit 14 and supplied to the read image generation unit 22 at an appropriate timing.

読取画像生成部22は、デジタル画像データP0を2値化して各画素1ビットの情報量を持つ2値化画像データを生成し、この2値化画像データから読取画像データP1を生成する。ここで、2値化画像データを構成する各画素は印刷時の1ドット(dot)に対応している。2値化画像データを構成する画素は、情報を持つ「1」の値もしくは情報を持たない「0」の値のいずれか一方を有する。   The read image generation unit 22 binarizes the digital image data P0 to generate binary image data having an information amount of 1 bit for each pixel, and generates read image data P1 from the binarized image data. Here, each pixel constituting the binarized image data corresponds to one dot at the time of printing. The pixels constituting the binarized image data have either a value “1” having information or a value “0” having no information.

なお、読取画像生成部22は、デジタル画像データP0に空間フィルタを適用して空間周波数の高いノイズ成分を除去した後に、ノイズ成分除去後のデジタル画像データP0を2値化してもよい。これにより、余白範囲の検出精度を向上させることが可能となる。   The read image generation unit 22 may binarize the digital image data P0 after removing the noise component after applying a spatial filter to the digital image data P0 to remove a noise component having a high spatial frequency. Thereby, it is possible to improve the detection accuracy of the margin range.

主制御部10は、読取画像データP1を画像領域決定部30に転送する。ここで、主制御部10は、読取画像データP1をデータ記憶部14に一時的に記憶させた後に、適当なタイミングでデータ記憶部14から読取画像データP1を読み出して画像領域決定部30に供給してもよい。   The main control unit 10 transfers the read image data P1 to the image area determination unit 30. Here, the main control unit 10 temporarily stores the read image data P1 in the data storage unit 14, and then reads the read image data P1 from the data storage unit 14 at an appropriate timing and supplies the read image data P1 to the image region determination unit 30. May be.

画像領域決定部30は、図1に示されるように、余白検出部31、画像サイズ設定部32及び配置決定部33を有する。余白検出部31は、読取画像データP1で表される読取画像から、何ら情報を持たない画素群が存在する余白範囲を検出する。余白範囲内の全ての画素は「0」の値を有している。   As illustrated in FIG. 1, the image region determination unit 30 includes a margin detection unit 31, an image size setting unit 32, and an arrangement determination unit 33. The margin detection unit 31 detects a margin range in which a pixel group having no information exists from the read image represented by the read image data P1. All the pixels within the margin range have a value of “0”.

画像サイズ設定部32は、余白検出部31で検出された余白範囲の大きさに基づいて、印刷設定情報で指定された付加情報(ページ番号及び日付など)を表す付加画像の画像サイズを設定する。配置決定部33は、余白検出部31で検出された余白範囲の大きさと、画像サイズ設定部32で設定された画像サイズとに基づいて、付加画像の挿入位置を演算により決定する機能を有する。主制御部10は、配置決定部33で決定された挿入位置と画像サイズ設定部32で設定された画像サイズとを示すデータBpを挿入画像生成部40に転送する。   The image size setting unit 32 sets the image size of the additional image representing the additional information (page number, date, etc.) designated by the print setting information based on the size of the margin range detected by the margin detection unit 31. . The arrangement determination unit 33 has a function of determining the insertion position of the additional image by calculation based on the size of the margin range detected by the margin detection unit 31 and the image size set by the image size setting unit 32. The main control unit 10 transfers data Bp indicating the insertion position determined by the arrangement determination unit 33 and the image size set by the image size setting unit 32 to the insertion image generation unit 40.

挿入画像生成部40は、図1に示されるように、付加画像生成部41及び画像配置部42を有する。付加画像生成部41は、ページ番号及び日付などの付加情報を画像化して、画像サイズ設定部32で設定された画像サイズを有する付加画像を生成する。そして、画像配置部42は、配置決定部33で決定された挿入位置に配置された付加画像を含む挿入画像データP3を生成する。   As shown in FIG. 1, the insertion image generation unit 40 includes an additional image generation unit 41 and an image arrangement unit 42. The additional image generation unit 41 images additional information such as a page number and date, and generates an additional image having the image size set by the image size setting unit 32. Then, the image arrangement unit 42 generates the insertion image data P3 including the additional image arranged at the insertion position determined by the arrangement determination unit 33.

主制御部10は、挿入画像データP3を印刷実行部50に転送する。印刷実行部50は、主制御部10の制御を受けて、給紙トレイ52から供給されたシート状の記録媒体St上に挿入画像データP3で表される印刷画像を形成し、その後、記録媒体Stを排出トレイ51に排出する。印刷実行部50としては、たとえば、電子写真方式またはインクジェット方式で動作する印刷機器を使用すればよい。なお、印刷方式は、電子写真方式またはインクジェット方式に限定されるものではない。   The main control unit 10 transfers the insertion image data P3 to the print execution unit 50. Under the control of the main control unit 10, the print execution unit 50 forms a print image represented by the inserted image data P3 on the sheet-like recording medium St supplied from the paper feed tray 52, and then the recording medium St is discharged to the discharge tray 51. As the print execution unit 50, for example, a printing device that operates in an electrophotographic system or an inkjet system may be used. Note that the printing method is not limited to the electrophotographic method or the inkjet method.

主制御部10は、たとえば、CPU(central processing unit)などのマイクロプロセッサ、ROM(Read Only Memory)、RAM(Random Access Memory)及び入出力インタフェースを含む回路で構成することができる。また、読取画像生成部22、画像領域決定部30及び挿入画像生成部40の機能は、ハードウェアで実現されてもよいし、あるいは、マイクロプロセッサにより実行されるコンピュータプログラムで実現されてもよい。   The main control unit 10 can be configured by a circuit including a microprocessor such as a CPU (central processing unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and an input / output interface, for example. The functions of the read image generation unit 22, the image region determination unit 30, and the insertion image generation unit 40 may be realized by hardware or may be realized by a computer program executed by a microprocessor.

次に、上記構成を有する複合機1の動作を以下に説明する。   Next, the operation of the multifunction machine 1 having the above configuration will be described below.

ユーザは、図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 imaging unit 21. As will be described below, the multifunction device 1 automatically detects a blank area where the printed image PT is not formed from the surface of the recording medium St, and additionally prints (inserts) an additional image specified by the user in the blank area. be able to.

図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 multifunction machine 1. FIG. 4 is a diagram illustrating an example of the initial screen 130 </ b> A displayed on the display unit 13 of the operation panel 11. As shown in FIG. 4, the initial screen 130A is provided with a “copy” selection button, a “print” selection button, and an “inserted character print” selection button. The main control unit 10 stands by until the user selects any one of the “copy” selection button, the “print” selection button, and the “inserted character printing” selection button (NO in steps S10, S12, and S14). When the user touches one of the “copy” selection button, the “print” selection button, and the “inserted character printing” selection button with his / her fingertip or pointing tool, the operation input unit 12 detects the region touched by the user. The position information is supplied to the main control unit 10. The main control unit 10 can detect which button is selected based on the position information.

ユーザが「コピー」選択ボタンを選択したとき、主制御部10は、コピー指示有りと判断し(ステップS10のYES)、コピー処理(複写処理)を実行する(ステップS11)。具体的には、撮像部21は、原稿である記録媒体Stの表面を撮像走査してそのデジタル画像データP0を生成し、主制御部10に出力する。主制御部10は、そのデジタル画像データP0を印刷データに変換し、印刷実行部50に転送する。そして、印刷実行部50は、主制御部10の制御を受けて、内部トレイ(図示せず)から取り出された別の記録媒体上に当該印刷データで表される印刷画像を形成する。   When the user selects the “copy” selection button, the main control unit 10 determines that there is a copy instruction (YES in step S10), and executes a copy process (copy process) (step S11). Specifically, the imaging unit 21 captures and scans the surface of the recording medium St that is a document, generates digital image data P0, and outputs the digital image data P0 to the main control unit 10. The main control unit 10 converts the digital image data P0 into print data and transfers it to the print execution unit 50. Then, under the control of the main control unit 10, the print execution unit 50 forms a print image represented by the print data on another recording medium taken out from an internal tray (not shown).

一方、ユーザが「印刷」選択ボタンを選択したときは、主制御部10は、通常印刷の指示有りと判断し(ステップS12のYES)、印刷実行部50にユーザ指定の印刷画像を記録媒体上に形成させる(ステップS13)。   On the other hand, when the user selects the “print” selection button, the main control unit 10 determines that there is an instruction for normal printing (YES in step S12), and prints the user-specified print image on the recording medium to the print execution unit 50. (Step S13).

他方、ユーザが「挿入文字印刷」選択ボタンを選択したとき、主制御部10は、挿入印刷指示有りと判断し(ステップS14のYES)、挿入印刷処理を実行する(ステップS15)。   On the other hand, when the user selects the “inserted character printing” selection button, the main control unit 10 determines that there is an insertion printing instruction (YES in step S14), and executes the insertion printing process (step S15).

図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 main control unit 10 displays an initial setting screen for insertion printing on the display unit 13 (step S21), and executes print setting processing (step S22). . FIG. 6 is a diagram showing an example of the initial setting screen 130B for insertion printing. As shown in FIG. 6, the initial setting screen 130B is provided with items related to “character string” to be inserted (additional printing) and “color”, “position”, and “size” of the “character string”. It has been. In the print setting process in step S22, the user can perform various settings described below by operating the operation panel 11.

先ず、挿入すべき文字列の印刷色については、ユーザは、初期設定画面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 main control unit 10 controls the print execution unit 50 so that the character string is printed at the default print position. To do. The user can release the selected state by touching the area of the “automatic” selection button.

また、ユーザは、初期設定画面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 display unit 13 when the user selects the “detailed setting” selection button. As shown in FIG. 7, the detailed setting screen 130 </ b> C is provided with input boxes for inputting “upper limit value” and “lower limit value” that define the margin target range. After the user touches the display area of the input box to select the input box, the user can input a desired numerical value by pressing the input key of the operation input unit 12. After the input setting is completed, the user can return the screen of the display unit 13 to the initial setting screen 130B of FIG. 6 by selecting the “setting complete” selection button on the detailed setting screen 130C.

図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 upper limit value 20 mm and a lower limit value 5 mm, which are considered to be general, may be set in advance as default values.

たとえば、印刷実行部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 print execution unit 50 has a printing capability of 600 dpi (dot-per-inch), and the recording medium St has a width (Lx) of 210 mm corresponding to about 4960 dots, and a longitudinal length (Ly). Let us consider a case where is 297 mm. When the upper limit value UL is set to 20 mm and the lower limit value LL is set to 5 mm, the length DU between the upper limit position of the margin target range Stb and the upper end of the recording medium St is 277 mm corresponding to about 6543 dots. The length DL between the lower limit position of the margin target range Stb and the upper end of the recording medium St is 292 mm corresponding to about 6897 dots.

なお、本実施の形態では、上限値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 detailed setting screen 130C in FIG. 7 may be changed so that a set of the distance from the left and the distance from the left end can be set.

次に、図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 detailed setting screen 130D displayed on the display unit 13 when the user selects the “detailed setting” selection button. As shown in FIG. 9, the detailed setting screen 130D is provided with an input box for inputting the number of points for determining the size (character size) of each character constituting the character string. The user can input a numerical value by operating the operation input unit 12 after touching the display area of the input box on the detail setting screen 130D to select the input box. After the input setting is completed, the user can return the screen of the display unit 13 to the initial setting screen 130B of FIG. 6 by selecting the “setting completed” selection button on the detailed setting screen 130D. As shown in FIG. 9, 10 points may be set in advance as a default value of a character size considered to be general.

主制御部10は、サイズ設定用の「自動」選択ボタン(図6)が非選択状態のときには、図9の詳細設定画面130Dで指定されたポイント数を有する文字からなる文字列が印刷されるように印刷実行部50を制御する。   When the “automatic” selection button for size setting (FIG. 6) is in a non-selected state, the main control unit 10 prints a character string composed of characters having the number of points designated on the detailed setting screen 130D of FIG. In this manner, the print execution unit 50 is controlled.

次に、図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 detailed setting screen 130E displayed on the display unit 13 when the user selects the “detailed setting” selection button. As shown in FIG. 10, the detailed setting screen 130E includes an input box for inputting a start page number, an input box for inputting a date, and an arbitrary character string other than the page number and date (for example, And an input box for inputting a file name or an owner name. As the default value of the start page number, “1” can be set in advance. Further, the date of the day when the user operates the multifunction device 1 may be automatically input. After the input setting is completed, the user can return the screen of the display unit 13 to the initial setting screen 130B of FIG. 6 by selecting the “setting complete” selection button on the detailed setting screen 130E.

なお、詳細設定画面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 detailed setting screen 130E. Thereby, even if the character string designation is validated by a user's erroneous operation, since there is no registered character string, unintended character string printing can be avoided.

印刷設定が完了した後は、ユーザは、図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 main control unit 10 stores the print setting information in a predetermined storage area of the data storage unit 14. For example, when the user desires to insert a page number (additional printing), the print color is set to black, the range of the insertion position is within a range of 20 mm to 51 mm from the bottom of the paper, the character size is set to 10 points, and the start page number is set. Each can be set to “1”.

主制御部10は、ユーザによる「実行開始」選択ボタンの選択に応じて、画像読取処理(図5のステップS40)を開始する。図11は、ステップS40の画像読取処理の手順を概略的に示すフローチャートである。   The main control unit 10 starts the image reading process (step S40 in FIG. 5) in response to the selection of the “execution start” selection button by the user. FIG. 11 is a flowchart schematically showing the procedure of the image reading process in step S40.

図11を参照すると、主制御部10は、上記印刷設定処理(ステップS22)で設定された余白対象範囲Stbに対応する局所画像データを初期化する(ステップS41)。局所画像データは、各画素1ビットの情報量を持つ2値化画像を表すデータである。各画素は、印刷時の1ドットに対応している。局所画像データの初期化は、当該局所画像データの全ての画素値を「0」に設定することで行われる。   Referring to FIG. 11, the main control unit 10 initializes local image data corresponding to the margin target range Stb set in the print setting process (step S22) (step S41). The local image data is data representing a binarized image having an information amount of 1 bit for each pixel. Each pixel corresponds to one dot at the time of printing. The initialization of the local image data is performed by setting all the pixel values of the local image data to “0”.

次に、主制御部10は、撮像部21を起動させて記録媒体Stからの原稿1ページ分の画像読み取りを指示する(ステップS42)。この指示に応じて、撮像部21は、記録媒体Stを撮像走査し、デジタル画像データ(原画像データ)P0を生成する。   Next, the main control unit 10 activates the imaging unit 21 and instructs the image reading for one page of the document from the recording medium St (step S42). In response to this instruction, the imaging unit 21 captures and scans the recording medium St to generate digital image data (original image data) P0.

読取画像生成部22は、デジタル画像データP0を取得し(ステップS43)、さらにデジタル画像データP0を2値化して2値化画像データを生成する(ステップS44)。ここで、デジタル画像データP0が各画素3色(たとえば、R(赤色),G(緑色)及びB(青色))の情報を持つカラー画像データである場合は、3色それぞれの2値化データを生成し、これら2値化データを画素ごとに論理和演算して2値化画像データを生成すればよい。   The read image generation unit 22 acquires the digital image data P0 (step S43), and further binarizes the digital image data P0 to generate binary image data (step S44). Here, when the digital image data P0 is color image data having information of three colors of each pixel (for example, R (red), G (green), and B (blue)), the binarized data for each of the three colors. And binarized image data may be generated by performing an OR operation on the binarized data for each pixel.

そして、読取画像生成部22は、2値化画像データで表されるページ画像から、余白対象範囲Stbに対応する領域画像データを抽出する(ステップS45)。   Then, the read image generation unit 22 extracts area image data corresponding to the margin target range Stb from the page image represented by the binarized image data (step S45).

次に、読取画像生成部22は、ステップS45で抽出された領域画像データと局所画像データとを論理和演算して論理和画像データを生成する(ステップS46)。具体的には、局所画像データの座標(x,y)での画素値をP(x,y)とし、領域画像データの同一座標(x,y)での画素値をP(x,y)とし、論理和画像データの同一座標(x,y)での画素値をP(x,y)とするとき、画素値P(x,y)と画素値P(x,y)との論理和演算により論理和画像データの画素値P(x,y)が算出される。画素値P(x,y),P(x,y)の少なくとも一方が「1」の値のときは、画素値P(x,y)は「1」の値となり、画素値P(x,y),P(x,y)の両方が「0」の値のときは、画素値P(x,y)は「0」の値となる。 Next, the read image generation unit 22 performs a logical OR operation on the region image data and the local image data extracted in step S45 to generate logical sum image data (step S46). Specifically, the pixel value at the coordinates (x, y) of the local image data is P 1 (x, y), and the pixel value at the same coordinates (x, y) of the region image data is P 2 (x, y). y), and pixel value P 1 (x, y) and pixel value P 2 (x, y) when the pixel value at the same coordinate (x, y) of the logical sum image data is P 3 (x, y). ) To calculate the pixel value P 3 (x, y) of the logical sum image data. When at least one of the pixel values P 1 (x, y) and P 2 (x, y) is a value “1”, the pixel value P 3 (x, y) is a value “1”, and the pixel value P When both 1 (x, y) and P 2 (x, y) have a value of “0”, the pixel value P 3 (x, y) has a value of “0”.

次に、読取画像生成部22は、論理和画像データを局所画像データとすることで局所画像データを更新する(ステップS47)。そして、読取画像生成部22は、全原稿からの画像読み取りが終了しないとき(ステップS48のNO)、ステップS42に処理を移行させる。一方、全原稿からの画像読み取りが終了したときは(ステップS48のYES)、読取画像生成部22は、局所画像データを読取画像データP1として出力する(ステップS49)。ここで、読み取られるべき原稿の枚数が1枚しかないとき、読取画像生成部22は、実質的に領域画像データを読取画像データP1として出力することとなる(ステップS48のYES及びステップS49)。   Next, the read image generation unit 22 updates the local image data by using the logical sum image data as the local image data (step S47). Then, when the image reading from all the originals is not completed (NO in step S48), the read image generating unit 22 shifts the process to step S42. On the other hand, when the image reading from all the originals is completed (YES in step S48), the read image generating unit 22 outputs the local image data as the read image data P1 (step S49). Here, when the number of documents to be read is only one, the read image generation unit 22 substantially outputs the area image data as the read image data P1 (YES in step S48 and step S49).

上記画像読取処理により、全ての原稿に関する画像データの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 main control unit 10 has a page counter (not shown), and this page counter updates the counter value every time the imaging unit 21 reads an image from one document. The total number of documents (total number of pages) can be ascertained from the counter value when the read image reading from all the documents has been completed (YES in step S48).

図5を参照すると、上記画像読取処理が完了した後は、余白検出部31は、挿入データに関するデータを初期化し(ステップS50)、次いで、余白検出処理を実行して読取画像データP1の余白範囲を検出する(ステップS51)。図12は、ステップS51の余白検出処理の手順を概略的に示すフローチャートである。   Referring to FIG. 5, after the image reading process is completed, the margin detection unit 31 initializes data related to the insertion data (step S50), and then executes a margin detection process to perform a margin range of the read image data P1. Is detected (step S51). FIG. 12 is a flowchart schematically showing the procedure of the margin detection process in step S51.

図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 margin detection unit 31 initializes margin area information (step S52). FIG. 13 is a diagram showing an example of parameters constituting the margin area information, and FIG. 14 is a diagram showing a rectangular margin area BA defined by the margin area information of FIG. As shown in FIG. 14, the four corners of the margin range BA in the sheet range Sa are four sets of x coordinate values and y coordinate values (x0, y0), (x1, y0), (x0, y1), (x1). , Y1), respectively. The margin area information in FIG. 13 includes the y coordinate start position y0, the number of lines in the margin range BA (number of margin lines) Nb, the x coordinate start position x0, and the x coordinate end position x1.

次に、余白検出部31は、ライン番号nを1に設定する(ステップS53)。次いで、余白検出部31は、読取画像データP1中の最初のライン画像L(1)を読み出し(ステップS54)、この最初のライン画像L(1)を対象ラインとする(ステップS55)。たとえば、用紙幅Lxが、600dpiで4960ドットに相当する210mmである場合、各ライン画像L(n)の画素数は4960画素となる。   Next, the margin detection unit 31 sets the line number n to 1 (step S53). Next, the margin detection unit 31 reads the first line image L (1) in the read image data P1 (step S54), and sets the first line image L (1) as a target line (step S55). For example, when the paper width Lx is 210 mm corresponding to 4960 dots at 600 dpi, the number of pixels of each line image L (n) is 4960 pixels.

続けて、余白検出部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 margin detection unit 31 reads the second line image L (2) in the read image data P1 (step S56), and performs a logical OR operation for each pixel on the second line image L (2) and the target line. To generate a logical sum line image AL (step S57). Next, when the second line image L (2) is not the final line (NO in step S58), the margin detection unit 31 sets the logical line image AL generated in step S57 as the target line (step S59). The line number n is incremented by 1 (step S60). Thereafter, the margin detection unit 31 executes steps S56 and S57.

ステップ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 margin detection unit 31 searches for the logical sum line image, and this logical sum line image. A pixel area having a continuous value of “0” in FIG. If there is no margin area (NO in step S62), the margin detection process ends.

一方、ステップ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 margin detection unit 31 creates margin area information that defines a margin range based on the margin area (step S63). The margin detection process is terminated. FIG. 15 is a diagram illustrating an example of the margin areas B1, B2, and B3. As shown in FIG. 15, the margin detection unit 31 can generate a logical sum line image AL by performing a logical sum operation on the first to Nb-th line images L (1) to L (Nb). In this logical sum line image AL, there are blank areas B1, B2, B3 in which the value of “0” continues. The blank space detection unit 31 extracts a blank space region B2 having a lot of “0” values among these blank space regions B1, B2, and B3, and extracts the x coordinate start position x0 and the x coordinate end position of the extracted blank space region B2. x1 can be set as a parameter of the margin area information (step S63). In the example of FIG. 15, the margin area information of the margin area B2 is created.

図5を参照すると、上記余白検出処理の完了後、主制御部10は、挿入すべき文字列に適した余白範囲が存在しない場合は(ステップS69のNO)、挿入印刷処理を終了させる。このとき、主制御部10は、挿入印刷ができない旨のメッセージを表示部13に表示させてもよい。   Referring to FIG. 5, after the margin detection process is completed, the main control unit 10 ends the insertion printing process when there is no margin range suitable for the character string to be inserted (NO in step S69). At this time, the main control unit 10 may cause the display unit 13 to display a message indicating that insertion printing cannot be performed.

一方、挿入すべき文字列に適した余白範囲が存在すると判定された場合(ステップ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 size setting unit 32 sets the image size of the character string to be inserted (step S70). Specifically, the image size setting unit 32 can insert the entire character string to be inserted (a combination of a page number, a date, and a character string selected from any user-specified character string) within the margin range. The character size can be selected so that When the “automatic” selection button for size setting (FIG. 6) is in the selected state, the image size setting unit 32 calculates, for example, a character size Sd (unit: dot) representing the number of dots according to the following equation (1). Can be calculated.
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 size setting unit 32 can also calculate a character size Sp (unit: point) representing the number of points of the pixel by calculation according to the following equation (2).
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 size setting unit 32 selects the number of points designated by the user through the detailed setting screen 130D of FIG. 9 as the character size. (Step S70).

次に、配置決定部33は、余白検出部31で検出された余白範囲の配置と画像サイズ設定部32で設定された画像サイズ(文字サイズ)とに基づいて、挿入すべき文字列画像の最適な挿入位置を決定する(ステップS71)。たとえば、配置決定部33は、当該文字列のうちの先頭の文字を表す画像の最適な挿入位置を決定することができる。当該文字列がページ番号の場合には、そのページ番号の最大桁数(たとえば3桁)とnページ目(nは正整数)に挿入すべきページ番号の桁数とを互いに比較し、両者が一致したときは、nページ目に挿入すべきページ番号のうちの先頭の数字を表す画像の配置を左端とし、ページ番号の桁数が最大桁数よりも少ない場合には、当該ページ番号を表す画像の配置をその桁数に合わせて最適な配置(たとえば、右寄りの配置)とすることができる。ページ番号の最大桁数は、上記画像読取処理(図11)の終了時にページカウンタが保持するカウンタ値から算出することができる。   Next, the arrangement determination unit 33 determines the optimum character string image to be inserted based on the arrangement of the margin range detected by the margin detection unit 31 and the image size (character size) set by the image size setting unit 32. An appropriate insertion position is determined (step S71). For example, the arrangement determining unit 33 can determine the optimum insertion position of an image representing the first character in the character string. If the character string is a page number, the maximum number of digits of the page number (for example, 3 digits) and the number of digits of the page number to be inserted in the nth page (n is a positive integer) are compared with each other. When they match, the arrangement of the image representing the first digit of the page number to be inserted on the nth page is the left end, and when the number of digits of the page number is less than the maximum number of digits, the page number is represented. The arrangement of the images can be set to an optimum arrangement (for example, an arrangement on the right side) according to the number of digits. The maximum number of digits of the page number can be calculated from the counter value held by the page counter at the end of the image reading process (FIG. 11).

その後、主制御部10は、撮像部21で画像が読み取られた記録媒体Stの印刷実行部50への供給をユーザに促すメッセージを表示部13に表示させ(ステップS72)、その後、ユーザによる記録媒体Stの供給があるまで待機する(ステップS73のNO)。記録媒体Stが印刷実行部50の給紙トレイ52に供給されると、主制御部10は、この供給を検知し(ステップS73のYES)、挿入画像生成部40と連携して印刷処理を実行する(ステップS80)。   Thereafter, the main control unit 10 causes the display unit 13 to display a message for prompting the user to supply the recording medium St on which the image has been read by the imaging unit 21 to the printing execution unit 50 (step S72), and then recording by the user. Wait until the medium St is supplied (NO in step S73). When the recording medium St is supplied to the paper feed tray 52 of the print execution unit 50, the main control unit 10 detects this supply (YES in step S73) and executes print processing in cooperation with the insertion image generation unit 40. (Step S80).

図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 size setting unit 32. A data set can be selected and insertion data can be constructed using the selected character data set. For example, when page number insertion data is generated, the additional image generation unit 41 generates insertion data of a start page number (for example, “1”).

なお、画像サイズ設定部32は、内蔵メモリから適切な文字データセットを取得することができないときは、内蔵メモリ中の既存の文字データを加工して適切な文字データを作成してもよい。   Note that when the appropriate character data set cannot be acquired from the internal memory, the image size setting unit 32 may process the existing character data in the internal memory to create appropriate character data.

次に、付加画像生成部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 main control unit 10 controls the print execution unit 50 to form a print image represented by the insertion image data P3 on the document (step S85).

その後、全ページの原稿への印刷処理が完了していない場合(ステップ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 multi function device 1 according to the first embodiment, the margin detection unit 31 detects the margin range of the read image represented by the read image data P1 (step S51 in FIG. 5), and the arrangement determination unit. 33 can determine the insertion position of the additional image representing the additional information such as the page number specified by the print setting information based on the detected margin range arrangement (step S71 in FIG. 5). Therefore, it is possible to easily print an additional image that does not overlap the printed image on a recording medium having the printed image.

特に、本実施の形態の複合機1は、複数ページの記録媒体へ追加印刷を行う場合でも、複数ページの記録媒体の全てで共通の余白範囲を自動検出することができるため(図12のステップS52〜S63)、ユーザの負担を大幅に軽減することができる。   In particular, the MFP 1 according to the present embodiment can automatically detect a common margin range in all of the recording media of a plurality of pages even when additional printing is performed on the recording media of a plurality of pages (step of FIG. 12). S52 to S63), the burden on the user can be greatly reduced.

また、画像サイズ設定部32は、検出された余白範囲の大きさに基づいて、付加画像の最適な画像サイズを演算により算出することができる(図5のステップS70)。配置決定部33は、検出された余白範囲の大きさとその最適な画像サイズとに基づいて、付加画像の最適な挿入位置を決定することが可能である(図5のステップS71)。これにより、印刷された付加画像の視認性を良好にすることができる。   Further, the image size setting unit 32 can calculate the optimum image size of the additional image based on the size of the detected margin range (step S70 in FIG. 5). The arrangement determining unit 33 can determine the optimum insertion position of the additional image based on the detected size of the margin range and the optimum image size (step S71 in FIG. 5). Thereby, the visibility of the printed additional image can be made favorable.

さらに、ユーザは、印刷済み画像を有する記録媒体を撮像部21にセットし、操作パネル11の表示画面(図4,図6,図7,図9及び図10)に従って操作入力するだけで、その記録媒体の余白範囲に付加画像を追加印刷させることが可能である。しかも、複合機1の動作を制御するホスト機器などの上位装置(たとえば、パーソナル・コンピュータ)が無い状態でも付加画像を簡単に追加印刷することができる。   Further, the user simply sets a recording medium having a printed image on the imaging unit 21 and inputs an operation according to the display screen of the operation panel 11 (FIGS. 4, 6, 7, 9, and 10). It is possible to additionally print an additional image in the margin area of the recording medium. In addition, additional images can be easily additionally printed even without a host device (for example, a personal computer) such as a host device that controls the operation of the multifunction device 1.

特に、ユーザが図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 detailed setting screen 130C of FIG. The read image data P1 of the local area corresponding to the target range Stb can be supplied to the margin detection unit 31 (steps S41 to S49 in FIG. 11). For this reason, the margin detection unit 31 can calculate the margin area information that defines the margin range in a short time.

実施の形態2.
次に、本発明に係る実施の形態2について説明する。図17は、実施の形態2に係る余白検出処理の手順を概略的に示すフローチャートである。本実施の形態の画像形成装置の構成及び動作は、余白検出部31が図12に示した余白検出処理に代えて図17に示す余白検出処理を実行する点を除いて、上記実施の形態1の画像形成装置の構成及び動作と同じである。
Embodiment 2. FIG.
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 margin detection unit 31 executes the margin detection process shown in FIG. 17 instead of the margin detection process shown in FIG. The configuration and operation of this image forming apparatus are the same.

上記実施の形態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 margin detection unit 31 first initializes margin area information (step S91). FIG. 18 is a diagram illustrating an example of parameters constituting the margin area information. As shown in FIG. 18, the blank area information includes the y coordinate start position y0, the number of blank lines Nb, the x coordinate start position x0, and the x coordinate end position x1, similar to the blank area information shown in FIG. The margin area information in FIG. 18 further includes a “next margin information pointer”. The “next margin information pointer” is information for logically connecting the plurality of margin area information when a plurality of margin area information respectively defining a plurality of margin ranges is generated.

次に、余白検出部31は、ライン番号nを1に設定する(ステップS92)。次いで、余白検出部31は、読取画像データP1中の最初のライン画像L(1)を読み出し(ステップS93)、この最初のライン画像L(1)を対象ラインとする(ステップS94)。そして、余白検出部31は、対象ラインを探索して、この対象ラインにおいて連続する「0」の値を持つ画素領域すなわち余白領域を探す(ステップS95)。   Next, the margin detection unit 31 sets the line number n to 1 (step S92). Next, the margin detection unit 31 reads the first line image L (1) in the read image data P1 (step S93), and sets the first line image L (1) as a target line (step S94). Then, the margin detection unit 31 searches for the target line and searches for a pixel region having a continuous value of “0” in this target line, that is, a margin region (step S95).

余白領域が検出されない場合(ステップ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 margin detection unit 31 increments the line number n by 1 (step S103), and reads the second line image L (2) in the read image data P1 ( Steps S93) and S94, S95 are repeatedly executed.

その後、対象ライン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 margin detection unit 31 creates margin area information (FIG. 18) corresponding to the detected margin area. For example, when a blank area is detected for the first time in the second line image L (2), the y coordinate start position y0 is set to the y coordinate value of the line image L (2), and the number of blank lines Nb is “ The x-coordinate start position x0 and the x-coordinate end position x1 are set to the x-coordinate values of the start position and end position of the blank area, respectively.

次に、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 margin detection unit 31 increments the line number n by 1 (step S99), and the n-th line image L (in the read image data P1) ( n) is read (step S100). Then, the margin detection unit 31 performs a logical sum operation for each pixel on the nth line image L (n) and the target line L (n−1) to generate a logical sum line image ALi (step S101). The logical line image ALi is set as a target line (step S102).

その後、ステップ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 margin detection unit 31 searches the target line ALi for a margin area (step S95). When a margin area is detected in the target line ALi (YES in step S96), the margin detection unit 31 updates the margin area information (FIG. 18) corresponding to the detected margin area (step S97). The margin area in the target line ALi means that the margin is continuous in the vertical direction (y direction) in two continuous line images L (n) and L (n−1). Specifically, the margin detection unit 31 updates the number Nb of margin lines in the margin area information already created for the line image L (n), and sets the x coordinate start position x0 and the x coordinate end position x1. The x-coordinate values of the start position and end position of the margin area are updated (step S97).

たとえば、最初のライン画像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 margin detection unit 31 increments the line number n by 1 (step S103) and repeatedly executes steps SS93, S94, and S95.

ステップ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と同じ機能を有し、さらに以下に説明する機能を有している。
Embodiment 3 FIG.
Next, a third embodiment according to the present invention will be described. FIG. 19 is a block diagram illustrating a schematic configuration of the multifunction machine 2 that is the image forming apparatus according to the third embodiment. As shown in FIG. 19, the multifunction device 2 includes an operation panel 11, a data storage unit 14, an image reading unit 20 </ b> B, an image area determination unit 30, a composite image generation unit 40 </ b> B, and a print execution unit 50. A main control unit 10B capable of individually controlling the operations of the processing blocks 11, 14, 20B, 30, 40B, and 50 is provided. The main control unit 10B has the same function as the main control unit 10 of the first embodiment, and further has the functions described below.

操作パネル11,データ記憶部14及び画像領域決定部30の構成及び動作は、上記実施の形態1の操作パネル11,データ記憶部14及び画像領域決定部30(図1)の構成及び動作と同じであるため、それらの詳細な説明は省略する。   The configuration and operation of operation panel 11, data storage unit 14, and image region determination unit 30 are the same as the configuration and operation of operation panel 11, data storage unit 14, and image region determination unit 30 (FIG. 1) of the first embodiment. Therefore, detailed description thereof will be omitted.

画像読取部20Bは、図19に示されるように、撮像部21、読取画像生成部22及びデータ蓄積部23を有する。図19に示した撮像部21及び読取画像生成部22の構成及び動作は、図1に示した撮像部21及び読取画像生成部22の構成及び動作と同じである。データ蓄積部23は、撮像部21で生成されたデジタル画像データP0を一時的に記憶する機能を有する。   As illustrated in FIG. 19, the image reading unit 20 </ b> B includes an imaging unit 21, a read image generation unit 22, and a data storage unit 23. The configurations and operations of the imaging unit 21 and the read image generation unit 22 illustrated in FIG. 19 are the same as the configurations and operations of the imaging unit 21 and the read image generation unit 22 illustrated in FIG. The data storage unit 23 has a function of temporarily storing the digital image data P0 generated by the imaging unit 21.

合成画像生成部40Bは、図19に示されるように、付加画像生成部41及び画像合成部43を有する。図19に示した付加画像生成部41の機能は、図1に示した付加画像生成部41の機能と同じである。主制御部10Bは、データ蓄積部23からデジタル画像データP0を読み出して画像合成部43に転送することができる。   As illustrated in FIG. 19, the composite image generation unit 40B includes an additional image generation unit 41 and an image composition unit 43. The function of the additional image generation unit 41 illustrated in FIG. 19 is the same as the function of the additional image generation unit 41 illustrated in FIG. The main control unit 10 </ b> B can read the digital image data P <b> 0 from the data storage unit 23 and transfer it to the image composition unit 43.

画像合成部43は、データ蓄積部23から転送されたデジタル画像データP0と付加画像生成部41で生成された付加画像データとを互いに合成して印刷用の合成画像データP4を生成する機能を有する。ここで、付加画像は、合成画像データP4で表される全体画像において配置決定部33で決定された挿入位置に配置される。   The image composition unit 43 has a function of synthesizing the digital image data P0 transferred from the data storage unit 23 and the additional image data generated by the additional image generation unit 41 to generate composite image data P4 for printing. . Here, the additional image is arranged at the insertion position determined by the arrangement determining unit 33 in the entire image represented by the composite image data P4.

印刷実行部50は、主制御部10Bの制御を受けて、撮像部21での読取対象となった記録媒体とは別の記録媒体上に、合成画像データP4で表される印刷画像を形成する。   Under the control of the main control unit 10B, the print execution unit 50 forms a print image represented by the composite image data P4 on a recording medium different from the recording medium to be read by the imaging unit 21. .

次に、上記構成を有する複合機2の動作を以下に説明する。   Next, the operation of the multifunction device 2 having the above configuration will be described below.

ユーザは、図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 imaging unit 21.

主制御部10Bは、挿入印刷処理を除いて、図3のフローチャートの手順に沿った制御を実行する。図20は、本実施の形態に係る挿入印刷処理の手順を概略的に示すフローチャートである。図20のフローチャート中のステップS21,S22,S40,S50,S51,S69,S70,S71の内容は、図5のフローチャート中のステップS21,S22,S40,S50,S51,S69,S70,S71の内容と同じであるため、その詳細な説明を省略する。   The main control unit 10B executes control according to the flowchart of FIG. 3 except for the insertion printing process. FIG. 20 is a flowchart schematically showing the procedure of the insertion printing process according to the present embodiment. The contents of steps S21, S22, S40, S50, S51, S69, S70, S71 in the flowchart of FIG. 20 are the contents of steps S21, S22, S40, S50, S51, S69, S70, S71 in the flowchart of FIG. Therefore, detailed description thereof is omitted.

ステップS71の実行後、主制御部10Bは、合成画像生成部40Bと連携して印刷処理を実行する(ステップS80B)。   After execution of step S71, the main control unit 10B executes print processing in cooperation with the composite image generation unit 40B (step S80B).

図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 image composition unit 43 transmits the digital image data P0 transferred from the data storage unit 23 and the additional image data generated by the additional image generation unit 41. Are combined with each other to generate combined image data P4 for printing (step S84). Then, the main control unit 10B controls the print execution unit 50 to form a print image represented by the composite image data P4 on the document (step S85B).

その後、全ページの原稿への印刷処理が完了していない場合(ステップ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 MFP 2 according to the third embodiment, the margin detection unit 31 detects the margin range of the read image represented by the read image data P1, as in the first embodiment. (Step S51 in FIG. 20), the arrangement determining unit 33 determines the insertion position of the additional image representing additional information such as the page number specified by the print setting information, based on the detected arrangement of the margin range. (Step S71 in FIG. 20). In the present embodiment, the image composition unit 43 generates composite image data (step S84 in FIG. 21), and the print execution unit 50 forms a print image represented by the composite image data on the recording medium (FIG. 21). Step S85B). Therefore, the non-blank area of the read image and the additional image can be easily printed on a recording medium different from the read medium St having the printed image without overlapping each other.

これにより、元の原稿である被読取媒体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 multi-function device 1 or 2, but is not limited to this, and any device other than the multi-function device having a function of reading an image from a document and a printing function. The present invention can be applied to.

また、上記実施の形態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 MFPs 1 and 2 may be changed so that the additional image data is read from an external storage medium (nonvolatile memory or the like) and used. For example, the configuration of the detail setting screen 130E in FIG. 10 can be changed so that the user can select or obtain additional image data stored in an external storage medium.

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 SYMBOLS 1, 2 Multi-function device (image forming apparatus) 10, 10B Main control part, 11 Operation panel, 12 Operation input part, 13 Display part, 14 Data storage part, 20, 20B Image reading part, 21 Imaging part, 211 Image sensor , 212 image processing unit, 22 read image generation unit, 23 data storage unit, 30 image area determination unit, 31 margin detection unit, 32 image size setting unit, 33 arrangement determination unit, 40 insertion image generation unit, 40B composite image generation unit 41 additional image generation unit, 42 image arrangement unit, 43 image composition unit, 50 print execution unit.

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.
請求項1または2に記載の画像形成装置であって、前記読取画像生成部は、前記原画像データを2値化画像データに変換し、前記2値化画像データから前記読取画像データを生成することを特徴とする画像形成装置。   3. The image forming apparatus according to claim 1, wherein the read image generation unit converts the original image data into binarized image data, and generates the read image data from the binarized image data. An image forming apparatus. 請求項3に記載の画像形成装置であって、前記読取画像生成部は、前記2値化画像データから余白画像領域を含む局所画像を抽出し、前記局所画像を表す画像データを前記読取画像データとして出力することを特徴とする画像形成装置。   4. The image forming apparatus according to claim 3, wherein the read image generation unit extracts a local image including a blank image region from the binarized image data, and sets image data representing the local image as the read image data. Output as an image forming apparatus. 請求項3に記載の画像形成装置であって、前記読取画像生成部は、前記2値化画像データが複数枚のページ画像を表すデータであるとき、前記複数枚のページ画像の各々から余白画像領域を含む局所画像を抽出し、前記複数枚のページ画像からそれぞれ抽出された複数の当該局所画像に論理和演算を施して論理和画像を生成し、前記論理和画像を表す画像データを前記読取画像データとして出力することを特徴とする画像形成装置。   4. The image forming apparatus according to claim 3, wherein when the binarized image data is data representing a plurality of page images, the read image generation unit generates a blank image from each of the plurality of page images. A local image including a region is extracted, a logical sum operation is performed on the plurality of local images extracted from the plurality of page images, and a logical sum image is generated. Image data representing the logical sum image is read. An image forming apparatus that outputs the image data. 請求項5に記載の画像形成装置であって、前記余白検出部は、前記複数枚のページ画像の全てで余白をなす共通範囲を前記余白範囲として検出し、前記余白範囲内で前記挿入位置を決定することを特徴とする画像形成装置。   6. The image forming apparatus according to claim 5, wherein the margin detection unit detects a common range that forms a margin in all of the plurality of page images as the margin range, and the insertion position is determined within the margin range. An image forming apparatus characterized by determining. 請求項5または6に記載の画像形成装置であって、前記余白検出部は、前記論理和画像を構成する複数のライン画像に論理和演算を施して論理和ラインを生成し、前記論理和ラインから前記共通範囲を検出することを特徴とする画像形成装置。   7. The image forming apparatus according to claim 5, wherein the margin detection unit performs a logical sum operation on a plurality of line images constituting the logical sum image to generate a logical sum line, and the logical sum line. And detecting the common range. 請求項1から7のうちのいずれか1項に記載の画像形成装置であって、前記余白範囲の大きさに基づいて前記付加画像の画像サイズを設定する画像サイズ設定部をさらに備え、
前記配置決定部は、前記余白範囲の配置に加えて当該設定された画像サイズに基づいて前記挿入位置を決定する
ことを特徴とする画像形成装置。
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.
請求項1から8のうちのいずれか1項に記載の画像形成装置であって、
前記印刷設定情報は、余白対象範囲を指定する情報を含み、
前記配置決定部は、前記挿入位置を前記余白対象範囲内に限定する
ことを特徴とする画像形成装置。
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.
請求項9に記載の画像形成装置であって、前記印刷設定情報は、前記余白対象範囲を定める上限値及び下限値の組を含むことを特徴とする画像形成装置。   The image forming apparatus according to claim 9, wherein the print setting information includes a set of an upper limit value and a lower limit value that define the margin target range. 請求項1から10のうちのいずれか1項に記載の画像形成装置であって、前記記録媒体の表面を撮像走査して前記原画像データを表す画像信号を出力する撮像部をさらに備えることを特徴とする画像形成装置。   11. The image forming apparatus according to claim 1, further comprising an imaging unit configured to image-scan the surface of the recording medium and output an image signal representing the original image data. An image forming apparatus. 利用者により操作入力された印刷設定情報を用いた画像形成制御方法であって、
少なくとも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.
JP2013086518A 2013-04-17 2013-04-17 Image forming apparatus and image formation control method Pending JP2014212387A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (1)

* Cited by examiner, † Cited by third party
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