JP2007140896A - Image composition device and method, and program - Google Patents

Image composition device and method, and program Download PDF

Info

Publication number
JP2007140896A
JP2007140896A JP2005333615A JP2005333615A JP2007140896A JP 2007140896 A JP2007140896 A JP 2007140896A JP 2005333615 A JP2005333615 A JP 2005333615A JP 2005333615 A JP2005333615 A JP 2005333615A JP 2007140896 A JP2007140896 A JP 2007140896A
Authority
JP
Japan
Prior art keywords
image
images
area
ratio
face
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.)
Withdrawn
Application number
JP2005333615A
Other languages
Japanese (ja)
Inventor
Yoshiko Shiimori
佳子 椎森
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2005333615A priority Critical patent/JP2007140896A/en
Publication of JP2007140896A publication Critical patent/JP2007140896A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To generate a composite image where a plurality of images are positioned aesthetically and efficiently. <P>SOLUTION: In the generation of a composite image where a plurality of images are positioned in a background area by the insertion of the images in a plurality of respective overlapping image insertion areas positioned in the background area, a face detection part 32 detects face areas from the plurality of images read out from a memory card 2. A ratio calculation part 34 calculates the ratios of the detected face areas to the respective entire images. A composition part 36 inserts the images in descending order of the face area ratio in forwarder image insertion areas to generate the composite image. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、背景領域に画像を配置して合成画像を生成する画像合成装置および方法並びに画像合成方法をコンピュータに実行させるためのプログラムに関するものである。   The present invention relates to an image composition apparatus and method for generating a composite image by arranging an image in a background area, and a program for causing a computer to execute the image composition method.

従来より、一枚のプリントに複数の画像をレイアウトしてプリント出力するアルバムプリントを作成することが行われている。このように一枚のプリントに複数の画像をレイアウトすれば、後からプリントを台紙に貼り付ける必要がなくなるため、容易にアルバムを作成することができる。しかしながら、上述したような画像のレイアウトは、テンプレート上にあらかじめ配置された画像挿入領域に、ユーザが自ら画像の内容を判断して画像を配置する必要があるため、見栄えよくかつ効率よく画像を配置することが困難であった。このため、画像のレイアウトを簡易に行うための各種手法が提案されている(例えば特許文献1参照)。   Conventionally, an album print has been created in which a plurality of images are laid out and printed out on a single print. If a plurality of images are laid out on a single print in this way, it is not necessary to attach the print to the mount later, so an album can be created easily. However, since the image layout as described above requires the user to determine the contents of the image by himself / herself in the image insertion area arranged in advance on the template, the image can be arranged nicely and efficiently. It was difficult to do. For this reason, various methods for simply laying out images have been proposed (see, for example, Patent Document 1).

特許文献1に記載された手法は、配置する画像における重要位置の位置情報と、画像挿入領域の重心位置の位置情報とを用いて、画像をテンプレートの画像挿入領域に挿入する手法である。この手法によれば、見栄えよくかつ効率よく画像を配置することができる。
特開2005−94423号公報
The method described in Patent Literature 1 is a method of inserting an image into an image insertion area of a template using position information of an important position in an image to be arranged and position information of a gravity center position of the image insertion area. According to this method, it is possible to arrange images with good appearance and efficiency.
JP 2005-94423 A

しかしながら、上記特許文献1に記載された手法は単一の画像を対象としており、複数の画像については見栄えよくテンプレートに配置することができないものである。   However, the method described in Patent Document 1 is intended for a single image, and a plurality of images cannot be arranged on a template with a good appearance.

本発明は、上記事情に鑑みなされたものであり、複数の画像を見栄えよくかつ効率よく配置した合成画像を生成することを目的とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to generate a composite image in which a plurality of images are nicely and efficiently arranged.

本発明による第1の画像合成装置は、背景領域に配置された、互いに重ね合わせられた複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成装置において、
前記複数の画像のそれぞれから顔領域を検出する顔領域検出手段と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する割合算出手段と、
前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成する合成手段とを備えたことを特徴とするものである。
In the first image composition device according to the present invention, the plurality of images are arranged in the background region by inserting an image into each of the plurality of image insertion regions arranged in the background region and overlapped with each other. In an image composition device for generating a composite image,
A face area detecting means for detecting a face area from each of the plurality of images;
For each of the plurality of images, a ratio calculating means for calculating a ratio of the face area to the entire area of each image;
The image processing apparatus is characterized by further comprising a composing unit that inserts the images in order from the front image insertion region as the ratio of the face region increases, and generates the composite image.

本発明による第2の画像合成装置は、背景領域に配置された、互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成装置において、
前記複数の画像のそれぞれから顔領域を検出する顔領域検出手段と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する割合算出手段と、
前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を生成する合成手段とを備えたことを特徴とするものである。
The second image composition device according to the present invention is a composition in which the plurality of images are arranged in the background region by inserting an image into each of a plurality of image insertion regions of different sizes arranged in the background region. In an image composition device for generating an image,
A face area detecting means for detecting a face area from each of the plurality of images;
For each of the plurality of images, a ratio calculating means for calculating a ratio of the face area to the entire area of each image;
The image processing apparatus further includes a combining unit that inserts the images in order from an image insertion region having a larger size as the ratio of the face region increases, and generates the combined image.

本発明による第3の画像合成装置は、背景領域に配置された、少なくとも一部が重ね合わせられ、かつ互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成装置において、
前記複数の画像のそれぞれから顔領域を検出する顔領域検出手段と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する割合算出手段と、
最前面の前記画像挿入領域が前記複数の画像挿入領域のうちの最大サイズを有するか否かを判定し、該判定が肯定された場合には、前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を作成し、前記判定が否定された場合には、前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成する合成手段とを備えたことを特徴とするものである。
The third image composition device according to the present invention inserts an image into each of a plurality of image insertion areas arranged in the background area, at least partially overlapped and having different sizes, to the background area. In an image composition device for generating a composite image in which the plurality of images are arranged,
A face area detecting means for detecting a face area from each of the plurality of images;
For each of the plurality of images, a ratio calculating means for calculating a ratio of the face area to the entire area of each image;
It is determined whether the foremost image insertion area has the maximum size of the plurality of image insertion areas. If the determination is affirmative, the larger the ratio of the face area, the larger the size. The composite image is created by inserting the images in order from a large image insertion area, and when the determination is negative, the larger the ratio of the face area, the more the images are inserted in order from the front image insertion area. And a synthesis means for generating the synthesized image.

本発明による第1の画像合成方法は、背景領域に配置された、互いに重ね合わせられた複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法において、
前記複数の画像のそれぞれから顔領域を検出し、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出し、
前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成することを特徴とするものである。
In the first image composition method according to the present invention, the plurality of images are arranged in the background region by inserting an image into each of the plurality of image insertion regions arranged in the background region and overlapped with each other. In an image composition method for generating a composite image,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, calculate the ratio of the face area to the total area of each image,
As the ratio of the face area increases, the composite image is generated by inserting the images sequentially from the front image insertion area.

本発明による第2の画像合成方法は、背景領域に配置された、互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法において、
前記複数の画像のそれぞれから顔領域を検出し、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出し、
前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を生成することを特徴とするものである。
The second image composition method according to the present invention is a composition in which the plurality of images are arranged in the background area by inserting an image into each of a plurality of image insertion areas of different sizes arranged in the background area. In an image composition method for generating an image,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, calculate the ratio of the face area to the total area of each image,
The composite image is generated by inserting the images in order from the image insertion region having the larger size as the ratio of the face region is larger.

本発明による第3の画像合成方法は、背景領域に配置された、少なくとも一部が重ね合わせられ、かつ互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法において、
前記複数の画像のそれぞれから顔領域を検出し、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出し、
最前面の前記画像挿入領域が前記複数の画像挿入領域のうちの最大サイズを有するか否かを判定し、該判定が肯定された場合には、前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を作成し、前記判定が否定された場合には、前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成することを特徴とするものである。
According to a third image composition method of the present invention, an image is inserted into each of a plurality of image insertion areas arranged in the background area, at least partially overlapped and having different sizes, to the background area. In an image composition method for generating a composite image in which the plurality of images are arranged,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, calculate the ratio of the face area to the total area of each image,
It is determined whether the foremost image insertion area has the maximum size of the plurality of image insertion areas. If the determination is affirmative, the larger the ratio of the face area, the larger the size. The composite image is created by inserting the images in order from a large image insertion area, and when the determination is negative, the larger the ratio of the face area, the more the images are inserted in order from the front image insertion area. And generating the composite image.

なお、本発明による第1から第3の画像合成方法をコンピュータに実行させるためのプログラムとして提供してもよい。   In addition, you may provide as a program for making a computer perform the 1st-3rd image composition method by this invention.

背景領域に配置された複数の画像挿入領域が互いに重なり合っている場合においては、人物の顔が大きく写っている画像ほど、前面の画像挿入領域に挿入することにより、合成画像の見栄えがよくなるものである。   When multiple image insertion areas arranged in the background area overlap each other, the larger the image of the person's face, the better the appearance of the composite image by inserting it into the front image insertion area. is there.

本発明の第1の画像合成装置および方法によれば、複数の画像のそれぞれから顔領域が検出され、検出された顔領域の各画像の全領域に対する割合が算出される。そして、顔領域の割合が大きいほど、前面の画像挿入領域から順に画像が挿入されて合成画像が生成される。このため、繁雑な作業を行うことなく、複数の画像を見栄えよく配置した合成画像を生成することができる。   According to the first image composition apparatus and method of the present invention, a face area is detected from each of a plurality of images, and the ratio of the detected face area to the entire area of each image is calculated. Then, as the ratio of the face area is larger, images are inserted in order from the front image insertion area, and a composite image is generated. For this reason, it is possible to generate a composite image in which a plurality of images are arranged with good appearance without performing complicated work.

また、背景領域に配置された複数の画像挿入領域のサイズが互いに異なる場合においては、人物の顔が大きく写っている画像ほど、大きいサイズの画像挿入領域に挿入することにより、合成画像の見栄えがよくなるものである。   In addition, in the case where the sizes of the plurality of image insertion areas arranged in the background area are different from each other, an image in which a person's face is larger is inserted into the larger size image insertion area, so that the composite image looks better. It will be better.

本発明の第2の画像合成装置および方法によれば、複数の画像のそれぞれから顔領域が検出され、検出された顔領域の各画像の全領域に対する割合が算出される。そして、顔領域の割合が大きいほど、大きいサイズの画像挿入領域から順に画像が挿入されて合成画像が生成される。このため、繁雑な作業を行うことなく、複数の画像を見栄えよく配置した合成画像を生成することができる。   According to the second image composition apparatus and method of the present invention, a face area is detected from each of a plurality of images, and the ratio of the detected face area to the entire area of each image is calculated. Then, as the ratio of the face area increases, images are inserted in order from a larger size image insertion area, and a composite image is generated. For this reason, it is possible to generate a composite image in which a plurality of images are arranged with good appearance without performing complicated work.

また、背景領域に配置された複数の画像挿入領域の少なくとも一部が互いに重なり合っており、かつ互いにサイズが異なる場合においては、画像挿入領域のサイズおよび画像挿入領域の重なり順に応じて合成画像の見栄えが異なるものである。   In addition, when at least a part of the plurality of image insertion areas arranged in the background area overlap with each other and the sizes are different from each other, the appearance of the composite image depends on the size of the image insertion area and the order in which the image insertion areas overlap. Are different.

本発明の第3の画像合成装置および方法によれば、複数の画像のそれぞれから顔領域が検出され、検出された顔領域の各画像の全領域に対する割合が算出される。そして、最前面の画像挿入領域が複数の画像挿入領域のうちの最大サイズを有するか否かが判定され、判定が肯定された場合には、顔領域の割合が大きいほど、サイズが大きい画像挿入領域から順に画像が挿入されて合成画像が作成される。一方、上記判定が否定された場合には、顔領域の割合が大きいほど、前面の画像挿入領域から順に画像が挿入されて合成画像が生成される。このため、繁雑な作業を行うことなく、複数の画像を見栄えよく配置した合成画像を生成することができる。   According to the third image composition device and method of the present invention, a face area is detected from each of a plurality of images, and the ratio of the detected face area to the entire area of each image is calculated. Then, it is determined whether or not the foremost image insertion area has the maximum size among the plurality of image insertion areas. If the determination is affirmative, the larger the face area ratio, the larger the size of the image insertion area. Images are inserted in order from the region to create a composite image. On the other hand, if the determination is negative, as the ratio of the face area increases, images are sequentially inserted from the front image insertion area, and a composite image is generated. For this reason, it is possible to generate a composite image in which a plurality of images are arranged with good appearance without performing complicated work.

以下、図面を参照して本発明の実施形態について説明する。図1は本発明による画像合成装置を適用したプリント注文装置の構成を示す概略ブロック図である。図1に示すように、本実施形態によるプリント注文装置1は、ユーザによる画像のプリント注文を受け付けるために写真店の店頭に設置されてなるものであり、プリント注文するための画像が記録された各種メモリカード2を装填し、メモリカード2から画像を読み出したり、メモリカード2に画像を記録したりするための複数種類のカードスロット4と、プリント注文のための各種表示を行う表示部6とを備え、写真店に設置されたプリンタ8と接続されている。なお、表示部6はタッチパネル式の入力部を備え、ユーザはモニタ6の表示にしたがって表示部6にタッチすることにより、プリント注文に必要な入力を行うことができる。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a schematic block diagram showing the configuration of a print ordering apparatus to which an image composition apparatus according to the present invention is applied. As shown in FIG. 1, the print ordering apparatus 1 according to the present embodiment is installed at a photo shop in order to accept an image print order by a user, and an image for ordering a print is recorded. A plurality of card slots 4 for loading various memory cards 2, reading images from the memory card 2, and recording images on the memory card 2, and a display unit 6 for performing various displays for print orders And is connected to a printer 8 installed in the photo shop. The display unit 6 includes a touch panel type input unit, and the user can input necessary for the print order by touching the display unit 6 according to the display on the monitor 6.

図2は本発明の第1の実施形態によるプリント注文受付装置の構成を示す概略ブロック図である。図2に示すように、プリント注文受付装置1は、画像を表す画像データの記録制御および表示制御等の各種制御を行うとともに、装置1を構成する各部の制御を行うCPU12と、装置1を動作させるための基本的なプログラムおよび各種定数が記録されているROM並びにCPU12が処理を実行する際の作業領域となるRAMにより構成されるシステムメモリ14と、種々の指示を装置1に対して行うためのタッチパネル式の入力部16と、上述した表示部6とを備える。   FIG. 2 is a schematic block diagram showing the configuration of the print order receiving apparatus according to the first embodiment of the present invention. As shown in FIG. 2, the print order receiving apparatus 1 performs various controls such as recording control and display control of image data representing an image, and operates the apparatus 1 and a CPU 12 that controls each part of the apparatus 1. A system memory 14 composed of a ROM in which a basic program and various constants for recording are recorded, and a RAM serving as a work area when the CPU 12 executes processing, and various instructions to the device 1 Touch panel type input unit 16 and the display unit 6 described above.

また、プリント注文受付装置1は、上述したカードスロット4と、画像データをJPEGに代表される手法で圧縮したり、圧縮した画像データを解凍する圧縮解凍部22と、メモリカード2から読み出した画像データ、画像を配置して合成画像を生成するためのテンプレートを表すテンプレートデータ、画像のプリント注文を行うためのプリント注文プログラム等のCPU12が実行する各種プログラム等を記録するハードディスク24と、システムメモリ14、カードスロット4およびハードディスク24を制御するメモリ制御部26と、表示部6の表示を制御する表示制御部28と、プリンタ8を装置1に接続するためのプリンタインターフェース30とを備える。   The print order receiving apparatus 1 also includes the card slot 4 described above, a compression / decompression unit 22 that compresses image data by a technique typified by JPEG, and decompresses the compressed image data, and an image read from the memory card 2. A hard disk 24 for recording data, template data representing a template for arranging images and generating a composite image, various programs executed by the CPU 12 such as a print ordering program for placing an image print order, and the system memory 14 A memory control unit 26 for controlling the card slot 4 and the hard disk 24, a display control unit 28 for controlling the display of the display unit 6, and a printer interface 30 for connecting the printer 8 to the apparatus 1.

なお、カードスロット4はメモリカード2の種類に応じて複数用意されているが、図2においては1つのカードスロット4のみを示している。   Although a plurality of card slots 4 are prepared according to the type of the memory card 2, only one card slot 4 is shown in FIG.

また、プリント注文受付装置1は、後述するように合成画像に含めるべく選択された複数の画像のそれぞれから顔領域を検出する顔検出部32と、複数の画像のそれぞれについて、検出した顔領域の各画像に対する割合を算出する割合算出部34と、合成画像を生成する合成部36とを備える。   In addition, the print order receiving apparatus 1 detects a face area from each of a plurality of images selected to be included in the composite image as described later, and the detected face area for each of the plurality of images. A ratio calculation unit 34 that calculates a ratio to each image and a synthesis unit 36 that generates a composite image are provided.

以下、顔検出部32、割合算出部34および合成部36の機能について、本実施形態において行われる処理と併せて説明する。   Hereinafter, the functions of the face detection unit 32, the ratio calculation unit 34, and the synthesis unit 36 will be described together with the processing performed in the present embodiment.

図3は第1の実施形態において画像の読み込み時に行われる処理を示すフローチャートである。ユーザがメモリカード2をカードスロット4に装填し、画像読み込みの指示を入力部16から行うことによりCPU12が処理を開始し、メモリカード2に記録された複数の画像を読み込む(ステップST1)。次いで、顔検出部32が複数の画像のそれぞれから人物の顔領域をすべて検出する(ステップST2)。具体的には、例えば画像における肌色を有しかつ顔の輪郭形状をなす領域を顔領域として検出する。なお、顔領域が含まれていない背景や静物等の画像については、顔領域は検出されない。   FIG. 3 is a flowchart showing processing performed when reading an image in the first embodiment. When the user loads the memory card 2 into the card slot 4 and issues an image reading instruction from the input unit 16, the CPU 12 starts processing, and reads a plurality of images recorded on the memory card 2 (step ST1). Next, the face detection unit 32 detects all face areas of the person from each of the plurality of images (step ST2). Specifically, for example, an area having a flesh color in an image and forming a face outline shape is detected as a face area. Note that a face area is not detected for an image such as a background or a still life that does not include a face area.

次いで、割合算出部34がすべての画像について、検出した顔領域の画像の全領域に対する割合を算出する(ステップST3)。ここで、1つの画像に複数の顔領域が存在する場合は、すべての顔領域の各画像の全領域に対する割合を算出する。そして、算出した割合を画像単位で保存し(ステップST4)、処理を終了する。なお、割合の保存は、対応する画像と拡張子のみが異なるテキストファイルとして保存してもよく、画像のタグに記述することにより保存してもよい。   Next, the ratio calculation unit 34 calculates the ratio of the detected face area to the entire area of all the images (step ST3). Here, when there are a plurality of face areas in one image, the ratio of all the face areas to the total area of each image is calculated. And the calculated ratio is preserve | saved for every image (step ST4), and a process is complete | finished. Note that the ratio may be saved as a text file that differs only in extension from the corresponding image, or may be saved by describing it in an image tag.

次いで、第1の実施形態におけるプリント時に行われる処理について説明する。図4は第1の実施形態においてプリント時に行われる処理を示すフローチャートである。ユーザがプリント実行の指示を入力部16から行うことによりCPU12および合成部36が処理を開始し、まずメモリカード2に記録された画像およびテンプレートを選択するための選択画面を表示部6に表示する(ステップST11)。   Next, processing performed at the time of printing in the first embodiment will be described. FIG. 4 is a flowchart showing processing performed at the time of printing in the first embodiment. When the user issues a print execution instruction from the input unit 16, the CPU 12 and the combining unit 36 start processing, and first, a selection screen for selecting an image and a template recorded on the memory card 2 is displayed on the display unit 6. (Step ST11).

図5は選択画面を示す図である。図5に示すように選択画面40には、メモリカード2に記録された画像のサムネイル画像の一覧を表示するサムネイル画像エリア40Aと、ハードディスク24に保存されているテンプレートの一覧を表示するテンプレートエリア40Bと、各種指示を行うための指示エリア40Cとが表示される。ユーザは、サムネイル画像エリア40Aにおいて、合成画像の生成に使用する画像を選択し、テンプレートエリア40Bにおいて合成画像の背景に使用するテンプレートを選択することができる。指示エリア40Cには決定ボタン40Dが表示されており、決定ボタン40Dを選択することにより、合成画像の生成に使用する画像およびテンプレートを決定することができる。なお、サムネイル画像エリア40Aおよびテンプレートエリア40Bにはスクロールバー40E,40Fが表示されており、これを用いて画面をスクロールすることにより、一画面に表示しきれない画像およびテンプレートを表示することができる。   FIG. 5 shows a selection screen. As shown in FIG. 5, on the selection screen 40, a thumbnail image area 40A for displaying a list of thumbnail images of images recorded on the memory card 2 and a template area 40B for displaying a list of templates stored in the hard disk 24 are displayed. And an instruction area 40C for performing various instructions are displayed. The user can select an image to be used for generating a composite image in the thumbnail image area 40A, and can select a template to be used for the background of the composite image in the template area 40B. A determination button 40D is displayed in the instruction area 40C. By selecting the determination button 40D, it is possible to determine an image and a template used for generating a composite image. Scroll bars 40E and 40F are displayed in the thumbnail image area 40A and the template area 40B. By scrolling the screen using the scroll bars 40E and 40F, images and templates that cannot be displayed on one screen can be displayed. .

図6(a)はテンプレート、図6(b)はテンプレート情報ファイルを示す図である。図6(a)に示すように背景領域にサイズが異なるとともに、互いに重なり合っている3つの画像挿入領域A1〜A3を有するテンプレートの場合、そのテンプレート情報ファイルは、領域数が3であり、3つの画像挿入領域A1〜A3のそれぞれについて、配置順、サイズおよび始点(背景領域上における画像挿入領域の左上隅座標値)が記述されている。なお、背景領域は左上隅を原点としている。また、配置順は数値が大きいほど前面にあることを表している。   FIG. 6A shows a template, and FIG. 6B shows a template information file. As shown in FIG. 6A, in the case of a template having three image insertion areas A1 to A3 having different sizes in the background area and overlapping each other, the template information file has three areas, For each of the image insertion areas A1 to A3, the arrangement order, size, and start point (the upper left corner coordinate value of the image insertion area on the background area) are described. The background area has the upper left corner as the origin. The arrangement order indicates that the larger the numerical value is, the closer to the front.

続いて、合成部36は決定ボタン40Dが選択されたか否かの監視を開始し(ステップST12)、ステップST12が肯定されると、ユーザが選択した画像に対応する割合、ユーザが選択したテンプレートおよびテンプレート情報ファイルを取得し(ステップST13)、テンプレート情報ファイルを参照して、テンプレートに含まれる画像挿入領域の重なり順の情報を取得する(ステップST14)。そして、画像を配置する対象となる画像挿入領域を最前面の画像挿入領域に設定し(ステップST15)、最前面にある画像挿入領域に、ユーザが選択した画像のうち、顔領域の割合が最も大きい画像を配置する(ステップST16)。   Subsequently, the composition unit 36 starts monitoring whether or not the decision button 40D has been selected (step ST12). When step ST12 is affirmed, the ratio corresponding to the image selected by the user, the template selected by the user, and A template information file is acquired (step ST13), and information on the overlapping order of the image insertion areas included in the template is acquired with reference to the template information file (step ST14). Then, the image insertion area to be an image placement target is set as the foreground image insertion area (step ST15), and the ratio of the face area is the highest among the images selected by the user in the foreground image insertion area. A large image is arranged (step ST16).

次いで、画像を配置する対象となる画像挿入領域を重なり順が次の画像挿入領域に設定し(ステップST17)、設定した画像挿入領域に、顔領域の割合が次に大きい画像を配置する(ステップST18)。そして、すべての画像挿入領域に画像を配置したか否かを判定し(ステップST19)、ステップST19が否定されるとステップST17に戻り、ステップST17以降の処理を繰り返す。これにより、最前面にある画像挿入領域から順に顔領域の割合が大きい画像が配置されて合成画像が生成される。そして、ステップST19が肯定されると、生成された合成画像をプリンタ8からプリント出力し(ステップST20)、処理を終了する。   Next, the image insertion area that is the object of image placement is set as the next image insertion area in the overlapping order (step ST17), and an image with the next largest face area ratio is placed in the set image insertion area (step ST17). ST18). Then, it is determined whether or not images have been arranged in all the image insertion areas (step ST19). If step ST19 is negative, the process returns to step ST17, and the processes after step ST17 are repeated. As a result, an image with a larger proportion of the face area is arranged in order from the image insertion area on the foreground, and a composite image is generated. If step ST19 is affirmed, the generated composite image is printed out from the printer 8 (step ST20), and the process ends.

図7および図8は第1の実施形態における合成画像の生成を説明するための図である。ここで、ユーザが図6(a)に示すテンプレートを選択し、図7に示すように顔領域の割合が30%、20%、0%の3つの画像G1〜G3を選択したとすると、テンプレートの画像挿入領域A1〜A3の最前面からの重なり順はA3,A2,A1であるため、最前面の画像挿入領域A3には最も顔領域の割合が大きい画像G1が、重なり順序が次の画像挿入領域A2には次に顔領域の割合が大きい画像G2が、重なり順が最後の画像挿入領域A1には顔領域の割合が0%(すなわち顔領域を含まない)の画像G3がそれぞれ配置されて図8に示す合成画像C1が生成される。   7 and 8 are diagrams for explaining generation of a composite image in the first embodiment. Here, if the user selects the template shown in FIG. 6A and selects three images G1 to G3 having the face area ratios of 30%, 20%, and 0% as shown in FIG. Since the order of overlap of the image insertion areas A1 to A3 from the foreground is A3, A2, and A1, the image G1 having the largest face area ratio in the foreground image insertion area A3 is the next image in the overlapping order. An image G2 having the next largest face area ratio is arranged in the insertion area A2, and an image G3 having a face area ratio of 0% (that is, not including the face area) is arranged in the image insertion area A1 having the last overlapping order. Thus, a composite image C1 shown in FIG. 8 is generated.

ここで、テンプレートの背景領域に配置された複数の画像挿入領域が互いに重なり合っている場合においては、人物の顔が大きく写っている画像ほど、前面の画像挿入領域に挿入することにより、合成画像の見栄えがよくなるものである。   Here, in the case where a plurality of image insertion areas arranged in the background area of the template overlap each other, an image in which a person's face is larger is inserted into the front image insertion area, so that It looks good.

本発明の第1の実施形態によれば、顔領域の割合が大きい画像ほど、前面の画像挿入領域から順に画像を配置して合成画像を生成するようにしたため、繁雑な作業を行うことなく、複数の画像を見栄えよく配置した合成画像を生成することができる。   According to the first embodiment of the present invention, an image having a larger face area ratio is arranged in order from the front image insertion area to generate a composite image. A composite image in which a plurality of images are arranged in an attractive manner can be generated.

次いで、本発明の第2の実施形態について説明する。図9は本発明の第2の実施形態によるプリント注文受付装置の構成を示す概略ブロック図である。なお、第2の実施形態において第1の実施形態と同一の構成については同一の参照番号を付与し、ここでは詳細な説明は省略する。第2の実施形態によるプリント注文受付装置1Aは、第1の実施形態における合成部36とは異なる処理を行う合成部36Aを備えてなる。   Next, a second embodiment of the present invention will be described. FIG. 9 is a schematic block diagram showing a configuration of a print order receiving apparatus according to the second embodiment of the present invention. In the second embodiment, the same components as those in the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted here. The print order receiving apparatus 1A according to the second embodiment includes a combining unit 36A that performs processing different from the combining unit 36 in the first embodiment.

次いで、第2の実施形態において行われる処理について説明する。なお、画像の読み込み時に行われる処理は上記第1の実施形態と同一であるため、ここでは、プリント時に行われる処理について説明する。図10は第2の実施形態においてプリント時に行われる処理を示すフローチャートである。ユーザがプリント実行の指示を入力部16から行うことによりCPU12および合成部36Aが処理を開始し、まずメモリカード2に記録された画像およびテンプレートを選択するための選択画面を表示部6に表示する(ステップST31)。   Next, processing performed in the second embodiment will be described. Note that processing performed at the time of reading an image is the same as that in the first embodiment, and therefore processing performed at the time of printing will be described here. FIG. 10 is a flowchart showing processing performed at the time of printing in the second embodiment. When the user issues a print execution instruction from the input unit 16, the CPU 12 and the composition unit 36 </ b> A start processing. First, a selection screen for selecting an image and a template recorded on the memory card 2 is displayed on the display unit 6. (Step ST31).

続いて、合成部36Aは決定ボタン40Dが選択されたか否かの監視を開始し(ステップST32)、ステップST32が肯定されると、ユーザが選択した画像に対応する割合、ユーザが選択したテンプレートおよびテンプレート情報ファイルを取得し(ステップST33)、テンプレート情報ファイルを参照して、テンプレートに含まれる画像挿入領域のサイズの情報を取得する(ステップST34)。そして、画像を配置する対象となる画像挿入領域を最大サイズの画像挿入領域に設定し(ステップST35)、最大サイズの画像挿入領域に、ユーザが選択した画像のうち、顔領域の割合が最も大きい画像を配置する(ステップST36)。   Subsequently, the combining unit 36A starts monitoring whether or not the decision button 40D has been selected (step ST32). When step ST32 is affirmed, the ratio corresponding to the image selected by the user, the template selected by the user, and A template information file is acquired (step ST33), and the size information of the image insertion area included in the template is acquired with reference to the template information file (step ST34). Then, the image insertion area to be an image placement target is set as the maximum size image insertion area (step ST35), and the ratio of the face area is the largest among the images selected by the user in the maximum size image insertion area. An image is arranged (step ST36).

次いで、画像を配置する対象となる画像挿入領域を次にサイズが大きい画像挿入領域に設定し(ステップST37)、設定した画像挿入領域に、顔領域の割合が次に大きい画像を配置する(ステップST38)。そして、すべての画像挿入領域に画像を配置したか否かを判定し(ステップST39)、ステップST39が否定されるとステップST37に戻り、ステップST37以降の処理を繰り返す。これにより、画像挿入領域のサイズが大きい順に顔領域の割合が大きい画像が配置されて合成画像が生成される。そして、ステップST39が肯定されると、生成された合成画像をプリンタ8からプリント出力し(ステップST40)、処理を終了する。   Next, the image insertion area that is the target of image placement is set as the next largest image insertion area (step ST37), and the image with the next largest face area ratio is placed in the set image insertion area (step ST37). ST38). Then, it is determined whether or not images have been arranged in all the image insertion areas (step ST39). If step ST39 is negative, the process returns to step ST37, and the processes after step ST37 are repeated. As a result, an image having a larger face area ratio is arranged in the descending order of the size of the image insertion area, and a composite image is generated. If step ST39 is affirmed, the generated composite image is printed out from the printer 8 (step ST40), and the process ends.

図11は第2の実施形態における合成画像の生成を説明するための図である。ここで、ユーザが図11(a)に示すテンプレートを選択し、上記図7に示すように顔領域の割合が30%、20%、0%の3つの画像G1〜G3を選択したとすると、テンプレートの画像挿入領域A11〜A13はサイズが大きい順にA11,A13,A12であるため、最大サイズの画像挿入領域A11には最も顔領域の割合が大きい画像G1が、サイズが次に大きい画像挿入領域A13には次に顔領域の割合が大きい画像G2が、サイズが最も小さい画像挿入領域A12には顔領域の割合が0%の画像G3がそれぞれ配置されて図11(b)に示す合成画像C2が生成される。   FIG. 11 is a diagram for explaining generation of a composite image in the second embodiment. Here, when the user selects the template shown in FIG. 11A and selects three images G1 to G3 having the face area ratios of 30%, 20%, and 0% as shown in FIG. Since the template image insertion areas A11 to A13 are A11, A13, and A12 in descending order of size, the image G1 having the largest face area ratio in the largest image insertion area A11 is the next largest image insertion area. An image G2 having the next largest face area ratio is arranged in A13, and an image G3 having a face area ratio of 0% is arranged in the smallest image insertion area A12. The composite image C2 shown in FIG. Is generated.

ここで、テンプレートの背景領域に配置された複数の画像挿入領域のサイズが互いに異なる場合においては、人物の顔が大きく写っている画像ほど、大きいサイズの画像挿入領域に挿入することにより、合成画像の見栄えがよくなるものである。   Here, in the case where the sizes of the plurality of image insertion areas arranged in the background area of the template are different from each other, an image in which a person's face is larger is inserted into the larger-sized image insertion area, so that a composite image is obtained. It looks good.

本発明の第2の実施形態によれば、顔領域の割合が大きいほど、大きいサイズの画像挿入領域から順に画像を挿入して合成画像を生成するようにしたため、繁雑な作業を行うことなく、複数の画像を見栄えよく配置した合成画像を生成することができる。   According to the second embodiment of the present invention, as the ratio of the face area is larger, the composite image is generated by inserting the images in order from the larger size image insertion area. A composite image in which a plurality of images are arranged in an attractive manner can be generated.

次いで、本発明の第3の実施形態について説明する。図12は本発明の第3の実施形態によるプリント注文受付装置の構成を示す概略ブロック図である。なお、第3の実施形態において第1の実施形態と同一の構成については同一の参照番号を付与し、ここでは詳細な説明は省略する。第3の実施形態によるプリント注文受付装置1Bは、第1の実施形態における合成部36とは異なる処理を行う合成部36Bを備えてなる。   Next, a third embodiment of the present invention will be described. FIG. 12 is a schematic block diagram showing a configuration of a print order receiving apparatus according to the third embodiment of the present invention. Note that in the third embodiment, the same reference numerals are assigned to the same configurations as those in the first embodiment, and detailed description thereof is omitted here. The print order receiving apparatus 1B according to the third embodiment includes a synthesis unit 36B that performs processing different from the synthesis unit 36 according to the first embodiment.

次いで、第3の実施形態において行われる処理について説明する。なお、画像の読み込み時に行われる処理は上記第1の実施形態と同一であるため、ここでは、プリント時に行われる処理について説明する。図13は第3の実施形態においてプリント時に行われる処理を示すフローチャートである。ユーザがプリント実行の指示を入力部16から行うことによりCPU12および合成部36Bが処理を開始し、まずメモリカード2に記録された画像およびテンプレートを選択するための選択画面を表示部6に表示する(ステップST51)。   Next, processing performed in the third embodiment will be described. Note that processing performed at the time of reading an image is the same as that in the first embodiment, and therefore processing performed at the time of printing will be described here. FIG. 13 is a flowchart showing processing performed at the time of printing in the third embodiment. When the user issues a print execution instruction from the input unit 16, the CPU 12 and the composition unit 36 </ b> B start processing. First, a selection screen for selecting an image and a template recorded on the memory card 2 is displayed on the display unit 6. (Step ST51).

続いて、合成部36Bは決定ボタン40Dが選択されたか否かの監視を開始し(ステップST52)、ステップST52が肯定されると、ユーザが選択した画像に対応する割合、ユーザが選択したテンプレートおよびテンプレート情報ファイルを取得し(ステップST53)、テンプレート情報ファイルを参照して、テンプレートに含まれる画像挿入領域の重なり順の情報およびサイズの情報を取得する(ステップST54)。そして、画像を配置する対象となる画像挿入領域を最前面の画像挿入領域に設定し(ステップST55)、テンプレートの最前面の画像挿入領域がテンプレートに含まれる画像挿入領域のうちの最大サイズを有するか否かを判定する(ステップST56)。   Subsequently, the composition unit 36B starts monitoring whether or not the decision button 40D has been selected (step ST52). When step ST52 is affirmed, the ratio corresponding to the image selected by the user, the template selected by the user, and A template information file is acquired (step ST53), and by referring to the template information file, information on the overlapping order and size information of image insertion areas included in the template is acquired (step ST54). Then, the image insertion area to be an image placement target is set as the foreground image insertion area (step ST55), and the foremost image insertion area of the template has the maximum size of the image insertion areas included in the template. Is determined (step ST56).

ステップST56が肯定されると、最大サイズすなわち最前面の画像挿入領域に、ユーザが選択した画像のうち、顔領域の割合が最も大きい画像を配置する(ステップST57)。次いで、画像を配置する対象となる画像挿入領域を次にサイズが大きい画像挿入領域に設定し(ステップST58)、設定した画像挿入領域に、顔領域の割合が次に大きい画像を配置する(ステップST59)。そして、すべての画像挿入領域に画像を配置したか否かを判定し(ステップST60)、ステップST60が否定されるとステップST58に戻り、ステップST58以降の処理を繰り返す。これにより、最大サイズの画像挿入領域から順に顔領域の割合が大きい画像が配置されて合成画像が生成される。   If step ST56 is positive, an image having the largest face area ratio among the images selected by the user is arranged in the maximum size, that is, the foreground image insertion area (step ST57). Next, the image insertion area that is the target of image placement is set as the next largest image insertion area (step ST58), and the image with the next largest face area ratio is placed in the set image insertion area (step ST58). ST59). Then, it is determined whether or not images have been arranged in all the image insertion areas (step ST60). If step ST60 is negative, the process returns to step ST58, and the processes after step ST58 are repeated. As a result, an image with a larger proportion of the face area is arranged in order from the image insertion area of the maximum size, and a composite image is generated.

一方、ステップST56が否定されると、最前面にある画像挿入領域に、ユーザが選択した画像のうち、顔領域の割合が最も大きい画像を配置する(ステップST61)。   On the other hand, if step ST56 is negative, an image having the largest face area ratio among the images selected by the user is arranged in the image insertion area at the forefront (step ST61).

次いで、画像を配置する対象となる画像挿入領域を重なり順が次の画像挿入領域に設定し(ステップST62)、設定した画像挿入領域に、顔領域の割合が次に大きい画像を配置する(ステップST63)。そして、すべての画像挿入領域に画像を配置したか否かを判定し(ステップST64)、ステップST64が否定されるとステップST62に戻り、ステップST62以降の処理を繰り返す。これにより、最前面にある画像挿入領域から順に顔領域の割合が大きい画像が配置されて合成画像が生成される。   Next, the image insertion area that is the target of image placement is set as the next image insertion area in the overlapping order (step ST62), and an image with the next largest face area ratio is placed in the set image insertion area (step ST62). ST63). Then, it is determined whether or not images have been arranged in all the image insertion areas (step ST64). If step ST64 is negative, the process returns to step ST62, and the processes in and after step ST62 are repeated. As a result, an image with a larger proportion of the face area is arranged in order from the image insertion area on the foreground, and a composite image is generated.

そして、ステップST60,64が肯定されると、生成された合成画像をプリンタ8からプリント出力し(ステップST65)、処理を終了する。   When the determinations at steps ST60 and ST64 are affirmed, the generated composite image is printed out from the printer 8 (step ST65), and the process is terminated.

図14および図15は第3の実施形態における合成画像の生成を説明するための図である。ここで、ユーザが図14(a)に示すテンプレートを選択し、上記図7に示すように顔領域の割合が30%、20%、0%の3つの画像G1〜G3を選択したとすると、テンプレートの画像挿入領域A21〜A23はサイズが大きい順にA21,A22,A23であり、最前面に最大サイズの画像挿入領域A21が配置されているため、最大サイズの画像挿入領域A21には最も顔領域の割合が大きい画像G1が、サイズが次に大きい画像挿入領域A22には次に顔領域の割合が大きい画像G2が、サイズが最も小さい画像挿入領域A23には顔領域の割合が0%の画像G3がそれぞれ配置されて図14(b)に示す合成画像C3が生成される。   14 and 15 are diagrams for explaining generation of a composite image in the third embodiment. Here, when the user selects the template shown in FIG. 14A and selects three images G1 to G3 having the face area ratios of 30%, 20%, and 0% as shown in FIG. The template image insertion areas A21 to A23 are A21, A22, and A23 in descending order of size, and the maximum size image insertion area A21 is arranged in the foreground. An image G1 with a large proportion of image, an image G2 with the next largest proportion of face region in the image insertion region A22 with the next largest size, and an image with a proportion of face region of 0% in the image insertion region A23 with the smallest size G3 is arranged, and a composite image C3 shown in FIG. 14B is generated.

一方、ユーザが図15(a)に示すテンプレートを選択し、上記図7に示すように顔領域の割合が30%、20%、0%の3つの画像G1〜G3を選択したとすると、テンプレートの画像挿入領域A31〜A33はサイズが大きい順にA31,A32,A33であり、最大サイズの画像挿入領域A31は最前面にないため、最前面の画像挿入領域A33に最も顔領域の割合が大きい画像G1が、重なり順序が次の画像挿入領域A31には次に顔領域の割合が大きい画像G2が、重なり順が最後の画像挿入領域A32には顔領域の割合が0%の画像G3がそれぞれ配置されて図15(b)に示す合成画像C4が生成される。   On the other hand, if the user selects the template shown in FIG. 15A and selects three images G1 to G3 having the face area ratios of 30%, 20%, and 0% as shown in FIG. The image insertion areas A31 to A33 are A31, A32, and A33 in descending order of size, and the largest image insertion area A31 is not in the foreground, so the image having the largest face area ratio in the foreground image insertion area A33. G1 has an image insertion area A31 with the next overlapping order, an image G2 with the next largest face area ratio, and an image insertion area A32 with the last overlapping order has an image G3 with the face area ratio 0%. Thus, a composite image C4 shown in FIG. 15B is generated.

ここで、背景領域に配置された複数の画像挿入領域の少なくとも一部が互いに重なり合っており、かつ互いにサイズが異なる場合においては、画像挿入領域のサイズおよび画像挿入領域の重なり順に応じて合成画像の見栄えが異なるものである。   Here, in the case where at least a part of the plurality of image insertion areas arranged in the background area overlap each other and the sizes are different from each other, the size of the image insertion area and the overlapping order of the image insertion areas It looks different.

本発明の第3の実施形態によれば、最前面の画像挿入領域が複数の画像挿入領域のうちの最大サイズを有するか否かを判定し、判定が肯定された場合には、顔領域の割合が大きいほど、サイズが大きい画像挿入領域から順に画像を挿入して合成画像を生成し、この判定が否定された場合には、顔領域の割合が大きいほど、前面の画像挿入領域から順に画像を挿入して合成画像を生成するようにしたため、繁雑な作業を行うことなく、複数の画像を見栄えよく配置した合成画像を生成することができる。   According to the third embodiment of the present invention, it is determined whether or not the foremost image insertion area has the maximum size of the plurality of image insertion areas, and if the determination is affirmative, As the ratio increases, images are inserted in order from the larger image insertion area to generate a composite image. If this determination is negative, the larger the ratio of the face area, the higher the image from the front image insertion area. Since the composite image is generated by inserting the image, it is possible to generate a composite image in which a plurality of images are arranged in an attractive manner without performing complicated work.

なお、上記第1から第3の実施形態においては、あらかじめ顔の割合を算出しているが、合成画像を生成する際に顔の割合を算出するようにしてもよい。   In the first to third embodiments, the face ratio is calculated in advance. However, the face ratio may be calculated when generating a composite image.

また、上記実施形態においては、本発明による画像検索装置をプリント注文受付装置に用いているが、本発明による画像合成装置を単体で用いてもよく、デジタルカメラ等の画像を扱う機器に設けてもよい。   In the above embodiment, the image search apparatus according to the present invention is used as a print order receiving apparatus. However, the image composition apparatus according to the present invention may be used alone or provided in a device that handles images such as a digital camera. Also good.

以上、本発明の実施形態に係る装置について説明したが、コンピュータを、上記の顔検出部32、割合算出部34および合成部36,36A,36Bに対応する手段として機能させ、図3,4,10,13に示すような処理を行わせるプログラムも、本発明の実施形態の1つである。また、そのようなプログラムを記録したコンピュータ読取り可能な記録媒体も、本発明の実施形態の1つである。また、このようなプログラムを、画像を閲覧するためのビューアソフトに組み込むようにしてもよい。   Although the apparatus according to the embodiment of the present invention has been described above, the computer is caused to function as a unit corresponding to the face detection unit 32, the ratio calculation unit 34, and the synthesis units 36, 36A, and 36B. A program for performing the processes shown in FIGS. 10 and 13 is also one embodiment of the present invention. A computer-readable recording medium in which such a program is recorded is also one embodiment of the present invention. Further, such a program may be incorporated in viewer software for browsing images.

本発明の第1の実施形態による画像選択装置を適用したプリント注文受付装置の外観斜視図1 is an external perspective view of a print order receiving apparatus to which an image selection apparatus according to a first embodiment of the present invention is applied. 本発明の第1の実施形態によるプリント注文受付装置の構成を示す概略ブロック図1 is a schematic block diagram showing the configuration of a print order receiving apparatus according to a first embodiment of the present invention. 第1の実施形態において画像の読み込み時に行われる処理を示すフローチャートThe flowchart which shows the process performed at the time of reading of an image in 1st Embodiment. 第1の実施形態においてプリント時に行われる処理を示すフローチャートThe flowchart which shows the process performed at the time of printing in 1st Embodiment. 選択画面を示す図Diagram showing selection screen テンプレートおよびテンプレート情報ファイルの例を示す図Diagram showing examples of templates and template information files 第1の実施形態における合成画像の生成を説明するための図(その1)The figure for demonstrating the production | generation of the synthesized image in 1st Embodiment (the 1) 第1の実施形態における合成画像の生成を説明するための図(その2)The figure for demonstrating the production | generation of the synthesized image in 1st Embodiment (the 2) 本発明の第2の実施形態によるプリント注文受付装置の構成を示す概略ブロック図Schematic block diagram showing the configuration of a print order receiving apparatus according to a second embodiment of the present invention 第2の実施形態においてプリント時に行われる処理を示すフローチャートThe flowchart which shows the process performed at the time of printing in 2nd Embodiment 第2の実施形態における合成画像の生成を説明するための図The figure for demonstrating the production | generation of the synthesized image in 2nd Embodiment. 本発明の第3の実施形態によるプリント注文受付装置の構成を示す概略ブロック図Schematic block diagram showing the configuration of a print order receiving apparatus according to a third embodiment of the present invention 第3の実施形態においてプリント時に行われる処理を示すフローチャートThe flowchart which shows the process performed at the time of printing in 3rd Embodiment 第3の実施形態における合成画像の生成を説明するための図(その1)The figure for demonstrating the production | generation of the synthesized image in 3rd Embodiment (the 1) 第3の実施形態における合成画像の生成を説明するための図(その2)The figure for demonstrating the production | generation of the synthesized image in 3rd Embodiment (the 2)

符号の説明Explanation of symbols

1,1A,1B プリント注文受付装置
2 メモリカード
4 カードスロット
6 表示部
8 プリンタ
12 CPU
14 システムメモリ
16 入力部
22 圧縮解凍部
24 ハードディスク
26 メモリ制御部
28 表示制御部
30 プリンタインターフェース
32 顔検出部
34 割合算出部
36,36A,36B 合成部
1, 1A, 1B Print order acceptance device 2 Memory card 4 Card slot 6 Display unit 8 Printer 12 CPU
14 system memory 16 input unit 22 compression / decompression unit 24 hard disk 26 memory control unit 28 display control unit 30 printer interface 32 face detection unit 34 ratio calculation unit 36, 36A, 36B synthesis unit

Claims (9)

背景領域に配置された、互いに重ね合わせられた複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成装置において、
前記複数の画像のそれぞれから顔領域を検出する顔領域検出手段と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する割合算出手段と、
前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成する合成手段とを備えたことを特徴とする画像合成装置。
In the image composition device for generating a composite image in which the plurality of images are arranged in the background region by inserting an image into each of the plurality of image insertion regions arranged in the background region and superimposed on each other,
A face area detecting means for detecting a face area from each of the plurality of images;
For each of the plurality of images, a ratio calculating means for calculating a ratio of the face area to the entire area of each image;
An image synthesizing apparatus comprising: a synthesizing unit that generates the synthesized image by inserting the images in order from the front image inserting area as the ratio of the face area increases.
背景領域に配置された、互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成装置において、
前記複数の画像のそれぞれから顔領域を検出する顔領域検出手段と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する割合算出手段と、
前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を生成する合成手段とを備えたことを特徴とする画像合成装置。
In the image composition device for generating a composite image in which the plurality of images are arranged in the background region by inserting an image into each of the plurality of image insertion regions arranged in the background region and having different sizes from each other,
A face area detecting means for detecting a face area from each of the plurality of images;
For each of the plurality of images, a ratio calculating means for calculating a ratio of the face area to the entire area of each image;
An image synthesizing apparatus comprising: a synthesizing unit that generates the synthesized image by inserting the images in order from an image inserting area having a larger size as the ratio of the face area is larger.
背景領域に配置された、少なくとも一部が重ね合わせられ、かつ互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成装置において、
前記複数の画像のそれぞれから顔領域を検出する顔領域検出手段と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する割合算出手段と、
最前面の前記画像挿入領域が前記複数の画像挿入領域のうちの最大サイズを有するか否かを判定し、該判定が肯定された場合には、前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を作成し、前記判定が否定された場合には、前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成する合成手段とを備えたことを特徴とする画像合成装置。
A composite image in which the plurality of images are arranged in the background area is inserted into each of the plurality of image insertion areas that are arranged in the background area and are at least partially overlapped and have different sizes. In the image synthesizer to generate,
A face area detecting means for detecting a face area from each of the plurality of images;
For each of the plurality of images, a ratio calculating means for calculating a ratio of the face area to the entire area of each image;
It is determined whether the foremost image insertion area has the maximum size of the plurality of image insertion areas. If the determination is affirmative, the larger the ratio of the face area, the larger the size. The composite image is created by inserting the images in order from a large image insertion area, and when the determination is negative, the larger the ratio of the face area, the more the images are inserted in order from the front image insertion area. And an image synthesizing unit for generating the synthesized image.
背景領域に配置された、互いに重ね合わせられた複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法において、
前記複数の画像のそれぞれから顔領域を検出し、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出し、
前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成することを特徴とする画像合成方法。
In the image composition method for generating a composite image in which the plurality of images are arranged in the background region by inserting an image into each of the plurality of image insertion regions arranged in the background region and superimposed on each other,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, calculate the ratio of the face area to the total area of each image,
The image composition method of generating the composite image by inserting the images sequentially from the front image insertion region as the ratio of the face region increases.
背景領域に配置された、互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法において、
前記複数の画像のそれぞれから顔領域を検出し、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出し、
前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を生成することを特徴とする画像合成方法。
In the image composition method for generating a composite image in which the plurality of images are arranged in the background region by inserting an image into each of a plurality of image insertion regions of different sizes arranged in the background region,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, calculate the ratio of the face area to the total area of each image,
An image composition method, wherein the composite image is generated by inserting the images in order from an image insertion region having a larger size as the ratio of the face region is larger.
背景領域に配置された、少なくとも一部が重ね合わせられ、かつ互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法において、
前記複数の画像のそれぞれから顔領域を検出し、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出し、
最前面の前記画像挿入領域が前記複数の画像挿入領域のうちの最大サイズを有するか否かを判定し、該判定が肯定された場合には、前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を作成し、前記判定が否定された場合には、前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成することを特徴とする画像合成方法。
A composite image in which the plurality of images are arranged in the background area is inserted into each of the plurality of image insertion areas that are arranged in the background area and are at least partially overlapped and have different sizes. In the image composition method to be generated,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, calculate the ratio of the face area to the total area of each image,
It is determined whether the foremost image insertion area has the maximum size of the plurality of image insertion areas. If the determination is affirmative, the larger the ratio of the face area, the larger the size. The composite image is created by inserting the images in order from a large image insertion area, and when the determination is negative, the larger the ratio of the face area, the more the images are inserted in order from the front image insertion area. Generating the synthesized image.
背景領域に配置された、互いに重ね合わせられた複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法をコンピュータに実行させるためのプログラムにおいて、
前記複数の画像のそれぞれから顔領域を検出する手順と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する手順と、
前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成する手順とを有することを特徴とするプログラム。
An image composition method for generating a composite image in which the plurality of images are arranged in the background region by inserting an image into each of the plurality of image insertion regions arranged in the background region and superimposed on each other. In the program to be executed,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, a procedure for calculating the ratio of the face area to the entire area of each image;
And a procedure for generating the composite image by inserting the images in order from the front image insertion region as the ratio of the face region increases.
背景領域に配置された、互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法をコンピュータに実行させるためのプログラムにおいて、
前記複数の画像のそれぞれから顔領域を検出する手順と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する手順と、
前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を生成する手順とを有することを特徴とするプログラム。
A computer executes an image composition method for generating a composite image in which the plurality of images are arranged in the background region by inserting an image into each of a plurality of image insertion regions arranged in the background region and having different sizes. In the program to let
Detecting a face region from each of the plurality of images;
For each of the plurality of images, a procedure for calculating the ratio of the face area to the entire area of each image;
And a step of generating the composite image by inserting the images in order from the image insertion region having the larger size as the ratio of the face region is larger.
背景領域に配置された、少なくとも一部が重ね合わせられ、かつ互いにサイズが異なる複数の画像挿入領域のそれぞれに画像を挿入することにより、前記背景領域に前記複数の画像が配置された合成画像を生成する画像合成方法をコンピュータに実行させるためのプログラムにおいて、
前記複数の画像のそれぞれから顔領域を検出する手順と、
前記複数の画像のそれぞれについて、前記各画像の全領域に対する前記顔領域の割合を算出する手順と、
最前面の前記画像挿入領域が前記複数の画像挿入領域のうちの最大サイズを有するか否かを判定し、該判定が肯定された場合には、前記顔領域の割合が大きいほど、前記サイズが大きい画像挿入領域から順に前記画像を挿入して前記合成画像を作成し、前記判定が否定された場合には、前記顔領域の割合が大きいほど、前面の画像挿入領域から順に前記画像を挿入して前記合成画像を生成する手順とを有することを特徴とするプログラム。
A composite image in which the plurality of images are arranged in the background area is inserted into each of the plurality of image insertion areas that are arranged in the background area and are at least partially overlapped and have different sizes. In a program for causing a computer to execute an image composition method to be generated,
Detecting a face region from each of the plurality of images;
For each of the plurality of images, a procedure for calculating the ratio of the face area to the entire area of each image;
It is determined whether the foremost image insertion area has the maximum size of the plurality of image insertion areas. If the determination is affirmative, the larger the ratio of the face area, the larger the size. The composite image is created by inserting the images in order from a large image insertion area, and when the determination is negative, the larger the ratio of the face area, the more the images are inserted in order from the front image insertion area. And a procedure for generating the composite image.
JP2005333615A 2005-11-18 2005-11-18 Image composition device and method, and program Withdrawn JP2007140896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005333615A JP2007140896A (en) 2005-11-18 2005-11-18 Image composition device and method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005333615A JP2007140896A (en) 2005-11-18 2005-11-18 Image composition device and method, and program

Publications (1)

Publication Number Publication Date
JP2007140896A true JP2007140896A (en) 2007-06-07

Family

ID=38203673

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005333615A Withdrawn JP2007140896A (en) 2005-11-18 2005-11-18 Image composition device and method, and program

Country Status (1)

Country Link
JP (1) JP2007140896A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010073002A (en) * 2008-09-19 2010-04-02 Hoya Corp Image processor and camera
WO2010055659A1 (en) 2008-11-14 2010-05-20 株式会社ブリヂストン Pneumatic tire
JP2018142985A (en) * 2018-04-26 2018-09-13 ブラザー工業株式会社 Information processing device, recording system, and program
CN113905177A (en) * 2021-09-29 2022-01-07 北京字跳网络技术有限公司 Video generation method, device, equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010073002A (en) * 2008-09-19 2010-04-02 Hoya Corp Image processor and camera
WO2010055659A1 (en) 2008-11-14 2010-05-20 株式会社ブリヂストン Pneumatic tire
JP2018142985A (en) * 2018-04-26 2018-09-13 ブラザー工業株式会社 Information processing device, recording system, and program
CN113905177A (en) * 2021-09-29 2022-01-07 北京字跳网络技术有限公司 Video generation method, device, equipment and storage medium
CN113905177B (en) * 2021-09-29 2024-02-02 北京字跳网络技术有限公司 Video generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP4555197B2 (en) Image layout apparatus and method, and program
CN102289832B (en) Creation of image designation file and reproduction of image using the same
CN102694955B (en) Display control apparatus and display control method
US20120106917A1 (en) Electronic Apparatus and Image Processing Method
JP2007140896A (en) Image composition device and method, and program
JP2009139492A (en) Display control device and display control method
JP4412552B2 (en) Image layout apparatus and method, and program
JP5043767B2 (en) Image processing apparatus and image processing method
JP3593834B2 (en) Printing condition specification device
JP2016085534A (en) Image processing apparatus, control method of image processing apparatus, and program
JP2007140897A (en) Image search device and method, and program
JP6679937B2 (en) Image forming apparatus and program
JP2008065670A (en) Image layout device, method and program
JP2007080164A (en) Order reception apparatus and method, and program
JPH10312451A (en) Information processing device and method, and record medium recording information processing program
JPH09305672A (en) Electronic catalog device
JP2007233778A (en) Index print, index print creation device and method, and program
JP4216495B2 (en) Image editing device
JP2017117030A (en) Image processing device
JP5094693B2 (en) Recording medium for recording display data and display device therefor
JP3883182B2 (en) Digital camera
KR100823964B1 (en) Method, apparatus, and computer-readable storage medium storing program for laying out images
JP6742118B2 (en) Image processing device
JP6256258B2 (en) Image output device
JP2000066647A (en) Image plotting device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20090203