JP2009094946A - Image pickup device and portrait right protection method in the same device - Google Patents

Image pickup device and portrait right protection method in the same device Download PDF

Info

Publication number
JP2009094946A
JP2009094946A JP2007265557A JP2007265557A JP2009094946A JP 2009094946 A JP2009094946 A JP 2009094946A JP 2007265557 A JP2007265557 A JP 2007265557A JP 2007265557 A JP2007265557 A JP 2007265557A JP 2009094946 A JP2009094946 A JP 2009094946A
Authority
JP
Japan
Prior art keywords
face
subject
invalid
image
portrait right
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2007265557A
Other languages
Japanese (ja)
Inventor
Eiichi Akazawa
栄一 赤沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2007265557A priority Critical patent/JP2009094946A/en
Publication of JP2009094946A publication Critical patent/JP2009094946A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Studio Circuits (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To prevent the invasion of the privacy or portrait right of a third person when disclosing a photographic image in an image pickup device. <P>SOLUTION: This image pickup device for acquiring image data by imaging an object, and for detecting a prescribed object from the acquired image data is configured to determine whether or not each of one or more detected objects (K1 to K4) is valid or not based on information including at least one of the size, position, change quantity and focusing evaluation value of the object, and applies portrait right protection processing to the object (for example, K4) determined as an invalid object. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は撮像装置に関し、特に撮像した画像においてプライバシーや肖像権の侵害を防ぐ肖像権保護方法に関するものである。   The present invention relates to an imaging apparatus, and more particularly to a portrait right protection method for preventing infringement of privacy and portrait rights in a captured image.

従来より、デジタルカメラ等の撮像装置によって取得した画像データから、例えば顔等の特定の対象物を検出し、検出した対象物を利用して行う様々な画像処理方法が提案されており、例えば画像データから顔領域を検出し、検出した顔領域に注目して画像を再生する画像処理装置が開示されている(特許文献1)。   Conventionally, various image processing methods for detecting a specific object such as a face from image data acquired by an imaging device such as a digital camera and using the detected object have been proposed. An image processing apparatus that detects a face area from data and reproduces an image paying attention to the detected face area is disclosed (Patent Document 1).

一方、デジタルカメラ等の撮像装置によって被写体を撮影するときに、撮影者が所望する被写体の他に、例えば偶然通りかかった人物の顔等の撮影者が意図しない人物の顔も被写体として撮影してしまうことがある。   On the other hand, when a subject is photographed by an imaging device such as a digital camera, in addition to the subject desired by the photographer, for example, the face of a person unintended by the photographer, such as the face of a person who accidentally passes, is photographed as the subject. Sometimes.

しかしながら近年ではプライバシーや肖像権の保護に対する意識が高まっているため、撮影によって得られた画像を公開するときに、画像に写ってしまった第三者に対するプライバシーや肖像権の保護が望まれている。   However, in recent years, the awareness of privacy and protection of portrait rights has increased, so when releasing images obtained by shooting, privacy and protection of portrait rights against third parties appearing in the images are desired. .

そこで取得した映像から人物の身振りや行為を検出し、検出した身振りや行為を分析して、この分析結果に応じて決定した画像領域に対して、ユーザ要求や利用シーンに応じた最適な抽象化処理を行う監視用撮像装置(特許文献2)や、画像において例えば顔等の構造物を特定できないように、構造物の特徴点のパラメータを変更して構造物を再構成する画像処理装置(特許文献3)、撮影されたくない領域にセンサを配置して、自動的にモザイク処理を施し、モザイク処理が施された画像を提供する画像提供装置(特許文献4)等が提案されている。
特開2006−293782号公報 特開2006−295251号公報 特開2006−318377号公報 特開2005−026917号公報
Therefore, human gestures and actions are detected from the acquired images, the detected gestures and actions are analyzed, and the optimal abstraction according to user requests and usage scenes is determined for the image area determined according to the analysis results. An imaging device for monitoring (Patent Document 2) that performs processing, or an image processing device that reconstructs a structure by changing parameters of feature points of the structure so that a structure such as a face cannot be specified in an image (Patent) Document 3), an image providing apparatus (Patent Document 4) that automatically arranges a sensor in an area that is not desired to be imaged, automatically performs mosaic processing, and provides an image subjected to mosaic processing has been proposed.
JP 2006-293882 A JP 2006-295251 A JP 2006-318377 A JP 2005-026917 A

しかしながら、上記監視用撮像装置では、身振りや行為を分析するため、例えば同じ動作等をする人物の中から撮影者が所望しない人物を判断することは困難である。また上記画像処理装置や上記画像提供装置においては、画像処理の対象となる対象物を決定するときに、例えば偶然通りかかった人物や、意図しないで撮影視野内に入ってしまった人物等を考慮することは困難である。   However, since the monitoring imaging device analyzes gestures and actions, it is difficult to determine a person who the photographer does not want from people who perform the same operation, for example. In the image processing apparatus and the image providing apparatus, when determining an object to be subjected to image processing, for example, a person who accidentally passes or a person who has unintentionally entered the field of view is considered. It is difficult.

本発明はかかる事情に鑑みてなされたものであり、撮影された画像を公開するときに第三者に対するプライバシーや肖像権の侵害を防ぐことができる撮像装置及び該撮像装置における肖像権保護方法を提供することを目的とするものである。   The present invention has been made in view of such circumstances, and an imaging apparatus capable of preventing infringement of privacy and portrait rights to a third party when a photographed image is disclosed, and a portrait right protection method in the imaging apparatus. It is intended to provide.

本発明の撮像装置は、被写体を撮像して画像データを取得する撮像手段と、
前記画像データから所定の対象物を検出する対象物検出手段と、
該対象物検出手段により検出された1つ以上の対象物に対して、それぞれ有効被写体か無効被写体かを判断する被写体判断手段と、
該被写体判断手段により無効被写体であると判断された前記対象物に対して肖像権を保護する肖像権保護手段とを備えてなること特徴とするものである。
An imaging apparatus according to the present invention includes an imaging unit that captures an image of a subject and acquires image data;
Object detection means for detecting a predetermined object from the image data;
Subject determination means for determining whether each of the one or more objects detected by the object detection means is an effective subject or an invalid subject;
Portrait right protection means for protecting the right of portrait of the object determined to be an invalid subject by the subject determination means is provided.

また本発明の撮像装置は、前記被写体判断手段が、前記対象物検出手段により検出された対象物の大きさ、位置、変化量及び合焦評価値のうち1つ以上を含む情報に基づいて前記判断をするものであることが好ましい。   In the imaging apparatus according to the aspect of the invention, the subject determination unit may be configured based on information including one or more of the size, position, change amount, and focus evaluation value of the target detected by the target detection unit. It is preferable to make a judgment.

また本発明の撮像装置は、前記被写体判断手段により有効被写体と判断された前記対象物の数が、任意に設定された対象物の数よりも多いとき、前記各種情報の優先度の低いものの順に有効被写体から無効被写体に繰り下げ、
前記数よりも少ないとき、前記各種情報の優先度の高いものの順に無効被写体から有効被写体に繰り上げる有効被写体変更手段を備えていることが好ましい。
In the imaging apparatus according to the present invention, when the number of the objects that are determined to be effective objects by the object determining unit is larger than the number of objects that are arbitrarily set, the various objects are invalidated from the effective objects in the order of low priority. Move down to the subject,
When the number is less than the number, it is preferable to include effective subject changing means for moving the invalid information from the invalid subject to the effective subject in descending order of priority.

本発明の撮像装置は、前記肖像権保護手段を、前記無効被写体と判断された前記対象物に対してモザイク処理を施すものとすることができる。   In the imaging apparatus according to the present invention, the portrait right protection means may perform a mosaic process on the object determined to be the invalid subject.

また本発明の撮像装置は、前記肖像権保護手段を、前記無効被写体と判断された前記対象物に対してぼかし処理を施すものとすることができる。   In the image pickup apparatus of the present invention, the portrait right protection means may perform a blurring process on the object determined to be the invalid subject.

また本発明の撮像装置は、前記肖像権保護手段を、前記無効被写体と判断された前記対象物に対してトリミング処理を施すものとすることができる。   In the image pickup apparatus of the present invention, the portrait right protection means may perform a trimming process on the object determined to be the invalid subject.

また本発明の撮像装置は、前記肖像権保護手段を、前記無効被写体と判断された前記対象物があるときに警告するものとすることができる。   Further, the imaging apparatus of the present invention may warn the portrait right protection means when there is the object determined to be the invalid subject.

また本発明の撮像装置は、前記肖像権保護手段を、前記無効被写体と判断された前記対象物があるときに該対象物が含まれる画像データの印刷を不可能にするものとすることができる。   In the imaging apparatus of the present invention, the portrait right protection means may make it impossible to print image data including the object when there is the object determined to be the invalid subject. .

なお本発明の撮像装置は、上記肖像権保護手段を複数種類備え、そのうちの1つを選択して使用する選択手段を備えることができる。   The image pickup apparatus of the present invention can include a plurality of types of portrait right protection means, and a selection means for selecting and using one of them.

本発明の肖像権保護方法は、被写体を撮像して画像データを取得し、該取得した画像データから所定の対象物を検出する撮像装置において、
前記検出した1つ以上の対象物に対して、該対象物の大きさ、位置、変化量及び合焦評価値のうち1つ以上を含む情報に基づいて、それぞれ有効被写体か無効被写体かを判断し、
無効被写体と判断された前記対象物に対して肖像権保護処理を施すことを特徴とする。
According to the portrait right protection method of the present invention, an imaging device that captures an image of a subject, acquires image data, and detects a predetermined object from the acquired image data.
For one or more detected objects, it is determined whether the object is an effective subject or an invalid subject based on information including one or more of the size, position, change amount, and focus evaluation value of the object. And
Portrait right protection processing is performed on the object determined to be an invalid subject.

また本発明の肖像権保護方法は、被写体とする対象物の数を任意に設定し、
前記有効被写体と判断した前記対象物の数が、前記設定した対象物の数よりも多いときに、前記各種情報の優先度の低いものの順に有効被写体から無効被写体に繰り下げ、
前記数よりも少ないときに、前記各種情報の優先度の高いものの順に無効被写体から有効被写体に繰り上げることができる。
In addition, the portrait right protection method of the present invention arbitrarily sets the number of objects as subjects,
When the number of the objects determined to be the effective subject is larger than the number of the set objects, the effective subject is moved down from the effective subject to the invalid subject in the order of the low priority of the various information,
When the number is less than the number, the invalid subject can be moved from the invalid subject to the valid subject in order of the priority of the various information.

本発明の撮像装置及び撮像装置における肖像権保護方法によれば、被写体を撮像して取得した画像データから検出した1つ以上の対象物に対して、それぞれ有効被写体か無効被写体かを判断し、無効被写体と判断された対象物に対して肖像権保護処理を施すので、撮影者が所望しない被写体つまり第三者を無効被写体と判断することにより、第三者に対して自動的に肖像権保護処理が施されるので、撮影された画像を公開するときに第三者に対するプライバシーや肖像権の侵害を防ぐことができる。   According to the imaging device and the portrait right protection method in the imaging device of the present invention, it is determined whether each of the one or more objects detected from the image data acquired by imaging the subject is an effective subject or an invalid subject, Portrait rights protection processing is performed on objects that are judged to be invalid subjects, so portrait rights are automatically protected against third parties by determining subjects that the photographer does not want, ie third parties, as invalid subjects. Since the processing is performed, it is possible to prevent infringement of privacy and portrait rights with respect to a third party when releasing the photographed image.

また被写体とする対象物の数を任意に設定し、有効被写体と判断した対象物の数が設定した対象物の数よりも多いときに、対象物の大きさ、位置、変化量、合焦評価値の各種情報の優先度の低いものの順に有効被写体から無効被写体に繰り下げ、設定した対象物の数よりも少ないときに、前記各種情報の優先度の高いものの順に無効被写体から有効被写体に繰り上げることにより、有効被写体の検出精度を上げることができる。   In addition, when the number of objects to be used as subjects is arbitrarily set and the number of objects judged to be effective subjects is larger than the set number of objects, the priority of various types of information on the size, position, change amount, and focus evaluation value of the objects The effective subject is decremented from the effective subject to the invalid subject in descending order, and the effective subject detection accuracy is increased by moving from the invalid subject to the valid subject in descending order of the priority of the various information when the number is smaller than the set number of objects. be able to.

以下、本発明にかかる撮像装置の一実施形態を、図面を参照して詳細に説明する。尚、以下の実施の形態では、本発明における撮像装置としてデジタルカメラを例に説明するが、本発明の適用範囲はこれに限定されず、例えば、防犯カメラ、カメラ付き携帯電話、カメラ付きPDA等、電子撮像機能を備えた他の電子機器に対しても適用可能である。   Hereinafter, an embodiment of an imaging apparatus according to the present invention will be described in detail with reference to the drawings. In the following embodiments, a digital camera will be described as an example of the imaging apparatus in the present invention. However, the scope of the present invention is not limited to this, and for example, a security camera, a mobile phone with a camera, a PDA with a camera, etc. It can also be applied to other electronic devices having an electronic imaging function.

図1及び図2は、デジタルカメラの一例を示すものであり、それぞれ背面側及び前面側から見た斜視図である。デジタルカメラ1の本体10の背面には、図1に示す如く、撮影者による操作のためのインターフェースとして、動作モードスイッチ11、メニュー/OKボタン12、ズーム/上下矢印レバー13、左右矢印ボタン14、Back(戻る)ボタン15、表示切替ボタン16が設けられ、更に撮影のためのファインダ17及び撮影並びに再生のための液晶モニタ18が設けられている。また本体10の上面には、シャッタボタン19が設けられている。   1 and 2 show an example of a digital camera, and are perspective views seen from the back side and the front side, respectively. As shown in FIG. 1, an operation mode switch 11, a menu / OK button 12, a zoom / up / down arrow lever 13, a left / right arrow button 14, A Back button 15 and a display switching button 16 are provided, and a finder 17 for photographing and a liquid crystal monitor 18 for photographing and reproduction are further provided. A shutter button 19 is provided on the upper surface of the main body 10.

動作モードスイッチ11は、静止画撮影モード、動画撮影モード、再生モードの各動作モードを切り替えるためのスライドスイッチである。   The operation mode switch 11 is a slide switch for switching operation modes of a still image shooting mode, a moving image shooting mode, and a playback mode.

メニュー/OKボタン12は、押下される毎に撮影モード、フラッシュ発光モード、肖像権保護モード、セルフタイマーON/OFF、記録画素数や感度等の設定を行うための各種メニューを液晶モニタ18に表示させたり、液晶モニタ18に表示されたメニューに基づく選択・設定を確定させたりするためのボタンである。肖像権保護モードは、顔検出機能を使用してプライバシーや肖像権の侵害を防ぐためのモードである。   Each time the menu / OK button 12 is pressed, the LCD monitor 18 displays various menus for setting the shooting mode, flash emission mode, portrait right protection mode, self-timer ON / OFF, recording pixel number, sensitivity, and the like. Or a button for confirming selection / setting based on a menu displayed on the liquid crystal monitor 18. The portrait right protection mode is a mode for preventing privacy and portrait right infringement using the face detection function.

ズーム/上下矢印レバー13は、上下方向にレバーを倒すことによって、撮影時には望遠/広角の調整を行い、各種設定時に液晶モニタ18に表示されるメニュー画面中のカーソルを上下に移動して表示させるためのレバーである。左右矢印ボタン14は、各種設定時に液晶モニタ18に表示されるメニュー画面中のカーソルを左右に移動して表示させるためのボタンである。   The zoom / up / down arrow lever 13 tilts the lever in the up / down direction to adjust the telephoto / wide angle during shooting, and moves the cursor in the menu screen displayed on the liquid crystal monitor 18 during various settings to display it. It is a lever for. The left and right arrow buttons 14 are buttons for moving the cursor in the menu screen displayed on the liquid crystal monitor 18 at the time of various settings to be displayed left and right.

Back(戻る)ボタン15は、押下されることによって各種設定操作を中止し、液晶モニタ18に1つ前の画面を表示するためのボタンである。表示切替ボタン16は、押下されることによって液晶モニタ18の表示のON/OFF、各種ガイド表示、文字表示のON/OFF等を切り替えるためのボタンである。   The Back button 15 is a button for stopping various setting operations when pressed and displaying the previous screen on the liquid crystal monitor 18. The display switching button 16 is a button for switching ON / OFF of display on the liquid crystal monitor 18, various guide displays, ON / OFF of character display, and the like when pressed.

ファインダ17は、撮影者が被写体を撮影する際に構図やピントを合わせるために覗くためのものである。ファインダ17から見える被写体像は、本体10の前面にあるファインダ窓23を介して映し出される。   The viewfinder 17 is used by the photographer to look into the subject for composition and focus when photographing the subject. The subject image seen from the finder 17 is projected through the finder window 23 on the front surface of the main body 10.

以上説明した各ボタン及びスイッチ等の操作によって設定された内容は、液晶モニタ18中の表示や、ファインダ17内のランプ、スライドレバーの位置等によって確認可能となっている。   The contents set by the operation of each button and switch described above can be confirmed by the display on the liquid crystal monitor 18, the position of the lamp in the finder 17, the position of the slide lever, and the like.

また液晶モニタ18は、撮影の際に被写体確認用のスルー画像が表示されることにより、電子ビューファインダとして機能する他、撮影後の静止画や動画の再生表示、各種設定メニューの表示を行う。   The liquid crystal monitor 18 functions as an electronic viewfinder by displaying a through image for checking a subject at the time of shooting, and also displays a still image and a moving image after shooting and displays various setting menus.

更に、本体10の前面には、図2に示す如く、撮影レンズ20、レンズカバー21、電源スイッチ22、ファインダ窓23、フラッシュライト24及びセルフタイマーランプ25が設けられ、側面にはメディアスロット26が設けられている。   Further, as shown in FIG. 2, a photographing lens 20, a lens cover 21, a power switch 22, a finder window 23, a flash light 24 and a self-timer lamp 25 are provided on the front surface of the main body 10, and a media slot 26 is provided on the side surface. Is provided.

撮影レンズ20は、被写体像を所定の結像面上(本体10内部にあるCCD等)に結像させるためのものであり、フォーカスレンズやズームレンズ等によって構成される。レンズカバー21は、デジタルカメラ1の電源がオフ状態のとき、再生モードであるとき等に撮影レンズ20の表面を覆い、汚れやゴミ等から撮影レンズ20を保護するものである。   The photographic lens 20 is for forming a subject image on a predetermined image plane (CCD or the like inside the main body 10), and includes a focus lens, a zoom lens, and the like. The lens cover 21 covers the surface of the photographic lens 20 when the power of the digital camera 1 is turned off or in the playback mode, and protects the photographic lens 20 from dirt and dust.

電源スイッチ22は、デジタルカメラ1の電源のON/OFFを切り替えるためのスイッチである。フラッシュライト24は、シャッタボタン19が押下され、本体10の内部にあるシャッタが開いている間に、撮影に必要な光を被写体に対して瞬間的に照射するためのものである。   The power switch 22 is a switch for switching on / off the power of the digital camera 1. The flashlight 24 is used to instantaneously irradiate the subject with light necessary for photographing while the shutter button 19 is pressed and the shutter inside the main body 10 is opened.

セルフタイマーランプ25は、セルフタイマーによって撮影する際に、シャッタの開閉タイミングすなわち露光の開始及び終了を被写体に知らせるためものである。メディアスロット26は、メモリカード等の外部記録メディア70が充填されるための充填口であり、外部記録メディア70が充填されると、データの読み取り/書き込みが行われる。   The self-timer lamp 25 is used to notify the subject of the opening / closing timing of the shutter, that is, the start and end of exposure when shooting with the self-timer. The media slot 26 is a filling port for filling an external recording medium 70 such as a memory card. When the external recording medium 70 is filled, data reading / writing is performed.

図3にデジタルカメラ1の機能構成を示すブロック図を示す。図3に示す如く、デジタルカメラ1の操作系として、前述の動作モードスイッチ11、メニュー/OKボタン12、ズーム/上下矢印レバー13、左右矢印ボタン14、Back(戻り)ボタン15、表示切替ボタン16、シャッタボタン19、電源スイッチ22と、これらのスイッチ、ボタン、レバー類の操作内容をCPU75に伝えるためのインターフェースである操作系制御部74が設けられている。   FIG. 3 is a block diagram showing the functional configuration of the digital camera 1. As shown in FIG. 3, as the operation system of the digital camera 1, the above-described operation mode switch 11, menu / OK button 12, zoom / up / down arrow lever 13, left / right arrow button 14, Back (return) button 15, and display switching button 16 are provided. The shutter button 19 and the power switch 22 and an operation system controller 74 which is an interface for transmitting the operation contents of these switches, buttons and levers to the CPU 75 are provided.

また、撮影レンズ20を構成するものとして、フォーカスレンズ20a及びズームレンズ20bが設けられている。これらの各レンズは、モータとモータドライバからなるフォーカスレンズ駆動部51、ズームレンズ駆動部52によってステップ駆動され、光軸方向に移動可能な構成となっている。フォーカスレンズ駆動部51は、AF処理部62から出力されるフォーカス駆動量データに基づいてフォーカスレンズ20aをステップ駆動する。ズームレンズ駆動部52は、ズーム/上下矢印レバー13の操作量データに基づいてズームレンズ20bのステップ駆動を制御する。   Further, a focus lens 20a and a zoom lens 20b are provided as components of the photographing lens 20. Each of these lenses is step-driven by a focus lens driving unit 51 and a zoom lens driving unit 52 including a motor and a motor driver, and is configured to be movable in the optical axis direction. The focus lens driving unit 51 step-drives the focus lens 20 a based on the focus driving amount data output from the AF processing unit 62. The zoom lens driving unit 52 controls step driving of the zoom lens 20 b based on the operation amount data of the zoom / up / down arrow lever 13.

絞り54は、モータとモータドライバとからなる絞り駆動部55によって駆動される。この絞り駆動部55は、AE(自動露出)処理部63から出力される絞り値データに基づいて絞り54の絞り径の調整を行う。   The diaphragm 54 is driven by a diaphragm driving unit 55 including a motor and a motor driver. The aperture driving unit 55 adjusts the aperture diameter of the aperture 54 based on aperture value data output from the AE (automatic exposure) processing unit 63.

シャッタ56は、メカニカルシャッタであり、モータとモータドライバとからなるシャッタ駆動部57によって駆動される。シャッタ駆動部57は、シャッタボタン19の押下により発生する信号と、AE処理部63から出力されるシャッタ速度データとに応じてシャッタ56の開閉の制御を行う。   The shutter 56 is a mechanical shutter and is driven by a shutter drive unit 57 including a motor and a motor driver. The shutter drive unit 57 controls the opening and closing of the shutter 56 according to a signal generated by pressing the shutter button 19 and the shutter speed data output from the AE processing unit 63.

上記光学系の後方には、撮影素子であるCCD58を有している。CCD58は、多数の受光素子がマトリクス状に配置されてなる光電面を有しており、光学系を通過した被写体光が光電面に結像され、光電変換される。光電面の前方には、各画素に光を集光させるためのマイクロレンズアレイ(不図示)と、RGB各色のフィルタが規則的に配列されてなるカラーフィルタアレイ(不図示)とが配置されている。   At the back of the optical system, there is a CCD 58 that is a photographing element. The CCD 58 has a photoelectric surface in which a large number of light receiving elements are arranged in a matrix, and subject light that has passed through the optical system is imaged on the photoelectric surface and subjected to photoelectric conversion. In front of the photocathode, a microlens array (not shown) for condensing light on each pixel and a color filter array (not shown) in which RGB filters are regularly arranged are arranged. Yes.

CCD58は、CCD制御部59から供給される垂直転送クロック信号及び水平転送クロック信号に同期して、画素毎に蓄積された電荷を1ラインずつ読み出してシリアルなアナログ画像信号として出力する。各画素における電荷の蓄積時間、即ち露出時間は、CCD制御部59から与えられる電子シャッタ駆動信号によって決定される。そして上記光学系及びCCD58、CCD制御部59を含めて撮像部(撮像手段)100が構成される。   The CCD 58 reads out the charge accumulated for each pixel line by line in synchronization with the vertical transfer clock signal and horizontal transfer clock signal supplied from the CCD control unit 59 and outputs them as a serial analog image signal. The charge accumulation time in each pixel, that is, the exposure time, is determined by an electronic shutter drive signal given from the CCD controller 59. An imaging unit (imaging means) 100 is configured including the optical system, the CCD 58, and the CCD control unit 59.

CCD58が出力するアナログ画像信号は、アナログ信号処理部60に入力される。このアナログ信号処理部60は、アナログ画像信号のノイズ除去を行う相関2重サンプリング回路(CDS)と、アナログ画像信号のゲイン調整を行うオートゲインコントローラ(AGC)と、アナログ画像信号をデジタル画像データに変換するA/Dコンバータ(ADC)とからなる。そしてこのデジタル信号に変換されたデジタル画像データは、画素毎にRGBの濃度値を持つCCD−RAWデータである。   The analog image signal output from the CCD 58 is input to the analog signal processing unit 60. The analog signal processing unit 60 includes a correlated double sampling circuit (CDS) that removes noise from the analog image signal, an auto gain controller (AGC) that adjusts the gain of the analog image signal, and converts the analog image signal into digital image data. It comprises an A / D converter (ADC) for conversion. The digital image data converted into the digital signal is CCD-RAW data having RGB density values for each pixel.

タイミングジェネレータ72は、タイミング信号を発生させるものであり、このタイミング信号がシャッタ駆動部57、CCD制御部59、アナログ信号処理部60に入力されて、シャッタボタン19の操作と、シャッタ56の開閉、CCD58の電荷取り込み、アナログ信号処理60の処理の同期が取られる。フラッシュ制御部73は、フラッシュ24の発光動作を制御する。   The timing generator 72 generates a timing signal. The timing signal is input to the shutter drive unit 57, the CCD control unit 59, and the analog signal processing unit 60, and the operation of the shutter button 19 and the opening / closing of the shutter 56 are performed. The charge capturing of the CCD 58 and the processing of the analog signal processing 60 are synchronized. The flash control unit 73 controls the light emission operation of the flash 24.

画像入力コントローラ61は、上記アナログ信号処理部60から入力されたCCD−RAWデータをフレームメモリ66に書き込む。このフレームメモリ66は、画像データに対して後述の各種デジタル画像処理(信号処理)を行う際に使用する作業用メモリであり、例えば、一定周期のバスクロック信号に同期してデータ転送を行うSDRAM(Synchronous Dynamic Random Access Memory)が使用される。   The image input controller 61 writes the CCD-RAW data input from the analog signal processing unit 60 in the frame memory 66. The frame memory 66 is a working memory used when various digital image processing (signal processing) described later is performed on image data. For example, an SDRAM that performs data transfer in synchronization with a bus clock signal having a certain period. (Synchronous Dynamic Random Access Memory) is used.

表示制御部71は、フレームメモリ66に格納された画像データをスルー画像として液晶モニタ18に表示させるためのものであり、例えば、輝度(Y)信号と色(C)信号を一緒にして1つの信号としたコンポジット信号に変換して、液晶モニタ18に出力する。スルー画像は、撮影モードが選択されている間、所定時間間隔で取得されて液晶モニタ18に表示される。また、表示制御部71は、外部記録メディア70に記憶され、メディア制御部67によって読み出された画像ファイルに含まれる画像データに基づいた画像を液晶モニタ18に表示させる。   The display control unit 71 is for displaying the image data stored in the frame memory 66 on the liquid crystal monitor 18 as a through image. For example, the display control unit 71 combines a luminance (Y) signal and a color (C) signal together. The signal is converted into a composite signal and output to the liquid crystal monitor 18. Through images are acquired at predetermined time intervals and displayed on the liquid crystal monitor 18 while the shooting mode is selected. In addition, the display control unit 71 causes the liquid crystal monitor 18 to display an image based on the image data stored in the external recording medium 70 and read out by the media control unit 67.

顔検出部(対象物検出手段)69は、フレームメモリ68に格納された画像データつまりスルー画像から人物の顔を検出する。具体的には、顔に含まれる顔の特徴を有する領域(例えば肌色を有する、目を有する、顔の形状を有する等)を顔領域として検出するものであり、両目画像データのマッチングにより顔を検出してもよいし、目及び口の位置関係などから顔を検出してもよいし、顔の輪郭の検出、顔の肌に相当する色情報の検出等によって顔領域を特定するようにしてもよいし、公知の技術を使用することができる。   A face detection unit (object detection means) 69 detects a human face from image data stored in the frame memory 68, that is, a through image. Specifically, an area having facial features included in the face (for example, having a skin color, having eyes, or having a face shape) is detected as a face area, and the face is detected by matching both-eye image data. The face may be detected from the positional relationship between eyes and mouth, or the face area may be specified by detecting the outline of the face, detecting color information corresponding to the skin of the face, etc. Alternatively, a known technique can be used.

なおスルー画像において顔検出部69により顔が検出されると、スルー画像上に検出された顔を囲む顔検出枠Kが表示される(図6参照)。また顔検出部69は、例えば図示しない顔検出ボタンによって顔検出のON/OFFを設定するようにしてもよいし、メニュー/OKボタン12等によって顔検出のON/OFFを選択するようにしてもよいし、適宜変更可能である。また肖像権保護モードが選択されたときには顔検出はONに設定される。   When a face is detected by the face detection unit 69 in the through image, a face detection frame K surrounding the detected face is displayed on the through image (see FIG. 6). Further, the face detection unit 69 may set face detection ON / OFF using a face detection button (not shown), for example, or may select face detection ON / OFF using the menu / OK button 12 or the like. It can be changed as appropriate. When the portrait right protection mode is selected, face detection is set to ON.

本実施形態では、人物の顔を検出するものとして以下説明するが、特別な建物等、別の対象物を検出するようにしてもよい。   In the present embodiment, the following description will be made assuming that a person's face is detected. However, another object such as a special building may be detected.

顔判断部(被写体判断手段)80は、顔検出部69により検出された1つ以上の顔に対して、それぞれ有効顔(有効被写体)か無効顔(無効被写体)かを判断する。つまり顔検出部69により検出された顔が、撮影者が所望する被写体であるか否かを判断する。このとき本実施形態では該判断は、顔の大きさ、位置、変化量、合焦評価値の情報に基づいて行うものとする。なお本発明はこれに限られるものではなく、例えば上記各種情報の一つのみに基づいて前記判断をしてもよいし、上記各種情報からいくつかを選択し、該選択された情報に基づいて前記判断をしてもよい。また上記各種情報とは別の情報をさらに加えて前記判断をしてもよいし、適宜変更可能である。なおこの顔判断部80による前記判断については後で詳細に説明する。   The face determination unit (subject determination unit) 80 determines whether each of the one or more faces detected by the face detection unit 69 is an effective face (effective subject) or an invalid face (invalid subject). That is, it is determined whether or not the face detected by the face detection unit 69 is a subject desired by the photographer. At this time, in this embodiment, the determination is made based on information on the size, position, change amount, and focus evaluation value of the face. The present invention is not limited to this. For example, the determination may be made based on only one of the various types of information, or some of the various types of information may be selected, and the selected information may be used based on the selected information. The determination may be made. Further, the determination may be made by adding information different from the above-mentioned various information, and can be changed as appropriate. The determination by the face determination unit 80 will be described in detail later.

有効顔変更部(有効被写体変更手段)81は、顔判断部80により有効顔と判断された顔の数を変更するものであり、該有効顔の数が、例えばユーザによってメニュー/OKボタン12、ズーム/上下矢印レバー13、左右矢印ボタン14等を操作することにより入力されて任意に設定された顔の数よりも多いときに、上記各種情報の優先度の低いものの順に有効顔から無効顔に繰り下げ、任意に設定された顔の数よりも少ないときに、上記各種情報の優先度の高いものの順に無効顔から有効顔に繰り上げる。なおこの優先度については後で詳細に説明する。   The effective face changing unit (effective subject changing unit) 81 changes the number of faces determined to be effective faces by the face determining unit 80, and the number of effective faces is determined by the user, for example, the menu / OK button 12, When the number of faces is arbitrarily set by operating the zoom / up / down arrow lever 13, left / right arrow button 14, etc., the valid face is changed to the invalid face in descending order of priority of the various information. When the number of faces is less than the number of arbitrarily set faces, the invalid face is moved up from the invalid face to the effective face in the order of higher priority of the various information. This priority will be described later in detail.

肖像権保護部(肖像権保護手段)82は、顔判断部80により無効顔であると判断された顔に対して、肖像権を保護するものである。具体的には無効顔に対してモザイク処理、ぼかし処理又はトリミング処理を施したり、無効顔があるときに警告したり、無効顔が含まれる画像データの印刷を不可能にしたりするものがあり、このような複数種類の肖像権保護部82を備えてもよいし、1つの種類の肖像権保護部82を備えてもよい。なお肖像権保護部82については後で詳細に説明する。   The portrait right protection unit (portrait right protection means) 82 protects the portrait right for the face determined to be an invalid face by the face determination unit 80. Specifically, there are things that perform mosaic processing, blurring processing or trimming processing on invalid faces, warn when there are invalid faces, or make it impossible to print image data containing invalid faces, A plurality of types of portrait right protection units 82 may be provided, or one type of portrait right protection unit 82 may be provided. The portrait right protection unit 82 will be described in detail later.

AF処理部62は、画像データに基づいて焦点位置を検出して合焦設定値(フォーカス駆動量)を決定し、フォーカス駆動量データを出力する(AF処理)。焦点位置の検出方式としては、例えば、ピントが合った状態では画像の合焦評価値(コントラスト値)が高くなるという特徴を利用して合焦位置を検出するパッシブ方式が適用される。   The AF processing unit 62 detects a focus position based on the image data, determines a focus setting value (focus drive amount), and outputs focus drive amount data (AF processing). As a focus position detection method, for example, a passive method is used in which a focus position is detected by using a feature that an in-focus evaluation value (contrast value) of an image increases in a focused state.

AE処理部63は、画像データに基づいて被写体輝度(測光値)を測定し、測定した被写体輝度に基づいて絞り値及びシャッタスピード等の露出設定値を決定し、絞り値データ及びシャッタスピードデータを出力する(AE処理)。   The AE processing unit 63 measures subject luminance (photometric value) based on the image data, determines an exposure setting value such as an aperture value and shutter speed based on the measured subject luminance, and obtains the aperture value data and shutter speed data. Output (AE processing).

AWB処理部64は、撮像時のホワイトバランスを自動調整する(AWB処理)。なお、AWB処理部64は、撮像前でも、本撮影後でもホワイトバランスの調整を行うことができる。   The AWB processing unit 64 automatically adjusts the white balance at the time of imaging (AWB processing). Note that the AWB processing unit 64 can adjust the white balance before and after imaging.

画像処理部(画像処理手段)68は、本画像の画像データに対してガンマ補正処理、輪郭強調(シャープネス)処理、コントラスト処理、ノイズ低減処理等の画質補正処理を施すと共に、CCD−RAWデータを輝度信号であるYデータと、青色色差信号であるCbデータ及び赤色色差信号であるCrデータとからなるYCデータに変換するYC処理を行う。   An image processing unit (image processing means) 68 performs gamma correction processing, contour enhancement (sharpness) processing, contrast processing, noise reduction processing, and other image quality correction processing on the image data of the main image, and converts the CCD-RAW data. YC processing is performed for conversion into YC data composed of Y data that is a luminance signal, Cb data that is a blue color difference signal, and Cr data that is a red color difference signal.

なお本画像とは、撮影者によって撮影指示がなされた時、例えばシャッタボタン19が全押し操作された時にCCD58から取り込まれ、アナログ信号処理部60、画像入力コントローラ61経由でフレームメモリ66に格納された画像データによる画像であり、この本画像を取得することを本撮影という。本画像の画素数の上限はCCD58の画素数によって決定されるが、例えば、撮影者が設定可能な画質設定(ファイン、ノーマル等の設定)により、記録画素数を変更することができる。一方、スルー画像等の画素数は本画像より少なくてもよく、例えば、本画像の1/16程度の画素数で取り込まれてもよい。   The main image is taken in from the CCD 58 when a photographing instruction is given by the photographer, for example, when the shutter button 19 is fully pressed, and stored in the frame memory 66 via the analog signal processing unit 60 and the image input controller 61. Acquiring the actual image is referred to as actual photographing. The upper limit of the number of pixels of the main image is determined by the number of pixels of the CCD 58. For example, the number of recorded pixels can be changed by image quality settings (settings such as fine and normal) that can be set by the photographer. On the other hand, the number of pixels of the through image or the like may be smaller than that of the main image.

圧縮/伸長処理部65は、画像処理部68によって画質補正等の処理が行われた本画像の画像データに対して、例えばJPEG等の圧縮形式で圧縮処理を行って、画像ファイルを生成する。この画像ファイルには、Exif形式等に基づいて、撮影日時や、肖像権保護モードで撮影された画像であるか等の付帯情報が格納されたタグが付加される。またこの圧縮/伸長処理部65は、再生モードにおいては外部記録メディア70から圧縮された画像ファイルを読み出し、伸長処理を行う。伸長後の画像データは表示制御部71に出力され、表示制御部71は画像データに基づいた画像を液晶モニタ18に表示する。   The compression / decompression processing unit 65 performs compression processing, for example, in a compression format such as JPEG on the image data of the main image that has been subjected to processing such as image quality correction by the image processing unit 68, and generates an image file. Based on the Exif format or the like, a tag that stores additional information such as the shooting date and time and whether the image was shot in the portrait right protection mode is added to the image file. In the playback mode, the compression / decompression processing unit 65 reads the compressed image file from the external recording medium 70 and performs decompression processing. The decompressed image data is output to the display control unit 71, and the display control unit 71 displays an image based on the image data on the liquid crystal monitor 18.

メディア制御部67は、図2におけるメディアスロット26に相当し、外部記録メディア70に記憶された画像ファイル等の読み出し、又は画像ファイルの書き込みを行う。   The media control unit 67 corresponds to the media slot 26 in FIG. 2, and reads an image file or the like stored in the external recording medium 70 or writes an image file.

内部メモリ(記憶手段)82は、デジタルカメラ1において設定される各種定数、及び、CPU75が実行するプログラム等を格納すると共にシャッタボタン19が半押し及び全押しされたときに顔検出枠Kに関する各種情報が格納された顔検出タグを記憶する。なおこのとき各種情報は、顔検出枠Kの位置、大きさ(面積)及び合焦評価値等を含むものとする。ここで合焦評価値は、顔検出枠Kの内部領域における画像データをフィルタリング処理してその高周波成分を求め、該高周波成分の絶対値を積分した値とする。また顔検出枠Kの大きさ、つまり内部領域の面積は、例えば画素数に基づいて算出される。なお位置の算出方法については後で詳細に説明する。   The internal memory (storage means) 82 stores various constants set in the digital camera 1, programs executed by the CPU 75, and various types of face detection frames K when the shutter button 19 is half-pressed and fully pressed. The face detection tag in which information is stored is stored. At this time, the various information includes the position, size (area), focus evaluation value, and the like of the face detection frame K. Here, the focus evaluation value is a value obtained by filtering the image data in the inner region of the face detection frame K to obtain a high frequency component and integrating the absolute value of the high frequency component. Further, the size of the face detection frame K, that is, the area of the internal region is calculated based on the number of pixels, for example. The position calculation method will be described later in detail.

CPU75は、各種ボタン、レバー、スイッチの操作や各機能ブロックからの信号に応じて、デジタルカメラ1の本体各部を制御する。なお上記肖像権保護部82が複数種類備えられている場合には、そのうちの1つを選択する選択部(選択手段)としても機能する。これは例えばズーム/上下矢印レバー13や左右ボタン14等をユーザが操作することにより使用したい肖像権保護部82を設定し、選択部としてのCPU75がどの肖像権保護部82が設定されているのか否かを判別することにより設定された肖像権保護部82を選択する。   The CPU 75 controls each part of the main body of the digital camera 1 in accordance with operations of various buttons, levers, switches, and signals from the respective function blocks. When a plurality of types of portrait right protection units 82 are provided, it also functions as a selection unit (selection unit) that selects one of them. For example, the portrait right protection unit 82 that the user wants to use is set by operating the zoom / up / down arrow lever 13 or the left / right button 14, and which portrait right protection unit 82 is set by the CPU 75 as the selection unit. By determining whether or not, the portrait right protection unit 82 set is selected.

またデータバス76は、画像入力コントローラ61、各種処理部62〜65、68、フレームメモリ66、各種制御部67、71、顔検出部69、顔判断部80、有効顔変更部81、肖像権保護部82、内部メモリ77及びCPU75に接続されており、このデータバス76を介して各種信号、データの送受信が行われる。   The data bus 76 includes an image input controller 61, various processing units 62 to 65, 68, a frame memory 66, various control units 67 and 71, a face detection unit 69, a face determination unit 80, an effective face change unit 81, and portrait right protection. The unit 82, the internal memory 77, and the CPU 75 are connected, and various signals and data are transmitted and received through the data bus 76.

次に、以上の構成のデジタルカメラ1において肖像権保護モードの撮影時に行われる処理について説明する。図4はデジタルカメラ1の撮影処理のフローチャート、図5は顔判断処理のフローチャート、図6は撮像画像の一例を示す図、図7は顔の位置情報に基づく有効性判断を説明する図、図8は撮像画像の別の一例を示す図である。   Next, a process performed at the time of photographing in the portrait right protection mode in the digital camera 1 having the above configuration will be described. 4 is a flowchart of a photographing process of the digital camera 1, FIG. 5 is a flowchart of a face determination process, FIG. 6 is a diagram illustrating an example of a captured image, and FIG. 7 is a diagram for explaining validity determination based on face position information. 8 is a diagram illustrating another example of a captured image.

デジタルカメラ1は、電源が入れられると図4Aに示す如く、被写体の撮像を開始して(ステップS1)、表示制御部71がスルー画像の表示制御を行う。スルー画像の表示とはフレームメモリ68に格納された画像データを液晶モニタ18に表示する処理であり、このスルー画像にて顔検出部69が常時顔の検出を行い、液晶モニタ18に検出された顔を囲む顔検出枠Kを表示する。   When the digital camera 1 is turned on, as shown in FIG. 4A, imaging of the subject is started (step S1), and the display control unit 71 performs display control of the through image. The display of the through image is a process of displaying the image data stored in the frame memory 68 on the liquid crystal monitor 18, and the face detection unit 69 always detects the face from the through image and is detected by the liquid crystal monitor 18. A face detection frame K surrounding the face is displayed.

次にCPU75は、シャッタボタン19が半押し(S1)されたか否かを判別する(ステップS2)。シャッタボタン19が半押しされていない場合(ステップS2;NO)には、CPU75はシャッタボタン19が半押しされるまでステップS2の処理を繰り返し行い、シャッタボタン19が半押し(S1)されている場合には(ステップS2;YES)、CPU75はS1時に顔検出部69により検出された顔の顔検出タグ(S1顔検出タグ)を取得して内部メモリ77に記憶する(ステップS3)。そしてAE処理部63及びAF処理部62がAE処理及びAF処理をそれぞれ行う(ステップS4)。   Next, the CPU 75 determines whether or not the shutter button 19 has been half-pressed (S1) (step S2). When the shutter button 19 is not half-pressed (step S2; NO), the CPU 75 repeats the process of step S2 until the shutter button 19 is half-pressed, and the shutter button 19 is half-pressed (S1). In this case (step S2; YES), the CPU 75 acquires the face detection tag (S1 face detection tag) of the face detected by the face detection unit 69 at S1 and stores it in the internal memory 77 (step S3). The AE processing unit 63 and the AF processing unit 62 perform AE processing and AF processing, respectively (step S4).

次にCPU75は、シャッタボタン19が全押し(S2)されたか否かを判別し(ステップS5)、シャッタボタン19が全押しされていない場合(ステップS5;NO)には、CPU75はシャッタボタン19の半押しが解除されたか否かを判別し(ステップS6)、半押しが解除されている場合(ステップS6;YES)には、ステップS2へ処理を移行する。シャッタボタン19が、半押しが解除されていない場合(ステップS6;NO)には、ステップS5へ処理を移行して、ステップS5以降の処理を繰り返し行う。   Next, the CPU 75 determines whether or not the shutter button 19 has been fully pressed (S2) (step S5). If the shutter button 19 has not been fully pressed (step S5; NO), the CPU 75 It is determined whether or not half-pressing is released (step S6). If half-pressing is released (step S6; YES), the process proceeds to step S2. If the half-press of the shutter button 19 is not released (step S6; NO), the process proceeds to step S5, and the processes after step S5 are repeated.

一方、ステップS5にてシャッタボタン19が全押し(S2)された場合(ステップS5;YES)には、CPU75がS2時に顔検出部69により検出された顔の顔検出タグ(S2顔検出タグ)を取得して内部メモリ77に記憶すると共に(ステップS7)、撮像部100が被写体を本撮影する(ステップS8)。このとき本撮影により取得された本画像に対して画像処理部68が画像処理を施してもよい。   On the other hand, when the shutter button 19 is fully pressed (S2) in step S5 (step S5; YES), the CPU 75 detects the face detection tag (S2 face detection tag) of the face detected by the face detection unit 69 at S2. Is acquired and stored in the internal memory 77 (step S7), and the imaging unit 100 takes a real image of the subject (step S8). At this time, the image processing unit 68 may perform image processing on the main image acquired by the main photographing.

そして次に、図4Bに示す如く、顔判断部80が、S2時に顔検出部69により検出された顔が有効顔か無効顔かを判断する顔判断処理を行う(ステップS9)。   Then, as shown in FIG. 4B, the face determination unit 80 performs a face determination process for determining whether the face detected by the face detection unit 69 at S2 is an effective face or an invalid face (step S9).

顔判断処理は、図5Aに示す如く、先ずS2顔検出タグの数(m)つまり顔検出部69によって検出された顔の数をカウントし(ステップS20)、それぞれS2顔検出タグから顔検出枠Kの面積を算出する(ステップS21)。なお本実施形態では、顔の大きさとして、顔検出枠K内の面積を算出するが、本発明はこれに限られるものではなく、例えば顔の輪郭の内側を面積としてもよいし、適宜変更可能である。そして算出した面積に基づいて、S2顔検出タグを面積の大きいものから順に、ステップS23以降の処理へ送る(ステップS22)。   In the face determination process, as shown in FIG. 5A, first, the number of S2 face detection tags (m), that is, the number of faces detected by the face detection unit 69 is counted (step S20). The area of K is calculated (step S21). In the present embodiment, the area within the face detection frame K is calculated as the face size. However, the present invention is not limited to this, and for example, the area inside the face outline may be used as an area, or may be changed as appropriate. Is possible. Then, based on the calculated area, the S2 face detection tags are sent to the processes after step S23 in order from the largest area (step S22).

先ずnを初期化し(ステップS23)、次にnにn+1を代入する(ステップ24)。次にnがmよりも大きい(n>m)か否かを判別し(ステップS25)、nがm以下である場合(ステップS25:n>m;NO)には、さらにnが1である(n=1)か否かを判別する(ステップS26)。   First, n is initialized (step S23), and then n + 1 is substituted for n (step 24). Next, it is determined whether n is larger than m (n> m) (step S25). If n is equal to or smaller than m (step S25: n> m; NO), n is 1 in addition. It is determined whether or not (n = 1) (step S26).

そしてnが1である場合(ステップS26:n=1;YES)には、図5Bに示す如く、ステップS22の処理によって最初に送られてきた顔、つまり顔検出部69によって検出された顔のうち最も顔検出枠Kの面積の大きい顔(図6又は図8中、顔検出枠K1内の顔)であるため、ステップS32の顔の大きさ情報に基づく有効性の判断を行わずに、顔の位置が有効であるか否かを判断する(ステップS27)。   If n is 1 (step S26: n = 1; YES), as shown in FIG. 5B, the face first sent by the process of step S22, that is, the face detected by the face detection unit 69 is detected. Among them, since the face has the largest area of the face detection frame K (the face in the face detection frame K1 in FIG. 6 or FIG. 8), the effectiveness determination based on the face size information in step S32 is not performed. It is determined whether or not the face position is valid (step S27).

顔の位置の有効性を判断する方法としては、通常、撮影者が所望する被写体は撮影視野の中央に位置することが多いので、先ずデジタルカメラ1の有効画素数内で、顔が検出されても、検出された顔を有効顔としない端辺領域を決定する。本実施形態においては、例えばデジタルカメラ1の有効画素数を3072×2304ピクセルとし、端辺領域として上下左右の各端辺から例えば300ピクセルの領域を設定する。   As a method for determining the effectiveness of the position of the face, the subject desired by the photographer is usually located at the center of the field of view, so that the face is first detected within the number of effective pixels of the digital camera 1. Also, an edge region that does not make the detected face an effective face is determined. In the present embodiment, for example, the number of effective pixels of the digital camera 1 is set to 3072 × 2304 pixels, and an area of, for example, 300 pixels is set as the edge area from each of the upper, lower, left, and right edges.

すると端辺領域ではない領域つまり顔が検出されたときに検出された顔が有効顔となる有効領域は、図7に示す如く、画像の左上を原点に設定する場合には、有効領域の左上の座標点T300r及び右下の座標点T300sは下記式(1)(2)のように算出される。
Then, the effective area in which the detected face becomes an effective face when the face is detected is an area that is not the edge area, as shown in FIG. 7, when the upper left of the image is set as the origin, the upper left of the effective area The coordinate point T300r and the lower right coordinate point T300s are calculated as in the following equations (1) and (2).

一方、S2時に撮像された画像データにおいて、図6に示す如く、顔検出部69により例えば4つの顔が検出されると、検出された顔をそれぞれ囲む顔検出枠K1〜K4が表示される。このとき各顔検出枠K1〜K4の左上Rの座標と右下Lの座標を例えば、
On the other hand, in the image data captured at S2, as shown in FIG. 6, when the face detection unit 69 detects, for example, four faces, face detection frames K1 to K4 that respectively surround the detected faces are displayed. At this time, the coordinates of the upper left R and the lower right L of each of the face detection frames K1 to K4 are, for example,

とすると、各顔検出枠K1〜K4の中心点K1s〜K4sは下記式(3)〜(6)により算出されて、座標上では図7に示すように位置する。なおこの中心点Ksは、S1時及びS2時に顔検出枠Kの位置情報として顔検出タグに格納され内部メモリ77に記憶される。
Then, the center points K1s to K4s of the face detection frames K1 to K4 are calculated by the following formulas (3) to (6) and positioned on the coordinates as shown in FIG. The center point Ks is stored in the face detection tag as position information of the face detection frame K and stored in the internal memory 77 at S1 and S2.

これにより、K1s、K2s、K3sの座標は、上記有効領域内であるが、K4sの座標は端辺領域内であることがわかり、図5AのステップS22にて面積の大きい順に送られてくるS2顔検出タグが顔検出枠K1、K2、K3である場合には、この枠内の顔の位置はそれぞれ端辺領域の外に位置するとして有効とし、顔検出枠K4である場合には、この枠内の顔の位置は端辺領域内に位置するとして無効と判断する。   As a result, the coordinates of K1s, K2s, and K3s are within the effective area, but the coordinates of K4s are within the edge area, and are sent in the descending order of area in step S22 of FIG. 5A. When the face detection tag is the face detection frame K1, K2, K3, the position of the face within this frame is valid as being located outside the edge region, and when the face detection tag is the face detection frame K4, The face position in the frame is determined to be invalid because it is located in the edge region.

そして顔の位置が有効ではないと判断された場合(ステップS27;NO)には、この顔は無効顔であると判断し、この顔の顔検出タグに無効顔のタグを追加する(ステップS31)。一方、顔の位置が有効であると判断された場合(ステップS27;YES)には、次に顔の変化量が有効であるか否かを判断する(ステップS28)。   If it is determined that the position of the face is not valid (step S27; NO), this face is determined to be an invalid face, and an invalid face tag is added to the face detection tag for this face (step S31). ). On the other hand, if it is determined that the position of the face is valid (step S27; YES), it is next determined whether or not the amount of change in the face is valid (step S28).

顔の変化量の有効性を判断する方法としては、通常、撮影対象となる被写体は撮影されるのを待機しているので動かないことが多いため、顔の変化量が所定の閾値よりも大きい場合には、その顔は例えば偶然通りかかった人や意図しないで撮影視野内に入ってしまった、撮影者が所望しない人等の顔である可能性が高いとして無効と判断し、顔の変化量が所定の閾値よりも小さい場合には、撮影されるのを動かないで待機している、撮影者が所望する人である可能性が高いとして有効と判断する。   As a method for determining the effectiveness of the amount of change in the face, the subject to be photographed is usually waiting for being photographed and often does not move, so the amount of change in the face is larger than a predetermined threshold value. In such a case, the face is determined to be invalid, for example, because it is highly likely that the face of a person who has accidentally passed by or entered the field of view unintentionally, or a person that the photographer does not want, etc. Is smaller than a predetermined threshold value, it is determined that the photographer is likely to be a person who wants to be photographed and does not move, and is determined to be effective.

なお顔の変化量はS1時及びS2時に算出され内部メモリ77にそれぞれ記憶された顔の中心点Ks1、Ks2の差異Δ(R1、R2)とすることができ、この差異Δ(R1、R2)のR1とR2がそれぞれ例えば閾値10以内である場合にその顔の変化量を有効と判断する。この顔の変化量の情報は、顔検出タグに追加して記憶させる。   Note that the amount of change of the face can be the difference Δ (R1, R2) between the face center points Ks1, Ks2 calculated at S1 and S2 and stored in the internal memory 77, and this difference Δ (R1, R2). When R1 and R2 are within the threshold value 10, for example, it is determined that the amount of change in the face is valid. Information on the amount of change in the face is added to the face detection tag and stored.

そして顔の変化量が有効ではないと判断された場合(ステップS28;NO)には、この顔は無効顔であると判断し、この顔の顔検出タグに無効顔のタグを追加する(ステップS31)。一方、顔の変化量が有効であると判断された場合(ステップS28;YES)には、次に顔の合焦評価値が有効であるか否かを判断する(ステップS29)。   If it is determined that the amount of change in the face is not valid (step S28; NO), it is determined that this face is an invalid face, and an invalid face tag is added to the face detection tag for this face (step S28). S31). On the other hand, when it is determined that the amount of change in the face is valid (step S28; YES), it is next determined whether or not the focus evaluation value of the face is valid (step S29).

顔の合焦評価値の有効性を判断する方法としては、通常、撮影者は所望する被写体にピントを合わせるので、ピントの合った被写体は合焦評価値が高くなる。よってS2時に算出され内部メモリ77に記憶された合焦評価値が所定の閾値(例えば1)以上である場合には、その顔がピントの合った、撮影者の所望する顔である可能性が高いとして有効と判断し、合焦評価値が所定の閾値(例えば1)よりも小さい場合には、その顔がいわゆるピンボケで、撮影者の所望する顔である可能性が低いとして無効と判断する。   As a method for determining the effectiveness of the facial focus evaluation value, the photographer usually focuses on the desired subject, and thus the focused subject has a higher focus evaluation value. Therefore, when the focus evaluation value calculated at S2 and stored in the internal memory 77 is a predetermined threshold value (for example, 1) or more, there is a possibility that the face is in focus and desired by the photographer. If the focus evaluation value is smaller than a predetermined threshold (for example, 1), it is determined that the face is so-called out-of-focus and the possibility that the photographer wants the face is low. .

そして顔の合焦評価値が有効ではないと判断された場合(ステップS29;NO)には、この顔は無効顔であると判断し、この顔の顔検出タグに無効顔のタグを追加する(ステップS31)。一方、顔の合焦評価値が有効であると判断された場合(ステップS29;YES)には、この顔は有効顔であると判断し、この顔の顔検出タグに有効顔のタグを追加する(ステップS30)。   If it is determined that the focus evaluation value of the face is not valid (step S29; NO), this face is determined to be an invalid face, and an invalid face tag is added to the face detection tag for this face. (Step S31). On the other hand, when it is determined that the focus evaluation value of the face is valid (step S29; YES), this face is determined to be an effective face, and an effective face tag is added to the face detection tag of this face. (Step S30).

そしてステップS30又はステップS31により、顔が有効顔であるか無効顔であるかが判断されると、図5Aに示す如く、ステップS24へ処理を移行してnに1を加え(ステップS24)、nがmよりも大きい(n>m)か否かを判別し(ステップS26)、nがm以下である場合(ステップS25:n>m;NO)には、さらにnが1である(n=1)か否かを判別する(ステップS26)。   If it is determined in step S30 or S31 whether the face is an effective face or an invalid face, as shown in FIG. 5A, the process proceeds to step S24 and 1 is added to n (step S24). It is determined whether n is larger than m (n> m) (step S26). If n is equal to or smaller than m (step S25: n> m; NO), n is further 1 (n = 1) or not (step S26).

ここで今回の判断の対象となる顔は、ステップS22の処理によって2番目以降に送られてきた顔、つまり顔検出部69によって検出された顔のうち最も顔検出枠Kの面積の大きい顔(図6又は図8中、顔検出枠K1内の顔)以外の顔(図6又は図8中、例えば2番目は顔検出枠K2内の顔、三番目は顔検出枠K3内の顔)であるため、ステップS32にて顔の大きさが有効であるか否かを判断する(ステップS32)。   Here, the face to be determined this time is the face sent in the second and subsequent steps in the process of step S22, that is, the face with the largest area of the face detection frame K among the faces detected by the face detection unit 69 ( In FIG. 6 or FIG. 8, a face other than the face in the face detection frame K1 (in FIG. 6 or FIG. 8, for example, the second is the face in the face detection frame K2, and the third is the face in the face detection frame K3). Therefore, it is determined in step S32 whether the face size is valid (step S32).

顔の大きさの有効性を判断する方法としては、通常、撮影者が所望する被写体は撮影視野内で大きな領域を占めることが多い。よってS2時に算出され内部メモリ77に記憶された顔の大きさが所定の閾値よりも大きい場合には撮影者が所望する顔である可能性が高いとして有効と判断し、顔の大きさが所定の閾値よりも小さい場合には撮影者が所望する顔である可能性が低いとして無効と判断する。   As a method for determining the effectiveness of the size of the face, the subject desired by the photographer usually occupies a large area in the field of view. Therefore, when the face size calculated at S2 and stored in the internal memory 77 is larger than a predetermined threshold, it is determined that the photographer is likely to be the desired face, and the face size is determined to be valid. If the threshold value is smaller than the threshold value, it is determined that the face is not desired by the photographer and is invalid.

なお所定の閾値は、例えば図8に示す如く、最も面積の大きい顔検出枠K1の面積の1/2に設定することができる。つまり顔検出枠K1に対して判断対象となる顔の顔検出枠Kが面積比で1/2以上であれば有効と判断することができる。この場合、図8において顔検出枠K2内の顔の大きさは、面積K2/面積K1>0.5となるため有効と判断し、顔検出枠K3内の顔の大きさも、面積K3/面積K1>0.5となるため有効と判断する。また顔検出枠K4内の顔の大きさは、面積K4/面積K1<0.5となるため無効と判断する。   The predetermined threshold value can be set to ½ of the area of the face detection frame K1 having the largest area, for example, as shown in FIG. That is, if the face detection frame K of the face to be determined with respect to the face detection frame K1 is 1/2 or more in area ratio, it can be determined to be effective. In this case, the size of the face in the face detection frame K2 in FIG. 8 is determined to be effective because area K2 / area K1> 0.5, and the size of the face in the face detection frame K3 is also determined as area K3 / area. Since K1> 0.5, it is determined to be effective. The size of the face in the face detection frame K4 is determined to be invalid because area K4 / area K1 <0.5.

そして顔の大きさが有効であると判断された場合(ステップS32;YES)には、ステップS27へ処理を移行して、以降の処理を繰り返し行う。一方、顔の大きさが有効ではないと判断された場合(ステップS32;NO)には、この顔は無効顔であると判断し、この顔の顔検出タグに無効顔のタグを追加する(ステップS31)。   If it is determined that the face size is valid (step S32; YES), the process proceeds to step S27, and the subsequent processes are repeated. On the other hand, if it is determined that the face size is not valid (step S32; NO), this face is determined to be an invalid face, and an invalid face tag is added to the face detection tag for this face ( Step S31).

そしてステップS30又はステップS31により、判断対象の顔が有効顔であるか無効顔であるかが判断されると、図5Aに示す如く、ステップS24へ処理を移行してnに1を加え(ステップS24)、nがmよりも大きい(n>m)か否かを判別し(ステップS25)、nがS2顔検出タグの数(m)よりも大きくなる(ステップS25;NO)まで、つまり顔検出部69によって検出された顔全てに対して有効顔であるか無効顔であるかの判断が終了するまでステップS26以降の処理を繰り返して行う。   If it is determined in step S30 or S31 whether the face to be determined is an effective face or an invalid face, the process proceeds to step S24 and 1 is added to n as shown in FIG. S24) It is determined whether n is larger than m (n> m) (step S25), and until n becomes larger than the number (m) of S2 face detection tags (step S25; NO), that is, the face The processes from step S26 are repeated until the determination of whether the face is an effective face or an invalid face is completed for all the faces detected by the detection unit 69.

そしてnがS2顔検出タグの数(m)よりも大きくなる(ステップS25;NO)、つまり顔検出部69によって検出された顔全てに対して有効顔であるか無効顔であるかの判断が終了すると、顔判断部80による顔判断処理は終了し、CPU75は図4Bに示す如く、処理をステップS10へ移行して、有効顔変更部81が有効顔変更処理を行う(ステップS10)。   Then, n becomes larger than the number (m) of the S2 face detection tags (step S25; NO), that is, whether all the faces detected by the face detection unit 69 are valid faces or invalid faces is determined. When completed, the face determination process by the face determination unit 80 ends, and as shown in FIG. 4B, the CPU 75 moves the process to step S10, and the effective face change unit 81 performs the effective face change process (step S10).

なお本実施形態では、顔判断処理として、顔の大きさ、位置、変化量及び合焦評価値の全てに基づいて有効性を判断したが、本発明はこれに限られるものではなく、例えば顔の大きさ、位置、変化量及び合焦評価値から1つ以上を選択して判断してもよい。また例えば、図5BのステップS27の直前からステップS30の前の間に、顔検出枠K内の明るさや顔の鮮鋭度等に基づいた有効性の判断処理を追加してもよい。   In the present embodiment, as the face determination process, the effectiveness is determined based on all of the face size, position, change amount, and focus evaluation value. However, the present invention is not limited to this. One or more values may be selected from the size, position, change amount, and focus evaluation value. Further, for example, validity determination processing based on the brightness in the face detection frame K, the sharpness of the face, or the like may be added immediately before step S27 in FIG. 5B and before step S30.

顔検出枠K内の明るさの有効性判断は、顔検出枠K内のL*平均値を用いて行うことができる。計算方法としては、検出された各顔領域つまり顔検出枠K内のRGBの平均値よりXYZ値に変換し、XYZ値よりL*a*bに変換する。   The validity of the brightness in the face detection frame K can be determined using the L * average value in the face detection frame K. As a calculation method, an average value of RGB in each detected face area, that is, the face detection frame K is converted into an XYZ value, and an XYZ value is converted into L * a * b.

先ずデジタルRGB値よりリニアRGB値に変換する。なおsRGBを仮定したとき、デジタルRGB値に対しリニアRGB値は下記式(7)で示すことができる。
First, a digital RGB value is converted into a linear RGB value. When sRGB is assumed, the linear RGB value can be expressed by the following formula (7) with respect to the digital RGB value.

そして下記式(8)によってリニアRGB値からXYZ値に変換する。
Then, the linear RGB value is converted into the XYZ value by the following equation (8).

次にXYZ値からL*a*bに変換する。なおX,Y,ZはXYZ変換値であり、Xn,Yn,ZnはD65である。   Next, the XYZ value is converted into L * a * b. X, Y, and Z are XYZ conversion values, and Xn, Yn, and Zn are D65.

輝度リニア変換後に、XYZ変換をした後で、下記式(9)によってLabを算出する。
After luminance linear conversion and XYZ conversion, Lab is calculated by the following equation (9).

そして上記のようにして算出した各顔検出枠K内のL*平均値が、例えば40〜70の範囲内であるときに有効と判断する。   Then, when the L * average value in each face detection frame K calculated as described above is within a range of 40 to 70, for example, it is determined to be effective.

また顔の鮮鋭度の有効性の判断は、離散フーリエ変換を用いた画像の鮮鋭度の公知の評価方法を使用することができる。ここで図9(a)に撮像画像の周波数成分の分布を示す図、図9(b)に各空間周波数のパワースペクトルを濃淡画像として示す図を示す。   In addition, the effectiveness of the face sharpness can be determined using a known evaluation method for the sharpness of an image using discrete Fourier transform. Here, FIG. 9A shows the distribution of frequency components of the captured image, and FIG. 9B shows the power spectrum of each spatial frequency as a gray image.

先ず下記式(10)に示す離散フーリエ変換の式を用いて各周期の振幅を求める。
First, the amplitude of each period is obtained using the discrete Fourier transform formula shown in the following formula (10).

このとき得られる値はスペクトルと呼ばれ、振幅の絶対値の2乗で表された値をパワースペクトルと呼び、図9(a)に示す如く、実画像の周波数成分の分布を得ることができる。また図9(b)に示す如く、図9(a)の各空間周波数のパワースペクトルを濃淡画像で示すと、座標の中心付近は低周波を表し、中心から離れる程高周波を表す。   The value obtained at this time is called a spectrum, and the value represented by the square of the absolute value of the amplitude is called a power spectrum. As shown in FIG. 9A, the distribution of frequency components of the actual image can be obtained. . Further, as shown in FIG. 9B, when the power spectrum of each spatial frequency in FIG. 9A is represented by a grayscale image, the vicinity of the center of the coordinate represents a low frequency and the higher the distance from the center, the higher the frequency.

顔の鮮鋭度の判断は、顔検出されたパワースペクトルが、設定した周波数fkのパワースペクトルの値が例えば0.1以下の場合に顔の鮮鋭度が低いと判断し無効とする。   The determination of the face sharpness is invalidated when it is determined that the face sharpness is low when the face detected power spectrum has a power spectrum value of the set frequency fk of 0.1 or less, for example.

次に図4BのステップS10の有効顔変更処理について説明する。図10は有効顔変更処理のフローチャートである。有効顔変更処理は、図10に示す如く、例えばユーザにより入力された任意の数を顔の数(m)として設定する(ステップS40)。次に図4BのステップS9の顔判断処理により判断された有効顔の数(n)をカウントする(ステップS41)。   Next, the effective face changing process in step S10 of FIG. 4B will be described. FIG. 10 is a flowchart of the effective face changing process. In the effective face changing process, as shown in FIG. 10, for example, an arbitrary number input by the user is set as the number of faces (m) (step S40). Next, the number (n) of valid faces determined by the face determination process in step S9 of FIG. 4B is counted (step S41).

そして、任意の設定した顔の数(m)が有効顔の数(n)よりも大きいか否かを判別し(ステップS42)、大きい場合(ステップS42;YES)には、無効顔のタグが追加された顔検出タグを読み込んで(ステップS43)、読み込んだ顔検出タグの各種情報の優先度の高いものの順に有効顔に繰り上げて(ステップS44)、無効顔から有効顔へタグを変更する。   Then, it is determined whether or not the number of arbitrarily set faces (m) is larger than the number of effective faces (n) (step S42). If it is larger (step S42; YES), the invalid face tag is set. The added face detection tag is read (step S43), and the various information of the read face detection tag is moved up to the valid face in the descending order of priority (step S44), and the tag is changed from the invalid face to the valid face.

ここで各種情報の優先度は、顔の大きさ情報においては、通常、撮影者が所望する被写体は撮影視野内で大きな領域を占めることが多いので、例えば顔の大きさつまり顔検出枠K内の面積が大きいものの順に優先度が高いものとする。また顔の位置情報においては、通常、撮影者が所望する被写体は撮影視野の中央に位置することが多いので、例えば画像において中央に近い顔の順に優先度が高いものとする。   Here, the priority of various types of information is that, in the face size information, the subject desired by the photographer usually occupies a large area in the field of view of the image. It is assumed that the priority is higher in descending order of area. In the face position information, since the subject desired by the photographer is usually located at the center of the field of view, for example, it is assumed that the priority is higher in the order of the face closer to the center in the image.

また顔の変化量情報においては、通常、撮影対象となる被写体は撮影されるのを待機しているので動かないことが多い。従って例えは変化量が少ないものの順に優先度が高いものとする。また顔の合焦評価値においては、通常、撮影者は所望する被写体にピントを合わせるので、例えば合焦評価値の高いものの順に優先度が高いものとする。   Further, in the face change amount information, the subject to be photographed usually does not move because it is waiting to be photographed. Therefore, for example, it is assumed that the priority is in descending order of the change amount. In the focus evaluation value of the face, the photographer usually focuses on a desired subject. For example, the priority is set in descending order of the focus evaluation value.

一方、ステップS42にて任意の設定した顔の数(m)が有効顔の数(n)よりも小さい場合(ステップS42;NO)には、有効顔のタグが追加された顔検出タグを読み込んで(ステップS45)、読み込んだ顔検出タグの各種情報の優先度の低いものの順に無効顔に繰り下げて(ステップS46)、有効顔から無効顔へタグを変更する。   On the other hand, when the number of faces (m) arbitrarily set in step S42 is smaller than the number of effective faces (n) (step S42; NO), the face detection tag to which the valid face tag is added is read. (Step S45), the various information of the read face detection tag is moved down to the invalid face in the order of low priority (Step S46), and the tag is changed from the valid face to the invalid face.

なおステップS42にて、任意の設定した顔の数(m)が有効顔の数(n)と同じ数(m=n)である場合には、以降の処理を行わずに、CPU75が図4BのステップS11へ処理を以降する。このようにして有効顔変更部81が有効顔変更処理を行うことにより、有効顔の検出精度を上げることができる。   In step S42, when the arbitrarily set number of faces (m) is the same number (m = n) as the number of effective faces (n), the CPU 75 does not perform the subsequent processing, and FIG. The process is thereafter performed in step S11. In this way, the effective face changing unit 81 performs the effective face changing process, so that the detection accuracy of the effective face can be increased.

そして有効顔変更処理が終了すると、CPU75が、図4Bに示す如く、処理をステップS11へ移行し、CPU75が本画像上に無効顔があるか否かを判別する(ステップS11)。無効顔がないと判別された場合(ステップS11;NO)には、画像処理部68によって画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS13)。なおこのとき画像処理が施された本画像データに対してさらに圧縮/伸長処理部67によって圧縮処理が施されて画像ファイルが生成されてもよい。   When the effective face changing process is completed, the CPU 75 moves the process to step S11 as shown in FIG. 4B, and the CPU 75 determines whether or not there is an invalid face on the main image (step S11). If it is determined that there is no invalid face (step S11; NO), the main image that has been subjected to image processing by the image processing unit 68 is displayed on the monitor 18 via the display control unit 71, and the media Recording is performed on the external recording medium 70 via the control unit 69 (step S13). At this time, the compression / decompression processing unit 67 may further perform compression processing on the main image data subjected to image processing to generate an image file.

そしてCPU75は電源スイッチ22によってオフ操作がなされたか否かを判別し(ステップS14)、オフ操作がなされていたら(ステップS14;YES)、デジタルカメラ1の電源をオフし、処理を終了する。オフ操作がなされていなかったら(ステップS14;NO)、図4Aに示す如く、ステップS1へ処理を移行し、ステップS1以降の処理を繰り返す。   Then, the CPU 75 determines whether or not an off operation has been performed by the power switch 22 (step S14). If the off operation has been performed (step S14; YES), the power of the digital camera 1 is turned off, and the process ends. If an off operation has not been performed (step S14; NO), as shown in FIG. 4A, the process proceeds to step S1, and the processes after step S1 are repeated.

一方、ステップS11にて無効顔があると判別された場合(ステップS11;YES)には、肖像権保護部82が肖像権の保護処理を行う(ステップS12)。   On the other hand, when it is determined in step S11 that there is an invalid face (step S11; YES), the portrait right protection unit 82 performs portrait right protection processing (step S12).

肖像権保護処理としては、上述したように、無効顔に対してモザイク処理又はぼかし処理を行うことができる。   As the portrait right protection process, as described above, the mosaic process or the blur process can be performed on the invalid face.

モザイク処理は、下記式(11)によって複数画素の集合いわゆるセルにおけるRGB値を平均化することにより行う。なお下記式(11)においてnは平均化するセルにおける画素数を示す。
The mosaic processing is performed by averaging RGB values in a set of cells, so-called cells, according to the following equation (11). In the following formula (11), n represents the number of pixels in the cells to be averaged.

ここで図11(a)から(f)にモザイク処理が施された顔領域の画像の一例を示す。例えば図11に示す顔領域の画像の画素数が、200×200ピクセルである場合に、例えばn=1×1で平均化を行ってモザイク処理を施すと、図11(a)に示す如く、モザイク処理がされていない状態の画像となり、nの値が大きくなるにつれて図11(b)、(c)、(d)、(e)の順に示す如く、顔の詳細が確認し難い画像となる。そしてn=200×200で平均化を行ってモザイク処理を施すとセル内は均一な色になる。   Here, FIG. 11A to FIG. 11F show an example of an image of a face area on which mosaic processing has been performed. For example, when the number of pixels in the image of the face area shown in FIG. 11 is 200 × 200 pixels, for example, when averaging is performed with n = 1 × 1, mosaic processing is performed, as shown in FIG. The image is not mosaic-processed, and as the value of n increases, the face details become difficult to confirm as shown in FIGS. 11B, 11C, 11D, and 11E in this order. . When the averaging is performed with n = 200 × 200 and the mosaic processing is performed, the inside of the cell becomes a uniform color.

またぼかし処理は、下記式(12)のガウス関数を使用したぼかしフィルタによって行う公知の処理を使用することができる。
For the blurring process, a known process performed by a blurring filter using a Gaussian function of the following formula (12) can be used.

次に図12に肖像権保護部82によるモザイク又はぼかし処理のフローチャートを示す。肖像権保護部82は、図11に示す如く、先ず肖像権保護モードが設定されているか否かを判別し(ステップS51)、設定されている場合(ステップS51;YES)には、無効顔のタグを読み込んで(ステップS52)、無効顔つまり無効顔を含む顔検出枠K内部の画像領域に対して上述したモザイク処理又はぼかし処理を行う(ステップS53)。このときモザイク処理とぼかし処理とは、上述したように予め選択部としてのCPU75により選択された肖像権保護部82が施すことができる処理を行う。   Next, FIG. 12 shows a flowchart of the mosaic or blurring process by the portrait right protection unit 82. As shown in FIG. 11, the portrait right protection unit 82 first determines whether or not the portrait right protection mode is set (step S51). If the portrait right protection mode is set (step S51; YES), an invalid face is determined. The tag is read (step S52), and the above-described mosaic process or blurring process is performed on the image area inside the face detection frame K including the invalid face, that is, the invalid face (step S53). At this time, the mosaic processing and the blurring processing perform processing that can be performed by the portrait right protection unit 82 selected in advance by the CPU 75 as the selection unit as described above.

そして無効顔に対してモザイク処理又はぼかし処理が施されると、画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS54)。   When the invalid face is subjected to the mosaic process or the blur process, the main image subjected to the image process is displayed on the monitor 18 via the display control unit 71 and also via the media control unit 69. Recording is performed on the external recording medium 70 (step S54).

一方、ステップS51にて肖像権保護モードが設定されていない場合(ステップS51;NO)には、ステップS54に処理を移行して、画像処理部68による画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS54)。このようにして肖像権保護部82による肖像権保護処理としてのモザイク処理又はぼかし処理を行う。   On the other hand, when the portrait right protection mode is not set in step S51 (step S51; NO), the process proceeds to step S54, and the main image subjected to the image processing by the image processing unit 68 is displayed. Processing for displaying on the monitor 18 is performed via the control unit 71 and recording is performed on the external recording medium 70 via the media control unit 69 (step S54). In this way, the mosaic process or the blur process as the portrait right protection process by the portrait right protection unit 82 is performed.

これにより無効顔と判断された顔に対して個人を特定し難くすることができるので、無効顔と判断された人物のプライバシーや肖像権を保護することができる。   As a result, it is possible to make it difficult to identify an individual for a face determined to be an invalid face, and thus privacy and portrait rights of a person determined to be an invalid face can be protected.

なお本実施形態では、顔検出枠K内部の画像領域に対してモザイク処理又はぼかし処理を行うものとしたが、本発明はこれに限られるものではなく、例えば顔検出部69が顔に含まれる顔の特徴を有する領域(特異点)として目を検出するものである場合には、目の周辺部のみに上記処理を施すことができる。また顔検出部69が顔の輪郭を検出するものである場合には、顔の輪郭内部のみ、又は顔の輪郭内部以外の顔検出枠K内部全ての領域に上記処理を施すこともできる。   In the present embodiment, the mosaic process or the blur process is performed on the image area inside the face detection frame K. However, the present invention is not limited to this, and the face detection unit 69 is included in the face, for example. When an eye is detected as a region having a facial feature (singular point), the above processing can be performed only on the peripheral portion of the eye. When the face detection unit 69 detects the face outline, the above processing can be performed only on the inside of the face outline or on all the areas inside the face detection frame K other than the inside of the face outline.

また肖像権保護処理としては、上述したように、無効顔があるときに警告処理を行うことができる。ここで図13に肖像権保護部82による警告処理のフローチャートを示す。   As the portrait right protection process, as described above, a warning process can be performed when there is an invalid face. FIG. 13 shows a flowchart of warning processing by the portrait right protection unit 82.

肖像権保護部82は、図13に示す如く、先ず肖像権保護モードが設定されているか否かを判別し(ステップS61)、設定されている場合(ステップS61;YES)には、無効顔が撮影されたことを警告する(ステップS62)。警告手段としては、例えば液晶モニタ18に再撮影を促すエラーメッセージ等を表示させてもよいし、警告音を発してもよいし、音声にて前記エラーメッセージを伝達するようにしてもよいし、適宜変更することができる。   As shown in FIG. 13, the portrait right protection unit 82 first determines whether or not the portrait right protection mode is set (step S61). If the portrait right protection mode is set (step S61; YES), an invalid face is detected. A warning is given that the image has been taken (step S62). As warning means, for example, an error message prompting re-shooting may be displayed on the liquid crystal monitor 18, a warning sound may be generated, or the error message may be transmitted by voice, It can be changed as appropriate.

こうすることにより、例えば撮影時に通りすがりの人物が撮影され、この人物の顔が無効顔だと判断された場合には、再度撮影をするように警告されるので、この人物の撮影された画像が液晶モニタ18に表示されたり、記録メディア70に記録されたりすることを防止できる。   In this way, for example, a passing person is photographed at the time of photographing, and if it is determined that the person's face is an invalid face, a warning is given to shoot again, so that the photographed image of this person is displayed. Displaying on the liquid crystal monitor 18 or recording on the recording medium 70 can be prevented.

一方、ステップS61にて肖像権保護モードが設定されていない場合(ステップS61;NO)には、ステップS63に処理を移行して、画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS63)。このようにして肖像権保護部82による肖像権保護処理としての警告処理を行う。   On the other hand, when the portrait right protection mode is not set in step S61 (step S61; NO), the process proceeds to step S63, and the main image subjected to the image processing is displayed via the display control unit 71. Then, the display process is performed on the monitor 18 and is recorded on the external recording medium 70 via the media control unit 69 (step S63). In this way, the warning process as the portrait right protection process by the portrait right protection unit 82 is performed.

また肖像権保護処理としては、上述したように、無効顔に対してトリミング処理を行うことができる。ここで図14に肖像権保護部82によるトリミング処理のフローチャート、図15(a)にトリミング処理前の撮影画像の一例、図15(b)にトリミング処理後の撮影画像の一例を示す。   Further, as the portrait right protection process, as described above, the trimming process can be performed on the invalid face. Here, FIG. 14 shows a flowchart of the trimming process by the portrait right protection unit 82, FIG. 15A shows an example of a photographed image before the trimming process, and FIG. 15B shows an example of a photographed image after the trimming process.

肖像権保護部82は、図14に示す、先ず肖像権保護モードが設定されているか否かを判別し(ステップS71)、設定されている場合(ステップS71;YES)には、無効顔のタグを読み込んで(ステップS72)、さらに無効顔の位置を読み込んで(ステップS73)、無効顔を含むトリミング領域を算出して、確認のためにトリミング領域を例えばグレー網がけして液晶モニタ18に表示する(ステップS74)。   The portrait right protection unit 82 first determines whether or not the portrait right protection mode is set (step S71), and if it is set (step S71; YES), the invalid face tag shown in FIG. Is read (step S72), the position of the invalid face is further read (step S73), the trimming area including the invalid face is calculated, and the trimming area is grayed and displayed on the liquid crystal monitor 18 for confirmation, for example. (Step S74).

トリミング領域の算出は、図15(a)に示す如く、有効顔として顔検出枠K1、K2、K3内の顔、無効顔として顔検出枠K4内の顔が撮影されたときに、この画像の縦横比が例えば4:5である場合には、図15(b)に示す如く、無効顔である顔検出枠K4内の顔を含まないで、かつ縦横比4:5を保持する最大面積の画像が残るように、該画像以外の無効顔を含む領域(図15(b)中、黒色領域)をトリミング領域として算出する。   As shown in FIG. 15A, the trimming area is calculated when a face in the face detection frames K1, K2, and K3 as an effective face and a face in the face detection frame K4 as an invalid face are photographed. When the aspect ratio is 4: 5, for example, as shown in FIG. 15B, the maximum area that does not include the face in the face detection frame K4 that is an invalid face and maintains the aspect ratio 4: 5 is used. A region including an invalid face other than the image (a black region in FIG. 15B) is calculated as a trimming region so that the image remains.

そして算出されたトリミング領域に基づいてトリミングを開始し(ステップS75)、トリミング処理が施された画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS76)。   Then, trimming is started based on the calculated trimming area (step S75), and the image subjected to the trimming process is displayed on the monitor 18 via the display control unit 71 and also via the media control unit 69. Recording is performed on the external recording medium 70 (step S76).

一方、ステップS71にて肖像権保護モードが設定されていない場合(ステップS71;NO)には、ステップS77に処理を移行して、画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS77)。このようにして肖像権保護部82による肖像権保護処理としてのトリミング処理を行う。   On the other hand, when the portrait right protection mode is not set in step S71 (step S71; NO), the process proceeds to step S77, and the main image subjected to the image processing is displayed via the display control unit 71. Then, the display process is performed on the monitor 18 and is recorded on the external recording medium 70 via the media control unit 69 (step S77). In this way, the trimming process as the portrait right protection process by the portrait right protection unit 82 is performed.

上記のようにしてトリミング処理を行うことにより、例えば撮影時に通りすがりの人物が撮影され、この人物の顔が無効顔だと判断された場合には、この人物の顔は自動的にトリミングされるので、この人物が撮影された画像が液晶モニタ18に表示されたり、記録メディア70に記録されたりすることを防止できる。   By performing the trimming process as described above, for example, when a passing person is photographed at the time of photographing and it is determined that this person's face is an invalid face, the person's face is automatically trimmed. Thus, it is possible to prevent an image of this person from being displayed on the liquid crystal monitor 18 or recorded on the recording medium 70.

なおこのトリミング処理は無効顔が画像の上下左右の端辺側に位置しているときには実行可能であるが、例えば無効顔が画像の中央等にある場合には上記方法にてトリミング領域を算出することができないので実行することができない。この場合、例えば選択部としてのCPU75がトリミング処理以外の処理を施す肖像権保護部82を再選択してもよい。   This trimming process can be executed when the invalid face is positioned on the top, bottom, left, and right edges of the image. For example, when the invalid face is at the center of the image, the trimming area is calculated by the above method. I can't do it because I can't. In this case, for example, the CPU 75 as the selection unit may reselect the portrait right protection unit 82 that performs processing other than trimming processing.

また肖像権保護処理としては、上述したように、無効顔が含まれる画像データの印刷を不可能にする印刷不能処理を行うことができる。ここで図16に肖像権保護部82による印刷不能処理のフローチャートを示す。   As the portrait right protection process, as described above, an unprintable process for making it impossible to print image data including an invalid face can be performed. Here, FIG. 16 shows a flowchart of the unprintable process by the portrait right protection unit 82.

肖像権保護部82は、図16に示す、先ず肖像権保護モードが設定されているか否かを判別し(ステップS81)、設定されている場合(ステップS81;YES)には、画像データに印刷不可のタグを追加する(ステップS82)。この印刷不可のタグは、例えばインクジェットプリンタ等の印刷機器において検出されると画像の印刷を不可能にする。そして画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS83)。   The portrait right protection unit 82 first determines whether or not the portrait right protection mode is set (step S81), and if it is set (step S81; YES), prints on the image data as shown in FIG. An impossible tag is added (step S82). This non-printable tag makes it impossible to print an image when detected by a printing device such as an ink jet printer. Then, the main image subjected to the image processing is displayed on the monitor 18 via the display control unit 71 and is recorded on the external recording medium 70 via the media control unit 69 (step S83).

一方、ステップS81にて肖像権保護モードが設定されていない場合(ステップS81;NO)には、ステップS83に処理を移行して、画像処理が施された本画像を、表示制御部71を介してモニタ18に表示する処理を行うともにメディア制御部69を介して外部記録メディア70に記録する(ステップS83)。このようにして肖像権保護部82による肖像権保護処理としての印刷不能処理を行う。   On the other hand, when the portrait right protection mode is not set in step S81 (step S81; NO), the process proceeds to step S83, and the main image subjected to the image processing is displayed via the display control unit 71. Then, the display process is performed on the monitor 18 and is recorded on the external recording medium 70 via the media control unit 69 (step S83). In this way, the non-printable process as the portrait right protection process by the portrait right protection unit 82 is performed.

そして上記に説明した肖像権保護処理が終了すると(ステップS12)、図4Bに示す如く、CPU75は電源スイッチ22によってオフ操作がなされたか否かを判別し(ステップS14)、オフ操作がなされていたら(ステップS14;YES)、デジタルカメラ1の電源をオフし、処理を終了する。オフ操作がなされていなかったら(ステップS14;NO)、図4Aに示す如く、ステップS1へ処理を移行し、ステップS1以降の処理を繰り返す。このようにしてデジタルカメラ1は被写体の撮影を行う。   When the portrait right protection process described above is completed (step S12), as shown in FIG. 4B, the CPU 75 determines whether or not the power switch 22 has been turned off (step S14). (Step S14; YES), the power of the digital camera 1 is turned off, and the process ends. If an off operation has not been performed (step S14; NO), as shown in FIG. 4A, the process proceeds to step S1, and the processes after step S1 are repeated. In this way, the digital camera 1 captures the subject.

次にデジタルカメラ1により撮影された画像を例えばインクジェットプリンタ等の印刷機器によって印刷する印刷処理について説明する。ここで図17に例えばインクジェットプリンタ等の印刷機器による印刷処理のフローチャートを示す。   Next, a printing process for printing an image photographed by the digital camera 1 using a printing device such as an inkjet printer will be described. Here, FIG. 17 shows a flowchart of printing processing by a printing device such as an ink jet printer.

撮影画像を印刷するときに印刷機器は、図17に示す如く、先ず印刷画像が入力され(ステップS91)、次に入力された画像ファイルに無効顔のタグがあるか否かを判別する(ステップS92)。無効顔のタグがない場合(ステップS92;NO)には、印刷機器は画像ファイルのデータに基づいて画像を印刷する(ステップS93)。   As shown in FIG. 17, when printing a photographic image, the printing device first inputs a print image (step S91), and then determines whether there is an invalid face tag in the input image file (step S91). S92). If there is no invalid face tag (step S92; NO), the printing device prints an image based on the data of the image file (step S93).

一方、無効顔のタグがある場合(ステップS92;YES)には、肖像権保護モードのタグがあるか否か、つまり肖像権保護モードで撮影された画像であるか否かを判別し(ステップS94)、肖像権保護モードではない場合(ステップS94;NO)には、ステップS93へ処理を移行して、印刷機器は画像ファイルのデータに基づいて画像を印刷する(ステップS93)。   On the other hand, if there is an invalid face tag (step S92; YES), it is determined whether or not there is a portrait right protection mode tag, that is, whether or not the image is shot in the portrait right protection mode (step S92). If it is not the portrait right protection mode (step S94; NO), the process proceeds to step S93, and the printing device prints an image based on the data of the image file (step S93).

また肖像権保護モードである場合(ステップS94;YES)には、画像ファイルの印刷不可のタグがあるか否かを判別し(ステップS95)、印刷不可のタグがある場合(ステップS95;YES)には、例えば印刷機器の液晶パネル上等にエラーを表示する(ステップS96)。なおエラーが表示されたときには画像の印刷は行われない。   If it is the portrait right protection mode (step S94; YES), it is determined whether or not there is a non-printable tag in the image file (step S95). If there is a non-printable tag (step S95; YES). For example, an error is displayed on the liquid crystal panel of the printing device, for example (step S96). When an error is displayed, no image is printed.

一方、印刷不可のタグがない場合(ステップS95;NO)には、肖像権保護印刷を行う(ステップS27)ここで肖像権保護印刷とは、上述したように無効顔と判断された顔に対してモザイク処理、ぼかし処理又はトリミング処理等の肖像権保護処理が施された画像を印刷することをいう。   On the other hand, if there is no non-printable tag (step S95; NO), portrait right protection printing is performed (step S27). Here, portrait right protection printing refers to a face determined to be an invalid face as described above. Printing an image that has undergone portrait right protection processing such as mosaic processing, blurring processing, or trimming processing.

なお本実施形態では、印刷機器が無効顔のタグがある場合であっても、モザイク処理、ぼかし処理又はトリミング処理の肖像権保護処理が施された画像であれば印刷するようにしたが、例えばデジタルカメラ1で無効顔に対して、モザイク処理、ぼかし処理又はトリミング処理の肖像権保護処理が施されたときに、無効顔のタグを削除することにより、無効顔のタグがないのみに印刷するようにしてもよい。この場合印刷される画像は、前記肖像権保護処理が施された画像又は無効顔を含まない画像となる。   In this embodiment, even if the printing device has an invalid face tag, it is printed if it is an image that has undergone portrait right protection processing such as mosaic processing, blurring processing, or trimming processing. When an invalid face is subjected to a portrait right protection process such as a mosaic process, a blurring process, or a trimming process on the invalid face by the digital camera 1, the invalid face tag is deleted so that only the invalid face tag is printed. You may do it. In this case, the image to be printed is an image that has been subjected to the portrait right protection process or an image that does not include an invalid face.

これにより、無効顔に対して前記肖像権保護処理が施された画像又は無効顔を含まない画像無効顔を含んだ画像のみを印刷することが可能となるので、無効顔を含む画像の誤印刷を防止することができる。   As a result, it is possible to print only an image that has been subjected to the portrait right protection process on an invalid face or an image that contains an invalid face that does not include an invalid face, so an erroneous printing of an image that contains an invalid face Can be prevented.

以上のように、本実施形態のデジタルカメラ1によれば、被写体を撮像して取得した画像データから検出した1つ以上の顔に対して、それぞれ有効顔か無効顔かを判断し、無効顔と判断された顔に対して肖像権保護処理を施すので、撮影者が所望しない顔つまり第三者を無効顔と判断することにより、第三者に対して自動的に肖像権保護処理が施されるので、撮影された画像を公開するときに第三者に対するプライバシーや肖像権の侵害を防ぐことができる。   As described above, according to the digital camera 1 of the present embodiment, an effective face or an invalid face is determined for each of one or more faces detected from image data acquired by imaging a subject, and an invalid face is determined. The portrait right protection process is applied to the face that is determined to be, so if the photographer does not want the face, that is, the third party is determined to be an invalid face, the portrait right protection process is automatically applied to the third party. Therefore, it is possible to prevent infringement of privacy and portrait rights for a third party when releasing a photographed image.

また被写体とする顔の数を任意に設定し、有効顔と判断した顔の数が設定した顔の数よりも多いときに、顔の大きさ、位置、変化量、合焦評価値等の各種情報の優先度の低いものの順に有効顔から無効顔に繰り下げ、設定した顔の数よりも少ないときに、前記各種情報の優先度の高いものの順に無効顔から有効顔に繰り上げることにより、有効顔の検出精度を上げることができる。   In addition, when the number of faces to be the subject is arbitrarily set and the number of faces determined to be valid faces is larger than the set number of faces, various types of face size, position, variation, focus evaluation value, etc. The effective face is decremented from the effective face to the invalid face in the order of the lower priority of the information, and when the number of faces is smaller than the set number, the effective face is Detection accuracy can be increased.

なお本実施形態のデジタルカメラ1は、有効顔変更部81を備えるものとしたが、本発明の撮像装置は有効顔変更部81を備えていなくても良い。この場合、図4BのステップS10の処理は行わない。   Although the digital camera 1 of the present embodiment includes the effective face changing unit 81, the imaging apparatus of the present invention may not include the effective face changing unit 81. In this case, the process of step S10 in FIG. 4B is not performed.

なお本発明の撮像装置は、上述した実施形態のデジタルカメラ1に限られるものではなく、本発明の趣旨を逸脱しない範囲において適宜変更可能である。   Note that the imaging apparatus of the present invention is not limited to the digital camera 1 of the above-described embodiment, and can be changed as appropriate without departing from the spirit of the present invention.

デジタルカメラの背面図Rear view of digital camera デジタルカメラの前面図Front view of digital camera デジタルカメラの機能ブロック図Functional block diagram of digital camera デジタルカメラの撮影処理のフローチャート(その1)Flow chart of digital camera shooting process (1) デジタルカメラの撮影処理のフローチャート(その2)Flow chart of digital camera shooting process (2) 顔判断処理のフローチャート(その1)Flow chart of face determination processing (part 1) 顔判断処理のフローチャート(その2)Flow chart of face determination process (part 2) 撮像画像の一例を示す図The figure which shows an example of a captured image 顔の位置情報に基づく有効性判断を説明する図The figure explaining the validity judgment based on the positional information on the face 撮像画像の別の一例を示す図The figure which shows another example of a captured image (a)撮像画像の周波数成分の分布(b)各空間周波数のパワースペクトルを濃淡画像(A) Distribution of frequency components of captured image (b) Gray scale image of power spectrum of each spatial frequency 有効顔変更処理のフローチャートEffective face change processing flowchart モザイク処理が施された顔領域の画像の一例An example of a face area image that has undergone mosaic processing モザイク処理又はぼかし処理のフローチャートMosaic processing or blur processing flowchart 警告処理のフローチャートWarning process flowchart トリミング処理のフローチャートTrimming process flowchart (a)トリミング処理前の撮影画像(b)トリミング処理後の撮影画像(A) Captured image before trimming process (b) Captured image after trimming process 印刷不能処理のフローチャートUnprintable process flowchart 印刷機器による印刷処理のフローチャートFlow chart of printing process by printing device

符号の説明Explanation of symbols

1 撮像装置
100 撮像部(撮像手段)
69 顔検出部(対象物検出手段)
75 CPU(選択手段)
80 顔判断部(被写体判断手段)
81 有効顔変更部(有効被写体変更手段)
82 肖像権保護部(肖像権保護手段)
DESCRIPTION OF SYMBOLS 1 Imaging device 100 Imaging part (imaging means)
69 Face detection unit (object detection means)
75 CPU (selection means)
80 Face determination unit (subject determination means)
81 Effective face changing unit (effective subject changing means)
82 Portrait Rights Protection Department (Portrait Rights Protection Means)

Claims (11)

被写体を撮像して画像データを取得する撮像手段と、
前記画像データから所定の対象物を検出する対象物検出手段と、
該対象物検出手段により検出された1つ以上の対象物に対して、それぞれ有効被写体か無効被写体かを判断する被写体判断手段と、
該被写体判断手段により無効被写体であると判断された前記対象物に対して肖像権を保護する肖像権保護手段とを備えてなることを特徴とする撮像装置。
Imaging means for capturing an image of a subject and acquiring image data;
Object detection means for detecting a predetermined object from the image data;
Subject determination means for determining whether each of the one or more objects detected by the object detection means is an effective subject or an invalid subject;
An imaging apparatus comprising: portrait right protection means for protecting a portrait right for the object determined to be an invalid subject by the subject determination means.
前記被写体判断手段が、前記対象物検出手段により検出された対象物の大きさ、位置、変化量及び合焦評価値のうち1つ以上を含む情報に基づいて前記判断をするものであることを特徴とする請求項1に記載の撮像装置。   The subject determination means makes the determination based on information including one or more of the size, position, change amount, and focus evaluation value of the object detected by the object detection means. The imaging apparatus according to claim 1, wherein the imaging apparatus is characterized. 前記被写体判断手段により有効被写体と判断された前記対象物の数が、任意に設定された対象物の数よりも多いとき、前記各種情報の優先度の低いものの順に有効被写体から無効被写体に繰り下げ、
前記数よりも少ないとき、前記各種情報の優先度の高いものの順に無効被写体から有効被写体に繰り上げる有効被写体変更手段を備えていることを特徴とする請求項2に記載の撮像装置。
When the number of the objects determined as effective subjects by the subject determination means is larger than the number of arbitrarily set objects, the effective subjects are moved down from the effective subjects to the invalid subjects in the order of the low priority of the various information,
The imaging apparatus according to claim 2, further comprising an effective subject changing unit that advances the invalid subject to the effective subject in descending order of the priority of the various information when the number is smaller than the number.
前記肖像権保護手段が、前記無効被写体と判断された前記対象物に対してモザイク処理を施すものであることを特徴とする請求項1から3いずれか1項に記載の撮像装置。   The imaging apparatus according to any one of claims 1 to 3, wherein the portrait right protection unit performs a mosaic process on the object determined to be the invalid subject. 前記肖像権保護手段が、前記無効被写体と判断された前記対象物に対してぼかし処理を施すものであることを特徴とする請求項1から3いずれか1項に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the portrait right protection unit performs a blurring process on the object determined to be the invalid subject. 前記肖像権保護手段が、前記無効被写体と判断された前記対象物に対してトリミング処理を施すものであることを特徴とする請求項1から3いずれか1項に記載の撮像装置。   The imaging apparatus according to any one of claims 1 to 3, wherein the portrait right protection unit performs a trimming process on the object determined to be the invalid subject. 前記肖像権保護手段が、前記無効被写体と判断された前記対象物があるときに警告するものであることを特徴とする請求項1から3いずれか1項に記載の撮像装置。   The imaging apparatus according to any one of claims 1 to 3, wherein the portrait right protecting means warns when there is the object determined to be the invalid subject. 前記肖像権保護手段が、前記無効被写体と判断された前記対象物があるときに該対象物が含まれる画像データの印刷を不可能にするものであることを特徴とする請求項1から3いずれか1項に記載の撮像装置。   4. The portrait right protection unit is configured to make it impossible to print image data including the object when there is the object determined to be the invalid subject. The imaging apparatus of Claim 1. 前記肖像権保護手段を複数種類備え、そのうちの1つを選択して使用する選択手段を備えたことを特徴とする請求項1から8いずれか1項に記載の撮像装置。   9. The imaging apparatus according to claim 1, further comprising a plurality of types of portrait right protection means, and selection means for selecting and using one of them. 被写体を撮像して画像データを取得し、該取得した画像データから所定の対象物を検出する撮像装置において、
前記検出した1つ以上の対象物に対して、該対象物の大きさ、位置、変化量及び合焦評価値のうち1つ以上を含む情報に基づいて、それぞれ有効被写体か無効被写体かを判断し、
無効被写体と判断された前記対象物に対して肖像権保護処理を施すことを特徴とする肖像権保護方法。
In an imaging device that captures an image of a subject, acquires image data, and detects a predetermined object from the acquired image data,
For one or more detected objects, it is determined whether the object is an effective subject or an invalid subject based on information including one or more of the size, position, change amount, and focus evaluation value of the object. And
A portrait right protection method comprising performing a portrait right protection process on the object determined to be an invalid subject.
被写体とする対象物の数を任意に設定し、
前記有効被写体と判断した前記対象物の数が、前記設定した対象物の数よりも多いときに、前記各種情報の優先度の低いものの順に有効被写体から無効被写体に繰り下げ、
前記数よりも少ないときに、前記各種情報の優先度の高いものの順に無効被写体から有効被写体に繰り上げることを特徴とする請求項10に記載の肖像権保護方法。
Set the number of target objects as desired,
When the number of the objects determined to be the effective subject is larger than the number of the set objects, the effective subject is moved down from the effective subject to the invalid subject in the order of the low priority of the various information,
The portrait right protection method according to claim 10, wherein when the number is smaller than the number, the invalid subject is moved up from the invalid subject to the valid subject in descending order of priority of the various information.
JP2007265557A 2007-10-11 2007-10-11 Image pickup device and portrait right protection method in the same device Withdrawn JP2009094946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007265557A JP2009094946A (en) 2007-10-11 2007-10-11 Image pickup device and portrait right protection method in the same device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007265557A JP2009094946A (en) 2007-10-11 2007-10-11 Image pickup device and portrait right protection method in the same device

Publications (1)

Publication Number Publication Date
JP2009094946A true JP2009094946A (en) 2009-04-30

Family

ID=40666428

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007265557A Withdrawn JP2009094946A (en) 2007-10-11 2007-10-11 Image pickup device and portrait right protection method in the same device

Country Status (1)

Country Link
JP (1) JP2009094946A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011160329A (en) * 2010-02-03 2011-08-18 Casio Computer Co Ltd Imaging apparatus, moving picture imaging method, and, program
JP2012083915A (en) * 2010-10-08 2012-04-26 Canon Inc Image disclosure system, image disclosure method, and imaging device
JP2012109896A (en) * 2010-11-19 2012-06-07 Seiko Epson Corp Image processing device and image processing method
JP2012175175A (en) * 2011-02-17 2012-09-10 Nikon Corp Image storage apparatus, camera and imaging system
JP2013198062A (en) * 2012-03-22 2013-09-30 Ricoh Co Ltd Image processing apparatus, image processing method, and imaging apparatus
JP2013542461A (en) * 2010-09-28 2013-11-21 デジタルオプティックス・コーポレイション・ヨーロッパ・リミテッド Continuous autofocus based on face detection and tracking
JP2014158117A (en) * 2013-02-14 2014-08-28 Olympus Imaging Corp Imaging apparatus, management server, image transmission method and program
KR20200065115A (en) * 2018-11-29 2020-06-09 오지큐 주식회사 Method for Protecting Portrait Right by Using Mobile Device
KR102178396B1 (en) * 2019-11-28 2020-11-13 이민구 Method and apparatus for manufacturing image output based on augmented reality
WO2021220814A1 (en) * 2020-04-28 2021-11-04 ソニーセミコンダクタソリューションズ株式会社 Information processing device, information processing method, and program
JP7523955B2 (en) 2020-06-04 2024-07-29 キヤノン株式会社 Information processing device, information processing system, control method for information processing system, and program

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011160329A (en) * 2010-02-03 2011-08-18 Casio Computer Co Ltd Imaging apparatus, moving picture imaging method, and, program
JP2013542461A (en) * 2010-09-28 2013-11-21 デジタルオプティックス・コーポレイション・ヨーロッパ・リミテッド Continuous autofocus based on face detection and tracking
JP2012083915A (en) * 2010-10-08 2012-04-26 Canon Inc Image disclosure system, image disclosure method, and imaging device
JP2012109896A (en) * 2010-11-19 2012-06-07 Seiko Epson Corp Image processing device and image processing method
JP2012175175A (en) * 2011-02-17 2012-09-10 Nikon Corp Image storage apparatus, camera and imaging system
JP2013198062A (en) * 2012-03-22 2013-09-30 Ricoh Co Ltd Image processing apparatus, image processing method, and imaging apparatus
JP2014158117A (en) * 2013-02-14 2014-08-28 Olympus Imaging Corp Imaging apparatus, management server, image transmission method and program
US9742990B2 (en) 2013-02-14 2017-08-22 Olympus Corporation Image file communication system with tag information in a communication network
US10165178B2 (en) 2013-02-14 2018-12-25 Olympus Corporation Image file management system and imaging device with tag information in a communication network
KR20200065115A (en) * 2018-11-29 2020-06-09 오지큐 주식회사 Method for Protecting Portrait Right by Using Mobile Device
KR102238939B1 (en) * 2018-11-29 2021-04-14 오지큐 주식회사 Method for Protecting Portrait Right by Using Mobile Device
KR102178396B1 (en) * 2019-11-28 2020-11-13 이민구 Method and apparatus for manufacturing image output based on augmented reality
WO2021220814A1 (en) * 2020-04-28 2021-11-04 ソニーセミコンダクタソリューションズ株式会社 Information processing device, information processing method, and program
JP7523955B2 (en) 2020-06-04 2024-07-29 キヤノン株式会社 Information processing device, information processing system, control method for information processing system, and program

Similar Documents

Publication Publication Date Title
US7706674B2 (en) Device and method for controlling flash
JP2009094946A (en) Image pickup device and portrait right protection method in the same device
JP4453721B2 (en) Image photographing apparatus, image photographing method, and computer program
TWI465107B (en) Image capturing apparatus capable of displaying live preview image
JP4671133B2 (en) Image processing device
JP5025532B2 (en) Imaging apparatus, imaging apparatus control method, and imaging apparatus control program
US20080181460A1 (en) Imaging apparatus and imaging method
US9065998B2 (en) Photographing apparatus provided with an object detection function
JP2006174105A (en) Electronic camera and program
JP2007311861A (en) Photographic apparatus and method
US20070206938A1 (en) Distance measuring apparatus and method
JP2006019874A (en) Blur, out of focus informing method and imaging apparatus
JP2008079193A (en) Digital camera
US20070195190A1 (en) Apparatus and method for determining in-focus position
JP4196393B2 (en) ID photo system
JP2008187590A (en) Photographing apparatus, and photographing method
JP2010141609A (en) Imaging apparatus
JP2008263478A (en) Imaging apparatus
JP4269344B2 (en) Electronic camera
JP4879127B2 (en) Digital camera and digital camera focus area selection method
JP2009077143A (en) Automatic photographing apparatus
JP2014066904A (en) Imaging device, image processing apparatus, image processing server, and display device
JP4908321B2 (en) Imaging device
JP2008219367A (en) Imaging apparatus and imaging method
JP2008244805A (en) Digital camera

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100707

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110707