JP7250526B2 - Image processing device, program, image processing method - Google Patents

Image processing device, program, image processing method Download PDF

Info

Publication number
JP7250526B2
JP7250526B2 JP2019001956A JP2019001956A JP7250526B2 JP 7250526 B2 JP7250526 B2 JP 7250526B2 JP 2019001956 A JP2019001956 A JP 2019001956A JP 2019001956 A JP2019001956 A JP 2019001956A JP 7250526 B2 JP7250526 B2 JP 7250526B2
Authority
JP
Japan
Prior art keywords
image
area
target area
document
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2019001956A
Other languages
Japanese (ja)
Other versions
JP2019161639A5 (en
JP2019161639A (en
Inventor
崇 宮内
悠太郎 鎌田
直樹 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to US16/295,936 priority Critical patent/US10896012B2/en
Publication of JP2019161639A publication Critical patent/JP2019161639A/en
Publication of JP2019161639A5 publication Critical patent/JP2019161639A5/ja
Application granted granted Critical
Publication of JP7250526B2 publication Critical patent/JP7250526B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、スキャン画像内に含まれる原稿画像の一部をリピート対象画像とし、該リピート対象画像が1枚の記録紙内に繰り返し配置されて印刷されるようにするイメージリピート処理に関するものである。 The present invention relates to image repeat processing in which a portion of a document image included in a scanned image is set as a repeat target image, and the repeat target image is repeatedly arranged and printed on one sheet of recording paper. .

複写機や複合機等の画像形成装置には、イメージリピート印刷の機能を備えるものがある。このイメージリピート印刷は、スキャナで読取った一枚の原稿の画像(原稿画像)の一部をリピート対象画像とし、当該リピート対象画像を繰り返し配置して一枚の記録紙上に印刷する機能である。特許文献1には、繰り返し配置したときに隣接するリピート対象画像間に余白を付加するかどうかをユーザが選択可能にすることや、縦方向のリピート回数と横方向のリピート回数をユーザが設定可能にすることなどが開示されている。 2. Description of the Related Art Some image forming apparatuses such as copiers and multifunction machines have an image repeat printing function. This image repeat printing is a function in which a part of an image of one document read by a scanner (original image) is set as a repeat target image, and the repeat target image is repeatedly arranged and printed on one sheet of recording paper. In Patent Document 1, the user can select whether or not to add a margin between adjacent repeat target images when repeatedly arranged, and the user can set the number of repeats in the vertical direction and the number of repeats in the horizontal direction. It is disclosed that

特許文献2には、スキャナで読み取った画像を表示し、当該表示された画像上でユーザが四角形の枠の頂点を指定し、当該四角形の枠に対応する部分をくりぬき、当該くりぬき画像をリピート対象画像として繰り返し配置して印刷することが記載されている。 In Patent Document 2, an image read by a scanner is displayed, the user designates the vertex of a rectangular frame on the displayed image, cuts out the portion corresponding to the rectangular frame, and repeats the cutout image. It is described that the image is repeatedly arranged and printed.

特開2004-248262号公報JP-A-2004-248262 特開2011-055131号公報JP 2011-055131 A

一方、スキャナの原稿台に置いた原稿をスキャンする際に、スキャナの原稿サイズ検知用センサーで原稿サイズを検知できない場合などは、原稿台全体をスキャン対象として、原稿台と同じサイズのスキャン画像を取得することになる。このようにして得たスキャン画像に対して特許文献2の技術を適用した場合、原稿台全体と同じサイズのスキャン画像を表示し、ユーザは当該表示されたスキャン画像の中から所望の領域を選択することになる。しかしながら、原稿台に置いた原稿のサイズが例えば名刺サイズであった場合、原稿台のサイズ(例えばA3サイズ)に比べてかなり小さい。したがって、原稿台と同じサイズのスキャン画像(例えばA3サイズの画像)の全体が画面内に表示されるようにした場合、当該スキャン画像内に含まれる名刺サイズの領域は小さく表示されてしまい、ユーザはリピート対象にしたい領域を正確に指定するのが難しくなってしまう。また、スキャン画像の全体を画面に表示した後、ユーザのマニュアル操作に基づき指定された箇所を拡大表示してからリピート対象領域を指定する形態も考えられるが、その場合、ユーザが所望の箇所を拡大表示操作をする必要があり、手間がかかってしまう。 On the other hand, when scanning a document placed on the platen of the scanner, if the size of the document cannot be detected by the scanner's document size detection sensor, the entire platen can be scanned and a scanned image of the same size as the platen will be scanned. will get. When the technique of Patent Document 2 is applied to the scanned image thus obtained, the scanned image of the same size as the entire platen is displayed, and the user selects a desired area from the displayed scanned image. will do. However, if the size of the document placed on the platen is, for example, a business card size, it is considerably smaller than the size of the platen (for example, A3 size). Therefore, if the entire scanned image of the same size as the platen (for example, an A3-sized image) is displayed on the screen, the business card-sized area included in the scanned image will be displayed small. makes it difficult to specify exactly the region you want to repeat. In addition, after displaying the entire scanned image on the screen, it is also conceivable to specify the repeat target area after enlarging and displaying the specified portion based on the user's manual operation. It is necessary to perform an enlarged display operation, which takes time and effort.

上記課題を解決するために、本発明の画像処理装置は、スキャン画像に対して画像解析処理を実行することにより原稿領域を検出し、当該検出した原稿領域に基づいて傾き補正を実行することにより傾き補正後の原稿画像を得る検出手段と、前記検出手段で得られた前記傾き補正後の原稿画像が所定の条件を満たすか否か判定する判定手段と、前記検出手段で得られた前記傾き補正後の原稿画像と、処理対象領域を示す枠とを表示するための対象領域指定画面を表示する第1の表示手段と、前記対象領域指定画面に表示されている前記枠により示される処理対象領域に対応する画像を、指定された用紙サイズ内に繰り返しレイアウトすることにより、リピートレイアウト処理後の出力画像を作成する処理手段と、前記リピートレイアウト処理後の出力画像のプレビュー画像を含むプレビュー画面を表示する第2の表示手段と、を備え、前記第1の表示手段により前記対象領域指定画面に表示される前記枠は、前記検出手段により検出された原稿領域に対応する、前記傾き補正後の原稿画像における領域の位置に初期表示され、かつ、当該初期表示された枠の位置はユーザの指示に基づいて変更可能であり、前記判定手段で前記傾き補正後の原稿画像が前記所定の条件を満たすと判定した場合は、前記第1の表示手段で前記対象領域指定画面を表示させる一方、前記判定手段で前記傾き補正後の原稿画像が前記所定の条件を満たさないと判定した場合は、前記検出手段で検出された原稿画像に対応する、前記傾き補正後の原稿画像における領域の画像を初期の処理対象領域の画像として、前記処理手段で当該初期の処理対象領域の画像を前記指定された用紙サイズ内に繰り返しレイアウトすることにより作成されたリピートレイアウト処理後の出力画像のプレビュー画像を含むプレビュー画面を、前記第2の表示手段で表示させる、ことを特徴とする。 In order to solve the above problems, the image processing apparatus of the present invention detects a document area by executing image analysis processing on a scanned image, and performs tilt correction based on the detected document area. detection means for obtaining a document image after tilt correction; determination means for determining whether the document image after tilt correction obtained by the detection means satisfies a predetermined condition; and the tilt obtained by the detection means. a first display means for displaying a target area designation screen for displaying a corrected document image and a frame indicating a processing target area; and a processing target indicated by the frame displayed on the target area designation screen. A processing means for creating an output image after repeat layout processing by repeatedly laying out an image corresponding to an area within a specified paper size, and a preview screen including a preview image of the output image after the repeat layout processing. and a second display means for displaying, wherein the frame displayed on the target area designation screen by the first display means corresponds to the document area detected by the detection means, after the inclination correction. It is initially displayed at the position of the area in the document image, and the position of the initially displayed frame can be changed based on a user's instruction , and the document image after the tilt correction is determined by the determination means according to the predetermined condition. If it is determined that the conditions are satisfied, the target area designation screen is displayed by the first display means. The image of the area in the document image after the tilt correction corresponding to the document image detected by the detection means is set as the image of the initial processing target area, and the image of the initial processing target area is specified by the processing means. The second display means displays a preview screen including a preview image of an output image after repeat layout processing, which is created by repeatedly laying out images within the selected paper size.

本発明によれば、読み取った画像に対して画像解析処理を実行することによって原稿領域を検出して当該原稿領域に基づいて原稿画像の傾き補正を行い、当該傾き補正後の原稿画像を表示するとともに、初期の処理対象領域の位置を示す枠を表示することにより、処理対象領域をユーザが指定しやすくなる。 According to the present invention, the document area is detected by performing image analysis processing on the read image, the document image is tilt-corrected based on the document area, and the document image after the tilt correction is displayed. In addition, by displaying a frame indicating the initial position of the processing target area, the user can easily specify the processing target area.

システムの全体構成例である。1 is an example of the overall configuration of a system; 画像形成装置のハードウェア構成例を示す図である。2 is a diagram illustrating an example hardware configuration of an image forming apparatus; FIG. 実施例1におけるイメージリピート処理に関するフローチャートを示す図である。FIG. 10 is a diagram showing a flowchart relating to image repeat processing according to the first embodiment; スキャン対象の原稿の例を示す。An example of a document to be scanned is shown. 原稿台に置かれた原稿を読み取った結果として得られた原稿台サイズと同じサイズの画像の例である。This is an example of an image of the same size as the platen size obtained as a result of reading the document placed on the platen. 読み取り開始画面の例を示す図である。It is a figure which shows the example of a reading start screen. イメージリピートのレイアウト処理を実行することにより得られる画像をプレビューするプレビュー画面の例を示す図である。FIG. 10 is a diagram showing an example of a preview screen for previewing an image obtained by executing image repeat layout processing; 実施例2におけるイメージリピート処理に関するフローチャートを示す図である。FIG. 10 is a diagram showing a flowchart relating to image repeat processing according to the second embodiment; リピート対象領域指定画面のデフォルト表示の例を示す図である。FIG. 10 is a diagram showing an example of a default display of a repeat target area specification screen; リピート対象領域指定画面においてリピート対象領域を示す枠の位置を修正した場合の例を示す図である。FIG. 10 is a diagram showing an example of a case where the position of the frame indicating the repeat target area is corrected on the repeat target area designation screen; リピート対象領域を示す枠の位置を修正した後に、イメージリピートのレイアウト処理を実行することにより得られる画像をプレビューするプレビュー画面の例を示す図である。FIG. 10 is a diagram showing an example of a preview screen for previewing an image obtained by executing image repeat layout processing after correcting the position of the frame indicating the repeat target area; 実施例3におけるイメージリピート処理に関するフローチャートを示す図である。FIG. 11 is a diagram showing a flowchart regarding image repeat processing in the third embodiment; 実施例4におけるイメージリピート処理に関するフローチャートを示す図である。FIG. 12 is a diagram showing a flowchart regarding image repeat processing in the fourth embodiment; 実施例4における、顔領域が検出されなかった場合におけるリピート対象領域指定画面の初期表示の例を示す図である。FIG. 17 is a diagram showing an example of initial display of the repeat target area designation screen when no face area is detected in Example 4; 実施例5における、顔領域が検出された場合におけるリピート対象領域指定画面の初期表示の例を示す図である。FIG. 20 is a diagram showing an example of initial display of a repeat target area designation screen when a face area is detected in Example 5; 実施例5における、原稿領域を指定するためのボタンが選択された場合のリピート対象領域指定画面の例を示す図である。FIG. 17 is a diagram showing an example of a repeat target area designation screen when a button for designating a document area is selected in Example 5;

以下、図面を用いて本発明に係る実施形態を詳細に説明する。ただし、この実施形態に記載されている構成要素はあくまで例示であり、この発明の範囲をそれらに限定する趣旨のものではない。 Embodiments according to the present invention will be described in detail below with reference to the drawings. However, the components described in this embodiment are merely examples, and are not intended to limit the scope of the present invention.

<システム構成>
図1は本実施例を適用可能なシステムの全体構成を示す図である。図1に示すように、画像形成装置(画像処理装置)100はLAN102に接続され、Internet103等を介してPCなどの端末101等と通信可能になっている。なお、本実施例の実現にあたっては、PCなどの端末101に関しては、必ずしも必要なくても良く、画像形成装置100のみの構成だけでも良い。
<System configuration>
FIG. 1 is a diagram showing the overall configuration of a system to which this embodiment can be applied. As shown in FIG. 1, an image forming apparatus (image processing apparatus) 100 is connected to a LAN 102 and can communicate with a terminal 101 such as a PC via an Internet 103 or the like. It should be noted that the terminal 101 such as a PC may not necessarily be required for implementation of the present embodiment, and the configuration of only the image forming apparatus 100 may be sufficient.

画像形成装置(画像処理装置)100は、表示・操作部、スキャナ部及び、プリンタ部を有する複合機(MFP)であり、スキャナ部を用いて原稿(文書、名刺、証明書用写真、免許証、葉書など)をスキャンするスキャン端末として利用することが可能である。タッチパネルやハードボタンなどの表示・操作部では、スキャン画像やレイアウト処理結果のプレビュー画像を表示したり、ユーザからの指示を入力するためのユーザインタフェースの表示を行う。本実施例では、スキャン画像内から自動抽出または手動指定された領域内の画像を処理対象として、1枚の出力原稿内に繰り返しレイアウトするリピートレイアウト処理(イメージリピート処理とも言う)を実行し、レイアウト処理結果のプレビュー画像を画面に表示する。そして、ユーザがプレビュー画面において印刷開始ボタンを押下すると、プリンタ部を用いて印刷処理を実行する。 An image forming apparatus (image processing apparatus) 100 is a multifunction peripheral (MFP) having a display/operation unit, a scanner unit, and a printer unit. , postcards, etc.) can be used as a scanning terminal. A display/operation unit such as a touch panel or hardware buttons displays a preview image of a scanned image or a layout processing result, or displays a user interface for inputting an instruction from the user. In this embodiment, an image within an area automatically extracted or manually specified from within a scanned image is subjected to repeat layout processing (also referred to as image repeat processing) for repeatedly laying out images in one output document. Display a preview image of the processing result on the screen. Then, when the user presses a print start button on the preview screen, print processing is executed using the printer unit.

なお、本実施例では、画像形成装置100単体で、スキャン処理、リピートレイアウト処理、印刷処理を行う例について説明するが、その一部を他の端末101で行うように構成したシステムであっても構わない。例えば、スキャン処理とリピートレイアウト処理とを画像形成装置100で実行し、レイアウト処理結果の画像を他の端末101にネットワークを介して送信し、他の端末101からその画像を印刷するようにしてもよい。 In this embodiment, an example in which the image forming apparatus 100 alone performs scan processing, repeat layout processing, and print processing will be described. I do not care. For example, the image forming apparatus 100 may perform scan processing and repeat layout processing, transmit an image resulting from the layout processing to another terminal 101 via a network, and print the image from the other terminal 101. good.

<画像形成装置100のハードウェア構成>
図2は、画像形成装置100の構成を示すブロック図である。制御部110では、CPU111、記憶装置112(ROM117,RAM118,HDD119など)、ネットワークI/F部113、スキャナI/F部114、表示・操作部I/F部115、プリンタI/F部122がシステムバス116を介して互いに通信可能に接続されている。制御部110は、画像形成装置100全体の動作を制御する。
<Hardware Configuration of Image Forming Apparatus 100>
FIG. 2 is a block diagram showing the configuration of the image forming apparatus 100. As shown in FIG. In the control unit 110, a CPU 111, a storage device 112 (ROM 117, RAM 118, HDD 119, etc.), a network I/F unit 113, a scanner I/F unit 114, a display/operation unit I/F unit 115, and a printer I/F unit 122 are They are communicatively connected to each other via a system bus 116 . Control unit 110 controls the overall operation of image forming apparatus 100 .

CPU111は、記憶装置112に記憶された制御プログラムを読み出し実行することにより、後述のフローチャートにおける各処理(読取制御や表示制御や印刷制御など)を実行する手段として機能する。記憶装置112は、上記プログラム、画像データ、メタデータ、設定データ及び、処理結果データなどを格納し保持する。記憶装置112には、不揮発性メモリであるROM117、揮発性メモリであるRAM118及び、大容量記憶領域であるHDD119などがある。ROM117は、制御プログラムなどを保持する不揮発性メモリであり、CPU111はその制御プログラムを読み出し制御を行う。RAM118は、CPU111の主メモリ、ワークエリア等の一時記憶領域として用いられる揮発性メモリである。 The CPU 111 reads out and executes a control program stored in the storage device 112, thereby functioning as means for executing each process (reading control, display control, printing control, etc.) in the flowcharts described later. The storage device 112 stores and holds the program, image data, metadata, setting data, processing result data, and the like. The storage device 112 includes a ROM 117 that is a non-volatile memory, a RAM 118 that is a volatile memory, an HDD 119 that is a large-capacity storage area, and the like. The ROM 117 is a non-volatile memory that holds control programs and the like, and the CPU 111 reads out the control programs and performs control. A RAM 118 is a volatile memory used as a temporary storage area such as a main memory of the CPU 111 and a work area.

ネットワークI/F部113は、制御部110(画像形成装置100)を、システムバス116を介してLAN104に接続する。ネットワークI/F部113は、LAN104上の外部装置に画像データを送信したり、LAN104上の外部装置から各種情報を受信したりする。 Network I/F unit 113 connects control unit 110 (image forming apparatus 100 ) to LAN 104 via system bus 116 . A network I/F unit 113 transmits image data to an external device on the LAN 104 and receives various information from external devices on the LAN 104 .

スキャナI/F部114は、スキャナ部120と制御部110とを、システムバス116を介して接続する。スキャナ部120は、原稿上の画像を読み取ってスキャン画像データを生成し、スキャナI/F部114を介してスキャン画像データを制御部110に入力する。 Scanner I/F section 114 connects scanner section 120 and control section 110 via system bus 116 . Scanner unit 120 reads an image on a document to generate scan image data, and inputs the scan image data to control unit 110 via scanner I/F unit 114 .

表示・操作部I/F部115は、表示・操作部121と制御部110とを、システムバス116を介して接続する。表示・操作部121には、タッチパネル機能を有する液晶表示部やキーボードなどが備えられている。 The display/operation unit I/F unit 115 connects the display/operation unit 121 and the control unit 110 via the system bus 116 . The display/operation unit 121 includes a liquid crystal display unit having a touch panel function, a keyboard, and the like.

プリンタI/F部122は、プリンタ部123と制御部110とを、システムバス116を介して接続する。プリンタ部123は、CPU111で生成されたレイアウト処理後の画像データをプリンタI/F部122を介して受信し、当該受信した画像データを用いて記録紙へのプリント処理が行われる。 Printer I/F section 122 connects printer section 123 and control section 110 via system bus 116 . The printer unit 123 receives the layout-processed image data generated by the CPU 111 via the printer I/F unit 122, and uses the received image data to perform print processing on recording paper.

以上のように、本実施例に係る画像形成装置100では、上記のハードウェア構成によって、画像処理機能を提供することが可能である。 As described above, the image forming apparatus 100 according to the present embodiment can provide the image processing function with the hardware configuration described above.

<イメージリピート処理機能>
本実施例に係る画像処理機能として、イメージリピート処理(リピートレイアウト処理)について説明する。
<Image repeat processing function>
Image repeat processing (repeat layout processing) will be described as an image processing function according to the present embodiment.

画像形成装置100は、スキャナ部120の原稿台に置かれた原稿をスキャンしてスキャン画像を取得する。取得したスキャン画像に対して画像解析処理を実行することにより、原稿領域の検出と、当該原稿領域の抽出と傾き補正とを行うことにより、傾き補正された原稿画像を得る。なお、原稿領域の検出処理の詳細については、後述する。 Image forming apparatus 100 scans a document placed on a document platen of scanner unit 120 to obtain a scanned image. By executing image analysis processing on the acquired scanned image, the document area is detected, the document area is extracted, and the inclination is corrected, thereby obtaining the document image corrected for inclination. The details of the document area detection process will be described later.

さらに、画像形成装置100は、指定された用紙サイズに対応する出力用画像内に当該傾き補正された原稿画像を繰り返し配置する際のレイアウトを決定する。そして、当該決定したレイアウトにしたがって、原稿画像を配置してイメージリピート処理結果画像を生成し、表示・操作部のUIにプレビュー画像を表示する。また、表示・操作部を通じてユーザから、当該イメージリピート処理結果画像の印刷指示を受付け可能にしている。 Further, the image forming apparatus 100 determines a layout for repeatedly arranging the tilt-corrected document image in the output image corresponding to the specified paper size. Then, according to the determined layout, the document images are arranged to generate an image repeat processing result image, and a preview image is displayed on the UI of the display/operation unit. In addition, an instruction to print the image repeat processing result image can be accepted from the user through the display/operation unit.

図3は、本実施例1に係るイメージリピート処理の詳細を示すフローチャートである。なお、画像形成装置100のCPU111が、ROM117に格納されている処理プログラムをRAM118にロードして実行することにより、図3の各ステップの処理を実行する処理部として機能する。なお、本実施例では、スキャン対象の原稿として、図4のような名刺をスキャンした場合について説明するが、原稿の種類は名刺に限るものではなく、定形サイズや非定型サイズの文書、免許証、証明書用写真、各種カード、はがきなどであってもよい。 FIG. 3 is a flowchart showing details of image repeat processing according to the first embodiment. Note that the CPU 111 of the image forming apparatus 100 loads the processing program stored in the ROM 117 into the RAM 118 and executes it, thereby functioning as a processing unit that executes the processing of each step in FIG. In this embodiment, a business card as shown in FIG. 4 is scanned as a document to be scanned. However, the type of document is not limited to business cards. , certificate photos, various cards, postcards, and the like.

まず、画像形成装置100の操作画面において、イメージリピート処理のモードがユーザにより指定されると、図6のタッチパネルディスプレイ領域601に操作画面が表示される。図6において、表示・操作部121は、タッチパネルディスプレイ領域601と、ハードキー602(数字キーや各種処理のスタートキーなど)とを備える。タッチパネルディスプレイ領域601には、原稿を原稿台にセットしてスキャンを開始するように促すメッセージと、スキャン開始を指示するためのスキャン開始ボタン(ソフトウェアキー)603とが表示される。 First, when the user designates the image repeat processing mode on the operation screen of the image forming apparatus 100, the operation screen is displayed on the touch panel display area 601 in FIG. In FIG. 6, the display/operation unit 121 includes a touch panel display area 601 and hardware keys 602 (such as numeric keys and start keys for various processes). A touch panel display area 601 displays a message prompting the user to place a document on the platen and start scanning, and a scan start button (software key) 603 for instructing the start of scanning.

スキャン開始ボタン603がユーザにより選択されると、ステップS301において、画像形成装置のCPU111は、スキャナ部を動作させて画像を取得する処理を行う。なお、図4のような名刺や非定型サイズの文書などを原稿台に置いてスキャンを行った場合、原稿サイズ検知用センサーによる原稿サイズの自動検知ができない場合がある。そこで、本実施例のイメージリピート処理では、原稿台全体を読み取り対象として、原稿台と同じサイズのスキャン画像を取得するものとする。図4の400は名刺(原稿)の例であり、名刺内には、写真等が記載されている領域401と、名前や住所等の文字列が記載されている領域402とが含まれる。この名刺を原稿台に置いてスキャンを行った結果、図5に示すようなスキャン画像501が得られたものとする。このとき、名刺が原稿台に無造作に置かれると、名刺が原稿台に対して傾いた状態でスキャンされてしまうので、スキャン画像501内には、傾いた状態の名刺画像502が含まれることになる。 When the scan start button 603 is selected by the user, in step S301, the CPU 111 of the image forming apparatus operates the scanner unit to acquire an image. When a business card or a non-standard size document as shown in FIG. 4 is placed on the document table and scanned, the document size detection sensor may not automatically detect the document size. Therefore, in the image repeat processing of the present embodiment, the entire platen is set as the object to be read, and a scanned image having the same size as the platen is obtained. 400 in FIG. 4 is an example of a business card (original), and the business card includes an area 401 in which a photograph or the like is described and an area 402 in which character strings such as names and addresses are described. It is assumed that a scanned image 501 as shown in FIG. 5 is obtained as a result of scanning the business card placed on the platen. At this time, if the business card is casually placed on the manuscript table, the business card will be scanned in an inclined state with respect to the manuscript table. Become.

ステップS302において、CPU111は、ステップS301で取得した画像に対して画像解析処理(原稿領域検出処理)を実行することにより原稿領域を検出し、当該検出した原稿領域の部分画像を切り出すとともに、傾き補正処理を行う。これにより、S301で取得したスキャン画像501に含まれている名刺画像502の領域を切り出して傾き補正した画像を取得することができる。原稿領域の検出処理と傾き補正処理は、公知の方法を用いて実現することができる。スキャン画像から原稿領域を検出する手法としては、例えば、スキャン画像に対してSobelフィルタ等を適用することによりエッジ強度画像を求め、エッジ強度が高い画素が直線状に繋がっている個所を原稿の辺として検出する公知の手法を用いればよい。そして、当該検出した原稿の四辺に基づき4頂点を特定し、当該特定した4頂点に基づいて原稿領域の画像を切り出す(すなわち、スキャン画像から原稿画像を抽出する)。このとき、スキャン画像から切り出した原稿領域の画像が傾いている場合には、さらに、傾き補正を行うことで、傾き補正後の原稿画像として取得する。傾き補正は、例えば、当該特定した4頂点の座標値に基づき傾き角度の推定を行い、その傾き角度を補正する方向に画像を回転させればよい。なお、原稿領域の画像の切り出し処理(原稿画像の抽出処理)と傾き補正処理は、順番に実行するようにしてもよいし、切り出しと傾き補正を同時に行うようにしてもよい。例えば、4頂点の座標値に基づき、当該4頂点により囲まれる長方形領域の内部の画素に対して所定の射影変換処理を行うことで、長方形領域内の画素抽出と傾き補正とを同時に実現することも可能である。 In step S302, the CPU 111 detects a document area by executing image analysis processing (document area detection processing) on the image acquired in step S301, cuts out a partial image of the detected document area, and performs tilt correction. process. As a result, it is possible to obtain a tilt-corrected image by cutting out the area of the business card image 502 included in the scanned image 501 obtained in S301. The document area detection process and the skew correction process can be realized using a known method. As a method for detecting a document area from a scanned image, for example, an edge strength image is obtained by applying a Sobel filter or the like to the scanned image, and a portion where pixels with high edge strength are connected in a straight line is regarded as a side of the document. A known technique for detecting as is used. Then, four vertices are specified based on the detected four sides of the document, and an image of the document area is cut out based on the specified four vertices (that is, the document image is extracted from the scanned image). At this time, if the image of the document region cut out from the scanned image is tilted, further tilt correction is performed to acquire the tilt-corrected document image. For tilt correction, for example, the tilt angle is estimated based on the coordinate values of the specified four vertices, and the image is rotated in the direction in which the tilt angle is corrected. Note that the clipping process of the image of the document area (the document image extraction process) and the tilt correction process may be performed in order, or the clipping and the tilt correction may be performed simultaneously. For example, based on the coordinate values of the four vertices, a predetermined projective transformation process is performed on the pixels inside the rectangular region surrounded by the four vertices, thereby simultaneously realizing pixel extraction and tilt correction within the rectangular region. is also possible.

ステップS303において、CPU111はステップS302の原稿領域検出処理の結果に基づき原稿が検出されたかの判定を行う。原稿が検出されなかったと判断した場合には、ステップS304に進み、原稿が検出できなかった旨と、原稿を原稿台に置き直して再実行することをユーザに促すメッセージとを、表示・操作部121に表示させる。ステップS303で原稿が検出されたと判断した場合には、ステップS305に進む。 In step S303, the CPU 111 determines whether the document is detected based on the result of the document area detection processing in step S302. If it is determined that the document has not been detected, the process advances to step S304 to display a message to the effect that the document could not be detected and to urge the user to place the document on the platen and re-execute the operation. 121 to display. If it is determined in step S303 that the document has been detected, the process proceeds to step S305.

ステップS305において、CPU111は、指定された出力用紙の用紙サイズの情報を取得する。ユーザにより用紙サイズが未指定である場合は、デフォルト設定されている用紙サイズ(例えばA4サイズ)の情報を取得する。また、手差しトレイの用紙を使用することが予め指定されている場合などは、この時点でユーザに用紙サイズの指定を行わせるようにしてもよい。 In step S305, the CPU 111 acquires information on the paper size of the designated output paper. If the user does not specify the paper size, information on the default paper size (for example, A4 size) is obtained. Also, if the use of paper in the manual feed tray is specified in advance, the user may be allowed to specify the paper size at this point.

ステップS306において、CPU111は、リピート対象画像のサイズと、S305で取得した用紙サイズの情報とに基づいて、出力用紙内にリピート対象画像を繰り返しレイアウトする位置を決定するリピートレイアウト処理を実行する。なお、リピート対象画像として、最初は、S302の原稿領域検出処理及び傾き補正処理を行った結果の切り出し画像(傾き補正後の原稿部分画像)を使用する。リピートレイアウト処理では、出力用紙の縦横のサイズとリピート対象画像のサイズとに基づき、リピート対象画像を出力用紙の左上から配置した際に何枚画像を配置できるか計算する。次にリピート対象画像のサイズを90度回転させて出力用紙の左上から配置した際に何枚画像が配置できるか計算する。そして、90度回転有無での配置枚数を比較し、配置枚数が多い方のレイアウトを用いて、リピート対象画像を繰り返しレイアウトすることにより、リピート処理後の画像(すなわち、印刷処理で用いられる出力画像)の作成を行う。なお、90度回転有無での配置枚数が同じ場合は、リピート対象画像を回転しない場合のレイアウトで出力画像の作成を行う。 In step S306, the CPU 111 executes repeat layout processing for determining the position where the repeat target image is repeatedly laid out on the output paper based on the size of the repeat target image and the paper size information acquired in S305. As the image to be repeated, first, a clipped image (document partial image after tilt correction) as a result of performing the document area detection process and the tilt correction process in S302 is used. In the repeat layout process, based on the vertical and horizontal sizes of the output paper and the size of the repeat image, it is calculated how many images can be laid out when the repeat image is laid out from the upper left of the output paper. Next, the number of images that can be arranged when the size of the image to be repeated is rotated by 90 degrees and arranged from the upper left of the output paper is calculated. Then, by comparing the number of layout sheets with and without 90-degree rotation and repeatedly laying out the image to be repeated using the layout with the larger number of layout sheets, the image after the repeat processing (that is, the output image used in the printing processing) ) is created. If the number of images to be arranged is the same regardless of whether the image is rotated by 90 degrees, the output image is created in a layout in which the image to be repeated is not rotated.

ステップS307において、CPU111は、S306で作成した出力画像のプレビュー画像を作成して、表示・操作部121のプレビュー画面に表示する。図7を用いて表示・操作部121に表示されるプレビュー画面について説明する。図7では、図6のタッチパネルディスプレイ領域601に表示されていた表示内容が、出力画像のプレビュー画面に変わっている。 In step S<b>307 , the CPU 111 creates a preview image of the output image created in S<b>306 and displays it on the preview screen of the display/operation unit 121 . A preview screen displayed on the display/operation unit 121 will be described with reference to FIG. In FIG. 7, the display content displayed on the touch panel display area 601 of FIG. 6 is changed to a preview screen of the output image.

図7の705には、ステップS306で作成した出力画像のプレビュー画像を表示している。また、706には、ステップS306で作成した出力画像において、リピート対象画像を何枚レイアウトしているかを示す枚数情報を表示している。図7の例では、リピート対象画像16枚が、1枚の出力画像内にリピートされることを示している。 In 705 of FIG. 7, a preview image of the output image created in step S306 is displayed. In 706, number information indicating how many repeat target images are laid out in the output image created in step S306 is displayed. The example of FIG. 7 indicates that 16 repeat target images are repeated within one output image.

707は、出力画像を印刷する枚数を示す数字を表示しており、ユーザがプラスボタン709を押下すると、その印刷枚数が増加し、マイナスボタンを押下すると、その印刷枚数が減少する。なお、プラスボタンあるいはマイナスボタンをクリックするたびに枚数が1枚ずつ増減してもよいし、プラスボタンあるいはマイナスボタンを長押しすることで押している間は、印刷枚数707が連続的に変わるようにしてもよい。また、印刷枚数707の入力は、ハードキー702を使って入力することも可能である。 A number 707 indicates the number of prints of the output image. When the user presses the plus button 709, the number of prints increases, and when the user presses the minus button, the number of prints decreases. The number of copies may be increased or decreased by one each time the plus or minus button is clicked, or the number of copies 707 may be changed continuously while the plus or minus button is pressed for a long time. may Also, the number of prints 707 can be input using the hard keys 702 .

710は、出力画像をカラーで印刷するか白黒で印刷するかを選択可能なプルダウンメニューである。デフォルト設定では、リピート対象画像がカラーである場合に「フルカラー」が自動選択され、リピート対象画像が白黒である場合に「白黒」が自動選択されるものとする。ユーザは、このカラー選択のプルダウンメニュー710を用いて、手動操作でフルカラー印刷/白黒印刷の設定を変更することができる。なお、後述のステップS309で説明するように、フルカラー印刷/白黒印刷の設定が変更されると、変更後の設定に応じて、プレビュー画像705も変更される。例えば、フルカラーが自動選択されている状態で、ユーザが白黒に設定変更すると、プレビュー画像705も連動して白黒画像のプレビューに変更される。 A pull-down menu 710 allows selection of whether to print an output image in color or in black and white. In the default setting, "full color" is automatically selected when the repeat target image is color, and "black and white" is automatically selected when the repeat target image is black and white. The user can use this color selection pull-down menu 710 to manually change the setting of full-color printing/black-and-white printing. As will be described later in step S309, when the setting for full-color printing/black-and-white printing is changed, the preview image 705 is also changed according to the setting after the change. For example, when the user changes the setting to black-and-white while full-color is automatically selected, the preview image 705 is also changed to a black-and-white image preview accordingly.

711には、現在指定されている用紙サイズを表示する。ユーザが変更ボタン712を押下すると、後述のステップS311で説明するように、用紙サイズの変更処理を行う。用紙サイズが変更された場合、当該変更後の用紙サイズとリピート対象画像のサイズとに基づき、S306のリピートレイアウト処理を実行して出力画像を再作成し、出力画像のプレビュー画像705と枚数情報706とを更新する。 711 displays the currently specified paper size. When the user presses the change button 712, a paper size change process is performed as described later in step S311. When the paper size is changed, the repeat layout process of S306 is executed based on the paper size after the change and the size of the image to be repeated to recreate the output image, and the preview image 705 and the number information 706 of the output image are generated. and update.

リピート対象領域変更ボタン713がユーザにより押下されると、図9のようなリピート対象領域指定画面を表示し、ユーザはリピート対象領域を所望の位置・サイズを有する領域に修正することができる。図9のリピート対象領域指定画面の詳細は、ステップS310で後述する。 When the repeat target area change button 713 is pressed by the user, a repeat target area specification screen such as that shown in FIG. 9 is displayed, and the user can modify the repeat target area to have a desired position and size. Details of the repeat target area designation screen in FIG. 9 will be described later in step S310.

印刷開始ボタン703がユーザにより押下されると、後述のステップS312で説明するように、現在の設定内容にしたがって、印刷処理が開始される。また、戻るボタン704がユーザにより押下されると、図6の画面に戻る。 When the print start button 703 is pressed by the user, print processing is started according to the current settings, as will be described later in step S312. Also, when the return button 704 is pressed by the user, the screen returns to the screen in FIG.

ステップS308において、CPU111は、図7のプレビュー画面に表示されているボタンやプルダウンメニューのうちのいずれが、ユーザにより指示されたかを判定する。カラー選択のプルダウンメニュー710が指示されたと判定した場合はステップS309に進み、リピート対象領域変更ボタン713が指示されたと判定した場合はステップS310に進み、用紙サイズ変更ボタン712が指示されたと判定した場合はステップS311に進み、印刷開始ボタン703が指示されたと判定した場合はステップS312に進む。 In step S308, the CPU 111 determines which of the buttons and pull-down menus displayed on the preview screen in FIG. 7 has been instructed by the user. If it is determined that the color selection pull-down menu 710 has been instructed, the process proceeds to step S309; if it is determined that the repeat target area change button 713 has been specified, the process proceeds to step S310; if it is determined that the paper size change button 712 has been specified. If it is determined that the print start button 703 has been designated, the process proceeds to step S312.

ステップS308で、ユーザの指示内容がカラー選択のプルダウンメニュー710におけるフルカラー/白黒の設定変更である、と判定した場合は、ステップS309にて、CPU111は、当該変更後の設定に基づきプルダウンメニュー710の表示を更新して、更に、ステップS307に戻って、当該変更後の設定に基づきプレビュー画像705も更新する。例えば、フルカラー印刷が設定されていた時に、プルダウンメニュー710で白黒印刷へ設定変更された場合には、ステップS307で白黒のプレビュー画像を作成してプレビュー画面の表示を更新する。なお、白黒のプレビュー画像および出力画像は、プルダウンメニュー710で白黒印刷へ設定変更された時点で作成する形態に限るものではない。例えば、S302で切り出した画像に基づき最初にS306のリピートレイアウト処理で作成された出力画像に基づいてプレビュー画像を作成する際に、カラーのプレビュー画像と白黒のプレビュー画像を予め作成しておく形態でも構わない。 If it is determined in step S308 that the content of the user's instruction is to change the setting of full color/black and white in the color selection pull-down menu 710, then in step S309 the CPU 111 selects the pull-down menu 710 based on the setting after the change. After updating the display, returning to step S307, the preview image 705 is also updated based on the changed settings. For example, if the pull-down menu 710 is changed to black-and-white printing when full-color printing is set, a black-and-white preview image is created in step S307 to update the display of the preview screen. Note that the black-and-white preview image and the output image are not limited to being created when the setting is changed to black-and-white printing in the pull-down menu 710 . For example, when creating a preview image based on the output image first created by the repeat layout process in S306 based on the image cut out in S302, a color preview image and a black-and-white preview image may be created in advance. I do not care.

ステップS308で、ユーザの指示内容がリピート対象領域変更ボタン713の押下である、と判定した場合は、ステップS310にて、CPU111は、リピート対象領域を変更するためのリピート対象領域指定画面(図9)をタッチパネルディスプレイ領域に表示する。 If it is determined in step S308 that the user's instruction is pressing of the repeat target area change button 713, then in step S310 the CPU 111 displays the repeat target area specification screen (see FIG. 9) for changing the repeat target area. ) is displayed on the touch panel display area.

図9のリピート対象領域指定画面の詳細について説明する。図9の905には、S302の原稿領域検出処理及び傾き補正処理を行った結果の切り出し画像(傾き補正後の原稿部分画像)のプレビュー画像が表示される。さらに、その時点でのリピート対象領域の位置を示す枠906を、切り出し画像に重ねて表示する。なお、リピート対象領域の位置を示す枠906は、区別しやすい色(例えば、赤色)等の線で表示するのが望ましい。なお、リピート対象領域をユーザの指示に基づいて変更する前の時点では、図9のように、S302で検出されて切り出された原稿部分画像をリピート対象領域として枠906を表示することになる。ハンドラ921、922、923、924は、枠906の頂点に表示されるハンドラであり、ユーザが該ハンドラを用いて枠の頂点の位置を変更することにより、リピート対象領域の縮小や拡大を行うことができる。ハンドラ925、926、927、928は、ユーザが枠の辺の位置を変更するためのハンドラであり、これらのハンドラの操作によっても、リピート対象領域の縮小や拡大を行うことができる。また、矢印907、908、909、910のいずれかがユーザに押下されると、当該表示されている原稿部分画像が、当該押下された矢印の方向に移動する。つまり、枠906の位置は移動せずに、矢印907、908、909、910を使用することで原稿部分画像を相対的に移動させることにより、ユーザ所望の切出し位置になるよう調整することもできる。なお、原稿部分画像の移動は、矢印907、908、909、910の操作に限らず、枠906より外側で且つプレビュー画像の表示領域905より内側の位置において、ユーザがタッチ&ドラッグ操作することで移動できるようにしてもよい。 Details of the repeat target area designation screen in FIG. 9 will be described. In 905 of FIG. 9, a preview image of a clipped image (document partial image after tilt correction) as a result of the document area detection processing and tilt correction processing in S302 is displayed. Furthermore, a frame 906 indicating the position of the repeat target area at that time is superimposed on the clipped image and displayed. It is desirable to display the frame 906 indicating the position of the repeat target area with a line of a color (for example, red) that is easy to distinguish. Note that before the repeat target area is changed based on the user's instruction, as shown in FIG. 9, the document partial image detected and cut out in S302 is displayed in a frame 906 as the repeat target area. Handlers 921, 922, 923, and 924 are handlers displayed at the vertices of the frame 906, and the user can use the handlers to change the positions of the vertices of the frame to reduce or expand the repeat target area. can be done. Handlers 925, 926, 927, and 928 are handlers for the user to change the position of the side of the frame, and by manipulating these handlers, the repeat target area can also be reduced or enlarged. When the user presses one of the arrows 907, 908, 909, and 910, the displayed original partial image moves in the direction of the pressed arrow. In other words, without moving the position of the frame 906, by relatively moving the original partial images using the arrows 907, 908, 909, and 910, the user can adjust the position to be cut out as desired by the user. . Note that the movement of the document partial image is not limited to the operation of the arrows 907, 908, 909, and 910, but can be performed by the user performing a touch-and-drag operation at a position outside the frame 906 and inside the preview image display area 905. You may enable it to move.

バー911は、表示領域905に表示される画像の表示倍率の状態を示すバーであり、バー911が右側にあれば拡大表示されていることを示し、左側にあれば縮小表示されていることを示す。ユーザがボタン912を押下すると、その表示倍率を下げて表示し、ボタン913を押下すると、その表示倍率を上げて表示する。なお、バー911を直接左右にドラッグ操作することで、表示倍率を変更することも可能である。また、ユーザがボタン914を押下すると、表示領域905に表示している画像の表示の向きを90度回転させる。また、ユーザがボタン915を押下した場合は、表示領域905に表示している画像を反時計回りに0.5度刻みで回転させる。ユーザがボタン916を押下した場合は、表示領域905に表示している画像を時計回りに0.5度刻みで回転させる。なお、本実施例では、ボタン915、916ともに回転角度を0.5度刻みとして説明したが、0.5度に限るものではない。また、ボタン917は、枠906を縦方向に伸ばす指示を行うためのボタンであり、ユーザがボタン917を押下すると、枠906の上辺の位置が上方向に所定画素数移動し且つ下辺の位置が下方向に所定画素数移動する。ボタン918は、枠906を縦方向に縮める指示を行うためのボタンであり、ユーザがボタン918を押下すると、枠906の上辺の位置が下方向に所定画素数移動し且つ下辺の位置が上方向に所定画素数移動する。また、ボタン919は枠906を横方向に伸ばす指示を行うためのボタンであり、ボタン920は枠906を横方向に縮める指示を行うためのボタンである。また、ユーザがボタン904を押下すると、図9において変更された枠の位置をキャンセルして図7の画面に戻る。 A bar 911 indicates the display magnification state of the image displayed in the display area 905. If the bar 911 is on the right side, it indicates that the display is enlarged, and if it is on the left side, it indicates that the display is reduced. show. When the user presses a button 912, the display magnification is lowered for display, and when the user presses a button 913, the display magnification is increased for display. It is also possible to change the display magnification by directly dragging the bar 911 to the left or right. Also, when the user presses a button 914, the orientation of the image displayed in the display area 905 is rotated by 90 degrees. When the user presses the button 915, the image displayed in the display area 905 is rotated counterclockwise by 0.5 degrees. When the user presses the button 916, the image displayed in the display area 905 is rotated clockwise in increments of 0.5 degrees. In this embodiment, the rotation angles of both the buttons 915 and 916 are set in increments of 0.5 degrees, but the angles are not limited to 0.5 degrees. A button 917 is a button for instructing to extend the frame 906 vertically. When the user presses the button 917, the position of the upper side of the frame 906 moves upward by a predetermined number of pixels and the position of the lower side of the frame 906 moves upward. Move downward by a predetermined number of pixels. A button 918 is a button for instructing to shrink the frame 906 in the vertical direction. When the user presses the button 918, the position of the upper side of the frame 906 moves downward by a predetermined number of pixels and the position of the lower side of the frame 906 moves upward. a predetermined number of pixels. A button 919 is a button for issuing an instruction to extend the frame 906 in the horizontal direction, and a button 920 is a button for issuing an instruction to shrink the frame 906 in the horizontal direction. Also, when the user presses a button 904, the frame position changed in FIG. 9 is canceled and the screen returns to the screen in FIG.

また、ユーザがボタン903を押下すると、その時点で設定されている枠906の位置に基づいてリピート対象領域を確定し、当該リピート対象領域の画像に基づいて、ステップS306のリピートレイアウト処理を実行する。例えば、ユーザが名刺画像(原稿画像)の内部に含まれる写真領域のみをリピート対象領域にしたいとする。その場合、ユーザは、図9の枠の頂点ハンドラ921~924の位置を調整し、図10の枠の頂点ハンドラ1021~1024の位置に変更する。その状態でOKボタンがユーザにより押下されると、図10の枠で囲まれる領域がリピート対象領域として確定され、当該確定されたリピート対象領域の画像を用いてステップS306でリピートレイアウト処理が再度実行される。そして、ステップS307では、S306のリピートレイアウト処理で得た出力画像のプレビュー画像を、図11のように、プレビュー画面1105に表示する。図11の1106には、図10で変更したリピート対象領域の画像を何枚レイアウトしているかを示す枚数情報を表示している。 Also, when the user presses the button 903, the repeat target area is determined based on the position of the frame 906 set at that time, and repeat layout processing in step S306 is executed based on the image of the repeat target area. . For example, suppose that the user wants to set only the photo area included inside the business card image (original image) as the repeat target area. In that case, the user adjusts the positions of the box vertex handlers 921-924 of FIG. 9 to the positions of the box vertex handlers 1021-1024 of FIG. When the user presses the OK button in this state, the area enclosed by the frame in FIG. 10 is determined as the repeat target area, and the repeat layout process is executed again in step S306 using the image of the determined repeat target area. be done. Then, in step S307, a preview image of the output image obtained by the repeat layout processing in step S306 is displayed on the preview screen 1105 as shown in FIG. In 1106 in FIG. 11, number information indicating how many images are laid out in the repeat target area changed in FIG. 10 is displayed.

なお、本実施例では、リピート対象領域の画像の倍率は100%で印刷されるように、リピートレイアウトする例で説明するが、倍率は100%に限るものではない。例えば、図9の画面で、リピート対象領域の画像の倍率を指定できるように構成すれば、リピート対象領域の画像を拡大または縮小しながら、イメージリピート処理することも可能である。その場合、指定された倍率も考慮して、ステップS305のリピート枚数算出処理やステップS308のリピートレイアウト処理を行うようにすればよい。 In this embodiment, an example of repeat layout is described so that the image in the repeat target area is printed at a magnification of 100%, but the magnification is not limited to 100%. For example, if the screen of FIG. 9 is configured so that the magnification of the image of the repeat target area can be designated, it is possible to perform image repeat processing while enlarging or reducing the image of the repeat target area. In that case, the repeat number calculation process in step S305 and the repeat layout process in step S308 may be performed in consideration of the specified magnification.

ステップS308で、ユーザの指示内容が用紙サイズ変更ボタン712の押下である、と判定した場合は、ステップS311にて、用紙サイズの候補を複数提示(例えば、定形サイズA4,A3,B4,B5などを複数提示)し、その中からユーザにより指定された用紙サイズを判定する。なお、用紙サイズの変更は定形サイズの中から選択する方法に限るものではなく、非定形の用紙サイズ(用紙の縦と横のサイズ)をユーザがマニュアル入力できるようにしてもよい。ステップS311で用紙サイズが変更された場合には、ステップS305でその変更後の用紙サイズを取得し、ステップS306で、当該変更された用紙サイズに基づいてリピートレイアウト処理を実行し、ステップS307でプレビュー画面を表示する。 If it is determined in step S308 that the content of the user's instruction is pressing of the paper size change button 712, then in step S311 a plurality of paper size candidates (for example, standard sizes A4, A3, B4, B5, etc.) are presented. are presented), and the paper size specified by the user is determined from among them. Note that the method of changing the paper size is not limited to the method of selecting from standard sizes, and the user may be allowed to manually input a non-standard paper size (length and width of the paper). If the paper size is changed in step S311, the paper size after the change is acquired in step S305, repeat layout processing is executed based on the changed paper size in step S306, and a preview is performed in step S307. display the screen.

ステップS308で、ユーザの指示内容が印刷開始ボタン703の押下であると判定した場合は、ステップS312にて、CPU111は、S306で作成した出力画像を用いて、プリンタ部123で印刷を実行するように制御する。 If it is determined in step S308 that the user's instruction is to press the print start button 703, in step S312 the CPU 111 instructs the printer unit 123 to print using the output image created in step S306. to control.

本実施例1によれば、図9のリピート対象領域指定画面において、S301で取得した原稿台全体のスキャン画像ではなく、S302で得た傾き補正後の原稿部分画像を表示する。原稿台全体のスキャン画像をそのままプレビュー表示すると、スキャン画像内に含まれる名刺画像が相対的に小さく表示されてしまうので、ユーザはリピート対象にしたい領域を指定しにくくなるが、本実施例では、S302で得た原稿部分画像を大きく表示するので、ユーザはリピート対象にしたい領域を指定しやすくなる。さらに、傾き補正後の原稿部分画像を表示するので、ユーザは、リピート対象にしたい領域を正確に指定しやすくなる。また、原稿台に原稿を傾いて置いてスキャンしたとしてもS302で傾き補正されるので、ユーザは原稿台に原稿を置く際に原稿が傾かないように気を付ける必要もなくなる。 According to the first embodiment, on the repeat target area designation screen of FIG. 9, the original partial image after tilt correction obtained in S302 is displayed instead of the scanned image of the entire original platen obtained in S301. If the scanned image of the entire platen is previewed as it is, the business card image included in the scanned image is displayed relatively small, making it difficult for the user to specify the area to be repeated. Since the original partial image obtained in S302 is displayed in a large size, the user can easily specify the area to be repeated. Furthermore, since the partial image of the document after tilt correction is displayed, the user can easily specify the area to be repeated accurately. Also, even if the document is placed on the platen at an angle and scanned, the tilt is corrected in S302, so the user does not need to be careful not to tilt the document when placing the document on the platen.

また、S307で表示される図7のプレビュー画面では、S302で得た傾き補正後の原稿部分画像を初期のリピート対象画像として設定してS306のリピートレイアウト処理を実行して出力画像を作成し、その出力画像のプレビュー画像を初期表示する。したがって、ユーザは、そのままの設定でよければ、印刷開始ボタンを押すだけでよく、リピートレイアウト処理を簡単に実行することもできる。 7 displayed in S307, the original partial image after tilt correction obtained in S302 is set as an initial image to be repeated, and repeat layout processing is executed in S306 to create an output image. A preview image of the output image is initially displayed. Therefore, if the user is satisfied with the settings as they are, the user can simply press the print start button, and the repeat layout process can be easily executed.

実施例1では、図6の操作画面でスキャン開始ボタンがユーザにより押下されると、図3のS301~S307の処理が実行されて、図7のプレビュー画面が表示される例について説明した。本実施例2では、図6の操作画面でスキャン開始ボタンがユーザにより押下されると、図7のプレビュー画面を表示する前に、図9のリピート対象領域指定画面を表示してリピート対象領域をユーザに確認・修正させる例について説明する。 In the first embodiment, when the user presses the scan start button on the operation screen in FIG. 6, the processes of S301 to S307 in FIG. 3 are executed and the preview screen in FIG. 7 is displayed. In the second embodiment, when the user presses the scan start button on the operation screen shown in FIG. 6, the repeat target area designation screen shown in FIG. 9 is displayed to specify the repeat target area before displaying the preview screen shown in FIG. An example of confirmation/correction by the user will be described.

図8に示す実施例2に係るイメージリピート処理の詳細を示すフローチャートと、図3に示した実施例1のフローチャートとの差異について説明する。実施例2では、図8のステップS303で原稿有りと判定した場合に、ステップS310に進んで、図9のリピート対象領域指定画面を表示する。そして、図9のリピート対象領域指定画面で、リピート対象領域が確定された後、S305~S307の処理を行ってプレビュー画面を表示する。 Differences between the flowchart showing details of the image repeat processing according to the second embodiment shown in FIG. 8 and the flowchart of the first embodiment shown in FIG. 3 will be described. In the second embodiment, when it is determined in step S303 in FIG. 8 that there is a document, the process proceeds to step S310 to display the repeat target area designation screen in FIG. Then, after the repeat target area is determined on the repeat target area designation screen of FIG. 9, the processes of S305 to S307 are performed to display the preview screen.

なお、各ステップの処理の詳細は、実施例1と同様であるので説明を割愛する。 The details of the processing of each step are the same as those of the first embodiment, so description thereof is omitted.

以上、本実施例2によれば、図7のプレビュー画面を表示する前に、図9のリピート対象領域指定画面を表示するので、リピート対象領域をユーザが予め確認でき、さらに、必要に応じてリピート対象領域の修正も簡単に行える。また、実施例1と同様に、図9のリピート対象領域指定画面において、S301で取得した原稿台全体のスキャン画像ではなく、S302で得た傾き補正後の原稿部分画像を表示するので、ユーザは、リピート対象にしたい領域を正確に指定しやすくなる。 As described above, according to the second embodiment, the repeat target area designation screen shown in FIG. 9 is displayed before the preview screen shown in FIG. 7 is displayed. It is easy to modify the repeat target area. Also, as in the first embodiment, on the repeat target area designation screen in FIG. 9, the tilt-corrected partial document image obtained in S302 is displayed instead of the scanned image of the entire platen obtained in S301. , making it easier to accurately specify the region you want to repeat.

図6の操作画面でスキャン開始ボタンがユーザにより押下された後、タッチパネルディスプレイ領域において、実施例1では図7のプレビュー画面を最初に表示し、実施例2では図9のリピート対象領域指定画面を最初に表示する例について説明した。本実施例3では、スキャンした原稿に応じて、図7のプレビュー画面を最初に表示するか、図9のリピート対象領域指定画面を最初に表示するかを適応的に変更する例について説明する。 After the user presses the scan start button on the operation screen of FIG. 6, the preview screen of FIG. 7 is first displayed in the touch panel display area in the first embodiment, and the repeat target area designation screen of FIG. 9 is displayed in the second embodiment. The example shown first was explained. In the third embodiment, an example of adaptively changing whether the preview screen of FIG. 7 is displayed first or the repeat target area designation screen of FIG. 9 is displayed first according to the scanned document will be described.

図12のフローチャートを用いて、実施例3に係るイメージリピート処理の詳細を説明する。図12では、ステップS303で原稿有りと判定した場合、ステップS1201に進んで、S302で検出した原稿画像が所定の条件を満たすかどうか判定する。S1201で所定の条件を満たすと判定した場合は、ステップS310に進んで図9のリピート対象領域指定画面を表示する。一方、S1201で所定の条件を満たさないと判定した場合は、S305~S307の処理を行って図7のプレビュー画面を表示する。 Details of the image repeat processing according to the third embodiment will be described with reference to the flowchart of FIG. In FIG. 12, if it is determined in step S303 that the document exists, the flow advances to step S1201 to determine whether the document image detected in step S302 satisfies a predetermined condition. If it is determined in S1201 that the predetermined condition is satisfied, the process advances to step S310 to display the repeat target area designation screen of FIG. On the other hand, if it is determined in S1201 that the predetermined condition is not satisfied, the processes of S305 to S307 are performed and the preview screen in FIG. 7 is displayed.

ステップS1201の判定で用いられる所定の条件は、例えば、S302で検出された原稿画像のサイズが所定のサイズ(例えばA4サイズ)より大きいかどうかである。原稿画像のサイズが大きい場合は、その原稿内の一部分を切り出してリピート対象に用いる可能性が高いと考えられるので、S310に進んで図9のリピート対象領域指定画面を表示する。 The predetermined condition used in the determination in step S1201 is, for example, whether the size of the document image detected in step S302 is larger than a predetermined size (eg, A4 size). If the size of the document image is large, there is a high possibility that a portion of the document will be cut out and used as a repeat target.

また、ステップS1201の判定で用いられる所定の条件の別の例について説明する。例えば、S302で検出された原稿画像に対して、テキストや写真や表などの属性ごとの領域に分割する領域分割処理を実行し、複数の属性の領域が含まれる場合に所定の条件を満たすと判定する。すなわち、原稿内に複数の属性の領域(例えばテキスト領域と写真領域)が含まれる場合、そのいずれかの領域をリピート対象に用いる可能性が高いと考えられるので、S310に進んで図9のリピート対象領域指定画面を表示する。 Also, another example of the predetermined condition used in the determination of step S1201 will be described. For example, if the original image detected in S302 is divided into regions for each attribute such as text, photograph, table, etc., and if regions with multiple attributes are included, a predetermined condition is met. judge. That is, if the document contains areas with a plurality of attributes (for example, a text area and a photo area), it is highly likely that any one of these areas will be used as a repeat target. Display the target area specification screen.

なお、図12のS301~S312の各ステップにおける処理の詳細は、実施例1,2の対応するステップ番号の処理と同様であるので説明を割愛する。 The details of the processing in steps S301 to S312 of FIG. 12 are the same as the processing of the corresponding step numbers in the first and second embodiments, so the description is omitted.

実施例2では、図9のリピート対象指定画面においてリピート対象領域の初期領域として、S302で検出された原稿領域を表示する例について説明した。実施例4においては、S302で検出された原稿画像に対して、さらに顔領域検出(人物の顔を含む写真領域の検出処理)を行い、当該検出した写真領域をリピート対象領域の初期領域として表示する例について説明する。 In the second embodiment, an example of displaying the document area detected in S302 as the initial area of the repeat target area on the repeat target designation screen of FIG. 9 has been described. In the fourth embodiment, the document image detected in S302 is further subjected to face area detection (detection processing of a photographic area including a person's face), and the detected photographic area is displayed as the initial area of the repeat target area. An example of

図13に示す実施例4に係るイメージリピート処理の詳細を示すフローチャートと、図8に示した実施例2のフローチャートとの差異について説明する。実施例4では、ステップS303において原稿有りと判定した場合に、ステップS1301に進む。 Differences between the flowchart showing details of the image repeat processing according to the fourth embodiment shown in FIG. 13 and the flowchart of the second embodiment shown in FIG. 8 will be described. In the fourth embodiment, if it is determined in step S303 that there is a document, the process advances to step S1301.

ステップS1301において、CPU111は、ステップS303で検出された原稿領域内の画像に対して、人物の顔を含む写真領域(すなわち顔領域)の検出処理を実行する。顔領域検出処理は、例えば、画像から局所特徴量を検出し、当該検出した局所特徴量と予め保持している顔の各パーツ(目、鼻、口など)の特徴量とをパターンマッチングすることにより、人物の顔を含む領域を特定する。なお、顔領域検出処理の手法は上記手法に限るものではなく、その他の顔領域検出処理を用いてもよい。 In step S1301, the CPU 111 executes detection processing of a photographic area (that is, a face area) containing a person's face on the image in the document area detected in step S303. The face area detection process, for example, detects a local feature amount from an image, and performs pattern matching between the detected local feature amount and the feature amount of each part of the face (eyes, nose, mouth, etc.) that is stored in advance. identifies a region containing a person's face. Note that the face area detection processing method is not limited to the above method, and other face region detection processing may be used.

ステップS1302において、CPU111は、顔領域検出処理により顔領域が検出されたか否かを判定する。ここで、顔領域が検出された(すなわち、人物の顔を含む写真領域が有る)と判定された場合は、ステップS1303に進む。また、顔領域が検出されなかった(すなわち、人物の顔を含む写真領域が無い)と判定された場合は、ステップS1304に進む。 In step S1302, the CPU 111 determines whether or not a face area has been detected by the face area detection process. Here, if it is determined that a face area has been detected (that is, there is a photograph area including a person's face), the process advances to step S1303. If it is determined that no face area has been detected (that is, there is no photograph area containing a person's face), the process advances to step S1304.

ステップS1303において、CPU111は、ステップS1301において検出された顔領域に基づきリピート対象領域の初期領域とする領域を決定する。本実施例では、リピート対象領域の初期領域は、検出された顔を含む写真領域全体とするが、これに限るものではない。なお、写真領域の境界は、ハフ変換による直線検出手法を用いて定めてもよいし、白以外の画素に対してラベリング処理を行って写真領域を検出するような手法を用いてもよい。また、顔の目・鼻・口などの各パーツの位置を基準として、そこから所定サイズ分大きいサイズの領域を初期領域とするようにしてもよい。また、人物の顔検出だけでなく、人物の肩や胸などの特徴も検出し、人物のバストより上の領域(すなわち、バストアップ領域)を初期領域として用いるようにしてもよい。ステップS1303で人物の顔を含む写真領域がリピート対象領域の初期領域として決定されると、ステップS310に進む。図4のような顔写真の領域401を含む名刺400をスキャンした場合、ステップS1303で顔写真領域が初期領域として決定される。したがって、ステップS310では図10のように頂点ハンドラ1021~1024で囲まれる枠内の領域(顔写真領域)が、リピート対象領域の初期領域として表示される。 In step S1303, the CPU 111 determines an initial area of the repeat target area based on the face area detected in step S1301. In this embodiment, the initial area of the repeat target area is the entire photograph area including the detected face, but it is not limited to this. The boundary of the photographic area may be determined using a straight line detection method based on Hough transform, or a method of detecting the photographic area by performing labeling processing on pixels other than white may be used. Alternatively, the position of each part such as the eyes, nose and mouth of the face may be used as a reference, and an area having a size larger than that by a predetermined size may be set as the initial area. In addition to detecting a person's face, features of the person's shoulders, chest, etc. may also be detected, and an area above the person's bust (that is, a bust-up area) may be used as the initial area. When the photographic area including the person's face is determined as the initial area of the repeat target area in step S1303, the process proceeds to step S310. When a business card 400 including a facial photograph area 401 as shown in FIG. 4 is scanned, the facial photograph area is determined as an initial area in step S1303. Therefore, in step S310, the area (face photo area) within the frame surrounded by the vertex handlers 1021 to 1024 as shown in FIG. 10 is displayed as the initial area of the repeat target area.

ステップS1304において、CPU111は、ステップS302において検出された原稿領域を、リピート対象領域の初期領域として決定する。ステップS1304において、リピート対象領域の初期領域が決定されると、ステップS310に進む。図14に示すように、顔写真を含まない名刺をスキャンした場合、ステップS1301で顔領域が検出されないので、ステップS302で検出された原稿領域がリピート対象領域として決定される。したがって、ステップS310では、図14のように頂点ハンドラ1401~1404で囲まれる枠内の領域(原稿領域)が、リピート対象領域の初期領域として表示される。 In step S1304, the CPU 111 determines the document area detected in step S302 as the initial area of the repeat target area. After the initial area of the repeat target area is determined in step S1304, the process proceeds to step S310. As shown in FIG. 14, when a business card containing no face photograph is scanned, the face area is not detected in step S1301, so the document area detected in step S302 is determined as the repeat target area. Therefore, in step S310, the area (original area) within the frame surrounded by the vertex handlers 1401 to 1404 as shown in FIG. 14 is displayed as the initial area of the repeat target area.

以上のように、実施例4では、顔領域が検出されたか否かに応じて、リピート対象領域指定画面に初期表示される領域が切り替わる。なお、図13のS301~S312の各ステップにおける処理の詳細は、実施例1~2の対応するステップ番号の処理と同様であるので説明を割愛する。 As described above, in the fourth embodiment, the area initially displayed on the repeat target area designation screen is switched depending on whether or not the face area is detected. The details of the processing in steps S301 to S312 of FIG. 13 are the same as the processing of the corresponding step numbers in the first and second embodiments, so description thereof will be omitted.

実施例4では、原稿画像から顔領域が検出された場合に、リピート対象指定画面において、人物の顔を含む写真領域をリピート対象領域の初期領域として表示する例について説明した。実施例5においては、顔領域が検出された場合に表示されるリピート対象指定画面の別の例について説明する。 In the fourth embodiment, an example has been described in which, when a face area is detected from a document image, a photographic area including a person's face is displayed as the initial area of the repeat target area on the repeat target designation screen. In Example 5, another example of the repeat target designation screen displayed when a face area is detected will be described.

実施例5では、図13に示した実施例4のフローチャートと同様に、ステップS1302で人物の顔を含む写真領域を検出し、ステップS1303で当該検出した顔領域をリピート対象領域の初期領域として決定する。ただし、その後、ステップS310で表示される実施例5のリピート対象指定画面(図15)が、実施例4のリピート対象指定画面(図10)と異なる。 In the fifth embodiment, similarly to the flowchart of the fourth embodiment shown in FIG. 13, a photographic area including a person's face is detected in step S1302, and the detected face area is determined as the initial area of the repeat target area in step S1303. do. However, after that, the repeat target designation screen (FIG. 15) of the fifth embodiment displayed in step S310 is different from the repeat target designation screen (FIG. 10) of the fourth embodiment.

図15は、顔領域が検出された場合に表示される実施例5のリピート対象領域指定画面の例である。図15のリピート対象領域指定画面には、リピート対象領域の候補を切り替えるためのボタン1503と1504が追加されている。ステップS1303で顔を含む写真領域がリピート対象領域の初期領域として決定されたため、領域1501が初期のリピート対象領域として頂点ハンドラとともに表示され、かつ、顔領域が対象領域となっていることを示すボタン1503が選択された状態となっている。また、このとき、ボタン1504は非選択状態となっており、原稿領域1502の内側の部分領域1505も非対称領域であることが識別できるように、網掛け表示(またはグレーアウト表示)されるようにしてもよい。 FIG. 15 is an example of a repeat target area designation screen according to the fifth embodiment, which is displayed when a face area is detected. Buttons 1503 and 1504 for switching the candidates for the repeat target area are added to the repeat target area designation screen in FIG. Since the photographic area including the face is determined as the initial repeat target area in step S1303, the area 1501 is displayed as the initial repeat target area together with the vertex handler, and a button indicating that the face area is the target area. 1503 is selected. At this time, the button 1504 is in a non-selected state, and the partial area 1505 inside the document area 1502 is also shaded (or grayed out) so that it can be identified as an asymmetric area. good too.

図15のリピート対象領域指定画面において、原稿領域を選択するためのボタン1504(または、領域1705)が、ユーザにより選択された場合、CPU111は、S302で検出された原稿領域を、リピート対象領域として表示切替するように制御する。ボタン1504が選択された場合のリピート対象領域指定画面の例を、図16に示す。 When the user selects button 1504 (or area 1705) for selecting a document area on the repeat target area designation screen in FIG. Control to switch the display. FIG. 16 shows an example of the repeat target area specification screen when the button 1504 is selected.

図16では、原稿領域を指定するためのボタン1604が選択状態となり、顔領域を指定するためのボタン1603が非選択状態となり、且つ、リピート対象領域として原稿領域1601が頂点ハンドラとともに表示される。図16の画面において、顔領域を選択するためのボタン1603(または顔領域1602の内部領域1605)が、ユーザにより選択された場合は、図15の画面に戻って、リピート対象領域は顔領域に切り替わる。 In FIG. 16, the button 1604 for specifying the document area is selected, the button 1603 for specifying the face area is not selected, and the document area 1601 is displayed as the repeat target area together with the vertex handler. In the screen of FIG. 16, when the user selects the button 1603 (or the internal area 1605 of the face area 1602) for selecting the face area, the screen returns to the screen of FIG. switch.

以上のように、実施例5では、顔領域が検出された場合、顔領域と原稿領域の選択切り替えをリピート対象指定画面において簡単に行うことができる。 As described above, in the fifth embodiment, when a face area is detected, selection switching between the face area and the document area can be easily performed on the repeat target designation screen.

(その他の実施例)
本発明は、上述した実施例の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(またはCPUやMPU等)がプログラムを読み出して実行することによっても実現される。
(Other examples)
The present invention supplies software (programs) that realize the functions of the above-described embodiments to a system or device via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or device executes the program. It is also realized by reading and executing.

Claims (13)

スキャン画像に対して画像解析処理を実行することにより原稿領域を検出し、当該検出した原稿領域に基づいて傾き補正を実行することにより傾き補正後の原稿画像を得る検出手段と、
前記検出手段で得られた前記傾き補正後の原稿画像が所定の条件を満たすか否か判定する判定手段と、
前記検出手段で得られた前記傾き補正後の原稿画像と、処理対象領域を示す枠とを表示するための対象領域指定画面を表示する第1の表示手段と、
前記対象領域指定画面に表示されている前記枠により示される処理対象領域に対応する画像を、指定された用紙サイズ内に繰り返しレイアウトすることにより、リピートレイアウト処理後の出力画像を作成する処理手段と、
前記リピートレイアウト処理後の出力画像のプレビュー画像を含むプレビュー画面を表示する第2の表示手段と、
を備え、
前記第1の表示手段により前記対象領域指定画面に表示される前記枠は、前記検出手段により検出された原稿領域に対応する、前記傾き補正後の原稿画像における領域の位置に初期表示され、かつ、当該初期表示された枠の位置はユーザの指示に基づいて変更可能であり、
前記判定手段で前記傾き補正後の原稿画像が前記所定の条件を満たすと判定した場合は、前記第1の表示手段で前記対象領域指定画面を表示させる一方、
前記判定手段で前記傾き補正後の原稿画像が前記所定の条件を満たさないと判定した場合は、前記検出手段で検出された原稿領域に対応する、前記傾き補正後の原稿画像における領域の画像を初期の処理対象領域の画像として、前記処理手段で当該初期の処理対象領域の画像を前記指定された用紙サイズ内に繰り返しレイアウトすることにより作成されたリピートレイアウト処理後の出力画像のプレビュー画像を含むプレビュー画面を、前記第2の表示手段で表示させる、ことを特徴とする画像処理装置。
detection means for detecting a document area by performing image analysis processing on a scanned image and performing skew correction based on the detected document area to obtain a document image after skew correction;
determining means for determining whether or not the tilt-corrected document image obtained by the detecting means satisfies a predetermined condition;
first display means for displaying a target area designation screen for displaying the tilt-corrected document image obtained by the detection means and a frame indicating a processing target area;
and processing means for creating an output image after repeat layout processing by repeatedly laying out an image corresponding to the processing target area indicated by the frame displayed on the target area specifying screen within a specified paper size. ,
second display means for displaying a preview screen including a preview image of the output image after the repeat layout process;
with
The frame displayed on the target area designation screen by the first display means is initially displayed at the position of the area in the document image after tilt correction corresponding to the document area detected by the detection means, and , the position of the initially displayed frame can be changed based on the user's instruction ,
When the determination means determines that the document image after the tilt correction satisfies the predetermined condition, the first display means displays the target area designation screen,
If the determining means determines that the document image after tilt correction does not satisfy the predetermined condition, the image of the area in the document image after tilt correction corresponding to the document area detected by the detecting means is determined. The image of the initial processing target area includes a preview image of an output image after repeat layout processing, which is created by repeatedly laying out the image of the initial processing target area within the specified paper size by the processing means. An image processing apparatus , wherein a preview screen is displayed by the second display means .
前記処理手段は、
前記対象領域指定画面において前記ユーザの指示に基づいて前記枠の位置が変更された場合、当該変更後の枠により示される処理対象領域に対応する画像を、前記指定された用紙サイズ内に繰り返しレイアウトすることにより、リピートレイアウト処理後の出力画像を作成し、
前記対象領域指定画面において前記ユーザの指示に基づいて前記枠の位置が変更されなかった場合、前記初期表示された枠により示される処理対象領域に対応する画像を用いて処理を実行する、
ことを特徴とする請求項1に記載の画像処理装置。
The processing means
When the position of the frame is changed on the target area specification screen based on the user's instruction, the image corresponding to the processing target area indicated by the changed frame is repeatedly laid out within the specified paper size. to create an output image after repeat layout processing ,
If the position of the frame is not changed on the target area designation screen based on the user's instruction, the image corresponding to the processing target area indicated by the initially displayed frame is used to perform processing.
2. The image processing apparatus according to claim 1, wherein:
前記処理手段は、さらに、前記作成されたリピートレイアウト処理後の出力画像を用いて印刷処理を実行するように制御する、ことを特徴とする請求項に記載の画像処理装置。 2. The image processing apparatus according to claim 1 , wherein said processing means further performs control to execute print processing using said created output image after repeat layout processing. 前記第2の表示手段で表示された前記プレビュー画面において処理対象領域の変更がユーザにより指示されたならば、前記第1の表示手段により前記対象領域指定画面を表示する、ことを特徴とする請求項に記載の画像処理装置。 2. A method for specifying a target area on said preview screen displayed by said second display means , wherein said first display means displays said target area designation screen when said user instructs to change said process target area. Item 1. The image processing apparatus according to item 1 . 前記判定手段は、前記傾き補正後の原稿画像のサイズが所定のサイズより大きい場合に前記所定条件を満たす、と判定することを特徴とする請求項に記載の画像処理装置。 2. The image processing apparatus according to claim 1 , wherein said determining means determines that said predetermined condition is satisfied when the size of the document image after said tilt correction is larger than a predetermined size. 前記判定手段は、前記傾き補正後の原稿画像内に、複数の属性の領域が含まれる場合に前記所定条件を満たす、と判定することを特徴とする請求項に記載の画像処理装置。 2. The image processing apparatus according to claim 1 , wherein said determining means determines that said predetermined condition is satisfied when the document image after said tilt correction includes areas of a plurality of attributes. スキャン画像に対して画像解析処理を実行することにより原稿領域を検出し、当該検出した原稿領域に基づいて傾き補正を実行することにより傾き補正後の原稿画像を得る検出手段と、
前記検出手段で得られた前記傾き補正後の原稿画像から、人物の顔を含む写真領域を検出する顔検出手段と、
前記検出手段で得られた前記傾き補正後の原稿画像と、処理対象領域を示す枠とを表示するための対象領域指定画面を表示する第1の表示手段と、
前記対象領域指定画面に表示されている前記枠により示される処理対象領域に対応する画像を用いて処理を実行する処理手段と、
を備え、
前記顔検出手段で前記写真領域が検出されなかった場合、前記第1の表示手段は、前記検出手段で検出された原稿領域に対応する、前記傾き補正後の原稿画像における領域を初期の処理対象領域として、前記傾き補正後の原稿画像と当該初期の処理対象領域を示す枠と前記対象領域指定画面において初期表示する一方
前記顔検出手段で前記写真領域が検出された場合、前記第1の表示手段は、前記顔検出手段で検出された前記写真領域を初期の処理対象領域として、前記傾き補正後の原稿画像と当該初期の処理対象領域を示す枠と前記対象領域指定画面において初期表示し、
前記対象領域指定画面において初期表示された枠の位置はユーザの指示に基づいて変更可能である
ことを特徴とする画像処理装置。
detection means for detecting a document area by performing image analysis processing on a scanned image and performing skew correction based on the detected document area to obtain a document image after skew correction;
face detection means for detecting a photographic area including a person's face from the tilt-corrected document image obtained by the detection means ;
first display means for displaying a target area designation screen for displaying the tilt-corrected document image obtained by the detection means and a frame indicating a processing target area;
processing means for executing processing using an image corresponding to the processing target area indicated by the frame displayed on the target area designation screen;
with
When the photograph area is not detected by the face detection means, the first display means performs initial processing on the area of the document image after the tilt correction corresponding to the document area detected by the detection means. initially displaying the original image after the tilt correction and a frame indicating the initial processing target region as the target region on the target region specifying screen;
When the photograph area is detected by the face detection means, the first display means treats the photograph area detected by the face detection means as an initial processing target area, and displays the document image after the tilt correction and the corresponding original image. initially displaying a frame indicating an initial processing target area on the target area specification screen ;
The position of the frame initially displayed on the target area designation screen can be changed based on the user's instruction ,
An image processing apparatus characterized by:
前記顔検出手段で前記写真領域が検出された場合、前記第1の表示手段は、前記処理対象領域を、前記検出手段で得られた前記傾き補正後の原稿画像に対応する領域に切り替えるためのボタンを前記対象領域指定画面内に更に表示する、ことを特徴とする請求項に記載の画像処理装置。 When the photograph area is detected by the face detection means, the first display means switches the processing target area to an area corresponding to the original image after the inclination correction obtained by the detection means. 8. The image processing apparatus according to claim 7 , wherein a button is further displayed on said target area designation screen. 前記検出手段で得られた前記傾き補正後の原稿画像は、前記検出した原稿領域に基づいて原稿画像の抽出と傾き補正とを実行することにより得られる画像である、ことを特徴とする請求項1乃至8のいずれか1項に記載の画像処理装置。 3. The tilt-corrected document image obtained by the detection means is an image obtained by executing the document image extraction and tilt correction based on the detected document area. 9. The image processing apparatus according to any one of 1 to 8 . コンピュータを、請求項1乃至のいずれか1項に記載の画像処理装置の各手段として機能させるためのプログラム。 A program for causing a computer to function as each means of the image processing apparatus according to any one of claims 1 to 9 . 請求項10に記載のプログラムを格納した、コンピュータ読み取り可能な記憶媒体。 A computer-readable storage medium storing the program according to claim 10 . スキャン画像に対して画像解析処理を実行することにより原稿領域を検出し、当該検出した原稿領域に基づいて傾き補正を実行することにより傾き補正後の原稿画像を得る検出ステップと、
前記検出ステップで得られた前記傾き補正後の原稿画像が所定の条件を満たすか否か判定する判定ステップと、
当該得られた前記傾き補正後の原稿画像と、処理対象領域を示す枠とを表示するための対象領域指定画面を表示する第1の表示ステップと、
前記対象領域指定画面に表示されている前記枠により示される処理対象領域に対応する画像を、指定された用紙サイズ内に繰り返しレイアウトすることにより、リピートレイアウト処理後の出力画像を作成する処理ステップと、
前記リピートレイアウト処理後の出力画像のプレビュー画像を含むプレビュー画面を表示する第2の表示ステップと、
を備え、
前記第1の表示ステップで前記対象領域指定画面に表示される前記枠は、前記検出ステップで検出された原稿領域に対応する、前記傾き補正後の原稿画像における領域の位置に初期表示され、かつ、当該初期表示された枠の位置はユーザの指示に基づいて変更可能であり、
前記判定ステップで前記傾き補正後の原稿画像が前記所定の条件を満たすと判定した場合は、前記第1の表示ステップで前記対象領域指定画面を表示させる一方、
前記判定ステップで前記傾き補正後の原稿画像が前記所定の条件を満たさないと判定した場合は、前記検出ステップで検出された前記原稿領域に対応する、前記傾き補正後の原稿画像における領域の画像を初期の処理対象領域の画像として、前記処理ステップで当該初期の処理対象領域の画像を前記指定された用紙サイズ内に繰り返しレイアウトすることにより作成されたリピートレイアウト処理後の出力画像のプレビュー画像を含むプレビュー画面を、前記第2の表示ステップで表示させる、ことを特徴とする画像処理方法。
a detection step of detecting a document area by performing image analysis processing on a scanned image, and performing skew correction based on the detected document area to obtain a document image after skew correction;
a determination step of determining whether or not the tilt-corrected document image obtained in the detection step satisfies a predetermined condition;
a first display step of displaying a target area designation screen for displaying the obtained document image after tilt correction and a frame indicating a processing target area;
a processing step of creating an output image after repeat layout processing by repeatedly laying out an image corresponding to the processing target area indicated by the frame displayed on the target area specifying screen within a specified paper size; ,
a second display step of displaying a preview screen including a preview image of the output image after the repeat layout process;
with
The frame displayed on the target area designation screen in the first display step is initially displayed at the position of the area in the document image after tilt correction corresponding to the document area detected in the detection step, and , the position of the initially displayed frame can be changed based on the user's instruction ,
When it is determined in the determination step that the document image after the tilt correction satisfies the predetermined condition, the target area designation screen is displayed in the first display step,
When it is determined in the determination step that the document image after the tilt correction does not satisfy the predetermined condition, an image of the region in the document image after the tilt correction corresponding to the document region detected in the detection step. is the image of the initial processing target area, and the preview image of the output image after the repeat layout process created by repeatedly laying out the image of the initial processing target area within the specified paper size in the processing step and displaying a preview screen including the preview screen in the second display step .
スキャン画像に対して画像解析処理を実行することにより原稿領域を検出し、当該検出した原稿領域に基づいて傾き補正を実行することにより傾き補正後の原稿画像を得る検出ステップと、a detection step of detecting a document area by performing image analysis processing on a scanned image, and performing skew correction based on the detected document area to obtain a document image after skew correction;
前記検出ステップで得られた前記傾き補正後の原稿画像から、人物の顔を含む写真領域を検出する顔検出ステップと、a face detection step of detecting a photographic area including a person's face from the tilt-corrected document image obtained in the detection step;
前記検出ステップで得られた前記傾き補正後の原稿画像と、処理対象領域を示す枠とを表示するための対象領域指定画面を表示する第1の表示ステップと、a first display step of displaying a target area designation screen for displaying the tilt-corrected document image obtained in the detection step and a frame indicating a processing target area;
前記対象領域指定画面に表示されている前記枠により示される処理対象領域に対応する画像を用いて処理を実行する処理ステップと、a processing step of executing a process using an image corresponding to the processing target area indicated by the frame displayed on the target area specifying screen;
を備え、with
前記顔検出ステップで前記写真領域が検出されなかった場合、前記第1の表示ステップでは、前記検出ステップで検出された原稿領域に対応する、前記傾き補正後の原稿画像における領域を初期の処理対象領域として、前記傾き補正後の原稿画像と当該初期の処理対象領域を示す枠とを前記対象領域指定画面において初期表示する一方、If the photo area is not detected in the face detection step, in the first display step, the area of the document image after tilt correction corresponding to the document area detected in the detection step is subjected to initial processing. while initially displaying the original image after the tilt correction and a frame indicating the initial processing target region as the region on the target region designation screen;
前記顔検出ステップで前記写真領域が検出された場合、前記第1の表示ステップでは、前記顔検出ステップで検出された前記写真領域を初期の処理対象領域として、前記傾き補正後の原稿画像と当該初期の処理対象領域を示す枠とを前記対象領域指定画面において初期表示し、When the photograph area is detected in the face detection step, the first display step sets the photograph area detected in the face detection step as an initial processing target area, and displays the tilt-corrected document image and the relevant document image. initially displaying a frame indicating an initial processing target area on the target area specification screen;
前記対象領域指定画面において初期表示された枠の位置はユーザの指示に基づいて変更可能である、The position of the frame initially displayed on the target area designation screen can be changed based on the user's instruction,
ことを特徴とする画像処理方法。An image processing method characterized by:
JP2019001956A 2018-03-13 2019-01-09 Image processing device, program, image processing method Active JP7250526B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/295,936 US10896012B2 (en) 2018-03-13 2019-03-07 Image processing apparatus, image processing method, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018045958 2018-03-13
JP2018045958 2018-03-13

Publications (3)

Publication Number Publication Date
JP2019161639A JP2019161639A (en) 2019-09-19
JP2019161639A5 JP2019161639A5 (en) 2022-01-17
JP7250526B2 true JP7250526B2 (en) 2023-04-03

Family

ID=67993607

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019001956A Active JP7250526B2 (en) 2018-03-13 2019-01-09 Image processing device, program, image processing method

Country Status (1)

Country Link
JP (1) JP7250526B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007253488A (en) 2006-03-24 2007-10-04 Seiko Epson Corp Printer
JP2013106154A (en) 2011-11-11 2013-05-30 Pfu Ltd Image processing apparatus, line detection method, and computer program
JP2013123119A (en) 2011-12-09 2013-06-20 Sharp Corp Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, computer program, and recording medium
JP2015103873A (en) 2013-11-21 2015-06-04 キヤノン株式会社 Image processing device, image processing method, and program
JP2016111390A (en) 2014-12-02 2016-06-20 シャープ株式会社 Image formation apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007253488A (en) 2006-03-24 2007-10-04 Seiko Epson Corp Printer
JP2013106154A (en) 2011-11-11 2013-05-30 Pfu Ltd Image processing apparatus, line detection method, and computer program
JP2013123119A (en) 2011-12-09 2013-06-20 Sharp Corp Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, computer program, and recording medium
JP2015103873A (en) 2013-11-21 2015-06-04 キヤノン株式会社 Image processing device, image processing method, and program
JP2016111390A (en) 2014-12-02 2016-06-20 シャープ株式会社 Image formation apparatus

Also Published As

Publication number Publication date
JP2019161639A (en) 2019-09-19

Similar Documents

Publication Publication Date Title
US8115968B2 (en) Image processing apparatus, computer program product, and preview image displaying method
JP4922021B2 (en) Image processing apparatus, program, and preview image display method
JP4871061B2 (en) Image processing apparatus, program, and processing setting method
JP4704288B2 (en) Image processing apparatus and program
JP5373836B2 (en) Operation instruction apparatus and image forming apparatus having the same
JP7094733B2 (en) Image processing device, program, image processing method
US8516363B2 (en) Image processing apparatus, computer program product, and preview image displaying method
JP5963431B2 (en) Image forming apparatus, image display method, and program
JP2007188054A (en) Image forming apparatus, program, and item setting processing method
JP4818984B2 (en) Image processing system, program, and image processing method
JP5890667B2 (en) Image processing apparatus, control method thereof, and program
US10896012B2 (en) Image processing apparatus, image processing method, and storage medium
JP7171235B2 (en) Image processing device, program, image processing method
JP7077135B2 (en) Image processing device, program, image processing method
JP2009048096A (en) Image processing apparatus, image forming apparatus, processing condition setting method and processing condition setting program
JP2005005768A (en) Image processing apparatus, image processing method, and program
JP7250526B2 (en) Image processing device, program, image processing method
JP7027248B2 (en) Image processing equipment, programs, image processing methods
JP5282488B2 (en) Image processing apparatus, program, and image processing method
JP2006260398A (en) Printing controller and its control method
JP4609576B2 (en) Printing device
JP7232402B2 (en) PRINTING CONDITION SETTING DEVICE, PRINTING DEVICE AND PROGRAM
JP2007194713A (en) Image processing apparatus, system, and method, and program
JP4752917B2 (en) Printing device
JP2016213728A (en) Image forming apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220106

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220829

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220906

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221104

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230221

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230322

R151 Written notification of patent or utility model registration

Ref document number: 7250526

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151