JP2005182512A - Image synthesis processing method, device, and program - Google Patents

Image synthesis processing method, device, and program Download PDF

Info

Publication number
JP2005182512A
JP2005182512A JP2003423197A JP2003423197A JP2005182512A JP 2005182512 A JP2005182512 A JP 2005182512A JP 2003423197 A JP2003423197 A JP 2003423197A JP 2003423197 A JP2003423197 A JP 2003423197A JP 2005182512 A JP2005182512 A JP 2005182512A
Authority
JP
Japan
Prior art keywords
image
face
background
size
orientation
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.)
Granted
Application number
JP2003423197A
Other languages
Japanese (ja)
Other versions
JP4164809B2 (en
Inventor
Yoshiaki Watanabe
芳明 渡邉
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 Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2003423197A priority Critical patent/JP4164809B2/en
Publication of JP2005182512A publication Critical patent/JP2005182512A/en
Application granted granted Critical
Publication of JP4164809B2 publication Critical patent/JP4164809B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To synthesize an image showing a boundary part between a face image and a background image more naturally in synthesizing the face image cut out from an original image to the background image having no image only in a face area. <P>SOLUTION: Face parts such as eyes and a mouth are extracted from the face image of the original image, and on the basis of the positional information of each face part, the direction and size of the face of the face image are calculated. In the background image storage part 17, a plurality of background images matching the direction and size of the face are previously stored. A background image selection part 16 selects a background image most closely matching the face image to be synthesized from the background image storage part 17 according to the calculated direction and size of the face. The background image selected in this way is merged with the face image extracted by the face image extraction part 13. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は画像合成処理方法及び装置並びにプログラムに係り、特に顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する技術に関する。   The present invention relates to an image composition processing method, apparatus, and program, and more particularly to a technique for extracting a face image from an original image including a face image and compositing the face image into a background image without an image of only the face area.

一般に、人間の顔を別の背景画像に合成する場合、顔の輪郭を抽出する処理が必要である。この輪郭抽出は、原画像の画質、背景色、背景の複雑さに大きく依存し、あらゆる画像に対応する処理は非常に難しい。   In general, when a human face is combined with another background image, a process for extracting the outline of the face is required. This contour extraction largely depends on the image quality, background color, and background complexity of the original image, and processing corresponding to all images is very difficult.

そこで、従来から青色の単一色の背景(ブルーバック)とともに人物の顔を撮影し、色の違いを利用して顔の輪郭を抽出しやすいようにした技術が知られている(特許文献1)。
特開平9−190522号公報
Therefore, a technique is known in which a human face is photographed together with a blue single-color background (blue back) and the facial contour is easily extracted using the color difference (Patent Document 1). .
JP-A-9-190522

しかしながら、ブルーバックのような単純な背景で撮影された原画像の場合には、顔画像を抽出しやすいが、背景が制限されるという問題がある。   However, in the case of an original image taken with a simple background such as a blue background, it is easy to extract a face image, but there is a problem that the background is limited.

これに対し、顔の輪郭を抽出することはせずに、観光地や遊園地などに設置されている顔ハメ記念撮影パネルのような、顔領域だけ画像の無い背景画像に顔画像を裏側から貼り付けて顔画像が合成された合成画像を作成する方法があるが、この方法の場合、顔画像と背景画像との境界部分が不自然になりやすいという問題がある。   On the other hand, without extracting the outline of the face, the face image is displayed from the back side in the background image without the face area image, such as a face hame commemorative photo panel installed in sightseeing spots or amusement parks. There is a method of creating a composite image in which a face image is combined by pasting, but this method has a problem that the boundary portion between the face image and the background image tends to be unnatural.

本発明はこのような事情に鑑みてなされたもので、原画像から切り出した顔画像を顔領域だけ画像の無い背景画像に合成する際に、顔画像と背景画像との境界部分をより自然に見せることができる画像合成処理方法及び装置並びにプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and when a face image cut out from an original image is combined with a background image without an image of only a face area, a boundary portion between the face image and the background image is more naturally generated. An object of the present invention is to provide an image composition processing method and apparatus and program that can be shown.

前記目的を達成するために請求項1に係る発明は、顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する画像合成処理方法において、予め顔の向き及び顔の大きさのうちの少なくとも一方に対応する複数の背景画像を準備するステップと、前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出するステップと、前記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて前記顔画像の合成に最もマッチングする背景画像を前記複数の背景画像から選択するステップと、前記選択した背景画像に前記原画像の顔画像を合成するステップと、を含むことを特徴としている。   In order to achieve the above object, the invention according to claim 1 is directed to an image composition processing method for extracting a face image from an original image including a face image and combining the face image with a background image without an image of only a face area. Preparing a plurality of background images corresponding to at least one of the orientation and the face size, and calculating at least one of the face orientation and the face size of the face image included in the original image Selecting a background image that best matches the synthesis of the face image based on at least one of the face orientation and the face size of the calculated face image from the plurality of background images; and the selection Synthesizing the face image of the original image with the background image.

予め顔領域だけ画像の無い複数の背景画像を準備しておく。これらの複数の背景画像は、顔の向き及び顔の大きさのうちの少なくとも一方に対応してそれぞれ異なっている。その一方、原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出する。顔画像の顔の向きや大きさは、顔画像から顔の目、口等の顔パーツを抽出し、これらの顔パーツの位置情報から算出することができる。   A plurality of background images having no image only in the face area are prepared in advance. The plurality of background images are different from each other in correspondence with at least one of the face orientation and the face size. On the other hand, at least one of the face orientation and the face size of the face image included in the original image is calculated. The face direction and size of the face image can be calculated from the position information of the face parts extracted from the face image such as face eyes and mouth.

そして、上記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて顔画像の合成に最もマッチングする背景画像を複数の背景画像の中から選択する。即ち、顔画像の顔の向きと同じ方向を向いている背景画像及び/又は顔画像の顔の大きさに対応した大きさの顔領域を有する背景画像を選択する。この選択した背景画像の顔領域に原画像の顔画像を合成する。これにより、顔画像と背景画像との境界部分がより自然に見えるように合成することができる。   Then, based on at least one of the calculated face orientation and face size, a background image that best matches the synthesis of the face image is selected from a plurality of background images. That is, a background image that faces the same direction as the face of the face image and / or a background image that has a face area with a size corresponding to the face size of the face image is selected. The face image of the original image is synthesized with the face area of the selected background image. Thereby, it is possible to synthesize the boundary portion between the face image and the background image so that they appear more natural.

請求項2に係る発明は、顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する画像合成処理装置において、顔の向き及び顔の大きさのうちの少なくとも一方に対応する複数の背景画像を記憶する記憶手段と、前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出する算出手段と、前記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて前記顔画像の合成に最もマッチングする背景画像を前記記憶手段に記憶されている複数の背景画像から選択する選択手段と、前記選択した背景画像に前記原画像の顔画像を合成する画像合成手段と、を備えたことを特徴としている。   The invention according to claim 2 is an image composition processing device that extracts a face image from an original image including a face image, and synthesizes the face image with a background image without an image of the face area. Storage means for storing a plurality of background images corresponding to at least one of them, calculation means for calculating at least one of a face orientation and a face size of a face image included in the original image, and the calculated Selection means for selecting a background image that most closely matches the synthesis of the face image based on at least one of the face orientation and face size of the face image from a plurality of background images stored in the storage means; Image synthesis means for synthesizing the face image of the original image with the selected background image.

請求項3に示すように請求項2に記載の画像合成処理装置において、前記算出手段は、前記原画像に含まれる顔画像から目、口を抽出する抽出手段を有し、この抽出した目、口の位置情報に基づいて前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出することを特徴としている。   According to a third aspect of the present invention, in the image composition processing device according to the second aspect, the calculation unit includes an extraction unit that extracts eyes and a mouth from a face image included in the original image. At least one of the face orientation and the face size of the face image included in the original image is calculated based on the mouth position information.

請求項4に示すように請求項2に記載の画像合成処理装置において、前記画像合成手段は、前記選択した背景画像の顔領域に前記原画像の顔画像を裏側から貼り付けて合成することを特徴としている。即ち、原画像から顔の輪郭を抽出することなく、背景画像の顔領域よりも大きな顔画像を原画像から切り出し、これを背景画像の裏側から貼り付けて合成するようにしている。   According to a fourth aspect of the present invention, in the image composition processing device according to the second aspect, the image composition means pastes the face image of the original image on the face area of the selected background image from the back side and composes it. It is a feature. That is, a face image larger than the face area of the background image is cut out from the original image without extracting the outline of the face from the original image, and this is pasted from the back side of the background image and synthesized.

請求項5に係る発明は、顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する画像合成処理プログラムにおいて、前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出する機能と、顔の向き及び顔の大きさのうちの少なくとも一方に対応する複数の背景画像が記憶されている記憶手段から1つの背景画像を選択する機能であって、前記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて前記顔画像の合成に最もマッチングする背景画像を前記記憶手段に記憶されている複数の背景画像から選択する機能と、前記選択した背景画像に前記原画像の顔画像を合成する機能と、をコンピュータに実現させることを特徴としている。   According to a fifth aspect of the present invention, in an image composition processing program for extracting a face image from an original image including a face image and combining the face image with a background image without an image of the face region, the face image included in the original image is synthesized. One background from a storage unit that stores a plurality of background images corresponding to at least one of the face orientation and the face size, and a function for calculating at least one of the face orientation and the face size A function for selecting an image, wherein a background image that best matches the synthesis of the face image based on at least one of the face orientation and the face size of the calculated face image is stored in the storage means; And a function of selecting a plurality of background images and a function of synthesizing the face image of the original image with the selected background image.

上記構成の本発明によれば、合成しようとする原画像の顔画像の顔の向きや大きさに応じた最適な背景画像を選択し、その選択した背景画像に顔画像を合成するようにしたため、顔画像と背景画像との境界部分をより自然に見せることができる。   According to the present invention configured as described above, an optimal background image corresponding to the face orientation and size of the face image of the original image to be combined is selected, and the face image is combined with the selected background image. The boundary part between the face image and the background image can be seen more naturally.

以下添付図面に従って本発明に係る画像合成処理方法及び装置並びにプログラムの好ましい実施の形態について詳説する。   Hereinafter, preferred embodiments of an image composition processing method and apparatus and program according to the present invention will be described in detail with reference to the accompanying drawings.

図1は本発明に係る画像合成処理装置の要部を示す機能ブロック図である。   FIG. 1 is a functional block diagram showing a main part of an image composition processing apparatus according to the present invention.

同図に示すように、この画像合成処理装置10は、例えば、パーソナルコンピュータ等によって構成することができ、画像データ入力部11と、顔パーツ抽出部12と、顔画像抽出部13と、顔の向き算出部14と、顔の大きさ算出部15と、背景画像選択部16と、背景画像記憶部17と、合成処理部18と、画像データ出力部19とから構成されている。   As shown in the figure, the image composition processing apparatus 10 can be constituted by a personal computer, for example, and includes an image data input unit 11, a face part extraction unit 12, a face image extraction unit 13, and a facial image. The orientation calculation unit 14, the face size calculation unit 15, the background image selection unit 16, the background image storage unit 17, the synthesis processing unit 18, and the image data output unit 19 are configured.

デジタルスチルカメラ(以下DSCと記載)やカメラ付き携帯電話等により撮影された原画像データは、画像データ入力部11を介して画像合成処理装置10に入力される。原画像データは、人物を任意の背景のもとで撮影して得られた人物画像データである。   Original image data captured by a digital still camera (hereinafter referred to as DSC), a mobile phone with a camera, or the like is input to the image composition processing apparatus 10 via the image data input unit 11. The original image data is person image data obtained by photographing a person under an arbitrary background.

画像データ入力部11には、DSCメディアのメディアインターフェイスの他にUSBインターフェイス、赤外線通信(IrDA)インターフェイス、イーサネットインターフェイスおよび無線通信インターフェイスを用いてもよく、何れのインターフェイスを適用するかは、原画像データが記録されている媒体や原画像データの記録形式により、ユーザによって適宜選択される。   In addition to the media interface of DSC media, a USB interface, an infrared communication (IrDA) interface, an Ethernet interface, and a wireless communication interface may be used for the image data input unit 11, and which interface is applied depends on the original image data Is appropriately selected by the user depending on the medium on which the image is recorded and the recording format of the original image data.

画像合成処理装置10に入力された原画像データは、顔パーツ抽出部12及び顔画像抽出部13に送られ、ここで顔パーツの抽出と顔画像の抽出が行われる。顔パーツ抽出部12は、入力された画像データを解析して、目、口、顎などの顔パーツを抽出する。抽出結果は、各顔パーツの位置情報として顔の向き算出部14及び顔の大きさ算出部15に出力される。   The original image data input to the image composition processing apparatus 10 is sent to the face part extraction unit 12 and the face image extraction unit 13, where face parts and face images are extracted. The face part extraction unit 12 analyzes the input image data and extracts face parts such as eyes, mouths, and jaws. The extraction result is output to the face direction calculation unit 14 and the face size calculation unit 15 as position information of each face part.

顔画像抽出部13は入力された原画像から顔画像を切り出す処理を行うもので、例えば、原画像内の肌色を抽出し、その肌色の領域のある点から同一領域に属すると思われる連結領域に対して順次領域拡張を行い、このようにして抽出された領域の形状が顔の形状(丸や楕円に近い形状)か否かによって顔領域を抽出し、この顔領域の画像又は顔領域よりも一回り大きめの領域を顔画像として原画像から切り出す。   The face image extraction unit 13 performs a process of extracting a face image from the input original image. For example, the face image extraction unit 13 extracts a skin color in the original image, and is a connected region that is considered to belong to the same region from a certain point of the skin color region. The region is sequentially expanded, and a face region is extracted depending on whether or not the shape of the region extracted in this way is a face shape (a shape close to a circle or an ellipse). Is cut out from the original image as a face image.

顔の向き算出部14及び顔の大きさ算出部15は、それぞれ顔パーツ抽出部12で抽出された顔パーツの位置情報に基づいて顔の向き及び顔の大きさを算出する。例えば、図2に示すように、左目の瞳位置と口の左端の位置との水平距離d1と、右目の瞳位置と口の右端の位置との水平距離d2との比率によって顔の向き(左右方向の角度)を算出することができる。また、目と口、又は目と顎との垂直方向の距離から顔の大きさを算出することができる。尚、顔の大きさは、例えば、原画像の画像サイズを固定値としたとき、前記距離間の画素数が顔の大きさに対応する。   The face direction calculation unit 14 and the face size calculation unit 15 calculate the face direction and the face size based on the position information of the face parts extracted by the face part extraction unit 12, respectively. For example, as shown in FIG. 2, the orientation of the face (left and right) depends on the ratio of the horizontal distance d1 between the pupil position of the left eye and the left end position of the mouth and the horizontal distance d2 between the pupil position of the right eye and the right end position of the mouth. Direction angle) can be calculated. Further, the size of the face can be calculated from the vertical distance between the eyes and mouth or between the eyes and chin. The size of the face is, for example, when the image size of the original image is a fixed value, the number of pixels between the distances corresponds to the size of the face.

顔の向き算出部14及び顔の大きさ算出部15によってそれぞれ算出された顔の向き及び顔の大きさの算出結果は、背景画像選択部16に送られる。   The calculation results of the face direction and the face size calculated by the face direction calculation unit 14 and the face size calculation unit 15 are sent to the background image selection unit 16.

背景画像記憶部17には、複数種類の背景画像が記憶されるとともに、同種の背景画像であっても顔の向き及び顔の大きさに応じた複数の背景画像が記憶されている。尚、利用者は所定のユーザインターフェイスを介して所望の種類の背景画像を選択することができるようになっている。   The background image storage unit 17 stores a plurality of types of background images, and stores a plurality of background images corresponding to the face orientation and the face size even for the same type of background images. The user can select a desired type of background image via a predetermined user interface.

前記背景画像は、顔領域だけ画像の無い(顔領域だけ画像が抜かれた)画像であり、また、図3及び図4に示すように同種の背景画像に対して顔の向きや顔の大きさに応じた複数の背景画像が準備されている。   The background image is an image having no image only in the face area (an image in which only the face area is extracted), and as shown in FIGS. 3 and 4, the face orientation and the face size with respect to the same type of background image. A plurality of background images corresponding to the above are prepared.

図3(A)乃至(C)はそれぞれ顔の大きさが同じで、顔の向きが異なる同種の背景画像を示しており、図4(A)及び(B)はそれぞれ顔の向きが同じ(正面)で、顔の大きさが異なる同種の背景画像を示している。尚、図3及び図4に示した背景画像は一例であり、背景画像記憶部17には、顔の向きと顔の大きさとの組み合わせの数だけ背景画像が記憶されている。   3A to 3C show the same kind of background images having the same face size and different face directions, and FIGS. 4A and 4B have the same face direction ( The same kind of background images with different face sizes are shown in FIG. Note that the background images shown in FIGS. 3 and 4 are examples, and background images are stored in the background image storage unit 17 by the number of combinations of face orientations and face sizes.

背景画像選択部16は、顔の向き算出部14及び顔の大きさ算出部15から入力する顔の向き及び顔の大きさの算出結果に基づいて背景画像記憶部17から合成する顔画像の顔の向き及び顔の大きさに最適な背景画像を読み出し、その背景画像を合成処理部18に出力する。   The background image selection unit 16 includes a face image face to be synthesized from the background image storage unit 17 based on the face orientation and face size calculation results input from the face orientation calculation unit 14 and the face size calculation unit 15. The background image most suitable for the orientation and the face size is read out, and the background image is output to the composition processing unit 18.

合成処理部18は、顔画像抽出部13から入力した顔画像と背景画像選択部16から入力した背景画像とを合成する。即ち、合成処理部18は、背景画像の顔領域(顔部分が抜かれた領域)に、顔画像抽出部13から入力した顔画像を位置決めし、背景画像の裏側から貼り付ける合成処理を行う。   The synthesis processing unit 18 synthesizes the face image input from the face image extraction unit 13 and the background image input from the background image selection unit 16. That is, the composition processing unit 18 performs a composition process in which the face image input from the face image extraction unit 13 is positioned in the face area of the background image (the area from which the face portion is removed) and pasted from the back side of the background image.

合成処理部18で合成された合成画像は、画像データ出力部19から出力される。出力形態には、表示装置やプリンタに画像を出力する形態、メモリカードやCD−R等の記録メディアや内蔵ハードディスクなどの記憶装置にファイル形式で記録する形態、通信手段(有線、無線を問わない)を介して他の装置に転送する形態などがある。   The synthesized image synthesized by the synthesis processing unit 18 is output from the image data output unit 19. The output form includes a form for outputting an image to a display device and a printer, a form for recording in a recording medium such as a memory card and a CD-R, and a storage device such as a built-in hard disk, and communication means (both wired and wireless). ) And the like, and so on.

この画像合成処理装置10は、上述の処理を行う画像合成処理プログラムがインストールされたパーソナルコンピュータで実現できるが、これに限らず、ネットワーク上の画像加工用のサービスサーバ等によって実現してもよい。   The image composition processing apparatus 10 can be realized by a personal computer in which the image composition processing program for performing the above-described processing is installed, but is not limited thereto, and may be realized by a service server for image processing on a network.

図5は本発明に係る画像合成処理方法が適用されたネットワークシステムの構成図である。   FIG. 5 is a block diagram of a network system to which the image composition processing method according to the present invention is applied.

図5において、符号130はインターネット等のネットワーク140に接続可能なカメラ付き携帯電話であり、150はネットワーク140に接続可能な利用者のコンピュータ(PC)である。尚、このPC150は、USB等のインターフェイスを介してDSC152が接続され、DSC152から画像を取り込むことができるようになっている。   In FIG. 5, reference numeral 130 is a camera-equipped mobile phone that can be connected to a network 140 such as the Internet, and 150 is a user computer (PC) that can be connected to the network 140. The PC 150 is connected to a DSC 152 via an interface such as a USB, and can capture an image from the DSC 152.

また、ネットワーク140には、前述した画像合成処理装置10での画像加工と同様な画像処理を行うサービスサーバ160や、サービスサーバ160で処理された合成画像をプリント出力するプリントサーバ170等が接続されている。   Also connected to the network 140 are a service server 160 that performs image processing similar to the image processing in the image composition processing apparatus 10 described above, a print server 170 that prints a composite image processed by the service server 160, and the like. ing.

サービスサーバ160が提供する背景画像の合成処理サービスを利用する場合には、カメラ付き携帯電話130やPC150を用いてサービスサーバ160のホームページにアクセスし、背景画像の合成処理を依頼する肖像画像をサービスサーバ160にアップロードする。また、サービスサーバ160は、背景画像の一覧等を利用者に提示し、利用者に背景画像を選択させることができる。   When using the background image composition processing service provided by the service server 160, use the camera-equipped mobile phone 130 or the PC 150 to access the home page of the service server 160 and provide a portrait image for requesting the background image composition processing. Upload to server 160. In addition, the service server 160 can present a list of background images to the user and allow the user to select a background image.

サービスサーバ160は、図1に示した画像合成処理装置10と同様な機能と、通信機能を有するサーバコンピュータ162と、利用者からアップロードされた画像を保管したり、ユーザID、メールアドレス等のユーザ情報を管理したりする大容量記録装置(ストレージ)164とから構成されている。このサービスサーバ160は、利用者からアップロードされた原画像に対する背景画像の合成処理の依頼を受け付けると、原画像から顔画像を抽出し、上述のように顔の向きや大きさに最もマッチングした背景画像を選択し、この選択した背景画像と顔画像とを合成する。このようにして作成した合成画像はネットワーク140経由で利用者のカメラ付き携帯電話130やPC150に提供される。   The service server 160 stores a server computer 162 having a function similar to that of the image composition processing apparatus 10 shown in FIG. 1 and a communication function, an image uploaded from a user, and a user ID, e-mail address, etc. And a large capacity recording device (storage) 164 for managing information. When the service server 160 receives a request for a background image composition process for an original image uploaded from a user, the service server 160 extracts a face image from the original image and, as described above, a background that most closely matches the face orientation and size. An image is selected, and the selected background image and face image are combined. The composite image created in this way is provided to the user's camera-equipped mobile phone 130 and PC 150 via the network 140.

画像の提供方法としては、依頼元のユーザ端末(この場合、カメラ付き携帯電話130やPC150)に画像データを送り返す態様、或いは、電子メールに添付して配信する態様がある。また、合成画像を所定の格納場所(例えば、ユーザ別に設定した専用の閲覧サイト)に格納し、そのアドレス情報(例えば、URL )を電子メール等により通知する態様もある。この場合、ユーザは指定されたサイトにアクセスして、そこから顔表情変化画像を閲覧又はダウンロードすることができる。   As an image providing method, there is a mode in which image data is sent back to the requesting user terminal (in this case, the camera-equipped mobile phone 130 or the PC 150), or a mode in which the image data is attached and distributed. There is also an aspect in which the composite image is stored in a predetermined storage location (for example, a dedicated browsing site set for each user), and the address information (for example, URL) is notified by e-mail or the like. In this case, the user can access the designated site and browse or download the facial expression change image from there.

こうして、利用者はサービスサーバ160で生成された合成画像をカメラ付き携帯電話130のディスプレイ131やPC150のディスプレイ151によって閲覧することができる。   In this way, the user can view the composite image generated by the service server 160 on the display 131 of the camera-equipped mobile phone 130 or the display 151 of the PC 150.

また、サービスサーバ160は、利用者から合成画像のプリント注文を受け付けた場合には、上記合成画像をプリントサーバ170に転送する。プリントサーバ170は、サーバコンピュータ172と、プリント装置174とを備えており、サービスサーバ160から受信した合成画像に基づいてプリント装置174により背景が合成された合成画像をプリント出力する。尚、プリント出力された写真プリントは、利用者が指定したコンビニエンス・ストアや写真店などの受取先に配送されたり、直接利用者の自宅に配送されたりする。   When the service server 160 receives a print order of a composite image from the user, the service server 160 transfers the composite image to the print server 170. The print server 170 includes a server computer 172 and a print device 174, and prints out a composite image in which the background is combined by the print device 174 based on the composite image received from the service server 160. The printed photo print is delivered to a receiver such as a convenience store or a photo store designated by the user, or directly to the user's home.

次に、カメラ付き携帯電話によって肖像画像を撮影してから背景画像を入手するまでの処理の流れについて説明する。   Next, the flow of processing from taking a portrait image with a camera-equipped mobile phone until obtaining a background image will be described.

図6に示すようにカメラ付き携帯電話130によって肖像画像を撮影し、その肖像画像をサービスサーバ160にアップロードする(ステップS10)。サービスサーバ160は、アップロードされた肖像画像を取得し、この肖像画像に合成する背景画像の一覧等を利用者に提示する(ステップS12)。   As shown in FIG. 6, a portrait image is taken by the camera-equipped mobile phone 130, and the portrait image is uploaded to the service server 160 (step S10). The service server 160 acquires the uploaded portrait image and presents a list of background images to be combined with the portrait image to the user (step S12).

カメラ付き携帯電話130から背景画像の選択や合成の指示を受入すると(ステップS14)、サービスサーバ160は、前記取り込んだ肖像画像から目、口等の顔パーツの位置を検出し(ステップS16)、各顔パーツの位置情報に基づいて肖像画像の顔の向き及び顔の大きさを算出する(ステップS18、S20)。   When an instruction to select or combine a background image is received from the camera-equipped mobile phone 130 (step S14), the service server 160 detects the position of facial parts such as eyes and mouth from the captured portrait image (step S16). Based on the position information of each face part, the face orientation and face size of the portrait image are calculated (steps S18 and S20).

続いて、算出した肖像画像の顔の向き及び顔の大きさに基づいて顔の向き及び顔の大きさに最もマッチングした背景画像を背景画像記憶部に記憶されている複数の背景画像の中から選択する(ステップS22)。そして、選択した背景画像と肖像画像の顔画像とを合成し(ステップS24)、この合成画像を電子メールに添付してカメラ付き携帯電話130に送信する。   Subsequently, based on the calculated face orientation and face size of the portrait image, a background image that most closely matches the face orientation and face size is selected from a plurality of background images stored in the background image storage unit. Select (step S22). Then, the selected background image and the face image of the portrait image are combined (step S24), and this combined image is attached to an e-mail and transmitted to the camera-equipped mobile phone 130.

利用者は、サービスサーバ160から送信された電子メールの添付ファイル(画像ファイル)を開くことにより、合成画像をカメラ付き携帯電話130のディスプレイ131に表示させることができる(ステップS26)。   The user can display the composite image on the display 131 of the camera-equipped mobile phone 130 by opening the attached file (image file) of the e-mail transmitted from the service server 160 (step S26).

図1は本発明に係る画像合成処理装置の実施の形態を示す機能ブロック図である。FIG. 1 is a functional block diagram showing an embodiment of an image composition processing apparatus according to the present invention. 図2は顔の向きや顔の大きさを計測する方法を説明するために用いた図である。FIG. 2 is a diagram used for explaining a method of measuring the face orientation and the face size. 図3(A)乃至(C)はそれぞれ顔の大きさが同じで、顔の向きが異なる背景画像の一例を示す図である。3A to 3C are diagrams showing examples of background images having the same face size and different face orientations. 図4(A)及び(B)はそれぞれ顔の向きが同じ(正面)で、顔の大きさが異なる背景画像の一例を示す図である。4A and 4B are diagrams illustrating examples of background images having the same face direction (front) and different face sizes. 図5は本発明に係る画像合成処理方法が適用されたネットワークシステムの構成図である。FIG. 5 is a block diagram of a network system to which the image composition processing method according to the present invention is applied. 図6はカメラ付き携帯電話によって肖像画像を撮影してから背景画像を入手するまでの処理の流れを示すフローチャートである。FIG. 6 is a flowchart showing the flow of processing from taking a portrait image with a camera-equipped mobile phone until obtaining a background image.

符号の説明Explanation of symbols

10…画像合成処理装置、12…顔パーツ抽出部、13…顔画像抽出部、14…顔の向き算出部、15…顔の大きさ算出部、16…背景画像選択部、17…背景画像記憶部、18…合成処理部、130…カメラ付き携帯電話、140…ネットワーク、150…PC、160…サービスサーバ   DESCRIPTION OF SYMBOLS 10 ... Image composition processing apparatus, 12 ... Face parts extraction part, 13 ... Face image extraction part, 14 ... Face direction calculation part, 15 ... Face size calculation part, 16 ... Background image selection part, 17 ... Background image memory | storage , 18 ... composite processing unit, 130 ... mobile phone with camera, 140 ... network, 150 ... PC, 160 ... service server

Claims (5)

顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する画像合成処理方法において、
予め顔の向き及び顔の大きさのうちの少なくとも一方に対応する複数の背景画像を準備するステップと、
前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出するステップと、
前記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて前記顔画像の合成に最もマッチングする背景画像を前記複数の背景画像から選択するステップと、
前記選択した背景画像に前記原画像の顔画像を合成するステップと、
を含むことを特徴とする画像合成処理方法。
In an image composition processing method that cuts out a face image from an original image including a face image, and synthesizes the face image with a background image without an image of only the face region,
Preparing a plurality of background images corresponding to at least one of a face orientation and a face size in advance;
Calculating at least one of a face orientation and a face size of a face image included in the original image;
Selecting from the plurality of background images a background image that most closely matches the synthesis of the face image based on at least one of the face orientation and the face size of the calculated face image;
Synthesizing the face image of the original image with the selected background image;
An image composition processing method.
顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する画像合成処理装置において、
顔の向き及び顔の大きさのうちの少なくとも一方に対応する複数の背景画像を記憶する記憶手段と、
前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出する算出手段と、
前記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて前記顔画像の合成に最もマッチングする背景画像を前記記憶手段に記憶されている複数の背景画像から選択する選択手段と、
前記選択した背景画像に前記原画像の顔画像を合成する画像合成手段と、
を備えたことを特徴とする画像合成処理装置。
In an image composition processing apparatus that cuts out a face image from an original image including a face image, and synthesizes the face image with a background image without an image of only the face region,
Storage means for storing a plurality of background images corresponding to at least one of the face orientation and the face size;
Calculating means for calculating at least one of a face orientation and a face size of a face image included in the original image;
Selection for selecting a background image that best matches the synthesis of the face image based on at least one of the face orientation and the face size of the calculated face image from a plurality of background images stored in the storage means Means,
Image synthesizing means for synthesizing the face image of the original image with the selected background image;
An image composition processing apparatus comprising:
前記算出手段は、前記原画像に含まれる顔画像から目、口を抽出する抽出手段を有し、この抽出した目、口の位置情報に基づいて前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出することを特徴とする請求項2に記載の画像合成処理装置。   The calculation means includes extraction means for extracting eyes and mouth from a face image included in the original image, and the orientation of the face of the face image included in the original image based on the extracted position information of the eyes and mouth The image composition processing apparatus according to claim 2, wherein at least one of the size and the face size is calculated. 前記画像合成手段は、前記選択した背景画像の顔領域に前記原画像の顔画像を裏側から貼り付けて合成することを特徴とする請求項2に記載の画像合成処理装置。   The image composition processing apparatus according to claim 2, wherein the image composition unit pastes the face image of the original image on the face area of the selected background image from the back side to compose the image. 顔画像を含む原画像から顔画像を切り出し、該顔画像を顔領域だけ画像の無い背景画像に合成する画像合成処理プログラムにおいて、
前記原画像に含まれる顔画像の顔の向き及び顔の大きさのうちの少なくとも一方を算出する機能と、
顔の向き及び顔の大きさのうちの少なくとも一方に対応する複数の背景画像が記憶されている記憶手段から1つの背景画像を選択する機能であって、前記算出した顔画像の顔の向き及び顔の大きさのうちの少なくとも一方に基づいて前記顔画像の合成に最もマッチングする背景画像を前記記憶手段に記憶されている複数の背景画像から選択する機能と、
前記選択した背景画像に前記原画像の顔画像を合成する機能と、
をコンピュータに実現させることを特徴とする画像合成処理プログラム。
In an image composition processing program that cuts out a face image from an original image including a face image and synthesizes the face image with a background image without an image of only the face region,
A function of calculating at least one of a face orientation and a face size of a face image included in the original image;
A function of selecting one background image from a storage unit that stores a plurality of background images corresponding to at least one of the face orientation and the face size, the face orientation of the calculated face image and A function of selecting a background image that most closely matches the synthesis of the face image based on at least one of the face sizes from a plurality of background images stored in the storage means;
A function of synthesizing the face image of the original image with the selected background image;
An image composition processing program for causing a computer to realize the above.
JP2003423197A 2003-12-19 2003-12-19 Image composition processing method, apparatus and program Expired - Fee Related JP4164809B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003423197A JP4164809B2 (en) 2003-12-19 2003-12-19 Image composition processing method, apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003423197A JP4164809B2 (en) 2003-12-19 2003-12-19 Image composition processing method, apparatus and program

Publications (2)

Publication Number Publication Date
JP2005182512A true JP2005182512A (en) 2005-07-07
JP4164809B2 JP4164809B2 (en) 2008-10-15

Family

ID=34783810

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003423197A Expired - Fee Related JP4164809B2 (en) 2003-12-19 2003-12-19 Image composition processing method, apparatus and program

Country Status (1)

Country Link
JP (1) JP4164809B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093638A (en) * 2007-09-20 2009-04-30 Canon Inc Image detection device and image detection method
JP2009294999A (en) * 2008-06-06 2009-12-17 Hitachi Omron Terminal Solutions Corp Face direction detecting program, face direction detecting method, and face direction detecting unit
CN103080979A (en) * 2010-09-03 2013-05-01 王晓刚 System and method for synthesizing portrait sketch from photo

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009093638A (en) * 2007-09-20 2009-04-30 Canon Inc Image detection device and image detection method
JP2009294999A (en) * 2008-06-06 2009-12-17 Hitachi Omron Terminal Solutions Corp Face direction detecting program, face direction detecting method, and face direction detecting unit
CN103080979A (en) * 2010-09-03 2013-05-01 王晓刚 System and method for synthesizing portrait sketch from photo
CN103080979B (en) * 2010-09-03 2015-12-09 王晓刚 From the system and method for photo synthesis portrait sketch

Also Published As

Publication number Publication date
JP4164809B2 (en) 2008-10-15

Similar Documents

Publication Publication Date Title
JP4799101B2 (en) Image processing method, apparatus, and program
JP4344925B2 (en) Image processing apparatus, image processing method, and printing system
JP5180127B2 (en) Image creating apparatus and image creating method
JP4642695B2 (en) Album creating system, album creating method, program, and album creating apparatus
JP2004178163A (en) Image processing method and device
JP2004030668A (en) Portrait image correcting method
JP2007116658A (en) Image assembly creating system, image assembly creating method and image assembly creating program
US8169652B2 (en) Album creating system, album creating method and creating program with image layout characteristics
KR20000030532A (en) Internet web-based service for storing, image-processing and printing personal or group photograph and album
JP4183536B2 (en) Person image processing method, apparatus and system
JP5024028B2 (en) Image conversion apparatus, image providing system, photographing / editing apparatus, image conversion method, image conversion program, and recording medium recording the program
JP4148117B2 (en) Printing system and printing method
JP6996212B2 (en) Resume creation system
JP2005005960A (en) Apparatus, system, and method for image processing
JP4164809B2 (en) Image composition processing method, apparatus and program
JP2007194966A (en) Album creation system, album creation method, and album creation program
TWI240568B (en) Image composite device, electronic camera and image composite method
JP4055126B2 (en) Human image processing method and apparatus
JP2006180403A (en) Information processing apparatus
JPH09327329A (en) Simulation system for hair styling
JP2004207936A (en) Image processing apparatus
JP2004288082A (en) Portrait creation method, portrait creation device, as well as program
JP2004246673A (en) Face image processing device and system
JP2005096301A (en) Image output device, image correction method, image adjustment method, program and recording medium
JP2017123536A (en) Printed product manufacturing apparatus, server device, and video data distribution system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060509

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20061213

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080122

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080324

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080414

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080610

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080619

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080704

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080717

R150 Certificate of patent or registration of utility model

Ref document number: 4164809

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130808

Year of fee payment: 5

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees