JP6756242B2 - Image processing equipment and programs - Google Patents

Image processing equipment and programs Download PDF

Info

Publication number
JP6756242B2
JP6756242B2 JP2016219425A JP2016219425A JP6756242B2 JP 6756242 B2 JP6756242 B2 JP 6756242B2 JP 2016219425 A JP2016219425 A JP 2016219425A JP 2016219425 A JP2016219425 A JP 2016219425A JP 6756242 B2 JP6756242 B2 JP 6756242B2
Authority
JP
Japan
Prior art keywords
image
area
rectangular area
rectangular
sub
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
JP2016219425A
Other languages
Japanese (ja)
Other versions
JP2018078464A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2016219425A priority Critical patent/JP6756242B2/en
Publication of JP2018078464A publication Critical patent/JP2018078464A/en
Application granted granted Critical
Publication of JP6756242B2 publication Critical patent/JP6756242B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書は、コピーのための画像処理に関する。 The present specification relates to image processing for copying.

従来から、スキャン処理と印刷処理とが実行されて原稿がコピーされる。原稿としては、免許証や社員証などの識別カード(IDカードとも呼ばれる)が用いられる場合がある。また、識別カードの両面をコピーする場合に、一方の面と他方の面とを接するように合成する技術が提案されている。 Conventionally, a scanning process and a printing process are executed to copy a document. As the manuscript, an identification card (also called an ID card) such as a driver's license or an employee ID card may be used. Further, when copying both sides of an identification card, a technique has been proposed in which one side and the other side are combined so as to be in contact with each other.

特開2011−61635号公報Japanese Unexamined Patent Publication No. 2011-61635

ところで、写真付の識別カードのように、人物の顔を表す原稿が、コピーされる場合がある。このような、一方側の面が顔を表し、他方側の面が顔を表さずに他のオブジェクト(例えば、文字)を表す原稿を表す画像を印刷する場合、顔を表し得る領域と他の領域とが、印刷され得る。ところが、顔を表し得る領域と他の領域との被記録媒体への印刷態様については、工夫の余地があった。 By the way, a manuscript representing a person's face, such as an identification card with a photo, may be copied. When printing an image representing a manuscript in which one side represents a face and the other side does not represent a face and represents another object (for example, characters), an area that can represent a face and others. Area and can be printed. However, there is room for ingenuity in the printing mode on the recording medium between the area where the face can be represented and the other area.

本明細書は、顔を表し得る領域と他の領域とを被記録媒体に好適に印刷するための技術を開示する。 The present specification discloses a technique for suitably printing a region that can represent a face and another region on a recording medium.

本明細書は、例えば、以下の適用例を開示する。 The present specification discloses, for example, the following application examples.

[適用例1]画像処理装置であって、原稿の第1面を光学的に読み取ることによって生成される第1画像であって、第1の原稿画像と前記第1の原稿画像の周囲の第1の原稿外画像とを含む前記第1画像を表す第1画像データを取得する第1取得部と、前記原稿の前記第1面とは反対側の第2面を光学的に読み取ることによって生成される第2画像であって、第2の原稿画像と前記第2の原稿画像の周囲の第2の原稿外画像とを含む前記第2画像を表す第2画像データを取得する第2取得部と、前記第1画像の中の前記第1の原稿画像を表す第1矩形領域を特定する第1領域特定部と、前記第2画像の中の前記第2の原稿画像を表す第2矩形領域を特定する第2領域特定部と、前記第1画像データと前記第2画像データとの少なくとも一方を用いて、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する判断部と、前記第1矩形領域と前記第2矩形領域とのうちの顔を含むと判断された領域である主矩形領域と、前記第1矩形領域と前記第2矩形領域とのうちの前記主矩形領域とは異なる領域である副矩形領域と、を含む合成画像を表す合成データを生成する生成部であって、前記主矩形領域と前記副矩形領域とは、(1)前記主矩形領域の縁の第1辺に、前記副矩形領域の縁の第2辺が接すること、または、(2)前記主矩形領域の前記縁の前記第1辺の近傍に、前記第1辺から離れて前記副矩形領域の前記縁の前記第2辺が並ぶこと、のいずれかの条件が満たされるように合成される、前記生成部と、前記主矩形領域を表す画像データに、第1画像処理を実行し、前記副矩形領域を表す画像データに、前記第1画像処理とは異なる第2画像処理を実行する、画像処理部と、前記画像処理部による処理済みのデータを用いて、印刷実行部に前記合成画像を印刷させる印刷制御部と、を備える画像処理装置。 [Application Example 1] An image processing apparatus, which is a first image generated by optically reading the first surface of a document, and is a first image around the first document image and the first document image. Generated by optically reading the first acquisition unit for acquiring the first image data representing the first image including the non-manuscript image of 1 and the second surface of the manuscript opposite to the first surface. The second acquisition unit that acquires the second image data representing the second image including the second original image and the second non-manuscript image around the second original image. A first region specifying portion that specifies a first rectangular region representing the first original image in the first image, and a second rectangular region representing the second original image in the second image. It is determined which of the first rectangular region and the second rectangular region includes the face by using the second region specifying unit for specifying the above and at least one of the first image data and the second image data. Of the determination unit, the main rectangular area which is the area determined to include the face of the first rectangular area and the second rectangular area, and the first rectangular area and the second rectangular area. A generation unit that generates composite data representing a composite image including a sub-rectangular region that is a region different from the main rectangular region, and the main rectangular region and the sub-rectangular region are (1) the main rectangular. The first side of the edge of the region is in contact with the second side of the edge of the sub-rectangular region, or (2) the vicinity of the first side of the edge of the main rectangular region is separated from the first side. First image processing is performed on the generation unit and the image data representing the main rectangular region, which are synthesized so as to satisfy any of the conditions that the second side of the edge of the sub-rectangular region is aligned. Is executed, and the image data representing the sub-rectangular region is printed by using the image processing unit that executes the second image processing different from the first image processing and the data processed by the image processing unit. An image processing device including a print control unit for printing the composite image on the unit.

この構成によれば、顔を含むと判断された領域である主矩形領域と、主矩形領域とは異なる副矩形領域と、が接するように印刷される場合、または、近傍に並んで印刷される場合に、主矩形領域と副矩形領域とに適切な画像処理を実行できる。 According to this configuration, when the main rectangular area which is the area determined to include the face and the sub-rectangular area different from the main rectangular area are printed so as to be in contact with each other, or when they are printed side by side in the vicinity. In some cases, appropriate image processing can be performed on the main rectangular area and the sub-rectangular area.

[適用例2]画像処理装置であって、原稿の第1面を光学的に読み取ることによって生成される第1画像であって、第1の原稿画像と前記第1の原稿画像の周囲の第1の原稿外画像とを含む前記第1画像を表す第1画像データを取得する第1取得部と、前記原稿の前記第1面とは反対側の第2面を光学的に読み取ることによって生成される第2画像であって、第2の原稿画像と前記第2の原稿画像の周囲の第2の原稿外画像とを含む前記第2画像を表す第2画像データを取得する第2取得部と、前記第1画像の中の前記第1の原稿画像を表す第1矩形領域を特定する第1領域特定部と、前記第2画像の中の前記第2の原稿画像を表す第2矩形領域を特定する第2領域特定部と、前記第1画像データと前記第2画像データとの少なくとも一方を用いて、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する判断部と、前記第1矩形領域と前記第2矩形領域とのうちの顔を含むと判断された領域である主矩形領域と、前記第1矩形領域と前記第2矩形領域とのうちの前記主矩形領域とは異なる領域である副矩形領域と、を含む合成画像を表す合成データを生成する生成部であって、前記主矩形領域の角は、印刷用の被記録媒体上の画像が印刷され得る領域である印刷領域のうちの角に配置され、前記主矩形領域と前記副矩形領域とは、(1)前記主矩形領域の縁の第1辺に、前記副矩形領域の縁の第2辺が接すること、または、(2)前記主矩形領域の前記縁の前記第1辺の近傍に、前記第1辺から離れて前記副矩形領域の前記縁の前記第2辺が並ぶこと、のいずれかの条件が満たされるように合成される、前記生成部と、印刷実行部に前記合成画像を印刷させる印刷制御部と、を備える画像処理装置。 [Application Example 2] An image processing apparatus, which is a first image generated by optically reading a first surface of a document, and is a first image around the first document image and the first document image. Generated by optically reading the first acquisition unit for acquiring the first image data representing the first image including the non-manuscript image of 1 and the second surface of the manuscript opposite to the first surface. The second acquisition unit that acquires the second image data representing the second image including the second manuscript image and the second non-manuscript image around the second manuscript image. A first region specifying portion that specifies a first rectangular region representing the first original image in the first image, and a second rectangular region representing the second original image in the second image. It is determined which of the first rectangular region and the second rectangular region includes a face by using the second region specifying unit for specifying the above and at least one of the first image data and the second image data. Of the determination unit, the main rectangular area which is the area determined to include the face of the first rectangular area and the second rectangular area, and the first rectangular area and the second rectangular area. A generation unit that generates composite data representing a composite image including a sub-rectangular region that is a region different from the main rectangular region, and the corners of the main rectangular region are images on a recording medium for printing. The main rectangular area and the sub-rectangular area are arranged at the corners of the print area which is a printable area, and (1) the first side of the edge of the main rectangular area is the edge of the sub-rectangular area. The second side is in contact, or (2) the second side of the edge of the sub-rectangular region is lined up in the vicinity of the first side of the edge of the main rectangular region, away from the first side. An image processing device including the generation unit and a print control unit for causing a print execution unit to print the composite image, which are synthesized so as to satisfy any of the conditions of.

この構成によれば、顔を含むと判断された領域である主矩形領域と、主矩形領域とは異なる副矩形領域と、が接するように印刷される場合、または、近傍に並んで印刷される場合に、主矩形領域の角を、被記録媒体の角の近くに印刷できる。 According to this configuration, the main rectangular area, which is the area determined to include the face, and the sub-rectangular area different from the main rectangular area are printed so as to be in contact with each other, or are printed side by side in the vicinity. In some cases, the corners of the main rectangular area can be printed near the corners of the recording medium.

なお、本明細書に開示の技術は、種々の態様で実現することが可能であり、例えば、画像処理方法および画像処理装置、それらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体(例えば、一時的ではない記録媒体)、等の形態で実現することができる。 The techniques disclosed in the present specification can be realized in various aspects, for example, an image processing method and an image processing device, a computer program for realizing the functions of those methods or devices, and a computer thereof. It can be realized in the form of a recording medium on which the program is recorded (for example, a recording medium that is not temporary).

一実施例としての複合機200を示す説明図である。It is explanatory drawing which shows the multifunction device 200 as one Example. コピー処理の例を示すフローチャートである。It is a flowchart which shows the example of a copy process. 読み取り処理の例を示すフローチャートである。It is a flowchart which shows the example of a reading process. 読み取り処理の例を示すフローチャートである。It is a flowchart which shows the example of a reading process. 識別カード300の例とスキャン画像の例とを示す説明図である。It is explanatory drawing which shows the example of the identification card 300 and the example of a scanned image. 合成画像の説明図である。It is explanatory drawing of the composite image. 印刷処理の例を示すフローチャートである。It is a flowchart which shows the example of a print process. 印刷処理による印刷の概略図である。It is a schematic diagram of printing by a printing process. 調整に用いられるトーンカーブの例を示すグラフである。It is a graph which shows the example of the tone curve used for adjustment. 主割付領域810と副割付領域820との配置の別の実施例の概略図である。It is the schematic of another embodiment of the arrangement of the main allocation area 810 and the sub-allocation area 820. 主割付領域810と副割付領域820との配置の別の実施例の概略図である。It is the schematic of another embodiment of the arrangement of the main allocation area 810 and the sub-allocation area 820.

A.第1実施例:
図1は、一実施例としての複合機200を示す説明図である。複合機200は、制御装置202と、スキャナ部280と、印刷部290と、を有している。制御装置202は、プロセッサ210と、揮発性記憶装置220と、不揮発性記憶装置230と、画像を表示する表示部240と、ユーザによる操作を受け入れる操作部250と、通信インタフェース270と、を有している。これらの要素は、バスを介して互いに接続されている。
A. First Example:
FIG. 1 is an explanatory diagram showing a multifunction device 200 as an embodiment. The multifunction device 200 includes a control device 202, a scanner unit 280, and a printing unit 290. The control device 202 includes a processor 210, a volatile storage device 220, a non-volatile storage device 230, a display unit 240 for displaying an image, an operation unit 250 for accepting an operation by a user, and a communication interface 270. ing. These elements are connected to each other via a bus.

プロセッサ210は、データ処理を行う装置であり、例えば、CPUである。揮発性記憶装置220は、例えば、DRAMであり、不揮発性記憶装置230は、例えば、フラッシュメモリである。不揮発性記憶装置230は、プログラム232を格納している。プロセッサ210は、プログラム232を実行することによって、スキャナ部280によって光学的に読み取られた画像を、印刷部290に印刷させるコピー処理を実行する(詳細は、後述)。プロセッサ210は、プログラム232の実行に利用される種々の中間データを、記憶装置(例えば、揮発性記憶装置220、不揮発性記憶装置230のいずれか)に、一時的に格納する。本実施例では、プログラム232は、例えば、複合機200の製造者によって、ファームウェアとして、不揮発性記憶装置230に予め格納されている。ただし、プログラム232の少なくとも一部が、外部の装置(例えば、サーバ)から取得されて不揮発性記憶装置230に格納されるように、複合機200が構成されていてもよい。 The processor 210 is a device that performs data processing, for example, a CPU. The volatile storage device 220 is, for example, a DRAM, and the non-volatile storage device 230 is, for example, a flash memory. The non-volatile storage device 230 stores the program 232. By executing the program 232, the processor 210 executes a copy process of causing the printing unit 290 to print the image optically read by the scanner unit 280 (details will be described later). The processor 210 temporarily stores various intermediate data used for executing the program 232 in a storage device (for example, either a volatile storage device 220 or a non-volatile storage device 230). In this embodiment, the program 232 is pre-stored in the non-volatile storage device 230 as firmware by, for example, the manufacturer of the multifunction device 200. However, the multifunction device 200 may be configured so that at least a part of the program 232 is acquired from an external device (for example, a server) and stored in the non-volatile storage device 230.

表示部240は、画像を表示する装置であり、例えば、液晶ディスプレイである。操作部250は、ユーザによる操作を受け取る装置であり、例えば、表示部240上に重ねて配置されたタッチパネルである。ユーザは、操作部250を操作することによって、種々の指示を複合機200に入力可能である。 The display unit 240 is a device for displaying an image, for example, a liquid crystal display. The operation unit 250 is a device that receives an operation by the user, and is, for example, a touch panel that is superposed on the display unit 240. The user can input various instructions to the multifunction device 200 by operating the operation unit 250.

インタフェース270は、他の装置と通信するためのインタフェースである(例えば、USBインタフェース、有線LANインタフェース、IEEE802.11の無線インタフェース)。 Interface 270 is an interface for communicating with other devices (eg, USB interface, wired LAN interface, IEEE 802.11 wireless interface).

スキャナ部280は、CCDやCMOSなどの光電変換素子を用いて光学的に文書等の対象物を読み取ることによって、読み取った画像(「スキャン画像」と呼ぶ)を表すスキャンデータを生成する。スキャンデータのデータ形式は、任意の形式であってよい。本実施例では、スキャンデータのデータ形式は、RGB色空間で表されたビットマップ形式である。以下、RGBの各色成分は、ゼロから255までの256階調で表されることとする。 The scanner unit 280 optically reads an object such as a document using a photoelectric conversion element such as CCD or CMOS to generate scan data representing the read image (referred to as “scan image”). The data format of the scan data may be any format. In this embodiment, the data format of the scan data is a bitmap format represented in the RGB color space. Hereinafter, each color component of RGB is represented by 256 gradations from zero to 255.

印刷部290は、印刷を実行する印刷実行部の例である。印刷部290は、所定の方式(例えば、レーザ方式や、インクジェット方式)で、用紙(被記録媒体の一例)上に画像を印刷する装置である。本実施例では、印刷部290は、シアンC、マゼンタM、イエロY、ブラックKの4種類のインクを用いてカラー画像を印刷可能なインクジェット方式の印刷装置である。印刷部290は、印刷ヘッド291と、搬送機構293と、走査機構294と、制御部295と、を有している。印刷ヘッド291は、色材(ここでは、インク滴)を吐出して用紙上にドットを形成するための複数のノズル292を有している。搬送機構293は、用紙を所定の搬送方向に搬送する装置である。走査機構294は、印刷ヘッド291を搬送方向に交差する所定の走査方向に移動させる装置である。印刷ヘッド291は、色材毎に、搬送方向の位置が互いに異なる複数のノズル292を有している。制御部295は、印刷ヘッド291と搬送機構293と走査機構294とを制御する装置である。制御部295は、例えば、専用の電気回路(例えば、ASIC(Application Specific Integrated Circuit))で構成されている。制御部295による制御の詳細については、後述する。 The print unit 290 is an example of a print execution unit that executes printing. The printing unit 290 is a device that prints an image on paper (an example of a recording medium) by a predetermined method (for example, a laser method or an inkjet method). In this embodiment, the printing unit 290 is an inkjet printing device capable of printing a color image using four types of inks, cyan C, magenta M, yellow Y, and black K. The printing unit 290 includes a printing head 291, a transport mechanism 293, a scanning mechanism 294, and a control unit 295. The print head 291 has a plurality of nozzles 292 for ejecting a coloring material (here, ink droplets) to form dots on the paper. The transport mechanism 293 is a device that transports paper in a predetermined transport direction. The scanning mechanism 294 is a device that moves the print head 291 in a predetermined scanning direction intersecting the transport direction. The print head 291 has a plurality of nozzles 292 whose positions in the transport direction are different from each other for each color material. The control unit 295 is a device that controls the print head 291 and the transfer mechanism 293 and the scanning mechanism 294. The control unit 295 is composed of, for example, a dedicated electric circuit (for example, an ASIC (Application Specific Integrated Circuit)). The details of the control by the control unit 295 will be described later.

図2は、コピー処理の例を示すフローチャートである。このコピー処理は、例えば、ユーザが操作部250を操作することによってコピー指示を入力したことに応じて、プロセッサ210によって開始される。 FIG. 2 is a flowchart showing an example of copy processing. This copy process is started by the processor 210, for example, in response to the user inputting a copy instruction by operating the operation unit 250.

本実施例では、複合機200は、コピー処理として、通常のコピー処理と、識別カードをコピーするためのコピー処理(IDコピーとも呼ぶ)と、を含む複数種類のコピー処理を実行可能である。S100では、ユーザは、操作部250を操作することによって、IDコピーを選択する。以下、IDコピーについて説明し、通常のコピー処理については、説明を省略する。 In this embodiment, the multifunction device 200 can execute a plurality of types of copy processing including a normal copy processing and a copy processing for copying the identification card (also referred to as ID copy) as the copy processing. In S100, the user selects the ID copy by operating the operation unit 250. Hereinafter, ID copy will be described, and description of normal copy processing will be omitted.

S110では、プロセッサ210は、スキャナ部280を制御することによって、識別カードの一方の面を光学的に読み取ることによって生成される第1スキャンデータと、識別カードの他方の面を光学的に読み取ることによって生成される第2スキャンデータと、を取得する。そして、プロセッサ210は、これらのスキャンデータを用いて、識別カードの一方の面を表す画像と他方の面を表す画像とを含む合成画像を表す合成データを生成する(詳細は、後述)。S120では、プロセッサ210は、印刷部290を制御することによって、合成画像を印刷する(詳細は、後述)。そして、図2の処理が終了する。 In S110, the processor 210 optically reads the first scan data generated by optically reading one side of the identification card and the other side of the identification card by controlling the scanner unit 280. The second scan data generated by is acquired. Then, the processor 210 uses these scan data to generate composite data representing a composite image including an image representing one side of the identification card and an image representing the other side (details will be described later). In S120, the processor 210 prints a composite image by controlling the printing unit 290 (details will be described later). Then, the process of FIG. 2 is completed.

図3、図4は、図2のS110の読み取り処理の例を示すフローチャートである。図4は、図3の続きの処理を示している。図3のS200では、原稿の例である識別カードの一方の面が、スキャナ部280によって読み取られる。例えば、ユーザは、スキャナ部280の図示しない原稿台上に識別カードを載せ、そして、操作部250を操作して読み取り開始の指示を入力する。プロセッサ210は、指示に応じて、スキャナ部280を制御し、スキャナ部280に識別カードを読み取らせる。スキャナ部280は、読み取った識別カードを表す第1原稿画像を含む第1スキャン画像を表す第1スキャンデータを生成する。プロセッサ210は、スキャナ部280から、第1スキャンデータを取得する。 3 and 4 are flowcharts showing an example of the reading process of S110 of FIG. FIG. 4 shows a continuation of the process of FIG. In S200 of FIG. 3, one side of the identification card, which is an example of the original, is read by the scanner unit 280. For example, the user places an identification card on a platen (not shown) of the scanner unit 280, and operates the operation unit 250 to input an instruction to start scanning. The processor 210 controls the scanner unit 280 in response to the instruction, and causes the scanner unit 280 to read the identification card. The scanner unit 280 generates first scan data representing the first scan image including the first original image representing the read identification card. The processor 210 acquires the first scan data from the scanner unit 280.

図5(A)、図5(B)は、識別カード300の例を示す説明図である。図5(A)は、識別カード300の表面310を示し、図5(B)は、識別カード300の裏面320を示している。識別カード300の形状は、略矩形状である(識別カード300の角は、丸められてもよく、また、切り落とされてもよい)。図5(A)に示すように、表面310は、顔の写真311と、文字列312、313と、を表している。また、図5(B)に示すように、裏面320は、文字列321、322を表している。このように、通常は、顔の画像は、識別カード300の一方の面のみに、含まれる。なお、各図中の上方向U1、U2は、各面310、320における上方向を示している。 5 (A) and 5 (B) are explanatory views showing an example of the identification card 300. FIG. 5 (A) shows the front surface 310 of the identification card 300, and FIG. 5 (B) shows the back surface 320 of the identification card 300. The shape of the identification card 300 is substantially rectangular (the corners of the identification card 300 may be rounded or cut off). As shown in FIG. 5A, the surface 310 represents a face photograph 311 and character strings 312 and 313. Further, as shown in FIG. 5B, the back surface 320 represents the character strings 321 and 322. As such, the face image is usually included on only one side of the identification card 300. The upward directions U1 and U2 in each figure indicate the upward directions on the surfaces 310 and 320.

図5(C)は、第1スキャン画像の例を示す説明図である。図5(C)の例では、第1スキャン画像410は、識別カード300を表す第1原稿画像415と、第1原稿画像415の周囲の余白部分418と、を含んでいる。本実施例では、スキャン画像は、第1方向Daに平行な2辺と、第1方向Daに垂直な第2方向Dbに平行な2辺と、によって囲まれる矩形状の画像である。また、本実施例では、スキャナ部280は、予め決められたサイズ(例えば、A4サイズ)の原稿を読み取ることが可能である。識別カード300は、このサイズよりも小さい。従って、第1原稿画像415の周囲に余白が生じる。余白部分418は、例えば、スキャナ部280の原稿台のカバーの原稿側の部分の色(例えば、白色)で表される。以下、余白部分418を、第1原稿外画像418とも呼ぶ。第1原稿画像415は、識別カード300の表面310と裏面320とのうちのいずれかの面を表している。以下、第1原稿画像415が、表面310を表すこととして、説明を行う。 FIG. 5C is an explanatory diagram showing an example of the first scanned image. In the example of FIG. 5C, the first scan image 410 includes a first original image 415 representing the identification card 300 and a margin 418 around the first original image 415. In this embodiment, the scanned image is a rectangular image surrounded by two sides parallel to the first direction Da and two sides parallel to the second direction Db perpendicular to the first direction Da. Further, in this embodiment, the scanner unit 280 can read a document of a predetermined size (for example, A4 size). The identification card 300 is smaller than this size. Therefore, a margin is generated around the first original image 415. The margin portion 418 is represented by, for example, the color (for example, white) of the portion of the scanner unit 280 on the document side of the cover of the platen. Hereinafter, the margin portion 418 is also referred to as the first non-manuscript image 418. The first original image 415 represents either the front surface 310 or the back surface 320 of the identification card 300. Hereinafter, the description will be made assuming that the first original image 415 represents the surface 310.

図3のS205では、プロセッサ210は、第1スキャンデータを解析することによって、第1スキャン画像410(図5(C))中の第1原稿画像415を表す第1矩形領域500を特定する。第1矩形領域500を特定する方法としては、種々の方法を採用可能である。例えば、プロセッサ210は、第1スキャン画像410から、余白部分418の色を表す予め決められた色範囲(例えば、白を含む一部の色の範囲)とは異なる色で表された連続な領域を、特定する(以下、特定された1以上の領域のそれぞれを、候補領域と呼ぶ)。そして、プロセッサ210は、特定された1以上の候補領域のうち、最大面積(すなわち、最大画素数)の候補領域を、第1矩形領域500として採用する。最大の候補領域は、識別カード300を表す領域であり、略矩形状の領域である。この略矩形状の候補領域の縁のうち角部分を除いた残りの四辺の部分が、第1矩形領域500の縁の四辺として用いられる。このように、第1矩形領域500は、識別カード300を表す候補領域を包含する最小の矩形領域である。 In S205 of FIG. 3, the processor 210 analyzes the first scan data to identify the first rectangular region 500 representing the first original image 415 in the first scan image 410 (FIG. 5C). As a method for specifying the first rectangular region 500, various methods can be adopted. For example, the processor 210 is a continuous region represented by a color different from a predetermined color range (for example, a range of some colors including white) representing the color of the margin portion 418 from the first scan image 410. (Hereinafter, each of the specified one or more regions is referred to as a candidate region). Then, the processor 210 adopts the candidate area having the maximum area (that is, the maximum number of pixels) among the specified one or more candidate areas as the first rectangular area 500. The largest candidate area is an area representing the identification card 300, which is a substantially rectangular area. The remaining four sides of the edge of the substantially rectangular candidate region excluding the corner portion are used as the four sides of the edge of the first rectangular region 500. As described above, the first rectangular area 500 is the smallest rectangular area including the candidate area representing the identification card 300.

なお、識別カード300を表す候補領域は、第1スキャン画像410に対して傾いている場合がある。この場合、特定される第1矩形領域500も、第1スキャン画像410に対して傾いている。プロセッサ210は、後述する処理で第1矩形領域500の傾いていない画像(すなわち、識別カード300の傾いていない画像)を利用するために、第1矩形領域500の傾き補正を行う。傾き補正の方法としては、種々の方法を採用可能である。例えば、プロセッサ210は、第1矩形領域500の4辺のうち、平行な2辺が、第1スキャン画像410の第1方向Daに平行であり、残りの平行な2辺が、第2方向Dbに平行となるように、第1矩形領域500の画像を回転させる。 The candidate area representing the identification card 300 may be tilted with respect to the first scan image 410. In this case, the specified first rectangular region 500 is also tilted with respect to the first scan image 410. The processor 210 corrects the tilt of the first rectangular region 500 in order to use the non-tilted image of the first rectangular region 500 (that is, the non-tilted image of the identification card 300) in the process described later. As a method of tilt correction, various methods can be adopted. For example, in the processor 210, of the four sides of the first rectangular region 500, two parallel sides are parallel to the first direction Da of the first scan image 410, and the remaining two parallel sides are the second direction Db. The image of the first rectangular region 500 is rotated so as to be parallel to.

図3のS210では、プロセッサ210は、第1矩形領域500の顔認識処理を実行する。顔認識処理は、画像中の顔を認識する処理である。S210では、第1スキャンデータに傾き補正を行って得られる画像データが、用いられる。このような顔認識処理は、第1スキャンデータを用いて行われている、と言うことができる。顔認識処理としては、公知の種々の処理を採用可能である。例えば、所定の器官画像(例えば、目や口を表す画像)を用いたパターンマッチングによって、顔を表す領域を検出する処理を採用可能である。 In S210 of FIG. 3, the processor 210 executes the face recognition process of the first rectangular area 500. The face recognition process is a process of recognizing a face in an image. In S210, image data obtained by performing tilt correction on the first scan data is used. It can be said that such face recognition processing is performed using the first scan data. As the face recognition process, various known processes can be adopted. For example, it is possible to adopt a process of detecting a region representing a face by pattern matching using a predetermined organ image (for example, an image representing eyes and mouth).

S215では、プロセッサ210は、S210の顔認識処理によって顔が検出されたか否かを判断する。第1矩形領域500から顔が検出されるか否かを判断することは、第1矩形領域500に顔が含まれるか否かを判断することと、同じである。 In S215, the processor 210 determines whether or not a face has been detected by the face recognition process of S210. Determining whether or not a face is detected from the first rectangular area 500 is the same as determining whether or not a face is included in the first rectangular area 500.

第1矩形領域500に顔が含まれると判断された場合(S215:Yes)、S220で、プロセッサ210は、顔認識処理の結果に応じて、第1矩形領域500の画像の向きを特定する。顔認識処理では、顔の目や口などの器官の配置、すなわち、顔の向きが特定される。プロセッサ210は、顔の上方向を、第1矩形領域500の画像の上方向501(図5(C))として、特定する。特定された上方向501は、第1矩形領域500によって表される識別カード300の上方向(例えば、表面310(図5(A))の上方向U1)と、同じである。 When it is determined that the face is included in the first rectangular area 500 (S215: Yes), in S220, the processor 210 specifies the orientation of the image in the first rectangular area 500 according to the result of the face recognition process. In the face recognition process, the arrangement of organs such as the eyes and mouth of the face, that is, the orientation of the face is specified. The processor 210 identifies the upward direction of the face as the upward direction 501 (FIG. 5C) of the image of the first rectangular region 500. The identified upward direction 501 is the same as the upward direction of the identification card 300 represented by the first rectangular region 500 (for example, the upward direction U1 of the surface 310 (FIG. 5A)).

S225では、プロセッサ210は、顔を含むと判断された第1矩形領域500の画像の向きが、印刷用の合成画像の後述する第1基準方向になるように、第1矩形領域500の画像を回転させる。 In S225, the processor 210 arranges the image of the first rectangular area 500 so that the orientation of the image of the first rectangular area 500 determined to include the face is the first reference direction described later in the composite image for printing. Rotate.

図6は、合成画像の説明図である。図6(A)には、用紙700と、画像が印刷され得る領域である印刷領域800と、が示されている。用紙700としては、識別カード300と比べて十分に大きい、予め決められたサイズ(例えば、A4サイズ)の用紙が用いられることとする。 FIG. 6 is an explanatory diagram of the composite image. FIG. 6A shows the paper 700 and the print area 800, which is an area on which an image can be printed. As the paper 700, a paper having a predetermined size (for example, A4 size), which is sufficiently larger than the identification card 300, is used.

本実施例では、印刷部290は、いわゆる縁無し印刷を実行可能である。縁無し印刷は、用紙700の全体に画像を印刷可能である。そして、IDコピーでは、縁無し印刷によって、合成画像が印刷される。図示するように、印刷領域800の形状と大きさとは、用紙700の形状と大きさと同じである。図中には、印刷領域800(すなわち、用紙700)の上方向DUと右方向DRと下方向DDと左方向DLとが示されている。印刷領域800と用紙700との形状は、右方向DRに平行な2辺と、下方向DDに平行な2辺と、によって囲まれる矩形状である。 In this embodiment, the printing unit 290 can perform so-called borderless printing. Borderless printing can print an image on the entire sheet 700. Then, in the ID copy, the composite image is printed by borderless printing. As shown in the figure, the shape and size of the print area 800 are the same as the shape and size of the paper 700. In the figure, an upward DU, a right DR, a downward DD, and a left DL of the print area 800 (that is, the paper 700) are shown. The shape of the print area 800 and the paper 700 is a rectangular shape surrounded by two sides parallel to the right DR and two sides parallel to the downward DD.

図6(A)に示すように、印刷領域800の内には、主割付領域810と、副割付領域820と、が配置されている。主割付領域810は、識別カード300のうちの顔を含む面の画像が割り付けられる領域であり、副割付領域820は、識別カード300の反対側の面の画像が割り付けられる領域である。これらの割付領域810、820の形状と大きさとは、図3のS205で特定された第1矩形領域500の形状と大きさに、調整される。 As shown in FIG. 6A, a main allocation area 810 and a sub allocation area 820 are arranged in the print area 800. The main allocation area 810 is an area to which the image of the face including the face of the identification card 300 is assigned, and the sub-allocation area 820 is an area to which the image of the surface opposite to the identification card 300 is assigned. The shapes and sizes of these allocation regions 810 and 820 are adjusted to the shapes and sizes of the first rectangular region 500 specified in S205 of FIG.

主割付領域810は、右方向DRに平行な2辺と、上方向DUに平行な2辺とで囲まれた矩形状の領域である。主割付領域810に示された上方向810uは、主割付領域810に割り付けられる画像の上方向を示している(第1基準方向810uとも呼ぶ)。主割付領域810の上方向810uは、印刷領域800の上方向DUと同じである。主割付領域810は、主割付領域810の上方向810uを基準とする左上の角811が、印刷領域800の左上の角805に位置されるように、配置されている。印刷領域800の左上の角805は、用紙700の左上の角705に対応付けられた角であり、具体的には、用紙700の左上の角705に最も近い角である。以下、主割付領域810を、角領域810とも呼ぶ。 The main allocation area 810 is a rectangular area surrounded by two sides parallel to the right DR and two sides parallel to the upward DU. The upward direction 810u shown in the main allocation area 810 indicates the upward direction of the image allocated to the main allocation area 810 (also referred to as the first reference direction 810u). The upward 810u of the main allocation area 810 is the same as the upward DU of the print area 800. The main allocation area 810 is arranged so that the upper left corner 811 with respect to the upward direction 810u of the main allocation area 810 is located at the upper left corner 805 of the print area 800. The upper left corner 805 of the print area 800 is a corner associated with the upper left corner 705 of the paper 700, and specifically, is the corner closest to the upper left corner 705 of the paper 700. Hereinafter, the main allocation area 810 is also referred to as a corner area 810.

副割付領域820は、右方向DRに平行な2辺と、上方向DUに平行な2辺とで囲まれた矩形状の領域である。副割付領域820は、主割付領域810の下方向DD側(すなわち、主割付領域810よりも用紙700の内側)に配置されている。以下、副割付領域820を、内領域820とも呼ぶ。副割付領域820に示された上方向820uは、副割付領域820に割り付けられる画像の上方向を示している(第2基準方向820uとも呼ぶ)。副割付領域820の上方向820uは、主割付領域810の上方向810uとは反対の方向である。副割付領域820の上方向820uを基準とする下辺827は、主割付領域810の上方向810uを基準とする下辺817に、接している。割付領域810、820の配置と方向810u、820uとは、予め決められている。 The sub-allocation area 820 is a rectangular area surrounded by two sides parallel to the right DR and two sides parallel to the upward DU. The sub-allocation area 820 is arranged on the downward DD side of the main allocation area 810 (that is, inside the paper 700 with respect to the main allocation area 810). Hereinafter, the sub-allocation area 820 is also referred to as an inner area 820. The upward direction 820u shown in the sub-allocation area 820 indicates the upward direction of the image allocated to the sub-allocation area 820 (also referred to as a second reference direction 820u). The upward direction 820u of the sub-allocation area 820 is the opposite direction to the upward direction 810u of the main allocation area 810. The lower side 827 with reference to the upward 820u of the sub-allocation area 820 is in contact with the lower side 817 with reference to the upward 810u of the main allocation area 810. The arrangement of the allocation areas 810 and 820 and the directions 810u and 820u are predetermined.

図3のS225では、プロセッサ210は、顔を含むと判断された第1矩形領域500(図5(C))の画像を、第1矩形領域500の上向きが第1基準方向810u(図6(A))になるように、回転させる。S230では、プロセッサ210は、回転済の第1矩形領域500の画像を、主割付領域810に割り付ける。そして、処理は、図4のS300へ移行する。 In S225 of FIG. 3, the processor 210 displays an image of the first rectangular region 500 (FIG. 5 (C)) determined to include a face, and the upward direction of the first rectangular region 500 is the first reference direction 810u (FIG. 6 (FIG. 6). A)), rotate it so that it becomes. In S230, the processor 210 allocates the rotated image of the first rectangular region 500 to the main allocation region 810. Then, the process shifts to S300 of FIG.

図6(B)は、合成画像490の例を示している。合成画像490は、主割付領域810に割り付けられた画像と、副割付領域820に割り付けられた画像と、を含んでいる。図6(B)の例では、主割付領域810に、第1矩形領域500(図5(C))の画像(第1原稿画像415を含む)が割り付けられている。第1矩形領域500の左上の角511が、主割付領域810の左上の角811に、配置されている。本実施例では、主割付領域810の左上の角811は、印刷領域800(図6(A))の左上の角805(ここでは、用紙700(図6(A))の左上の角705と同じ)に、配置されている。 FIG. 6B shows an example of the composite image 490. The composite image 490 includes an image allocated to the main allocation region 810 and an image allocated to the sub-allocation region 820. In the example of FIG. 6B, the image (including the first original image 415) of the first rectangular region 500 (FIG. 5C) is assigned to the main allocation region 810. The upper left corner 511 of the first rectangular area 500 is arranged at the upper left corner 811 of the main allocation area 810. In this embodiment, the upper left corner 811 of the main allocation area 810 is the upper left corner 805 of the print area 800 (FIG. 6 (A)) (here, the upper left corner 705 of the paper 700 (FIG. 6 (A))). (Same as above).

図4のS300では、識別カードの他方の面が、スキャナ部280によって読み取られる。この処理は、図3のS200と同様に、行われる。ここで、ユーザは、原稿台上に識別カードの反対側の面を載せ、そして、操作部250を操作して読み取り開始の指示を入力する。スキャナ部280は、読み取った識別カードを表す第2原稿画像を含む第2スキャン画像を表す第2スキャンデータを生成する。プロセッサ210は、スキャナ部280から、第2スキャンデータを取得する。 In S300 of FIG. 4, the other side of the identification card is read by the scanner unit 280. This process is performed in the same manner as in S200 of FIG. Here, the user puts the opposite side of the identification card on the platen, and operates the operation unit 250 to input an instruction to start reading. The scanner unit 280 generates second scan data representing a second scan image including a second original image representing the read identification card. The processor 210 acquires the second scan data from the scanner unit 280.

図5(D)は、第2スキャンデータによって表される第2スキャン画像420の例を示す説明図である。第2スキャン画像420も、第1スキャン画像410(図5(C))と同様に、識別カード300を表す第2原稿画像425と、第2原稿画像425の周囲の余白部分428と、を含んでいる(以下、余白部分428を、第2原稿外画像428とも呼ぶ)。第2原稿画像425は、識別カード300の表面310と裏面320とのうち、第1原稿画像415(図3(C))によって表される面とは反対側の面を表している。 FIG. 5D is an explanatory diagram showing an example of the second scan image 420 represented by the second scan data. Similar to the first scan image 410 (FIG. 5 (C)), the second scan image 420 also includes a second original image 425 representing the identification card 300 and a margin portion 428 around the second original image 425. (Hereinafter, the margin portion 428 is also referred to as the second non-manuscript image 428). The second original image 425 represents the surface of the front surface 310 and the back surface 320 of the identification card 300 that is opposite to the surface represented by the first original image 415 (FIG. 3C).

図4のS305では、プロセッサ210は、第2スキャンデータを解析することによって、第2スキャン画像420(図5(D))中の第2原稿画像425を表す第2矩形領域600を特定する。第2矩形領域600の特定方法は、第1矩形領域500の特定方法と同じである。また、プロセッサ210は、第2矩形領域600の傾き補正を行う。 In S305 of FIG. 4, the processor 210 analyzes the second scan data to identify the second rectangular region 600 representing the second original image 425 in the second scan image 420 (FIG. 5 (D)). The method for specifying the second rectangular area 600 is the same as the method for specifying the first rectangular area 500. Further, the processor 210 corrects the inclination of the second rectangular region 600.

図4のS310では、プロセッサ210は、第2矩形領域600の文字認識処理を実行する。文字認識処理は、画像中の文字を認識する処理である。S310では、第2スキャンデータに傾き補正を行って得られる画像データが、用いられる。このような文字認識処理は、第2スキャンデータを用いて行われている、と言うことができる。文字認識処理としては、公知の種々の処理を採用可能である。例えば、所定の文字画像を用いたパターンマッチングによって、文字を検出する処理を採用可能である。 In S310 of FIG. 4, the processor 210 executes the character recognition process of the second rectangular area 600. The character recognition process is a process of recognizing characters in an image. In S310, image data obtained by performing tilt correction on the second scan data is used. It can be said that such character recognition processing is performed using the second scan data. As the character recognition process, various known processes can be adopted. For example, it is possible to adopt a process of detecting characters by pattern matching using a predetermined character image.

S315では、プロセッサ210は、文字認識処理の結果に応じて、第2矩形領域600の向きを特定する。プロセッサ210は、文字認識処理によって特定された文字の上方向を、第2矩形領域600の上方向601(図5(D))として、特定する。例えば、プロセッサ210は、第1方向Da(図5(D))と、第2方向Dbと、第1方向Daに反対の方向と、第2方向Dbに反対の方向と、の4つの方向のそれぞれに関して、その方向を上方向と仮定して文字認識処理を実行する。そして、プロセッサ210は、認識された文字数の最も多い方向を、文字の上方向として採用する。第2矩形領域600から特定される上方向601は、第2矩形領域600によって表される識別カード300の上方向(例えば、裏面320(図5(B))の上方向U2)と、同じである。 In S315, the processor 210 specifies the orientation of the second rectangular area 600 according to the result of the character recognition process. The processor 210 specifies the upward direction of the character specified by the character recognition process as the upward direction 601 (FIG. 5 (D)) of the second rectangular area 600. For example, the processor 210 has four directions: a first direction Da (FIG. 5 (D)), a second direction Db, a direction opposite to the first direction Da, and a direction opposite to the second direction Db. For each, the character recognition process is executed assuming that the direction is upward. Then, the processor 210 adopts the direction having the largest number of recognized characters as the upward direction of the characters. The upward direction 601 specified from the second rectangular area 600 is the same as the upward direction (for example, the upward direction U2 of the back surface 320 (FIG. 5B)) of the identification card 300 represented by the second rectangular area 600. is there.

図4のS320では、プロセッサ210は、図3のS210で第1矩形領域500から顔が検出されたか否かを判断する。本実施例では、プロセッサ210は、第1矩形領域500から顔が検出されなかった場合、第2矩形領域600が顔を含むと判断する。以下、第1矩形領域500と第2矩形領域600とのうち、顔を含むと判断された矩形領域を、主矩形領域と呼ぶ。そして、矩形領域500、600のうち、主矩形領域とは異なる矩形領域を、副矩形領域と呼ぶ。図5(C)、図5(D)の例では、第1矩形領域500が、主矩形領域であり、第2矩形領域600が、副矩形領域である。 In S320 of FIG. 4, the processor 210 determines whether or not a face is detected from the first rectangular region 500 in S210 of FIG. In this embodiment, the processor 210 determines that the second rectangular area 600 includes a face when a face is not detected from the first rectangular area 500. Hereinafter, of the first rectangular area 500 and the second rectangular area 600, the rectangular area determined to include the face is referred to as a main rectangular area. Then, among the rectangular areas 500 and 600, a rectangular area different from the main rectangular area is called a sub-rectangular area. In the examples of FIGS. 5C and 5D, the first rectangular area 500 is the main rectangular area, and the second rectangular area 600 is the sub-rectangular area.

第1矩形領域500から顔が検出された場合(S320:Yes)、S345で、プロセッサ210は、第2矩形領域600の画像の向きが、副割付領域820(図6(A))の第2基準方向820uになるように、第2矩形領域600の画像を回転させる。S350では、プロセッサ210は、回転済の第2矩形領域600の画像を、副割付領域820に割り付ける。そして、図3、図4の処理が終了する。図6(B)に示すように、第2矩形領域600の画像は、第1矩形領域500の画像とは反対の方向を向いている。第2矩形領域600の下辺620が、第1矩形領域500の下辺520と接するように、第1矩形領域500の画像と第2矩形領域600の画像とが合成される。なお、第1矩形領域500の下辺520は、上方向501とは反対の方向側の辺である。第2矩形領域600の下辺620は、上方向601とは反対の方向側の辺である。 When a face is detected from the first rectangular area 500 (S320: Yes), in S345, the processor 210 has the second rectangular area 600 in the second direction of the sub-allocation area 820 (FIG. 6A). The image of the second rectangular region 600 is rotated so as to be in the reference direction 820u. In S350, the processor 210 allocates the rotated image of the second rectangular area 600 to the sub-allocation area 820. Then, the processes of FIGS. 3 and 4 are completed. As shown in FIG. 6B, the image of the second rectangular region 600 faces in the opposite direction to the image of the first rectangular region 500. The image of the first rectangular area 500 and the image of the second rectangular area 600 are combined so that the lower side 620 of the second rectangular area 600 contacts the lower side 520 of the first rectangular area 500. The lower side 520 of the first rectangular region 500 is a side in the direction opposite to the upward direction 501. The lower side 620 of the second rectangular region 600 is a side in the direction opposite to the upward direction 601.

このように、第1矩形領域500が顔を含むと判断される場合には、図3のS230と、図4のS350とによって、第1矩形領域500の画像と第2矩形領域600の画像とが合成される。プロセッサ210は、S230、S350によって、合成画像490(図6(B))を表す合成データを生成する。本実施例では、合成データのデータ形式は、スキャンデータのデータ形式と同じである(例えば、RGBのビットマップ形式)。 In this way, when it is determined that the first rectangular area 500 includes a face, the image of the first rectangular area 500 and the image of the second rectangular area 600 are obtained by S230 of FIG. 3 and S350 of FIG. Is synthesized. The processor 210 generates composite data representing the composite image 490 (FIG. 6B) by S230 and S350. In this embodiment, the data format of the composite data is the same as the data format of the scan data (for example, RGB bitmap format).

第1矩形領域500が識別カード300の裏面320を表し、第2矩形領域600が表面310を表す場合には、図3、図4の処理は、以下のように進行する。図3のS210では、第1矩形領域500から顔が検出されないので、S215の判断結果は、Noである。続くS235、S240、S245、S250は、図4のS310、S315、S345、S350の処理対象の領域を第2矩形領域600から第1矩形領域500に変更して得られる処理と、それぞれ同じである。これにより、第1矩形領域500によって表される裏面320の画像は、図6(A)、図6(B)に示すように、副割付領域820に割り付けられる。また、図4のS320の判断結果は、Noである。続くS325、S330は、図3のS225、S230の処理対象の領域を第1矩形領域500から第2矩形領域600に変更して得られる処理と、それぞれ同じである。これにより、第2矩形領域600によって表される表面310の画像は、図6(A)、図6(B)に示すように、主割付領域810に割り付けられる。このように、本実施例では、第1矩形領域500が顔を含むと判断されない場合には、第2矩形領域600が顔を含むと判断されている。そして、プロセッサ210は、S250、S330によって、合成画像490(図6(B))を表す合成データを生成する。 When the first rectangular area 500 represents the back surface 320 of the identification card 300 and the second rectangular area 600 represents the front surface 310, the processes of FIGS. 3 and 4 proceed as follows. In S210 of FIG. 3, since the face is not detected from the first rectangular region 500, the determination result of S215 is No. Subsequent S235, S240, S245, and S250 are the same as the processing obtained by changing the processing target area of S310, S315, S345, and S350 in FIG. 4 from the second rectangular area 600 to the first rectangular area 500, respectively. .. As a result, the image of the back surface 320 represented by the first rectangular region 500 is allocated to the sub-allocation region 820 as shown in FIGS. 6 (A) and 6 (B). The determination result of S320 in FIG. 4 is No. Subsequent S325 and S330 are the same as the processing obtained by changing the processing target area of S225 and S230 in FIG. 3 from the first rectangular area 500 to the second rectangular area 600, respectively. As a result, the image of the surface 310 represented by the second rectangular region 600 is allocated to the main allocation region 810 as shown in FIGS. 6 (A) and 6 (B). As described above, in this embodiment, when it is not determined that the first rectangular region 500 includes the face, it is determined that the second rectangular region 600 includes the face. Then, the processor 210 generates composite data representing the composite image 490 (FIG. 6 (B)) by S250 and S330.

このように、識別カード300の表面310と裏面320との読み取り順に拘わらずに、顔を含む表面310の画像は、主割付領域810に割り付けられ、裏面320の画像は、副割付領域820に割り付けられる。そして、プロセッサ210は、合成画像490を表す合成データを生成する(S230、S250、S330、S350)。以上により、図3、図4の処理、すなわち、図2のS110が終了する。 In this way, regardless of the reading order of the front surface 310 and the back surface 320 of the identification card 300, the image of the front surface 310 including the face is allocated to the main allocation area 810, and the image of the back surface 320 is allocated to the sub allocation area 820. Be done. Then, the processor 210 generates composite data representing the composite image 490 (S230, S250, S330, S350). As a result, the processing of FIGS. 3 and 4, that is, S110 of FIG. 2 is completed.

図2のS120では、プロセッサ210は、合成データを用いて印刷部290に合成画像を印刷させる。本実施例では、プロセッサ210は、以下の処理を実行する。
S1)合成データによって表される画素値の色変換処理
S2)色変換済のデータを用いるハーフトーン処理
S3)ハーフトーン処理済のデータを用いる印刷データの生成処理
S4)印刷データを印刷部290に供給する処理
以下、順に説明する。
In S120 of FIG. 2, the processor 210 causes the printing unit 290 to print the composite image using the composite data. In this embodiment, the processor 210 executes the following processing.
S1) Color conversion processing of pixel values represented by composite data S2) Halftone processing using color-converted data S3) Print data generation processing using halftone-processed data S4) Print data to print unit 290 Processing to be supplied The following will be described in order.

色変換処理は、合成データによって表される画素値(ここでは、RGBの階調値)を、印刷に利用可能な色材の種類に対応する色空間で表された画素値(ここでは、CMYKの階調値)に変換する処理である。色変換処理は、変換前の階調値と変換後の階調値との対応関係を予め定めるルックアップテーブルを用いて行われる。このようなルックアップテーブルは、複合機200(図1)の製造者によって、プログラム232と共に提供される(図示省略)。 In the color conversion process, the pixel value represented by the composite data (here, the RGB gradation value) is represented by the pixel value represented by the color space corresponding to the type of color material available for printing (here, CMYK). It is a process of converting to the gradation value of. The color conversion process is performed using a look-up table in which the correspondence between the gradation value before conversion and the gradation value after conversion is predetermined. Such a look-up table is provided by the manufacturer of the multifunction device 200 (FIG. 1) together with the program 232 (not shown).

ハーフトーン処理は、色変換済のデータを用いて、画素ごと、かつ、インクの種類ごとに、ドットの形成状態を表すドットデータを生成する処理である。本実施例では、ハーフトーン処理は、誤差マトリクスを利用した誤差拡散処理を用いて実行される。これに代えて、ディザマトリクスを用いるハーフトーン処理が採用されてもよい。ドットの形成状態は、例えば、ドットの有無を含む。また、ドットの形成状態は、ドットの有無と、ドットのサイズと、を含んでも良い。 The halftone process is a process of generating dot data representing a dot formation state for each pixel and each type of ink by using the color-converted data. In this embodiment, the halftone process is executed by using an error diffusion process using an error matrix. Instead of this, halftone processing using a dither matrix may be adopted. The dot formation state includes, for example, the presence or absence of dots. Further, the dot formation state may include the presence / absence of dots and the size of dots.

印刷データの生成処理は、ドットデータを用いて、印刷部290の制御部295によって解釈可能なデータ形式で表された印刷データを生成する処理である。プロセッサ210は、例えば、印刷に用いられる順にドットデータを並べるとともに、各種のプリンタ制御コードや、データ識別コードを付加して印刷データを生成する。 The print data generation process is a process of generating print data represented in a data format that can be interpreted by the control unit 295 of the print unit 290 using the dot data. The processor 210, for example, arranges dot data in the order in which it is used for printing, and adds various printer control codes and data identification codes to generate print data.

プロセッサ210は、生成した印刷データを、印刷部290に供給する。印刷部290の制御部295は、受信した印刷データに従って、印刷ヘッド291と搬送機構293と走査機構294とを制御することによって、合成画像を印刷する。そして、プロセッサ210は、図2の処理を終了する。このように、プロセッサ210は、印刷データを生成し、生成した印刷データを印刷部290に供給することによって、印刷部290に画像を印刷させる。なお、図2のS120の処理としては、上記の処理に限らず、公知の種々の処理を採用可能である。 The processor 210 supplies the generated print data to the printing unit 290. The control unit 295 of the print unit 290 prints a composite image by controlling the print head 291 and the transfer mechanism 293 and the scanning mechanism 294 according to the received print data. Then, the processor 210 ends the process of FIG. In this way, the processor 210 generates print data and supplies the generated print data to the print unit 290 to cause the print unit 290 to print an image. The process of S120 in FIG. 2 is not limited to the above process, and various known processes can be adopted.

以上の処理により、用紙700(図6(A))には、図6(B)に示す合成画像490が印刷される。ユーザは、用紙700から合成画像490が印刷された部分を切り取ることによって、容易に、識別カード300のコピーを取得できる。 By the above processing, the composite image 490 shown in FIG. 6 (B) is printed on the paper 700 (FIG. 6 (A)). The user can easily obtain a copy of the identification card 300 by cutting out the portion on which the composite image 490 is printed from the paper 700.

また、図6(A)、図6(B)で説明したように、プロセッサ210は、合成画像490の角(ここでは、主割付領域810の角811であり、具体的には、主矩形領域の角511)が、印刷領域800のうちの角805に配置されるように、合成画像490を表す合成データを生成する。通常は、印刷領域の角は、用紙700の角に近い位置に配置される。例えば、本実施例では、印刷領域800の角805は、用紙700の角705に配置されている。従って、合成画像490(図6(B))の角811から延びる2つの辺495、498は、用紙700(図6(A))の角705から延びる2個の縁725、728の近傍に、それぞれ配置される。この結果、用紙700のうち、合成画像490の2つの辺495、498の部分を切らずに、残りの2つの辺496、497(図6(B))の部分を切ることによって、容易に、用紙700から合成画像490が印刷された部分(すなわち、識別カード300のコピー)を切り取ることができる。 Further, as described with reference to FIGS. 6A and 6B, the processor 210 is a corner of the composite image 490 (here, the corner 811 of the main allocation area 810, specifically, a main rectangular area. 511) is arranged in the corner 805 of the print area 800 to generate composite data representing the composite image 490. Normally, the corners of the print area are arranged close to the corners of the paper 700. For example, in this embodiment, the corners 805 of the print area 800 are arranged at the corners 705 of the paper 700. Therefore, the two sides 495, 489 extending from the corner 811 of the composite image 490 (FIG. 6 (B)) are located near the two edges 725,728 extending from the corner 705 of the paper 700 (FIG. 6 (A)). Each is placed. As a result, the remaining two sides 496, 497 (FIG. 6 (B)) of the paper 700 are easily cut without cutting the two sides 495 and 298 of the composite image 490. A portion on which the composite image 490 is printed (that is, a copy of the identification card 300) can be cut out from the paper 700.

また、印刷領域800のうちの角805には、顔を含む主矩形領域(ここでは、第1矩形領域500)の角511が、配置される。従って、用紙700の2個の縁725、728には、顔を含む主矩形領域の2つの辺が、配置される。この結果、顔を含む主矩形領域の2つの辺を切らずに済むので、顔を含む面の縁がきれいな状態で、合成画像490が印刷された部分を切り取ることができる。 Further, in the corner 805 of the print area 800, the corner 511 of the main rectangular area (here, the first rectangular area 500) including the face is arranged. Therefore, two sides of the main rectangular area including the face are arranged on the two edges 725 and 728 of the paper 700. As a result, it is not necessary to cut the two sides of the main rectangular area including the face, so that the portion on which the composite image 490 is printed can be cut while the edges of the surface including the face are clean.

また、図3のS210、S215、図4のS320で説明したように、プロセッサ210は、顔認識処理を行って、第1矩形領域500と第2矩形領域600とのいずれが顔を含むかを判断する。従って、矩形領域が顔を含むか否かを、適切に判断できる。 Further, as described in S210 and S215 of FIG. 3 and S320 of FIG. 4, the processor 210 performs face recognition processing to determine which of the first rectangular area 500 and the second rectangular area 600 includes a face. to decide. Therefore, it can be appropriately determined whether or not the rectangular area includes the face.

また、第1矩形領域500が顔を含むと判断された場合(図3:S215:Yes)には、プロセッサ210は、図3のS220で、第1スキャンデータに基づく顔認識処理の結果に応じて第1矩形領域500(すなわち、顔を含む主矩形領域)の向きを特定し、図4のS315で、第2スキャンデータに基づく文字認識処理の結果に応じて第2矩形領域600(すなわち、副矩形領域)の向きを特定する。また、第1矩形領域500が顔を含むと判断されなかった場合(図3:S215:No)には、プロセッサ210は、図3のS240で、第1スキャンデータに基づく文字認識処理の結果に応じて第1矩形領域500(すなわち、副矩形領域)の向きを特定し、図4のS315で、第2スキャンデータに基づく文字認識処理の結果に応じて第2矩形領域600(すなわち、顔を含む主矩形領域)の向きを特定する。このように、顔を含むと判断された主矩形領域の向きと、主矩形領域とは異なる副矩形領域の向きとは、顔認識処理の結果と文字認識処理の結果との少なくとも一方に応じて、特定される。従って、主矩形領域の向きと副矩形領域の向きとを、適切に特定できる。また、第2矩形領域600の向きは、顔認識処理を含まない文字認識処理の結果に応じて特定される。従って、顔認識処理に起因する処理の負担を軽減できる。 Further, when it is determined that the first rectangular area 500 includes a face (FIG. 3: S215: Yes), the processor 210 responds to the result of the face recognition process based on the first scan data in S220 of FIG. The orientation of the first rectangular area 500 (that is, the main rectangular area including the face) is specified, and in S315 of FIG. 4, the second rectangular area 600 (that is, that is, the second rectangular area 600 (that is, the main rectangular area including the face) is specified according to the result of the character recognition processing based on the second scan data. Specify the orientation of the sub-rectangular area). Further, when it is not determined that the first rectangular area 500 includes the face (FIG. 3: S215: No), the processor 210 determines the result of the character recognition process based on the first scan data in S240 of FIG. The orientation of the first rectangular area 500 (that is, the sub-rectangular area) is specified accordingly, and in S315 of FIG. 4, the second rectangular area 600 (that is, the face) is set according to the result of the character recognition processing based on the second scan data. Specify the orientation of the main rectangular area including). As described above, the orientation of the main rectangular area determined to include the face and the orientation of the sub-rectangular area different from the main rectangular area depend on at least one of the result of the face recognition process and the result of the character recognition process. , Identified. Therefore, the orientation of the main rectangular region and the orientation of the sub-rectangular region can be appropriately specified. Further, the orientation of the second rectangular region 600 is specified according to the result of the character recognition process that does not include the face recognition process. Therefore, it is possible to reduce the processing load caused by the face recognition processing.

さらに、図6(A)、図6(B)で説明したように、第1矩形領域500の画像と第2矩形領域600の画像とは、顔を含む主矩形領域(ここでは、第1矩形領域500)の縁の下辺520と副矩形領域(ここでは、第2矩形領域600)の縁の下辺620とが接するように、合成される。従って、合成画像490が印刷された用紙700を主矩形領域と副矩形領域との境界で折り曲げることによって主矩形領域と副矩形領域とを重ねる場合に、副矩形領域の向きを、主矩形領域の向きと同じ向きにできる。 Further, as described with reference to FIGS. 6 (A) and 6 (B), the image of the first rectangular region 500 and the image of the second rectangular region 600 are the main rectangular region including the face (here, the first rectangle). The lower side 520 of the edge of the region 500) and the lower side 620 of the edge of the sub-rectangular region (here, the second rectangular region 600) are combined so as to be in contact with each other. Therefore, when the paper 700 on which the composite image 490 is printed is folded at the boundary between the main rectangle area and the sub-rectangle area to overlap the main rectangle area and the sub-rectangle area, the orientation of the sub-rectangle area is set to that of the main rectangle area. It can be oriented in the same direction as the orientation.

B.第2実施例:
図7は、第2実施例の印刷処理(図2:S120)のフローチャートである。上記の第1実施例の印刷処理との差異は、主矩形領域と副矩形領域との間で異なる画像処理が実行される点だけである。図2のS100、S110の処理は、第1実施例のS100、S110の処理と、それぞれ同じである。
B. Second Example:
FIG. 7 is a flowchart of the printing process (FIG. 2: S120) of the second embodiment. The only difference from the printing process of the first embodiment is that different image processing is executed between the main rectangular area and the sub-rectangular area. The processing of S100 and S110 in FIG. 2 is the same as the processing of S100 and S110 of the first embodiment, respectively.

図8は、第2実施例の印刷の概略図である。図8中には、用紙700と、印刷領域800と、合成画像490と、が示されている。用紙700の右側には、用紙700に対する印刷ヘッド291の相対的な上方向DUの位置が示されている。本実施例では、印刷部290(図1)の走査機構294は、印刷ヘッド291を、用紙700に対して右方向DRに平行な方向(走査方向とも呼ぶ)に移動させる。搬送機構293は、用紙700を上方向DUに向かって搬送する。制御部295は、印刷ヘッド291を用紙700に対して走査方向に移動させる走査の最中に印刷ヘッド291を駆動して用紙700上にドットを形成するパス処理と、用紙700を搬送と、を繰り返すことにより、用紙700上に画像を印刷する。 FIG. 8 is a schematic view of printing of the second embodiment. In FIG. 8, the paper 700, the print area 800, and the composite image 490 are shown. On the right side of the paper 700, the position of the upward DU of the print head 291 with respect to the paper 700 is shown. In this embodiment, the scanning mechanism 294 of the printing unit 290 (FIG. 1) moves the printing head 291 in a direction parallel to the right DR with respect to the paper 700 (also referred to as a scanning direction). The transport mechanism 293 transports the paper 700 toward the upward DU. The control unit 295 drives the print head 291 to form dots on the paper 700 during scanning while moving the print head 291 with respect to the paper 700 in the scanning direction, and conveys the paper 700. By repeating this, the image is printed on the paper 700.

本実施例では、合成画像が複数のバンド領域(ここでは、8個のバンド領域B1〜B8)に区分される。複数のバンド領域B1〜B8は、それぞれ、右方向DRに延びる帯状の領域である。主割付領域810は、上方向DU側の4個のバンド領域B1〜B4で表され、副割付領域820は、下方向DD側の4個のバンド領域B5〜B8で表される。なお、本実施例では、印刷ヘッド291は、1回のパス処理によって、隣合う2個のバンド領域上に、画像を印刷できる。 In this embodiment, the composite image is divided into a plurality of band regions (here, eight band regions B1 to B8). Each of the plurality of band regions B1 to B8 is a band-shaped region extending in the rightward DR. The main allocation region 810 is represented by the four band regions B1 to B4 on the upward DU side, and the sub-allocation region 820 is represented by the four band regions B5 to B8 on the downward DD side. In this embodiment, the print head 291 can print an image on two adjacent band regions by one pass processing.

また、本実施例では、顔を含む主割付領域810の少なくとも一部を表すバンド領域B1〜B4は、マルチパス印刷によって印刷される。主割付領域810を表さずに副割付領域820を表すバンド領域B5〜B8は、シングルパス印刷によって印刷される。シングルパス印刷は、バンド領域の画像の全体を、1回のパス処理で印刷する処理である。マルチパス印刷は、バンド領域の画像を、複数回のパス処理に分けて印刷する処理である。マルチパス印刷では、1個のバンド領域内の複数の画素位置のドットの形成が、複数回のパス処理に分散される。このようなマルチパス印刷の方法としては、公知の種々の方法を採用可能である。図8の例では、主割付領域810を表す4個のバンド領域B1〜B4のそれぞれは、2回のパス処理で印刷される。 Further, in this embodiment, the band areas B1 to B4 representing at least a part of the main allocation area 810 including the face are printed by multipath printing. Band areas B5 to B8, which do not represent the main allocation area 810 but represent the sub-allocation area 820, are printed by single-pass printing. Single-pass printing is a process of printing the entire image of the band area in one pass process. Multi-pass printing is a process of printing an image in a band area by dividing it into a plurality of pass processes. In multi-pass printing, the formation of dots at a plurality of pixel positions in one band region is dispersed in a plurality of pass processes. As such a multi-pass printing method, various known methods can be adopted. In the example of FIG. 8, each of the four band areas B1 to B4 representing the main allocation area 810 is printed by two pass processes.

図8には、合成画像490を印刷するための7回のパス処理P1〜P7が示されている。各パス処理P1〜P7に対応付けられた印刷ヘッド291は、上方向DU側の半分の部分291u(上部分291uと呼ぶ)と下方向DD側の半分の部分291d(下部分291dと呼ぶ)とに区分されており、印刷に利用される部分には、ハッチングが付されている。 FIG. 8 shows seven pass processes P1 to P7 for printing the composite image 490. The print heads 291 associated with the pass processes P1 to P7 have a half portion 291u (referred to as an upper portion 291u) on the upward DU side and a half portion 291d (referred to as a lower portion 291d) on the downward DD side. The parts used for printing are hatched.

第1パス処理P1では、下部分291dが、第1バンド領域B1の画像の一部(具体的には、第1バンド領域B1の複数の画素位置のうちの一部の複数の画素位置)を印刷する。第1パス処理P1の後、用紙700が、1個のバンド領域の幅の長さ(すなわち、印刷ヘッド291の複数のノズルの分布幅の半分の長さ)だけ、上方向DUに搬送され、そして、第2パス処理P2が行われる。第2パス処理P2では、上部分291uが、第1バンド領域B1の画像の残りの部分を印刷し、下部分291dが、第2バンド領域B2の画像の一部を印刷する。このように、バンド領域の一部の複数の画素位置を印刷するパス処理P1〜P5と、1個のバンド領域の幅の長さの搬送と、が交互に繰り返されることによって、主割付領域810(バンド領域B1〜B5)の画像の全体が印刷される。 In the first pass processing P1, the lower portion 291d performs a part of the image of the first band area B1 (specifically, a plurality of pixel positions of a part of the plurality of pixel positions of the first band area B1). Print. After the first pass processing P1, the paper 700 is conveyed to the upward DU by the width of one band region (that is, half the length of the distribution width of the plurality of nozzles of the print head 291). Then, the second pass processing P2 is performed. In the second pass processing P2, the upper portion 291u prints the remaining portion of the image in the first band region B1, and the lower portion 291d prints a part of the image in the second band region B2. In this way, the pass processes P1 to P5 for printing a plurality of pixel positions of a part of the band area and the transfer of the width length of one band area are alternately repeated to obtain the main allocation area 810. The entire image of (band areas B1 to B5) is printed.

第6パス処理P6では、印刷ヘッド291は、2個のバンド領域B5、B6の画像の全体を印刷する。第6パス処理P6の後、用紙700が、2個のバンド領域の幅の長さ(すなわち、印刷ヘッド291の複数のノズルの分布幅の長さ)だけ、上方向DUに搬送され、そして、第7パス処理P7が行われる。第7パス処理P7では、印刷ヘッド291は、2個のバンド領域B7、B8の画像の全体を印刷する。以上により、合成画像490が印刷される。 In the sixth pass processing P6, the print head 291 prints the entire image of the two band regions B5 and B6. After the sixth pass processing P6, the paper 700 is conveyed to the upward DU by the width length of the two band regions (that is, the distribution width length of the plurality of nozzles of the print head 291), and then The seventh pass process P7 is performed. In the seventh pass process P7, the print head 291 prints the entire image of the two band regions B7 and B8. As a result, the composite image 490 is printed.

図7のS400では、プロセッサ210は、合成画像を表す未処理の複数のバンド領域のうち、最も上方向DU側のバンド領域を、処理対象のバンド領域として選択する(以下、対象バンド領域と呼ぶ)。S410では、プロセッサ210は、対象バンド領域が、主割付領域810を表すか否かを判断する。対象バンド領域が主割付領域810を表す場合(S410:Yes)、S420で、プロセッサ210は、第1画像処理を実行する。第1画像処理は、以下の処理を含んでいる。
SA1)合成データによって表される対象バンド領域の画素値のトーンカーブ調整処理
SA2)トーンカーブ調整済の画素値の色変換処理
SA3)色変換済のデータを用いるハーフトーン処理
SA4)ハーフトーン処理済のデータを用いる、マルチパス印刷用のデータの生成処理
以下、順に説明する。
In S400 of FIG. 7, the processor 210 selects the band area on the uppermost DU side from the plurality of unprocessed band areas representing the composite image as the band area to be processed (hereinafter, referred to as a target band area). ). In S410, the processor 210 determines whether or not the target band area represents the main allocation area 810. When the target band area represents the main allocation area 810 (S410: Yes), the processor 210 executes the first image processing in S420. The first image processing includes the following processing.
SA1) Tone curve adjustment processing of the pixel value of the target band area represented by the composite data SA2) Color conversion processing of the pixel value with the tone curve adjusted SA3) Halftone processing using the color-converted data SA4) Halftone processing completed Data generation process for multi-pass printing using the above data will be described below in order.

S420のトーンカーブ調整処理は、合成データによって表される画素値(ここでは、RGBの階調値)を、トーンカーブを用いて調整する処理である。図9は、調整に用いられるトーンカーブの例を示すグラフである。横軸は、調整前の階調値Vi(入力階調値Viと呼ぶ)を示し、縦軸は、調整後の階調値Vo(出力階調値Vo)を示している。図中には、2個のトーンカーブC1、C2が示されている。このようなトーンカーブを用いる階調値の調整は、ガンマ調整とも呼ばれる。本実施例では、RGBのそれぞれの階調値が、調整される。 The tone curve adjustment process of S420 is a process of adjusting the pixel value (here, the RGB gradation value) represented by the composite data by using the tone curve. FIG. 9 is a graph showing an example of a tone curve used for adjustment. The horizontal axis shows the gradation value Vi before adjustment (referred to as input gradation value Vi), and the vertical axis shows the gradation value Vo after adjustment (output gradation value Vo). In the figure, two tone curves C1 and C2 are shown. Adjustment of the gradation value using such a tone curve is also called gamma adjustment. In this embodiment, each gradation value of RGB is adjusted.

第1トーンカーブC1は、最も暗い階調値(ここでは、ゼロ)と最も明るい階調値(ここでは、255)との間の中間の階調範囲において、出力階調値Voが、入力階調値Viよりも大きくなるように、構成されている。この第1トーンカーブC1を用いる場合には、有彩色の領域において、彩度が高くなる。図7のS420では、プロセッサ210は、この第1トーンカーブC1を用いて、階調値を調整する。すなわち、顔を含む主割付領域810の色は、第1トーンカーブC1によって、調整される。これにより、顔の画像の色は、鮮やかな色に、調整される。 In the first tone curve C1, the output gradation value Vo is the input floor in the intermediate gradation range between the darkest gradation value (here, zero) and the brightest gradation value (here, 255). It is configured to be larger than the tuning Vi. When this first tone curve C1 is used, the saturation becomes high in the chromatic region. In S420 of FIG. 7, the processor 210 adjusts the gradation value by using the first tone curve C1. That is, the color of the main allocation region 810 including the face is adjusted by the first tone curve C1. As a result, the color of the face image is adjusted to a vivid color.

第2トーンカーブC2は、後述するように、副割付領域820の色を調整するために、利用される。第2トーンカーブC2は、第1トーンカーブC1とは異なる入力階調値Viと出力階調値Voとの対応関係を示している。第2トーンカーブC2は、ゼロを含む一部の範囲(第1値V1以下の範囲)では、出力階調値Voがゼロに設定され、最大値(255)を含む一部の範囲(第2値V2以上の範囲)では、出力階調値Voが最大値に設定されるように、構成されている。また、第1値V1以上、第2値V2以下の範囲では、出力階調値Voは、入力階調値Viに比例して、ゼロから最大値まで変化する。第2トーンカーブC2を用いる場合には、淡部の色が白色に、濃部の色が黒色に、それぞれ調整される。これにより、白色の背景上に黒色の文字を表す領域のコントラストが高くなり、文字は読みやすくなる。 The second tone curve C2 is used to adjust the color of the sub-allocation region 820, as will be described later. The second tone curve C2 shows a correspondence relationship between the input gradation value Vi and the output gradation value Vo, which are different from those of the first tone curve C1. In the second tone curve C2, the output gradation value Vo is set to zero in a part of the range including zero (the range of the first value V1 or less), and the second tone curve C2 includes a part of the range (second) including the maximum value (255). In the range of the value V2 or more), the output gradation value Vo is configured to be set to the maximum value. Further, in the range of the first value V1 or more and the second value V2 or less, the output gradation value Vo changes from zero to the maximum value in proportion to the input gradation value Vi. When the second tone curve C2 is used, the color of the light portion is adjusted to white and the color of the dark portion is adjusted to black. As a result, the contrast of the area representing the black characters on the white background is increased, and the characters are easy to read.

S420の色変換処理は、トーンカーブ調整済の画素値(ここでは、RGBの階調値)を、印刷に利用可能な色材の種類に対応する色空間で表された画素値(ここでは、CMYKの階調値)に変換する処理である。この色変換処理は、第1実施例のS120(図2)で説明した色変換処理と同じである。また、S420のハーフトーン処理は、第1実施例のS120(図2)で説明したハーフトーン処理と同じである。 In the color conversion process of S420, the tone curve adjusted pixel value (here, RGB gradation value) is represented by the pixel value (here, the pixel value corresponding to the type of color material available for printing). It is a process of converting to a CMYK gradation value). This color conversion process is the same as the color conversion process described in S120 (FIG. 2) of the first embodiment. Further, the halftone processing of S420 is the same as the halftone processing described in S120 (FIG. 2) of the first embodiment.

S420のマルチパス印刷用のデータの生成処理は、以下の通りである。図8で説明したように、対象バンド領域をマルチパス印刷で印刷する場合、対象バンド領域の複数の画素のドットの形成は、複数回のパス処理に分散される。そこで、プロセッサ210は、対象バンド領域のドットデータを、パス処理毎に分割して、パス処理毎のドットデータを生成する。例えば、図7の第1バンド領域B1が対象バンド領域である場合、第1パス処理P1用のドットデータと、第2パス処理P2用のドットデータとが、生成される。ここで、プロセッサ210は、ドットデータに含まれる複数の画素のデータを、印刷に用いられる順に並べる。例えば、複数の画素のそれぞれのドット形成状態を表すデータは、パス処理での印刷ヘッド291の移動方向に合わせて、並べ替えられる。 The data generation process for multipath printing in S420 is as follows. As described with reference to FIG. 8, when the target band area is printed by multi-pass printing, the formation of dots of a plurality of pixels in the target band area is dispersed in a plurality of pass processes. Therefore, the processor 210 divides the dot data of the target band area for each pass process and generates the dot data for each pass process. For example, when the first band region B1 in FIG. 7 is the target band region, dot data for the first pass processing P1 and dot data for the second pass processing P2 are generated. Here, the processor 210 arranges the data of a plurality of pixels included in the dot data in the order in which they are used for printing. For example, the data representing the dot formation state of each of the plurality of pixels is rearranged according to the moving direction of the print head 291 in the pass processing.

図7のS420では、以上の処理により、対象バンド領域を印刷するためのドットデータが生成される。S440では、プロセッサ210は、ドットデータを用いて、印刷データを生成する。S450では、プロセッサ210は、生成した印刷データを、印刷部290に供給する。S460では、印刷部290の制御部295は、受信した印刷データに従って、印刷ヘッド291と搬送機構293と走査機構294とを制御することによって、対象バンド領域の画像を印刷する。このように、プロセッサ210は、S440、S450の処理によって、印刷部290に画像を印刷させる。 In S420 of FIG. 7, dot data for printing the target band area is generated by the above processing. In S440, the processor 210 uses the dot data to generate print data. In S450, the processor 210 supplies the generated print data to the printing unit 290. In S460, the control unit 295 of the printing unit 290 prints an image of the target band region by controlling the print head 291 and the transport mechanism 293 and the scanning mechanism 294 according to the received print data. In this way, the processor 210 causes the printing unit 290 to print the image by the processing of S440 and S450.

なお、印刷部290の制御部295は、図7のS450で、1回のパス処理で用いられる印刷データのうちの一部のみを受信する場合がある。例えば、制御部295は、第2パス処理P2で印刷される第1バンド領域B1と第2バンド領域B2とのうち、第1バンド領域B1の印刷データを先に受信し、その後に、第2バンド領域B2の印刷データを受信する場合がある。このような場合、制御部295は、1回のパス処理で用いられる印刷データの全てを受信したことに応じて、パス処理を開始すればよい。 The control unit 295 of the printing unit 290 may receive only a part of the print data used in one pass processing in S450 of FIG. 7. For example, the control unit 295 first receives the print data of the first band area B1 out of the first band area B1 and the second band area B2 printed by the second pass processing P2, and then the second band area B1. The print data of the band area B2 may be received. In such a case, the control unit 295 may start the pass processing in response to receiving all of the print data used in one pass processing.

S470では、プロセッサ210は、全てのバンド領域が印刷されたか否かを判断する。未処理のバンド領域が残っている場合(S470:No)、プロセッサ210は、S400に移行して、未処理のバンド領域の処理を行う。 In S470, the processor 210 determines whether or not all the band areas have been printed. When the unprocessed band area remains (S470: No), the processor 210 shifts to S400 and processes the unprocessed band area.

対象バンド領域が主割付領域810を表さない場合(S410:No)、すなわち、対象バンド領域が副割付領域820を表す場合、S430で、プロセッサ210は、第2画像処理を実行する。第2画像処理は、以下の処理を含んでいる。
SB1)合成データによって表される対象バンド領域の画素値のトーンカーブ調整処理
SB2)トーンカーブ調整済の画素値の色変換処理
SB3)色変換済のデータを用いるハーフトーン処理
SB4)ハーフトーン処理済のデータを用いる、シングルパス印刷用のデータの生成処理
以下、順に説明する。
When the target band area does not represent the main allocation area 810 (S410: No), that is, when the target band area represents the sub-allocation area 820, the processor 210 executes the second image processing in S430. The second image processing includes the following processing.
SB1) Tone curve adjustment processing of the pixel value of the target band area represented by the composite data SB2) Color conversion processing of the pixel value with the tone curve adjusted SB3) Halftone processing using the color-converted data SB4) Halftone processing completed Data generation process for single-pass printing using the above data will be described below in order.

トーンカーブ調整処理では、図9の第2トーンカーブC2が用いられる。これにより、副割付領域820の色は、黒色の文字を読みやすい色に、調整される。色変換処理とハーフトーン処理とは、S420の色変換処理とハーフトーン処理と、それぞれ同じである。シングルパス印刷用のデータの生成処理では、プロセッサ210は、ハーフトーン処理によって生成されたドットデータに含まれる複数の画素のデータを、印刷に用いられる順に並べることによって、シングルパス印刷用のドットデータを生成する。例えば、図7の第5バンド領域B5が対象バンド領域である場合、第6パス処理P6での印刷ヘッド291の移動方向に合わせて、複数の画素のそれぞれのドット形成状態を表すデータが、並べ替えられる。そして、S440では、プロセッサ210は、S430で生成したドットデータを用いて、印刷データを生成する。 In the tone curve adjustment process, the second tone curve C2 of FIG. 9 is used. As a result, the color of the sub-allocation area 820 is adjusted so that the black characters are easy to read. The color conversion process and the halftone process are the same as the color conversion process and the halftone process of S420, respectively. In the data generation process for single-pass printing, the processor 210 arranges the data of a plurality of pixels included in the dot data generated by the halftone process in the order in which they are used for printing, so that the dot data for single-pass printing is generated. To generate. For example, when the fifth band area B5 in FIG. 7 is the target band area, the data representing the dot formation states of the plurality of pixels are arranged in accordance with the moving direction of the print head 291 in the sixth pass processing P6. Can be replaced. Then, in S440, the processor 210 uses the dot data generated in S430 to generate print data.

全てのバンド領域が印刷された場合(S470:Yes)、プロセッサ210は、図7の処理、すなわち、図2のS120を終了する。これにより、図2の処理が終了する。このように、プロセッサ210は、S440では、画像処理(S420、S430)が施された画像データを用いて得られる合成画像を表す印刷データを生成し、S450では、生成した印刷データを印刷部290に供給する。従って、画像処理が施された適切な合成画像を印刷できる。 When all the band areas have been printed (S470: Yes), the processor 210 ends the process of FIG. 7, that is, S120 of FIG. As a result, the process of FIG. 2 is completed. As described above, in S440, the processor 210 generates print data representing a composite image obtained by using the image data subjected to image processing (S420, S430), and in S450, the generated print data is printed in the print unit 290. Supply to. Therefore, it is possible to print an appropriate composite image that has undergone image processing.

以上の処理により、第2実施例においても、用紙700(図6(A))には、図6(B)に示す合成画像490が印刷される。ユーザは、用紙700から合成画像490が印刷された部分を切り取ることによって、容易に、識別カード300のコピーを取得できる。 By the above processing, the composite image 490 shown in FIG. 6 (B) is printed on the paper 700 (FIG. 6 (A)) also in the second embodiment. The user can easily obtain a copy of the identification card 300 by cutting out the portion on which the composite image 490 is printed from the paper 700.

また、図7のS420、S430で説明したように、顔を含むと判断された主矩形領域を表す画像データには、第1画像処理が実行され、副矩形領域を表す画像データには、第1画像処理とは異なる第2画像処理が実行される。従って、主矩形領域と副矩形領域とが接するように合成された画像が印刷される場合に、主矩形領域と副矩形領域とに適切な画像処理を実行できる。 Further, as described in S420 and S430 of FIG. 7, the first image processing is executed on the image data representing the main rectangular area determined to include the face, and the image data representing the sub-rectangular area is the first image data. A second image process different from the first image process is executed. Therefore, when an image synthesized so that the main rectangle area and the sub-rectangle area are in contact with each other is printed, appropriate image processing can be executed on the main rectangle area and the sub-rectangle area.

具体的には、S420の第1画像処理は、印刷部290にマルチパス印刷で画像を印刷させるためのドットデータを生成する処理を含み、S430の第2画像処理は、印刷部290にシングルパス印刷で画像を印刷させるためのドットデータを生成する処理を含む。従って、主矩形領域によって表される顔の印刷画質を高めつつ、副矩形領域の印刷に要する時間を短くできる。 Specifically, the first image processing of S420 includes a process of generating dot data for causing the printing unit 290 to print an image by multipass printing, and the second image processing of S430 includes a single pass to the printing unit 290. It includes a process of generating dot data for printing an image by printing. Therefore, it is possible to shorten the time required for printing the sub-rectangular area while improving the print quality of the face represented by the main rectangular area.

また、S420の第1画像処理は、第1トーンカーブC1に従って色を調整する処理を含み、S430の第2画像処理は、第2トーンカーブC2に従って色を調整する処理を含む。ここで、第2トーンカーブC2は、少なくとも一部の色範囲の色を、第1トーンカーブC1による調整済の色とは異なる色に調整する。従って、主矩形領域によって表される顔と、副矩形領域のオブジェクト(例えば、文字)とを、それぞれに適した色で印刷できる。 Further, the first image processing of S420 includes a process of adjusting the color according to the first tone curve C1, and the second image processing of S430 includes a process of adjusting the color according to the second tone curve C2. Here, the second tone curve C2 adjusts the color of at least a part of the color range to a color different from the color adjusted by the first tone curve C1. Therefore, the face represented by the main rectangular area and the object (for example, characters) in the sub-rectangular area can be printed in colors suitable for each.

特に、図9に示すように、少なくとも一部の入力階調値Viの範囲において、第1トーンカーブC1の出力階調値Voは、第2トーンカーブC2の出力階調値Voよりも大きい。従って、少なくとも一部の色範囲において、第1トーンカーブC1を用いる場合には、第2トーンカーブC2を用いる場合と比べて、印刷される有彩色の彩度を高めることができる。この結果、主割付領域810の顔を、鮮やかな色で印刷できる。 In particular, as shown in FIG. 9, the output gradation value Vo of the first tone curve C1 is larger than the output gradation value Vo of the second tone curve C2 in the range of at least a part of the input gradation value Vi. Therefore, when the first tone curve C1 is used in at least a part of the color range, the saturation of the printed chromatic color can be enhanced as compared with the case where the second tone curve C2 is used. As a result, the face of the main allocation area 810 can be printed in bright colors.

また、第1トーンカーブC1が用いられる場合、白を含む薄い色範囲の色は、白に調整され、黒を含む濃い色範囲の色は、黒に調整される。従って、副割付領域820の黒色の文字を表す部分を、高いコントラストで印刷できる。 When the first tone curve C1 is used, the color in the light color range including white is adjusted to white, and the color in the dark color range including black is adjusted to black. Therefore, the portion of the sub-allocation area 820 representing the black characters can be printed with high contrast.

C.矩形領域の配置の別の実施例:
図10、図11は、主割付領域810と副割付領域820との配置の別の実施例の概略図である。図10(A)の例では、主割付領域810の配置と向きとは、図6(A)の主割付領域810の配置と向きと、それぞれ同じである。副割付領域820は、主割付領域810の右方向DR側に配置されている。副割付領域820の上方向820uは、主割付領域810の上方向810uと同じ方向である。副割付領域820の上方向820uを基準とする左辺828は、主割付領域810の上方向810uを基準とする右辺816に、接している。図10(A)の下部に示すように、副割付領域820に割り付けられた副矩形領域(ここでは、第2矩形領域600)の左辺640は、主割付領域810に割り付けられた主矩形領域(ここでは、第1矩形領域500)の右辺530に、接している。
C. Another embodiment of the arrangement of rectangular areas:
10 and 11 are schematic views of another embodiment in which the main allocation area 810 and the sub allocation area 820 are arranged. In the example of FIG. 10A, the arrangement and orientation of the main allocation area 810 are the same as the arrangement and orientation of the main allocation area 810 of FIG. 6A. The sub-allocation area 820 is arranged on the right DR side of the main allocation area 810. The upward direction 820u of the sub-allocation area 820 is the same direction as the upward direction 810u of the main allocation area 810. The left side 828 with reference to the upward 820u of the sub-allocation area 820 is in contact with the right side 816 with reference to the upward 810u of the main allocation area 810. As shown in the lower part of FIG. 10A, the left side 640 of the sub-rectangular area (here, the second rectangular area 600) allocated to the sub-allocation area 820 is the main rectangular area (in this case, the main rectangular area 810) allocated to the main allocation area 810. Here, it touches the right side 530 of the first rectangular region 500).

図10(B)の例では、主割付領域810の上方向810uは、印刷領域800の左方向DLと同じである。主割付領域810は、主割付領域810の上方向810uを基準とする右上の角812が、印刷領域800の左上の角805に位置されるように、配置されている。副割付領域820は、主割付領域810の右方向DR側に配置されている。副割付領域820の上方向820uは、主割付領域810の上方向810uとは反対の方向(すなわち、右方向DR)である。副割付領域820の上方向820uを基準とする下辺827は、主割付領域810の上方向810uを基準とする下辺817に、接している。図10(B)の下部に示すように、副割付領域820に割り付けられた副矩形領域(ここでは、第2矩形領域600)の下辺620は、主割付領域810に割り付けられた主矩形領域(ここでは、第1矩形領域500)の下辺520に、接している。 In the example of FIG. 10B, the upward 810u of the main allocation area 810 is the same as the left DL of the print area 800. The main allocation area 810 is arranged so that the upper right corner 812 with respect to the upward 810u of the main allocation area 810 is located at the upper left corner 805 of the print area 800. The sub-allocation area 820 is arranged on the right DR side of the main allocation area 810. The upward 820u of the sub-allocation region 820 is in the direction opposite to the upward 810u of the main allocation region 810 (that is, rightward DR). The lower side 827 with reference to the upward 820u of the sub-allocation area 820 is in contact with the lower side 817 with reference to the upward 810u of the main allocation area 810. As shown in the lower part of FIG. 10B, the lower side 620 of the sub-rectangular area (here, the second rectangular area 600) allocated to the sub-allocated area 820 is the main rectangular area (in this case, the main rectangular area 810) allocated to the main allocation area 810. Here, it touches the lower side 520 of the first rectangular region 500).

図10(C)の例では、主割付領域810の配置と向きとは、図10(B)の主割付領域810の配置と向きと、それぞれ同じである。副割付領域820は、主割付領域810の下方向DD側に配置されている。副割付領域820の上方向820uは、主割付領域810の上方向810uと同じ方向である。副割付領域820の上方向820uを基準とする右辺826は、主割付領域810の上方向810uを基準とする左辺818に、接している。図10(C)の下部に示すように、副割付領域820に割り付けられた副矩形領域(ここでは、第2矩形領域600)の右辺630は、主割付領域810に割り付けられた主矩形領域(ここでは、第1矩形領域500)の左辺540に、接している。 In the example of FIG. 10C, the arrangement and orientation of the main allocation area 810 are the same as the arrangement and orientation of the main allocation area 810 of FIG. 10B. The sub-allocation area 820 is arranged on the downward DD side of the main allocation area 810. The upward direction 820u of the sub-allocation area 820 is the same direction as the upward direction 810u of the main allocation area 810. The right side 826 with reference to the upward 820u of the sub-allocation area 820 is in contact with the left side 818 with reference to the upward 810u of the main allocation area 810. As shown in the lower part of FIG. 10C, the right side 630 of the sub-rectangular area (here, the second rectangular area 600) allocated to the sub-allocation area 820 is the main rectangular area (in this case, the main rectangular area 810) allocated to the main allocation area 810. Here, it touches the left side 540 of the first rectangular region 500).

図10(D)の例では、主割付領域810の上方向810uは、下方向DDと同じである。主割付領域810は、主割付領域810の上方向810uを基準とする右下の角813が、印刷領域800の左上の角805に位置されるように、配置されている。副割付領域820は、主割付領域810の下方向DD側に配置されている。副割付領域820の上方向820uは、主割付領域810の上方向810uとは反対の方向(すなわち、上方向DU)である。副割付領域820の上方向820uを基準とする上辺825は、主割付領域810の上方向810uを基準とする上辺815に、接している。図10(D)の下部に示すように、副割付領域820に割り付けられた副矩形領域(ここでは、第2矩形領域600)の上辺610は、主割付領域810に割り付けられた主矩形領域(ここでは、第1矩形領域500)の上辺510に、接している。 In the example of FIG. 10D, the upward 810u of the main allocation region 810 is the same as the downward DD. The main allocation area 810 is arranged so that the lower right corner 813 with respect to the upward 810u of the main allocation area 810 is located at the upper left corner 805 of the print area 800. The sub-allocation area 820 is arranged on the downward DD side of the main allocation area 810. The upward 820u of the sub-allocation region 820 is the direction opposite to the upward 810u of the main allocation region 810 (that is, the upward DU). The upper side 825 with reference to the upward 820u of the sub-allocation area 820 is in contact with the upper side 815 with reference to the upward 810u of the main allocation area 810. As shown in the lower part of FIG. 10D, the upper side 610 of the sub-rectangular area (here, the second rectangular area 600) allocated to the sub-allocated area 820 is the main rectangular area (in this case, the main rectangular area 810) allocated to the main allocation area 810. Here, it touches the upper side 510 of the first rectangular region 500).

以上説明した図10(A)〜図10(D)のいずれにおいても、合成画像490a〜の490dの角(ここでは、主矩形領域の角)が、印刷領域800のうちの角805に配置される。従って、図6の実施例と同様に、用紙700のうち、図10(A)〜図10(D)の合成画像490a〜490dの2つの辺(ここでは、上方向DU側の辺の左方向DL側の辺)の部分を切らずに、残りの2辺の部分を切ることによって、容易に、用紙700から合成画像490a〜490dが印刷された部分(すなわち、識別カード300のコピー)を切り取ることができる。 In any of FIGS. 10A to 10D described above, the corners of the composite images 490a to 490d (here, the corners of the main rectangular area) are arranged at the corners 805 of the print area 800. To. Therefore, as in the embodiment of FIG. 6, of the paper 700, the two sides of the composite images 490a to 490d of FIGS. 10A to 10D (here, the left side of the side on the upward DU side). By cutting the remaining two sides without cutting the side (the side on the DL side), the part on which the composite images 490a to 490d are printed (that is, a copy of the identification card 300) is easily cut from the paper 700. be able to.

また、印刷領域800のうちの角805には、顔を含む主矩形領域(ここでは、第1矩形領域500)の角が、配置される。従って、顔を含む主矩形領域の2つの辺を切らずに済むので、顔を含む面の縁がきれいなコピーを取得できる。 Further, in the corner 805 of the print area 800, the corners of the main rectangular area (here, the first rectangular area 500) including the face are arranged. Therefore, it is not necessary to cut the two sides of the main rectangular area including the face, so that a copy having a clean edge of the surface including the face can be obtained.

また、図10(A)〜図10(D)のいずれの実施例においても、合成画像490a〜490dが印刷された用紙700を主矩形領域と副矩形領域との境界で折り曲げることによって主矩形領域と副矩形領域とを重ねる場合に、副矩形領域の向きを、主矩形領域の向きと同じ向きにできる。 Further, in any of the examples of FIGS. 10A to 10D, the main rectangular area is formed by bending the paper 700 on which the composite images 490a to 490d are printed at the boundary between the main rectangular area and the sub-rectangular area. When overlapping the sub-rectangular area with the sub-rectangular area, the orientation of the sub-rectangular area can be the same as the orientation of the main rectangular area.

図11(A)〜図11(D)の例は、図10(A)〜図10(B)の例の主割付領域810と副割付領域820との間に(すなわち、主矩形領域と副矩形領域との間に)、小さい隙間900が挿入された配置を、それぞれ示している。隙間900の大きさ(すなわち、主割付領域810と副割付領域820との間の距離)は、用紙700の厚さと同程度である。このように、副矩形領域は、主矩形領域の縁の辺の近傍に、その辺から離れて、副矩形領域の縁の辺が並ぶ様に、配置される。例えば、図11(A)の例では、第1矩形領域500の右辺530の近傍に、右辺530から離れて、第2矩形領域600の左辺640が並ぶように、第2矩形領域600が配置される。ここで、互いに近傍に配置される主矩形領域の辺と副矩形領域の辺は、平行である(例えば、図11(A)の右辺530と左辺640は、平行である)。以上により、厚い用紙700に合成画像490e〜490hが印刷され、そして、合成画像490e〜490hが印刷された用紙700を主矩形領域と副矩形領域との境界で折り曲げる場合に、主矩形領域の縁の近傍の画像、または、副矩形領域の縁の近傍の画像が、折り目と重なることを抑制できる。なお、図6(A)の主割付領域810と副割付領域820との間に隙間900が設けられてもよい。 In the example of FIGS. 11 (A) to 11 (D), between the main allocation area 810 and the sub allocation area 820 of the example of FIGS. 10 (A) to 10 (B) (that is, the main rectangular area and the sub). (Between the rectangular area) and the arrangement in which the small gap 900 is inserted are shown. The size of the gap 900 (that is, the distance between the main allocation area 810 and the sub allocation area 820) is about the same as the thickness of the paper 700. In this way, the sub-rectangular region is arranged near the edge of the main rectangular region so that the edges of the sub-rectangular region are lined up apart from the side. For example, in the example of FIG. 11A, the second rectangular area 600 is arranged in the vicinity of the right side 530 of the first rectangular area 500 so that the left side 640 of the second rectangular area 600 is lined up away from the right side 530. Rectangle. Here, the sides of the main rectangular region and the sides of the sub-rectangular region arranged in the vicinity of each other are parallel (for example, the right side 530 and the left side 640 in FIG. 11A are parallel). As described above, when the composite images 490e to 490h are printed on the thick paper 700 and the paper 700 on which the composite images 490e to 490h are printed is folded at the boundary between the main rectangular region and the sub-rectangular region, the edge of the main rectangular region is formed. It is possible to prevent the image in the vicinity of the crease or the image in the vicinity of the edge of the sub-rectangular region from overlapping with the crease. A gap 900 may be provided between the main allocation area 810 and the sub allocation area 820 in FIG. 6 (A).

いずれの場合も、隙間900の大きさは、用紙700の厚さと同程度であることが好ましい。プロセッサ210は、印刷に用いられる用紙700の種類に応じて、隙間900の大きさを決定してもよい。例えば、用紙700が普通紙である場合、隙間900の大きさがゼロに設定され、用紙700が光沢紙である場合、隙間900の大きさが1mmに設定されてもよい。いずれの場合も、隙間900は、小さいことが好ましく、3mm以下が好ましく、2mm以下が特に好ましく、1mm以下が最も好ましい。なお、用紙700の種類に拘わらずに、隙間900の大きさが、予め決められていてもよい。 In either case, the size of the gap 900 is preferably about the same as the thickness of the paper 700. The processor 210 may determine the size of the gap 900 according to the type of paper 700 used for printing. For example, when the paper 700 is plain paper, the size of the gap 900 may be set to zero, and when the paper 700 is glossy paper, the size of the gap 900 may be set to 1 mm. In any case, the gap 900 is preferably small, preferably 3 mm or less, particularly preferably 2 mm or less, and most preferably 1 mm or less. The size of the gap 900 may be predetermined regardless of the type of paper 700.

また、第1矩形領域500の画像と第2矩形領域600の画像とのそれぞれの配置としては、予め決められた配置が用いられる(例えば、図6、図10、図11の合成画像490、490a〜490hのうちいずれかの合成画像の配置)。これに代えて、プロセッサ210は、配置の複数の候補からユーザによって選択された配置を採用してもよい。配置の複数の候補としては、例えば、図6、図10、図11に示す複数の配置から任意に選択された複数の配置を採用してよい。 Further, as the arrangement of the image of the first rectangular area 500 and the image of the second rectangular area 600, a predetermined arrangement is used (for example, the composite images 490 and 490a of FIGS. 6, 10, and 11). Arrangement of a composite image of any of ~ 490h). Alternatively, the processor 210 may employ a user-selected arrangement from a plurality of candidate arrangements. As the plurality of arrangement candidates, for example, a plurality of arrangements arbitrarily selected from the plurality of arrangements shown in FIGS. 6, 10 and 11 may be adopted.

D.変形例:
(1)マルチパス印刷のパス数(すなわち、共通の部分領域の印刷に用いられるパスの総数)は、2に限らず、2以上の任意の数であってよい。また、副矩形領域は、シングルパス印刷ではなく、マルチパス印刷で印刷されてもよい。ここで、顔を含む主矩形領域のマルチパス印刷のパス数が、副矩形領域のマルチパス印刷のパス数よりも、多いことが好ましい。この構成によれば、主矩形領域によって表される顔の印刷画質を高めつつ、副矩形領域の印刷に要する時間を短くできる。なお、この場合、図7のS430でも、副矩形領域のマルチパス印刷用のデータ生成処理が、行われる。なお、主矩形領域と副矩形領域との間でパス数が異なる場合、マルチパス印刷用のデータ生成処理は、S420とS430との間で異なっている。例えば、ドットデータをパス処理毎に分割する際の分割数が、S420とS430との間で異なっている。また、主矩形領域と副矩形領域との間でパス数が同じであってもよい。ここで、パス数は、1であってもよく(すなわち、シングルパス印刷)、2以上であってもよい(すなわち、マルチパス印刷)。なお、印刷実行部が、パス処理を実行せずに画像を印刷する装置(例えば、レーザ方式の印刷装置)である場合、シングルパス印刷またはマルチパス印刷のための処理は、省略される。
D. Modification example:
(1) The number of passes for multi-pass printing (that is, the total number of passes used for printing a common partial area) is not limited to 2, and may be any number of 2 or more. Further, the sub-rectangular area may be printed by multi-pass printing instead of single-pass printing. Here, it is preferable that the number of multi-pass printing passes in the main rectangular area including the face is larger than the number of multi-pass printing passes in the sub-rectangular area. According to this configuration, it is possible to improve the print quality of the face represented by the main rectangular area and shorten the time required for printing the sub-rectangular area. In this case, also in S430 of FIG. 7, the data generation process for multipath printing of the sub-rectangular area is performed. When the number of passes is different between the main rectangular area and the sub-rectangular area, the data generation process for multi-pass printing is different between S420 and S430. For example, the number of divisions when the dot data is divided for each pass processing is different between S420 and S430. Further, the number of passes may be the same between the main rectangular area and the sub-rectangular area. Here, the number of passes may be 1 (that is, single-pass printing) and 2 or more (that is, multi-pass printing). When the print execution unit is a device that prints an image without executing the pass process (for example, a laser type printing device), the process for single-pass printing or multi-pass printing is omitted.

(2)色調整処理としては、図9で説明した処理に代えて、他の任意の処理を採用可能である。例えば、色材の種類に対応する色空間で表された画素値が調整されてもよい。また、一部の色成分(例えば、彩度)のみを、トーンカーブを用いて調整してもよい。また、トーンカーブを用いる処理に代えて他の処理を採用してもよい。例えば、特定の色範囲内の色を、ルックアップテーブルを用いて調整する処理を採用してよい。いずれの場合も、副矩形領域に対する第2色調整処理は、少なくとも一部の色範囲の色を、主矩形領域に対する第1色調整処理が行われる場合の調整済の色とは異なる色に調整する処理であってよい。この構成によれば、主矩形領域によって表される顔と、副矩形領域のオブジェクト(例えば、文字)とを、それぞれに適した色で印刷できる。なお、主矩形領域と副矩形領域とに、同じ色調整処理が実行されてもよい。すなわち、図7のS420とS430との間で、色調整処理が同じであってもよい。また、S420とS430との少なくとも一方から、色調整処理を省略してもよい。 (2) As the color adjustment process, any other process can be adopted instead of the process described with reference to FIG. For example, the pixel value represented by the color space corresponding to the type of color material may be adjusted. Further, only a part of the color components (for example, saturation) may be adjusted by using the tone curve. Further, another process may be adopted instead of the process using the tone curve. For example, a process of adjusting colors within a specific color range using a look-up table may be adopted. In either case, the second color adjustment process for the sub-rectangular area adjusts the color of at least a part of the color range to a color different from the adjusted color when the first color adjustment process for the main rectangular area is performed. It may be a process to be performed. According to this configuration, the face represented by the main rectangular area and the object (for example, characters) in the sub-rectangular area can be printed in colors suitable for each. The same color adjustment process may be performed on the main rectangular area and the sub-rectangular area. That is, the color adjustment processing may be the same between S420 and S430 in FIG. 7. Further, the color adjustment process may be omitted from at least one of S420 and S430.

(3)主矩形領域と副矩形領域とに対する画像処理は、上記の画像処理に代えて、他の種々の処理であってよい。例えば、主矩形領域と副矩形領域との間で、パス数が異なり、色調整処理が同じであってもよい。また、主矩形領域と副矩形領域との間で、パス数が同じで、色調整処理が異なっていてもよい。また、主矩形領域と副矩形領域との間で、画像処理が同じであってもよい。この場合、図7のS410、S420、S430で構成されるS405として、共通の画像処理が実行される。このようなフローチャートは、第1実施例の図2のS120のフローチャートとして、利用できる。 (3) The image processing for the main rectangular area and the sub-rectangular area may be various other processing instead of the above image processing. For example, the number of passes may be different between the main rectangular area and the sub-rectangular area, and the color adjustment processing may be the same. Further, the number of passes may be the same and the color adjustment processing may be different between the main rectangular area and the sub-rectangular area. Further, the image processing may be the same between the main rectangular area and the sub-rectangular area. In this case, common image processing is executed as S405 composed of S410, S420, and S430 in FIG. 7. Such a flowchart can be used as the flowchart of S120 of FIG. 2 of the first embodiment.

いずれの場合も、プロセッサ210は、主矩形領域に対する第1画像処理の少なくとも一部(例えば、第1色調整処理)を、合成前の画像データ(例えば、スキャンデータ)を用いて実行してもよい。同様に、プロセッサ210は、副矩形領域に対する第2画像処理の少なくとも一部(例えば、第2色調整処理)を、合成前の画像データ(例えば、スキャンデータ)を用いて実行してもよい。 In either case, the processor 210 may execute at least a part of the first image processing (for example, the first color adjustment processing) for the main rectangular area by using the image data before composition (for example, scan data). Good. Similarly, the processor 210 may execute at least a part of the second image processing (for example, the second color adjustment processing) for the sub-rectangular region by using the image data before composition (for example, scan data).

(4)縁無し印刷に代えて、縁有り印刷が行われてもよい。この場合、印刷領域800(図6(A)など)の縁は、用紙700の縁よりも内側に位置する。この場合も、合成画像の角が、印刷領域800のうちの予め決められた角(例えば、用紙700の予め決められた角に最も近い角)に配置されることが好ましい。この構成によれば、合成画像と用紙700の縁との間に余白が生じるものの、合成画像の縁のうち用紙700の縁に近い部分を切らずに、合成画像が印刷された部分を用紙700から切り取ることができる。いずれの場合も、顔を含むと判断された主矩形領域の角が、印刷領域800の角に配置されることが好ましい。この構成によれば、顔を含む主矩形領域の2つの辺を切らずに済むので、顔を含む面の縁がきれいな状態で、合成画像が印刷された部分を切り取ることができる。このような主矩形領域と副矩形領域とのそれぞれの配置としては、図6、図10、図11で説明した配置に代えて、他の種々の配置を採用可能である。例えば、主矩形領域の角は、印刷領域800の4個の角のうちの任意の角(例えば、右上の角)に配置されてもよい。さらに、縁無し印刷が行われることによって、主矩形領域の角は、用紙700の4個の角のうちの任意の角に配置されてよい。なお、副矩形領域の角が、印刷領域800の角に配置されてもよい。また、合成画像は、印刷領域800の角から離れた位置に配置されてもよく、印刷領域800の縁から離れた位置に配置されてもよい。なお、主矩形領域と副矩形領域とのそれぞれの配置と向きとは、主矩形領域と副矩形領域とのそれぞれの画像処理とは独立に、決定されてよい。いずれの場合も、主矩形領域と副矩形領域との間で、搬送方向の位置が異なることが好ましい。この構成によれば、主矩形領域と副矩形領域との間で、パス数の異なる印刷処理を実行できる。 (4) Bordered printing may be performed instead of borderless printing. In this case, the edge of the print area 800 (such as FIG. 6A) is located inside the edge of the paper 700. Also in this case, it is preferable that the corners of the composite image are arranged at the predetermined corners of the print area 800 (for example, the corners closest to the predetermined corners of the paper 700). According to this configuration, although a margin is generated between the composite image and the edge of the paper 700, the portion of the composite image on which the composite image is printed is printed on the paper 700 without cutting the portion close to the edge of the paper 700. Can be cut from. In either case, it is preferable that the corners of the main rectangular area determined to include the face are arranged at the corners of the print area 800. According to this configuration, it is not necessary to cut the two sides of the main rectangular area including the face, so that the portion on which the composite image is printed can be cut out while the edges of the surface including the face are clean. As the respective arrangements of the main rectangular area and the sub-rectangular area, various other arrangements can be adopted instead of the arrangements described with reference to FIGS. 6, 10 and 11. For example, the corners of the main rectangular area may be arranged at any corner (for example, the upper right corner) of the four corners of the print area 800. Further, by performing borderless printing, the corners of the main rectangular area may be arranged at any corner of the four corners of the paper 700. The corners of the sub-rectangular area may be arranged at the corners of the print area 800. Further, the composite image may be arranged at a position away from the corner of the print area 800, or may be arranged at a position away from the edge of the print area 800. The arrangement and orientation of the main rectangle area and the sub-rectangle area may be determined independently of the image processing of the main rectangle area and the sub-rectangle area. In either case, it is preferable that the positions in the transport direction are different between the main rectangular area and the sub-rectangular area. According to this configuration, printing processes having different numbers of passes can be executed between the main rectangular area and the sub-rectangular area.

(5)矩形領域が顔を含むか否かを判断する方法は、顔認識処理の結果を用いる方法に代えて、顔の有無を判断可能な他の任意の方法であってよい。例えば、第1矩形領域500と第2矩形領域600とのうち、予め決められた肌色範囲内の色を示す画素の割合が多い方を、顔を含む矩形領域として選択してもよい。また、第1矩形領域500と第2矩形領域600とのうち、色の総数が多い方を、顔を含む矩形領域として選択してもよい。 (5) The method for determining whether or not the rectangular area includes a face may be any other method capable of determining the presence or absence of a face, instead of the method using the result of the face recognition process. For example, of the first rectangular area 500 and the second rectangular area 600, the one having a larger proportion of pixels indicating a color within a predetermined skin color range may be selected as the rectangular area including the face. Further, of the first rectangular area 500 and the second rectangular area 600, the one having the larger total number of colors may be selected as the rectangular area including the face.

また、プロセッサ210は、第1スキャンデータではなく、第2スキャンデータを用いる顔認識処理を実行して、第2矩形領域600に顔が含まれるか否かを判断してもよい。また、顔を含むか否かに拘わらずに、第1矩形領域500を、主割付領域810と副割付領域820との予め決められた領域に割り付け、第2矩形領域600を、他の領域に割り付けることとしてもよい。 Further, the processor 210 may execute a face recognition process using the second scan data instead of the first scan data to determine whether or not the face is included in the second rectangular area 600. Further, regardless of whether or not the face is included, the first rectangular area 500 is allocated to a predetermined area of the main allocation area 810 and the sub allocation area 820, and the second rectangular area 600 is assigned to another area. It may be assigned.

(6)画像の向きを特定する処理としては、上記の処理に代えて、他の種々の処理を採用可能である。例えば、プロセッサ210は、第2矩形領域600にも顔認識処理を実行し、顔認識処理の結果に応じて第2矩形領域600の画像の向きを特定してもよい。また、プロセッサ210は、第1矩形領域500に顔が含まれるか否かに拘わらずに、第1矩形領域500の文字認識処理を実行し、文字認識処理の結果に応じて第1矩形領域500の画像の向きを特定してもよい。また、プロセッサ210は、顔認識処理と文字認識処理とのいずれとも異なる処理によって、矩形領域の画像の向きを特定してもよい。例えば、プロセッサ210は、第1矩形領域500の画像の向きとして、ユーザによって指定された向きを採用してもよく、また、第2矩形領域600の画像の向きとして、ユーザによって指定された向きを採用してもよい。なお、第1矩形領域500の画像を解析せずに、第1スキャン画像410における予め決められた向き(例えば、第2方向Dbに反対の方向)が、第1矩形領域500の画像の向きとして用いられてもよい。第2矩形領域600の画像の向きについても、同様である。 (6) As the process for specifying the orientation of the image, various other processes can be adopted instead of the above process. For example, the processor 210 may also execute the face recognition process on the second rectangular area 600 and specify the orientation of the image in the second rectangular area 600 according to the result of the face recognition process. Further, the processor 210 executes the character recognition process of the first rectangular area 500 regardless of whether or not the face is included in the first rectangular area 500, and the first rectangular area 500 is executed according to the result of the character recognition process. The orientation of the image may be specified. Further, the processor 210 may specify the orientation of the image in the rectangular region by a process different from both the face recognition process and the character recognition process. For example, the processor 210 may adopt the orientation specified by the user as the orientation of the image in the first rectangular region 500, or may adopt the orientation specified by the user as the orientation of the image in the second rectangular region 600. It may be adopted. In addition, without analyzing the image of the first rectangular area 500, the predetermined direction in the first scan image 410 (for example, the direction opposite to the second direction Db) is set as the direction of the image of the first rectangular area 500. It may be used. The same applies to the orientation of the image in the second rectangular region 600.

(7)コピーのための処理としては、図2、図3、図4、図7で説明した処理に代えて、他の種々の処理を採用可能である。例えば、プロセッサ210は、合成画像を印刷部290に印刷させる前に、複合機200に無線通信で接続された端末(例えば、スマートフォン)に合成画像を表示させてもよい。 (7) As the process for copying, various other processes can be adopted instead of the processes described with reference to FIGS. 2, 3, 4, and 7. For example, the processor 210 may display the composite image on a terminal (for example, a smartphone) connected to the multifunction device 200 by wireless communication before printing the composite image on the printing unit 290.

(8)識別カードをコピーするための処理を実行する画像処理装置は、複合機200の制御装置202とは異なる種々の装置(例えば、パーソナルコンピュータ、スマートフォン、タブレットコンピュータ)であってもよい。また、画像処理装置は、外部の読み取り装置(例えば、スキャナ)から、原稿を光学的に読み取ることによって生成される画像データを取得し、取得した画像データを用いて合成画像を表す合成データを生成し、外部の印刷装置に合成画像を印刷させてもよい。また、ネットワークを介して互いに通信可能な複数の装置(例えば、コンピュータ)が、画像処理装置による画像処理の機能を一部ずつ分担して、全体として、画像処理の機能を提供してもよい(これらの装置を備えるシステムが画像処理装置に対応する)。 (8) The image processing device that executes the process for copying the identification card may be various devices (for example, a personal computer, a smartphone, a tablet computer) different from the control device 202 of the multifunction device 200. Further, the image processing device acquires image data generated by optically scanning the original from an external scanning device (for example, a scanner), and uses the acquired image data to generate composite data representing a composite image. Then, the composite image may be printed on an external printing device. Further, a plurality of devices (for example, a computer) capable of communicating with each other via a network may partially share the image processing function of the image processing device and provide the image processing function as a whole (for example). A system equipped with these devices corresponds to an image processing device).

上記各実施例において、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよく、逆に、ソフトウェアによって実現されていた構成の一部あるいは全部をハードウェアに置き換えるようにしてもよい。例えば、顔認識処理の機能を、専用のハードウェア回路によって実現してもよい。 In each of the above embodiments, a part of the configuration realized by the hardware may be replaced with software, and conversely, a part or all of the configuration realized by the software may be replaced with the hardware. May be good. For example, the function of face recognition processing may be realized by a dedicated hardware circuit.

また、本発明の機能の一部または全部がコンピュータプログラムで実現される場合には、そのプログラムは、コンピュータ読み取り可能な記録媒体(例えば、一時的ではない記録媒体)に格納された形で提供することができる。プログラムは、提供時と同一または異なる記録媒体(コンピュータ読み取り可能な記録媒体)に格納された状態で、使用され得る。「コンピュータ読み取り可能な記録媒体」は、メモリーカードやCD−ROMのような携帯型の記録媒体に限らず、各種ROM等のコンピュータ内の内部記憶装置や、ハードディスクドライブ等のコンピュータに接続されている外部記憶装置も含み得る。 In addition, when a part or all of the functions of the present invention are realized by a computer program, the program is provided in a form stored in a computer-readable recording medium (for example, a non-temporary recording medium). be able to. The program may be used while being stored on the same or different recording medium (computer-readable recording medium) as it was provided. The "computer-readable recording medium" is not limited to a portable recording medium such as a memory card or a CD-ROM, but is connected to an internal storage device in the computer such as various ROMs or a computer such as a hard disk drive. It may also include an external storage device.

以上、実施例、変形例に基づき本発明について説明してきたが、上記した発明の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定するものではない。本発明は、その趣旨並びに特許請求の範囲を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれる。 Although the present invention has been described above based on Examples and Modifications, the above-described embodiments of the invention are for facilitating the understanding of the present invention and do not limit the present invention. The present invention can be modified and improved without departing from the spirit and claims, and the present invention includes equivalents thereof.

200...複合機、202...制御装置、210...プロセッサ、220...揮発性記憶装置、230...不揮発性記憶装置、232...プログラム、240...表示部、250...操作部、270...通信インタフェース、280...スキャナ部、290...印刷部、291...印刷ヘッド、291d...下部分、291u...上部分、292...ノズル、293...搬送機構、294...走査機構、295...制御部、300...識別カード、310...表面、311...写真、312、313...文字列、320...裏面、321、322...文字列、410...第1スキャン画像、415...第1原稿画像、418...第1原稿外画像(余白部分)、420...第2スキャン画像、425...第2原稿画像、428...第2原稿外画像(余白部分)、490、490a〜490h...合成画像、500...第1矩形領域、600...第2矩形領域、700...用紙、800...印刷領域、810...主割付領域(角領域)、820...副割付領域(内領域)、900...隙間、 200 ... Multifunction device, 202 ... Control device, 210 ... Processor, 220 ... Volatile storage device, 230 ... Non-volatile storage device, 232 ... Program, 240 ... Display unit , 250 ... operation unit, 270 ... communication interface, 280 ... scanner unit, 290 ... printing unit, 291 ... print head, 291d ... lower part, 291u ... upper part, 292 ... nozzle, 293 ... transport mechanism, 294 ... scanning mechanism, 295 ... control unit, 300 ... identification card, 310 ... surface, 311 ... photo, 312, 313. .. Character string, 320 ... Back side, 321, 322 ... Character string, 410 ... 1st scan image, 415 ... 1st manuscript image, 418 ... 1st non-manuscript image (margin part) ), 420 ... 2nd scan image, 425 ... 2nd manuscript image, 428 ... 2nd manuscript outside image (margin part), 490, 490a to 490h ... Composite image, 500 ... 1 rectangular area, 600 ... second rectangular area, 700 ... paper, 800 ... print area, 810 ... main allocation area (corner area), 820 ... sub-allocation area (inner area), 900 ... gap,

Claims (10)

画像処理装置であって、
原稿の第1面を光学的に読み取ることによって生成される第1画像であって、第1の原稿画像と前記第1の原稿画像の周囲の第1の原稿外画像とを含む前記第1画像を表す第1画像データを取得する第1取得部と、
前記原稿の前記第1面とは反対側の第2面を光学的に読み取ることによって生成される第2画像であって、第2の原稿画像と前記第2の原稿画像の周囲の第2の原稿外画像とを含む前記第2画像を表す第2画像データを取得する第2取得部と、
前記第1画像の中の前記第1の原稿画像を表す第1矩形領域を特定する第1領域特定部と、
前記第2画像の中の前記第2の原稿画像を表す第2矩形領域を特定する第2領域特定部と、
前記第1画像データと前記第2画像データとの少なくとも一方を用いて、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する判断部と、
前記第1矩形領域と前記第2矩形領域とのうちの顔を含むと判断された領域である主矩形領域と、前記第1矩形領域と前記第2矩形領域とのうちの前記主矩形領域とは異なる領域である副矩形領域と、を含む合成画像を表す合成データを生成する生成部であって、前記主矩形領域と前記副矩形領域とは、(1)前記主矩形領域の縁の第1辺に、前記副矩形領域の縁の第2辺が接すること、または、(2)前記主矩形領域の前記縁の前記第1辺の近傍に、前記第1辺から離れて前記副矩形領域の前記縁の前記第2辺が並ぶこと、のいずれかの条件が満たされるように合成される、前記生成部と、
前記主矩形領域を表す画像データに、第1画像処理を実行し、前記副矩形領域を表す画像データに、前記第1画像処理とは異なる第2画像処理を実行する、画像処理部と、
前記画像処理部による処理済みのデータを用いて、印刷実行部に前記合成画像を印刷させる印刷制御部と、
を備える画像処理装置。
It is an image processing device
A first image generated by optically scanning the first surface of a document, the first image including the first document image and a first non-manuscript image around the first document image. The first acquisition unit that acquires the first image data representing
A second image generated by optically reading a second surface of the document opposite to the first surface, which is a second image around the second original image and the second original image. A second acquisition unit that acquires second image data representing the second image including a non-manuscript image, and a second acquisition unit.
A first area specifying portion that specifies a first rectangular area representing the first original image in the first image, and
A second area specifying portion that specifies a second rectangular area representing the second original image in the second image,
A determination unit for determining which of the first rectangular region and the second rectangular region includes a face by using at least one of the first image data and the second image data.
The main rectangular area, which is the area determined to include the face of the first rectangular area and the second rectangular area, and the main rectangular area of the first rectangular area and the second rectangular area. Is a generation unit that generates composite data representing a composite image including a sub-rectangular region that is a different region, and the main rectangular region and the sub-rectangular region are (1) the first of the edges of the main rectangular region. The second side of the edge of the sub-rectangular region is in contact with one side, or (2) the sub-rectangular region is separated from the first side in the vicinity of the first side of the edge of the main rectangular region. The generator and the generator, which are synthesized so as to satisfy any of the conditions that the second side of the edge is aligned.
An image processing unit that executes a first image processing on the image data representing the main rectangular area and executes a second image processing different from the first image processing on the image data representing the sub-rectangular area.
A print control unit that causes the print execution unit to print the composite image using the data processed by the image processing unit.
An image processing device comprising.
請求項1に記載の画像処理装置であって、
前記生成部は、前記主矩形領域の角が、印刷用の被記録媒体上の画像が印刷され得る領域である印刷領域のうちの角に配置される、前記合成画像を表す合成データを生成する、画像処理装置。
The image processing apparatus according to claim 1.
The generation unit generates composite data representing the composite image, in which the corners of the main rectangular region are arranged at the corners of the print region, which is the region where the image on the recording medium for printing can be printed. , Image processing equipment.
請求項1または2に記載の画像処理装置であって、
前記印刷実行部は、
被記録媒体を搬送方向に搬送するための搬送機構と、
色材を吐出して前記被記録媒体上にドットを形成するための複数のノズルを有するヘッドと、
前記ヘッドを走査方向に移動させる走査を実行するための走査機構と、
前記搬送機構と前記ヘッドと前記走査機構とを制御するとともに、前記走査の最中に前記ヘッドを駆動して前記被記録媒体上に前記ドットを形成するパス処理を実行する制御部と、
を備え
前記第1画像処理は、前記被記録媒体上の部分領域を複数回の前記パス処理で前記印刷実行部に印刷させるためのデータを生成する処理を含み、
前記第2画像処理は、前記被記録媒体上の部分領域を1回の前記パス処理で前記印刷実行部に印刷させるためのデータを生成する処理を含む、画像処理装置。
The image processing apparatus according to claim 1 or 2.
The print execution unit
A transport mechanism for transporting the recording medium in the transport direction,
A head having a plurality of nozzles for ejecting a color material to form dots on the recording medium, and
A scanning mechanism for performing scanning by moving the head in the scanning direction, and
A control unit that controls the transport mechanism, the head, and the scanning mechanism, and drives the head during the scanning to execute a path process for forming the dots on the recording medium.
The first image processing includes a process of generating data for printing a partial area on the recording medium by the print execution unit by the pass processing a plurality of times.
The second image processing is an image processing apparatus including a process of generating data for printing a partial area on a recording medium by the print execution unit in one pass process.
請求項1から3のいずれかに記載の画像処理装置であって、
前記第1画像処理は、色を調整する第1色調整処理を含み、
前記第2画像処理は、少なくとも一部の色範囲の色を前記第1色調整処理が行われる場合の調整済の色とは異なる色に調整する第2色調整処理を含む、画像処理装置。
The image processing apparatus according to any one of claims 1 to 3.
The first image processing includes a first color adjustment processing for adjusting colors.
The second image processing is an image processing apparatus including a second color adjustment process for adjusting a color in at least a part of the color range to a color different from the adjusted color when the first color adjustment process is performed.
画像処理装置であって、
原稿の第1面を光学的に読み取ることによって生成される第1画像であって、第1の原稿画像と前記第1の原稿画像の周囲の第1の原稿外画像とを含む前記第1画像を表す第1画像データを取得する第1取得部と、
前記原稿の前記第1面とは反対側の第2面を光学的に読み取ることによって生成される第2画像であって、第2の原稿画像と前記第2の原稿画像の周囲の第2の原稿外画像とを含む前記第2画像を表す第2画像データを取得する第2取得部と、
前記第1画像の中の前記第1の原稿画像を表す第1矩形領域を特定する第1領域特定部と、
前記第2画像の中の前記第2の原稿画像を表す第2矩形領域を特定する第2領域特定部と、
前記第1画像データと前記第2画像データとの少なくとも一方を用いて、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する判断部と、
前記第1矩形領域と前記第2矩形領域とのうちの顔を含むと判断された領域である主矩形領域と、前記第1矩形領域と前記第2矩形領域とのうちの前記主矩形領域とは異なる領域である副矩形領域と、を含む合成画像を表す合成データを生成する生成部であって、前記主矩形領域の角は、印刷用の被記録媒体上の画像が印刷され得る領域である印刷領域のうちの角に配置され、前記主矩形領域と前記副矩形領域とは、(1)前記主矩形領域の縁の第1辺に、前記副矩形領域の縁の第2辺が接すること、または、(2)前記主矩形領域の前記縁の前記第1辺の近傍に、前記第1辺から離れて前記副矩形領域の前記縁の前記第2辺が並ぶこと、のいずれかの条件が満たされるように合成される、前記生成部と、
印刷実行部に前記合成画像を印刷させる印刷制御部と、
を備える画像処理装置。
It is an image processing device
A first image generated by optically scanning the first surface of a document, the first image including the first document image and a first non-manuscript image around the first document image. The first acquisition unit that acquires the first image data representing
A second image generated by optically reading a second surface of the document opposite to the first surface, which is a second image around the second original image and the second original image. A second acquisition unit that acquires second image data representing the second image including a non-manuscript image, and a second acquisition unit.
A first area specifying portion that specifies a first rectangular area representing the first original image in the first image, and
A second area specifying portion that specifies a second rectangular area representing the second original image in the second image,
A determination unit for determining which of the first rectangular region and the second rectangular region includes a face by using at least one of the first image data and the second image data.
The main rectangular area, which is the area determined to include the face of the first rectangular area and the second rectangular area, and the main rectangular area of the first rectangular area and the second rectangular area. Is a generation unit that generates composite data representing a composite image including a sub-rectangular region that is a different region, and the corners of the main rectangular region are regions where an image on a recording medium for printing can be printed. The main rectangular area and the sub-rectangular area are arranged at the corners of a certain print area, and (1) the first side of the edge of the main rectangular area is in contact with the second side of the edge of the sub-rectangular area. That, or (2) the second side of the edge of the sub-rectangular region is lined up in the vicinity of the first side of the edge of the main rectangular region away from the first side. With the generator, which is synthesized so that the conditions are satisfied,
A print control unit that causes the print execution unit to print the composite image,
An image processing device comprising.
請求項1から5のいずれかに記載の画像処理装置であって、
前記判断部は、顔認識処理を行って、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 5.
The determination unit is an image processing device that performs face recognition processing to determine which of the first rectangular region and the second rectangular region includes a face.
請求項1から6のいずれかに記載の画像処理装置であって、
顔認識処理の結果に応じて、矩形領域の向きを特定する第1向き特定部と、
所定の処理の結果に応じて、矩形領域の向きを特定する第2向き特定部と、
を備え、
前記生成部は、前記第1向き特定部と前記第2向き特定部との少なくとも一方によって特定された前記主矩形領域の向きと、前記第1向き特定部と前記第2向き特定部との少なくとも一方によって特定された前記副矩形領域の向きと、に基づいて、前記主矩形領域の前記第1辺と前記副矩形領域の前記第2辺との組み合わせとして、
1)前記主矩形領域の前記第1辺が下辺であり、前記副矩形領域の前記第2辺が下辺である第1組み合わせ、
2)前記主矩形領域の前記第1辺が上辺であり、前記副矩形領域の前記第2辺が上辺である第2組み合わせ、
3)前記主矩形領域の前記第1辺が左辺であり、前記副矩形領域の前記第2辺が右辺である第3組み合わせ、
4)前記主矩形領域の前記第1辺が右辺であり、前記副矩形領域の前記第2辺が左辺である第4組み合わせ、
のいずれかの組み合わせを用いる、画像処理装置。
The image processing apparatus according to any one of claims 1 to 6.
The first orientation identification part that specifies the orientation of the rectangular area according to the result of the face recognition processing,
A second orientation specifying part that specifies the orientation of the rectangular area according to the result of a predetermined process,
With
The generation unit includes the orientation of the main rectangular region specified by at least one of the first orientation identification unit and the second orientation identification unit, and at least the orientation of the first orientation identification unit and the second orientation identification unit. Based on the orientation of the sub-rectangular region specified by one, as a combination of the first side of the main rectangular region and the second side of the sub-rectangular region.
1) A first combination in which the first side of the main rectangular area is the lower side and the second side of the sub-rectangular area is the lower side.
2) A second combination in which the first side of the main rectangular area is the upper side and the second side of the sub-rectangular area is the upper side.
3) A third combination in which the first side of the main rectangular area is the left side and the second side of the sub-rectangular area is the right side.
4) A fourth combination in which the first side of the main rectangular area is the right side and the second side of the sub-rectangular area is the left side.
An image processing device that uses any combination of the above.
請求項7に記載の画像処理装置であって、
前記判断部は、前記第1画像データを用いて顔認識処理を行うことによって前記第1矩形領域が顔を含むか否かを判断し、
前記第1向き特定部は、前記第1矩形領域が顔を含むと判断された場合に、前記顔認識処理の結果に応じて、前記第1矩形領域の向きを特定し、
前記第2向き特定部は、前記第2画像データを用いて、顔認識処理を含まない前記所定の処理を行い、前記所定の処理の結果に応じて、前記第2矩形領域の向きを特定する、
画像処理装置。
The image processing apparatus according to claim 7.
The determination unit determines whether or not the first rectangular region includes a face by performing face recognition processing using the first image data.
When it is determined that the first rectangular region includes a face, the first orientation specifying unit identifies the orientation of the first rectangular region according to the result of the face recognition process.
The second orientation specifying unit uses the second image data to perform the predetermined processing that does not include the face recognition processing, and specifies the orientation of the second rectangular region according to the result of the predetermined processing. ,
Image processing device.
画像処理のためのコンピュータプログラムであって、
原稿の第1面を光学的に読み取ることによって生成される第1画像であって、第1の原稿画像と前記第1の原稿画像の周囲の第1の原稿外画像とを含む前記第1画像を表す第1画像データを取得する第1取得機能と、
前記原稿の前記第1面とは反対側の第2面を光学的に読み取ることによって生成される第2画像であって、第2の原稿画像と前記第2の原稿画像の周囲の第2の原稿外画像とを含む前記第2画像を表す第2画像データを取得する第2取得機能と、
前記第1画像の中の前記第1の原稿画像を表す第1矩形領域を特定する第1領域特定機能と、
前記第2画像の中の前記第2の原稿画像を表す第2矩形領域を特定する第2領域特定機能と、
前記第1画像データと前記第2画像データとの少なくとも一方を用いて、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する判断機能と、
前記第1矩形領域と前記第2矩形領域とのうちの顔を含むと判断された領域である主矩形領域と、前記第1矩形領域と前記第2矩形領域とのうちの前記主矩形領域とは異なる領域である副矩形領域と、を含む合成画像を表す合成データを生成する生成機能であって、前記主矩形領域と前記副矩形領域とは、(1)前記主矩形領域の縁の第1辺に、前記副矩形領域の縁の第2辺が接すること、または、(2)前記主矩形領域の前記縁の前記第1辺の近傍に、前記第1辺から離れて前記副矩形領域の前記縁の前記第2辺が並ぶこと、のいずれかの条件が満たされるように合成される、前記生成機能と、
前記主矩形領域を表す画像データに、第1画像処理を実行し、前記副矩形領域を表す画像データに、前記第1画像処理とは異なる第2画像処理を実行する、画像処理機能と、
前記画像処理機能による処理済みのデータを用いて、印刷実行部に前記合成画像を印刷させる印刷制御機能と、
をコンピュータに実現させる、コンピュータプログラム。
A computer program for image processing
A first image generated by optically scanning the first surface of a document, the first image including the first document image and a first non-manuscript image around the first document image. The first acquisition function to acquire the first image data representing
A second image generated by optically reading a second surface of the document opposite to the first surface, which is a second image around the second original image and the second original image. A second acquisition function for acquiring second image data representing the second image including a non-manuscript image, and
A first area specifying function for specifying a first rectangular area representing the first original image in the first image, and
A second area specifying function for specifying a second rectangular area representing the second original image in the second image, and
A determination function for determining which of the first rectangular region and the second rectangular region includes a face by using at least one of the first image data and the second image data.
The main rectangular area, which is the area determined to include the face of the first rectangular area and the second rectangular area, and the main rectangular area of the first rectangular area and the second rectangular area. Is a generation function for generating composite data representing a composite image including a sub-rectangular region which is a different region, and the main rectangular region and the sub-rectangular region are (1) the first of the edges of the main rectangular region. The second side of the edge of the sub-rectangular region is in contact with one side, or (2) the sub-rectangular region is separated from the first side in the vicinity of the first side of the edge of the main rectangular region. The generation function and the generation function, which are synthesized so as to satisfy any of the conditions that the second side of the edge is aligned.
An image processing function that executes a first image processing on the image data representing the main rectangular area and executes a second image processing different from the first image processing on the image data representing the sub-rectangular area.
A print control function that causes the print execution unit to print the composite image using the data processed by the image processing function, and
A computer program that makes a computer realize.
画像処理のためのコンピュータプログラムであって、
原稿の第1面を光学的に読み取ることによって生成される第1画像であって、第1の原稿画像と前記第1の原稿画像の周囲の第1の原稿外画像とを含む前記第1画像を表す第1画像データを取得する第1取得機能と、
前記原稿の前記第1面とは反対側の第2面を光学的に読み取ることによって生成される第2画像であって、第2の原稿画像と前記第2の原稿画像の周囲の第2の原稿外画像とを含む前記第2画像を表す第2画像データを取得する第2取得機能と、
前記第1画像の中の前記第1の原稿画像を表す第1矩形領域を特定する第1領域特定機能と、
前記第2画像の中の前記第2の原稿画像を表す第2矩形領域を特定する第2領域特定機能と、
前記第1画像データと前記第2画像データとの少なくとも一方を用いて、前記第1矩形領域と前記第2矩形領域とのいずれが顔を含むかを判断する判断機能と、
前記第1矩形領域と前記第2矩形領域とのうちの顔を含むと判断された領域である主矩形領域と、前記第1矩形領域と前記第2矩形領域とのうちの前記主矩形領域とは異なる領域である副矩形領域と、を含む合成画像を表す合成データを生成する生成機能であって、前記主矩形領域の角は、印刷用の被記録媒体上の画像が印刷され得る領域である印刷領域のうちの角に配置され、前記主矩形領域と前記副矩形領域とは、(1)前記主矩形領域の縁の第1辺に、前記副矩形領域の縁の第2辺が接すること、または、(2)前記主矩形領域の前記縁の前記第1辺の近傍に、前記第1辺から離れて前記副矩形領域の前記縁の前記第2辺が並ぶこと、のいずれかの条件が満たされるように合成される、前記生成機能と、
印刷実行部に前記合成画像を印刷させる印刷制御機能と、
をコンピュータに実現させる、コンピュータプログラム。
A computer program for image processing
A first image generated by optically scanning the first surface of a document, the first image including the first document image and a first non-manuscript image around the first document image. The first acquisition function to acquire the first image data representing
A second image generated by optically reading a second surface of the document opposite to the first surface, which is a second image around the second original image and the second original image. A second acquisition function for acquiring second image data representing the second image including a non-manuscript image, and
A first area specifying function for specifying a first rectangular area representing the first original image in the first image, and
A second area specifying function for specifying a second rectangular area representing the second original image in the second image, and
A determination function for determining which of the first rectangular region and the second rectangular region includes a face by using at least one of the first image data and the second image data.
The main rectangular area, which is the area determined to include the face of the first rectangular area and the second rectangular area, and the main rectangular area of the first rectangular area and the second rectangular area. Is a generation function for generating composite data representing a composite image including a sub-rectangular region which is a different region, and the corner of the main rectangular region is an region where an image on a recording medium for printing can be printed. The main rectangular area and the sub-rectangular area are arranged at the corners of a certain print area, and (1) the first side of the edge of the main rectangular area is in contact with the second side of the edge of the sub-rectangular area. That, or (2) the second side of the edge of the sub-rectangular region is lined up in the vicinity of the first side of the edge of the main rectangular region away from the first side. With the above-mentioned generation function, which is synthesized so that the conditions are satisfied,
A print control function that causes the print execution unit to print the composite image,
A computer program that makes a computer realize.
JP2016219425A 2016-11-10 2016-11-10 Image processing equipment and programs Active JP6756242B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016219425A JP6756242B2 (en) 2016-11-10 2016-11-10 Image processing equipment and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016219425A JP6756242B2 (en) 2016-11-10 2016-11-10 Image processing equipment and programs

Publications (2)

Publication Number Publication Date
JP2018078464A JP2018078464A (en) 2018-05-17
JP6756242B2 true JP6756242B2 (en) 2020-09-16

Family

ID=62150741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016219425A Active JP6756242B2 (en) 2016-11-10 2016-11-10 Image processing equipment and programs

Country Status (1)

Country Link
JP (1) JP6756242B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11657632B2 (en) 2019-03-13 2023-05-23 Pfu Limited Image processing device, image reading device, image processing method, and non-transitory computer readable medium, using two pieces of image data

Also Published As

Publication number Publication date
JP2018078464A (en) 2018-05-17

Similar Documents

Publication Publication Date Title
JP4683654B2 (en) Image processing apparatus, image processing apparatus control method, and program
US7924469B2 (en) Image processing apparatus, image processing method, and program
US8366228B2 (en) Print controller for controlling ink jet printer
JP6908884B2 (en) Image processing equipment and computer programs
US9724931B2 (en) Image processing device and computer-readable storage medium storing computer-readable program
US20100014121A1 (en) Printing Apparatus, Printing Method, and Recording Medium
JP6756242B2 (en) Image processing equipment and programs
US9749495B2 (en) Information processing apparatus, image forming apparatus, image processing method, and non-transitory computer-readable medium, configured to convert image data to lower resolution and delete pixel of interest
JP2006255970A (en) Inkjet printer, and copying device
JP7034742B2 (en) Image forming device, its method and program
US9789684B2 (en) Control device for controlling printer having print head
JP2007088741A (en) Image processing apparatus and image processing method
JP2012199669A (en) Image processing apparatus, image processing method, image processing program, and printer
JP6821418B2 (en) Image processing equipment, image processing methods, and programs
JP2005252710A (en) Image processing apparatus, image processing method, and image processing program
JP6163092B2 (en) Image processing device
US9594989B2 (en) Image-processing device determining dot formation state of target pixel by using gradation value of target pixel
US6389167B1 (en) Multi-level pixel density reduction for printers
JP2000247001A (en) Image processing method and apparatus
JP7183057B2 (en) Image processing device, image processing method, program
JP5341420B2 (en) Image processing apparatus and image processing method
JP2001053975A (en) Method and device for printing picture
JP2021053828A (en) Image processing device
JP5732864B2 (en) Information processing apparatus, program, and printing method
JP2011091621A (en) Image forming apparatus, image forming method program and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20191018

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200717

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200810

R150 Certificate of patent or registration of utility model

Ref document number: 6756242

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150