JP2011013682A - Imaging apparatus, auto focus method, and program for allowing computer to perform the method - Google Patents

Imaging apparatus, auto focus method, and program for allowing computer to perform the method Download PDF

Info

Publication number
JP2011013682A
JP2011013682A JP2010181450A JP2010181450A JP2011013682A JP 2011013682 A JP2011013682 A JP 2011013682A JP 2010181450 A JP2010181450 A JP 2010181450A JP 2010181450 A JP2010181450 A JP 2010181450A JP 2011013682 A JP2011013682 A JP 2011013682A
Authority
JP
Japan
Prior art keywords
face
automatic focusing
face detection
detected
focusing control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010181450A
Other languages
Japanese (ja)
Other versions
JP5447286B2 (en
Inventor
Kensho Oshima
憲昭 尾島
Takahiro Fujisawa
隆弘 藤沢
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2010181450A priority Critical patent/JP5447286B2/en
Publication of JP2011013682A publication Critical patent/JP2011013682A/en
Application granted granted Critical
Publication of JP5447286B2 publication Critical patent/JP5447286B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an imaging apparatus which focuses on the face of a person in a screen regardless of position/range of the person in the screen, to image the person without changing composition between in automatic focusing and in imaging.SOLUTION: A CPU 115a detects the face of a person from input image data, and sets at least a part of the detected face as a ranging area, in auto focus control.

Description

本発明は、撮像装置、自動合焦方法、およびその方法をコンピュータが実行するためのプログラムに関し、詳細には、自動合焦機能および顔認識処理機能を備えた撮像装置、自動合焦方法、およびその方法をコンピュータが実行するためのプログラムに関する。   The present invention relates to an imaging apparatus, an automatic focusing method, and a program for causing a computer to execute the method, and in particular, an imaging apparatus having an automatic focusing function and a face recognition processing function, an automatic focusing method, and The present invention relates to a program for causing a computer to execute the method.

カメラとの距離が刻々変化する被写体を手動で焦点調節しながら、常にピントの合った画像を撮像するには、熟練したカメラワーク技術が必要である。そこで、素人でも常にピントの合った画像を撮像できるように自動合焦機能が開発されている。従来の自動合焦機能を有する撮像装置では、画面中央部の1つまたは複数のエリアを測距エリアとして自動合焦を行うのが一般的である。   A skillful camera work technique is required to manually focus an object whose distance from the camera changes every moment and manually focus an image. Therefore, an automatic focusing function has been developed so that even an amateur can always take an in-focus image. In an imaging apparatus having a conventional automatic focusing function, automatic focusing is generally performed using one or a plurality of areas at the center of the screen as a ranging area.

しかしながら、上述の測距方式では、人物を撮影する場合に、人物と測距エリアが重なる構図にして自動合焦を行い、合焦後、希望の構図に変更して撮影する必要があり、人物に合焦させて撮影を行う場合に手間がかかるという問題がある。   However, in the distance measuring method described above, when shooting a person, it is necessary to automatically focus with a composition in which the person and the ranging area overlap, and after focusing, it is necessary to change to the desired composition and shoot. There is a problem in that it takes time to shoot in focus.

本発明は、上記に鑑みてなされたものであり、画面内の人物の位置/範囲に関わらず、画面内の人物の顔に合焦させて、自動合焦時と撮影時とで構図を変更することなく人物の撮影を行なうことが可能な撮像装置、自動合焦方法、およびその方法をコンピュータが実行するためのプログラムを提供することを目的とする。   The present invention has been made in view of the above, and focuses on a person's face on the screen regardless of the position / range of the person on the screen, and changes the composition between automatic focusing and shooting. An object of the present invention is to provide an imaging apparatus capable of photographing a person without performing it, an automatic focusing method, and a program for a computer to execute the method.

上記課題を解決するために、請求項1にかかる発明は、自動合焦機能を備えた撮像装置において、被写体に応じた画像データを入力するための撮像手段と、前記撮像手段から入力される画像データの中から人物の顔を検出するための顔検出手段と、前記顔検出手段で検出された人物の顔を測距エリアとして、自動合焦制御を行う自動合焦制御手段と、を備え、前記自動合焦制御手段は、前記顔検出手段により検出された人物の顔の大きさに基づいて、前記測距エリアの大きさを設定して自動合焦制御を行うものである。 In order to solve the above-mentioned problem, an invention according to claim 1 is an image pickup apparatus having an automatic focusing function, an image pickup unit for inputting image data corresponding to a subject, and an image input from the image pickup unit. A face detection means for detecting a person's face from the data, and an automatic focus control means for performing automatic focus control using the face of the person detected by the face detection means as a distance measurement area , The automatic focusing control means performs automatic focusing control by setting the size of the distance measuring area based on the size of the face of the person detected by the face detecting means .

上記発明によれば、撮像手段は、被写体に応じた画像データを入力し、顔検出手段は、撮像手段で入力した画像データの中から人物の顔を検出し、自動合焦制御手段は、顔検出手段で検出された人物の顔を測距エリアとして、自動合焦制御を行うことにより、人物がいると判定した位置に測距エリアを設定して合焦動作を実行する。特に、自動合焦制御手段は、顔検出手段により検出された人物の顔の大きさに基づいて、測距エリアの大きさを設定して自動合焦制御を行う。これにより、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことができるAccording to the above invention, the imaging means inputs image data corresponding to the subject, the face detection means detects a human face from the image data input by the imaging means, and the automatic focusing control means By performing automatic focusing control using the face of the person detected by the detecting means as a distance measuring area, the distance measuring area is set at the position where it is determined that the person is present, and the focusing operation is executed . In particular, the automatic focusing control means performs automatic focusing control by setting the size of the distance measurement area based on the size of the face of the person detected by the face detection means. This improves the accuracy of focusing on the person's face, focuses on the person's face regardless of the position of the person on the screen, and changes the person's face without changing the composition between automatic focusing and shooting. Shooting can be performed.

また、請求項2にかかる発明は、請求項1に記載の撮像装置において、前記自動合焦制御手段は、前記顔検出手段により検出された人物の顔の大きさを所定値と比較し、前記検出された人物の顔の大きさよりも前記所定値の方が大きい場合は、第1の大きさを持つ第1測距エリアを設定し、該第1測距エリアのコントラスト情報に基づいて自動合焦制御を行い、前記検出された人物の顔の大きさよりも前記所定値の方が小さい場合は、前記第1の大きさより大きい第2の大きさを持つ第2測距エリアを設定し、該第2測距エリアのコントラスト情報に基づいて自動合焦制御を行うものである。  According to a second aspect of the present invention, in the imaging apparatus according to the first aspect, the automatic focusing control unit compares the size of a human face detected by the face detection unit with a predetermined value, and If the predetermined value is larger than the size of the detected human face, a first ranging area having the first size is set, and automatic matching is performed based on the contrast information of the first ranging area. Focus control is performed, and when the predetermined value is smaller than the detected face size of the person, a second ranging area having a second size larger than the first size is set, Automatic focusing control is performed based on the contrast information of the second ranging area.

また、請求項にかかる発明は、請求項1または請求項2記載の撮像装置において、前記撮像手段から入力される画像データを表示する表示手段と、前記顔検出手段により人物の顔が検出された場合に、前記表示手段に表示される画像データにおける人物の顔の部分を枠で囲うことにより、人物の顔が検出された旨を使用者に報知するための報知手段と、を備えたものである。 According to a third aspect of the present invention, in the image pickup apparatus according to the first or second aspect , a human face is detected by the display means for displaying the image data input from the image pickup means and the face detection means. If it is, by surrounding the part of a person's face within the image data to be displayed on said display unit in a frame, provided with a notification means for notifying the user of that the face of a person is detected Is.

上記発明によれば、表示手段は、撮像手段から入力される画像データを表示し、報知手段は、顔検出手段により人物の顔が検出された場合に、表示手段に表示される画像データにおける人物の顔の部分を枠で囲うことにより、人物の顔が検出された旨を使用者に報知する。これにより、画像データのどの部分を顔として検出したのかをユーザに分かりやすく報知して、顔検出が誤動作していないかをユーザに確認させ、撮影ミスを防止する。 According to the above invention, the display means displays the image data input from the imaging means, and the notifying means is a person in the image data displayed on the display means when a face of the person is detected by the face detection means. By enclosing the face portion in a frame, the user is notified that a human face has been detected. Accordingly, the user is notified of which part of the image data is detected as a face in an easy- to- understand manner, and the user is confirmed whether the face detection is malfunctioning, thereby preventing a photographing error.

また、請求項にかかる発明は、請求項1〜請求項3のいずれか1つ記載の撮像装置において、前記自動合焦制御手段は、前記顔検出手段により複数の顔が検出された場合には、中央部に近い顔を前記測距エリアとして、自動合焦制御を行うものである。 According to a fourth aspect of the present invention, in the imaging apparatus according to any one of the first to third aspects, the automatic focus control unit is configured to detect a plurality of faces by the face detection unit. First, automatic focusing control is performed with the face close to the center as the distance measuring area.

上記発明によれば、自動合焦制御手段は、前記顔検出手段により複数の顔が検出された場合には、中央部に近い顔を前記測距エリアとして、自動合焦制御を行う。画面内の複数の人物が存在す場合、中央部に顔がある被写体が主要被写体である確率が高く、また、集合写真では、中央部の顔に合焦させれば、その前後左右の顔が被写界深度に入り、前後左右の顔のピントが合う可能性が高くなる。 According to the invention, the automatic focus control unit, when a plurality of faces are detected by the face detection means, face close to the center portion as the distance measuring area, performs automatic focusing control. If there are multiple people on the screen, the subject with the face in the center is likely to be the main subject.In the group photo, if you focus on the face in the center, the front, back, left, and right faces There is a high possibility that the front, back, left and right faces will be in focus as the depth of field is reached.

また、請求項5にかかる発明は、請求項1〜請求項4のいずれか1つに記載の撮像装置において、前記顔検出手段の顔検出動作の許可/禁止を使用者が設定するための顔検出動作設定手段を備え、前記自動合焦制御手段は、前記顔検出動作設定手段により前記顔検出手段の顔検出動作の許可が設定されている場合には、前記顔検出手段に顔検出動作を実行させ、検出された人物の顔を測距エリアとして、自動合焦制御を行う一方、前記顔検出動作設定手段により前記顔検出手段の顔検出動作の禁止が設定されている場合には、前記顔検出手段に顔検出動作を実行させることなく、自動合焦制御を行うものである。 According to a fifth aspect of the present invention, in the imaging apparatus according to any one of the first to fourth aspects, the face for the user to set permission / prohibition of the face detection operation of the face detection means. A detection operation setting unit, and the automatic focusing control unit performs a face detection operation on the face detection unit when permission of the face detection operation of the face detection unit is set by the face detection operation setting unit. If the face detection operation of the face detection means is set to be prohibited by the face detection operation setting means while performing automatic focusing control using the detected human face as a distance measurement area, Automatic focus control is performed without causing the face detection means to perform a face detection operation.

上記発明によれば、使用者が顔検出手段の顔検出動作の許可/禁止を設定し、自動合焦制御手段は、使用者により前記顔検出手段の顔検出動作の許可が設定された場合には、顔検出手段に顔検出動作を実行させ、検出された人物の顔を測距エリアとして自動合焦制御を行う一方、使用者により顔検出手段の顔検出動作の禁止が設定されている場合には、顔検出手段に顔検出動作を実行させることなく、自動合焦制御を行い、自動合焦を行う際に、顔検出動作の許可/禁止を使用者が設定できるようにする。例えば、風景を撮影する場合などは、画面内に人物が入っていない場合が多い。かかる撮影では顔検出を行うことは無駄である。そこで、顔検出理動作の許可/禁止を使用者が設定できるようにすることにより、より迅速な撮影が可能となる。 According to the above invention, the user sets permission / prohibition of the face detection operation of the face detection means, and the automatic focusing control means is set when the permission of the face detection operation of the face detection means is set by the user. When the face detection unit performs a face detection operation and performs autofocus control using the detected human face as a distance measurement area, the face detection unit prohibition of the face detection unit is set by the user In other words, automatic focus control is performed without causing the face detection means to perform the face detection operation, and the user can set permission / prohibition of the face detection operation when performing automatic focus. For example, when shooting a landscape, there are many cases where no person is included in the screen. In such photographing, it is useless to perform face detection. Therefore, by allowing the user to set permission / prohibition of the face detection operation, it is possible to perform more rapid photographing.

また、請求項にかかる発明は、請求項1〜請求項のいずれか1つに記載の撮像装置において、前記自動合焦制御手段は、前記顔検出手段で検出された人物の顔を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測するものである。 According to a sixth aspect of the present invention, in the imaging apparatus according to any one of the first to fifth aspects, the automatic focusing control unit measures the face of the person detected by the face detection unit. Each time automatic focusing control is performed as a distance area, the distance measurement result is stored in the memory, and the next focus position is predicted from the past distance measurement result stored in the memory.

上記発明によれば、自動合焦制御手段は、顔検出手段で検出された人物の顔を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測する。これにより、過去の合焦位置から次の合焦位置を予測して、迅速に合焦させ、迅速な撮影を可能とする。 According to the above invention, the automatic focusing control means stores the distance measurement result in the memory each time the automatic focusing control is performed with the face of the person detected by the face detection means as the distance measurement area. The next in-focus position is predicted from the past distance measurement result stored in the memory. As a result, the next in-focus position is predicted from the in-focus position in the past, and the in-focus state is quickly obtained, thereby enabling rapid photographing.

また、請求項にかかる発明は、被写体に応じた画像データを入力する画像入力工程と、前記画像入力工程で入力した画像データの中から人物の顔を検出する顔検出工程と、前記顔検出工程で検出された人物の顔を測距エリアとして、自動合焦制御を行う自動合焦制御工程と、を含み、前記自動合焦制御工程では、前記顔検出工程により検出された人物の顔の大きさに基づいて、前記測距エリアの大きさを設定して自動合焦制御を行う自動合焦方法である。 The invention according to claim 7 is an image input step of inputting image data corresponding to a subject, a face detection step of detecting a human face from the image data input in the image input step, and the face detection the face of the detected person as a distance measurement area in step, seen including an automatic focus control step of performing automatic focus control, and wherein in the automatic focusing control process, the face of the person detected by the face detection step This is an automatic focusing method for performing automatic focusing control by setting the size of the distance measuring area based on the size of .

上記発明によれば、被写体に応じた画像データを入力し、入力した画像データの中から人物の顔を検出し、検出された人物の顔を測距エリアとして、自動合焦制御を行うことにより、人物がいると判定した位置に測距エリアを設定して合焦動作を実行する。特に、自動合焦制御工程では、顔検出工程により検出された人物の顔の大きさに基づいて、測距エリアの大きさを設定して自動合焦制御を行う。これにより、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことができるAccording to the invention, the input image data corresponding to an object, detects the face of a person from the image data input, as a distance measurement area the face of the detected person, that performs automatic focus control Thus, the distance measuring area is set at the position where it is determined that there is a person, and the focusing operation is executed . In particular, in the automatic focusing control step, the automatic focusing control is performed by setting the size of the ranging area based on the size of the face of the person detected by the face detection step. This improves the accuracy of focusing on the person's face, focuses on the person's face regardless of the position of the person on the screen, and changes the person's face without changing the composition between automatic focusing and shooting. Shooting can be performed.

また、請求項8にかかる発明は、請求項7に記載の自動合焦方法において、前記自動合焦制御工程では、前記顔検出工程により検出された人物の顔の大きさを所定値と比較し、前記検出された人物の顔の大きさよりも前記所定値の方が大きい場合は、第1の大きさを持つ第1測距エリアを設定し、該第1測距エリアのコントラスト情報に基づいて自動合焦制御を行い、前記検出された人物の顔の大きさよりも前記所定値の方が小さい場合は、前記第1の大きさより大きい第2の大きさを持つ第2測距エリアを設定し、該第2測距エリアのコントラスト情報に基づいて自動合焦制御を行うものである。  According to an eighth aspect of the present invention, in the automatic focusing method according to the seventh aspect, in the automatic focusing control step, the face size of the person detected by the face detection step is compared with a predetermined value. If the predetermined value is larger than the detected face size of the person, a first ranging area having a first size is set, and based on contrast information of the first ranging area Automatic focusing control is performed, and when the predetermined value is smaller than the detected face size of the person, a second ranging area having a second size larger than the first size is set. The automatic focusing control is performed based on the contrast information of the second ranging area.

また、請求項にかかる発明は、請求項7または請求項8に記載の自動合焦方法において、前記画像入力工程で入力した画像データを表示手段に表示する表示工程と、前記顔検出手段により人物の顔が検出された場合に、前記表示工程により前記表示手段に表示される画像データにおける人物の顔の部分を枠で囲うことにより、人物の顔が検出された旨を使用者に報知するための報知工程と、を含むものである。 According to a ninth aspect of the present invention, in the automatic focusing method according to the seventh or eighth aspect , the display step of displaying the image data input in the image input step on the display means, and the face detection means When a face of a person is detected, the user is notified that the face of the person has been detected by enclosing a portion of the face of the person in the image data displayed on the display means in the display step with a frame. a notification step for those comprising a.

上記発明によれば、撮像手段から入力される画像データを表示手段に表示し、人物の顔が検出された場合に、表示手段に表示される画像データにおける人物の顔の部分を枠で囲うことにより、人物の顔が検出された旨を使用者に報知する。これにより、画像データのどの部分を顔として検出したのかをユーザに分かりやすく報知して、顔検出が誤動作していないかをユーザに確認させ、撮影ミスを防止する。 According to the above invention, the image data input from the imaging means is displayed on the display means, and when a person's face is detected, the portion of the person's face in the image data displayed on the display means is surrounded by a frame. To notify the user that a human face has been detected. Accordingly, the user is notified of which part of the image data is detected as a face in an easy- to- understand manner, and the user is confirmed whether the face detection is malfunctioning, thereby preventing a photographing error.

また、請求項10にかかる発明は、請求項7〜請求項9のいずれか1つ記載の自動合焦方法において、前記自動合焦制御工程では、前記顔検出工程により複数の顔が検出された場合には、中央部に近い顔を前記測距エリアとして、自動合焦制御を行うものである。 The invention according to claim 10 is the automatic focusing method according to any one of claims 7 to 9 , wherein a plurality of faces are detected by the face detection step in the automatic focusing control step. In this case, automatic focusing control is performed using the face close to the center as the distance measuring area.

上記発明によれば、複数の顔が検出された場合には、中央部に近い顔を測距エリアとして、自動合焦制御を行う。画面内の複数の人物が存在する場合、中央部に顔がある被写体が主要被写体である確率が高く、また、集合写真では、中央部の顔に合焦させれば、その前後左右の顔が被写界深度に入り、前後左右の顔のピントが合う可能性が高くなる。 According to the above invention, when a plurality of faces are detected, automatic focusing control is performed using the face close to the center as a distance measurement area. If there are multiple people on the screen, the subject with the face in the center is likely to be the main subject.In the group photo, if you focus on the face in the center, the front, back, left, and right faces There is a high possibility that the front, back, left and right faces will be in focus as the depth of field is reached.

また、請求項11にかかる発明は、請求項〜請求項10のいずれか1つに記載の自動合焦方法において、さらに、前記顔検出工程の顔検出動作の許可/禁止を使用者が設定するための顔検出動作設定工程を含み、前記自動合焦制御工程では、前記顔検出動作設定工程により前記顔検出工程の顔検出動作の許可が設定されている場合には、前記顔検出工程に顔検出動作を実行させ、検出された人物の顔を測距エリアとして、自動合焦制御を行う一方、前記顔検出動作設定工程により前記顔検出工程の顔検出動作の禁止が設定されている場合には、前記顔検出工程に顔検出動作を実行させることなく、自動合焦制御を行うものである。 The invention according to claim 11, in an automatic focusing method according to any one of claims 7 to claim 10, further setting user permission / prohibition of the face detection operation of the face detection process A face detection operation setting step for performing the face detection operation when the face detection operation permission of the face detection step is set by the face detection operation setting step in the automatic focus control step. When the face detection operation is executed and automatic detection is performed using the detected human face as a distance measurement area, while the face detection operation prohibition is set in the face detection operation setting step The automatic focus control is performed without executing the face detection operation in the face detection step.

上記発明によれば、使用者が顔検出動作の許可/禁止を設定し、使用者により顔検出動作の許可が設定された場合には、顔検出動作を実行して検出された人物の顔を測距エリアとして自動合焦制御を行う一方、使用者により顔検出動作の禁止が設定されている場合には、顔検出動作を実行することなく自動合焦制御を行うことにより、自動合焦を行う際に、顔検出動作の許可/禁止を使用者が設定できるようにする。例えば、風景を撮影する場合などは、画面内に人物が入っていない場合が多い。かかる撮影では顔検出を行うことは無駄である。そこで、顔検出理動作の許可/禁止を使用者が設定できるようにすることにより、より迅速な撮影が可能となる。 According to the above invention, when the user sets permission / prohibition of the face detection operation and permission of the face detection operation is set by the user, the face of the person detected by executing the face detection operation is displayed. While auto focus control is performed as a ranging area, if face detection operation is prohibited by the user, auto focus control is performed without performing face detection operation. When performing, the user can set permission / prohibition of the face detection operation. For example, when shooting a landscape, there are many cases where no person is included in the screen. In such photographing, it is useless to perform face detection. Therefore, by allowing the user to set permission / prohibition of the face detection operation, it is possible to perform more rapid photographing.

また、請求項12にかかる発明は、請求項〜請求項11のいずれか1つに記載の自動合焦方法において、前記自動合焦制御工程では、前記顔検出工程で検出された人物の顔を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測するものである。 The invention according to claim 12 is the automatic focusing method according to any one of claims 7 to 11 , wherein in the automatic focusing control step, the human face detected in the face detection step. Each time automatic focusing control is performed using the distance measurement area, the distance measurement result is stored in the memory, and the next focus position is predicted from the past distance measurement result stored in the memory.

上記発明によれば、検出された人物の顔を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測する。これにより、過去の合焦位置から次の合焦位置を予測して、迅速に合焦させ、迅速な撮影を可能とする。 According to the above invention, each time the automatic focusing control is performed using the detected human face as a distance measurement area, the distance measurement result is stored in the memory, and the past distance measurement result stored in the memory is stored. Predict the next in-focus position. As a result, the next in-focus position is predicted from the in-focus position in the past, and the in-focus state is quickly obtained, thereby enabling rapid photographing.

また、請求項13にかかる発明は、請求項〜請求項12のいずれか1つに記載の自動合焦方法をコンピュータ実行させるためのプログラムである。 The invention according to claim 13 is a program order to execute the automatic focusing method according to the computer in any one of claims 7 to claim 12.

上記発明によれば、コンピュータでプログラムを実行することにより、人物がいると判定した位置に測距エリアを設定して合焦動作を実行し、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行う。 According to the invention, by executing a program on a computer, by setting the distance measuring area in a position where it is determined that person is running a focusing operation, improving the focusing accuracy relative to the face of a person, the screen Regardless of the position of the person, the person's face is focused and the person is photographed without changing the composition between the automatic focusing operation and the photographing.

請求項1にかかる発明によれば、自動合焦機能を備えた撮像装置において、被写体に応じた画像データを入力するための撮像手段と、前記撮像手段から入力される画像データの中から人物の顔を検出するための顔検出手段と、前記顔検出手段で検出された人物の顔を測距エリアとして、自動合焦制御を行う自動合焦制御手段と、を備え、前記自動合焦制御手段は、前記顔検出手段により検出された人物の顔の大きさに基づいて、前記測距エリアの大きさを設定して自動合焦制御を行うこととしたので、画面内の人物の顔を測距エリアとして自動合焦動作を実行して、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせることができ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことが可能となる。 According to the first aspect of the present invention , in an imaging apparatus having an automatic focusing function, an imaging unit for inputting image data corresponding to a subject, and a person's image out of the image data input from the imaging unit. A face detection means for detecting a face; and an automatic focus control means for performing automatic focus control using the face of the person detected by the face detection means as a distance measurement area , the automatic focus control means Since the automatic focusing control is performed by setting the size of the distance measuring area based on the size of the human face detected by the face detecting means , the human face on the screen is measured. Auto focus operation is performed as a distance area to improve the accuracy of focusing on the person's face, and the person's face can be focused regardless of the position of the person on the screen. Without changing the composition at the time of shooting Shadow it is possible to perform.

また、請求項2にかかる発明によれば、請求項1に記載の撮像装置において、前記自動合焦制御手段は、前記顔検出手段により検出された人物の顔の大きさを所定値と比較し、前記検出された人物の顔の大きさよりも前記所定値の方が大きい場合は、第1の大きさを持つ第1測距エリアを設定し、該第1測距エリアのコントラスト情報に基づいて自動合焦制御を行い、前記検出された人物の顔の大きさよりも前記所定値の方が小さい場合は、前記第1の大きさより大きい第2の大きさを持つ第2測距エリアを設定し、該第2測距エリアのコントラスト情報に基づいて自動合焦制御を行うこととしたので、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせることができ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことが可能となる。  According to a second aspect of the present invention, in the imaging apparatus according to the first aspect, the automatic focusing control unit compares the size of the face of the person detected by the face detection unit with a predetermined value. If the predetermined value is larger than the detected face size of the person, a first ranging area having a first size is set, and based on contrast information of the first ranging area Automatic focusing control is performed, and when the predetermined value is smaller than the detected face size of the person, a second ranging area having a second size larger than the first size is set. Since the automatic focusing control is performed based on the contrast information of the second ranging area, the focusing accuracy for the human face is improved, and the human face is focused regardless of the position of the human person on the screen. Can be adjusted during autofocusing and shooting. It is possible to carry out the shooting of a person without changing the composition between.

また、請求項にかかる発明によれば、請求項1または請求項2記載の撮像装置において、前記撮像手段から入力される画像データを表示する表示手段と、前記顔検出手段により人物の顔が検出された場合に、前記表示手段に表示される画像データにおける人物の顔の部分を枠で囲うことにより、人物の顔が検出された旨を使用者に報知するための報知手段と、を備えているので、請求項1または請求項2にかかる発明の効果に加えて、画像データのどの部分を顔として検出したのかをユーザに分かりやすく報知して、顔検出が誤動作していないかをユーザに確認させることができ、ユーザの撮影ミスを防止することが可能となる。 According to a third aspect of the present invention , in the imaging apparatus according to the first or second aspect , a display unit that displays image data input from the imaging unit, and a human face by the face detection unit. If but detected, by surrounding the part of a person's face within the image data to be displayed on said display unit in a frame, and notification means for notifying the user of that the human face is detected, the since comprises, in addition to the effect of the invention according to claim 1 or claim 2, whether to detect which part of the image data as a face to notify clarity to the user, whether the face detection is not malfunctioning The user can be confirmed, and it is possible to prevent the user from making a mistake in photographing.

また、請求項にかかる発明によれば、請求項1〜請求項3のいずれか1つ記載の撮像装置において、前記自動合焦制御手段は、前記顔検出手段により複数の顔が検出された場合には、中央部に近い顔を前記測距エリアとして、自動合焦制御を行うこととしたので、請求項1〜請求項3のいずれか1つにかかる発明の効果に加えて、高い確率で主要被写体にピントを合わせることができ、また、集合写真においても、中央部の顔に対して前後左右にある顔も高い確率でピントを合わせる可能性を高くすることが可能となる。 According to a fourth aspect of the present invention , in the imaging apparatus according to any one of the first to third aspects, the automatic focus control means detects a plurality of faces by the face detection means. In this case, since automatic focusing control is performed with the face close to the center as the distance measuring area, in addition to the effect of the invention according to any one of claims 1 to 3, it is high. It is possible to focus on the main subject with probability, and also in the group photo, it is possible to increase the possibility of focusing on the front and rear, left and right faces with respect to the center face with high probability.

また、請求項5にかかる発明によれば、請求項1〜請求項4のいずれか1つに記載の撮像装置において、前記顔検出手段の顔検出動作の許可/禁止を使用者が設定するための顔検出動作設定手段を備え、前記自動合焦制御手段は、前記顔検出動作設定手段により前記顔検出手段の顔検出動作の許可が設定されている場合には、前記顔検出手段に顔検出動作を実行させ、検出された人物の顔を測距エリアとして、自動合焦制御を行う一方、前記顔検出動作設定手段により前記顔検出手段の顔検出動作の禁止が設定されている場合には、前記顔検出手段に顔検出動作を実行させることなく、自動合焦制御を行うこととしたので、請求項1〜請求項4のいずれか1つにかかる発明の効果に加えて、使用者が、顔検出動作の許可/禁止を設定して不要な顔検出動作を省くことができ、より迅速な撮影が可能となる。 According to a fifth aspect of the present invention , in the imaging apparatus according to any one of the first to fourth aspects, the user sets permission / prohibition of the face detection operation of the face detection means. Face detection operation setting means, and when the face detection operation permission of the face detection means is set by the face detection operation setting means, the automatic focus control means detects the face in the face detection means. When the face detection operation prohibition of the face detection unit is set by the face detection operation setting unit while performing the operation and performing automatic focusing control using the detected human face as a distance measurement area In addition to the effects of the invention according to any one of claims 1 to 4, since the automatic focus control is performed without causing the face detection unit to perform the face detection operation, No need to enable / disable face detection It can be omitted face detection operation, enabling more rapid shooting.

また、請求項にかかる発明によれば、請求項1〜請求項のいずれか1つに記載の撮像装置において、前記自動合焦制御手段は、前記顔検出手段で検出された人物の顔を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測することとしたので、請求項1〜請求項のいずれか1つにかかる発明の効果に加えて、過去の合焦位置から次の合焦位置を予測して、迅速に合焦でき、迅速な撮影が可能となる。 According to a sixth aspect of the present invention , in the imaging apparatus according to any one of the first to fifth aspects, the automatic focusing control means is a human face detected by the face detecting means. Each time auto focus control is performed with the distance measurement area as the distance measurement area, the distance measurement result is stored in the memory, and the next focus position is predicted from the past distance measurement result stored in the memory. In addition to the effect of the invention according to any one of claims 1 to 5, the next in-focus position can be predicted from the in-focus position in the past, the in-focus state can be quickly achieved, and the rapid photographing can be performed. Become.

また、請求項にかかる発明によれば、被写体に応じた画像データを入力する画像入力工程と、前記画像入力工程で入力した画像データの中から人物の顔を検出する顔検出工程と、前記顔検出工程で検出された人物の顔を測距エリアとして、自動合焦制御を行う自動合焦制御工程と、を含み、前記自動合焦制御工程では、前記顔検出工程により検出された人物の顔の大きさに基づいて、前記測距エリアの大きさを設定して自動合焦制御を行うこととしたので、画面内の人物の顔を測距エリアとして自動合焦動作を実行して、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせることができ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことが可能となる。 According to the invention of claim 7 , an image input step of inputting image data corresponding to a subject, a face detection step of detecting a human face from the image data input in the image input step, as a distance measurement area of the face of the person detected by the face detection process, seen including an automatic focus control step of performing automatic focus control, and wherein in the automatic focusing control process, the person detected by the face detection step Based on the size of the face, the size of the distance measurement area is set and the automatic focus control is performed . Therefore, the automatic focus operation is performed using the face of the person on the screen as the distance measurement area. , Improve the focus accuracy of the person's face, focus on the person's face regardless of the position of the person on the screen, and without changing the composition between the automatic focus operation and shooting Can be taken.

また、請求項8にかかる発明によれば、請求項7に記載の自動合焦方法において、前記自動合焦制御工程では、前記顔検出工程により検出された人物の顔の大きさを所定値と比較し、前記検出された人物の顔の大きさよりも前記所定値の方が大きい場合は、第1の大きさを持つ第1測距エリアを設定し、該第1測距エリアのコントラスト情報に基づいて自動合焦制御を行い、前記検出された人物の顔の大きさよりも前記所定値の方が小さい場合は、前記第1の大きさより大きい第2の大きさを持つ第2測距エリアを設定し、該第2測距エリアのコントラスト情報に基づいて自動合焦制御を行うこととしたので、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせることができ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことが可能となる。  According to an eighth aspect of the present invention, in the automatic focusing method according to the seventh aspect, in the automatic focusing control step, the size of the human face detected by the face detection step is set to a predetermined value. If the predetermined value is larger than the size of the detected human face, a first distance measuring area having a first size is set, and the contrast information of the first distance measuring area is set. If the predetermined value is smaller than the size of the detected person's face, a second ranging area having a second size larger than the first size is selected. Because it is set and the automatic focusing control is performed based on the contrast information of the second ranging area, the focusing accuracy with respect to the person's face is improved, and the person's face is controlled regardless of the position of the person on the screen. The camera can be in focus and in autofocus mode It is possible to carry out the shooting of a person without changing the composition at the time of shooting.

また、請求項にかかる発明によれば、請求項7または請求項8記載の自動合焦方法において、前記画像入力工程で入力した画像データを表示手段に表示する表示工程と、前記顔検出手段により人物の顔が検出された場合に、前記表示工程により前記表示手段に表示される画像データにおける人物の顔の部分を枠で囲うことにより、人物の顔が検出された旨を使用者に報知するための報知工程と、を含むこととしたので、請求項7または請求項8にかかる発明の効果に加えて、画像データのどの部分を顔として検出したのかをユーザに分かりやすく報知して、顔検出が誤動作していないかをユーザに確認させることができ、ユーザの撮影ミスを防止することが可能となる。 According to the invention of claim 9 , in the automatic focusing method according to claim 7 or claim 8 , the display step of displaying the image data input in the image input step on the display means, and the face detection When the person's face is detected by the means, the user is notified that the person's face has been detected by enclosing a portion of the person's face in the image data displayed on the display means by the display step. a notification step for notifying, so it was decided to include the addition to the effect of the invention according to claim 7 or claim 8, to notify which part of the image data easy to understand user whether the detected as the face Therefore, it is possible to make the user check whether the face detection is malfunctioning, and it is possible to prevent the user from taking a mistake.

また、請求項10にかかる発明によれば、請求項7〜請求項9のいずれか1つ記載の自動合焦方法において、前記自動合焦制御工程では、前記顔検出工程により複数の顔が検出された場合には、中央部に近い顔を前記測距エリアとして、自動合焦制御を行うこととしたので、請求項7〜請求項9のいずれか1つにかかる発明の効果に加えて、高い確率で主要被写体にピントを合わせることができ、また、集合写真においても、中央部の顔に対して前後左右にある顔も高い確率でピントを合わせる可能性を高くすることが可能となる。 According to the invention of claim 10 , in the automatic focusing method according to any one of claims 7 to 9, in the automatic focusing control step, a plurality of faces are obtained by the face detection step. 10 is detected, automatic focusing control is performed with the face close to the center as the distance measuring area. In addition to the effects of the invention according to any one of claims 7 to 9, It is possible to focus on the main subject with a high probability, and also in the group photo, it is possible to increase the possibility of focusing on the face in the front, back, left and right with a high probability with respect to the center face. Become.

また、請求項11にかかる発明によれば、請求項〜請求項10のいずれか1つに記載の自動合焦方法において、さらに、前記顔検出工程の顔検出動作の許可/禁止を使用者が設定するための顔検出動作設定工程を含み、前記自動合焦制御工程では、前記顔検出動作設定工程により前記顔検出工程の顔検出動作の許可が設定されている場合には、前記顔検出工程に顔検出動作を実行させ、検出された人物の顔を測距エリアとして、自動合焦制御を行う一方、前記顔検出動作設定工程により前記顔検出工程の顔検出動作の禁止が設定されている場合には、前記顔検出工程に顔検出動作を実行させることなく、自動合焦制御を行うこととしたので、請求項〜請求項10のいずれか1つにかかる発明の効果に加えて、使用者が、顔検出動作の許可/禁止を設定して不要な顔検出動作を省くことができ、より迅速な撮影が可能となる。 According to an eleventh aspect of the invention , in the automatic focusing method according to any one of the seventh to tenth aspects, the user is further permitted / prohibited of the face detection operation in the face detection step. A face detection operation setting step for setting the face detection operation when the face detection operation permission of the face detection step is set by the face detection operation setting step in the automatic focus control step. The face detection operation is executed in the process, and the autofocus control is performed using the detected human face as the distance measurement area, while the face detection operation prohibition is set in the face detection operation setting step. If it is determined that the automatic focusing control is performed without causing the face detection step to perform the face detection operation, in addition to the effects of the invention according to any one of claims 7 to 10. The user is allowed to / Can be omitted unnecessary face detection operation by setting the ban, it is possible more rapid shooting.

また、請求項12にかかる発明によれば、請求項〜請求項11のいずれか1つに記載の自動合焦方法において、前記自動合焦制御工程では、前記顔検出工程で検出された人物の顔を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測することとしたので、請求項〜請求項11のいずれか1つにかかる発明の効果に加えて、過去の合焦位置から次の合焦位置を予測して、迅速に合焦でき、迅速な撮影が可能となる。 According to the invention of claim 12 , in the automatic focusing method according to any one of claims 7 to 11 , in the automatic focusing control step, the person detected in the face detection step Each time autofocus control is performed using the face as a distance measurement area, the distance measurement result is stored in a memory, and the next focus position is predicted from the past distance measurement result stored in the memory; Therefore, in addition to the effects of the invention according to any one of claims 7 to 11 , the next in-focus position can be predicted from the in-focus position in the past, and the in-focus state can be quickly obtained. It becomes possible.

また、請求項13にかかる発明によれば、請求項〜請求項12のいずれか1つに記載の自動合焦方法をコンピュータに実行させるので、画面内の人物の顔を測距エリアとして自動合焦動作を実行して、人物の顔に対する合焦精度を向上させ、画面内の人物の位置に拘わらず、人物の顔にピントを合わせることができ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことが可能となる。 According to the invention of claim 13 , since the computer is caused to execute the automatic focusing method according to any one of claims 7 to 12 , a person's face in the screen is automatically set as a distance measurement area. Performs focusing operation to improve the focusing accuracy for the person's face and focus on the person's face regardless of the position of the person on the screen. A person can be photographed without changing the composition.

実施の形態1にかかるデジタルカメラの外観構成図である。1 is an external configuration diagram of a digital camera according to a first embodiment. 実施の形態1にかかるデジタルカメラの構成を示すブロック図である。1 is a block diagram illustrating a configuration of a digital camera according to a first embodiment. 実施の形態1にかかるデジタルカメラにおける操作部のモード切換えスイッチでSETUPモードが選択された場合に、液晶モニタに表示される記録条件のユーザ設定画面を示す図である。FIG. 6 is a diagram showing a user setting screen for recording conditions displayed on the liquid crystal monitor when the SETUP mode is selected with the mode change switch of the operation unit in the digital camera according to the first embodiment. 実施の形態1にかかるデジタルカメラのAF動作を説明するためのフローチャートである。3 is a flowchart for explaining an AF operation of the digital camera according to the first exemplary embodiment; 実施の形態1にかかるデジタルカメラ液晶モニタの表示例を示す図である。FIG. 3 is a diagram illustrating a display example of the digital camera liquid crystal monitor according to the first embodiment. 実施の形態1にかかる液晶モニタの表示例を示す図である。FIG. 3 is a diagram illustrating a display example of the liquid crystal monitor according to the first embodiment. 実施の形態2にかかる操作部のモード切換えスイッチでSETUPモードが選択された場合に、液晶モニタに表示される記録条件のユーザ設定画面を示す図である。FIG. 10 is a diagram showing a user setting screen for recording conditions displayed on the liquid crystal monitor when the SETUP mode is selected by the mode change switch of the operation unit according to the second embodiment. 実施の形態2にかかるデジタルカメラのAF動作を説明するためのフローチャートである。10 is a flowchart for explaining an AF operation of the digital camera according to the second embodiment. 実施の形態2にかかるデジタルカメラの液晶モニタの表示例を示す図である。FIG. 6 is a diagram illustrating a display example of a liquid crystal monitor of a digital camera according to a second embodiment.

以下、図面を参照して、本発明にかかる撮像装置、自動合焦方法、およびその方法をコンピュータが実行するためのプログラムを適用したデジタルカメラの好適な実施の形態を、(実施の形態1)、(実施の形態2)、(変形例1)、(変形例2)の順に詳細に説明する。   DESCRIPTION OF EXEMPLARY EMBODIMENTS Hereinafter, with reference to the drawings, preferred embodiments of an imaging apparatus, an automatic focusing method, and a digital camera to which a computer program for executing the method according to the invention are applied will be described (Embodiment 1). (Embodiment 2), (Modification 1), (Modification 2) will be described in detail in this order.

(実施の形態1)
図1は、実施の形態1にかかるデジタルカメラの外観構成図であり、同図(A)は正面図、同図(B)は側面図、同図(C)は上面図を示している。図1は、上蓋が開成された状態を示している。同図において、1はカメラ本体、2は撮影レンズ、3はストロボ、4はファインダ、5は開閉可能に設けられた上蓋、6は上蓋5を開閉可能に支持するヒンジ、7は上蓋5の内側に設けられた液晶モニタ、8は上蓋5の外側に設けられたサブLCD、9は上蓋5の開閉を検出するための上蓋開閉検知スイッチ、10はバリア開閉つまみ、11は撮影等の動作指示を行うためのレリーズスイッチ、12は各モードを選択するためのモード切換えスイッチ、13はストロボ発光を行うためのストロボスイッチ、14は撮影画質を設定するための画質モードスイッチ、15はカーソルキー、16は日付を入力するためのDATEスイッチ、17はENTERキー、18はSELECTキーを示している。
(Embodiment 1)
1A and 1B are external configuration diagrams of the digital camera according to the first embodiment. FIG. 1A is a front view, FIG. 1B is a side view, and FIG. 1C is a top view. FIG. 1 shows a state in which the upper lid is opened. In the figure, 1 is a camera body, 2 is a photographic lens, 3 is a strobe, 4 is a viewfinder, 5 is an upper lid that can be opened and closed, 6 is a hinge that supports the upper lid 5 so that it can be opened and closed, and 7 is the inside of the upper lid 5 A liquid crystal monitor provided on the outside, 8 a sub-LCD provided outside the upper lid 5, 9 an upper lid opening / closing detection switch for detecting the opening / closing of the upper lid 5, 10 a barrier opening / closing knob, 11 an operation instruction for photographing, etc. A release switch for performing the operation, 12 is a mode changeover switch for selecting each mode, 13 is a strobe switch for performing strobe light emission, 14 is an image quality mode switch for setting the image quality, 15 is a cursor key, and 16 is a cursor key. A DATE switch for inputting a date, 17 indicates an ENTER key, and 18 indicates a SELECT key.

モード切換えスイッチ12は、(1)カメラの設定を変更したり、確認するためのSETUPモード、(2)静止画を記録するための静止画モード、(3)動画を記録するための動画モード、(4)記録したファイルを再生するための再生モード、(5)パソコンと接続して、パソコンにファイルを送ったり、パソコンからカメラ操作するためのPCモード、および(6)ネットワークを介して通信を行うための通信モード等を選択するためのものである。   The mode change switch 12 includes (1) a SETUP mode for changing or confirming camera settings, (2) a still image mode for recording a still image, (3) a moving image mode for recording a moving image, (4) Playback mode for playing back recorded files, (5) PC mode for connecting to a personal computer to send files to the personal computer and operating the camera from the personal computer, and (6) Communication via the network This is for selecting a communication mode to be performed.

図2は、実施の形態1にかかるデジタルカメラの構成を示すブロック図である。同図に示すデジタルカメラは、撮影レンズ2(ズームレンズ2a、フォーカスレンズ2b)、メカ機構(メカニカルシャッタ、絞り、フィルタ等)101、CCD102、F/E(CDS回路、AGC回路、A/D変換回路)103、IPP104、圧縮/伸張回路105、メモリカード106、DRAM107、液晶モニタ7、サブLCD10、操作部108、モータ(ズームレンズモータ109a、フォーカスモータ109b、絞り・シャッターモータ109c)109、ドライバ(ズームドライバ110a、フォーカスドライバ110b、絞り・シャッタードライバ110c)110、SG111、電池112、DC/DCコンバータ113、ACアダプタ114、コントローラ(CPU115a、FLASH_ROM115b、SD_RAM115c)115、通信ドライバ部116、ネットワーク通信部117を備えている。   FIG. 2 is a block diagram of the configuration of the digital camera according to the first embodiment. The digital camera shown in the figure includes a photographing lens 2 (zoom lens 2a, focus lens 2b), mechanical mechanism (mechanical shutter, diaphragm, filter, etc.) 101, CCD 102, F / E (CDS circuit, AGC circuit, A / D conversion). Circuit) 103, IPP 104, compression / expansion circuit 105, memory card 106, DRAM 107, liquid crystal monitor 7, sub LCD 10, operation unit 108, motor (zoom lens motor 109a, focus motor 109b, aperture / shutter motor 109c) 109, driver ( Zoom driver 110a, focus driver 110b, aperture / shutter driver 110c) 110, SG111, battery 112, DC / DC converter 113, AC adapter 114, controller (CPU 115a, FLASH_ROM 115b, SD) RAM 115c) 115, a communication driver unit 116, and a network communication unit 117.

撮影レンズ2は、被写体を結像するためのものであり、ズーム機能を実現するためのズームレンズ2aと、被写体に合焦させるためのフォーカスレンズ2bとからなる。メカ機構101は、メカニカルシャッタ、被写体の明るさを調整するための絞りや、フィルタ等からなる。CCD102は、撮影レンズ2により結像された被写体像を電気信号に変換して、アナログの画像データとしてF/E103に出力する。   The photographing lens 2 is for imaging a subject, and includes a zoom lens 2a for realizing a zoom function and a focus lens 2b for focusing on the subject. The mechanical mechanism 101 includes a mechanical shutter, a diaphragm for adjusting the brightness of the subject, a filter, and the like. The CCD 102 converts the subject image formed by the photographing lens 2 into an electric signal and outputs it as analog image data to the F / E 103.

F/E103は、CCD102から入力されるアナログの画像データに対して前処理を施すものであり、CCD102から入力されるアナログの画像データを相関二重サンプリングするCDS回路と、CDS回路から出力されるアナログの画像データのゲインを調整するAGC回路と、AGC回路から出力されるアナログの画像データに対してA/D変換を行って、デジタルの画像データをIPP104に出力するA/D変換回路とからなる。   The F / E 103 performs preprocessing on analog image data input from the CCD 102, and is output from a CDS circuit that performs correlated double sampling of the analog image data input from the CCD 102 and the CDS circuit. An AGC circuit that adjusts the gain of analog image data, and an A / D conversion circuit that performs A / D conversion on analog image data output from the AGC circuit and outputs digital image data to the IPP 104 Become.

IPP104は、入力される画像データに対して各種画像処理を施すものであり、例えば、F/E103から入力されるカラー画像データに対して補間処理を行った後、YUVデータ(輝度Yデータ、色差U、Vデータ)に変換する。   The IPP 104 performs various types of image processing on input image data. For example, after performing interpolation processing on color image data input from the F / E 103, YUV data (luminance Y data, color difference) (U, V data).

圧縮/伸張回路105は、YUVデータを、JPEG方式に準拠した圧縮方式で圧縮処理したり、また、メモリカードに格納されている圧縮画像データをJPEG方式に準拠した伸張方式で伸張処理する。   The compression / decompression circuit 105 compresses YUV data by a compression method conforming to the JPEG method, and decompresses compressed image data stored in a memory card by an expansion method conforming to the JPEG method.

DRAM107は、撮像した画像データやメモリカード106から読み出した画像データ等を一時的に格納するためのフレームメモリである。メモリカード106は、デジタルカメラ本体に対して着脱可能に設けられ、圧縮画像データを画像ファイルとして格納する。   The DRAM 107 is a frame memory for temporarily storing captured image data, image data read from the memory card 106, and the like. The memory card 106 is detachably attached to the digital camera body, and stores compressed image data as an image file.

液晶モニタ7は、画像データ等を表示するためのものである。サブLCD8は、デジタルカメラの設定されているモードや動作内容を表示するためのものである。   The liquid crystal monitor 7 is for displaying image data and the like. The sub LCD 8 is for displaying the set mode and operation contents of the digital camera.

ズームドライバ110aは、コントローラ115から入力される制御信号に応じて、ズームモータ109aを駆動して、ズームレンズ2aを光軸方向に移動させる。フォーカスドライバ110bは、コントローラ115から入力される制御信号に応じて、フォーカスモータ109bを駆動して、フォーカスレンズ2bを光軸方向に移動させる。絞り・シャッタードライバ110cは、コントローラ115から入力される制御信号に応じて、絞り・シャッターモータ119cを駆動して、メカ機構101の絞りの絞り値の設定やメカ機構101のメカニカルシャッタの開閉駆動を行う。   The zoom driver 110a drives the zoom motor 109a in accordance with the control signal input from the controller 115, and moves the zoom lens 2a in the optical axis direction. The focus driver 110b drives the focus motor 109b in accordance with a control signal input from the controller 115, and moves the focus lens 2b in the optical axis direction. The aperture / shutter driver 110c drives the aperture / shutter motor 119c in response to a control signal input from the controller 115 to set the aperture value of the aperture of the mechanical mechanism 101 and to open / close the mechanical shutter of the mechanical mechanism 101. Do.

SG111は、コントローラ115から入力される制御信号に基づいて、CCD10や2F/E103を駆動する。電池112は、例えば、NiCd、ニッケル水素、リチウム等の電池からなり、DC/DCコンバータ113にDC電圧を供給する。ACアダプタ114は、AC電圧をDC電圧に変換してDC/DCコンバータ16に供給する。DC/DCコンバータ113は、電池112やACアダプタ114から入力されるDC電圧のレベルを変換して、デジタルカメラの各部に電力を供給する。   The SG 111 drives the CCD 10 and 2F / E 103 based on the control signal input from the controller 115. The battery 112 is made of a battery such as NiCd, nickel metal hydride, or lithium, and supplies a DC voltage to the DC / DC converter 113. The AC adapter 114 converts the AC voltage into a DC voltage and supplies it to the DC / DC converter 16. The DC / DC converter 113 converts the level of the DC voltage input from the battery 112 or the AC adapter 114 and supplies power to each part of the digital camera.

通信ドライバ116は、外部装置(例えば、パーソナルコンピュータ等)と接続して、データ通信を行うためのものである。ネットワーク通信部117は、ネットワークとデータ通信するためのものである。   The communication driver 116 is connected to an external device (for example, a personal computer) to perform data communication. The network communication unit 117 is for data communication with the network.

操作部108は、使用者がデジタルカメラに各種指示を与えるための上記図1に示す各種キーやスイッチ(レリーズスイッチ11、モード切換えスイッチ12、ストロボスイッチ13、画質モードスイッチ14、カーソルキー15、DATEスイッチ16、ENTERキー17、SELECTキー18)を備えており、各種キーやスイッチの操作を検出してコントローラ115に出力する。上述のレリーズスイッチ11は、2段階のSWとなっており、その半押し(第1の押し込みストローク)で第1SWオン、その全押し(第2の押し込みストローク)で第2SWオンとなる。デジタルカメラでは、第1SWがオンされるとAE動作およびAF動作が実行され、さらに、第2SWがオンされると撮影動作が実行される。   The operation unit 108 includes various keys and switches (release switch 11, mode change switch 12, strobe switch 13, image quality mode switch 14, cursor key 15, DATE, and the like shown in FIG. 1 for the user to give various instructions to the digital camera. The switch 16, the ENTER key 17, and the SELECT key 18) are provided, and operations of various keys and switches are detected and output to the controller 115. The release switch 11 described above is a two-stage SW, and the first SW is turned on when the switch is half-pressed (first push stroke), and the second SW is turned on when the switch is fully pressed (second push stroke). In the digital camera, the AE operation and the AF operation are executed when the first SW is turned on, and the photographing operation is executed when the second SW is turned on.

図3は、操作部108のモード切換えスイッチ12でSETUPモードが選択された場合に、液晶モニタ7に表示される記録条件のユーザ設定画面を示している。同図に示す記録条件のユーザ設定画面は、各項目の設定条件(”フォーカス”の[AF/マニュアル]、”顔検出(顔検出動作モード)”の「ON/OFF]、”測光点”の「オート/マニュアル]、”長時間露光”の「ON/OFF]、”日付入り”の[ON/OFF])をユーザが設定するための画面である。同図に示す画面で、カーソルキー15により、所望の項目を選択し、選択した項目でSELECTキー18で所望の設定条件を選択し、ENTERキー17で選択した設定条件が設定される。同図に示す例では、”フォーカス”は[AF]、”顔検出(顔検出動作モード)”は「ON]、”測光点”は「オート]、”長時間露光”は「OFF]、”日付入り”は[OFF]が設定されている。   FIG. 3 shows a user setting screen for recording conditions displayed on the liquid crystal monitor 7 when the SETUP mode is selected by the mode change switch 12 of the operation unit 108. The user setting screen for the recording conditions shown in the figure shows the setting conditions for each item ("AF / Manual" for "Focus", "ON / OFF" for "Face detection (face detection operation mode)", and "Metering point". This is a screen for the user to set “AUTO / MANUAL”, “ON / OFF” for “LONG EXPOSURE”, and [ON / OFF] for “DATE”.) In the screen shown in FIG. To select a desired item, select a desired setting condition with the SELECT key 18 in the selected item, and set the setting condition selected with the ENTER key 17. In the example shown in FIG. AF], “Face Detection (Face Detection Operation Mode)” is set to “ON”, “Metering Point” is set to “Auto”, “Long Exposure” is set to “OFF”, and “Date” is set to [OFF]. .

コントローラ115は、デジタルカメラの全体の動作を制御するユニットであり、操作部108からの指示に基づいて、FLASH_ROM115bに格納された制御プログラムに従って、SD_RAM115cをワークエリアとして使用して、デジタルカメラの各部の動作を制御するCPU115aと、CPU115aが実行するための各種制御プログラムや制御に必要なパラメータやデータ等を格納するFLASH_ROM115bと、CPU115aのワークエリアとして使用されるSD_RAM115cとから構成されている。FLASH_ROM115bに格納される制御プログラム、パラメータ、およびデータは、ネットワークを介して配信可能となっており、また、ネットワークを介してダウンロードして格納可能となっている。また、FLASH_ROM115bには、通信ドライバ部116を介して接続される外部装置からプログラム、パラメータ、およびデータが書込可能となっている。   The controller 115 is a unit that controls the overall operation of the digital camera. Based on an instruction from the operation unit 108, the controller 115 uses the SD_RAM 115c as a work area in accordance with a control program stored in the FLASH_ROM 115b. The CPU 115a controls operations, the FLASH_ROM 115b that stores various control programs to be executed by the CPU 115a, parameters and data necessary for control, and the SD_RAM 115c used as a work area of the CPU 115a. The control program, parameters, and data stored in the FLASH_ROM 115b can be distributed via the network, and can be downloaded and stored via the network. In addition, programs, parameters, and data can be written to the FLASH_ROM 115b from an external device connected via the communication driver unit 116.

また、CPU115aは、モニタリング動作、AF動作、AE動作、撮影動作等を制御する。つぎに、上記CPU115aの制御により実行される(1)モニタリング動作、(2)AF動作、(3)静止画撮影動作の基本的な動作の概略を説明する。   The CPU 115a controls a monitoring operation, an AF operation, an AE operation, a photographing operation, and the like. Next, an outline of basic operations of (1) monitoring operation, (2) AF operation, and (3) still image shooting operation executed under the control of the CPU 115a will be described.

(1)モニタリング動作
操作部108のモード切換えスイッチ12で静止画モードや動画モードが選択されると、CPU115aは、液晶モニタ7には被写体のモニタリング画像を表示する。具体的には、CCD102より入力される被写体の画像データは、F/E(CDS、AGC、A/D)103で処理された後、IPP104で信号処理されて、DRAM107に書き込まれる。CPU115aは、DRAM107に格納された画像データに応じたモニタリング画像を液晶モニタ7に表示する。使用者は、この液晶モニタ7に表示される被写体のモニタリング画像を見て撮影の構図を決定することができる。
(1) Monitoring Operation When the still image mode or the moving image mode is selected with the mode change switch 12 of the operation unit 108, the CPU 115a displays a monitoring image of the subject on the liquid crystal monitor 7. More specifically, the subject image data input from the CCD 102 is processed by the F / E (CDS, AGC, A / D) 103, signal-processed by the IPP 104, and written in the DRAM 107. The CPU 115 a displays a monitoring image corresponding to the image data stored in the DRAM 107 on the liquid crystal monitor 7. The user can determine the composition of the shooting by looking at the monitoring image of the subject displayed on the liquid crystal monitor 7.

(2)AF動作
操作部108のモード切換えスイッチ12で静止画モードや動画モードが選択された後、レリーズスイッチ11が半押しされてSW1がオンされると、CPU115aは、AF動作を実行する。具体的には、AF動作では、顔検出モードが設定されている場合には、まず、顔検出処理を実行して人物の顔の検出を行う。具体的には、CCD102より入力された画像データは、F/E(CDS、AGC、A/D)103で処理された後、IPP104で信号処理され、DRAM107に書き込まれる。CPU115aは、DRAM107に格納された画像データから公知の顔認識技術(ガボール・ウェーブレット変換+グラフマッチング)を使用して、人物の顔を検出する。そして、CPU115aは、検出した人物の顔を測距エリア(AFエリア)として、山登りサーボ法等の公知の自動合焦方式を使用した自動合焦処理を実行して、フォーカスレンズ2bを合焦位置に移動させて人物の顔にフォーカスを合わせる。より具体的には、自動合焦処理では、フォーカスレンズ2bを移動させて、CCD102から入力される画像データのうち、測距エリア(AFエリア)内の画像データに応じた被写体のコントラストを示すAF評価値をサンプリングし、AF評価値のピーク位置を合焦位置とする。
(2) AF operation After the still image mode or the moving image mode is selected by the mode switching switch 12 of the operation unit 108, when the release switch 11 is pressed halfway and the SW1 is turned on, the CPU 115a executes the AF operation. Specifically, in the AF operation, when the face detection mode is set, first, face detection processing is executed to detect a human face. Specifically, the image data input from the CCD 102 is processed by the F / E (CDS, AGC, A / D) 103, signal-processed by the IPP 104, and written in the DRAM 107. The CPU 115a detects the face of a person from the image data stored in the DRAM 107 using a known face recognition technique (Gabor wavelet transform + graph matching). Then, the CPU 115a executes an automatic focusing process using a known automatic focusing method such as a hill-climbing servo method using the detected human face as a distance measuring area (AF area), and moves the focus lens 2b to the in-focus position. To focus on the face of the person. More specifically, in the automatic focusing process, the focus lens 2b is moved, and among the image data input from the CCD 102, AF indicating the contrast of the subject according to the image data in the distance measuring area (AF area). The evaluation value is sampled, and the peak position of the AF evaluation value is set as the in-focus position.

なお、ここでは、CPU115aが制御プログラムを実行して顔検出を行うこととしたが、顔検出のための専用のハードウエアを設けることにしても良い。   Here, the CPU 115a executes the control program to perform face detection. However, dedicated hardware for face detection may be provided.

(3)静止画撮影動作
CPU115aは、操作部108のモード切換えスイッチ12で静止画モードが選択され後、操作部108のレリーズスイッチが全押しされてSW2がオンされると、静止画撮影動作を実行する。CCD102から取り込まれた撮像データは、IPP104で信号処理され、圧縮/伸張回路105で圧縮処理が行われた後、DRAM107に書き込まれる。そして、CPU115aは、DRAM107に書き込まれた圧縮画像データを静止画ファイルとしてメモリカード106に書き込む。
(3) Still Image Shooting Operation When the still image mode is selected by the mode change switch 12 of the operation unit 108 and the release switch of the operation unit 108 is fully pressed and SW2 is turned on, the CPU 115a performs the still image shooting operation. Execute. The imaging data captured from the CCD 102 is signal-processed by the IPP 104, compressed by the compression / expansion circuit 105, and then written to the DRAM 107. Then, the CPU 115a writes the compressed image data written in the DRAM 107 to the memory card 106 as a still image file.

図4は、上記デジタルカメラのAF動作を説明するためのフローチャートである。図5〜図6は、液晶モニタ7の表示例を示す図である。図5は被写体の人物の顔が1つの場合の表示例、図6は被写体の人物の顔が複数(2つ)の場合の表示例を示している。上記デジタルカメラのAF動作を図4のフローチャートに従って、図5および図6の液晶モニタ7の表示例を参照しつつ説明する。CPU115aは、操作部108のモード切換えスイッチ12で静止画モードや動画モードが選択された後、レリーズスイッチ13が半押しされてSW1がONされた場合にAF処理を実行する。   FIG. 4 is a flowchart for explaining the AF operation of the digital camera. 5 to 6 are diagrams showing display examples of the liquid crystal monitor 7. FIG. 5 shows a display example when the face of the subject person is one, and FIG. 6 shows a display example when the face of the subject person is plural (two). The AF operation of the digital camera will be described according to the flowchart of FIG. 4 with reference to the display examples of the liquid crystal monitor 7 of FIGS. The CPU 115a executes AF processing when the release switch 13 is pressed halfway and SW1 is turned on after the still image mode or the moving image mode is selected by the mode change switch 12 of the operation unit 108.

図4において、まず、CPU115aは、人物の顔検出を実行する顔検出動作モードであるか否かを判断する(ステップS1)。顔検出動作モードは、上述の記録条件のユーザ設定画面で設定される(上記図3参照)。この判断の結果、顔検出動作モードであると判断した場合には、CPU115aは、顔検出処理を実行して顔の検出を行う(ステップS2)。   In FIG. 4, first, the CPU 115a determines whether or not it is a face detection operation mode for executing human face detection (step S1). The face detection operation mode is set on the above-described recording condition user setting screen (see FIG. 3 above). If it is determined that the face detection operation mode is set, the CPU 115a executes face detection processing to detect a face (step S2).

被写体像の中から顔を検出する方法は、以下に示す(1)〜(3)の手法が公知となっており、本実施の形態1では、そのうちのいずれかの方法を用いるものとする。   As methods for detecting a face from a subject image, the following methods (1) to (3) are known, and in the first embodiment, any one of the methods is used.

(1)テレビジョン学会誌Vol.49、No.6、pp.787−797(1995)の「顔領域抽出に有効な修正HSV表色系の提案」に示されるように、カラー画像をモザイク画像化し、肌色領域に着目して顔領域を抽出する方法。
(2)電子情報通信学会誌Vol.74−D−II、No.11、pp.1625−1627(1991)の「静止濃淡情景画像からの顔領域を抽出する手法」に示されているように、髪や目や口など正面人物像の頭部を構成する各部分に関する幾何学的な形状特徴を利用して正面人物の頭部領域を抽出する方法。
(3)画像ラボ1991−11(1991)の「テレビ電話用顔領域検出とその効果」に示されるように、動画像の場合、フレーム間の人物の微妙な動きによって発生する人物像の輪郭エッジを利用して正面人物像を抽出する方法。
(1) Television Society Journal Vol. 49, no. 6, pp. No. 787-797 (1995) “Proposal of a modified HSV color system effective for face area extraction” is a method of extracting a face area by converting a color image into a mosaic image and paying attention to a skin color area.
(2) Journal of the Institute of Electronics, Information and Communication Engineers, Vol. 74-D-II, no. 11, pp. 1625-1627 (1991) “A method for extracting a face region from a still gray scene image”, the geometrical structure of each part constituting the head of a front human figure such as hair, eyes and mouth. Of extracting the head region of a frontal person using various shape features.
(3) In the case of a moving image, the contour edge of a person image generated by subtle movement of a person between frames, as shown in “Video phone face area detection and its effect” of Image Lab 1991-11 (1991) To extract a frontal portrait using GIS.

また、CPU115aは、人物の顔を検出した場合には、目、鼻、口、耳の検出を行う。顔の中の目、鼻、口、耳の検出は公知の方法を使用して検出することができる。例えば、目の検出は、特開平3−17696号公報、特開平4−255015号公報、特開平5−300601号公報、および特開平9−21611号公報、特開平9−251342号公報等に記載されている技術を使用することができる。   Further, when detecting the face of a person, the CPU 115a detects eyes, nose, mouth, and ears. Detection of eyes, nose, mouth, and ears in the face can be detected using known methods. For example, eye detection is described in JP-A-3-17696, JP-A-4-255015, JP-A-5-300601, JP-A-9-21611, JP-A-9-251342, and the like. Technology can be used.

そして、CPU115aは、顔を検出したか否かを判断する(ステップS3)。この判断の結果、顔を検出した場合には、CPU115aは、液晶モニタ7に表示されている画像データにおいて、人物の顔部分に矩形の枠を表示(顔検出実行結果OK表示)して、顔が検出された旨をユーザに報知する(ステップS4)。図5(A)は、液晶モニタ7に表示される画像データ(モニタリング画像)の表示例(人物の顔が1つの場合)を示している。図5(B)は、図5(A)の画像データの人物の顔部分に矩形の枠Aを表示した場合の表示例を示している。図6(A)は、人物の顔が複数(2つ)ある場合の液晶モニタ7に表示される画像データ(モニタリング画像)の表示例を示している。図6(B)は、図6(A)の画像データの人物の顔部分に矩形の枠A1、A2を表示した場合の表示例を示している。   Then, the CPU 115a determines whether or not a face has been detected (step S3). If a face is detected as a result of this determination, the CPU 115a displays a rectangular frame on the face portion of the person (face detection execution result OK display) in the image data displayed on the liquid crystal monitor 7, and the face is detected. Is notified to the user (step S4). FIG. 5A shows a display example of the image data (monitoring image) displayed on the liquid crystal monitor 7 (in the case of one person's face). FIG. 5B shows a display example when a rectangular frame A is displayed on the face portion of the person in the image data of FIG. FIG. 6A shows a display example of image data (monitoring image) displayed on the liquid crystal monitor 7 when there are a plurality (two) of human faces. FIG. 6B shows a display example when rectangular frames A1 and A2 are displayed on the face portion of the person in the image data of FIG. 6A.

そして、CPU115aは、複数の顔があるか否かを判断する(ステップS5)。この判断の結果、複数の顔を検出した場合には、CPU115aは、ユーザが測距エリアを選択する測距エリア選択モードであるか否かを判断する(ステップS6)。測距エリア選択モードは、上述の記録条件のユーザ設定画面で設定される(上記図3参照)。この判断の結果、測距エリア選択モードでないと判断した場合には、CPU115aは、中央部に近い顔を測距エリアとして設定した後(ステップS7)、前述した自動合焦処理を実行する(ステップS8)。   Then, the CPU 115a determines whether there are a plurality of faces (step S5). If a plurality of faces are detected as a result of this determination, the CPU 115a determines whether or not it is a distance measurement area selection mode in which the user selects a distance measurement area (step S6). The ranging area selection mode is set on the user setting screen for the recording conditions described above (see FIG. 3 above). As a result of this determination, if it is determined that the mode is not the distance measurement area selection mode, the CPU 115a sets the face close to the center as the distance measurement area (step S7), and then executes the automatic focusing process described above (step S7). S8).

他方、上記ステップS6で、測距エリア選択モードであると判断した場合には、CPU115aは、液晶モニタ7にユーザが測距エリアを選択するための文字等を表示する(ステップS11)。図6(C)は、図6(B)の画面でユーザが測距エリアを選択するための文字等(測距エリアを選択するためのガイダンス表示)を表示した表示例を示している。   On the other hand, if it is determined in step S6 that the distance measurement area selection mode is set, the CPU 115a displays characters and the like for the user to select the distance measurement area on the liquid crystal monitor 7 (step S11). FIG. 6C shows a display example in which characters and the like (guidance display for selecting a distance measuring area) for the user to select a distance measuring area are displayed on the screen of FIG. 6B.

続いて、ユーザの操作部108の操作で、液晶モニタ7に表示された顔認識した位置の中から所望の位置が測距エリアとして選択される(ステップS12)。上記図6(C)において、ユーザは、カーソルキー15の操作で矩形の枠A1、A2のいずれかを選択し、ENTERキー17で選択した矩形の枠を測距エリアとして決定する。図6(D)は、図6(C)において、矩形の枠A2が測距エリアとして選択された場合を示している。   Subsequently, a desired position is selected as a distance measurement area from the face recognized positions displayed on the liquid crystal monitor 7 by the user's operation of the operation unit 108 (step S12). In FIG. 6C, the user selects one of the rectangular frames A1 and A2 by operating the cursor key 15, and determines the rectangular frame selected by the ENTER key 17 as a distance measurement area. FIG. 6D shows a case where the rectangular frame A2 is selected as the distance measurement area in FIG. 6C.

CPU115aは、選択された矩形の枠内を測距エリアに設定した後(ステップS13)、上述の自動合焦処理を実行する(ステップS8)。   The CPU 115a sets the inside of the selected rectangular frame as a distance measurement area (step S13), and then executes the above-described automatic focusing process (step S8).

他方、上記ステップS5において、複数の顔を検出しなかった場合、すなわち、1つの顔のみを検出した場合には、顔の中で、目、鼻、口、耳を検出できたか否かを判断する(ステップS14)。この判断の結果、目、鼻、口、耳を検出できなかった場合には、CPU115aは、顔の中心位置を測距エリアに設定した後(ステップS17)、上述の自動合焦処理を行う(ステップS8)。   On the other hand, if a plurality of faces are not detected in step S5, that is, if only one face is detected, it is determined whether eyes, nose, mouth and ears can be detected in the face. (Step S14). If the eyes, nose, mouth, and ears are not detected as a result of this determination, the CPU 115a sets the center position of the face to the distance measuring area (step S17), and then performs the automatic focusing process described above (step S17). Step S8).

他方、上記ステップS14において、目、鼻、口、耳を検出できた場合には、ユーザが測距エリアを選択する測距エリア選択モードであるか否かを判断する(ステップS15)。この判断の結果、測距エリア選択モードでないと判断した場合には、CPU115aは、目の位置を測距エリアとして設定した後(ステップS18)、上述の自動合焦処理を実行する(ステップS8)。   On the other hand, if the eyes, nose, mouth, and ears can be detected in step S14, it is determined whether or not it is a distance measurement area selection mode in which the user selects a distance measurement area (step S15). As a result of this determination, if it is determined that the mode is not the distance measurement area selection mode, the CPU 115a sets the eye position as the distance measurement area (step S18), and then executes the automatic focusing process described above (step S8). .

また、上記ステップS15において、測距エリア選択モードであると判断した場合には、CPU115aは、液晶モニタ7に目、鼻、口、耳にそれぞれ矩形の枠を表示する(ステップS16)。図5(C)は、上記図5(A)の被写体の画像データにおいて、目、鼻、口にそれぞれ矩形の枠a1〜a4を表示した場合の表示例を示す図である。   If it is determined in step S15 that the distance measurement area selection mode is set, the CPU 115a displays rectangular frames for the eyes, nose, mouth, and ears on the liquid crystal monitor 7 (step S16). FIG. 5C is a diagram showing a display example when rectangular frames a1 to a4 are displayed on the eyes, nose, and mouth, respectively, in the image data of the subject in FIG. 5A.

そして、ユーザの操作部108の操作により、この液晶モニタ7に表示された目、鼻、口、耳を認識した位置の中から所望の位置が測距エリアとして選択される(ステップS12)。上記図5(C)において、ユーザは、カーソルキー15を操作で矩形の枠a1〜a4のいずれかを選択し、ENTERキー17で選択した矩形の枠を測距エリアとして決定する。図5(D)は、図5(C)において、矩形の枠a3が測距エリアとして選択された場合を示している。   Then, a desired position is selected as a distance measurement area from the positions where the eyes, nose, mouth, and ears displayed on the liquid crystal monitor 7 are recognized by the operation of the operation unit 108 by the user (step S12). In FIG. 5C, the user selects one of the rectangular frames a1 to a4 by operating the cursor key 15, and determines the rectangular frame selected with the ENTER key 17 as a distance measurement area. FIG. 5D shows a case where the rectangular frame a3 is selected as the distance measurement area in FIG. 5C.

CPU115aは、ユーザにより決定された矩形の枠内の顔の部分を測距エリアに設定した後(ステップS13)、上述の自動合焦処理を実行する(ステップS8)。   The CPU 115a sets the face portion within the rectangular frame determined by the user as the distance measurement area (step S13), and then executes the above-described automatic focusing process (step S8).

他方、上記ステップS1において顔検出動作モードでないと判断した場合、または、上記ステップS3において顔を検出しなかった場合には、通常の測距エリア位置を測距エリアとして設定した後(ステップS10)、上述の自動合焦処理を実行する(ステップS8)。そして、レリーズスイッチ11が全押しされると、撮影が行われる。   On the other hand, if it is determined in step S1 that the face detection operation mode is not selected, or if no face is detected in step S3, the normal distance measurement area position is set as the distance measurement area (step S10). Then, the automatic focusing process described above is executed (step S8). When the release switch 11 is fully pressed, shooting is performed.

以上説明したように、実施の形態1によれば、CPU115aは、CCD102で入力した画像データの中から人物の顔を検出し、検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行うこととしたので、画面内の人物の顔を測距エリアとして自動合焦動作を実行して、画面内の人物の位置に拘わらず、人物の顔にピントを合わせることができ、自動合焦動作時と撮影時とで構図を変更することなく人物の撮影を行うことが可能となる。   As described above, according to the first embodiment, the CPU 115a detects a human face from the image data input by the CCD 102, and automatically uses at least a part of the detected human face as a distance measurement area. Since the focus control is performed, it is possible to focus on the person's face regardless of the position of the person on the screen by executing the automatic focusing operation using the person's face on the screen as the distance measurement area. It becomes possible to shoot a person without changing the composition between the automatic focusing operation and shooting.

また、実施の形態1によれば、CPU115aは、人物の顔を検出した場合には、液晶モニタ7に表示される画像データの顔に矩形の枠(上記図5参照)を表示することにしてので、顔が検出された旨をユーザに報知して、ユーザに顔が検出された旨を識認させることができる。   Further, according to the first embodiment, when the CPU 115a detects a human face, the CPU 115a displays a rectangular frame (see FIG. 5 above) on the face of the image data displayed on the liquid crystal monitor 7. Therefore, it is possible to notify the user that the face has been detected, and to let the user recognize that the face has been detected.

また、実施の形態1によれば、CPU115aは、複数の顔が検出された場合には、中央部に近い顔を測距エリアとして、自動合焦制御を行うこととしたので、高い確率で主要被写体にピントを合わせることができ、また、集合写真においても、中央部の顔に対して前後左右にある顔も高い確率でピントを合わせる可能性を高くすることが可能となる。   In addition, according to the first embodiment, when a plurality of faces are detected, the CPU 115a performs the automatic focusing control with the face close to the center as the distance measurement area, and thus the main operation is performed with high probability. It is possible to focus on the subject, and also in the group photo, it is possible to increase the possibility of focusing on the front, back, left, and right faces of the center face with a high probability.

また、実施の形態1によれば、複数の顔が検出された場合に、使用者が当該複数の顔の中から測距エリアを選択し(図6参照)、CPU115aは、使用者が選択した測距エリアに基づき自動合焦制御を行うこととしたので、どの人物に合焦させるかをユーザが選択することが可能となる。   Further, according to the first embodiment, when a plurality of faces are detected, the user selects a ranging area from the plurality of faces (see FIG. 6), and the CPU 115a selects the user's selection. Since the automatic focusing control is performed based on the distance measurement area, the user can select which person to focus on.

また、実施の形態1によれば、顔検出動作の許可/禁止をユーザが設定可能としたので(上記図3参照)、使用者は、顔検出動作の許可/禁止を設定して不要な顔検出動作を省くことができ、より迅速な撮影が可能となる。   Further, according to the first embodiment, since the user can set the permission / prohibition of the face detection operation (see FIG. 3 above), the user sets the permission / prohibition of the face detection operation and sets an unnecessary face. The detection operation can be omitted, and more rapid imaging is possible.

また、実施の形態1によれば、CPU115aは、人物の顔の目を検出した場合において、測距エリア選択モードが設定されていない場合には、目を測距エリアとして自動合焦制御を行うこととしたので、目にピントが合った画像を簡単に撮影することが可能となる。   Further, according to the first embodiment, when the eye of a person's face is detected and the ranging area selection mode is not set, the CPU 115a performs automatic focusing control using the eyes as the ranging area. As a result, it is possible to easily shoot an image in focus on the eyes.

また、実施の形態1によれば、人物の顔の目、口、鼻、耳のいずれかを検出した場合において、測距エリア選択モードが設定されている場合には、ユーザが、検出された目、鼻、口、耳の中から測距エリアを選択し、CPU115aは、ユーザに選択された測距エリアに基づき自動合焦制御を行うこととしたので、ユーザがピントを合わせたい顔の部分にピントを合わせることができ、ユーザの撮影意図を反映させることが可能となる。   Further, according to the first embodiment, when any one of the eyes, mouth, nose, and ears of a person's face is detected, the user is detected when the ranging area selection mode is set. Since a focus detection area is selected from the eyes, nose, mouth, and ears, and the CPU 115a performs automatic focusing control based on the focus detection area selected by the user, the portion of the face that the user wants to focus on It is possible to focus on the image and reflect the user's intention to shoot.

(実施の形態2)
実施の形態2にかかるデジタルカメラを図7〜図9を参照して説明する。実施の形態2にかかるデジタルカメラの構成は、実施の形態1と同様の構成(図1および図2参照)とすることができる。実施の形態2のデジタルカメラは、検出した人物の顔の大きさに応じて測距エリアの大きさを変更するものである。
(Embodiment 2)
A digital camera according to the second embodiment will be described with reference to FIGS. The configuration of the digital camera according to the second embodiment can be the same as that of the first embodiment (see FIGS. 1 and 2). The digital camera according to the second embodiment changes the size of the distance measurement area according to the detected size of the person's face.

図7は、操作部108のモード切換えスイッチ12でSETUPモードが選択された場合に、液晶モニタ7に表示される記録条件のユーザ設定画面を示している。同図に示す記録条件のユーザ設定画面は、各項目の設定条件(”フォーカス”の[AF/マニュアル]、”顔検出(顔検出動作モード)”の「ON/OFF]、”測距エリア自動設定(測距エリア自動設定モード)”の「ON/OFF]、”測光点”の「オート/マニュアル]、”長時間露光”の「ON/OFF]、”日付入り”の[ON/OFF])をユーザが設定するための画面である。同図に示す画面で、カーソルキー15により、所望の項目を選択し、選択した項目でSELECTキー18で所望の設定条件を選択し、ENTERキー17で選択した設定条件が設定される。同図に示す例では、”フォーカス”は[AF]、”顔検出(顔検出動作モード)”は「ON]、”、”測距エリア自動設定(測距エリア自動設定モード)”の「ON]、”測光点”は「オート]、”長時間露光”は「OFF]、”日付入り”は[OFF]が設定されている。   FIG. 7 shows a user setting screen for recording conditions displayed on the liquid crystal monitor 7 when the SETUP mode is selected by the mode selector switch 12 of the operation unit 108. The user setting screen for recording conditions shown in the figure shows the setting conditions for each item ("AF / Manual" for "Focus", "ON / OFF" for "Face detection (face detection operation mode)", and "Automatic ranging area" "ON / OFF" for "Setting (ranging area automatic setting mode)", "Auto / Manual" for "Metering point", "ON / OFF" for "Long exposure", [ON / OFF] for "Date" In the screen shown in the figure, a desired item is selected by the cursor key 15, a desired setting condition is selected by the SELECT key 18 in the selected item, and the ENTER key 17 is selected. In the example shown in the figure, “Focus” is set to [AF], “Face detection (face detection operation mode)” is set to “ON”, and “Automatic ranging area setting (measurement) Distance area automatic setting mode) ” ON], "photometric point" is "Auto," long-time exposure "is" OFF], "dated" is set to [OFF].

図8は、実施の形態2のデジタルカメラのAF動作を説明するためのフローチャートである。図9は、液晶モニタ7の表示例を示す図である。実施の形態2のデジタルカメラのAF動作を図8のフローチャートに従って、図9の液晶モニタ7の表示例を参照しつつ説明する。CPU115aは、操作部108のモード切換えスイッチ12で静止画モードや動画モードが選択された後、レリーズスイッチ13が半押しされてSW1がONされた場合にAF処理を実行する。   FIG. 8 is a flowchart for explaining the AF operation of the digital camera according to the second embodiment. FIG. 9 is a diagram showing a display example of the liquid crystal monitor 7. The AF operation of the digital camera of the second embodiment will be described according to the flowchart of FIG. 8 with reference to the display example of the liquid crystal monitor 7 of FIG. The CPU 115a executes AF processing when the release switch 13 is pressed halfway and SW1 is turned on after the still image mode or the moving image mode is selected by the mode change switch 12 of the operation unit 108.

図8において、まず、CPU115aは、人物の顔検出を実行する顔検出動作モードであるか否かを判断する(ステップS31)。顔検出動作モードは、上述の記録条件のユーザ設定画面で設定される(上記図7参照)。この判断の結果、顔検出動作モードであると判断した場合には、CPU115aは、実施の形態1と同様の顔検出処理を実行する(ステップS32)。   In FIG. 8, first, the CPU 115a determines whether or not it is a face detection operation mode in which human face detection is executed (step S31). The face detection operation mode is set on the above-described recording condition user setting screen (see FIG. 7 above). As a result of this determination, if it is determined that the face detection operation mode is set, the CPU 115a executes face detection processing similar to that in the first embodiment (step S32).

そして、CPU115aは、顔を検出したか否かを判断する(ステップS33)。この判断の結果、顔を検出した場合には、CPU115aは、液晶モニタ7に表示されている画像データにおいて、人物の顔部分に矩形の枠を表示(顔検出実行結果OK表示)して、顔が検出された旨をユーザに報知する(ステップS34)。   Then, the CPU 115a determines whether or not a face has been detected (step S33). If a face is detected as a result of this determination, the CPU 115a displays a rectangular frame on the face portion of the person (face detection execution result OK display) in the image data displayed on the liquid crystal monitor 7, and the face is detected. Is notified to the user (step S34).

CPU115aは、自動的に測距エリアの大きさを設定する測距エリア自動設定モードであるか否かを判断する(ステップS35)。この測距エリア自動設定モードは、上述の記録条件のユーザ設定画面で設定される(上記図7参照)。この判断の結果、測距エリア自動設定モードである場合には、CPU115aは、検出した顔の大きさと所定値1を比較し(ステップS36)、顔の大きさが所定値1より大きくない場合、測距エリアの大きさ1を設定する(ステップS41)。他方、顔の大きさが所定値1より大きい場合、CPU115aは、顔の大きさが所定値2(但し、所定値2>所定値1)と比較し(ステップS37)、顔の大きさが所定値2よりも大きい場合には、CPU115aは、測距エリアの大きさ3を設定する一方(ステップS38)、顔の大きさが所定値2よりも大きくない場合には、測距エリアの大きさ2を設定する(ステップS42)。   The CPU 115a determines whether or not it is a distance measurement area automatic setting mode for automatically setting the size of the distance measurement area (step S35). This automatic ranging area setting mode is set on the user setting screen for the recording conditions described above (see FIG. 7). If the result of this determination is that it is in the distance measurement area automatic setting mode, the CPU 115a compares the detected face size with the predetermined value 1 (step S36), and if the face size is not greater than the predetermined value 1, A distance measurement area size 1 is set (step S41). On the other hand, when the face size is larger than the predetermined value 1, the CPU 115a compares the face size with the predetermined value 2 (however, the predetermined value 2> the predetermined value 1) (step S37), and the face size is predetermined. If the value is larger than 2, the CPU 115a sets the distance measurement area size 3 (step S38). If the face size is not larger than the predetermined value 2, the CPU 115a sets the distance measurement area size. 2 is set (step S42).

他方、上記ステップS35において、測距エリア自動設定モードでない場合には、ユーザが測距エリアの大きさ1、2、3を設定する(ステップS43)。上記図5(A)は、液晶モニタ7に表示される画像データ(モニタリング画像)の表示例を示している。図9は、上記図5(A)の画面において、ユーザが、測距エリアの大きさを選択するための画面が表示されている。図9では、大きさの異なる3つの測距エリアの大きさ(大きさ1、大きさ2、大きさ3)が表示されており、ユーザは、カーソルキー15を操作して、大きさ1、大きさ2、大きさ3のいずれかを選択し、ENTERキー17で選択した大きさを測距エリアの大きさとして決定する。図9に示す例では、測距エリアの大きさ2が選択されている。   On the other hand, if the distance measurement area automatic setting mode is not set in step S35, the user sets the distance measurement area sizes 1, 2, and 3 (step S43). FIG. 5A shows a display example of the image data (monitoring image) displayed on the liquid crystal monitor 7. FIG. 9 shows a screen for the user to select the size of the distance measurement area on the screen of FIG. In FIG. 9, the sizes (size 1, size 2, size 3) of three ranging areas having different sizes are displayed, and the user operates the cursor key 15 to display size 1, Either size 2 or size 3 is selected, and the size selected by the ENTER key 17 is determined as the size of the distance measurement area. In the example shown in FIG. 9, the distance measurement area size 2 is selected.

そして、CPU115aは、自動的に設定したまたはユーザが選択した大きさの測距エリアを検出した人物の顔の部分に設定した後、上述の自動合焦処理を実行する(ステップS39)。   Then, the CPU 115a sets the distance measuring area that is automatically set or selected by the user to the face portion of the detected person, and then executes the above-described automatic focusing process (step S39).

他方、上記ステップS31において顔検出動作モードでないと判断した場合、または、上記ステップS33において顔を検出しなかった場合には、通常の測距エリア位置を測距エリアとして設定した後(ステップS40)、上述の自動合焦処理を実行する(ステップS39)。   On the other hand, if it is determined in step S31 that the face detection operation mode is not selected, or if no face is detected in step S33, the normal distance measurement area position is set as the distance measurement area (step S40). Then, the automatic focusing process described above is executed (step S39).

以上説明したように、実施の形態2によれば、測距エリア自動判定モードが設定されている場合には、CPU115aは、検出した人物の顔の大きさに基づいて、測距エリアの大きさを自動的に設定して自動合焦制御を行うこととしたので、合焦精度を向上させることが可能となる。   As described above, according to the second embodiment, when the ranging area automatic determination mode is set, the CPU 115a determines the size of the ranging area based on the detected face size of the person. Is automatically set and automatic focusing control is performed, so that the focusing accuracy can be improved.

また、実施の形態2によれば、測距エリア自動判定モードが設定されていない場合には、測距エリアの大きさを使用者が選択し(上記図9参照)、CPU115aは、使用者が選択した大きさの測距エリアを設定して自動合焦制御を行うこととしたので、顔の中の特定の部分にピントを合わせる場合に合焦精度を向上させることが可能となる。   According to the second embodiment, when the automatic ranging area determination mode is not set, the user selects the size of the ranging area (see FIG. 9), and the CPU 115a Since the autofocus control is performed by setting the distance measurement area of the selected size, it is possible to improve the focus accuracy when focusing on a specific part of the face.

なお、本発明は、上記した実施の形態1および実施の形態2に限定されるものではなく、発明の要旨を変更しない範囲で適宜変形可能であり、例えば、以下のような変形が可能である。   The present invention is not limited to the above-described first and second embodiments, and can be appropriately modified without changing the gist of the invention. For example, the following modifications are possible. .

(変形例1)
本発明のデジタルカメラに、人物を撮影するための人物撮影モード(第1の撮影モード)と風景を撮影するための風景撮影モード(第2の撮影モード)を設け、このモードを例えばモード切り替えスイッチ12で選択できるようにしておき、CPU115aは、人物撮影モードが選択された場合に、顔検出処理を伴う自動合焦制御(上記図4のステップS1で「YES」以降の処理)を行い、風景撮影モードが選択された場合には、顔検出処理を行わないで、通常の測距エリアに基づいて自動合焦制御(上記図4のステップS1で「NO」以降の処理)を行うことにしても良い。これは、顔にピントを合わせる必要のある人物撮影モードでは、顔検出処理は必要であるが、顔にピントを合わせる必要のない風景撮影モードでは、顔検出処理は不要だからである。
(Modification 1)
The digital camera of the present invention is provided with a person shooting mode (first shooting mode) for shooting a person and a landscape shooting mode (second shooting mode) for shooting a landscape. 12, the CPU 115 a performs automatic focusing control with face detection processing (processing after “YES” in step S <b> 1 in FIG. 4) when the portrait mode is selected, When the photographing mode is selected, face detection processing is not performed, and automatic focusing control (processing after “NO” in step S1 in FIG. 4) is performed based on a normal distance measurement area. Also good. This is because the face detection process is necessary in the person shooting mode that needs to focus on the face, but the face detection process is unnecessary in the landscape shooting mode that does not need to focus on the face.

(変形例2)
CPU115aは、顔検出処理で検出した顔を測距エリアとして自動合焦制御を行う毎に、その測距結果(合焦位置)をFLASH_ROM115bに記憶しておき、FLASH_ROM115bに記憶された過去の測距結果から次の合焦位置を予測することにしても良い。これにより、過去の合焦位置から次の合焦位置を予測して迅速に顔に合焦でき、迅速な撮影が可能となる。
(Modification 2)
The CPU 115a stores the distance measurement result (focus position) in the FLASH_ROM 115b each time automatic focus control is performed using the face detected by the face detection process as the distance measurement area, and the past distance measurement stored in the FLASH_ROM 115b. The next in-focus position may be predicted from the result. As a result, the next in-focus position can be predicted from the in-focus position in the past, and the face can be in-focus quickly, and rapid imaging is possible.

1 カメラ本体
2 撮影レンズ
3 ストロボユニット
4 ファインダ
5 上蓋
6 ヒンジ
7 液晶モニタ
8 サブLCD
9 上蓋開閉検知スイッチ
10 バリア開閉つまみ
11 レリーズスイッチ
12 モード切換えスイッチ
13 ストロボスイッチ
14 画質モードスイッチ
15 カーソルキー
16 DATEスイッチ
17 ENTERキー
18 SELECTキー
2a ズームレンズ
2b フォーカスレンズ
101 メカ機構
102 CCD
103 F/E
104 IPP
105 圧縮/伸張回路
106 メモリカード
107 DRAM
108 操作部
109a ズームレンズモータ
109b フォーカスモータ
109c 絞り・シャッターモータ
110a ズームドライバ
110b フォーカスドライバ
110c 絞り・シャッタードライバ
111 SG
112 電池
113 DC/DCコンバータ
114 ACアダプタ
115 コントローラ
115a CPU
115b FLASH_ROM
115c SD_RAM
116 通信ドライバ部
117 ネットワーク通信部
DESCRIPTION OF SYMBOLS 1 Camera body 2 Shooting lens 3 Strobe unit 4 Finder 5 Top cover 6 Hinge 7 LCD monitor 8 Sub LCD
9 Upper lid open / close detection switch 10 Barrier open / close knob 11 Release switch 12 Mode switch 13 Strobe switch 14 Image quality mode switch 15 Cursor key 16 DATE switch 17 ENTER key 18 SELECT key 2a Zoom lens 2b Focus lens 101 Mechanical mechanism 102 CCD
103 F / E
104 IPP
105 Compression / decompression circuit 106 Memory card 107 DRAM
108 Operation Unit 109a Zoom Lens Motor 109b Focus Motor 109c Aperture / Shutter Motor 110a Zoom Driver 110b Focus Driver 110c Aperture / Shutter Driver 111 SG
112 Battery 113 DC / DC Converter 114 AC Adapter 115 Controller 115a CPU
115b FLASH_ROM
115c SD_RAM
116 Communication Driver Unit 117 Network Communication Unit

Claims (23)

自動合焦機能を備えた撮像装置において、
被写体に応じた画像データを入力するための撮像手段と、
前記撮像手段から入力される画像データの中から人物の顔を検出するための顔検出手段と、
前記顔検出手段で検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行う自動合焦制御手段と、
を備えたことを特徴とする撮像装置。
In an imaging device with an automatic focusing function,
Imaging means for inputting image data according to the subject;
Face detection means for detecting a human face from the image data input from the imaging means;
Automatic focus control means for performing automatic focus control using at least a part of the face of the person detected by the face detection means as a ranging area;
An imaging apparatus comprising:
前記顔検出手段により人物の顔が検出された旨を使用者に報知するための報知手段を備えたことを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, further comprising a notification unit configured to notify a user that a human face has been detected by the face detection unit. 前記自動合焦制御手段は、前記顔検出手段により複数の顔が検出された場合には、中央部に近い顔の少なくとも一部を前記測距エリアとして、自動合焦制御を行うことを特徴とする請求項1または請求項2に記載の撮像装置。   The automatic focusing control means performs automatic focusing control by using at least a part of a face close to a central portion as the distance measuring area when a plurality of faces are detected by the face detecting means. The imaging apparatus according to claim 1 or 2. さらに、前記顔検出手段により複数の顔が検出された場合に、使用者が当該複数の顔の中から前記測距エリアを選択するための測距エリア選択手段を備え、
前記自動合焦制御手段は、前記測距エリア選択手段で選択された測距エリアに基づき自動合焦制御を行うことを特徴とする請求項1または請求項2に記載の撮像装置。
Furthermore, when a plurality of faces are detected by the face detection means, a distance measurement area selection means for the user to select the distance measurement area from the plurality of faces,
The imaging apparatus according to claim 1, wherein the automatic focusing control unit performs automatic focusing control based on a ranging area selected by the ranging area selecting unit.
前記顔検出手段の顔検出動作の許可/禁止を使用者が設定するための顔検出動作設定手段を備え、
前記自動合焦制御手段は、前記顔検出動作設定手段により前記顔検出手段の顔検出動作の許可が設定されている場合には、前記顔検出手段に顔検出動作を実行させ、検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行う一方、前記顔検出動作設定手段により前記顔検出手段の顔検出動作の禁止が設定されている場合には、前記顔検出手段に顔検出動作を実行させることなく、自動合焦制御を行うことを特徴とする請求項1〜請求項4のいずれか1つに記載の撮像装置。
A face detection operation setting means for allowing a user to set permission / prohibition of the face detection operation of the face detection means;
When the face detection operation permission is set by the face detection operation setting unit, the automatic focus control unit causes the face detection unit to execute a face detection operation and detect the detected person Autofocus control is performed using at least a part of the face as a distance measurement area, and when the face detection operation prohibition is set by the face detection operation setting unit, the face detection unit The image pickup apparatus according to claim 1, wherein automatic focusing control is performed without causing a face detection operation to be performed.
前記顔検出手段の顔検出動作を実行して自動合焦を行う第1の撮影モードまたは前記顔検出手段の顔検出動作を実行しないで自動合焦を行う第2の撮影モードを設定するためのモード設定手段を備え、
前記自動合焦制御手段は、前記モード設定手段により第1の撮影モードが設定されている場合には、前記顔検出手段に顔検出動作を実行させ、検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行う一方、前記モード設定手段により第2の撮影モードが設定されている場合には、前記顔検出手段に顔検出動作を実行させることなく、自動合焦制御を行うことを特徴とする請求項1〜請求項4のいずれか1つに記載の撮像装置。
For setting a first shooting mode in which the face detection operation of the face detection unit is executed and automatic focusing is performed or a second shooting mode in which automatic focusing is performed without executing the face detection operation of the face detection unit Equipped with mode setting means,
When the first shooting mode is set by the mode setting unit, the automatic focusing control unit causes the face detection unit to perform a face detection operation, and detects at least a part of the detected human face. While auto focus control is performed as a distance measurement area, when the second shooting mode is set by the mode setting means, automatic focus control is performed without causing the face detection means to perform a face detection operation. The imaging apparatus according to claim 1, wherein:
前記顔検出手段は、人物の顔を検出した場合には、さらに、その目の検出を行い、
前記自動合焦制御手段は、前記顔検出手段により目が検出された場合には、目の少なくとも一部を前記測距エリアとして自動合焦制御を行うことを特徴とする請求項1〜請求項6のいずれか1つに記載の撮像装置。
When the face detection means detects a human face, it further detects the eyes,
The automatic focusing control means, when eyes are detected by the face detecting means, performs automatic focusing control using at least a part of the eyes as the distance measuring area. 6. The imaging device according to any one of 6.
前記顔検出手段は、人物の顔を検出した場合には、さらに、その目、鼻、口を検出し、
さらに、前記顔検出手段により、目、鼻、口が検出された場合に、使用者が目、鼻、口の中から前記測距エリアを選択するための第2の測距エリア選択手段を備え、
前記自動合焦制御手段は、前記第2の測距エリア選択手段で選択された測距エリアに基づき自動合焦制御を行うことを特徴とする請求項1〜請求項6のいずれか1つに記載の撮像装置。
When the face detection means detects the face of a person, it further detects its eyes, nose and mouth,
Furthermore, when eyes, nose, and mouth are detected by the face detecting means, a second distance measuring area selecting means is provided for the user to select the distance measuring area from the eyes, nose, and mouth. ,
7. The automatic focusing control unit according to claim 1, wherein the automatic focusing control unit performs automatic focusing control based on a ranging area selected by the second ranging area selecting unit. The imaging device described.
前記自動合焦制御手段は、前記顔検出手段により検出された人物の顔の大きさに基づいて、前記測距エリアの大きさを設定して自動合焦制御を行うことを特徴とする請求項1または請求項2に記載の撮像装置。   The automatic focusing control means performs automatic focusing control by setting a size of the distance measuring area based on a size of a human face detected by the face detecting means. The imaging device according to claim 1 or 2. さらに、前記測距エリアの大きさを使用者が選択するための測距エリア大きさ選択手段を備え、
前記自動合焦制御手段は、前記測距エリア大きさ選択手段で選択された大きさの測距エリアを設定して自動合焦制御を行うことを特徴とする請求項1または請求項2に記載の撮像装置。
Furthermore, a distance measurement area size selection means for the user to select the size of the distance measurement area is provided,
3. The automatic focusing control unit according to claim 1, wherein the automatic focusing control unit performs automatic focusing control by setting a ranging area having a size selected by the ranging area size selecting unit. Imaging device.
前記自動合焦制御手段は、前記顔検出手段で検出された人物の顔の少なくとも一部を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測することを特徴とする請求項1〜請求項10のいずれか1つに記載の撮像装置。   Each time the automatic focusing control means performs automatic focusing control using at least a part of the face of the person detected by the face detecting means as a ranging area, the ranging result is stored in a memory, The imaging apparatus according to any one of claims 1 to 10, wherein a next in-focus position is predicted from a past distance measurement result stored in a memory. 被写体に応じた画像データを入力する画像入力工程と、
前記画像入力工程で入力した画像データの中から人物の顔を検出する顔検出工程と、
前記顔検出工程で検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行う自動合焦制御工程と、
を含むことを特徴とする自動合焦方法。
An image input process for inputting image data according to the subject;
A face detection step of detecting a human face from the image data input in the image input step;
An automatic focusing control step for performing automatic focusing control using at least a part of the face of the person detected in the face detection step as a ranging area;
An automatic focusing method comprising:
さらに、前記顔検出工程により人物の顔が検出された旨を使用者に報知するための報知工程を含むことを特徴とする請求項12に記載の自動合焦方法。   The automatic focusing method according to claim 12, further comprising a notifying step for notifying a user that a human face has been detected by the face detecting step. 前記自動合焦制御工程では、前記顔検出工程により複数の顔が検出された場合には、中央部に近い顔の少なくとも一部を前記測距エリアとして、自動合焦制御を行うことを特徴とする請求項12または請求項13に記載の自動合焦方法。   In the automatic focus control step, when a plurality of faces are detected by the face detection step, automatic focus control is performed using at least a part of the face near the center as the distance measurement area. The automatic focusing method according to claim 12 or 13. さらに、前記顔検出工程により複数の顔が検出された場合に、使用者が当該複数の顔の中から前記測距エリアを選択するための測距エリア選択工程を含み、
前記自動合焦制御工程では、前記測距エリア選択工程で選択された測距エリアに基づき自動合焦制御を行うことを特徴とする請求項12または請求項13に記載の自動合焦方法。
Furthermore, when a plurality of faces are detected by the face detection step, a ranging area selection step for a user to select the ranging area from the plurality of faces,
The automatic focusing method according to claim 12 or 13, wherein, in the automatic focusing control step, automatic focusing control is performed based on the ranging area selected in the ranging area selecting step.
さらに、前記顔検出工程の顔検出動作の許可/禁止を使用者が設定するための顔検出動作設定工程を含み、
前記自動合焦制御工程では、前記顔検出動作設定工程により前記顔検出工程のの顔検出動作の許可が設定されている場合には、前記顔検出工程に顔検出動作を実行させ、検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行う一方、前記顔検出動作設定工程により前記顔検出工程の顔検出動作の禁止が設定されている場合には、前記顔検出工程に顔検出動作を実行させることなく、自動合焦制御を行うことを特徴とする請求項12〜請求項15のいずれか1つに記載の自動合焦方法。
And a face detection operation setting step for a user to set permission / prohibition of the face detection operation in the face detection step,
In the automatic focusing control step, when the face detection operation permission of the face detection step is set by the face detection operation setting step, the face detection operation is executed in the face detection step and detected. While performing automatic focusing control using at least a part of a person's face as a ranging area, if the face detection operation prohibition is set in the face detection operation setting step, the face detection is performed. The automatic focusing method according to any one of claims 12 to 15, wherein automatic focusing control is performed without causing the process to perform a face detection operation.
さらに、前記顔検出工程の顔検出動作を実行して自動合焦を行う第1の撮影モードまたは前記顔検出工程の顔検出動作を実行しないで自動合焦を行う第2の撮影モードを設定するためのモード設定工程を含み、
前記自動合焦制御工程では、前記モード設定工程により第1の撮影モードが設定されている場合には、前記顔検出工程に顔検出動作を実行させ、検出された人物の顔の少なくとも一部を測距エリアとして、自動合焦制御を行う一方、前記モード設定工程により第2の撮影モードが設定されている場合には、前記顔検出工程に顔検出動作を実行させることなく、自動合焦制御を行うことを特徴とする請求項12〜請求項15のいずれか1つに記載の自動合焦方法。
Further, a first photographing mode for performing automatic focusing by executing the face detection operation in the face detection step or a second photographing mode for performing automatic focusing without performing the face detection operation in the face detection step is set. Including a mode setting process for
In the automatic focusing control process, when the first shooting mode is set in the mode setting process, the face detection process is performed in the face detection process, and at least a part of the detected human face is detected. While the automatic focusing control is performed as the distance measurement area, when the second shooting mode is set by the mode setting process, the automatic focusing control is performed without causing the face detection process to perform a face detection operation. The automatic focusing method according to claim 12, wherein the automatic focusing method is performed.
前記顔検出工程では、人物の顔を検出した場合には、さらに、その目の検出を行い、
前記自動合焦制御工程では、前記顔検出工程により目が検出された場合には、目の少なくとも一部を前記測距エリアとして自動合焦制御を行うことを特徴とする請求項12〜請求項17のいずれか1つに記載の自動合焦方法。
In the face detection step, when a human face is detected, the eyes are further detected,
The automatic focusing control step performs automatic focusing control using at least a part of the eyes as the distance measuring area when eyes are detected by the face detection step. The automatic focusing method according to any one of 17.
前記顔検出工程では、人物の顔を検出した場合には、さらに、その目、鼻、口を検出し、
さらに、前記顔検出工程により、目、鼻、口が検出された場合に、使用者が目、鼻、口の中から前記測距エリアを選択するための第2の測距エリア選択工程を含み、
前記自動合焦制御工程では、前記第2の測距エリア選択工程で選択された測距エリアに基づき自動合焦制御を行うことを特徴とする請求項12〜請求項17のいずれか1つに記載の自動合焦方法。
In the face detection step, when a face of a person is detected, the eyes, nose and mouth are further detected.
Furthermore, when eyes, noses, and mouths are detected by the face detection step, a second ranging area selection step for the user to select the ranging areas from the eyes, noses, and mouths is included. ,
18. The automatic focusing control process according to claim 12, wherein automatic focusing control is performed based on the ranging area selected in the second ranging area selection process. The automatic focusing method described.
前記自動合焦制御工程では、前記顔検出工程により検出された人物の顔の大きさに基づいて、前記測距エリアの大きさを設定して自動合焦制御を行うことを特徴とする請求項12または請求項13に記載の自動合焦方法。   The automatic focusing control step performs the automatic focusing control by setting the size of the distance measuring area based on the size of the face of the person detected by the face detecting step. The automatic focusing method according to claim 12 or claim 13. さらに、前記測距エリアの大きさを使用者が選択するための測距エリア大きさ選択工程を含み、
前記自動合焦制御工程では、前記測距エリア大きさ選択工程で選択された大きさの測距エリアを設定して自動合焦制御を行うことを特徴とする請求項12または請求項13に記載の自動合焦方法。
Furthermore, a distance measurement area size selection step for the user to select the size of the distance measurement area,
14. The automatic focusing control process according to claim 12, wherein in the automatic focusing control step, a focusing area having a size selected in the ranging area size selecting step is set and automatic focusing control is performed. Automatic focusing method.
前記自動合焦制御工程では、前記顔検出工程で検出された人物の顔の少なくとも一部を測距エリアとして自動合焦制御を行う毎に、その測距結果をメモリに記憶しておき、当該メモリに記憶された過去の測距結果から次の合焦位置を予測することを特徴とする請求項12〜請求項21のいずれか1つに記載の自動合焦方法。   In the automatic focusing control step, every time automatic focusing control is performed using at least a part of the face of the person detected in the face detection step as a ranging area, the ranging result is stored in a memory, The automatic focusing method according to any one of claims 12 to 21, wherein a next in-focus position is predicted from a past distance measurement result stored in a memory. 請求項12〜請求項22のいずれか1つに記載の発明の各工程をコンピュータが実行するためのプログラム。   A program for a computer to execute each step of the invention according to any one of claims 12 to 22.
JP2010181450A 2010-08-13 2010-08-13 Imaging apparatus, automatic focusing method, and program for computer to execute the method Expired - Fee Related JP5447286B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010181450A JP5447286B2 (en) 2010-08-13 2010-08-13 Imaging apparatus, automatic focusing method, and program for computer to execute the method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010181450A JP5447286B2 (en) 2010-08-13 2010-08-13 Imaging apparatus, automatic focusing method, and program for computer to execute the method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2001304342A Division JP2003107335A (en) 2001-09-18 2001-09-28 Image pickup device, automatic focusing method, and program for making computer execute the method

Publications (2)

Publication Number Publication Date
JP2011013682A true JP2011013682A (en) 2011-01-20
JP5447286B2 JP5447286B2 (en) 2014-03-19

Family

ID=43592568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010181450A Expired - Fee Related JP5447286B2 (en) 2010-08-13 2010-08-13 Imaging apparatus, automatic focusing method, and program for computer to execute the method

Country Status (1)

Country Link
JP (1) JP5447286B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012247682A (en) * 2011-05-30 2012-12-13 Nikon Corp Imaging apparatus
JPWO2014046036A1 (en) * 2012-09-19 2016-08-18 富士フイルム株式会社 Imaging apparatus and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0738796A (en) * 1993-07-21 1995-02-07 Mitsubishi Electric Corp Automatic focusing device
JPH11146405A (en) * 1992-01-13 1999-05-28 Mitsubishi Electric Corp Video signal processor and color video camera using the same
JP2000156849A (en) * 1998-06-29 2000-06-06 Toshiba Corp Portable information terminal equipment
JP2001111987A (en) * 1999-10-07 2001-04-20 Daikoku Denki Co Ltd Monitoring device
JP2001215403A (en) * 2000-02-01 2001-08-10 Canon Inc Image pickup device and automatic focus detection method
JP2001229499A (en) * 2000-02-15 2001-08-24 Niles Parts Co Ltd State detecting device for eye

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11146405A (en) * 1992-01-13 1999-05-28 Mitsubishi Electric Corp Video signal processor and color video camera using the same
JPH0738796A (en) * 1993-07-21 1995-02-07 Mitsubishi Electric Corp Automatic focusing device
JP2000156849A (en) * 1998-06-29 2000-06-06 Toshiba Corp Portable information terminal equipment
JP2001111987A (en) * 1999-10-07 2001-04-20 Daikoku Denki Co Ltd Monitoring device
JP2001215403A (en) * 2000-02-01 2001-08-10 Canon Inc Image pickup device and automatic focus detection method
JP2001229499A (en) * 2000-02-15 2001-08-24 Niles Parts Co Ltd State detecting device for eye

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012247682A (en) * 2011-05-30 2012-12-13 Nikon Corp Imaging apparatus
JPWO2014046036A1 (en) * 2012-09-19 2016-08-18 富士フイルム株式会社 Imaging apparatus and control method thereof
US9699367B2 (en) 2012-09-19 2017-07-04 Fujifilm Corporation Imaging device and method for displaying multiple objects of an imaging view

Also Published As

Publication number Publication date
JP5447286B2 (en) 2014-03-19

Similar Documents

Publication Publication Date Title
JP4794786B2 (en) Imaging apparatus, automatic exposure method, and program for computer to execute the method
JP2003107335A (en) Image pickup device, automatic focusing method, and program for making computer execute the method
JP4661413B2 (en) Imaging apparatus, number of shots management method and number of shots management program
JP4761146B2 (en) Imaging apparatus and program thereof
US9979893B2 (en) Imaging apparatus and method for controlling the same
JP5004726B2 (en) Imaging apparatus, lens unit, and control method
JP5424732B2 (en) Imaging apparatus, control method thereof, and program
JP2007295183A (en) Device, method, and program for reproducing image, and image sensing device
JP2007020105A (en) Imaging apparatus, imaging method, and imaging program
JP2011182252A (en) Imaging device, and image imaging method
GB2467391A (en) Self-timer photography
KR20120025341A (en) Digital photographing apparatus and control method thereof
JP2011013683A (en) Imaging apparatus, auto focus method, and program for allowing computer to perform the method
JP6389342B2 (en) Imaging apparatus and control method thereof
JP2007081732A (en) Imaging apparatus
JP5339802B2 (en) Imaging apparatus and control method thereof
US11849216B2 (en) Imaging apparatus detecting a pupil in moving and still images
JP5447286B2 (en) Imaging apparatus, automatic focusing method, and program for computer to execute the method
JP2010092066A (en) Imaging apparatus, automatic focusing method, and program for allowing computer to perform the method
JP4682097B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP6381416B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND RECORDING MEDIUM
JP5854861B2 (en) Imaging device, control method thereof, and control program
KR101369752B1 (en) Digital image processing apparatus and method for controlling the same
US10284783B2 (en) Imaging apparatus and control method of imaging apparatus
US8073319B2 (en) Photographing method and photographing apparatus based on face detection and photography conditions

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130219

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130415

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20131203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131216

R151 Written notification of patent or utility model registration

Ref document number: 5447286

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees