JP2010021853A - Image processing device, image forming apparatus, image processing method, and image processing program - Google Patents
Image processing device, image forming apparatus, image processing method, and image processing program Download PDFInfo
- Publication number
- JP2010021853A JP2010021853A JP2008181495A JP2008181495A JP2010021853A JP 2010021853 A JP2010021853 A JP 2010021853A JP 2008181495 A JP2008181495 A JP 2008181495A JP 2008181495 A JP2008181495 A JP 2008181495A JP 2010021853 A JP2010021853 A JP 2010021853A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- image
- landscape
- person
- 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.)
- Pending
Links
Images
Landscapes
- Studio Circuits (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
本発明は、画像データに対する処理を行う画像処理装置、画像形成装置、画像処理方法及び画像処理プログラムに関するものである。 The present invention relates to an image processing apparatus that performs processing on image data, an image forming apparatus, an image processing method, and an image processing program.
写真プリントに関するサービスの一例として、現像済み写真フィルムの各コマ画像から読み取った画像データや、デジタルカメラで撮影することにより得られた画像データを、予め用意されているテンプレートに合成して提供するサービスが知られている。近年では、複数のテンプレートにそれぞれ対応付ける画像データを選択し、各テンプレートに選択された画像データを合成してプリントしたものを製本することにより、アルバムを作製するようなサービスも知られている。 As an example of a service related to photographic printing, a service that provides image data read from each frame image of developed photographic film and image data obtained by taking a picture with a digital camera by combining them with a template prepared in advance It has been known. In recent years, a service is also known in which an album is created by selecting image data associated with each of a plurality of templates, binding the image data selected for each template and printing the book.
下記特許文献1には、撮影した画像を上記テンプレートの一例である背景画像に合成する方法の一例が開示されている。
しかしながら、合成する画像データを複数の画像データの中から単に選択するような構成の場合には、それらの複数の画像データの数が多いほど、所望の画像データを選択する作業が煩雑になるといった問題がある。 However, in a configuration in which image data to be synthesized is simply selected from a plurality of image data, the larger the number of the plurality of image data, the more complicated the operation of selecting desired image data. There's a problem.
本発明は、上記実情に鑑みてなされたものであり、画像データを合成する作業をより簡略化することができる画像処理装置、画像形成装置、画像処理方法及び画像処理プログラムを提供することを目的とする。 SUMMARY An advantage of some aspects of the invention is that it provides an image processing apparatus, an image forming apparatus, an image processing method, and an image processing program capable of further simplifying an operation of combining image data. And
第1の本発明に係る画像処理装置は、画像データに含まれる顔画像を検出する顔検出手段と、上記顔検出手段による検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類手段と、上記画像分類手段により分類された上記人物画像データ及び上記風景画像データを合成する画像合成手段とを備えたことを特徴とする。 An image processing apparatus according to a first aspect of the present invention includes a face detection unit that detects a face image included in image data, and image data from which the face image is detected based on a detection result by the face detection unit. Image classification means for classifying image data in which a face image is not detected into landscape image data, and image composition means for synthesizing the person image data and the landscape image data classified by the image classification means. It is characterized by having.
このような構成によれば、顔検出手段による検出結果に基づいて、画像データを人物画像データ又は風景画像データに分類し、その分類された人物画像データ及び風景画像データを合成することにより、合成画像データを生成することができるので、画像データを合成する作業をより簡略化することができる。また、予め用意されているテンプレートではなく、例えば自ら撮影した風景画像データに人物画像データを合成することができるので、独創性に富んだ合成画像データを生成することができる。 According to such a configuration, based on the detection result by the face detection means, the image data is classified into person image data or landscape image data, and the classified person image data and landscape image data are synthesized, thereby synthesizing. Since image data can be generated, the work of combining image data can be further simplified. In addition, since it is possible to synthesize person image data with, for example, landscape image data taken by itself instead of a template prepared in advance, it is possible to generate synthesized image data rich in originality.
第2の本発明に係る画像処理装置は、上記画像合成手段が、上記人物画像データよりも上記風景画像データの方がサイズが大きくなるように、上記人物画像データ又は上記風景画像データに対する処理を行い、当該処理後に上記風景画像データの一部を上記人物画像データに置き換えることを特徴とする。 In the image processing apparatus according to the second aspect of the present invention, the image composition means performs processing on the person image data or the landscape image data so that the size of the landscape image data is larger than that of the person image data. And after the process, a part of the landscape image data is replaced with the person image data.
このような構成によれば、風景画像データを背景画像として、その背景画像の一部に人物画像データが配置された合成画像データを生成することができる。したがって、互いに関連する人物画像データ及び風景画像データ、例えば同じ地域で撮影した人物画像データ及び風景画像データを選択すれば、より趣のある合成画像データを生成することができる。 According to such a configuration, it is possible to generate combined image data in which person image data is arranged on a part of the background image using the landscape image data as a background image. Therefore, if person image data and landscape image data related to each other, for example, person image data and landscape image data taken in the same region, are selected, more interesting composite image data can be generated.
第3の本発明に係る画像処理装置は、上記画像分類手段により分類された上記人物画像データ及び上記風景画像データの少なくとも一方に対して画像補正を行うことにより、上記人物画像データと上記風景画像データとの画像特性を差別化する画像補正手段を備え、上記画像合成手段は、上記画像補正手段による画像補正後に上記人物画像データ及び上記風景画像データを合成することを特徴とする。 An image processing apparatus according to a third aspect of the present invention is configured to perform image correction on at least one of the person image data and the landscape image data classified by the image classification means, thereby performing the person image data and the landscape image. Image correction means for differentiating image characteristics from data is provided, and the image synthesis means synthesizes the person image data and the landscape image data after image correction by the image correction means.
このような構成によれば、人物画像データと風景画像データとの画像特性を差別化することにより、人物画像データ又は風景画像データの一方が強調された合成画像データを生成することができる。例えば、風景画像データに対して人物画像データが強調された合成画像データを生成すれば、風景画像データを背景画像として相応しい態様で合成することができる。 According to such a configuration, it is possible to generate composite image data in which one of the person image data or the landscape image data is emphasized by differentiating the image characteristics between the person image data and the landscape image data. For example, if composite image data in which person image data is emphasized with respect to landscape image data is generated, the landscape image data can be combined as a background image in a suitable mode.
第4の本発明に係る画像処理装置は、上記人物画像データ及び上記風景画像データには、それぞれ時間情報が対応付けられており、上記時間情報に基づいて、上記画像合成手段により合成する上記人物画像データ及び上記風景画像データを選択する画像選択手段を備えたことを特徴とする。 In the image processing apparatus according to the fourth aspect of the present invention, time information is associated with each of the person image data and the landscape image data, and the person synthesized by the image composition unit based on the time information. Image selection means for selecting image data and the landscape image data is provided.
このような構成によれば、人物画像データ及び風景画像データにそれぞれ対応付けられている時間情報に基づいて、より関連性の高い人物画像データ及び風景画像データを自動的に選択し、それらの合成画像データを生成することができる。例えば、比較的近い時間情報が対応付けられている人物画像データ及び風景画像データは、同じ地域で撮影されている可能性が高いため、それらを自動的に合成することによって、より趣のある合成画像データを容易に生成することができる。 According to such a configuration, based on the time information respectively associated with the person image data and the landscape image data, the person image data and the landscape image data having higher relevance are automatically selected, and their synthesis is performed. Image data can be generated. For example, since human image data and landscape image data associated with relatively close time information are likely to have been shot in the same region, combining them automatically makes for a more elegant combination Image data can be easily generated.
第5の本発明に係る画像処理装置は、上記画像選択手段が、上記人物画像データ及び上記風景画像データにそれぞれ対応付けられている上記時間情報に基づく時間間隔が所定値以内である場合にのみ、それらの画像データを上記画像合成手段により合成する画像データとして選択することを特徴とする。 The image processing apparatus according to the fifth aspect of the present invention is the image processing apparatus according to the present invention, wherein the image selection means only when a time interval based on the time information associated with the person image data and the landscape image data is within a predetermined value. The image data is selected as image data to be combined by the image combining means.
このような構成によれば、人物画像データ及び風景画像データにそれぞれ対応付けられている時間情報に基づく時間間隔が所定値を超える場合には、それらの画像データが合成されることがない。時間間隔が長い画像データ同士は、それぞれ別の地域で撮影されている可能性が高いため、そのような場合には合成画像データを生成しないような構成とすることにより、関連性の低い画像データ同士が合成されるのを防止することができる。したがって、より趣のある合成画像データのみを容易に生成することができる。 According to such a configuration, when the time interval based on the time information respectively associated with the person image data and the landscape image data exceeds a predetermined value, the image data is not synthesized. Image data with long time intervals are likely to have been shot in different areas. In such a case, image data with low relevance can be created by not creating composite image data. Combining each other can be prevented. Therefore, it is possible to easily generate only more interesting composite image data.
第6の本発明に係る画像形成装置は、画像データに含まれる顔画像を検出する顔検出手段と、上記顔検出手段による検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類手段と、上記画像分類手段により分類された上記人物画像データ及び上記風景画像データを合成することにより、上記風景画像データをアルバム台紙の背景画像とする合成画像データを生成する画像合成手段と、上記合成画像データに基づく写真プリントを生成することによりアルバムプリントを作成する画像形成手段とを備えたことを特徴とする。 An image forming apparatus according to a sixth aspect of the present invention includes a face detection unit that detects a face image included in image data, and image data in which the face image is detected based on a detection result by the face detection unit. And classifying the image data in which the face image is not detected into landscape image data, and combining the person image data and the landscape image data classified by the image classification unit, An image composition unit that generates composite image data using image data as a background image of an album board, and an image forming unit that creates an album print by generating a photo print based on the composite image data To do.
このような構成によれば、分類された人物画像データ及び風景画像データを合成することにより、風景画像データをアルバム台紙の背景画像とする合成画像データを生成し、当該合成画像データに基づく写真プリントを生成することによりアルバムプリントを作成することができる。したがって、作成されたアルバムプリントを製本することにより、独創性に富んだアルバムを作製することができる。 According to such a configuration, by combining the classified person image data and landscape image data, composite image data using the landscape image data as the background image of the album mount is generated, and a photo print based on the composite image data is generated. An album print can be created by generating. Therefore, by binding the created album print, it is possible to produce an album with high originality.
第7の本発明に係る画像処理方法は、画像データに含まれる顔画像を検出する顔検出ステップと、上記顔検出ステップによる検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類ステップと、上記画像分類ステップにより分類された上記人物画像データ及び上記風景画像データを合成する画像合成ステップとを備えたことを特徴とする。 According to a seventh aspect of the present invention, there is provided a face detection step for detecting a face image included in image data, and image data from which the face image is detected based on a detection result of the face detection step. An image classification step for classifying image data in which a face image is not detected into landscape image data, and an image synthesis step for synthesizing the person image data and the landscape image data classified in the image classification step. It is characterized by having.
このような構成によれば、第1の本発明に係る画像処理装置と同様の効果を奏する画像処理方法を提供することができる。 According to such a configuration, it is possible to provide an image processing method having the same effects as those of the image processing apparatus according to the first aspect of the present invention.
第8の本発明に係る画像処理プログラムは、コンピュータを、画像データに含まれる顔画像を検出する顔検出手段と、上記顔検出手段による検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類手段と、上記画像分類手段により分類された上記人物画像データ及び上記風景画像データを合成する画像合成手段として機能させることを特徴とする。 According to an eighth aspect of the present invention, there is provided an image processing program for causing a computer to detect a face image included in image data and image data from which the face image is detected based on a detection result by the face detection unit. Image classification means for classifying human image data and image data for which no face image has been detected into landscape image data, and image composition for combining the person image data and landscape image data classified by the image classification means It is made to function as a means.
このような構成によれば、第1の本発明に係る画像処理装置と同様の効果を奏する画像処理プログラムを提供することができる。 According to such a configuration, it is possible to provide an image processing program that has the same effect as the image processing apparatus according to the first aspect of the present invention.
本発明によれば、顔検出手段による検出結果に基づいて、画像データを人物画像データ又は風景画像データに分類し、その分類された人物画像データ及び風景画像データを合成することにより、合成画像データを生成することができるので、画像データを合成する作業をより簡略化することができる。 According to the present invention, based on the detection result by the face detection means, the image data is classified into person image data or landscape image data, and the classified person image data and landscape image data are combined, thereby combining the image data. Can be generated, so that the work of synthesizing the image data can be further simplified.
図1は、本発明の一実施形態に係る画像処理装置1の構成を示したブロック図である。この画像処理装置1は、例えばCPU(Central Processing Unit)からなる制御部を備えており、当該制御部がコンピュータプログラムを実行することにより、各種機能ブロックとして機能するようになっている。具体的には、上記制御部が、顔検出部11、画像分類部12、画像補正部13、画像選択部14及び画像合成部15などとして機能するようになっている。
FIG. 1 is a block diagram showing a configuration of an
また、画像処理装置1は、例えばRAM(Random Access Memory)からなるメモリを備えており、当該メモリの記憶領域に、各種記憶部が割り当てられている。具体的には、上記メモリに、初期画像データ記憶部21、人物画像データ記憶部22及び風景画像データ記憶部23などが割り当てられている。ただし、上記各記憶部は、別々のメモリにより構成されるものであってもよい。また、上記各記憶部は、画像処理装置1に内蔵されたような構成に限らず、外部メモリにより構成されていてもよい。
The
初期画像データ記憶部21には、複数の画像データを記憶することができる。この初期画像データ記憶部21に記憶される画像データとしては、現像済み写真フィルムの各コマ画像から読み取った画像データや、デジタルカメラで撮影することにより得られた画像データなどが挙げられる。各画像データには、例えば撮影日時などの時間情報が対応付けて記憶されている。上記時間情報は、時間を表す情報であれば、撮影時にカメラの機能によって自動的に付与されるものであってもよいし、ユーザの操作によって付与されるものであってもよい。
The initial image
顔検出部11は、初期画像データ記憶部21に記憶されている各画像データを順次に読み出し、それらの画像データに含まれる顔画像を検出する顔検出手段である。この顔検出部11は、周知の顔検出技術を用いて画像データに含まれる顔画像を検出するものであり、例えば目、鼻、口又は輪郭といった顔の特徴部分を検出することにより、画像データに顔画像が含まれているか否かを判別することができる。
The
画像分類部12は、顔検出部11による検出結果に基づいて、初期画像データ記憶部21に記憶されている各画像データを人物画像データ又は風景画像データに分類する画像分類手段である。上記人物画像データは、顔検出部11により顔画像が検出された画像データであり、顔画像が検出されていることから、人物の画像が含まれていると判断することができる。一方、上記風景画像データは、顔検出部11により顔画像が検出されなかった画像データであり、顔画像が検出されていないことから、人物の画像を含まない風景の画像であると判断することができる。
The
画像分類部12により分類された画像データのうち、人物画像データは人物画像データ記憶部22に記憶され、風景画像データは風景画像データ記憶部23に記憶される。人物画像データ記憶部22に記憶される各人物画像データ、及び、風景画像データ記憶部23に記憶される各風景画像データには、それぞれ上記時間情報が対応付けられている。
Of the image data classified by the
人物画像データ及び風景画像データは、画像選択手段としての画像選択部14により適宜選択されて、それぞれ人物画像データ記憶部22又は風景画像データ記憶部23から読み出され、画像合成手段としての画像合成部15により合成される。このとき、画像選択部14は、人物画像データ及び風景画像データにそれぞれ対応付けられている時間情報に基づいて、画像合成部15により合成する人物画像データ及び風景画像データを選択する。より具体的には、画像選択部14は、所定の条件を満たす場合に、1つの風景画像データに対して、少なくとも1つの人物画像データを対応付けて選択するようになっている。
The person image data and the landscape image data are appropriately selected by an
このように、本実施形態では、顔検出部11による検出結果に基づいて、画像データを人物画像データ又は風景画像データに分類し、その分類された人物画像データ及び風景画像データを合成することにより、合成画像データを生成することができるので、画像データを合成する作業をより簡略化することができる。また、予め用意されているテンプレートではなく、例えば自ら撮影した風景画像データに人物画像データを合成することができるので、独創性に富んだ合成画像データを生成することができる。
Thus, in this embodiment, based on the detection result by the
画像合成部15は、画像選択部14により選択された人物画像データ及び風景画像データを合成する際には、人物画像データ又は風景画像データに対して拡縮処理を行った後、風景画像データの一部を人物画像データに置き換えるようになっている。これにより、風景画像データを背景画像として、その背景画像の一部に人物画像データが配置された合成画像データを生成することができる。したがって、互いに関連する人物画像データ及び風景画像データ、例えば同じ地域で撮影した人物画像データ及び風景画像データを選択すれば、より趣のある合成画像データを生成することができる。画像合成部15は、人物画像データよりも風景画像データの方がサイズが大きくなるように処理を行うような構成であれば、人物画像データを縮小又は風景画像データを拡大する処理を行うような構成であってもよいし、人物画像データ及び風景画像データをそれぞれ縮小又は拡大する処理を行うような構成であってもよい。
When synthesizing the person image data and the landscape image data selected by the
画像補正部13は、人物画像データ及び風景画像データの少なくとも一方に対して画像補正を行うことにより、人物画像データと風景画像データとの画像特性を差別化する画像補正手段である。この例では、画像補正部13は、風景画像データのみに対して画像補正を行うようになっており、この場合、風景画像データのコントラストを低くしたり、明るさを増加又は低減させたりする画像補正を行うことにより、風景画像データに対して合成される人物画像データを強調することができる。
The
ただし、上記のような構成に限らず、例えば人物画像データのみに対して画像補正を行うような構成であってもよい。この場合、風景画像データよりも人物画像データのコントラストを高くするなどの画像補正を行うことにより、風景画像データに対して人物画像データを強調することができる。また、人物画像データ及び風景画像データに対してそれぞれ画像補正を行うような構成であってもよい。この場合、上述のような各画像データに対する画像補正を組み合わせて行うような構成であってもよい。なお、画像補正部13による画像補正は、風景画像データに対して人物画像データを強調するような態様に限らず、人物画像データに対して風景画像データを強調するような態様であってもよい。
However, the configuration is not limited to the above, and for example, a configuration in which image correction is performed only on human image data may be used. In this case, the person image data can be emphasized with respect to the landscape image data by performing image correction such as making the contrast of the person image data higher than that of the landscape image data. Further, the image correction may be performed on the person image data and the landscape image data. In this case, a configuration in which image correction for each image data as described above is performed in combination may be used. The image correction by the
このように、人物画像データと風景画像データとの画像特性を差別化することにより、人物画像データ又は風景画像データの一方が強調された合成画像データを生成することができる。例えば本実施形態のように、風景画像データに対して人物画像データが強調された合成画像データを生成すれば、風景画像データを背景画像として相応しい態様で合成することができる。 In this way, by distinguishing the image characteristics between the person image data and the landscape image data, it is possible to generate composite image data in which one of the person image data or the landscape image data is emphasized. For example, as in the present embodiment, if the composite image data in which the person image data is emphasized with respect to the landscape image data is generated, the landscape image data can be combined as a background image.
画像合成部15は、画像補正部13による画像補正後に、人物画像データ及び風景画像データを合成する。画像合成時には、人物画像データ及び風景画像データにそれぞれ対応付けられている時間情報に基づく時間間隔が所定値以内である場合にのみ、それら画像データが合成する画像データとして画像選択部14により選択される。例えば、撮影日時からなる時間情報に基づいて、人物画像データ及び風景画像データが所定値以上の時間間隔を隔てて撮影されていると判断される場合には、それらの画像データは合成する画像データとして選択されないようになっている。上記所定値は、例えば「1日」などの日単位や、「1時間」などの時間単位といったように、任意の値に設定することができる。
The
本実施形態では、画像合成部15は、分類された人物画像データ及び風景画像データを合成することにより、上記風景画像データをアルバム台紙の背景画像とする合成画像データを生成するものである。すなわち、画像合成部15により人物画像データと合成される風景画像データに基づく画像が、アルバムを作製する際の台紙の背景画像となる。画像合成部15において生成された合成画像データは、画像形成手段としての画像形成部16に送られ、当該画像形成部16において上記合成画像データに基づく写真プリントが生成されることによりアルバムプリントが作成される。上記画像形成部16には、写真プリント用のペーパーに対して画像の焼付露光を行うような周知の構成を採用することができ、当該画像形成部16及び画像処理装置1は、写真プリントを作成するための画像形成装置を構成している。
In the present embodiment, the
上記のような構成によれば、分類された人物画像データ及び風景画像データを合成することにより、風景画像データをアルバム台紙の背景画像とする合成画像データを生成し、当該合成画像データに基づく写真プリントを生成することによりアルバムプリントを作成することができる。したがって、作成されたアルバムプリントを製本することにより、独創性に富んだアルバムを作製することができる。 According to the above configuration, by combining the classified person image data and the landscape image data, the composite image data having the landscape image data as the background image of the album mount is generated, and the photograph based on the composite image data An album print can be created by generating a print. Therefore, by binding the created album print, it is possible to produce an album with high originality.
図2は、人物画像データ及び風景画像データを選択して合成する際の態様を示した図である。この例では、図2(a)に示す6つの画像データ31〜36に対して、この順序に応じた時間情報がそれぞれ対応付けられている場合について説明する。すなわち、6つの画像データ31〜36のうち、左端の画像データ31に対応付けられている時間情報が最も古く、右側に向かうにつれて画像データに対応付けられている時間情報が順次に新しくなっており、右端の画像データ36に対応付けられている時間情報が最も新しい。
FIG. 2 is a diagram showing an aspect when selecting and combining person image data and landscape image data. In this example, a case where time information corresponding to this order is associated with the six pieces of
また、6つの画像データ31〜36のうち、画像データ31,34は、顔画像を含まない風景画像データであり、他の画像データ32,33,35,36は、顔画像を含む人物画像データである。したがって、風景画像データ31,34に対しては、合成される人物画像データを強調するための画像補正が行われる。このとき、風景画像データ31,34に対しては、人物画像データ32,33,35,36の画像特性に合わせて画像補正が行われることが好ましい。
Of the six
この例では、風景画像データ31と人物画像データ32にそれぞれ対応付けられている時間情報に基づく時間間隔、及び、風景画像データ34と人物画像データ35にそれぞれ対応付けられている時間情報に基づく時間間隔が、いずれも上記所定値以内であり、互いに合成されるようになっている。特に、本実施形態では、風景画像データに合成される人物画像データに他の人物画像データが隣接している場合に、その人物画像データも一緒に風景画像データと合成されるようになっており、この例では、2つの人物画像データ32,33が風景画像データ31と合成され、2つの人物画像データ35,36が風景画像データ34と合成されるようになっている。
In this example, the time interval based on the time information associated with the
風景画像データは、横長の画像データとして撮影される場合が多い。一方、人物画像データは、縦長の画像データとして撮影される場合もあれば、横長の画像データとして撮影される場合もある。人物画像データ32,33のように縦長の画像データとして撮影された場合、これらの人物画像データ32,33は、図2(b)に示すように、横に並べて配置されるようにして横長の風景画像データ31に合成されることにより、合成画像データ41が生成される。この場合、人物画像データ32,33は、図2(b)の例のように横方向に対して平行に並べられてもよいし、横方向に対して傾斜する方向に並べられてもよい。ただし、縦長の人物画像データ32,33を、縦に並べて配置されるようにして横長の風景画像データ31に合成することも可能である。
Landscape image data is often taken as landscape image data. On the other hand, the person image data may be photographed as vertically long image data or may be photographed as horizontally long image data. When photographed as vertically long image data such as the
これに対して、人物画像データ35,36のように横長の画像データとして撮影された場合、これらの人物画像データ35,36は、図2(c)に示すように、縦に並べて配置されるようにして横長の風景画像データ34に合成されることにより、合成画像データ42が生成される。この場合、人物画像データ35,36は、縦方向に対して平行に並べられてもよいし、図2(c)の例のように縦方向に対して傾斜する方向に並べられてもよい。ただし、横長の人物画像データ35,36を、横に並べて配置されるようにして横長の風景画像データ34に合成することも可能である。
On the other hand, when photographed as landscape image data such as
本実施形態では、人物画像データ及び風景画像データにそれぞれ対応付けられている時間情報に基づいて、より関連性の高い人物画像データ及び風景画像データを自動的に選択し、それらの合成画像データを生成することができる。例えば、比較的近い時間情報が対応付けられている人物画像データ及び風景画像データは、同じ地域で撮影されている可能性が高いため、それらを自動的に合成することによって、より趣のある合成画像データを容易に生成することができる。 In the present embodiment, based on the time information respectively associated with the person image data and the landscape image data, the person image data and the landscape image data having higher relevance are automatically selected, and the combined image data is selected. Can be generated. For example, since human image data and landscape image data associated with relatively close time information are likely to have been shot in the same region, combining them automatically makes for a more elegant combination Image data can be easily generated.
また、本実施形態では、人物画像データ及び風景画像データにそれぞれ対応付けられている時間情報に基づく時間間隔が所定値を超える場合には、それらの画像データが合成されることがない。時間間隔が長い画像データ同士は、それぞれ別の地域で撮影されている可能性が高いため、そのような場合には合成画像データを生成しないような構成とすることにより、関連性の低い画像データ同士が合成されるのを防止することができる。したがって、より趣のある合成画像データのみを容易に生成することができる。 Further, in the present embodiment, when the time interval based on the time information respectively associated with the person image data and the landscape image data exceeds a predetermined value, those image data are not combined. Image data with long time intervals are likely to have been shot in different areas. In such a case, image data with low relevance can be created by not creating composite image data. Combining each other can be prevented. Therefore, it is possible to easily generate only more interesting composite image data.
なお、図2(b)のように横長の風景画像データ31に対して、2つの人物画像データ32,33が横に並べて合成されるような構成であれば、合成画像データを左右2頁分の見開き画像としてプリントする場合に、左右各頁に人物画像データを配置することができる。したがって、合成画像データをプリントしたものを製本することにより、アルバムを作製するようなサービスには適している。
If the configuration is such that the two
ただし、風景画像データに合成する人物画像データの数は、2つに限らず、3つ以上であってもよい。また、風景画像データは、横長の画像データに限らず、縦長の画像データであってもよい。この場合、縦長の風景画像データに対して、人物画像データが縦に並べて合成されるような構成であってもよいし、横に並べて合成されるような構成であってもよい。 However, the number of person image data to be combined with the landscape image data is not limited to two and may be three or more. The landscape image data is not limited to horizontally long image data, and may be vertically long image data. In this case, the configuration may be such that portrait image data is vertically arranged and combined with vertically long landscape image data, or may be configured to be combined horizontally.
図3は、初期画像データ記憶部21に記憶されている各画像データを人物画像データ又は風景画像データに分類する際の処理の一例を示したフローチャートである。図3に示すように、初期画像データ記憶部21に記憶されている各画像データを分類する際には、各画像データに対して順次に顔検出が行われる(ステップS101:顔検出ステップ)。
FIG. 3 is a flowchart showing an example of processing when classifying each image data stored in the initial image
上記顔検出により、顔画像が検出された場合には(ステップS102でYes)、その画像データが人物画像データに分類され(ステップS103)、顔画像が検出されなかった場合には(ステップS102でNo)、その画像データが風景画像データに分類される(ステップS104)。このような画像分類ステップ(ステップS102〜S104)が、初期画像データ記憶部21に記憶されている全ての画像データに対して行われた時点で(ステップS105でYes)、画像データを分類するための処理が終了する。 If a face image is detected by the face detection (Yes in step S102), the image data is classified as human image data (step S103), and if no face image is detected (in step S102). No), the image data is classified into landscape image data (step S104). When such an image classification step (steps S102 to S104) is performed on all image data stored in the initial image data storage unit 21 (Yes in step S105), the image data is classified. This process ends.
図4は、分類された人物画像データ及び風景画像データを選択して合成する際の処理の一例を示したフローチャートである。図4に示す例では、分類された人物画像データ及び風景画像データのうち、人物画像データが人物画像データ記憶部22から順次に読み出され、所定の条件を満たす場合にのみ風景画像データと合成されるようになっている。この例では、人物画像データが縮小されて風景画像データと合成される場合について説明するが、上述の通り、風景画像データを拡大するような構成であってもよいし、人物画像データ及び風景画像データをそれぞれ縮小又は拡大するような構成であってもよい。
FIG. 4 is a flowchart showing an example of processing when selecting and combining classified person image data and landscape image data. In the example illustrated in FIG. 4, out of the classified person image data and landscape image data, the person image data is sequentially read from the person image
人物画像データ記憶部22から人物画像データが読み出され(ステップS201)、その人物画像データに対して、対応付けられている時間情報に基づく時間間隔が所定値以内の風景画像データが風景画像データ記憶部23に記憶されている場合には(ステップS202でYes)、その風景画像データが合成する画像データとして選択される(ステップS203:画像選択ステップ)。このとき、対応する風景画像データが1つであれば、その風景画像データが合成する画像データとして選択される。一方、対応する風景画像データが複数あれば、その中で上記人物画像データに対応付けられている時間情報に基づく時間間隔が最も短い風景画像データ、すなわち時間的に最も近い風景画像データが合成する画像データとして選択される。ただし、複数の風景画像データの中から時間的に最も近い風景画像データが選択されるような構成に限らず、例えばユーザが操作部(図示せず)を操作することにより、複数の風景画像データの中から所望の風景画像データを選択することができるような構成であってもよい。 The person image data is read from the person image data storage unit 22 (step S201), and landscape image data whose time interval based on the associated time information is within a predetermined value for the person image data is the landscape image data. If it is stored in the storage unit 23 (Yes in step S202), the landscape image data is selected as image data to be synthesized (step S203: image selection step). At this time, if there is only one corresponding landscape image data, the landscape image data is selected as image data to be synthesized. On the other hand, if there are a plurality of corresponding landscape image data, the landscape image data with the shortest time interval based on the time information associated with the person image data, that is, the landscape image data closest in time is synthesized. Selected as image data. However, the present invention is not limited to the configuration in which the landscape image data closest in time is selected from the plurality of landscape image data. For example, when the user operates an operation unit (not shown), the plurality of landscape image data is selected. The configuration may be such that desired landscape image data can be selected from the list.
このようにして選択された風景画像データには、当該風景画像データに対して人物画像データを強調するための画像補正が行われる(ステップS204:画像補正ステップ)。そして、読み出されている人物画像データに隣接する人物画像データがある場合(ステップS205でYes)、すなわち、人物画像データ及び風景画像データを時系列で並べたときに、風景画像データを間に挟むことなく隣接する人物画像データがある場合には、その人物画像データを加えた2つの人物画像データがそれぞれ縮小され(ステップS206)、画像補正後の風景画像データの一部が縮小された2つの人物画像データに置き換えられることにより、合成画像データが生成される(ステップS208)。 The landscape image data selected in this way is subjected to image correction for emphasizing the person image data with respect to the landscape image data (step S204: image correction step). If there is human image data adjacent to the read human image data (Yes in step S205), that is, when the human image data and the landscape image data are arranged in time series, the landscape image data is interposed between them. If there is person image data adjacent without being sandwiched, the two person image data including the person image data is reduced (step S206), and a part of the landscape image data after image correction is reduced 2 By being replaced with one person image data, composite image data is generated (step S208).
一方、読み出されている人物画像データに隣接する人物画像データがない場合には(ステップS205でNo)、その読み出されている人物画像データのみが縮小され(ステップS207)、画像補正後の風景画像データの一部が縮小された当該人物画像データに置き換えられることにより、合成画像データが生成される(ステップS208)。 On the other hand, when there is no person image data adjacent to the read person image data (No in step S205), only the read person image data is reduced (step S207), and the image after image correction is corrected. By replacing a part of the landscape image data with the reduced human image data, composite image data is generated (step S208).
このような画像合成ステップ(ステップS206〜S208)は、上述のような所定の条件を満たす人物画像データについてのみ行われ、全ての人物画像データに対する上記所定の条件の判断及び合成処理が行われた時点で(ステップS209でYes)、画像データを合成するための処理が終了する。なお、ステップS204で隣接する人物画像データとして選択された画像データは、上記所定の条件の判断対象から除外されるような構成であることが好ましい。 Such image composition steps (steps S206 to S208) are performed only for the person image data that satisfies the predetermined condition as described above, and the predetermined conditions for all the person image data are determined and combined. At the time (Yes in step S209), the process for synthesizing the image data ends. The image data selected as the adjacent person image data in step S204 is preferably configured to be excluded from the determination target of the predetermined condition.
以上の実施形態では、分類された人物画像データ及び風景画像データを自動的に合成するような構成について説明した。しかし、このような構成に限らず、各画像データを人物画像データ又は風景画像データに分類するような構成であれば、その後の合成は手動で行われるような構成であってもよい。この場合、人物画像データは、風景画像データに合成されるような構成に限らず、例えばテンプレートに合成されるような構成であってもよい。ここで、背景画像などのテンプレートに合成する画像データとしては、人物の顔画像を含む人物画像データが選択される場合が比較的多い。したがって、上記のように画像データを人物画像データ又は風景画像データに分類することにより、複数の画像データの中から人物画像データを抽出し、それらの人物画像データの中から所望の画像データを容易に選択することができるので、画像データを合成する作業をより簡略化することができる。 In the above embodiment, the configuration in which the classified person image data and landscape image data are automatically combined has been described. However, the present invention is not limited to such a configuration, and a configuration in which subsequent composition is performed manually is acceptable as long as each image data is classified into person image data or landscape image data. In this case, the person image data is not limited to the composition that is synthesized with the landscape image data, but may be the composition that is synthesized with the template, for example. Here, as image data to be combined with a template such as a background image, human image data including a human face image is often selected. Therefore, by classifying image data into person image data or landscape image data as described above, person image data is extracted from a plurality of image data, and desired image data can be easily extracted from these person image data. Therefore, the work of synthesizing image data can be further simplified.
1 画像処理装置
11 顔検出部
12 画像分類部
13 画像補正部
14 画像選択部
15 画像合成部
16 画像形成部
21 初期画像データ記憶部
22 人物画像データ記憶部
23 風景画像データ記憶部
DESCRIPTION OF
Claims (8)
上記顔検出手段による検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類手段と、
上記画像分類手段により分類された上記人物画像データ及び上記風景画像データを合成する画像合成手段とを備えたことを特徴とする画像処理装置。 Face detection means for detecting a face image included in the image data;
Image classification means for classifying image data in which a face image is detected into person image data based on a detection result by the face detection means, and classifying image data in which no face image is detected into landscape image data;
An image processing apparatus comprising: an image synthesis unit that synthesizes the person image data and the landscape image data classified by the image classification unit.
上記画像合成手段は、上記画像補正手段による画像補正後に上記人物画像データ及び上記風景画像データを合成することを特徴とする請求項1又は2に記載の画像処理装置。 Image correction means for differentiating image characteristics between the person image data and the landscape image data by performing image correction on at least one of the person image data and the landscape image data classified by the image classification means. With
The image processing apparatus according to claim 1, wherein the image composition unit synthesizes the person image data and the landscape image data after the image correction by the image correction unit.
上記時間情報に基づいて、上記画像合成手段により合成する上記人物画像データ及び上記風景画像データを選択する画像選択手段を備えたことを特徴とする請求項1〜3のいずれかに記載の画像処理装置。 The person image data and the landscape image data are respectively associated with time information,
The image processing according to any one of claims 1 to 3, further comprising image selection means for selecting the person image data and the landscape image data to be synthesized by the image synthesis means based on the time information. apparatus.
上記顔検出手段による検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類手段と、
上記画像分類手段により分類された上記人物画像データ及び上記風景画像データを合成することにより、上記風景画像データをアルバム台紙の背景画像とする合成画像データを生成する画像合成手段と、
上記合成画像データに基づく写真プリントを生成することによりアルバムプリントを作成する画像形成手段とを備えたことを特徴とする画像形成装置。 Face detection means for detecting a face image included in the image data;
Image classification means for classifying image data in which a face image is detected into person image data based on a detection result by the face detection means, and classifying image data in which no face image is detected into landscape image data;
Image synthesizing means for synthesizing the person image data and the landscape image data classified by the image classifying means to generate synthesized image data using the landscape image data as a background image of an album mount;
An image forming apparatus comprising: image forming means for creating an album print by generating a photographic print based on the composite image data.
上記顔検出ステップによる検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類ステップと、
上記画像分類ステップにより分類された上記人物画像データ及び上記風景画像データを合成する画像合成ステップとを備えたことを特徴とする画像処理方法。 A face detection step for detecting a face image included in the image data;
An image classification step for classifying image data in which a face image is detected into person image data and classifying image data in which no face image is detected into landscape image data based on the detection result in the face detection step;
An image processing method comprising: an image synthesis step for synthesizing the person image data and the landscape image data classified by the image classification step.
画像データに含まれる顔画像を検出する顔検出手段と、
上記顔検出手段による検出結果に基づいて、顔画像が検出された画像データを人物画像データに分類し、顔画像が検出されなかった画像データを風景画像データに分類する画像分類手段と、
上記画像分類手段により分類された上記人物画像データ及び上記風景画像データを合成する画像合成手段として機能させることを特徴とする画像処理プログラム。 Computer
Face detection means for detecting a face image included in the image data;
Image classification means for classifying image data in which a face image is detected into person image data and classifying image data in which no face image is detected into landscape image data based on the detection result by the face detection means;
An image processing program that functions as an image combining unit that combines the person image data and the landscape image data classified by the image classification unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008181495A JP2010021853A (en) | 2008-07-11 | 2008-07-11 | Image processing device, image forming apparatus, image processing method, and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008181495A JP2010021853A (en) | 2008-07-11 | 2008-07-11 | Image processing device, image forming apparatus, image processing method, and image processing program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2010021853A true JP2010021853A (en) | 2010-01-28 |
Family
ID=41706308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008181495A Pending JP2010021853A (en) | 2008-07-11 | 2008-07-11 | Image processing device, image forming apparatus, image processing method, and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2010021853A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20210156768A (en) * | 2020-06-17 | 2021-12-27 | 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. | Image processing method, device, electronic equipment and readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999067949A1 (en) * | 1998-06-22 | 1999-12-29 | Fuji Photo Film Co., Ltd. | Imaging device and method |
JP2005173932A (en) * | 2003-12-10 | 2005-06-30 | Sony Corp | Method for identifying image and image processing device |
-
2008
- 2008-07-11 JP JP2008181495A patent/JP2010021853A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1999067949A1 (en) * | 1998-06-22 | 1999-12-29 | Fuji Photo Film Co., Ltd. | Imaging device and method |
JP2005173932A (en) * | 2003-12-10 | 2005-06-30 | Sony Corp | Method for identifying image and image processing device |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20210156768A (en) * | 2020-06-17 | 2021-12-27 | 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. | Image processing method, device, electronic equipment and readable storage medium |
US11783565B2 (en) | 2020-06-17 | 2023-10-10 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Image processing method, electronic device and readable storage medium for maintaining a face image buffer queue |
KR102595664B1 (en) * | 2020-06-17 | 2023-10-27 | 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. | Image processing method, device, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4762827B2 (en) | Electronic album generation apparatus, electronic album generation method, and program thereof | |
US7634106B2 (en) | Synthesized image generation method, synthesized image generation apparatus, and synthesized image generation program | |
JP5713279B2 (en) | Image classification device, electronic album creation device, image classification method, and program | |
JP2007129434A (en) | Information processor and method, and program | |
JP2008276668A (en) | Image-managing device, image-displaying device, image pickup device, processing method in these devices, and program which makes computer execute the processing method | |
JP5953285B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
JP2011097565A (en) | Graphic arrangement deciding method, as well as its program and information processing apparatus | |
JP2007049518A (en) | Album creator and album creation program | |
JP2011015091A (en) | Image capture apparatus | |
JP2003259296A5 (en) | ||
JP2003244620A (en) | Image processing method and apparatus, and program | |
JP2006121661A (en) | Synthesized image generation method and apparatus, and program | |
CN104079821B (en) | Image processing apparatus, image processing method | |
US20100321529A1 (en) | Image processing apparatus, method of controlling the apparatus, program thereof, and storage medium | |
JP5531828B2 (en) | Printing apparatus, layout adjusting method, program, and recording medium | |
JP2010021853A (en) | Image processing device, image forming apparatus, image processing method, and image processing program | |
JP2003348339A (en) | Image processing method, apparatus and program | |
JP4593506B2 (en) | Electronic album automatic creation device | |
JP2006086732A (en) | Image processor and image processing method | |
JP2010026661A (en) | Image processor, image forming apparatus, image processing method, and image processing program | |
JP2009071634A (en) | History image generating device, and program | |
JP4932802B2 (en) | Image processing apparatus, method, and program | |
JP2005109555A (en) | Image output apparatus, picture output method, and picture output processing program | |
JP2006120076A (en) | Image processing method | |
JP2004030117A (en) | Image synthesis apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20110228 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110609 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120315 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120321 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20120711 |