JP2014068107A - Image processing apparatus, image processing system, image processing method, and computer program - Google Patents
Image processing apparatus, image processing system, image processing method, and computer program Download PDFInfo
- Publication number
- JP2014068107A JP2014068107A JP2012210609A JP2012210609A JP2014068107A JP 2014068107 A JP2014068107 A JP 2014068107A JP 2012210609 A JP2012210609 A JP 2012210609A JP 2012210609 A JP2012210609 A JP 2012210609A JP 2014068107 A JP2014068107 A JP 2014068107A
- Authority
- JP
- Japan
- Prior art keywords
- person
- image
- unit
- replacement
- image processing
- 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
- 238000004590 computer program Methods 0.000 title claims description 6
- 238000003672 processing method Methods 0.000 title claims description 5
- 238000010191 image analysis Methods 0.000 claims abstract description 56
- 230000008921 facial expression Effects 0.000 claims description 35
- 238000004458 analytical method Methods 0.000 claims description 13
- 230000001815 facial effect Effects 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims description 3
- 238000000034 method Methods 0.000 description 78
- 230000008569 process Effects 0.000 description 73
- 238000004891 communication Methods 0.000 description 35
- 230000004048 modification Effects 0.000 description 13
- 238000012986 modification Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 238000010295 mobile communication Methods 0.000 description 11
- 210000000887 face Anatomy 0.000 description 8
- 238000003384 imaging method Methods 0.000 description 7
- 230000014509 gene expression Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000006467 substitution reaction Methods 0.000 description 3
- 230000000386 athletic effect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 210000003128 head Anatomy 0.000 description 2
- 230000001771 impaired effect Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
- Image Analysis (AREA)
Abstract
Description
本発明は、画像処理装置、画像処理システム、画像処理方法およびコンピュータプログラムに関する。 The present invention relates to an image processing apparatus, an image processing system, an image processing method, and a computer program.
近年、撮像した画像に異なる画像を付加して、好みの画像に合成する画像処理技術が発達している。例えば、特許文献1には、現在撮影されている動画像に、メモリ等から読み出した画像を撮影現場で手軽に合成する技術が記載されている。 In recent years, an image processing technique has been developed in which a different image is added to a captured image and is combined with a favorite image. For example, Patent Document 1 describes a technique for easily combining an image read from a memory or the like with a moving image that is currently shot at a shooting site.
しかし、特許文献1に記載された技術では、実際の動画像にメモリ等から読み出した画像を単純に重ね合わせている。そのため、例えば、運動会やキャンプ、行楽などのイベントで撮像した画像に、参加できなかった人物の画像を重ね合わせた場合には、重ね合わせた人物の画像が、イベントの雰囲気や、撮像した画像に含まれる他の人物の雰囲気とそぐわなくなる場合があった。そのほか、従来の画像処理装置においては、その使い勝手の向上や処理負担の軽減が望まれていた。 However, in the technique described in Patent Document 1, an image read from a memory or the like is simply superimposed on an actual moving image. Therefore, for example, when an image of a person who could not participate is superimposed on an image captured at an event such as an athletic meet, camping, or vacation, the superimposed image of the person is added to the atmosphere of the event or the captured image. In some cases, it was not compatible with the atmosphere of other people included. In addition, in conventional image processing apparatuses, it has been desired to improve the usability and reduce the processing load.
本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態として実現することが可能である。 SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms.
(1)本発明の一形態によれば、画像処理装置が提供される。この画像処理装置は、あらかじめ承諾が得られた第1の人物を識別するための識別情報が記憶された第1記憶部と;第2の人物の画像が記憶された第2記憶部と;撮像された画像を取得する画像取得部と;前記識別情報に基づいて、前記取得された画像に前記第1の人物が含まれるか否かを解析する画像解析部と;前記取得された画像のうち前記第1の人物を、前記第2の人物の画像を用いて前記第2の人物に置換する置換部と、を備える。この形態の画像処理装置によれば、撮影して取得された画像に単純に第2の人物を重ね合わせるのではなく、取得された画像に含まれる第1の人物が第2の人物に置換される。そのため、画像が取得された場に、第2の人物が存在していたかのような画像を得ることができる。よって、イベントの雰囲気や撮像した画像に含まれる他の人物の雰囲気を損ねないで、第2の人物が存在する画像を得ることができる。さらに、第1の人物には、第2の人物に置換することに対してあらかじめ承諾が得られているので、取得された画像を置換することによって、第1の人物の肖像権を考慮しなくてもよいため、ユーザは安心して置換を行うことができる。 (1) According to an aspect of the present invention, an image processing apparatus is provided. The image processing apparatus includes: a first storage unit storing identification information for identifying a first person who has obtained consent; a second storage unit storing an image of the second person; An image acquisition unit that acquires the acquired image; an image analysis unit that analyzes whether or not the acquired image includes the first person based on the identification information; and among the acquired images A replacement unit that replaces the first person with the second person using an image of the second person. According to this form of the image processing apparatus, the first person included in the acquired image is replaced with the second person instead of simply superimposing the second person on the image acquired by capturing. The Therefore, it is possible to obtain an image as if the second person existed when the image was acquired. Therefore, an image in which the second person exists can be obtained without impairing the atmosphere of the event or the atmosphere of another person included in the captured image. Further, since the first person has obtained consent in advance for the replacement with the second person, it is possible to replace the acquired image without considering the portrait right of the first person. Therefore, the user can perform replacement with peace of mind.
(2)上記形態の画像処理装置において、前記画像解析部は、前記取得された画像に前記第1の人物が含まれる場合には、前記第1の人物の表情、顔の向き、顔のサイズのうち少なくとも一つを解析し;前記置換部は、前記取得された画像のうち前記第1の人物を、解析結果に基づいて前記第2の人物の画像を加工して前記第2の人物に置換してもよい。この形態の画像処理装置によれば、取得された画像に第1の人物が含まれる場合には、第1の人物の表情、顔の向き、顔のサイズのうち少なくとも一つの解析結果に基づいて、第2の人物の画像が加工されて、置換が行われる。そのため、もとの撮像画像の雰囲気をより保ったまま、画像が取得された場に第2の人物が存在していたかのような画像を得ることができる。 (2) In the image processing apparatus according to the above aspect, when the first person is included in the acquired image, the image analysis unit includes the facial expression, face orientation, and face size of the first person. The replacement unit converts the first person in the acquired image to the second person by processing the second person image based on the analysis result. It may be replaced. According to the image processing apparatus of this aspect, when the first person is included in the acquired image, based on the analysis result of at least one of the facial expression, face orientation, and face size of the first person. The image of the second person is processed and replaced. Therefore, it is possible to obtain an image as if the second person existed in the place where the image was acquired while maintaining the atmosphere of the original captured image.
(3)上記形態の画像処理装置において、前記画像解析部は、更に前記取得された画像に第3の人物が含まれるか否かを解析し;前記取得された画像のうち前記第1の人物と前記第3の人物とを入れ替える入替部を更に備えてもよい。この形態の画像処理装置によれば、取得された画像に第1の人物と第3の人物とが同時に含まれる場合には、第1の人物と第3の人物とが入れ替えられる。そのため、取得された画像における第1の人物の立場と、第3の人物の立場とが入れ替わった画像を得ることができる。 (3) In the image processing apparatus of the above aspect, the image analysis unit further analyzes whether or not a third person is included in the acquired image; among the acquired images, the first person And a replacement unit for replacing the third person. According to the image processing apparatus of this aspect, when the first person and the third person are simultaneously included in the acquired image, the first person and the third person are switched. Therefore, an image in which the position of the first person and the position of the third person in the acquired image are interchanged can be obtained.
(4)上記形態の画像処理装置において、前記画像解析部は、前記取得された画像のうち前記第1の人物と前記第3の人物のうち少なくとも一方の表情、顔の向き、顔のサイズのうち少なくとも一つを解析し;前記入替部は、解析結果に基づいて前記取得された画像のうち前記第1の人物と前記第3の人物とを入れ替えてもよい。この形態の画像処理装置によれば、第1の人物と第3の人物のうち少なくとも一方の表情、顔の向き、顔のサイズのうち少なくとも一つが解析され、解析結果に基づいて、第1の人物と第3の人物とが加工されて入れ替えられる。そのため、もとの撮像画像の雰囲気をより保ったまま、第1の人物の立場と第3の人物の立場とが入れ変わった画像を得ることができる。 (4) In the image processing apparatus according to the above aspect, the image analysis unit is configured to determine at least one facial expression, face orientation, and face size of the first person and the third person among the acquired images. Analyzing at least one of them; the replacement unit may replace the first person and the third person in the acquired image based on an analysis result. According to the image processing apparatus of this aspect, at least one of the facial expression, the facial orientation, and the facial size of at least one of the first person and the third person is analyzed, and the first person is analyzed based on the analysis result. The person and the third person are processed and replaced. Therefore, it is possible to obtain an image in which the position of the first person and the position of the third person are interchanged while maintaining the atmosphere of the original captured image.
(5)上記形態の画像処理装置において、前記画像取得部は、動画像に含まれる複数の画像を取得し;前記画像解析部は、前記識別情報に基づいて、前記取得されたそれぞれの画像に前記第1の人物が含まれるか否かを解析してもよい。この形態の画像処理装置によれば、画像取得部が動画像を取得しても、画像解析部はそれぞれの画像に第1の人物が含まれるか否かを解析するので、第1の人物が第2の人物に置換された動画像や、第1の人物と第3の人物とが入れ替えられた動画像を得ることができる。 (5) In the image processing apparatus according to the above aspect, the image acquisition unit acquires a plurality of images included in a moving image; the image analysis unit applies each of the acquired images based on the identification information. It may be analyzed whether or not the first person is included. According to the image processing apparatus of this aspect, even if the image acquisition unit acquires a moving image, the image analysis unit analyzes whether or not the first person is included in each image. A moving image replaced with the second person or a moving image in which the first person and the third person are exchanged can be obtained.
(6)上記形態の画像処理装置において、警告を発する警告部を更に備え;前記画像取得部は、前記警告部が警告を発した後に、画像を取得してもよい。この形態の画像処理装置によれば、画像取得部が画像を取得する前に、警告部が警告を発するので、例えば、画像処理装置の周辺に存在する画像に写りこむことを望まない人物に、撮影が行われることを周知することができる。よって、個人のプライバシーを守ることのできる画像を得ることが可能となる。 (6) The image processing apparatus according to the above aspect may further include a warning unit that issues a warning; the image acquisition unit may acquire an image after the warning unit issues a warning. According to this form of the image processing device, the warning unit issues a warning before the image acquisition unit acquires an image.For example, for a person who does not want to be reflected in an image existing around the image processing device, It can be known that shooting is performed. Therefore, it is possible to obtain an image that can protect personal privacy.
(7)本発明の他の形態によれば、画像処理システムが提供される。画像処理システムは、画像を撮像可能な端末と、該端末と通信可能なサーバを備え;前記端末は;撮像された画像を取得する画像取得部と;前記取得された画像を前記サーバに送信する送信部と、を備え;前記サーバは;前記取得された画像を前記端末から受信する受信部と;あらかじめ承諾が得られた第1の人物を識別するための識別情報が記憶された第1記憶部と;第2の人物の画像が記憶された第2記憶部と;前記識別情報に基づいて、前記取得された画像に前記第1の人物が含まれるか否かを解析する画像解析部と;前記取得された画像のうち前記第1の人物を、前記第2の人物の画像を用いて前記第2の人物に置換する置換部と、を備える。この画像処理システムによれば、サーバにおいて、取得された画像の解析と置換とが行われるので、端末における処理負担を軽減することができる。また、サーバに第1記憶部と第2記憶部が設けられているため、端末の記憶領域を有効に活用することができる。よって、端末の他の動作が遅延することを防ぐことができるので、ユーザの便宜を図りつつ、画像が取得された場に、第2の人物が存在していたかのような画像を得ることができる。 (7) According to another aspect of the present invention, an image processing system is provided. The image processing system includes a terminal that can capture an image and a server that can communicate with the terminal; the terminal; an image acquisition unit that acquires the captured image; and the acquired image transmitted to the server A transmission unit; the server; a reception unit that receives the acquired image from the terminal; and a first storage in which identification information for identifying a first person who has obtained consent in advance is stored. A second storage unit that stores an image of a second person; an image analysis unit that analyzes whether or not the acquired person includes the first person based on the identification information; A replacement unit that replaces the first person in the acquired image with the second person using the image of the second person. According to this image processing system, since the server analyzes and replaces the acquired image, the processing burden on the terminal can be reduced. Further, since the server is provided with the first storage unit and the second storage unit, the storage area of the terminal can be effectively used. Therefore, it is possible to prevent other operations of the terminal from being delayed, so that it is possible to obtain an image as if the second person was present when the image was acquired, for the convenience of the user. .
上述した本発明の各形態の有する複数の構成要素はすべてが必須のものではなく、上述の課題の一部又は全部を解決するため、あるいは、本明細書に記載された効果の一部又は全部を達成するために、適宜、前記複数の構成要素の一部の構成要素について、その変更、削除、新たな他の構成要素との差し替え、限定内容の一部削除を行うことが可能である。また、上述の課題の一部又は全部を解決するため、あるいは、本明細書に記載された効果の一部又は全部を達成するために、上述した本発明の一形態に含まれる技術的特徴の一部又は全部を上述した本発明の他の形態に含まれる技術的特徴の一部又は全部と組み合わせて、本発明の独立した一形態とすることも可能である。 A plurality of constituent elements of each aspect of the present invention described above are not indispensable, and some or all of the effects described in the present specification are to be solved to solve part or all of the above-described problems. In order to achieve the above, it is possible to appropriately change, delete, replace with another new component, and partially delete the limited contents of some of the plurality of components. In order to solve part or all of the above-described problems or to achieve part or all of the effects described in this specification, technical features included in one embodiment of the present invention described above. A part or all of the technical features included in the other aspects of the present invention described above may be combined to form an independent form of the present invention.
本発明は、画像処理装置以外の種々の形態で実現することも可能である。例えば、画像処理方法や画像処理を実現するコンピュータプログラム、そのコンピュータプログラムを記録した一時的でない記録媒体等の形態で実現することができる。 The present invention can also be realized in various forms other than the image processing apparatus. For example, the present invention can be realized in the form of an image processing method, a computer program for realizing image processing, a non-temporary recording medium on which the computer program is recorded, and the like.
A.第1実施形態:
A1.装置構成:
図1は、本発明の一実施形態としての画像処理装置の構成を説明するための図である。本実施形態では、画像処理装置として、スマートフォン20を用いている。スマートフォン20は、カメラ201と、警告部202と、GPS受信機203と、タッチパネル204と、表示部205と、無線LAN通信部206と、移動体通信網通信部207と、音声通信部208と、CPU210と、RAM220と、ROM225と、フラッシュメモリ230と、を備えている。
A. First embodiment:
A1. Device configuration:
FIG. 1 is a diagram for explaining the configuration of an image processing apparatus as an embodiment of the present invention. In the present embodiment, the
カメラ201は、スマートフォン20の裏面に設けられており、静止画像や、動画像を撮像して取得する。以下、撮像された静止画像や動画像を、「撮像画像」ともいう。カメラ201は、表示部205に表示されたシャッタボタンがタッチパネル204を介して押された場合に、静止画像や動画像を撮影する。カメラ201は、本願の「画像取得部」に相当する。
The
警告部202は、音声を出力するためのスピーカやLEDライト(不図示)、これらを駆動する回路などから構成される。警告部202は、スマートフォン20の備えるカメラ201により画像が撮影される前に、音声やライトの点滅によって、これから画像が撮影されることを周囲に警告する。
The
GPS受信機203は、GPS(Global Positioning System/全地球測位システム)を構成する人工衛星から受信した電波に基づいて、スマートフォン20(ユーザ)の現在位置(経度・緯度)を測位する。撮像画像(カメラ201によって撮影された画像)には、画像を撮影した際にGPS受信機203により測位された現在位置に関する位置情報が、EXIF規格に基づきデータとして埋め込まれる。
The
表示部205は、種々の画像やテキスト等を表示する装置である。タッチパネル204は、表示部205に重畳して設けられており、指やペンによるユーザからのタッチ操作を受け付ける。
The
無線LAN通信部206は、無線LAN規格(IEEE802.11シリーズ)に基づいて、インフラストラクチャやアドホックモードによって外部機器と無線通信を行うための回路である。
The wireless
移動体通信網通信部207は、例えば3G/HSPAに準拠した移動体通信方式により、通信キャリア(不図示)との間で、データ通信や音声通信を行うための回路である。
The mobile communication
音声通信部208は、音声を出力するためのスピーカや音声を入力するためのマイクや、これらを駆動する回路などから構成される。音声通信部208の備えるスピーカは、警告部202が警告を発する際にも使用される。スマートフォン20は、移動体通信網通信部207と音声通信部208とを備えることにより電話としても動作する。
The
フラッシュメモリ230は、不揮発的にデータを記憶可能な記憶装置である。フラッシュメモリ230には、運動会やキャンプや行楽などのイベント(以下、単にイベントという)に参加する人物(以下、人物A)の画像231と、イベントに不参加の人物(以下、人物B)の画像232とが記憶されている。また、フラッシュメモリ230には、イベントに参加する人物であって相互に入れ替えられる人物(以下、人物C、人物D)の画像233、234があわせて記憶されている。
The
図2は、フラッシュメモリ230に記憶されているイベントに参加する人物Aの画像231と、イベントに不参加の人物Bの画像232の一例を示す図である。人物Aは、画像が撮影された場合に、自分(人物A)の撮影されている部分が他人(人物B)に置換されることに対してあらかじめ承諾が得られている人物である。イベントに参加する人物Aは、イベントに不参加の人物Bと人種、性別が同じであり、年齢、体格が近似している人物であることが好ましい。人物Aの画像231と人物Bの画像232は、後述の置換処理において用いられる。
FIG. 2 is a diagram illustrating an example of the
図3は、フラッシュメモリ230に記憶されている、相互に入れ替えられる人物Cの画像233と、人物Dの画像234の一例を示す図である。人物Cは、画像が撮影された場合に、自分(人物C)の撮影されている部分が他人(人物D)に入れ替えられることに対してあらかじめ承諾が得られている人物である。人物Cは、人物Dと人種、性別が同じであり、年齢、体格が近似している人物であることが好ましい。人物Cの画像233と人物Dの画像234は、後述の入替処理において用いられる。
FIG. 3 is a diagram showing an example of the
本実施形態の人物A〜Dの画像231〜234は、カメラ201によって撮影され、フラッシュメモリ230に記憶されている。これらの画像は、インターネットを介してダウンロードしてもよく、また、メモリーカード等外部記憶媒体から取得することともできる。なお、フラッシュメモリ230は、人物Aの画像231にかえて、目や、鼻や、口の相対的な位置や大きさなどを数値化した人物Aを識別するための情報を記憶するものとしてもよい。フラッシュメモリ230は、本願の「第1記憶部」および「第2記憶部」に相当する。また、人物Aの画像231は、本願の「第1の人物の識別情報」に相当し、人物Bの画像232は、本願の「第2の人物の画像」に相当する。さらにフラッシュメモリ230は、人物Cの画像233にかえて、目や、鼻や、口の相対的な位置や大きさなどを数値化した人物Cを識別するための情報を記憶するものとしてもよい。人物Cの画像233もまた、本願の「第1の人物の識別情報」に相当する。人物Dの画像234は本願の「第3の人物の画像」に相当する。
The
CPU210は、ROM225に記憶された制御プログラムをRAM220に展開して実行することで、スマートフォン20の各部を制御するとともに、画像解析部211、置換部212および入替部213として機能する。
The
画像解析部211は、標準的な顔の特徴(形、顔の色、目や鼻などの特徴)をフラッシュメモリ230に記憶しておき、撮像画像にその特徴と合致する部分が含まれている場合、公知の顔検出技術を用いて、その部分を顔として検出する。画像解析部211は、例えば公知の顔識別技術により、撮像画像に含まれる人物の顔と、フラッシュメモリ230に記憶されている人物Aとが一致するか否かを解析する。また、画像解析部211は、撮像画像に二人の人物が含まれている場合、その人物の顔と、フラッシュメモリ230に記憶されている人物Cと人物Dとがそれぞれ一致するか否かを解析する。画像解析部211は、撮像画像に含まれる人物と、フラッシュメモリ230に記憶されている人物とが一致する場合には、その人物の顔の向きやサイズを解析するとともに、公知の顔属性推定技術を用い、その人物の表情を解析する。
The
置換部212は、画像解析部211の解析した人物Aの表情や顔の向きや、サイズに基づいて、フラッシュメモリ230に記憶された人物Bの画像232を加工して、撮像画像に含まれる人物Aの顔を、加工した人物Bの顔に置換する。本明細書において置換部212が行う「置換」とは、撮像画像に含まれる人物Aの顔を削除して、例えば加工した人物Bの顔に置換することや、撮影された画像に含まれる人物Aの顔を、加工した人物Bの顔によって上書きすることをいう。
The
入替部213は、フラッシュメモリ230に記憶された人物Cと人物Dとが同時に撮像画像に含まれる場合に、人物Cの顔を人物Dの顔に、人物Dの顔を人物Cの顔に相互に入れ替える。具体的には、入替部213は、画像解析部211の解析した撮像画像中の人物Cの表情、顔の向き、顔のサイズに基づいて、フラッシュメモリ230に記憶された人物Dの画像234を加工して撮像画像中の人物Cと入れ替える。同様に、入替部213は、画像解析部211の解析した撮像画像中の人物Dの表情、顔の向き、顔のサイズに基づいて、フラッシュメモリ230に記憶された人物Cの画像233を加工して、撮像画像中の人物Dと入れ替える。本明細書において入替部213が行う「入替」とは、撮像画像に含まれる人物の顔を削除して、加工した他の人物の顔にそれぞれ入れ替えることや、撮像画像に含まれる人物の顔を、加工した他の人物の顔によって上書きすることをいう。
When the person C and the person D stored in the
図4は、表示部205に表示される撮影モードの選択画面を示す図である。CPU210は、画像処理に際して、図4に示すような撮影モード選択画面501を表示部205に表示させる。スマートフォン20のユーザにより、置換モードボタン502が押下された後に決定ボタン506が押下されると、スマートフォン20のCPU210は、撮影後の画像処理として、イベントに参加する人物をイベントに不参加の人物に置きかえる置換処理を行う。また、ユーザにより入れ替えモードボタン503が押下された後に決定ボタン506が押下されると、スマートフォン20のCPU210は、撮影後の画像処理として、イベントに参加する二人の人物の顔を相互に入れ替える入替処理を行う。なお、スマートフォン20のCPU210は、自動判別モードボタン504が押下された後に決定ボタン506が押下された場合には、撮像画像の解析結果から、置換処理、入替処理のいずれかを自動で判別して行う。
FIG. 4 is a diagram illustrating a shooting mode selection screen displayed on the
A2.置換モードによる撮影処理:
図5は、図4に示した置換モードが選択された場合に実行される撮影処理のフローチャートである。この処理は、イベントに参加する人物(人物A)をイベントに不参加の人物(人物B)に置換することにより、イベントに不参加の人物がイベントに参加していたかのような画像を取得するための処理である。
A2. Shooting process in replace mode:
FIG. 5 is a flowchart of the photographing process executed when the replacement mode shown in FIG. 4 is selected. In this process, the person who participates in the event (person A) is replaced with a person who does not participate in the event (person B), thereby acquiring an image as if a person who did not participate in the event participated in the event. It is.
撮影処理が開始されると、スマートフォン20のCPU210は、警告部202に、これから画像が撮影されることを警告させる(ステップS100)。具体的には、CPU210は、警告部202の備えるスピーカ(不図示)から、「撮影を行います」等の音声を出力させて、スマートフォン20の周辺に存在する人物に、撮影が行われることを周知する。警告が行われると、スマートフォン20のCPU210は、カメラ201により、撮影を行う(ステップS102)。CPU210は、カメラ201により撮影された画像を、フラッシュメモリ230に記憶する。
When the shooting process is started, the
撮影が行われると、画像解析部211は、撮像画像に人物Aが含まれているか否かを解析する(ステップS104)。具体的には、画像解析部211は、公知の顔検出技術を用いて、撮像画像に人物の顔が含まれているか否かを解析する。人物の顔が含まれている場合には、画像解析部211は、撮像画像に含まれる人物の顔と、フラッシュメモリ230に記憶されている人物Aの顔との一致度合いから、撮像画像に含まれる人物と、フラッシュメモリ230に記憶されている人物Aとが同一か否かを解析する(ステップS104)。撮像画像の中に人物Aの顔が含まれない場合には(ステップS104:NO)、CPU210は置換モードによる撮影処理を終了する。
When shooting is performed, the
撮像画像に含まれる人物と、フラッシュメモリ230に記憶されている人物Aとが同一である場合には(ステップS104:YES)、画像解析部211は、撮像画像に含まれる人物Aの表情、顔の向き、顔のサイズを解析する(ステップS106)。
When the person included in the captured image is the same as the person A stored in the flash memory 230 (step S104: YES), the
画像解析部211により人物Aの表情、顔の向き、顔のサイズが解析されると、置換部212は、解析された表情、顔の向き、顔のサイズに合わせてフラッシュメモリ230に記憶された人物Bの画像232を加工して、撮像画像に含まれる人物Aの顔を、人物Bの顔に置換する(ステップS108)。
When the
人物Aの顔を、加工した人物Bの画像232を用いて置換すると、スマートフォン20のCPU210は、フラッシュメモリ230に記憶されている撮像画像を、置換を行った画像によって上書きして保存する(ステップS110)。以上のようにして、一連の置換モードによる撮影処理が終了する。
When the face of the person A is replaced using the processed
次に、図6から図8に基づき、撮影後に行われる置換処理の具体例について説明する。図6は、撮像画像の一例を示す図である。図6に示す撮像画像310には、4人の人物の顔(人物311、312、313、314の顔)が含まれているが、このうち、人物311は、図2(a)に示した人物Aと同一である(図5、ステップS104:YES)。よって、画像解析部211は、撮像画像310に含まれる人物311の表情、顔の向き、顔のサイズを解析する(図5、ステップS106)。
Next, a specific example of replacement processing performed after shooting will be described with reference to FIGS. FIG. 6 is a diagram illustrating an example of a captured image. The captured
図7は、人物311(人物A)の顔を、イベントに不参加の人物Bの画像232を用いて置換する様子について示す図である。撮像画像310に含まれる人物311は人物Aと一致するので(図5、ステップS104:YES)、画像解析部211は、人物311の表情、顔の向き、サイズを解析し(図5、ステップS106)、置換部212は、人物Bの画像232を、人物311の表情、顔の向き、顔のサイズにあわせて加工する。そして、人物311の顔を、加工した人物Bの画像232を用いて置換する(図5、ステップS108)。こうすることで、人物311の顔は、人物311の表情、顔の向き、顔のサイズを保ったまま人物Bの顔に置換される。
FIG. 7 is a diagram illustrating a state in which the face of the person 311 (person A) is replaced using the
図8は、図6に示した撮像画像310に置換処理を施した画像310cを示す図である。図6に示した撮像画像310のうち、人物311(人物A)の顔は、人物Bの顔に置換されている。また、人物312、313、314は、フラッシュメモリ230に記憶された人物Aと同一でないため、置換が行われない。置換は、人物311の表情と、顔の向きと、顔のサイズとが解析されて行われているため、図8に示すように、置換後の撮像画像310cは、もとの撮像画像310の雰囲気を損ねていない。
FIG. 8 is a diagram illustrating an
以上のような置換モードによる撮影処理を行えば、撮像画像にイベントに参加する人物Aが含まれる場合には、人物Aの顔とイベントに不参加の人物Bの顔のみが置き換わる。そのため、実際にイベントに参加していた人物Aの顔以外の部分はそのまま撮像画像に残るため、人物Bが撮像画像の雰囲気にそぐわないポーズや、色合いで追加されることはない。よって、イベントに不参加の人物Bが、イベントに参加していたかのような画像を得ることができる。また、置換に際しては、人物Aの表情、顔の向き、顔のサイズが解析される。そして、解析された人物Aの表情と顔の向きと顔のサイズに基づいて、人物Bの画像232が加工される。そのため、人物Bの画像232が、人物Aの表情とそぐわない表情に加工されることがないため、撮像画像の雰囲気を損なうことなく、人物Aの顔を人物Bの顔に置換することができる。
If the shooting process in the replacement mode as described above is performed, when the person A participating in the event is included in the captured image, only the face of the person A and the face of the person B not participating in the event are replaced. For this reason, portions other than the face of the person A who actually participated in the event remain in the captured image as they are, so that the person B is not added in a pose or hue that does not match the atmosphere of the captured image. Therefore, it is possible to obtain an image as if person B who did not participate in the event participated in the event. In the replacement, the facial expression, face direction, and face size of the person A are analyzed. Then, the
また、イベントに参加する人物Aの画像231は、人物Bに置換されることに対して、あらかじめ承諾が得られてフラッシュメモリ230に記憶されている。そのため、スマートフォン20のユーザは、置換処理に際し、人物Aの肖像権等を考慮しなくともよい。また、これらの処理を、置きかえモードを選択して、撮影をするだけで自動的に行うことができるので、ユーザの利便性が向上する。さらに、撮影をする際には、警告部202により警告が発せられるので、スマートフォン20の周辺に存在する、写真に写り込むことを望まない人物に、これから撮像が行われることを周知することができる。よって、周辺の人物のプライバシーにも配慮しつつ、イベントに不参加の人物Bがイベントに参加していたかのような画像を得ることができる。
In addition, the
A3.入替モードによる撮影処理:
図9は、図4に示した入替モードが選択された場合に実行される撮影処理のフローチャートである。この処理は、イベントに参加する二人の人物の顔を撮像画像において相互に入れ替えて、撮像画像におけるそれぞれの立場が交換された画像を取得するための処理である。
A3. Shooting process in the replacement mode:
FIG. 9 is a flowchart of a photographing process executed when the replacement mode shown in FIG. 4 is selected. This process is a process for acquiring images in which the positions of two persons participating in the event are interchanged in the captured image and the respective positions in the captured image are exchanged.
入替モードによる撮影処理が開始されると、スマートフォン20のCPU210は、置換モードが選択された場合に実行される撮影処理が開始されたときと同様に、警告部202に、これから画像が撮影されることを警告させ(ステップS200)、スマートフォン20のCPU210は、カメラ201により、撮影を行う(ステップS202)。CPU210は、カメラ201により撮影された画像を、フラッシュメモリ230に記憶する。
When the image capturing process in the replacement mode is started, the
撮影が行われると、画像解析部211は、撮像画像に相互に入れ替えられる人物Cと人物Dの顔がともに含まれているか否かを解析する(ステップS204)。画像解析部211は、撮像画像に含まれる人物の顔と、フラッシュメモリ230に記憶された人物C、Dの顔との一致度合いから、撮像画像に含まれる人物と、人物C、Dとが同一か否かを解析する。撮像画像の中に人物Cと人物Dがともに含まれない場合には(ステップS204:NO)、CPU210は入替モードによる撮影処理を終了する。
When shooting is performed, the
撮像画像に人物C、Dがともに含まれる場合には(ステップS204:YES)、画像解析部211は、撮像画像に含まれる人物C、人物Dそれぞれの表情と、顔の向きと、顔のサイズを解析する(ステップS206)。
When the captured images include both persons C and D (step S204: YES), the
画像解析部211により撮像画像に含まれる人物C、Dの表情、顔の向き、顔のサイズが解析されると、入替部213は、解析された人物Cの表情、顔の向き、顔のサイズに合わせてフラッシュメモリ230に記憶された人物Dの画像234を加工して、撮像画像に含まれる人物Cの顔を、加工した人物Dの顔に入れ替える。同様に、入替部213は、解析された人物Dの表情、顔の向き、顔のサイズに合わせてフラッシュメモリ230に記憶された人物Cの画像233を加工して、撮像画像に含まれる人物Dの顔を、加工した人物Cの顔に入れ替える(ステップS208)。
When the
撮像画像に含まれる人物C、Dの顔をそれぞれ入れ替えると、スマートフォン20のCPU210は、フラッシュメモリ230に記憶されている撮像画像を、入替を行った画像によって上書きして保存する(ステップS210)。以上のようにして、一連の入替モードによる撮影処理が終了する。
When the faces of the persons C and D included in the captured image are replaced, the
次に、図10から図12に基づき、撮影後に行われる入替処理の具体例について説明する。図10は、撮像画像の一例を示す図である。図10に示す撮像画像320には、徒競走において先頭でゴールした人物313と、先頭でゴールできなかった人物314とが示されている。このうち、人物313は、図3(a)に示した人物Cと同一であり、人物314は、図3(b)に示した人物Dと同一であるため、撮像画像には、相互に入れ替えられる人物C、Dがともに含まれている(図9、ステップS204:YES)。よって、画像解析部211は、撮像画像320に含まれる人物313と人物314の表情と、顔の向きと、顔のサイズを解析する(図9、ステップS206)。
Next, a specific example of replacement processing performed after shooting will be described with reference to FIGS. FIG. 10 is a diagram illustrating an example of a captured image. The captured
図11は、撮像画像に含まれる人物313,314の顔をそれぞれ入れ替える様子について示す図である。画像解析部211が、撮像画像320に含まれる人物313、すなわち人物Cの表情、顔の向き、サイズを解析し(図9、ステップS206)、入替部213は、フラッシュメモリ230に記憶されている人物Dの顔を、解析された人物313の表情、顔の向き、顔のサイズにあわせて加工する。そして、人物313の顔を、加工した人物Dの画像233を用いて入れ替える(図9、ステップS208)。同様に、撮像画像320に含まれる人物314、すなわち人物Dに対して、画像解析部211が、表情、顔の向き、顔のサイズを解析し(図9、ステップS206)、入替部213は、フラッシュメモリ230に記憶されている人物Cの顔を、人物314の表情、顔の向き、顔のサイズに合わせて加工する。そして、入替部213は、人物314の顔を、加工した人物Cの画像233を用いて入れ替える(図9、ステップS208)。こうすることで、撮像画像320中の人物313の顔は、人物313の表情、顔の向き、顔のサイズを保ったまま人物Dの顔に入れ替わり、撮像画像320中の人物314の顔は、人物314の表情、顔の向き、顔のサイズを保ったまま人物Cの顔に入れ替わる。
FIG. 11 is a diagram illustrating how the faces of the
図12は、図10に示した撮像画像320に入替処理を施した撮像画像320cを示す図である。図10に示した撮像画像320のうち、人物313(人物C)の顔は、人物Dの顔に入れ替わり、人物314(人物D)の顔は、人物Cの顔に入れ替わっている。入替処理は、撮像画像320に含まれる人物313,314の表情、顔の向き、顔のサイズが解析されて行われているため、図12に示すように、入替後の撮像画像320cは、もとの撮像画像320の雰囲気を損ねていない。そのため、入替処理を施した撮像画像320cは、もとの撮像画像320の人物Cと人物Dの立場が入れ替わり、人物Dは先頭でゴールしたように、人物Cは先頭でゴールできなかったような画像となる。
FIG. 12 is a diagram illustrating a captured
以上のような入替モードによる撮影処理を行えば、撮像画像に相互に入れ替えられる人物が同時に含まれる場合には、その人物の顔が入れ替わる。そのため、このイベントに参加している二人の人物の立場が入れ替えられた画像を取得することができる。よって、本実施形態のように先頭でゴールできなかった人物Dの顔が、先頭でゴールできた人物Cの顔と入れ替わるので、人物Dにとって望ましい画像を取得することができる。また、入替に際しては、撮像画像における人物Cの表情、顔の向き、顔のサイズが解析された結果に基づいて、フラッシュメモリ230に記憶されている人物Dの画像234が加工される。また、撮像画像における人物Dの表情、顔の向き、顔のサイズが解析された結果に基づいて、フラッシュメモリ230に記憶されている人物Cの画像233が加工される。そのため、置換処理と同様に、撮像画像の雰囲気を損なうことなく人物同士を入れ替えることができる。
If the above-described shooting process in the replacement mode is performed, if a person who can be interchanged is included in the captured image at the same time, the face of the person is replaced. Therefore, it is possible to acquire an image in which the positions of two persons participating in this event are exchanged. Therefore, since the face of the person D who could not finish at the top as in the present embodiment is replaced with the face of the person C who could finish at the top, an image desirable for the person D can be acquired. Further, at the time of replacement, the
なお、人物Cの画像233は、入替処理を行うことに対して、あらかじめ承諾が得られてフラッシュメモリ230に記憶されている画像である。さらに、ユーザが入替モードを選択して、撮影をするだけで、これらの処理が自動的に実行される。また、撮影をする際には、警告部202により警告が発せられる。よって、入替モードによる撮影処理においても、置換モードによる撮影処理と同様の効果を奏する。
The
B.第2実施形態:
B1.画像処理システムの構成:
図13は、本発明の一実施形態としての画像処理システム10の構成を説明するための図である。画像処理システム10は、画像を撮影可能な端末としてのスマートフォン20aと、サーバ50とを備える。スマートフォン20aとサーバ50は、互いにインターネットINTによって接続されている。スマートフォン20aは、通信キャリアBSを介して無線によってインターネットINTに接続可能である。なお、通信キャリアBSには、送受信アンテナや、無線基地局、交換局が含まれる。
B. Second embodiment:
B1. Image processing system configuration:
FIG. 13 is a diagram for explaining the configuration of the
サーバ50は、CPU510と、RAM520と、ROM525と、ハードディスク540と、通信部550と、を備える。サーバ50は、通信部550により、インターネットINTを介してスマートフォン20とデータ通信を行う。本実施形態では、サーバ50は、置換処理や入替処理が行われた撮像画像を、ハードディスク540に保存する。また、スマートフォン20aの要求に応じて保存した画像を送信する。
The
本実施形態の画像処理システム10と、第1実施形態の画像処理装置との差異は、第1実施形態においては画像処理装置としてのスマートフォン20のCPU210が、画像解析部211、置換部212および入替部213として機能するのに対し、本実施形態の画像処理システム10は、サーバ50のCPU510が、画像解析部511、置換部512および入替部513として機能する点である。また、第1実施形態においては、スマートフォン20のフラッシュメモリ230に人物A〜Dの画像231〜234が記憶されていたのに対し、本実施形態においては、サーバ50のハードディスク540に、人物A〜Dの画像541〜544が記憶されている。スマートフォン20aのその他の構成については、第1実施形態のスマートフォン20と同様であるため、説明を省略する。
The difference between the
B2.置換モードによる撮影処理:
図14は、画像処理システム10により実行される置換モードによる撮影処理のフローチャートである。本実施形態の画像処理システム10が実行する置換モードによる撮影処理は、図5を用いて説明したスマートフォン20が実行する処理とほぼ同様である。異なる点は、スマートフォン20aで撮影された画像に対して、サーバ50が置換処理を行う点である。なお、画像処理システム10において、入替モードが選択された場合には、サーバ50は第1実施形態のスマートフォン20が行った入替処理と同様の処理を行うことができる。自動判別モードが選択された場合には、サーバ50は、撮像画像の解析結果から、置換処理、入替処理のいずれかを自動で判別して行う。
B2. Shooting process in replace mode:
FIG. 14 is a flowchart of the photographing process in the replacement mode executed by the
撮影処理が開始されると、第1実施形態と同様に、スマートフォン20aのCPU210aは、警告部202にこれから撮影が行われることを警告させ(ステップS300)、カメラ201を起動して、撮影を行う(ステップS302)。撮影を行うと、スマートフォン20aの移動体通信網通信部207は、撮像画像をサーバ50へ送信する(ステップS304)。この際、スマートフォン20aの移動体通信網通信部207は、この撮像画像は置換モードが選択されて撮影された画像であることを、あわせてサーバ50に通知する。
When the shooting process is started, as in the first embodiment, the
スマートフォン20aから撮像画像を受信すると(ステップS400:YES)、サーバ50のCPU510は、撮像画像をハードディスク540に記憶する。
When the captured image is received from the
以降、サーバ50の画像解析部511が受信した撮像画像を解析する工程(図14、ステップS404〜ステップS406)においては、第1実施形態におけるスマートフォン20の画像解析部211が撮像画像を解析する工程(図5、ステップS104〜ステップS106)と同様の処理が行われるため、説明を省略する。また、サーバ50の置換部512が人物Aの表情、顔のサイズ、向きに基づいて、人物Bの画像542を用いて置換を行う工程(図14、ステップS408)においては、第1実施形態におけるスマートフォン20の置換部212が人物Aの表情、顔のサイズ、向きに基づいて、人物Bの画像242を用いて置換を行う工程(図5、ステップS108)と同様の処理が行われるため説明を省略する。
Thereafter, in the step of analyzing the captured image received by the
置換部512によって、撮像画像の人物Aが人物B顔に置換されると(ステップS408)、サーバ50のCPU510は、ハードディスク540に記憶されている撮像画像を、置換を行った画像によって上書きして保存する(ステップS410)。また、ステップS404において、受信した撮像画像に人物の顔が含まれていない場合には(ステップS404:NO)、サーバ50はそのまま置換処理を終了する。以上のようにして、画像処理システム10による一連の置換モードによる撮影処理が終了する。
When the
以上のような置換処理を行えば、第1実施形態におけるスマートフォン20の画像解析部211および置換部212と同様に、サーバ50の画像解析部511は撮像画像を解析し、置換部512は、解析された結果に基づいて、撮像画像における人物Aの顔を人物Bの顔に置換する。そのため、本実施形態においても、第1実施形態における置換処理と同様の効果を奏する。また、人物A〜Dの画像541〜544や、置換後の撮像画像は、スマートフォン20aのフラッシュメモリ230aではなく、サーバ50の備えるハードディスク540に記憶することができるため、スマートフォン20aの記憶領域を有効に活用することができる。さらに、撮像画像の画像解析や、置換は、スマートフォン20aではなく、サーバ50の画像解析部511および置換部512によって行われる。そのため、スマートフォン20aのCPU210の処理負担を軽減することができる。よって、スマートフォン20aの動作が遅延することを防ぐことができるので、スマートフォン20aのユーザの便宜を図ることができる。
If the replacement process as described above is performed, the
C.変形例:
C1.変形例1:
上述の第1実施形態では、画像処理装置としてスマートフォン20を用いている。これに対し、画像処理装置は、デジタルカメラであってもよい。また、第1実施形態における画像処理装置としてのスマートフォン20は、無線LAN通信部206、移動体通信網通信部207、音声通信部208を備えている。これに対し、スマートフォン20は、無線LAN通信部206、移動体通信網通信部207、音声通信部208を備えないこととしてもよい。すなわち、画像処理装置は、通信機能を備えていなくともよい。
C. Variations:
C1. Modification 1:
In the first embodiment described above, the
C2.変形例2:
上述の第1実施形態では、スマートフォン20のCPU210は、フラッシュメモリ230に記憶されている撮像画像を、置換後の撮像画像や、入替後の撮像画像によって上書きしている。これに対し、スマートフォン20のCPU210は、フラッシュメモリ230に記憶されている撮像画像を上書きするのではなく、置換後の撮像画像や入替後の撮像画像を、置換前または入替前の撮像画像とは別にフラッシュメモリ230に保存することとしてもよい。同様に、上述の第2実施形態では、サーバ50のCPU510は、ハードディスク540に記憶されている置換前の撮像画像を、置換後の撮像画像によって上書きしている。これに対し、サーバ50のCPU510は、置換後の撮像画像を、置換前の撮像画像とは別にハードディスク540に保存することとしてもよい。
C2. Modification 2:
In the first embodiment described above, the
C3.変形例3:
上述の画像処理装置、画像処理システムは、撮像画像の解析結果に基づいて、置換処理から入替処理に自動で移行することができる。例えば、自動判別モードボタン504が押下され、決定ボタン506が押下されると(図4)、画像解析部211,511は、撮像画像中にイベントに参加する人物Aに加え、更に、イベントに不参加の人物Bが撮像画像中に含まれているか否かを解析する。撮像画像中に人物Bが含まれている場合には、CPU210、510は、人物Aと人物Bとを相互に入れ替える人物と判定して、画像解析部211、511に人物Aと人物Bの表情、顔の向き、顔のサイズを解析させ、入替部213、513に人物Aと人物Bとを入れ替えさせる。こうすることで、人物Aが撮像画像に含まれており人物Bが撮像画像に含まれていない場合には、人物Aが人物Bに置換され、人物Aと人物Bがともに撮像画像に含まれている場合には、人物Aと人物Bとが相互に入れ替えられた撮像画像を得ることもできる。すなわち、置換部によって第1の人物(人物A)と置換される第2の人物(人物B)と、入替部によって第1の人物と入れ替えられる第3の人物とは、同一の人物であってもよい。
C3. Modification 3:
The image processing apparatus and the image processing system described above can automatically shift from the replacement process to the replacement process based on the analysis result of the captured image. For example, when the automatic
C4.変形例4:
上述の第1実施形態のスマートフォン20は、フラッシュメモリ230にイベントに参加する人物A、相互に入れ替えられる人物Cと人物Dをあらかじめ記憶している。これに対し、スマートフォン20は、フラッシュメモリ230にこれらの人物の画像をあらかじめ記憶しておかなくともよい。例えば、ユーザ自身が、取得された画像の中から、人物Aを選択し、画像解析部211は、選択された人物の表情や顔の向きやサイズを解析し、フラッシュメモリ230に記憶されている人物Bの画像を加工して、置換することとしてもよい。また、ユーザ自身が、取得された画像の中から相互に入れ替えられる人物Cと人物Dを選択し、画像解析部211は、選択されたそれぞれの人物の表情や顔の向きやサイズを解析し、入替部213は、撮像画像における人物Cと人物Dの画像を加工して、人物Cの顔を加工した人物Dの顔に、人物Dの顔を加工した人物Cの顔に入れ替えても良い。
C4. Modification 4:
The
C5.変形例5:
上述の第1実施形態では、スマートフォン20のCPU210は、置換後の撮像画像や入替後の撮像画像をフラッシュメモリ230に保存している。また、第2実施形態では、サーバ50は、置換後の撮像画像をハードディスクに保存している。これに対し、置換後や入替後の撮像画像を保存する際には、CPU210、510は、これらの画像に対して置換や入替が行われた画像であることを示す識別記号を付与するものとしてもよい。こうすることで、置換後や入替後の撮像画像を解析すれば、置換や入替がされた画像であることを知ることができる。
C5. Modification 5:
In the first embodiment described above, the
C6.変形例6:
上述の種々の実施形態では、警告を発した後に撮影が行われている。これに対し、警告は発せられなくてもよく、また、警告を発するか否かを選択する表示をタッチパネル204の表示部205に表示するものとしてもよい。
C6. Modification 6:
In the various embodiments described above, shooting is performed after a warning is issued. On the other hand, a warning may not be issued, and a display for selecting whether or not to issue a warning may be displayed on the
C7.変形例7:
上述の種々の実施形態では、スマートフォンにより画像が撮影された後に、引き続いて、置換部による置換もしくは入替部による入れ替えが行われている。これに対し、あらかじめフラッシュメモリに記憶された撮像画像の中から置換や入れ替えを行う画像を選択し、その画像に対して、置換や入れ替えを行ってもよい。すなわち、画像解析部による画像解析や、置換部による置換もしくは入替部による入れ替えは、撮影と無関係に行ってもよい。
C7. Modification 7:
In the various embodiments described above, after an image is taken by a smartphone, replacement by a replacement unit or replacement by a replacement unit is subsequently performed. On the other hand, an image to be replaced or replaced may be selected from captured images stored in advance in the flash memory, and the replacement or replacement may be performed on the image. That is, the image analysis by the image analysis unit, the replacement by the replacement unit, or the replacement by the replacement unit may be performed regardless of the shooting.
C8.変形例8:
上述の第2実施形態では、サーバ50は、スマートフォン20aから撮像画像を受信し、画像解析や置換が行われると(図14、ステップS400〜ステップS408)、置換後の撮像画像をハードディスクに保存している(図14、ステップS410)。これに対し、サーバ50は、置換が行われた撮像画像を、スマートフォン20aへ送信するものとしてもよい。
C8. Modification 8:
In the second embodiment described above, when the
C9.変形例9:
上述の第2実施形態では、サーバ50は、スマートフォン20aのカメラ201によって撮影された画像を、移動体通信網通信部207によりインターネットINTを介して受信している。これに対して、サーバ50は、例えば、デジタルカメラ等によって撮影され、コンピュータ等他の端末で読み出された画像を、受信するものとしてもよい。すなわち、画像処理システム10の備える端末は、画像取得部としてのカメラと、通信機能とを一台で備えていなくともよい。
C9. Modification 9:
In the second embodiment described above, the
C10.変形例10:
上述の種々の実施形態では、カメラ201は、静止画像を撮影し、画像解析部は静止画像を解析して、置換部や入替部は静止画像に対して置換処理や入替処理を行っている。これに対し、カメラ201は、動画像を撮影するものとしてもよい。動画像が撮影された場合には、画像解析部は動画像に含まれる複数の画像のそれぞれに対して、人物Aが含まれるか否かを解析し、置換部は解析結果に基づいて、それぞれの画像に対して人物Bの画像232を加工して置換処理を行ってもよい。また、画像解析部は動画像に含まれる複数の画像のそれぞれに対して、人物Cと人物Dとが同時に含まれるか否かを解析し、入替部は解析結果に基づいて、それぞれの画像に対して人物Cの画像233と人物Dの画像234を加工して、入替処理を行っても良い。
C10. Modification 10:
In the various embodiments described above, the
C11.変形例11:
上述の第2実施形態における置換モードによる撮影処理では、スマートフォン20aの移動体通信網通信部207は、撮像画像は送信する際に(図14、ステップS304)撮像画像は置換モードが選択されて撮影された画像であることを、サーバ50に通知している。これに対し、撮影処理とは無関係に、スマートフォン20aのCPU210aは、置換処理と、入替処理と、自動判別処理のいずれを行うかの選択画面を表示部205に表示させ、ユーザによって選択がされたあとに、選択結果をサーバ50に送信してもよい。また、サーバ50において撮像画像を受信した場合に、サーバ50のCPU510が、撮像画像を送信した端末に対し、置換処理、入替処理、自動判別処理のいずれを行うかを問い合わせてもよい。サーバ50は、受信した選択結果に基づいて、置換処理や、入替処理や、自動判別処理を行うものとしてもよい。
C11. Modification 11:
In the imaging process using the replacement mode in the second embodiment described above, the mobile communication
本発明は、上述の実施形態や変形例に限られるものではなく、その趣旨を逸脱しない範囲において種々の構成で実現することができる。例えば、発明の概要の欄に記載した各形態中の技術的特徴に対応する実施形態、変形例中の技術的特徴は、上述の課題の一部又は全部を解決するために、あるいは、上述の効果の一部又は全部を達成するために、適宜、差し替えや、組み合わせを行うことが可能である。また、その技術的特徴が本明細書中に必須なものとして説明されていなければ、適宜、削除することが可能である。 The present invention is not limited to the above-described embodiments and modifications, and can be realized with various configurations without departing from the spirit thereof. For example, the technical features in the embodiments and the modifications corresponding to the technical features in each embodiment described in the summary section of the invention are to solve some or all of the above-described problems, or In order to achieve part or all of the effects, replacement or combination can be performed as appropriate. Further, if the technical feature is not described as essential in the present specification, it can be deleted as appropriate.
10…画像処理システム
20、20a…スマートフォン
50…サーバ
201…カメラ
202…警告部
204…タッチパネル
205…表示部
206…無線LAN通信部
207…移動体通信網通信部
208…音声通信部
210、210a、510…CPU
211、511…画像解析部
212、512…置換部
213、513…入替部
220、520…RAM
225、525…ROM
230、230a…フラッシュメモリ
231、541…人物Aの画像
232、542…人物Bの画像
233、543…人物Cの画像
234、544…人物Dの画像
310、310c、320、320c…撮像画像
311、312、313、314、311c、313c、314c、A、B、C、D…人物
501…撮影モード選択画面
502…置換モードボタン
503…モードボタン
504…自動判別モードボタン
506…決定ボタン
540…ハードディスク
550…通信部
BS…通信キャリア
INT…インターネット
DESCRIPTION OF
211, 511 ...
225, 525 ... ROM
230, 230a ...
Claims (9)
あらかじめ承諾が得られた第1の人物を識別するための識別情報が記憶された第1記憶部と、
第2の人物の画像が記憶された第2記憶部と、
撮像された画像を取得する画像取得部と、
前記識別情報に基づいて、前記取得された画像に前記第1の人物が含まれるか否かを解析する画像解析部と、
前記取得された画像のうち前記第1の人物を、前記第2の人物の画像を用いて前記第2の人物に置換する置換部と、
を備える、画像処理装置。 An image processing apparatus,
A first storage unit storing identification information for identifying a first person who has obtained consent in advance;
A second storage unit storing an image of a second person;
An image acquisition unit for acquiring a captured image;
An image analysis unit that analyzes whether or not the first person is included in the acquired image based on the identification information;
A replacement unit that replaces the first person in the acquired image with the second person using the image of the second person;
An image processing apparatus comprising:
前記画像解析部は、前記取得された画像に前記第1の人物が含まれる場合には、前記第1の人物の表情、顔の向き、顔のサイズのうち少なくとも一つを解析し、
前記置換部は、前記取得された画像のうち前記第1の人物を、解析結果に基づいて前記第2の人物の画像を加工して前記第2の人物に置換する、画像処理装置。 The image processing apparatus according to claim 1,
The image analysis unit, when the first person is included in the acquired image, analyzes at least one of the facial expression, face orientation, and face size of the first person,
The replacement unit is an image processing apparatus that replaces the first person of the acquired images with the second person by processing the image of the second person based on an analysis result.
前記画像解析部は、更に前記取得された画像に第3の人物が含まれるか否かを解析し、
前記取得された画像のうち前記第1の人物と前記第3の人物とを入れ替える入替部を更に備える、画像処理装置。 The image processing apparatus according to claim 1 or 2,
The image analysis unit further analyzes whether or not a third person is included in the acquired image,
An image processing apparatus further comprising a replacement unit that replaces the first person and the third person in the acquired image.
前記画像解析部は、前記取得された画像のうち前記第1の人物と前記第3の人物のうち少なくとも一方の表情、顔の向き、顔のサイズのうち少なくとも一つを解析し、
前記入替部は、解析結果に基づいて前記取得された画像のうち前記第1の人物と前記第3の人物とを入れ替える、画像処理装置。 The image processing apparatus according to claim 3,
The image analysis unit analyzes at least one of the facial expression, the facial orientation, and the facial size of at least one of the first person and the third person in the acquired image;
The said replacement part is an image processing apparatus which replaces the said 1st person and the said 3rd person among the acquired images based on an analysis result.
前記画像取得部は、動画像に含まれる複数の画像を取得し、
前記画像解析部は、前記識別情報に基づいて、前記取得されたそれぞれの画像に前記第1の人物が含まれるか否かを解析する、画像処理装置。 An image processing apparatus according to any one of claims 1 to 4, wherein
The image acquisition unit acquires a plurality of images included in a moving image,
The image analysis unit is configured to analyze whether the first person is included in each acquired image based on the identification information.
警告を発する警告部を更に備え、
前記画像取得部は、前記警告部が警告を発した後に画像を取得する、画像処理装置。 An image processing apparatus according to any one of claims 1 to 5, wherein
A warning section for issuing a warning;
The image acquisition unit is an image processing apparatus that acquires an image after the warning unit issues a warning.
前記端末は、
撮像された画像を取得する画像取得部と、
前記取得された画像を前記サーバに送信する送信部と、を備え、
前記サーバは、
前記取得された画像を前記端末から受信する受信部と、
あらかじめ承諾が得られた第1の人物を識別するための識別情報が記憶された第1記憶部と、
第2の人物の画像が記憶された第2記憶部と、
前記識別情報に基づいて、前記取得された画像に前記第1の人物が含まれるか否かを解析する画像解析部と、
前記取得された画像のうち前記第1の人物を、前記第2の人物の画像を用いて前記第2の人物に置換する置換部と、
を備える画像処理システム。 An image processing system comprising a terminal capable of capturing an image and a server capable of communicating with the terminal,
The terminal
An image acquisition unit for acquiring a captured image;
A transmission unit for transmitting the acquired image to the server,
The server
A receiving unit for receiving the acquired image from the terminal;
A first storage unit storing identification information for identifying a first person who has obtained consent in advance;
A second storage unit storing an image of a second person;
An image analysis unit that analyzes whether or not the first person is included in the acquired image based on the identification information;
A replacement unit that replaces the first person in the acquired image with the second person using the image of the second person;
An image processing system comprising:
撮像された画像を取得する工程と、
あらかじめ承諾が得られた第1の人物を識別するための識別情報に基づいて、前記取得された画像に、前記第1の人物が含まれるか否かを解析する工程と、
前記取得された画像のうち前記第1の人物を、第2の人物に置換するための第2の人物の画像を用いて置換する工程と、
を備える画像処理方法。 An image processing method comprising:
Obtaining a captured image; and
Analyzing whether or not the first person is included in the acquired image based on identification information for identifying the first person who has obtained consent in advance;
Replacing the first person in the acquired image with a second person image to replace the second person;
An image processing method comprising:
撮像された画像を取得する機能と、
あらかじめ承諾が得られた第1の人物を識別するための識別情報に基づいて、前記取得された画像に、前記第1の人物が含まれるか否か解析する機能と、
前記取得された画像のうち前記第1の人物を、第2の人物に置換するための第2の人物の画像を用いて置換する機能と、
をコンピュータに実現させるコンピュータプログラム。 A computer program for processing an image,
A function to acquire a captured image;
A function of analyzing whether or not the first person is included in the acquired image based on identification information for identifying the first person who has obtained consent in advance;
A function of replacing the first person in the acquired image with a second person image for replacing the second person;
A computer program that causes a computer to realize
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012210609A JP2014068107A (en) | 2012-09-25 | 2012-09-25 | Image processing apparatus, image processing system, image processing method, and computer program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012210609A JP2014068107A (en) | 2012-09-25 | 2012-09-25 | Image processing apparatus, image processing system, image processing method, and computer program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2014068107A true JP2014068107A (en) | 2014-04-17 |
Family
ID=50744131
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012210609A Pending JP2014068107A (en) | 2012-09-25 | 2012-09-25 | Image processing apparatus, image processing system, image processing method, and computer program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2014068107A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109559362A (en) * | 2018-11-23 | 2019-04-02 | 广东智媒云图科技股份有限公司 | A kind of image subject face replacement method and device |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10240908A (en) * | 1997-02-27 | 1998-09-11 | Hitachi Ltd | Video composition method |
| JP2006344199A (en) * | 2005-05-13 | 2006-12-21 | Sony Computer Entertainment Inc | Image display device, method of controlling image display device and program |
| JP2011070623A (en) * | 2009-08-31 | 2011-04-07 | Sony Corp | Image processor, image processing method, and program |
| JP2012043151A (en) * | 2010-08-18 | 2012-03-01 | Canon Inc | Image processing apparatus, method therefor, program, and image capturing apparatus |
-
2012
- 2012-09-25 JP JP2012210609A patent/JP2014068107A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH10240908A (en) * | 1997-02-27 | 1998-09-11 | Hitachi Ltd | Video composition method |
| JP2006344199A (en) * | 2005-05-13 | 2006-12-21 | Sony Computer Entertainment Inc | Image display device, method of controlling image display device and program |
| JP2011070623A (en) * | 2009-08-31 | 2011-04-07 | Sony Corp | Image processor, image processing method, and program |
| JP2012043151A (en) * | 2010-08-18 | 2012-03-01 | Canon Inc | Image processing apparatus, method therefor, program, and image capturing apparatus |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109559362A (en) * | 2018-11-23 | 2019-04-02 | 广东智媒云图科技股份有限公司 | A kind of image subject face replacement method and device |
| CN109559362B (en) * | 2018-11-23 | 2022-10-21 | 广东智媒云图科技股份有限公司 | Image subject face replacing method and device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9055276B2 (en) | Camera having processing customized for identified persons | |
| US9344644B2 (en) | Method and apparatus for image processing | |
| CN101841650B (en) | Suitable image capturing device for the person's taking a picture | |
| CN103945130B (en) | The image acquisition method of electronic equipment and electronic equipment | |
| JP5369974B2 (en) | Imaging apparatus and image sharing system | |
| JP2014067131A (en) | Image processing apparatus, image processing system, image processing method, and computer program | |
| US20130027569A1 (en) | Camera having processing customized for recognized persons | |
| JP2005094741A (en) | Image pickup device and image synthesizing method | |
| JP2015115839A5 (en) | ||
| JP2005267146A (en) | Method and device for creating email by means of image recognition function | |
| EP3381180B1 (en) | Photographing device and method of controlling the same | |
| JP6096654B2 (en) | Image recording method, electronic device, and computer program | |
| CN110099217A (en) | A kind of image capturing method based on TOF technology, mobile terminal and computer readable storage medium | |
| CN105744169A (en) | Image shooting method and device | |
| CN104065909B (en) | Camera head, communication means and communication system | |
| JP2012235282A (en) | Imaging apparatus, imaging data sharing system, and program | |
| JP4206488B2 (en) | Image processing apparatus, photographing system, image processing method, image processing program, and recording medium | |
| JP6529852B2 (en) | Information acquisition apparatus, information acquisition system including the same, control method of information acquisition apparatus, and program for information acquisition apparatus | |
| JP2014068107A (en) | Image processing apparatus, image processing system, image processing method, and computer program | |
| JP5550114B2 (en) | Imaging device | |
| JP2012070222A (en) | Imaging device, imaging method, and imaging program | |
| CN104871532B (en) | Filming apparatus and its method of controlling operation | |
| JP2014158102A (en) | Imaging device and image processing device | |
| CN110121027B (en) | Image processing method and terminal | |
| KR20140130887A (en) | Method for generating thumbnail image and an electronic device thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150330 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20151221 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160105 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20160510 |