JP4005322B2 - Image processing apparatus, image processing method, program, and automatic photography apparatus - Google Patents
Image processing apparatus, image processing method, program, and automatic photography apparatus Download PDFInfo
- Publication number
- JP4005322B2 JP4005322B2 JP2001153961A JP2001153961A JP4005322B2 JP 4005322 B2 JP4005322 B2 JP 4005322B2 JP 2001153961 A JP2001153961 A JP 2001153961A JP 2001153961 A JP2001153961 A JP 2001153961A JP 4005322 B2 JP4005322 B2 JP 4005322B2
- Authority
- JP
- Japan
- Prior art keywords
- background
- image
- photographic image
- photographic
- photo
- 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.)
- Expired - Lifetime
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/74—Circuits for processing colour signals for obtaining special effects
- H04N9/75—Chroma key
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/387—Composing, repositioning or otherwise geometrically modifying originals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Processing Or Creating Images (AREA)
- Closed-Circuit Television Systems (AREA)
- Processing Of Color Television Signals (AREA)
- Studio Circuits (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は画像処理装置、画像処理方法、プログラム、自動写真撮影装置及び自動写真撮影方法に関し、特に写真画像に含まれる背景領域に別の背景画像を合成する技術、すなわちクロマキー合成技術に関する。
【0002】
【従来の技術】
自動写真撮影装置の一種として、ユーザが撮影ブースに入り、自らが被写体となって写真撮影を行うと、ユーザの顔写真等がシール上に印刷され、出力される写真シール作製機があり、多くの遊戯施設に設置され、人気を博している。
【0003】
かかる写真シール作製機では、ユーザの写真画像のうち背景領域が別の背景画像に差し替えられ、背景付き写真がシールに印刷されるようになっているものが多い。具体的には、公知のクロマキー合成技術を適用して、写真画像において撮影ブースの背景パネル又は背景カーテンと同色領域を認識し、その領域を別途用意されている背景画像に置き換えるようになっている。こうすれば、ユーザの顔写真等の背景に様々な画像を配することができ、写真シール作製機の魅力をさらに高めることができる。
【0004】
【発明が解決しようとする課題】
しかしながら、クロマキー合成技術を適用して写真画像の一部に別の背景画像を合成しても、背景領域の認識精度には限界があり、背景領域でない部分まで写真画像に背景画像が合成されてしまうことがある。例えばユーザが背景パネル又は背景カーテンと同色の洋服を着ている場合には、洋服部分にまで背景画像が合成されてしまう場合がある。
【0005】
本発明は上記課題に鑑みてなされたものであって、その目的は、写真画像の背景領域以外に背景画像が合成されないようにできる画像処理装置、画像処理方法、プログラム、自動写真撮影装置及び自動写真撮影方法を提供することにある。
【0006】
【課題を解決するための手段】
上記課題を解決するために、本発明に係る画像処理装置は、写真画像を取得する手段と、背景画像を取得する手段と、前記写真画像の背景合成領域を認識する手段と、認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成する手段と、前記背景付き写真画像を表示する手段と、前記背景付き写真画像の一部をユーザが指示する手段と、指示される前記背景付き写真画像の一部が、前記背景合成領域に含まれる部分である場合、少なくとも該一部を前記写真画像の対応部分に差し替え、前記背景付き写真画像を更新する手段と、を含むことを特徴とする。
【0007】
また、本発明に係る画像処理方法は、写真画像を取得するステップと、背景画像を取得するステップと、前記写真画像の背景合成領域を認識するステップと、認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成するステップと、前記背景付き写真画像を表示するステップと、前記背景付き写真画像の一部をユーザが指示するステップと、指示される前記背景付き写真画像の一部が、前記背景合成領域に含まれる部分である場合、少なくとも該一部を前記写真画像の対応部分に差し替え、前記背景付き写真画像を更新するステップと、を含むことを特徴とする。
【0008】
また、本発明に係るプログラムは、写真画像を取得するステップと、背景画像を取得するステップと、前記写真画像の背景合成領域を認識するステップと、認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成するステップと、前記背景付き写真画像を表示するステップと、前記背景付き写真画像の一部をユーザが指示するステップと、指示される前記背景付き写真画像の一部が、前記背景合成領域に含まれる部分である場合、少なくとも該一部を前記写真画像の対応部分に差し替え、前記背景付き写真画像を更新するステップと、をコンピュータに実行させるためのものである。
【0009】
本発明によれば、写真画像の背景画像が認識されると、そこに背景画像が合成され、背景付き写真画像が生成される。この背景付き写真画像は表示される。背景付き写真画像を見ながらユーザがその一部を指示すると、その部分が背景領域に含まれるか否かが判断される。そして、背景画像に含まれる場合、その部分が元の写真画像に差し替えられ、背景付き写真画像が更新される。こうすれば、写真画像の背景領域以外に背景画像が合成されないようにできる。
【0010】
また、本発明に係る自動写真撮影装置は、ユーザの写真画像を取得する手段と、ユーザの選択に応じて背景画像を取得する手段と、前記写真画像の背景合成領域を認識する手段と、認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成する手段と、前記背景付き写真画像を表示する手段と、前記背景付き写真画像の一部をユーザが指示する手段と、指示される前記背景付き写真画像の一部が、前記背景合成領域に含まれる部分である場合、少なくとも該一部を前記写真画像の対応部分に差し替え、前記背景付き写真画像を更新する手段と、更新後の前記背景付き写真画像を出力する手段と、を含むことを特徴とする。
【0011】
また、本発明に係る自動写真撮影方法は、ユーザの写真画像を取得するステップと、ユーザの選択に応じて背景画像を取得するステップと、前記写真画像の背景合成領域を認識するステップと、認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成するステップと、前記背景付き写真画像を表示するステップと、前記背景付き写真画像の一部をユーザが指示するステップと、指示される前記背景付き写真画像の一部が、前記背景合成領域に含まれる部分である場合、少なくとも該一部を前記写真画像の対応部分に差し替え、前記背景付き写真画像を更新するステップと、更新後の前記背景付き写真画像を出力するステップと、を含むことを特徴とする。
【0012】
本発明によれば、写真画像の背景画像が認識されると、そこに背景画像が合成され、背景付き写真画像が生成される。背景画像はユーザの選択に応じて取得されるものである。そして、この背景付き写真画像は表示される。背景付き写真画像を見ながらユーザがその一部を指示すると、その部分が背景領域に含まれるか否かが判断される。背景画像に含まれる場合、その部分が元の写真画像に差し替えられ、背景付き写真画像が更新される。こうすれば、写真画像の背景領域以外に背景画像が合成されないようにできる。
【0013】
【発明の実施の形態】
以下、本発明の好適な実施の形態について図面に基づき詳細に説明する。
【0014】
図1は、本発明の実施の形態に係る写真シール作製機の構成を示す図である。この写真シール作製機10は、本発明に係る画像処理装置、プログラム及び自動写真撮影装置の一実施の形態であり、その動作は本発明に係る画像処理方法の一実施の形態である。
【0015】
同図に示すように、この写真シール作製機10は、パーソナルコンピュータ(PC)12を中心に構成されており、該パーソナルコンピュータ12には、パーソナルコンピュータ12と、モニタ14と、タッチパネル16と、シールプリンタ18と、デジタルカメラ20と、が接続されている。これらの構成は撮影ブースに併設されるボックス内に配置される。
【0016】
パーソナルコンピュータ12は、CPU(中央処理装置)に各種記憶デバイス等をバスにより接続してなる公知のコンピュータシステムであり、CD−ROM(商標)やDVD(商標)等の情報記憶媒体に格納されているプログラムに従って写真シール作製機10の各部を制御する。なお、通信ネットワーク経由でパーソナルコンピュータ12にプログラムを供給するようにしてもよい。
【0017】
シールプリンタ18は昇華型プリンタを含んで構成されており、背景合成を施した写真画像をシール(ロール紙)に印刷し、撮影ブースの外側に設けられたシール排出口から排出する。モニタ14はCRT(ブラウン管)又はLCD(液晶表示装置)を含んで構成されており、デジタルカメラ20で撮影される写真画像や該写真画像に各種編集を施した画像を表示する。このモニタ14には表示面にタッチパネル16が取り付けられている。タッチパネル16は公知の構成を有するものであり、ユーザが手指又はスタイラスペン等で触れると、その触れた位置を表すデータがパーソナルコンピュータ12に入力されるようになっている。また、デジタルカメラ20は撮影ブースに入ったユーザを撮影する公知の電子撮像手段であり、ユーザの写真画像をパーソナルコンピュータ12に入力するようになっている。
【0018】
以下、かかる構成を有する写真シール作製機10により、ユーザの写真画像の背景領域に背景画像を合成する技術について説明する。
【0019】
図2は、デジタルカメラ20によって撮影されるユーザの写真画像の一例を示す図である。同図に示すように、写真画像22には中央に人物領域26が形成されており、その周囲に背景領域24が形成されている。
【0020】
また、図3は、パーソナルコンピュータ12に備えられた記憶デバイス(例えばハードディスク記憶装置)に格納されている複数の背景画像のうちユーザが選択指示したものを示す図である。すなわち、パーソナルコンピュータ12は、複数の背景画像をモニタ14に表示し、ユーザにどれを自分の写真画像の背景として用いるかを選択させるよう案内している。同図には、この案内に応じてタッチパネル16を用い、ユーザが選択した背景画像28が示されている。なお、パーソナルコンピュータ12に予め記憶されている上記複数の背景画像は、いずれもデジタルカメラ20から出力される写真画像と同一サイズを有する。
【0021】
図4は、写真シール作製機10による仮生成背景付き写真画像を示す図である。同図に示す仮生成背景付き写真画像30は、図2に示す写真画像22と図3に示す背景画像28とを写真シール作製機10(パーソナルコンピュータ12)が仮合成してできるものである。この仮生成背景付き写真画像30は、パーソナルコンピュータ12が写真画像22の背景領域24を認識し、その認識した領域に背景画像において同じ場所に位置する画像を埋め込んでなるものであり、モニタ14に表示される。このとき、例えばユーザが背景と同色の洋服を着ていて人物領域26に背景と同色のピクセルが含まれる場合等、パーソナルコンピュータ12が写真画像22の背景領域24を正しく認識できない場合があり、こうした場合、同図に示すように、人物領域26の内部に背景合成領域(認識背景領域)32が入り込んでしまう。
【0022】
そこで、この写真シール作製機10では、タッチパネル16を備えたモニタ14に表示された仮生成背景付き写真画像30にユーザが指先又はスタイラスペンで触れると、その触れた位置が背景合成領域32の内部であれば、その部分が元の写真画像22におけて同じ場所に位置する画像に戻されるようになっている。図5は、修正中の背景付き写真画像を示す図である。同図に示す修正中背景付き写真画像34では、ユーザが人物領域26の内部に入り込んだ背景合成領域32に触れると、直ちにその触れた部分が元の写真画像22の画像に差し替えられる様子が示されている。
【0023】
図6は、こうして背景合成領域32のうち人物領域26の内部に入り込んだ部分をユーザが全て触れ終わり、修正を終えた状態の背景付き写真画像を示している。この修正済み背景写真画像38に含まれる人物領域26は写真画像22に含まれる人物領域26と同じ画像になっている。
【0024】
図7及び図8は、写真シール作製機10の画像処理(背景合成処理)を説明するフロー図である。同図に示される画像処理は、パーソナルコンピュータ12に画像処理プログラムをインストールし、該画像処理プログラムをパーソナルコンピュータ12が実行することにより実現される。
【0025】
この画像処理では、まず注目ピクセル座標を写真画像22の左上隅に設定する(S101)。そして、写真画像22から注目ピクセル座標のピクセル(注目ピクセル)に付与されているデータCpを取得する(S102)。そして、背景色データCdと色データCpとの絶対距離L=|Cd−Cp|が微小色差ΔC1以内であるかを判断する(S103)。
【0026】
そして、S103でYESであれば、絶対距離L及び注目ピクセル座標(S101又はS106で設定されるもの)を背景領域ピクセルリストに追加する(S104)。一方、S103でNOであれば、S104をスキップする。そして、注目ピクセル座標が写真画像22の右下隅に達するまで(S105)、注目ピクセル座標を右隣或いは次行左端に移しながら(S106)、S102乃至S104の処理を繰り返す。
【0027】
こうして背景領域ピクセルリストを生成すると、次に注目ピクセル座標に同背景領域ピクセルリストの先頭に記録されている座標を設定する(S107)。そして、写真画像22から注目ピクセルに付与されている色データCpを取得する(S108)。次に、写真画像22における注目ピクセルの周囲8ピクセル(周辺ピクセル)に付与されている色データCp’を取得し、それぞれ色データCpと色データCp’との絶対距離|Cp’−Cp|が微小色差ΔC2以内でるとの条件を満足するものがあるかを判断する(S109)。そして、かかる条件を満足する周辺ピクセルが存在すれば、その周辺ピクセルの色データCP’と背景色データCdとの絶対距離L=|Cd−Cp’|を算出する(S110)。さらに、絶対距離L及びその周辺ピクセルのピクセル座標とを背景領域ピクセルリストに追加する(S111)。一方、S109でNOであれば、S110及びS111をスキップする。
【0028】
そして、注目ピクセル座標が背景領域ピクセルリストの最後尾に記録されている座標に達するまで(S112)、注目ピクセル座標を背景領域ピクセルリストの次行に記録されている座標に移しながら(S113)、S108乃至S111の処理を繰り返す。
【0029】
こうして背景領域ピクセルリストを拡張すると、次に写真画像22を背景付き写真画像用にメモリ上にコピーする(S114)。そして、注目ピクセル座標に背景領域ピクセルリストの先頭に記録されている座標を設定するとともに(S115)、その注目ピクセルについてパラメータαを算出する(S116)。パラメータαは、注目ピクセルの絶対距離Lを背景領域ピクセルリストから読み出し、それを所定関数fに代入することにより得られる。所定関数fは、絶対距離Lが零のときに関数fの値が0となり、絶対距離Lが最大色差のときに関数fの値が1となる、絶対距離Lの増加関数である。そして、このパラメータαを次式(1)に代入することにより、背景付き写真画像の注目ピクセル座標における色データCp’’を算出する(S117)。
【0030】
【数1】
Cp’’=α×Cp+(1−α)×Cb …(1)
【0031】
ここで、Cpは写真画像22(又はそのコピー)の注目ピクセル座標における色データであり、Cbは背景画像28の注目ピクセル座標における色データである。同式(1)により、絶対距離Lが大きければ大きいほど、背景付き写真画像の色データに写真画像22の色データの成分が多く含まれるようになり、絶対距離Lが小さければ小さいほど、背景付き写真画像の色データに背景画像28の色データの成分が多く含まれるようになる。
【0032】
こうして色データCp’’を算出すると、その値をS114で用意した写真画像のコピーにおいて注目ピクセル座標に対応づけて記憶し、色データCpをCp’’に更新する(S118)。
【0033】
そして、注目ピクセル座標が背景領域ピクセルリストの最後尾に記録されている座標に達するまで(S119)、注目ピクセル座標を背景領域ピクセルリストの次行に記録されている座標に移しながら(S120)、S116乃至S118の処理を繰り返す。
【0034】
その後、こうして色データを更新した写真画像22のコピーを、タッチパネル16を備えたモニタ14に表示する。そして、ユーザが指先で、或いはスタイラスペンでタッチパネル16に触れたかどうかを監視する(S112)。そして、タッチパネル16にユーザが触れると、その触れた位置の背景付き写真画像のピクセル座標(指示座標)を取得し(S123)、そのピクセル座標が背景領域ピクセルリストに含まれる座標であるかを判断する(S124)。そして、背景領域ピクセルリストに含まれる座標であれば、写真画像22の指示座標における色データCpを取得し(S125)、写真画像のコピーの指示座標における色データCp’’を該色データCpに戻す(S126)。こうして、ユーザが指示した画像位置に元の写真画像22を復活させることができる。一方、背景領域ピクセルリストに含まれる座標でなければ、S125及びS126をスキップする。そして、例えば編集(修正)修了ボタンが押下される等して、編集修了してよいと判断されるまで(S127)、S122乃至S126の処理を繰り返す。
【0035】
こうして背景領域に背景画像28を合成し、さらにユーザの指示に従って必要な修正を施した写真画像22のコピーは、修正済み背景付き写真画像38として出力される。この修正済み背景付き写真画像38はパーソナルコンピュータ12からシールプリンタ18に出力され、そこでシール上に印刷される。
【0036】
以上説明した写真シール作製機10によれば、写真画像22の背景合成領域32を認識して、そこに背景画像28を合成することにより仮生成背景付き写真画像30を生成し、それをモニタ14に表示することができる。そして、この仮生成背景付き写真画像30を見ながらユーザがその一部を指示すると、その部分が背景合成領域32に含まれる場合には、元の写真画像22に差し替えて、修正済み背景付き写真画像38を出力するようにしている。この結果、比較的簡単に写真画像22の背景領域24以外に背景画像28が合成されないようにできる。
【0037】
なお、本発明は上記実施の形態に限定されるものではない。
【0038】
例えば、以上の説明では本発明を写真シール作製機10に適用する例を取り上げたが、もちろん他の装置に適用してもよい。また、仮生成背景画像30を生成する処理は、図7及び図8に示される処理に限定されるものではなく、他の処理を採用するようにしてもよい。また、以上の説明では写真画像22と背景画像28とを同一サイズとしたが、異なるサイズとしてもよい。
【0039】
【発明の効果】
以上説明したように、本発明によれば、写真画像の背景合成領域を認識して、そこに背景画像を合成して背景付き写真画像を生成・表示するとともに、この背景付き写真画像を見ながらユーザがその一部を指示すると、その部分が背景合成領域に含まれる場合には、元の写真画像に差し替えて背景付き写真画像を更新するようにしたので、写真画像の背景領域以外に背景画像が合成されないようにできる。
【図面の簡単な説明】
【図1】 本発明の実施の形態に係る自動写真撮影装置の構成を示す図である。
【図2】 写真画像の一例を模式的に示す図である。
【図3】 背景画像の一例を模式的に示す図である。
【図4】 仮生成された背景付き写真画像の一例を模式的に示す図である。
【図5】 修正途中の背景付き写真画像の一例を模式的に示す図である。
【図6】 修正済みの背景付き写真画像の一例を模式的に示す図である。
【図7】 本発明の実施の形態に係る自動写真撮影装置の背景合成処理を説明するフロー図である。
【図8】 本発明の実施の形態に係る自動写真撮影装置の背景合成処理を説明するフロー図である。
【符号の説明】
10 写真シール作製機、12 パーソナルコンピュータ(PC)、14 モニタ、16 タッチパネル、18 シールプリンタ、20 デジタルカメラ、22 写真画像、24 背景領域、26 人物領域、28 背景画像、30 仮生成背景付き写真画像、32 背景合成領域、34 修正中背景付き写真画像、38 修正済み背景付き写真画像。[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing apparatus, an image processing method, a program, an automatic photography apparatus, and an automatic photography method, and more particularly to a technique for synthesizing another background image with a background area included in a photographic image, that is, a chroma key composition technique.
[0002]
[Prior art]
As a kind of automatic photo shooting device, there are photo sticker making machines where a user's face photo etc. is printed on a sticker and output when a user enters a shooting booth and takes a picture of himself as a subject. It is installed in the play facilities of and has gained popularity.
[0003]
In many such photo sticker making machines, the background area of a user's photo image is replaced with another background image, and a photo with a background is printed on the sticker. Specifically, a known chroma key composition technique is applied to recognize the same color area as the background panel or background curtain of the photographic booth in the photographic image and replace that area with a separately prepared background image. . In this way, various images can be arranged on the background of the user's face photograph and the like, and the attractiveness of the photo sticker making machine can be further enhanced.
[0004]
[Problems to be solved by the invention]
However, even if another background image is synthesized with a part of the photographic image by applying the chroma key composition technique, the recognition accuracy of the background area is limited, and the background image is synthesized with the photographic image up to the part that is not the background area. It may end up. For example, when the user wears clothes of the same color as the background panel or the background curtain, the background image may be synthesized up to the clothes part.
[0005]
The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing apparatus, an image processing method, a program, an automatic photography apparatus, and an automatic image processing apparatus that can prevent a background image from being synthesized other than a background area of a photographic image. It is to provide a photography method.
[0006]
[Means for Solving the Problems]
In order to solve the above-mentioned problems, an image processing apparatus according to the present invention recognizes the means for acquiring a photographic image, means for acquiring a background image, means for recognizing a background composite region of the photographic image, and the recognized Means for synthesizing the background image in the background synthesis region of the photographic image to generate a photographic image with background, means for displaying the photographic image with background, and means for indicating a part of the photographic image with background by a user And when the part of the designated background-attached photographic image is a part included in the background composite area, at least the part is replaced with a corresponding part of the photographic image, and the background-added photographic image is updated. It is characterized by including these.
[0007]
The image processing method according to the present invention includes a step of acquiring a photographic image, a step of acquiring a background image, a step of recognizing a background composite region of the photographic image, and the background composition of the recognized photographic image. Generating a background-attached photo image by synthesizing the background image in a region; displaying the background-added photo image; and indicating a part of the background-added photo image by a user; When a part of the photographic image with background is a part included in the background synthesis region, the method includes a step of replacing at least the part with a corresponding part of the photographic image and updating the photographic image with background. Features.
[0008]
The program according to the present invention includes a step of acquiring a photographic image, a step of acquiring a background image, a step of recognizing a background composite region of the photographic image, and the background composite region of the recognized photographic image. Generating a background-attached photographic image by combining the background image; displaying the background-backed photographic image; step of indicating a part of the background-backed photographic image by a user; When a part of a photographic image is a part included in the background composite region, at least the part is replaced with a corresponding part of the photographic image, and the step of updating the photographic image with background is executed by a computer. belongs to.
[0009]
According to the present invention, when a background image of a photographic image is recognized, the background image is synthesized there and a photographic image with a background is generated. This background photographic image is displayed. When the user designates a part of the photographic image with the background while viewing it, it is determined whether or not the part is included in the background area. If it is included in the background image, the portion is replaced with the original photographic image, and the photographic image with background is updated. In this way, it is possible to prevent the background image from being synthesized outside the background area of the photographic image.
[0010]
The automatic photography apparatus according to the present invention includes means for acquiring a user's photographic image, means for acquiring a background image in accordance with a user's selection, means for recognizing a background composite area of the photographic image, A means for synthesizing the background image in the background synthesis area of the photographic image to generate a photographic image with background, a means for displaying the photographic image with background, and a part of the photographic image with background If the part of the photographic image with background to be instructed is a part included in the background composite region, at least the part is replaced with a corresponding part of the photographic image, and the photographic image with background is Means for updating, and means for outputting the updated photographic image with background.
[0011]
In addition, the automatic photography method according to the present invention includes a step of acquiring a user's photographic image, a step of acquiring a background image according to the user's selection, a step of recognizing a background composite region of the photographic image, A step of synthesizing the background image with the background synthesis area of the photographic image to generate a photographic image with background, a step of displaying the photographic image with background, and a part of the photographic image with background And when the part of the designated background-attached photographic image is a part included in the background synthesis region, at least the part is replaced with a corresponding part of the photographic image, and the background-attached photographic image is And a step of outputting the background-added photographic image after the update.
[0012]
According to the present invention, when a background image of a photographic image is recognized, the background image is synthesized there and a photographic image with a background is generated. The background image is acquired according to the user's selection. This background-added photographic image is displayed. When the user designates a part of the photographic image with the background while viewing it, it is determined whether or not the part is included in the background area. If it is included in the background image, the portion is replaced with the original photographic image, and the photographic image with the background is updated. In this way, it is possible to prevent the background image from being synthesized outside the background area of the photographic image.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, preferred embodiments of the invention will be described in detail with reference to the drawings.
[0014]
FIG. 1 is a diagram showing a configuration of a photographic sticker producing machine according to an embodiment of the present invention. This photo sticker making machine 10 is an embodiment of an image processing apparatus, a program, and an automatic photo photographic apparatus according to the present invention, and its operation is an embodiment of an image processing method according to the present invention.
[0015]
As shown in the figure, this photographic sticker making machine 10 is mainly composed of a personal computer (PC) 12, which includes a personal computer 12, a
[0016]
The personal computer 12 is a known computer system in which various storage devices and the like are connected to a CPU (Central Processing Unit) via a bus, and is stored in an information storage medium such as a CD-ROM (trademark) or a DVD (trademark). Each part of the photo sticker making machine 10 is controlled in accordance with the program that is being used. Note that the program may be supplied to the personal computer 12 via a communication network.
[0017]
The
[0018]
Hereinafter, a technique for synthesizing a background image on a background area of a user's photographic image by the photographic sticker producing machine 10 having such a configuration will be described.
[0019]
FIG. 2 is a diagram illustrating an example of a photographic image of a user photographed by the
[0020]
FIG. 3 is a diagram showing a user's selection instruction among a plurality of background images stored in a storage device (for example, a hard disk storage device) provided in the personal computer 12. That is, the personal computer 12 displays a plurality of background images on the
[0021]
FIG. 4 is a diagram showing a photographic image with a temporarily generated background by the photographic sticker producing machine 10. The tentatively generated
[0022]
Therefore, in the photo sticker making machine 10, when the user touches the temporarily generated
[0023]
FIG. 6 shows a photographic image with a background in a state where the user has completely touched and corrected the portion of the
[0024]
7 and 8 are flowcharts for explaining the image processing (background synthesis processing) of the photographic sticker making machine 10. The image processing shown in the figure is realized by installing an image processing program in the personal computer 12 and executing the image processing program by the personal computer 12.
[0025]
In this image processing, first, the target pixel coordinates are set at the upper left corner of the photographic image 22 (S101). Then, the data Cp assigned to the pixel of the target pixel coordinate (target pixel) is acquired from the photographic image 22 (S102). Then, it is determined whether the absolute distance L = | Cd−Cp | between the background color data Cd and the color data Cp is within the minute color difference ΔC1 (S103).
[0026]
If YES in S103, the absolute distance L and the pixel coordinates of interest (set in S101 or S106) are added to the background area pixel list (S104). On the other hand, if NO in S103, S104 is skipped. Then, until the target pixel coordinates reach the lower right corner of the photographic image 22 (S105), the processing of S102 to S104 is repeated while moving the target pixel coordinates to the right side or to the left end of the next row (S106).
[0027]
When the background area pixel list is generated in this way, the coordinates recorded at the head of the background area pixel list are set as the target pixel coordinates (S107). Then, the color data Cp assigned to the target pixel is acquired from the photographic image 22 (S108). Next, color data Cp ′ assigned to 8 pixels (peripheral pixels) around the pixel of interest in the
[0028]
Then, until the target pixel coordinates reach the coordinates recorded at the end of the background area pixel list (S112), the target pixel coordinates are moved to the coordinates recorded in the next line of the background area pixel list (S113), The processes from S108 to S111 are repeated.
[0029]
When the background area pixel list is expanded in this way, the
[0030]
[Expression 1]
Cp ″ = α × Cp + (1−α) × Cb (1)
[0031]
Here, Cp is color data at the target pixel coordinates of the photographic image 22 (or a copy thereof), and Cb is color data at the target pixel coordinates of the
[0032]
When the color data Cp ″ is thus calculated, the value is stored in association with the pixel coordinates of interest in the copy of the photographic image prepared in S114, and the color data Cp is updated to Cp ″ (S118).
[0033]
Then, until the target pixel coordinates reach the coordinates recorded at the tail of the background area pixel list (S119), the target pixel coordinates are moved to the coordinates recorded in the next line of the background area pixel list (S120), The processes from S116 to S118 are repeated.
[0034]
Thereafter, a copy of the
[0035]
A copy of the
[0036]
According to the photo sticker making machine 10 described above, the
[0037]
The present invention is not limited to the above embodiment.
[0038]
For example, in the above description, the example in which the present invention is applied to the photo sticker making machine 10 has been taken up, but of course, the present invention may be applied to other apparatuses. Moreover, the process which produces | generates the temporary production |
[0039]
【The invention's effect】
As described above, according to the present invention, the background composite region of a photographic image is recognized, and the background image is combined therewith to generate and display a background photographic image, while viewing the background photographic image. When the user designates a part of the image, if the part is included in the background composite area, the background image is updated by replacing the original photo image with the background image. Can be prevented from being synthesized.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of an automatic photography apparatus according to an embodiment of the present invention.
FIG. 2 is a diagram schematically illustrating an example of a photographic image.
FIG. 3 is a diagram schematically illustrating an example of a background image.
FIG. 4 is a diagram schematically illustrating an example of a temporarily generated photographic image with a background.
FIG. 5 is a diagram schematically illustrating an example of a photographic image with a background in the middle of correction.
FIG. 6 is a diagram schematically illustrating an example of a corrected background-added photographic image.
FIG. 7 is a flowchart for explaining background composition processing of the automatic photographing apparatus according to the embodiment of the present invention.
FIG. 8 is a flowchart for explaining background composition processing of the automatic photographing apparatus according to the embodiment of the present invention.
[Explanation of symbols]
10 Photo Sticker Making Machine, 12 Personal Computer (PC), 14 Monitor, 16 Touch Panel, 18 Seal Printer, 20 Digital Camera, 22 Photo Image, 24 Background Area, 26 Person Area, 28 Background Image, 30 Temporarily Generated Photo Image with Background , 32 Background composite region, 34 Photo image with background being corrected, 38 Photo image with corrected background.
Claims (5)
背景画像を取得する手段と、
前記写真画像の背景合成領域を認識するとともに、該背景合成領域に係るピクセルの座標をリストに記憶する手段と、
認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成する手段と、
前記背景付き写真画像を表示する手段と、
前記背景付き写真画像のピクセルをユーザが指示する手段と、
指示される前記背景付き写真画像のピクセルの座標が、前記リストに含まれるかを判断し、含まれる場合、該ピクセルの色データを前記写真画像の対応ピクセルの色データに差し替え、前記背景付き写真画像を更新する手段と、
を含むことを特徴とする画像処理装置。Means for obtaining a photographic image;
Means for obtaining a background image;
Means for recognizing a background composite area of the photographic image and storing the coordinates of pixels related to the background composite area in a list ;
Means for synthesizing the background image in the background synthesis region of the recognized photographic image to generate a photographic image with a background;
Means for displaying the photographic image with background;
Means for a user to indicate pixels of the background photographic image;
It is determined whether or not the coordinates of the pixel of the designated background-attached photo image are included in the list, and if included, the color data of the pixel is replaced with the color data of the corresponding pixel of the photo image, and the background-added photo Means for updating the image;
An image processing apparatus comprising:
背景画像を取得するステップと、
前記写真画像の背景合成領域を認識するとともに、該背景合成領域に係るピクセルの座標をリストに記憶するステップと、
認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成するステップと、
前記背景付き写真画像を表示するステップと、
前記背景付き写真画像のピクセルをユーザが指示するステップと、
指示される前記背景付き写真画像のピクセルの座標が、前記リストに含まれるかを判断し、含まれる場合、該ピクセルの色データを前記写真画像の対応ピクセルの色データに差し替え、前記背景付き写真画像を更新するステップと、
を含むことを特徴とする画像処理方法。Obtaining a photographic image;
Obtaining a background image;
Recognizing a background composite area of the photographic image and storing the coordinates of pixels related to the background composite area in a list ;
Synthesizing the background image in the background synthesis region of the recognized photographic image to generate a photographic image with a background;
Displaying the photographic image with background;
A user indicating the pixels of the background photographic image;
It is determined whether or not the coordinates of the pixel of the designated background-attached photo image are included in the list, and if included, the color data of the pixel is replaced with the color data of the corresponding pixel of the photo image, and the background-added photo Updating the image;
An image processing method comprising:
背景画像を取得するステップと、
前記写真画像の背景合成領域を認識するとともに、該背景合成領域に係るピクセルの座標をリストに記憶するステップと、
認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成するステップと、
前記背景付き写真画像を表示するステップと、
前記背景付き写真画像のピクセルをユーザが指示するステップと、
指示される前記背景付き写真画像のピクセルの座標が、前記リストに含まれるかを判断し、含まれる場合、該ピクセルの色データを前記写真画像の対応ピクセルの色データに差し替え、前記背景付き写真画像を更新するステップと、
をコンピュータに実行させるためのプログラム。Obtaining a photographic image;
Obtaining a background image;
Recognizing a background composite area of the photographic image and storing the coordinates of pixels related to the background composite area in a list ;
Synthesizing the background image in the background synthesis region of the recognized photographic image to generate a photographic image with a background;
Displaying the photographic image with background;
A user indicating the pixels of the background photographic image;
It is determined whether or not the coordinates of the pixel of the designated background-attached photo image are included in the list, and if included, the color data of the pixel is replaced with the color data of the corresponding pixel of the photo image, and the background-added photo Updating the image;
A program that causes a computer to execute.
ユーザの選択に応じて背景画像を取得する手段と、
前記写真画像の背景合成領域を認識するとともに、該背景合成領域に係るピクセルの座標をリストに記憶する手段と、
認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成する手段と、
前記背景付き写真画像を表示する手段と、
前記背景付き写真画像のピクセルをユーザが指示する手段と、
指示される前記背景付き写真画像のピクセルの座標が、前記リストに含まれるかを判断し、含まれる場合、該ピクセルの色データを前記写真画像の対応ピクセルの色データに差し替え、前記背景付き写真画像を更新する手段と、
更新後の前記背景付き写真画像を出力する手段と、
を含むことを特徴とする自動写真撮影装置。Means for obtaining a user's photographic image;
Means for acquiring a background image according to a user's selection;
Means for recognizing a background composite area of the photographic image and storing the coordinates of pixels related to the background composite area in a list ;
Means for synthesizing the background image in the background synthesis region of the recognized photographic image to generate a photographic image with a background;
Means for displaying the photographic image with background;
Means for a user to indicate pixels of the background photographic image;
It is determined whether or not the coordinates of the pixel of the designated background-attached photo image are included in the list, and if included, the color data of the pixel is replaced with the color data of the corresponding pixel of the photo image, and the background-added photo Means for updating the image;
Means for outputting the updated photographic image with background;
An automatic photography apparatus characterized by comprising:
ユーザの選択に応じて背景画像を取得するステップと、
前記写真画像の背景合成領域を認識するとともに、該背景合成領域に係るピクセルの座標をリストに記憶するステップと、
認識される前記写真画像の前記背景合成領域に前記背景画像を合成して背景付き写真画像を生成するステップと、
前記背景付き写真画像を表示するステップと、
前記背景付き写真画像のピクセルをユーザが指示するステップと、
指示される前記背景付き写真画像のピクセルの座標が、前記リストに含まれるかを判断し、含まれる場合、該ピクセルの色データを前記写真画像の対応ピクセルの色データに差し替え、前記背景付き写真画像を更新するステップと、
更新後の前記背景付き写真画像を出力するステップと、
を含むことを特徴とする自動写真撮影方法。Obtaining a photographic image of the user;
Obtaining a background image in response to a user selection;
Recognizing a background composite area of the photographic image and storing the coordinates of pixels related to the background composite area in a list ;
Synthesizing the background image in the background synthesis region of the recognized photographic image to generate a photographic image with a background;
Displaying the photographic image with background;
A user indicating the pixels of the background photographic image;
It is determined whether or not the coordinates of the pixel of the designated background-attached photo image are included in the list, and if included, the color data of the pixel is replaced with the color data of the corresponding pixel of the photo image, and the background-added photo Updating the image;
Outputting the updated photographic image with background, and
An automatic photography method characterized by comprising:
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001153961A JP4005322B2 (en) | 2001-05-23 | 2001-05-23 | Image processing apparatus, image processing method, program, and automatic photography apparatus |
CNB011349905A CN1204452C (en) | 2001-05-23 | 2001-11-29 | Image processing device, method and program, and automatic photographic taking device |
KR10-2001-0075273A KR100458886B1 (en) | 2001-05-23 | 2001-11-30 | Image processing device, image processing method, program and automatic picture taking machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2001153961A JP4005322B2 (en) | 2001-05-23 | 2001-05-23 | Image processing apparatus, image processing method, program, and automatic photography apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2002352257A JP2002352257A (en) | 2002-12-06 |
JP4005322B2 true JP4005322B2 (en) | 2007-11-07 |
Family
ID=18998391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2001153961A Expired - Lifetime JP4005322B2 (en) | 2001-05-23 | 2001-05-23 | Image processing apparatus, image processing method, program, and automatic photography apparatus |
Country Status (3)
Country | Link |
---|---|
JP (1) | JP4005322B2 (en) |
KR (1) | KR100458886B1 (en) |
CN (1) | CN1204452C (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100619975B1 (en) * | 2004-12-22 | 2006-09-08 | 엘지전자 주식회사 | How to create a composite picture of a mobile communication terminal |
JP4448039B2 (en) * | 2005-01-26 | 2010-04-07 | キヤノン株式会社 | Imaging apparatus and control method thereof |
KR100686019B1 (en) | 2005-08-26 | 2007-02-26 | 엘지전자 주식회사 | Mobile communication terminal and image transmission method using the same |
JP2007143150A (en) * | 2006-11-13 | 2007-06-07 | Make Softwear:Kk | Apparatus, method and program for vending photograph, and image editing apparatus |
JP4863476B2 (en) * | 2006-11-14 | 2012-01-25 | 株式会社バンダイナムコゲームス | Imaging apparatus, program, information storage medium, photo printing apparatus, and photo printing method |
JP5043746B2 (en) * | 2007-07-31 | 2012-10-10 | オリンパスイメージング株式会社 | Image reproduction apparatus, image reproduction method, and image reproduction program |
JP5028225B2 (en) * | 2007-11-06 | 2012-09-19 | オリンパスイメージング株式会社 | Image composition apparatus, image composition method, and program |
JP5133816B2 (en) * | 2008-08-22 | 2013-01-30 | オリンパスイメージング株式会社 | Camera, image composition method, and program |
CN101729735B (en) * | 2008-10-20 | 2012-08-22 | 深圳富泰宏精密工业有限公司 | Digital photo compositing system and method |
KR102039688B1 (en) | 2013-03-14 | 2019-11-01 | 삼성전자주식회사 | User device and operating method thereof |
CN103885706B (en) * | 2014-02-10 | 2017-07-28 | 广东欧珀移动通信有限公司 | A kind of method and device of facial image beautification |
CN104580882B (en) * | 2014-11-03 | 2018-03-16 | 宇龙计算机通信科技(深圳)有限公司 | The method and its device taken pictures |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2985879B1 (en) * | 1998-06-30 | 1999-12-06 | オムロン株式会社 | People image processing device |
JP2000069404A (en) * | 1998-08-25 | 2000-03-03 | Konami Co Ltd | Image print creating device |
JP3608715B2 (en) * | 1998-08-31 | 2005-01-12 | 日立ソフトウエアエンジニアリング株式会社 | Image composition apparatus and image composition method |
JP2000287127A (en) * | 1999-03-31 | 2000-10-13 | Hitachi Software Eng Co Ltd | Image synthesizing device |
-
2001
- 2001-05-23 JP JP2001153961A patent/JP4005322B2/en not_active Expired - Lifetime
- 2001-11-29 CN CNB011349905A patent/CN1204452C/en not_active Expired - Fee Related
- 2001-11-30 KR KR10-2001-0075273A patent/KR100458886B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR20020090095A (en) | 2002-11-30 |
CN1387078A (en) | 2002-12-25 |
CN1204452C (en) | 2005-06-01 |
KR100458886B1 (en) | 2004-12-03 |
JP2002352257A (en) | 2002-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6621938B1 (en) | Image capture apparatus and method | |
JP4005322B2 (en) | Image processing apparatus, image processing method, program, and automatic photography apparatus | |
JP5782873B2 (en) | Game shooting device, game shooting method and program | |
JP2013243466A (en) | Imaging apparatus for game, imaging method for game, and program | |
CN114007053A (en) | Image generation method, image generation system, and recording medium | |
JP2020048117A (en) | Image providing system | |
JP4999606B2 (en) | Image shooting and editing apparatus, image shooting and editing method, and image editing program | |
JP5119642B2 (en) | Automatic photo creation device and automatic photo creation method | |
JP6245529B2 (en) | Game shooting device, game shooting method and program | |
JP4553378B2 (en) | Image editing apparatus, photo sticker creating apparatus, image editing method, and image editing program | |
EP0938065A2 (en) | Apparatus and method for composing image data interactively | |
JP6614386B2 (en) | Image processing apparatus, image processing method, and program | |
JP5632104B2 (en) | Game shooting device, processing method and program for game shooting device | |
JP5900826B2 (en) | Image editing apparatus, image editing method, and control program | |
JP6156559B2 (en) | Game shooting device, game shooting method, and program | |
JP2005181912A (en) | Photographic seal delivering apparatus and its control method | |
JP2002209088A (en) | Image edit device and method | |
JP5790896B2 (en) | Game shooting device, game shooting method, and game shooting program | |
JP2013218349A (en) | Imaging apparatus for game, imaging method for game, and computer program | |
JP5742891B2 (en) | Photo sticker creation device | |
JP2000105817A (en) | Device and method for image input | |
JPH1021377A (en) | Image processor | |
JP2005225025A (en) | Face image processing system | |
JP6614374B2 (en) | Photography game machine, control method and program | |
JP4579106B2 (en) | PHOTOGRAPHING APPARATUS, PHOTOGRAPHING APPARATUS CONTROL METHOD, AND PHOTOGRAPHING APPARATUS CONTROL PROGRAM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040615 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050426 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050615 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20050701 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20060427 |
|
A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20060428 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20060523 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070823 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 4005322 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100831 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110831 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: 20110831 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120831 Year of fee payment: 5 |
|
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: 20130831 Year of fee payment: 6 |
|
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: 20130831 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140831 Year of fee payment: 7 |
|
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 |
|
EXPY | Cancellation because of completion of term |