JP5421682B2 - Imaging apparatus and method - Google Patents

Imaging apparatus and method Download PDF

Info

Publication number
JP5421682B2
JP5421682B2 JP2009173261A JP2009173261A JP5421682B2 JP 5421682 B2 JP5421682 B2 JP 5421682B2 JP 2009173261 A JP2009173261 A JP 2009173261A JP 2009173261 A JP2009173261 A JP 2009173261A JP 5421682 B2 JP5421682 B2 JP 5421682B2
Authority
JP
Japan
Prior art keywords
scene
shooting
information
recognition
scene recognition
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.)
Active
Application number
JP2009173261A
Other languages
Japanese (ja)
Other versions
JP2010050962A (en
Inventor
雅彦 杉本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2009173261A priority Critical patent/JP5421682B2/en
Publication of JP2010050962A publication Critical patent/JP2010050962A/en
Application granted granted Critical
Publication of JP5421682B2 publication Critical patent/JP5421682B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region
    • H04N5/147Scene change detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Exposure Control For Cameras (AREA)

Description

本発明は、撮影シーン判定機能を有する撮像装置に関する。   The present invention relates to an imaging apparatus having a shooting scene determination function.

特許文献1では、CCDを介して取り込むデジタル画像信号やEV値に基づいて、実際の撮影シーンが、設定された撮影モードに対して適切であるか否かを判定する。撮影モードが適切である場合には、デジタルカメラは、当該撮影モードで撮影処理すると共に、当該撮影モード情報を画像データのヘッダ部に記録し、撮影モードが不適切である場合には、当該設定された撮影モードで撮影するか否かを操作者に確認して撮影処理に移行すると共に、当該撮影モード情報を画像データのヘッダ部に記録するか否かを操作者に確認するか、或いは標準撮影モード情報を記録する。   In Patent Document 1, it is determined whether or not an actual shooting scene is appropriate for a set shooting mode based on a digital image signal or EV value captured via a CCD. When the shooting mode is appropriate, the digital camera performs shooting processing in the shooting mode and records the shooting mode information in the header portion of the image data. When the shooting mode is inappropriate, the digital camera sets the setting. Confirm with the operator whether or not to shoot in the selected shooting mode, and shift to the shooting process, and check with the operator whether or not to record the shooting mode information in the header portion of the image data, or standard Record shooting mode information.

特許文献2に記載のカメラは、被写体の動き、撮像倍率又は被写体距離の出力情報に基づいてカメラ撮影モードを自動設定するものである。なお、撮影モードの設定とは、Tv値、Av値、プログラム、線図、露出(調光補正)、ストロボ発光、ズームAFモード、給送モード、測光モードなどの設定をいう。   The camera described in Patent Document 2 automatically sets a camera shooting mode based on output information of subject movement, imaging magnification, or subject distance. Note that the shooting mode setting refers to settings such as a Tv value, an Av value, a program, a diagram, exposure (dimming correction), strobe light emission, zoom AF mode, feeding mode, and metering mode.

特開2003−244530号公報JP 2003-244530 A 特開2003−344891号公報JP 2003-344891 A

特許文献1の「撮影モードチェック処理」(図2のS13)は、常時動作するものであり、必要に応じて動作するのでなく、効率が悪い。また、特許文献2の「撮影モード自動設定」(図4のS112)も、レリーズボタン半押し後の1度だけの動作であり、刻々と変化する可能性のある撮影シーンに応じて適切な撮影モードが安定的に設定されるとは限らない。   The “shooting mode check process” of Patent Document 1 (S13 in FIG. 2) operates constantly, and does not operate as necessary, and is inefficient. Also, “Automatic shooting mode setting” in Patent Document 2 (S112 in FIG. 4) is an operation only once after the release button is pressed halfway, and appropriate shooting is performed according to a shooting scene that may change moment by moment. The mode is not always set stably.

本発明の目的は、カメラでシーンを認識する場合、必要に応じて安定した結果を出力することにある。   An object of the present invention is to output a stable result as necessary when a scene is recognized by a camera.

本願に係る撮像装置は、撮影シーンの情報である撮影情報を取得する情報取得手段と、前記撮影情報に基づいて設定された基準情報を記憶する基準情報記憶手段と、前記基準情報記憶手段に記憶された前記基準情報と前記情報取得手段により取得された前記撮影情報から、前記撮影シーンが変動したか否かを判別するシーン変動判別手段と、前記シーン変動判別手段により撮影シーンが変動したことが判別されたことに応じて、前記情報取得手段により取得した前記撮影情報に基づいて撮影シーンを認識するシーン認識手段と、前記シーン認識手段のシーン認識結果に応じて、表示制御、撮影制御、信号処理制御および情報記録制御のうち少なくとも1つを行う制御手段を備えることを特徴とする。   An imaging apparatus according to the present application stores information acquisition means for acquiring shooting information that is information of a shooting scene, reference information storage means for storing reference information set based on the shooting information, and storage in the reference information storage means. The scene change determining means for determining whether or not the shooting scene has changed from the reference information and the shooting information acquired by the information acquisition means, and that the shooting scene has been changed by the scene change determining means. A scene recognition unit for recognizing a shooting scene based on the shooting information acquired by the information acquisition unit according to the determination, and a display control, a shooting control, a signal according to a scene recognition result of the scene recognition unit. Control means for performing at least one of processing control and information recording control is provided.

前記シーン認識手段は、前記シーン認識結果に対応する撮影情報に基づいて、前記基準情報記憶手段に記憶された前記基準情報を更新することを特徴とする。   The scene recognition unit updates the reference information stored in the reference information storage unit based on shooting information corresponding to the scene recognition result.

前記情報取得手段は、前記撮影シーン中に人物の顔があるか否かを示す顔検出結果情報、被写体距離に関する被写体距離情報および被写体の明るさに関する側光情報のうちの少なくとも1つの情報を、前記撮影情報として取得することを特徴とする。   The information acquisition means includes at least one information of face detection result information indicating whether or not there is a person's face in the shooting scene, subject distance information regarding subject distance, and sidelight information regarding subject brightness, It acquires as said imaging | photography information, It is characterized by the above-mentioned.

前記情報取得手段は、撮影シーン中に人物の顔があるか否かを示す顔検出結果情報、被写体距離に関する被写体距離情報および被写体の明るさに関する側光情報のうちの2以上の情報を、前記撮影情報として取得し、前記シーン変動判別手段は、前記情報取得手段により取得された前記撮影情報と前記基準情報記憶手段に記憶された前記撮影情報に対応する前記基準情報とから前記撮影シーンが変動したか否かを判別することを特徴とする。   The information acquisition means includes two or more pieces of information of face detection result information indicating whether or not a person's face is present in a shooting scene, subject distance information regarding subject distance, and sidelight information regarding subject brightness, Acquired as shooting information, and the scene change determination means changes the shooting scene from the shooting information acquired by the information acquisition means and the reference information corresponding to the shooting information stored in the reference information storage means. It is characterized by determining whether or not.

前記シーン変動判別手段は、前記情報取得手段により取得された前記2以上の情報と前記基準情報記憶手段に記憶された前記2以上の情報に対応する前記基準情報とに、それぞれ情報別の重み付けを行う重み付け設定手段を有することを特徴とする。   The scene variation determination means assigns a weight for each information to the two or more information acquired by the information acquisition means and the reference information corresponding to the two or more information stored in the reference information storage means. It has the weight setting means to perform, It is characterized by the above-mentioned.

前記基準情報記憶手段に記憶された前記基準情報と前記情報取得手段により取得された前記撮影情報とから逐次撮影シーンの変動の有無を判別する単独シーン変動判別手段と、前記単独シーン変動判別手段による単独シーン変動判別の結果の履歴をシーン変動履歴として記憶するシーン変動履歴記憶手段と、前記シーン変動履歴に基づいて前記撮影シーンが変動したか否かを判別するトータルシーン変動判別手段とを備えることを特徴とする。     By the single scene fluctuation determining means for determining the presence or absence of fluctuations in the shooting scene sequentially from the reference information stored in the reference information storage means and the shooting information acquired by the information acquisition means, and by the single scene fluctuation determining means A scene variation history storage unit that stores a history of a result of the single scene variation determination as a scene variation history, and a total scene variation determination unit that determines whether or not the shooting scene has changed based on the scene variation history. It is characterized by.

前記シーン認識手段は、前記シーン変動判別手段により前記撮影シーンが変動したことが判別されたことに応じて、前記撮影情報取得手段により取得した撮影情報に基づいてシーン認識を所定期間または所定回数行う単独シーン認識手段と、前記単独シーン認識手段による単独シーン認識結果の履歴をシーン認識履歴として記憶するシーン認識履歴記憶手段と、前記シーン認識履歴に基づいて前記撮影シーンのシーン認識を行うトータルシーン認識手段とを備えることを特徴とする。   The scene recognition means performs scene recognition for a predetermined period or a predetermined number of times based on the shooting information acquired by the shooting information acquisition means in response to the fact that the shooting scene has been changed by the scene change determination means. A single scene recognition means, a scene recognition history storage means for storing a history of a single scene recognition result by the single scene recognition means as a scene recognition history, and a total scene recognition for performing scene recognition of the photographic scene based on the scene recognition history Means.

前記トータルシーン認識手段は、前記シーン認識履歴から最大頻度の単独シーン認識結果が示す撮影シーンを検出し、前記最大頻度の単独シーン認識結果が示す撮影シーンを、前記シーン変動判別手段により撮影シーンが変動したと判別された後の撮影シーンとして認識することを特徴とする。   The total scene recognizing unit detects a shooting scene indicated by the maximum frequency single scene recognition result from the scene recognition history, and the shooting scene indicated by the maximum frequency single scene recognition result is detected by the scene variation determination unit. It is characterized in that it is recognized as a photographic scene after it has been determined that it has changed.

前記トータルシーン認識手段は、前記最大頻度の単独シーン認識結果が示す撮影シーンが複数検出された場合には、最新の撮影シーンを、前記シーン変動判別手段により撮影シーンが変動したと判別された後の撮影シーンとして認識することを特徴とする。   The total scene recognizing means, when a plurality of shooting scenes indicated by the maximum frequency single scene recognition result is detected, after determining that the latest shooting scene has changed by the scene fluctuation determining means. It is characterized in that it is recognized as a shooting scene.

前記撮影シーンのシーン認識をシーン変動時に行うか、又は所定の周期毎に行うかを選択する選択手段と、前記シーン認識を行う所定の周期を設定する周期設定手段と、を更に備え、前記選択手段により撮影シーンのシーン認識を所定の周期毎に行うことが選択されると、前記シーン認識手段は、前記シーン変動判別手段により前記撮影シーンが変動したことが判別されたときに代えて、前記周期設定手段により設定された所定の周期毎に前記撮影情報取得手段により取得された前記撮影情報に基づいて前記撮影シーンのシーン認識を行うことを特徴とする。   The selection further comprises selection means for selecting whether scene recognition of the photographic scene is performed when the scene changes or every predetermined period, and period setting means for setting a predetermined period for performing the scene recognition. If it is selected that the scene recognition of the photographic scene is performed every predetermined period by the means, the scene recognition means replaces the scene change determination means when it is determined that the photographic scene has changed. Scene recognition of the photographic scene is performed on the basis of the photographic information acquired by the photographic information acquisition means at every predetermined period set by the period setting means.

周期設定手段により設定される所定の周期は、予め設定された周期、又はユーザにより任意に設定可能な周期であることを特徴とする。   The predetermined cycle set by the cycle setting means is a cycle set in advance or a cycle that can be arbitrarily set by the user.

本発明に係る撮影撮像方法は、撮影シーンの情報である撮影情報を取得するステップと、前記取得した撮影情報から撮影シーンを認識するステップと、前記撮影シーンの認識結果に対応する前記撮影情報に基づいて設定された基準情報を記憶するステップと、前記記憶された基準情報と前記取得された撮影情報から前記撮影シーンが変動したか否かを判別するステップと、前記撮影シーンが変動したことが判別されたことに応じて、前記撮影情報に基づいて前記撮影シーンを認識するステップと、前記撮影シーンの認識結果に応じて、表示制御、撮影制御、信号処理制御および情報記録制御のうち少なくとも1つを行うステップと、を含むことを特徴とする。   The imaging and imaging method according to the present invention includes a step of acquiring shooting information that is information of a shooting scene, a step of recognizing a shooting scene from the acquired shooting information, and the shooting information corresponding to the recognition result of the shooting scene. A step of storing reference information set based on the step, a step of determining whether or not the shooting scene has changed from the stored reference information and the acquired shooting information, and that the shooting scene has changed. According to the determination, at least one of a step of recognizing the shooting scene based on the shooting information and a display control, shooting control, signal processing control, and information recording control according to the recognition result of the shooting scene. Performing a step.

この発明によると、どのようなシーンであるのかという判断をする処理と、認識したシーンから変動があったかという監視をする処理とを混合的に動作させる。そして、シーンが変動したときに初めてどのようなシーンであるのかという判断をすることにより、正確で安定したシーン認識を行うことが可能となる。   According to the present invention, a process for determining what kind of scene it is and a process for monitoring whether there is a change from the recognized scene are mixedly operated. Then, by determining which scene is the first time when the scene changes, it is possible to perform accurate and stable scene recognition.

デジタルカメラの構成を示す概略ブロック図Schematic block diagram showing the configuration of the digital camera 第1実施形態に係るシーン認識メイン処理のフローチャートFlowchart of scene recognition main processing according to the first embodiment フレーム変動チェックのフローチャートFlow chart of frame fluctuation check 測光値変動チェックのフローチャートPhotometric value variation check flowchart フォーカス位置変動チェックのフローチャートFlow chart of focus position fluctuation check 顔有無変動チェックのフローチャートFlow chart of face presence / absence variation check シーン認識の詳細を示すフローチャートFlowchart showing scene recognition details シーン認識結果SRを概念的に示した図The figure which showed scene recognition result SR notionally シーン判定サブルーチン(人物判定)のフローチャートFlow chart of scene determination subroutine (person determination) シーン判定サブルーチン(風景判定)のフローチャートFlow chart of scene determination subroutine (landscape determination) シーン判定サブルーチン(夜景判定)のフローチャートFlowchart of scene determination subroutine (night scene determination) シーン判定サブルーチン(夜景判定)のフローチャートの他の一例Another example of flowchart of scene determination subroutine (night scene determination) シーン判定サブルーチン(接写判定)のフローチャートFlowchart of scene determination subroutine (close-up determination) シーン判定の結果表示の一例を示す図The figure which shows an example of the result display of a scene determination 第2実施形態に係るフレーム変動チェックのフローチャートFlowchart of frame fluctuation check according to second embodiment 1〜3回目のフレーム変動チェック結果に対応する重みE_AUTOSP_FRAME_CHECK1〜3と、1〜3回目のフレーム変動チェックによる変化の有無に応じたchange_measureの値との関係を示す図The figure which shows the relationship between the weight E_AUTOSP_FRAME_CHECK1-3 corresponding to the 1st-3rd frame fluctuation check result, and the value of change_measure according to the presence or absence of the change by the 1st-3rd frame fluctuation check 第3実施形態に係るシーン認識メイン処理のフローチャートFlowchart of scene recognition main processing according to the third embodiment フレーム変動履歴の一例を示す図Diagram showing an example of frame fluctuation history 第4実施形態に係るシーン認識メイン処理(シーン変動認識・周期的認識併存型)のフローチャートFlowchart of scene recognition main processing (scene variation recognition / periodic recognition coexistence type) according to the fourth embodiment

<第1実施形態>
図1は、本発明のデジタルカメラ1の構成を示す概略ブロック図である。デジタルカメラ1は、撮影により取得した画像データを、Exif形式の画像ファイルに変換して、本体に着脱可能な外部記録メディアなどの記録部70へ記録するものである。
<First Embodiment>
FIG. 1 is a schematic block diagram showing a configuration of a digital camera 1 of the present invention. The digital camera 1 converts image data acquired by photographing into an image file in Exif format, and records it in a recording unit 70 such as an external recording medium that can be attached to and detached from the main body.

このデジタルカメラの操作系としては、動作モードスイッチ、メニュー/OKボタン、ズーム/上下矢印レバー、左右矢印ボタン、Back(戻る)ボタン、表示切替ボタン、レリーズボタン、電源スイッチなどを含む操作部11と、操作部11への操作内容を解釈して各部を制御する制御回路74とを有している。制御回路74は、情報処理を行うCPU75、情報処理を規定したプログラム、ファームウェア、プログラムでの各種判定に用いる閾値その他の定数などを記録したROM68、情報処理に必要な変数やデータなどを格納するRAM69を備えている。   The operation system of the digital camera includes an operation unit 11 including an operation mode switch, a menu / OK button, a zoom / up / down arrow lever, a left / right arrow button, a back button, a display switching button, a release button, a power switch, and the like. And a control circuit 74 that interprets the contents of the operation on the operation unit 11 and controls each unit. The control circuit 74 includes a CPU 75 that performs information processing, a program that defines information processing, firmware, a ROM 68 that records threshold values and other constants used for various determinations in the program, and a RAM 69 that stores variables and data necessary for information processing. It has.

レンズ20は、フォーカスレンズおよびズームレンズを有している。レンズ20は、レンズ駆動部51によって光軸方向に移動可能である。レンズ駆動部51はCPU75から出力されるフォーカス駆動量データ、あるいは、操作部11に含まれるズーム/上下矢印レバーの操作量データに基づいて、フォーカスレンズあるいはズームレンズの移動を制御する。   The lens 20 has a focus lens and a zoom lens. The lens 20 can be moved in the optical axis direction by the lens driving unit 51. The lens drive unit 51 controls the movement of the focus lens or the zoom lens based on the focus drive amount data output from the CPU 75 or the operation amount data of the zoom / up / down arrow lever included in the operation unit 11.

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

レンズ20・絞り54を含む撮像光学系の後方には、CCDやCMOSなどの撮像素子58が配置されている。撮像素子58は、多数の受光素子を2次元的に配列した光電面を有しており、光学系を通過した被写体光がこの光電面に結像し、光電変換される。光電面の前方には、各画素に光を集光するためのマイクロレンズアレイと、R,G,B各色のフィルタが規則的に配列されたカラーフィルタアレイとが配置されている。撮像素子58は、撮像素子制御部59から供給される垂直転送クロックおよび水平転送クロックに同期して、画素毎に蓄積された電荷を1ラインずつシリアルなアナログ撮影信号として出力する。各画素において電荷を蓄積する時間、すなわち、露出時間は、撮像素子制御部59から与えられる電子シャッタ駆動信号によって決定される。また、撮像素子58は撮像素子制御部59により、あらかじめ定められた大きさのアナログ撮像信号が得られるように、ゲインが調整されている。   An imaging device 58 such as a CCD or a CMOS is disposed behind the imaging optical system including the lens 20 and the diaphragm 54. The imaging element 58 has a photoelectric surface in which a large number of light receiving elements are two-dimensionally arranged, and subject light that has passed through the optical system forms an image on the photoelectric surface and is subjected to photoelectric conversion. In front of the photocathode, a microlens array for condensing light on each pixel and a color filter array in which filters of R, G, and B colors are regularly arranged are arranged. The image sensor 58 outputs the charge accumulated for each pixel as a serial analog image signal for each line in synchronization with the vertical transfer clock and the horizontal transfer clock supplied from the image sensor control unit 59. The time for accumulating charges in each pixel, that is, the exposure time is determined by an electronic shutter drive signal provided from the image sensor control unit 59. The gain of the image sensor 58 is adjusted by the image sensor control unit 59 so that an analog image signal having a predetermined size can be obtained.

撮像素子58から取り込まれたアナログ撮影信号は、アナログ信号処理部60に入力される。アナログ信号処理部60は、アナログ信号のノイズを除去する相関2重サンプリング回路(CDS)と、アナログ信号のゲインを調節するオートゲインコントローラ(AGC)とからなる。   The analog photographing signal captured from the image sensor 58 is input to the analog signal processing unit 60. The analog signal processing unit 60 includes a correlated double sampling circuit (CDS) that removes noise from the analog signal, and an auto gain controller (AGC) that adjusts the gain of the analog signal.

A/D変換部61は、アナログ信号処理部60にて処理されたアナログ画像信号をデジタル画像データに変換する。このデジタル信号に変換された画像データは、画素毎にR,G,Bの濃度値を持つCCD−RAWデータである。   The A / D converter 61 converts the analog image signal processed by the analog signal processor 60 into digital image data. The image data converted into the digital signal is CCD-RAW data having R, G, and B density values for each pixel.

制御回路74は、タイミング信号を発生させ、このタイミング信号を撮像素子制御部59に入力し、操作部11に含まれるレリーズボタンの操作、撮像素子58の電荷の取込み、およびアナログ信号処理部60の処理の同期を取っている。   The control circuit 74 generates a timing signal, inputs this timing signal to the image sensor control unit 59, operates the release button included in the operation unit 11, captures the charge of the image sensor 58, and the analog signal processing unit 60. Processing is synchronized.

フラッシュ制御部73は、ストロボ放電管その他の回路で構成されたフラッシュ24を撮影時に(レリーズボタン全押し時に)発光させる。具体的には、フラッシュ発光モードがフラッシュオンとされている場合、フラッシュ24をオンとして、撮影時にフラッシュ24を発光させる。一方、フラッシュ発光モードがフラッシュオフとされている場合、撮影時にフラッシュ24の発光を禁止する。   The flash control unit 73 causes the flash 24 composed of a strobe discharge tube and other circuits to emit light during photographing (when the release button is fully pressed). Specifically, when the flash emission mode is set to flash on, the flash 24 is turned on and the flash 24 is caused to emit light at the time of shooting. On the other hand, when the flash emission mode is set to flash off, the flash 24 is prohibited from emitting light during shooting.

制御回路74は、撮像素子58で生成された画像信号の輝度を検出することにより測光を行う。制御回路74は、被写界輝度が低いという測光の結果を受けて、補助光制御部25に指示してLEDなどから構成された補助光発光部26から補助光を照射させる。   The control circuit 74 performs photometry by detecting the luminance of the image signal generated by the image sensor 58. The control circuit 74 receives the result of photometry that the field luminance is low, and instructs the auxiliary light control unit 25 to irradiate the auxiliary light from the auxiliary light emitting unit 26 including LEDs.

A/D変換部61から出力されたR,G,Bの各画像データ(CCD−RAWデータ)は、デジタル信号処理部65にて、ホワイトバランス(WB)調整、γ補正、およびYC処理が施され、処理後の画像データは、メモリ66に書き込まれる。   The R, G, B image data (CCD-RAW data) output from the A / D converter 61 is subjected to white balance (WB) adjustment, γ correction, and YC processing in the digital signal processing unit 65. Then, the processed image data is written in the memory 66.

デジタル信号処理部65には、測光部46が設けられている。測光部46は、A/D変換部61からから1画面分のY信号を受け、撮像素子58の撮像面内の所望領域、例えば中央近傍領域や顔検出領域、あるいは撮像面全体を縦横均等に所定個数、例えば8分割した64個のブロックの各ブロックについてY信号を積算する。ブロックのそれぞれに対する輝度積算値は、測光結果としてCPU75に送られる。AE制御時には、CPU75は、所定のアルゴリズムに基づいて、輝度積算値に対して周知の演算処理を行い、適正露出(絞り値、シャッタ速度)を決定する。   The digital signal processing unit 65 is provided with a photometry unit 46. The photometry unit 46 receives the Y signal for one screen from the A / D conversion unit 61, and uniformly distributes a desired region in the imaging surface of the image sensor 58, for example, a region near the center, a face detection region, or the entire imaging surface. The Y signal is integrated for each block of a predetermined number, for example, 64 blocks divided into eight. The integrated luminance value for each of the blocks is sent to the CPU 75 as a photometric result. During the AE control, the CPU 75 performs a well-known calculation process on the luminance integrated value based on a predetermined algorithm, and determines an appropriate exposure (aperture value, shutter speed).

メモリ66は、画像データに対して後述の各種デジタル画像処理(信号処理)を行う際に使用する作業用メモリであり、例えば、一定周期のバスクロック信号に同期してデータ転送を行うSDRAM(Synchronous Dynamic Random Access Memory)が使用される。   The memory 66 is a working memory used when various digital image processing (signal processing) described later is performed on the image data. For example, an SDRAM (Synchronous) that performs data transfer in synchronization with a bus clock signal having a fixed period. Dynamic Random Access Memory) is used.

表示部71は、撮影モード設定以後から本撮影指示がされるまでの間メモリ66に逐次格納された画像データをスルー画像として図示しない液晶モニタに表示させたり、再生モード時に記録部70に保存されている画像データを液晶モニタに表示させたりするためのものである。なお、スルー画像は、撮影モードが選択されている間、所定間隔で撮像素子58により撮影される。なお、スルー画像とは、ユーザがリアルタイムに撮影画角や状況などを確認することが出来るように、撮影モードが選択されている間、所定の時間間隔で撮像素子58により撮像された被写体を示す画像信号に基づいて表示部71に表示される画像をいう。   The display unit 71 displays the image data sequentially stored in the memory 66 from the setting of the shooting mode until the main shooting instruction is given as a through image on a liquid crystal monitor (not shown), or is stored in the recording unit 70 in the playback mode. The image data is displayed on a liquid crystal monitor. The through image is taken by the image sensor 58 at a predetermined interval while the shooting mode is selected. Note that the through image indicates a subject imaged by the image sensor 58 at a predetermined time interval while the shooting mode is selected so that the user can check the shooting angle of view and the situation in real time. An image displayed on the display unit 71 based on the image signal.

本撮像前AF処理部81は、レリーズボタン半押しまでに逐次供給されてくるスルー画像に基づいて撮影条件を決定する。すなわち、本撮像前AF処理部81は、スルー画像に基づいて焦点位置を検出し、フォーカス駆動量データを出力する。焦点位置の検出方式としては、例えば、ピントが合った状態では画像のコントラストが高くなるという特徴を利用して合焦位置を検出するパッシブ方式が考えられる。すなわち、本撮像前AF処理部81は、スルー画像から高周波数成分を抽出し、これを画像全体または画像の特定の一部分の領域(中央部や顔検出領域など)内において積算することによりAF(合焦)評価値を得る。得られたAF評価値の極大点を、レンズ駆動範囲に渡って探索し、その極大点が得られるレンズ位置を合焦位置と判断する。   The pre-imaging AF processing unit 81 determines shooting conditions based on through images that are sequentially supplied until the release button is half-pressed. That is, the pre-imaging AF processing unit 81 detects the focal position based on the through image and outputs focus drive amount data. As a focus position detection method, for example, a passive method that detects a focus position using a feature that the contrast of an image is high in a focused state can be considered. That is, the pre-imaging AF processing unit 81 extracts high-frequency components from the through image, and integrates the extracted high-frequency component in the entire image or a specific part of the image (such as the center or the face detection region). Get the evaluation value. The maximum point of the obtained AF evaluation value is searched over the lens driving range, and the lens position where the maximum point is obtained is determined as the in-focus position.

AF処理部62およびAE/AWB処理部63は、プレ画像に基づいて撮影条件を決定する。プレ画像とは、操作部11のレリーズボタンが半押しされることによって発生する半押し信号を検出したCPU75が撮像素子58にプレ撮影を実行させた結果、メモリ66に格納された画像データにより表される画像である。   The AF processing unit 62 and the AE / AWB processing unit 63 determine shooting conditions based on the pre-image. The pre-image is represented by image data stored in the memory 66 as a result of the CPU 75 that has detected a half-press signal generated by half-pressing the release button of the operation unit 11 causing the image sensor 58 to perform pre-photographing. It is an image to be.

AF処理部62は、プレ画像に基づいて焦点位置を検出し、フォーカス駆動量データを出力する(AF処理)。焦点位置の検出方式としては、例えば、ピントが合った状態では画像のコントラストが高くなるという特徴を利用して合焦位置を検出するパッシブ方式が考えられる。すなわち、AF処理部62は、プレ画像から高周波数成分を抽出し、これを画像全体または画像の一部分の領域内において積算することによりAF(合焦)評価値を得る。得られたAF評価値の極大点を、レンズ駆動範囲に渡って探索し、その極大点が得られるレンズ位置を合焦位置と判断する。   The AF processing unit 62 detects the focal position based on the pre-image and outputs focus drive amount data (AF processing). As a focus position detection method, for example, a passive method that detects a focus position using a feature that the contrast of an image is high in a focused state can be considered. That is, the AF processing unit 62 extracts a high frequency component from the pre-image, and integrates it in the entire image or a partial region of the image to obtain an AF (focus) evaluation value. The maximum point of the obtained AF evaluation value is searched over the lens driving range, and the lens position where the maximum point is obtained is determined as the in-focus position.

AE/AWB処理部63は、プレ画像に基づいて被写体輝度を測定し、測定した被写体輝度に基づいて絞り値、シャッタスピード等を決定し、絞り値データおよびシャッタスピードデータを露出設定値として決定する(AE処理)。AE/AWB処理部63は、レリーズボタン全押しに応じて実施される本露光で得られた画像データに基づいて、当該画像データのホワイトバランスの補正量を決定する(AWB処理)。   The AE / AWB processing unit 63 measures subject brightness based on the pre-image, determines an aperture value, shutter speed, etc. based on the measured subject brightness, and determines aperture value data and shutter speed data as exposure setting values. (AE treatment). The AE / AWB processing unit 63 determines the white balance correction amount of the image data based on the image data obtained by the main exposure performed in response to the release button being fully pressed (AWB processing).

なお、露出およびホワイトバランスについては、撮影モードがマニュアルモードに設定されている場合には、デジタルカメラ1のユーザがマニュアル操作により設定可能である。また、露出およびホワイトバランスが自動で設定された場合にも、ユーザがメニュー/OKボタン等の操作部11から指示を行うことにより、露出およびホワイトバランスをマニュアル調整することが可能である。   The exposure and white balance can be set manually by the user of the digital camera 1 when the shooting mode is set to the manual mode. Even when the exposure and white balance are automatically set, the user can manually adjust the exposure and white balance by giving an instruction from the operation unit 11 such as a menu / OK button.

撮影条件は、後述するシーン認識結果SRに対応する。例えば、シーン認識結果SRが夜景であれば、ISO感度80、シャッタスピード1/1.6秒などとする。あるいは、シーン認識結果SRが接写であれば、絞り径を開き、フラッシュ24の発光を禁止する。合焦位置の検索は、近い位置(Near側)を開始点として遠い位置(INF側)に向かって行うとよい。あるいは、シーン認識結果SRが風景であれば、測光モードとして「平均測光」を行い、測光部46に分割測光を行わせる。あるいは、シーン認識結果SRが人物であれば、AF処理部62は、AF評価値の算出領域を、顔検出処理部80の検出した顔領域とする。シーン認識結果SRがAUTOであれば、シャッタスピード、絞り値等の撮像条件を自動で設定する。   The shooting condition corresponds to a scene recognition result SR described later. For example, if the scene recognition result SR is a night view, the ISO sensitivity is 80, the shutter speed is 1 / 1.6 seconds, and the like. Alternatively, if the scene recognition result SR is close-up, the aperture is opened and the flash 24 is inhibited from emitting light. The search for the in-focus position may be performed toward a far position (INF side) starting from a close position (Near side). Alternatively, if the scene recognition result SR is a landscape, “average metering” is performed as a metering mode, and the metering unit 46 performs divided metering. Alternatively, if the scene recognition result SR is a person, the AF processing unit 62 sets the AF evaluation value calculation region as the face region detected by the face detection processing unit 80. If the scene recognition result SR is AUTO, imaging conditions such as a shutter speed and an aperture value are automatically set.

デジタル信号処理部65は、本画像の画像データに対して、ガンマ補正、シャープネス補正、コントラスト補正等の画質補正処理、CCD−RAWデータを輝度信号であるYデータと、青色色差信号であるCbデータおよび赤色色差信号であるCrデータとからなるYCデータに変換するYC処理を行う。この本画像とは、レリーズボタンが全押しされることによって実行される本撮影において撮像素子58から取り込まれ、アナログ信号処理部60、A/D変換部61、デジタル信号処理部65経由でメモリ66に格納された画像データによる画像である。本画像の画素数の上限は、撮像素子58の画素数によって決定されるが、例えば、ファイン、ノーマル等の設定により、記録画素数を変更することができる。一方、スルー画像およびプレ画像の画像数は、本画像よりも少なく、例えば、本画像の1/16程度の画素数で取り込まれる。   The digital signal processing unit 65 performs image quality correction processing such as gamma correction, sharpness correction, and contrast correction on the image data of the main image, CCD-RAW data as Y data that is a luminance signal, and Cb data that is a blue color difference signal. Then, YC processing for converting into YC data composed of Cr data which is a red color difference signal is performed. This main image is captured from the image sensor 58 in the main photographing executed when the release button is fully pressed, and is stored in the memory 66 via the analog signal processing unit 60, the A / D conversion unit 61, and the digital signal processing unit 65. It is an image by the image data stored in. The upper limit of the number of pixels of the main image is determined by the number of pixels of the image sensor 58. For example, the number of recorded pixels can be changed by setting fine, normal, and the like. On the other hand, the number of images of the through image and the pre-image is smaller than that of the main image.

また、デジタル信号処理部65は、フラッシュ24の発光量が通常の撮影時よりも小さくされた場合には、本画像における顔領域の輝度を求め、輝度が所定のしきい値Th1よりも小さい場合には顔領域の輝度をしきい値Th1に調整する処理を行う。   Further, the digital signal processing unit 65 obtains the luminance of the face area in the main image when the light emission amount of the flash 24 is smaller than that during normal photographing, and the luminance is smaller than the predetermined threshold Th1. The process of adjusting the brightness of the face area to the threshold value Th1 is performed.

デジタル信号処理部65は、補正・変換処理が行われた本画像の画像データに対して、例えば、JPEG等の圧縮形式で圧縮処理を行い、画像ファイルを生成する。この画像ファイルには、Exifフォーマット等に基づいて、撮影日時等の付帯情報が格納されたタグが付加される。また、デジタル信号処理部65は、再生モードの場合には、記録部70から圧縮された画像ファイルを読み出し、伸張処理を行う。伸長後の画像データは表示部71によって外部の液晶モニタに出力される。   The digital signal processing unit 65 performs a compression process on the image data of the main image subjected to the correction / conversion process, for example, in a compression format such as JPEG to generate an image file. A tag storing incidental information such as shooting date and time is added to the image file based on the Exif format or the like. Further, in the reproduction mode, the digital signal processing unit 65 reads the compressed image file from the recording unit 70 and performs expansion processing. The expanded image data is output to an external liquid crystal monitor by the display unit 71.

ROM68は、デジタルカメラ1において設定される各種定数、およびCPU75が実行するプログラム等を格納する。RAM69は、CPU75がプログラムの実行に必要なデータを一時的に格納する。   The ROM 68 stores various constants set in the digital camera 1, programs executed by the CPU 75, and the like. The RAM 69 temporarily stores data necessary for the CPU 75 to execute the program.

CPU75は、操作部11やAF処理部62等の各種処理部からの信号に応じてデジタルカメラ1の本体各部を制御する。   The CPU 75 controls each part of the main body of the digital camera 1 in accordance with signals from various processing units such as the operation unit 11 and the AF processing unit 62.

顔検出処理部80は、スルー画像、レリーズボタン半押し時に表示する画像(プレ画像)、あるいは本画像から人物の顔を検出する。具体的には、顔に含まれる顔の特徴を有する領域(例えば肌色を有する、目を有する、顔の形状を有する等)を顔領域として検出するが、これに限定されるものではない。   The face detection processing unit 80 detects a human face from a through image, an image (pre-image) displayed when the release button is pressed halfway, or a main image. Specifically, an area having a facial feature included in the face (for example, having skin color, having eyes, or having a face shape) is detected as a face area, but the present invention is not limited to this.

図2は、シーン認識メイン処理のフローチャートである。シーン認識とは、撮影時の被写体が所定の被写体状況(撮影シーン又は単にシーン)であると認識することである。言い換えると、ユーザーが撮影しようとしているフレーム画像のシーンがどのようなシーンであるのかを認識することである。認識する撮影シーンの例として、人物、風景、夜景、接写(後述)があげられる。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。この処理は、撮影モードが操作部11から設定され、かつ、そのときに「自動シーン認識ON」が操作部11から設定されていた場合に開始する。「自動シーン認識OFF」が操作部11から設定されている場合には開始しない。   FIG. 2 is a flowchart of the scene recognition main process. Scene recognition refers to recognizing that a subject at the time of shooting is a predetermined subject situation (a shooting scene or simply a scene). In other words, it is to recognize what kind of scene the frame image the user is going to shoot. Examples of recognized scenes include a person, a landscape, a night view, and a close-up (described later). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68. This process starts when the shooting mode is set from the operation unit 11 and “automatic scene recognition ON” is set from the operation unit 11 at that time. If “automatic scene recognition OFF” is set from the operation unit 11, the process does not start.

S1では、この処理の実行が初回であるか否かを判断する。“Yes”の場合はS2、“No”の場合はS3に進む。   In S1, it is determined whether or not this process is executed for the first time. If “Yes”, the process proceeds to S2. If “No”, the process proceeds to S3.

S2では、RAM69のフレーム変動基準情報を初期化する。フレーム変動基準情報とは、フレーム変動チェック処理の際に参照される情報である。フレーム変動基準情報は、初回のフレーム変動チェックを行う際に、撮影シーンに関する情報である撮影情報(フレーム画像に関する情報。後述)に基づいて作成され、S13のトータルシーン認識結果(後述)に基づいて更新される。フレーム変動基準情報には、分割測光値、フォーカスレンズの位置、合焦AFエリアのタイプ(合焦状態となったAFエリアが顔検出処理部80の検出した顔領域であるか否か、あるいは、デフォルトの画面中央近傍領域であるか否か)、合焦AFフィルタ(例えば特許公開2006−145964のローパスフィルタ、ハイパスフィルタ)、顔検出処理部80による顔検出の有無が含まれる。また、RAM69のstatusをサーチ状態に、チェックカウンタを0に、シーン認識履歴保持フラグをOFFに設定する。   In S2, the frame variation reference information in the RAM 69 is initialized. The frame variation reference information is information referred to in the frame variation check process. The frame fluctuation reference information is created based on shooting information (information on a frame image, which will be described later) that is information relating to a shooting scene when the first frame fluctuation check is performed, and based on the total scene recognition result (described later) in S13. Updated. The frame variation reference information includes the divided photometric value, the position of the focus lens, the type of the focus AF area (whether the AF area in the focused state is a face area detected by the face detection processing unit 80, or Whether or not it is the default area near the center of the screen), a focusing AF filter (for example, a low pass filter or a high pass filter disclosed in Japanese Patent Laid-Open No. 2006-145964), and whether or not a face is detected by the face detection processing unit 80. Further, the status of the RAM 69 is set to the search state, the check counter is set to 0, and the scene recognition history holding flag is set to OFF.

S3では、RAM69のstatus=確定状態か否かを判断する。“Yes”の場合はS4
、“No”の場合はS7に進む。
In S3, it is determined whether or not status of the RAM 69 is in a final state. If “Yes”, S4
If “No”, the process proceeds to S7.

S4では、フレーム変動チェックを行う。この処理は後述する。   In S4, a frame variation check is performed. This process will be described later.

S5では、フレーム変動チェックの結果、フレーム変動があったか否かを判断する。“Yes”の場合はS6、“No”の場合はS1に戻る。   In S5, it is determined whether or not there is a frame variation as a result of the frame variation check. If “Yes”, the process returns to S6. If “No”, the process returns to S1.

S6では、シーン変動があったと判断し、RAM69のstatusをサーチ状態に設定する。   In S6, it is determined that the scene has changed, and the status of the RAM 69 is set to the search state.

S7では、RAM69のシーン認識履歴保持フラグがONに設定されているか否かを判断する。“Yes”の場合はS9、“No”の場合はS8に進む。   In S7, it is determined whether or not the scene recognition history retention flag in the RAM 69 is set to ON. If “Yes”, the process proceeds to S9. If “No”, the process proceeds to S8.

S8では、RAM69のシーン認識カウンタを0に設定する。また、RAM69のシーン認識履歴をクリアする。   In S8, the scene recognition counter in the RAM 69 is set to zero. Also, the scene recognition history in the RAM 69 is cleared.

S9では、認識部による単独シーン認識動作を行う。この処理は後述する。この処理の結果、RAM69にシーン単独認識結果SRが記憶される。単独シーン認識結果SRは、風景、AUTO、人物、夜景、接写などを含む。これら各単独シーンの認識の処理の詳細は後述する。   In S9, a single scene recognition operation is performed by the recognition unit. This process will be described later. As a result of this processing, the scene single recognition result SR is stored in the RAM 69. The single scene recognition result SR includes landscape, AUTO, person, night view, close-up, and the like. Details of the process for recognizing each single scene will be described later.

S10では、RAM69のシーン認識カウンタを1だけインクリメントする。   In S10, the scene recognition counter in the RAM 69 is incremented by 1.

S11では、RAM69のシーン認識カウンタおよびROM68の所定のシーン認識結果数の閾値(E_AUTOSR_SR_HISTORY_BEFORE_S1)を比較し、シーン認識カウンタ≧シーン認識結果数の閾値であるか否かを判断する。“Yes”の場合はS12、“No”の場合はS17に進む。   In S11, the scene recognition counter in the RAM 69 and the threshold value (E_AUTOSR_SR_HISTORY_BEFORE_S1) of the predetermined number of scene recognition results in the ROM 68 are compared to determine whether or not the scene recognition counter ≧ the threshold value of the number of scene recognition results. If “Yes”, the process proceeds to S 12. If “No”, the process proceeds to S 17.

S12では、RAM69のシーン認識履歴をチェックする。シーン認識履歴は、statusが確定状態になるまで繰り返されたS9によりそれぞれ個別に記憶された、複数の単独シーン認識結果SRで構成される。   In S12, the scene recognition history in the RAM 69 is checked. The scene recognition history is composed of a plurality of single scene recognition results SR that are individually stored in S9 that is repeated until status becomes a definite state.

S13では、トータルシーン認識を行う。すなわち、RAM69のシーン認識結果SRを、S9で異なる時間に記憶された複数の単独シーン認識結果SRで構成されたシーン認識履歴の中で、最大の出現頻度を有するものに更新する。さらに、RAM69のフレーム変動基準情報を、当該最大の出現頻度を有する単独シーン認識結果SRと同じ時点で取得されたフレーム変動基準情報に更新する。   In S13, total scene recognition is performed. That is, the scene recognition result SR in the RAM 69 is updated to the one having the maximum appearance frequency among the scene recognition histories constituted by a plurality of single scene recognition results SR stored at different times in S9. Further, the frame variation reference information in the RAM 69 is updated to the frame variation reference information acquired at the same time as the single scene recognition result SR having the maximum appearance frequency.

S14では、RAM69のシーン認識結果SR(トータルシーン認識結果)が「AUTO」と異なるか否かを判断する。“Yes”の場合はS16、“No”の場合はS15に進む。   In S14, it is determined whether or not the scene recognition result SR (total scene recognition result) in the RAM 69 is different from “AUTO”. If “Yes”, the process proceeds to S 16. If “No”, the process proceeds to S 15.

S15では、RAM69のstatusをサーチ状態に設定し、S1に戻る。   In S15, the status of the RAM 69 is set to the search state, and the process returns to S1.

S16では、RAM69のstatusを確定状態に設定し、S1に戻る。   In S16, the status of the RAM 69 is set to a confirmed state, and the process returns to S1.

図3は、フレーム変動チェック(S4)の詳細な処理の流れを示すフローチャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。   FIG. 3 is a flowchart showing a detailed processing flow of the frame variation check (S4). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S21では、RAM69のパラメータであるchangeをOFFに、change_measureを0に設定する。   In S21, change which is a parameter of the RAM 69 is set to OFF, and change_measure is set to 0.

S22では、撮影情報に基づいてフレーム変動基準情報を作成する。撮影情報は、顔検出の結果、フォーカスレンズ位置、ズームレンズ位置、合焦状態及び測光値等を含む。フレーム変動基準情報に含まれるデータ項目は撮影情報に含まれるデータ項目と同じであっても良い。さらに、作成したフレーム変動基準情報に基づいて1回目のフレーム変動チェックを行う。なお、フレーム変動チェックとは、前回にシーン認識が行われた際のフレーム画像(フレーム)の状態と比べて現在のフレームの状態が変動しているか検知する処理をいう。フレーム変動があった場合、撮影シーンが変動していると判断され、シーン認識処理が行われる。ここでは、フレーム変動チェックは、測光値変動チェック、フォーカス位置変動チェック、顔有無変動チェックのうちのいずれか1つであるものとするがその他の種類を含んでいてもよい。これらの処理は後述する。1回目のフレーム変動チェックの結果は、RAM69のパラメータであるE_AUTOSP_FRAME_CHECK1として記憶される。   In S22, frame variation reference information is created based on the shooting information. The shooting information includes a face detection result, a focus lens position, a zoom lens position, an in-focus state, a photometric value, and the like. The data item included in the frame variation reference information may be the same as the data item included in the shooting information. Further, the first frame variation check is performed based on the created frame variation reference information. Note that the frame fluctuation check is a process for detecting whether the current frame state is fluctuating compared to the state of the frame image (frame) when the scene recognition was performed last time. When there is a frame change, it is determined that the shooting scene has changed, and a scene recognition process is performed. Here, the frame variation check is one of a photometric value variation check, a focus position variation check, and a face presence / absence variation check, but may include other types. These processes will be described later. The result of the first frame variation check is stored as E_AUTOSP_FRAME_CHECK1, which is a parameter of the RAM 69.

S23では、S22の1回目のフレーム変動チェックの結果、フレーム変動があったか否かを判断する。“Yes”の場合はS24、“No”の場合はS26に進む。   In S23, it is determined whether or not there is a frame variation as a result of the first frame variation check in S22. If “Yes”, the process proceeds to S 24. If “No”, the process proceeds to S 26.

S24では、RAM69のchange_measureを1だけインクリメントする。   In S24, the change_measure in the RAM 69 is incremented by 1.

S25では、RAM69のchange_measureとROM68の所定閾値E_AUTOSP_FRAME_CHANGE_MEASUREとを比較し、change_measure≧E_AUTOSP_FRAME_CHANGE_MEASUREであるか否かを判断する。“No”の場合はS26、“Yes”の場合はS35に進む。   In S25, the change_measure in the RAM 69 and the predetermined threshold value E_AUTOSP_FRAME_CHANGE_MEASURE in the ROM 68 are compared to determine whether or not change_measure ≧ E_AUTOSP_FRAME_CHANGE_MEASURE. If “No”, the process proceeds to S26, and if “Yes”, the process proceeds to S35.

S26では、2回目のフレーム変動チェックを行う。ここでは、フレーム変動チェックは、測光値変動チェック、フォーカス位置変動チェック、顔有無変動チェックのうち、1回目と異なるいずれか1つである。2回目のフレーム変動チェックの結果は、RAM69のパラメータであるE_AUTOSP_FRAME_CHECK2として記憶される。   In S26, a second frame variation check is performed. Here, the frame variation check is any one of the photometry value variation check, the focus position variation check, and the face presence / absence variation check different from the first time. The result of the second frame fluctuation check is stored as E_AUTOSP_FRAME_CHECK2 which is a parameter of the RAM 69.

S27では、S26の2回目のフレーム変動チェックの結果、フレーム変動があったか否かを判断する。“Yes”の場合はS28、“No”の場合はS30に進む。   In S27, it is determined whether or not there is a frame variation as a result of the second frame variation check in S26. If “Yes”, the process proceeds to S 28. If “No”, the process proceeds to S 30.

S28では、RAM69のchange_measureを1だけインクリメントする。   In S28, the change_measure in the RAM 69 is incremented by 1.

S29では、RAM69のchange_measureと、ROM68に記憶された閾値E_AUTOSP_FRAME_CHANGE_MEASUREとを比較し、change_measure≧E_AUTOSP_FRAME_CHANGE_MEASUREであるか否かを判断する。“No”の場合はS30、“Yes”の場合はS35に進む。   In S29, the change_measure in the RAM 69 is compared with the threshold value E_AUTOSP_FRAME_CHANGE_MEASURE stored in the ROM 68, and it is determined whether or not change_measure ≧ E_AUTOSP_FRAME_CHANGE_MEASURE. If “No”, the process proceeds to S30, and if “Yes”, the process proceeds to S35.

S30では、3回目のフレーム変動チェックを行う。ここでは、フレーム変動チェックは、測光値変動チェック、フォーカス位置変動チェック、顔有無変動チェックのうち、1回目および2回目と異なるものである。3回目のフレーム変動チェックの結果は、RAM69のパラメータであるE_AUTOSP_FRAME_CHECK3として記憶される。   In S30, a third frame variation check is performed. Here, the frame variation check is different from the first time and the second time among the photometric value variation check, the focus position variation check, and the face presence / absence variation check. The result of the third frame variation check is stored as E_AUTOSP_FRAME_CHECK3, which is a parameter of the RAM 69.

S31では、S30の3回目のフレーム変動チェックの結果、フレーム変動があったか否かを判断する。“Yes”の場合はS32、“No”の場合はS34に進む。   In S31, it is determined whether or not there is a frame variation as a result of the third frame variation check in S30. If “Yes”, the process proceeds to S 32. If “No”, the process proceeds to S 34.

S32では、RAM69のchange_measureを1だけインクリメントする。   In S32, change_measure in the RAM 69 is incremented by 1.

S33では、RAM69のchange_measureと、ROM68に記憶された閾値E_AUTOSP_FRAME_CHANGE_MEASUREとを比較し、change_measure≧E_AUTOSP_FRAME_CHANGE_MEASUREであるか否かを判断する。“No”の場合はS34、“Yes”の場合はS35に進む。   In S33, the change_measure in the RAM 69 is compared with the threshold value E_AUTOSP_FRAME_CHANGE_MEASURE stored in the ROM 68, and it is determined whether or not change_measure ≧ E_AUTOSP_FRAME_CHANGE_MEASURE. If “No”, the process proceeds to S34, and if “Yes”, the process proceeds to S35.

S34では、フレーム変動なしと判断する。その判断を示すフラグをRAM69に記憶してもよい。そして、シーン認識メイン処理のS5に戻る。   In S34, it is determined that there is no frame variation. A flag indicating the determination may be stored in the RAM 69. Then, the process returns to S5 of the scene recognition main process.

S35では、フレーム変動ありと判断する。「フレーム変動あり」のフラグであるchange=ONに設定しRAM69に記憶する。そして、シーン認識メイン処理のS5に戻る。   In S35, it is determined that there is a frame fluctuation. The flag “change in frame” is set to change = ON and stored in the RAM 69. Then, the process returns to S5 of the scene recognition main process.

図4は測光値変動チェックのフローチャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。   FIG. 4 is a flowchart of the photometric value fluctuation check. The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S41では、RAM69のパラメータchange_evをOFFに設定する。また、RAM69のパラメータev[i]を今回のフレーム画像について測光部46から得られた測光値とする。iは、所定の単位で画像を分割して得たN個の各ブロックに対応する添え字である。ここではi=0〜N−1とする。   In S41, the parameter change_ev in the RAM 69 is set to OFF. The parameter ev [i] of the RAM 69 is set to a photometric value obtained from the photometric unit 46 for the current frame image. i is a subscript corresponding to each of N blocks obtained by dividing an image by a predetermined unit. Here, i = 0 to N-1.

また、RAM69のパラメータev_base[i]をフレーム変動基準情報の分割測光値とし、その値をRAM69に確保する。なお、ev_base[i]はメイン処理のS2で初期化され、S13で更新される。また、各ブロックに対応する重みw [i]をROM68から読み出す。   Further, the parameter ev_base [i] of the RAM 69 is set as the divided photometric value of the frame variation reference information, and the value is secured in the RAM 69. Note that ev_base [i] is initialized in S2 of the main process and updated in S13. Also, the weight w [i] corresponding to each block is read from the ROM 68.

S42では、次式によりdelta_evをRAM69に設定する。総和はi=0〜N−1につ
いて行われる。delta_evは全画面の明るさ同士の差分でもよい。
In S42, delta_ev is set in the RAM 69 by the following equation. The summation is performed for i = 0 to N-1. delta_ev may be the difference between the brightness of the entire screen.

delta_ev=ΣW[i]*|ev[i]-ev_base[i]|/ ΣW[i]
各領域ごとの差の絶対値を総和するのは次の理由による。絶対値をとらないと、実際には領域ごとに大きな変化が生じているにもかかわらず、総和により各領域ごとの変化が相殺され、全体として変化がなくなるのを防ぐためである。
delta_ev = ΣW [i] * | ev [i] -ev_base [i] | / ΣW [i]
The sum of the absolute values of the differences for each region is as follows. If the absolute value is not taken, it is to prevent the change for each region from being canceled out by the sum, even though a large change actually occurs for each region, and to prevent the change from being lost as a whole.

S43では、RAM69のdelta_evと、ROM68に記憶された閾値E_AUTOSP_FRAME_DELTA_EV とを比較し、delta_ev≧E_AUTOSP_FRAME_DELTA_EVであるか否かを判断する。“
Yes”の場合はS44、“No”の場合はS45に進む。
In S43, the delta_ev in the RAM 69 is compared with the threshold value E_AUTOSP_FRAME_DELTA_EV stored in the ROM 68 to determine whether or not delta_ev ≧ E_AUTOSP_FRAME_DELTA_EV. “
If “Yes”, the process proceeds to S 44. If “No”, the process proceeds to S 45.

S44では、測光値の変動があったと判断する。そして、測光値の変動があったことを示すフラグchange_evをONに設定しRAM69に記憶する。   In S44, it is determined that the photometric value has changed. Then, the flag change_ev indicating that the photometric value has changed is set to ON and stored in the RAM 69.

S45では、測光値の変動がなかったと判断する。測光値の変動がなかったことを示すフラグをRAM69に記憶してもよい。   In S45, it is determined that there is no change in the photometric value. A flag indicating that there is no change in the photometric value may be stored in the RAM 69.

図5はフォーカス位置変動チェックのフローチャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。   FIG. 5 is a flowchart of the focus position variation check. The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S51では、RAM69のパラメータchange_focal_pointをOFFに、focal_pointを
今回のフレーム画像を取得したときにレンズ駆動部51が設定したフォーカスレンズの位置(駆動パルス数)に、focal_point_baseをフレーム変動基準情報のフォーカスレンズの位置(S2で初期化あるいはS13で更新されるもの)とし、その記憶領域をRAM69に確保する。
In S51, the parameter change_focal_point of the RAM 69 is set to OFF, the focal_point is set to the focus lens position (number of drive pulses) set by the lens driving unit 51 when the current frame image is acquired, and focal_point_base is set to the focus lens of the frame variation reference information. The position (initialized in S2 or updated in S13) is set, and the storage area is secured in the RAM 69.

S52では、次式によりdelta_ focal_pointをRAM69に設定する。   In S52, delta_focal_point is set in the RAM 69 by the following equation.

delta_focal_point=| focal_point- focal_point_base|
S53では、RAM69のdelta_focal_pointと、ROM68に記憶された所定のフォ
ーカス位置変動閾値とを比較し、delta_focal_point>フォーカス位置変動閾値であるか
否かを判断する。“Yes”の場合はS54、“No”の場合はS55に進む。
delta_focal_point = | focal_point- focal_point_base |
In S53, delta_focal_point in the RAM 69 is compared with a predetermined focus position fluctuation threshold stored in the ROM 68, and it is determined whether or not delta_focal_point> focus position fluctuation threshold. If “Yes”, the process proceeds to S 54. If “No”, the process proceeds to S 55.

S54では、フォーカス位置の変動があったと判断する。そして、フォーカス位置の変動があったことを示すフラグchange_ focal_pointをONに設定しRAM69に記憶する
In S54, it is determined that the focus position has changed. Then, the flag change_focal_point indicating that the focus position has changed is set to ON and stored in the RAM 69.

S55では、フォーカス位置の変動がなかったと判断する。フォーカス位置の変動がなかったことを示すフラグをRAM69に記憶してもよい。   In S55, it is determined that the focus position has not changed. A flag indicating that the focus position has not changed may be stored in the RAM 69.

図6は顔有無変動チェックのフローチャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。   FIG. 6 is a flowchart of the face presence / absence variation check. The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S61では、RAM69のパラメータchange_face_resultをOFFに設定する。   In S61, the parameter change_face_result of the RAM 69 is set to OFF.

S62では、今回のフレーム画像を取得したときに顔検出処理部80が出力した顔検出の有無が、フレーム変動基準情報の顔検出の有無(S2で初期化あるいはS13で更新されるもの)と一致するか否かを判断する。“Yes”の場合はS64、“No”の場合はS63に進む。   In S62, the presence or absence of face detection output by the face detection processing unit 80 when the current frame image is acquired matches the presence or absence of face detection (initialized in S2 or updated in S13) in the frame variation reference information. Judge whether to do. If “Yes”, the process proceeds to S 64. If “No”, the process proceeds to S 63.

S63では、顔検出の有無の変動があったと判断する。そして、顔検出の有無の変動があったことを示すフラグchange_face_resultをONに設定しRAM69に記憶する。   In S63, it is determined that there has been a change in the presence or absence of face detection. Then, a flag change_face_result indicating that there has been a change in the presence or absence of face detection is set to ON and stored in the RAM 69.

S64では、顔検出の有無の変動がなかったと判断する。顔検出の有無の変動がなかったことを示すフラグをRAM69に記憶してもよい。   In S64, it is determined that there is no change in the presence or absence of face detection. A flag indicating that there is no change in the presence or absence of face detection may be stored in the RAM 69.

図7は認識部の単独シーン認識動作(S9)の詳細を示すフローチャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。   FIG. 7 is a flowchart showing details of the single scene recognition operation (S9) of the recognition unit. The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S71では、RAM69に格納された、シーン依存サーチを実施するフラグ(E_AUTOSR_SEARCH_TYPE)が0であるか否かを判断する。“Yes”の場合はS80、“No”の場合はS72に進む。なお、E_AUTOSR_SEARCH_TYPEの値は操作部11から任意に設定できるものとする。   In S71, it is determined whether or not the flag (E_AUTOSR_SEARCH_TYPE) for executing the scene-dependent search stored in the RAM 69 is zero. If “Yes”, the process proceeds to S 80. If “No”, the process proceeds to S 72. Note that the value of E_AUTOSR_SEARCH_TYPE can be arbitrarily set from the operation unit 11.

S72では、RAM69のシーン認識結果SRにAUTOを設定する。   In S72, AUTO is set in the scene recognition result SR of the RAM 69.

S73では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE1を代入する。E_AUTOSR_MODULE1は0〜4のうちのいずれかの整数である。そして、module[i]に相当するシーン判定(認識)サブルーチンを実施する。module[0]は何もしない。module[1]は後述の人物判定を行う。module[2]は後述の風景判定を行う。module[3]は後述の夜景判定を行う。module[4]は後述の接写判定を行う。   In S73, E_AUTOSR_MODULE1 stored in advance in the ROM 68 is substituted for the parameter i of the RAM 69. E_AUTOSR_MODULE1 is an integer from 0 to 4. Then, a scene determination (recognition) subroutine corresponding to module [i] is executed. module [0] does nothing. module [1] performs person determination described later. module [2] performs the landscape determination described later. module [3] performs night view judgment described later. module [4] performs the close-up judgment described later.

S74では、S73でのmodule[i]の実施の結果、RAM69のシーン認識結果SRがAUTOであるか否かを判断する。“Yes”の場合はS75に進み、“No”の場合はメイン処理のS10に戻る。   In S74, it is determined whether or not the scene recognition result SR in the RAM 69 is AUTO as a result of the execution of module [i] in S73. If “Yes”, the process proceeds to S75. If “No”, the process returns to S10 of the main process.

S75では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE2を代入する。E_AUTOSR_MODULE2は0〜4のうちのいずれかの整数であり、かつE_AUTOSR_MODULE1と異なる。そして、module[i]に相当するシーン判定サブルーチンを実施する。   In S75, E_AUTOSR_MODULE2 stored in advance in the ROM 68 is substituted for the parameter i of the RAM 69. E_AUTOSR_MODULE2 is an integer from 0 to 4, and is different from E_AUTOSR_MODULE1. Then, a scene determination subroutine corresponding to module [i] is executed.

S76では、S75でのmodule[i]の実施の結果、RAM69のシーン認識結果SRがAUTOであるか否かを判断する。“Yes”の場合はS77に進み、“No”の場合はメイン処理のS10に戻る。   In S76, it is determined whether or not the scene recognition result SR in the RAM 69 is AUTO as a result of the execution of module [i] in S75. If “Yes”, the process proceeds to S77, and if “No”, the process returns to S10 of the main process.

S77では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE3を代入する。E_AUTOSR_MODULE3は0〜4のうちのいずれかの整数であり、かつE_AUTOSR_MODULE1およびE_AUTOSR_MODULE2と異なる。そして、module[i]に相当するシーン判定サブルーチンを実施する。   In S77, E_AUTOSR_MODULE3 stored in the ROM 68 in advance is substituted for the parameter i of the RAM 69. E_AUTOSR_MODULE3 is an integer from 0 to 4, and is different from E_AUTOSR_MODULE1 and E_AUTOSR_MODULE2. Then, a scene determination subroutine corresponding to module [i] is executed.

S78では、S77でのmodule[i]の実施の結果、RAM69のシーン認識結果SRがAUTOであるか否かを判断する。“Yes”の場合はS79に進み、“No”の場合はメイン処理のS10に戻る。   In S78, it is determined whether or not the scene recognition result SR of the RAM 69 is AUTO as a result of the execution of module [i] in S77. If “Yes”, the process proceeds to S79. If “No”, the process returns to S10 of the main process.

S79では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE4を代入する。E_AUTOSR_MODULE34は0〜4のうちのいずれかの整数であり、かつE_AUTOSR_MODULE1およびE_AUTOSR_MODULE2およびE_AUTOSR_MODULE3と異なる。そして、module[i]に相当するシーン判定サブルーチンを実施する。E_AUTOSR_MODULE1、E_AUTOSR_MODULE2、E_AUTOSR_MODULE3、E_AUTOSR_MODULE4の値はどのように設定してもよいが、優先的にシーン判定を行いたい種類には若い番号を付するとよい。例えば、人物判定>風景判定>夜景判定>接写判定の順にシーン判定を行いたい場合は、E_AUTOSR_MODULE1=1、E_AUTOSR_MODULE2=2、E_AUTOSR_MODULE3=3、E_AUTOSR_MODULE4=4とする。これらの値を操作部11から任意に設定できてもよい。   In S79, E_AUTOSR_MODULE4 stored in advance in the ROM 68 is substituted for the parameter i of the RAM 69. E_AUTOSR_MODULE34 is an integer from 0 to 4, and is different from E_AUTOSR_MODULE1, E_AUTOSR_MODULE2, and E_AUTOSR_MODULE3. Then, a scene determination subroutine corresponding to module [i] is executed. The values of E_AUTOSR_MODULE1, E_AUTOSR_MODULE2, E_AUTOSR_MODULE3, and E_AUTOSR_MODULE4 may be set in any way, but it is better to assign a young number to the type for which scene determination is to be performed preferentially. For example, when it is desired to perform scene determination in the order of person determination> landscape determination> night scene determination> close-up determination, E_AUTOSR_MODULE1 = 1, E_AUTOSR_MODULE2 = 2, E_AUTOSR_MODULE3 = 3, E_AUTOSR_MODULE4 = 4. These values may be arbitrarily set from the operation unit 11.

S80では、現在のRAM69のシーン認識結果SRがAUTOであるか否かを判断する。“Yes”の場合はS72に進み、“No”の場合はS81に進む。   In S80, it is determined whether or not the current scene recognition result SR in the RAM 69 is AUTO. If “Yes”, the process proceeds to S 72. If “No”, the process proceeds to S 81.

S81では、RAM69のパラメータSR_oldに、現在のRAM69のシーン認識結果SRを設定する。すなわち、現在のRAM69のシーン認識結果SRがAUTOであればSR_old=0、現在のRAM69のシーン認識結果SRが人物であればSR_old=1、現在のRAM69のシーン認識結果SRが風景であればSR_old=2、現在のRAM69のシーン認識結果SRが夜景であればSR_old=3、現在のRAM69のシーン認識結果SRが接写であればSR_old=4とする。   In S81, the current scene recognition result SR of the RAM 69 is set in the parameter SR_old of the RAM 69. That is, SR_old = 0 if the current scene recognition result SR in the RAM 69 is AUTO, SR_old = 1 if the scene recognition result SR in the current RAM 69 is a person, and SR_old if the scene recognition result SR in the current RAM 69 is a landscape. = 2, SR_old = 3 if the current scene recognition result SR in the RAM 69 is a night view, and SR_old = 4 if the current scene recognition result SR in the RAM 69 is a close-up.

S82では、RAM69のパラメータiに、SR_oldを代入する。そして、module[i]に相当するシーン判定サブルーチンを実施する。   In S82, SR_old is substituted for the parameter i of the RAM 69. Then, a scene determination subroutine corresponding to module [i] is executed.

S83では、S82でのmodule[i]の実施の結果、RAM69のシーン認識結果SRが
AUTOであるか否かを判断する。“Yes”の場合はS84に進み、“No”の場合はメイン処理のS10に戻る。
In S83, it is determined whether or not the scene recognition result SR of the RAM 69 is AUTO as a result of the execution of module [i] in S82. If “Yes”, the process proceeds to S84. If “No”, the process returns to S10 of the main process.

S84では、SR_old=E_AUTOSR_MODULE1であるか否かを判断する。“Yes”の場合は
S87に進み、“No”の場合はS85に進む。
In S84, it is determined whether SR_old = E_AUTOSR_MODULE1. If “Yes”, the process proceeds to S87. If “No”, the process proceeds to S85.

S85では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE1を代入する。そして、module[i]に相当するシーン判定サブルーチンを実施する。   In S85, E_AUTOSR_MODULE1 stored in advance in the ROM 68 is substituted for the parameter i of the RAM 69. Then, a scene determination subroutine corresponding to module [i] is executed.

S86では、S85でのmodule[i]の実施の結果、RAM69のシーン認識結果SRが
AUTOであるか否かを判断する。“Yes”の場合はS87に進み、“No”の場合はメイン処理のS10に戻る。
In S86, it is determined whether or not the scene recognition result SR in the RAM 69 is AUTO as a result of the execution of module [i] in S85. If “Yes”, the process proceeds to S87. If “No”, the process returns to S10 of the main process.

S87では、SR_old=E_AUTOSR_MODULE2であるか否かを判断する。“Yes”の場合は
S90に進み、“No”の場合はS88に進む。
In S87, it is determined whether SR_old = E_AUTOSR_MODULE2. If “Yes”, the process proceeds to S90, and if “No”, the process proceeds to S88.

S88では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE2を代入する。そして、module[i]に相当するシーン判定サブルーチンを実施する。   In S88, E_AUTOSR_MODULE2 stored in advance in the ROM 68 is substituted for the parameter i of the RAM 69. Then, a scene determination subroutine corresponding to module [i] is executed.

S89では、S88でのmodule[i]の実施の結果、RAM69のシーン認識結果SRが
AUTOであるか否かを判断する。“Yes”の場合はS90に進み、“No”の場合はメイン処理のS10に戻る。
In S89, it is determined whether or not the scene recognition result SR in the RAM 69 is AUTO as a result of the execution of module [i] in S88. If “Yes”, the process proceeds to S90, and if “No”, the process returns to S10 of the main process.

S90では、SR_old=E_AUTOSR_MODULE3であるか否かを判断する。“Yes”の場合は
S93に進み、“No”の場合はS91に進む。
In S90, it is determined whether SR_old = E_AUTOSR_MODULE3. If “Yes”, the process proceeds to S93. If “No”, the process proceeds to S91.

S91では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE3を代入する。そして、module[i]に相当するシーン判定サブルーチンを実施する。   In S91, E_AUTOSR_MODULE3 stored in the ROM 68 in advance is substituted for the parameter i of the RAM 69. Then, a scene determination subroutine corresponding to module [i] is executed.

S92では、S91でのmodule[i]の実施の結果、RAM69のシーン認識結果SRが
AUTOであるか否かを判断する。“Yes”の場合はS93に進み、“No”の場合はメイン処理のS10に戻る。
In S92, it is determined whether or not the scene recognition result SR in the RAM 69 is AUTO as a result of the execution of module [i] in S91. If “Yes”, the process proceeds to S93. If “No”, the process returns to S10 of the main process.

S93では、SR_old=E_AUTOSR_MODULE4であるか否かを判断する。“Yes”の場合は
メイン処理のS10に戻り、“No”の場合はS94に進む。
In S93, it is determined whether SR_old = E_AUTOSR_MODULE4. If “Yes”, the process returns to S10 of the main process, and if “No”, the process proceeds to S94.

S94では、RAM69のパラメータiに、ROM68に予め記憶されたE_AUTOSR_MODULE4を代入する。そして、module[i]に相当するシーン判定サブルーチンを実施する。その後、メイン処理のS10に戻る。   In S94, E_AUTOSR_MODULE4 stored in advance in the ROM 68 is substituted for the parameter i of the RAM 69. Then, a scene determination subroutine corresponding to module [i] is executed. Thereafter, the process returns to S10 of the main process.

図8は以上の処理(S9)とS13によって決まる単独シーン認識結果及びトータルシーン認識結果SRを概念的に示している。   FIG. 8 conceptually shows the single scene recognition result and the total scene recognition result SR determined by the above processing (S9) and S13.

図8に示すように、単独シーン認識結果SRは、古いものから新しいものにかけて連続的に5個格納される。各単独シーン認識結果SRには添え字j=0〜4が付され、番号が小さいほど新しい認識結果である。単独シーン認識結果の蓄積個数=5は一例であって、3以上の整数であれば何でもよい。   As shown in FIG. 8, five single scene recognition results SR are successively stored from the oldest to the newest. Each single scene recognition result SR is given a suffix j = 0 to 4, and the smaller the number, the newer the recognition result. The number of stored single scene recognition results = 5 is an example, and any number may be used as long as it is an integer of 3 or more.

S73・S75・S77・S79あるいはS85・S88・S91・S94で、module[i]の単独シーン認識が実行されるごとに、新たなシーン認識結果SRが取得される。この結果、これまでに蓄積した過去のシーン認識結果SRの添え字には1がインクリメントされ、1世代古い履歴になる。新たなシーン認識結果SRには0(ゼロ)の添え字が付され、現在のシーン認識結果となる。   A new scene recognition result SR is acquired every time module [i] single scene recognition is executed in S73, S75, S77, S79 or S85, S88, S91, S94. As a result, 1 is incremented to the subscript of the past scene recognition result SR accumulated so far, and the history becomes one generation old. The new scene recognition result SR is given a subscript of 0 (zero) and becomes the current scene recognition result.

図8では、SR[0]=3, SR[1]=3, SR[2]=3, SR[3]=0, SR[4]=1であったのが、新たな単独シーン認識結果SR[0]=2が追加されることで、SR[1]=3, SR[2]=3, SR[3]=3, SR[4]=0となる。新たな単独シーン認識結果SR[0]の追加前に最も古い世代の単独シーン認識結果SR[4]=1は、新たな単独シーン認識結果の追加とともにRAM69から消去してもよいし保存してもよい。   In FIG. 8, SR [0] = 3, SR [1] = 3, SR [2] = 3, SR [3] = 0, SR [4] = 1 are the new single scene recognition results. By adding SR [0] = 2, SR [1] = 3, SR [2] = 3, SR [3] = 3, SR [4] = 0. Prior to the addition of a new single scene recognition result SR [0], the oldest generation single scene recognition result SR [4] = 1 may be deleted from the RAM 69 or saved together with the addition of a new single scene recognition result. Also good.

S13では、新たな単独シーン認識結果の追加がされると、SR[0], SR[1], SR[2], SR[3], SR[4]のうち最も出現頻度の高い単独シーン認識結果を特定し、それを改めてシーン認識結果SR(トータルシーン認識結果)とする。図8では3の出現頻度が最大であるからSR=3となる。従って、CPU75は、トータルシーン認識結果をSR=3として、撮影モードを夜景モードに設定する。これにより、夜景モードの撮影条件及び画像処理の条件に従って画像の撮影、記録が実行可能になる。さらに、出現頻度が最大となる単独シーン認識結果のうち、最も新しい単独シーン認識結果を得る時点に用いられた撮影情報に基づいてフレーム変動基準情報を更新する。図8では、出現頻度が最大(3)である単独シーン認識結果はSR[1]、SR[2]及びSR[3]である。このうち最も新しい単独シーン認識結果はSR[3]であるため、SR[3]を得る時点で用いられた撮影情報に基づいてフレーム変動基準情報を更新する。   In S13, when a new single scene recognition result is added, single scene recognition having the highest appearance frequency among SR [0], SR [1], SR [2], SR [3], SR [4] The result is specified, and this is again used as a scene recognition result SR (total scene recognition result). In FIG. 8, since the appearance frequency of 3 is the maximum, SR = 3. Accordingly, the CPU 75 sets the total scene recognition result as SR = 3 and sets the shooting mode to the night view mode. As a result, it becomes possible to execute image capturing and recording in accordance with the night view mode shooting conditions and image processing conditions. Further, the frame variation reference information is updated based on the shooting information used at the time of obtaining the newest single scene recognition result among the single scene recognition results having the maximum appearance frequency. In FIG. 8, the single scene recognition results with the maximum appearance frequency (3) are SR [1], SR [2], and SR [3]. Since the latest single scene recognition result among them is SR [3], the frame variation reference information is updated based on the shooting information used when SR [3] is obtained.

図示は省略するが、最大頻度の単独シーン認識結果が複数の場合は、最も新しい世代の単独シーン認識結果を含む方をトータルシーン認識結果SRとする。例えば、SR[0]=2, SR[1]=3, SR[2]=3, SR[3]=2, SR[4]=0の場合、SR[0]= SR[3]=2、SR[1]= SR[2]=3となり、2も3も出現頻度が同じである。この場合、最も新しい世代の単独シーン認識結果SR[0]を含む2がトータルシーン認識結果SRとなる。さらに、単独シーン認識結果SR[0]を得る時点で用いられた撮影情報に基づいてフレーム変動基準情報を更新する。   Although illustration is omitted, when there are a plurality of single scene recognition results with the highest frequency, the one containing the latest scene single scene recognition result is set as the total scene recognition result SR. For example, if SR [0] = 2, SR [1] = 3, SR [2] = 3, SR [3] = 2, SR [4] = 0, SR [0] = SR [3] = 2 SR [1] = SR [2] = 3 and 2 and 3 have the same appearance frequency. In this case, 2 including the newest generation single scene recognition result SR [0] is the total scene recognition result SR. Further, the frame variation reference information is updated based on the shooting information used when the single scene recognition result SR [0] is obtained.

図9はシーン判定サブルーチン(人物判定、module[1])の詳細を示すフローチャート
である。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。
FIG. 9 is a flowchart showing details of the scene determination subroutine (person determination, module [1]). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S101では、顔検出処理部80が顔検出したか否かを判断する。“Yes”の場合はS102、“No”の場合はS105に進む。   In S101, the face detection processing unit 80 determines whether a face is detected. If “Yes”, the process proceeds to S102. If “No”, the process proceeds to S105.

S102では、RAM69の顔制限フラグがオンであるか否かを判断する。“Yes”の場合はS103、“No”の場合はS104に進む。   In S102, it is determined whether or not the face restriction flag in the RAM 69 is on. If “Yes”, the process proceeds to S 103. If “No”, the process proceeds to S 104.

S103では、AF評価値の算出領域に設定された顔領域について、顔の大きさが所定範囲内かつ顔の傾きが所定の範囲内かつ顔の向きが所定の範囲内かつ顔の確からしさのスコアが所定の範囲内かつ顔の位置が所定の範囲内であるか否かを判断する。“No”の場合はS105、“Yes”の場合はS104に進む。   In S103, for the face area set as the AF evaluation value calculation area, the face size is within a predetermined range, the face inclination is within the predetermined range, the face orientation is within the predetermined range, and the face probability score Is determined within a predetermined range and whether the face position is within the predetermined range. If “No”, the process proceeds to S105, and if “Yes”, the process proceeds to S104.

S104では、シーン認識結果SR=人物に設定する。そして、module[1]の後に続く
処理、すなわち、S73・S75・S77・S79のうちいずれか1つの次の処理、あるいはS85・S88・S91・S94のうちいずれか1つの次の処理に進む。
In S104, the scene recognition result SR = person is set. Then, the process proceeds after module [1], that is, the next process of any one of S73, S75, S77, and S79, or the next process of any one of S85, S88, S91, and S94.

S105では、シーン認識結果SR=AUTOに設定する。   In S105, the scene recognition result SR is set to AUTO.

図10は、シーン判定サブルーチン(風景判定、module[2])の詳細を示すフローチャ
ートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。
FIG. 10 is a flowchart showing details of the scene determination subroutine (landscape determination, module [2]). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S111では、レリーズボタンの半押し(S1)がロックされているか否かを判断する。“Yes”の場合はS124、“No”の場合はS112に進む。   In S111, it is determined whether or not the half-press (S1) of the release button is locked. If “Yes”, the process proceeds to S 124. If “No”, the process proceeds to S 112.

S112では、設定メニューや操作部11を介して予めコンティニュアスAF(以下「CAF」と表記)の実行が設定されているか否かを判断する。“Yes”の場合はS113、“No”の場合はS129に進む。   In S <b> 112, it is determined whether execution of continuous AF (hereinafter referred to as “CAF”) is set in advance via the setting menu or the operation unit 11. If “Yes”, the process proceeds to S113. If “No”, the process proceeds to S129.

S113では、本撮像前AF処理部81の算出したAF評価値が、ROM68に記憶された所定の閾値よりも高いか否かを判断する。“Yes”の場合はS114、“No”の場合はS119に進む。なお、本ステップS113を省略してもよい。この場合、S112で“Yes”の場合はS114に進み、また、S113で“No”と判断された場合に続く諸処理(S119、S120、S121、S122、S123)も省略される。   In S113, it is determined whether the AF evaluation value calculated by the pre-imaging AF processing unit 81 is higher than a predetermined threshold stored in the ROM 68. If “Yes”, the process proceeds to S114. If “No”, the process proceeds to S119. Note that step S113 may be omitted. In this case, if “Yes” in S112, the process proceeds to S114, and the processes (S119, S120, S121, S122, and S123) that follow when “No” is determined in S113 are also omitted.

S114では、ROM68に記憶されたE_AUTOSR_CHECK_CAFSTATUS_HIGH=0であるか否
かを判断する。“Yes”の場合はS115、“No”の場合はS116に進む。
In S114, it is determined whether or not E_AUTOSR_CHECK_CAFSTATUS_HIGH = 0 stored in the ROM 68. If “Yes”, the process proceeds to S 115. If “No”, the process proceeds to S 116.

S115では、CAFの結果定まった合焦位置が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち合焦被写体が所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S115, it is determined whether the in-focus position determined as a result of the CAF is on the infinity side (INF) side from the predetermined focal length threshold stored in the ROM 68, that is, whether the in-focus subject is farther than the predetermined distance. To do. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S116では、E_AUTOSR_CHECK_CAFSTATUS_HIGH=1であるか否かを判断する。“Yes
”の場合はS117、“No”の場合はS118に進む。
In S116, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_HIGH = 1. “Yes
If "", the process proceeds to S117. If "No", the process proceeds to S118.

S117では、CAFの結果、AF評価値の極大点が検出され、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S117, as a result of the CAF, the maximum point of the AF evaluation value is detected, and the focal length corresponding to the in-focus position determined by the maximum point is infinity (INF) than the predetermined focal length threshold stored in the ROM 68. ) Side, that is, whether it is farther than a predetermined distance. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S118では、CAFの結果、AF評価値の極大点が検出されるかまたはAF評価値がその極大点の近傍にあり(例えば本出願人による特開2003−348426号公報段落0041の「微動調整」の段階にある場合)、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S118, as a result of CAF, the maximum point of the AF evaluation value is detected or the AF evaluation value is in the vicinity of the maximum point (for example, “fine adjustment” in paragraph 0041 of Japanese Patent Laid-Open No. 2003-348426 by the present applicant). And the focal length corresponding to the in-focus position determined at the local maximum point is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, from the predetermined distance. Judge whether the distance is too far. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S119では、ROM68に記憶されたE_AUTOSR_CHECK_CAFSTATUS_LOW=0であるか否かを判断する。“Yes”の場合はS120、“No”の場合はS121に進む。   In S119, it is determined whether or not E_AUTOSR_CHECK_CAFSTATUS_LOW = 0 stored in the ROM 68. If “Yes”, the process proceeds to S120. If “No”, the process proceeds to S121.

S120では、CAFの結果定まった合焦位置が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S120, it is determined whether the in-focus position determined as a result of CAF is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, whether it is farther than the predetermined distance. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S121では、E_AUTOSR_CHECK_CAFSTATUS_LOW=1であるか否かを判断する。“Yes”の場合はS122、“No”の場合はS123に進む。   In S121, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_LOW = 1. If “Yes”, the process proceeds to S122. If “No”, the process proceeds to S123.

S122では、CAFの結果、AF評価値の極大点が検出され、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S122, as a result of the CAF, the maximum point of the AF evaluation value is detected, and the focal length corresponding to the in-focus position determined by the maximum point is infinity (INF) than the predetermined focal length threshold stored in the ROM 68. ) Side, that is, whether it is farther than a predetermined distance. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S123では、CAFの結果、AF評価値の極大点が検出されるかまたはAF評価値がその極大点の近傍にあり(例えば本出願人による特開2003−348426号公報段落0041の「微動調整」の段階にある場合)、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S123, as a result of CAF, the maximum point of the AF evaluation value is detected or the AF evaluation value is in the vicinity of the maximum point (for example, “fine adjustment” in paragraph 0041 of JP-A-2003-348426 by the present applicant). And the focal length corresponding to the in-focus position determined at the local maximum point is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, from the predetermined distance. Judge whether the distance is too far. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S124では、AF処理部62のAF処理により合焦位置が決定され、かつその合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS125、“No”の場合はS129に進む。   In S124, the in-focus position is determined by the AF processing of the AF processing unit 62, and the focal length corresponding to the in-focus position is on the infinity (INF) side of the predetermined focal length threshold stored in the ROM 68. That is, it is determined whether or not the distance is longer than a predetermined distance. If “Yes”, the operation proceeds to S 125. If “No”, the operation proceeds to S 129.

S125では、制御回路74の測光した被写界輝度が、ROM68に記憶された所定の閾値よりも低いか否かを判断する。“Yes”の場合はS126、“No”の場合はS129に進む。   In S125, it is determined whether or not the field luminance measured by the control circuit 74 is lower than a predetermined threshold stored in the ROM 68. If “Yes”, the process proceeds to S 126. If “No”, the process proceeds to S 129.

S126では、ROM68の設定パラメータとしてあるいは操作部11から、予め風景ズーム情報フラグがオンに設定されているか否かを判断する。“Yes”の場合はS127、“No”の場合はS128に進む。   In S126, it is determined whether or not the landscape zoom information flag is set in advance as a setting parameter of the ROM 68 or from the operation unit 11. If “Yes”, the operation proceeds to S127. If “No”, the operation proceeds to S128.

S127では、ズームレンズ位置が所定範囲内例えば所定位置よりもワイド側にあるか否かを判断する。“Yes”の場合はS128、“No”の場合はS129に進む。なお、ズーム位置が所定範囲内にないとは、例えばズームレンズ位置がテレ端あるいはその近傍にある場合である。この場合、全景を画角に収めることができず、風景撮影に適していないから、撮影シーンはAUTOと判断する。   In S127, it is determined whether or not the zoom lens position is within a predetermined range, for example, on the wide side of the predetermined position. If “Yes”, the process proceeds to S128. If “No”, the process proceeds to S129. The zoom position is not within the predetermined range when, for example, the zoom lens position is at or near the tele end. In this case, since the entire view cannot be included in the angle of view and is not suitable for landscape photography, the photographing scene is determined to be AUTO.

S128では、SR=風景に設定する。そして、module[2]の後に続く処理に進む。   In S128, SR = landscape is set. Then, the process proceeds after module [2].

S129では、SR=AUTOに設定する。そして、module[2]の後に続く処理に進む。   In S129, SR = AUTO is set. Then, the process proceeds after module [2].

図11は、シーン判定サブルーチン(夜景判定、module[3])の詳細を示すフローチャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。   FIG. 11 is a flowchart showing details of the scene determination subroutine (night scene determination, module [3]). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S131では、制御回路74の測光した被写界輝度が、ROM68に記憶された所定の閾値よりも低いか否かを判断する。“Yes”の場合はS132、“No”の場合はS152に進む。   In S 131, it is determined whether or not the field luminance measured by the control circuit 74 is lower than a predetermined threshold stored in the ROM 68. If “Yes”, the operation proceeds to S 132. If “No”, the operation proceeds to S 152.

S132では、レリーズボタンの半押し(S1)がロックされているか否かを判断する。“Yes”の場合はS147、“No”の場合はS133に進む。   In S132, it is determined whether or not the release button half-press (S1) is locked. If “Yes”, the process proceeds to S 147. If “No”, the process proceeds to S 133.

S133では、RAM69に記憶されている半押し(S1)前の夜景判定フラグがオンに設定さているか否かを判断する。“Yes”の場合はS134、“No”の場合はS152に進む。   In S133, it is determined whether or not the night scene determination flag stored in the RAM 69 before half-pressing (S1) is set to ON. If “Yes”, the process proceeds to S 134. If “No”, the process proceeds to S 152.

S134では、操作部11からの入力あるいはROM68に記憶されたパラメータにより夜景判定で距離情報を使うか否かのいずれが設定されているかを判断する。夜景判定で距離情報を使う設定がされている場合はS135、夜景判定で距離情報を使う設定がされていない場合はS149に進む。   In S134, it is determined whether the distance information is to be used in the night scene determination based on the input from the operation unit 11 or the parameter stored in the ROM 68. If the setting for using distance information is set for night scene determination, the process proceeds to S135, and if the setting for using distance information is not set for night scene determination, the process proceeds to S149.

S135では、設定メニューや操作部11を介して予めCAFの実行が設定されているか否かを判断する。“Yes”の場合はS136、“No”の場合はS152に進む。   In S135, it is determined whether or not CAF execution is set in advance via the setting menu or the operation unit 11. If “Yes”, the operation proceeds to S136. If “No”, the operation proceeds to S152.

S136では、本撮像前AF処理部81の算出したAF評価値が、ROM68に記憶された所定の閾値よりも高いか否かを判断する。“Yes”の場合はS137、“No”の場合はS142に進む。なお、本ステップS136を省略してもよい。この場合、S135で“Yes”の場合はS137に進み、また、S136で“No”と判断された場合に続く諸処理も省略される。   In S 136, it is determined whether or not the AF evaluation value calculated by the pre-imaging AF processing unit 81 is higher than a predetermined threshold stored in the ROM 68. If “Yes”, the operation proceeds to S 137. If “No”, the operation proceeds to S 142. Note that step S136 may be omitted. In this case, if “Yes” in S135, the process proceeds to S137, and various processes subsequent to “No” in S136 are also omitted.

S137では、E_AUTOSR_CHECK_CAFSTATUS_HIGH=0であるか否かを判断する。“Yes
”の場合はS138、“No”の場合はS139に進む。
In S137, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_HIGH = 0. “Yes
If "", the process proceeds to S138. If "No", the process proceeds to S139.

S138では、CAFの結果定まった合焦位置が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S138, it is determined whether the in-focus position determined as a result of CAF is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, whether it is farther than the predetermined distance. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S139では、E_AUTOSR_CHECK_CAFSTATUS_HIGH=1であるか否かを判断する。“Yes
”の場合はS140、“No”の場合はS141に進む。
In S139, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_HIGH = 1. “Yes
If "", the process proceeds to S140. If "No", the process proceeds to S141.

S140では、CAFの結果、AF評価値の極大点が検出され、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S140, as a result of CAF, the maximum point of the AF evaluation value is detected, and the focal length corresponding to the in-focus position determined by the maximum point is infinity (INF) than the predetermined focal length threshold stored in the ROM 68. ) Side, that is, whether it is farther than a predetermined distance. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S141では、CAFの結果、AF評価値の極大点が検出されるかまたはAF評価値がその極大点の近傍にあり(例えば本出願人による特開2003−348426号公報段落0041の「微動調整」の段階にある場合)、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S141, as a result of CAF, the maximum point of the AF evaluation value is detected or the AF evaluation value is in the vicinity of the maximum point (for example, “fine adjustment” in paragraph 0041 of Japanese Patent Laid-Open No. 2003-348426 by the present applicant). And the focal length corresponding to the in-focus position determined at the local maximum point is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, from the predetermined distance. Judge whether the distance is too far. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S142では、E_AUTOSR_CHECK_CAFSTATUS_LOW=0であるか否かを判断する。“Yes”の場合はS143、“No”の場合はS144に進む。   In S142, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_LOW = 0. If “Yes”, the process proceeds to S143. If “No”, the process proceeds to S144.

S143では、CAFの結果定まった合焦位置が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S143, it is determined whether the in-focus position determined as a result of the CAF is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, whether it is farther than the predetermined distance. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S144では、E_AUTOSR_CHECK_CAFSTATUS_LOW=1であるか否かを判断する。“Yes”の場合はS145、“No”の場合はS146に進む。   In S144, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_LOW = 1. If “Yes”, the process proceeds to S145. If “No”, the process proceeds to S146.

S145では、CAFの結果、AF評価値の極大点が検出され、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S145, as a result of CAF, the maximum point of the AF evaluation value is detected, and the focal length corresponding to the in-focus position determined by the maximum point is infinity (INF) than the predetermined focal length threshold stored in the ROM 68. ) Side, that is, whether it is farther than a predetermined distance. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S146では、CAFの結果、AF評価値の極大点が検出されるかまたはAF評価値がその極大点の近傍にあり(例えば本出願人による特開2003−348426号公報段落0041の「微動調整」の段階にある場合)、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S146, as a result of CAF, a maximum point of the AF evaluation value is detected or the AF evaluation value is in the vicinity of the maximum point (for example, “fine adjustment” in paragraph 0041 of Japanese Patent Application Laid-Open No. 2003-348426 by the present applicant). And the focal length corresponding to the in-focus position determined at the local maximum point is on the infinity side (INF) side of the predetermined focal length threshold stored in the ROM 68, that is, from the predetermined distance. Judge whether the distance is too far. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S147では、操作部11からの入力あるいはROM68に記憶されたパラメータにより夜景判定で距離情報を使うか否かのいずれが設定されているかを判断する。夜景判定で距離情報を使う設定がされている場合はS148、夜景判定で距離情報を使う設定がされていない場合はS149に進む。   In S147, it is determined whether the distance information is to be used in the night scene determination based on an input from the operation unit 11 or a parameter stored in the ROM 68. If the setting for using distance information is set for night scene determination, the process proceeds to S148, and if the setting for using distance information is not set for night scene determination, the process proceeds to S149.

S148では、AF処理部62のAF処理により合焦位置が決定され、かつその合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも無限遠(INF)側にあるか、すなわち所定距離よりも遠いか否かを判断する。“Yes”の場合はS149、“No”の場合はS152に進む。   In S148, the in-focus position is determined by the AF processing of the AF processing unit 62, and the focal length corresponding to the in-focus position is on the infinity (INF) side of the predetermined focal length threshold stored in the ROM 68. That is, it is determined whether or not the distance is longer than a predetermined distance. If “Yes”, the process proceeds to S 149. If “No”, the process proceeds to S 152.

S149では、ROM68の設定パラメータとしてあるいは操作部11から、予め夜景ズーム情報フラグがオンに設定されているか否かを判断する。“Yes”の場合はS150、“No”の場合はS151に進む。   In S149, it is determined whether the night view zoom information flag is set to ON in advance as a setting parameter of the ROM 68 or from the operation unit 11. If “Yes”, the process proceeds to S150. If “No”, the process proceeds to S151.

S150では、ズームレンズ位置が所定範囲内、例えば所定位置よりもワイド側にあるか否かを判断する。“Yes”の場合はS151、“No”の場合はS152に進む。なお、ズーム位置が所定範囲内にないとは、例えばズームレンズ位置がテレ端あるいはその近傍にある場合である。この場合、入射光量の乏しいバック遠景を画角に収めることができず、夜景撮影に適していないから、AUTOと判定する。   In S150, it is determined whether or not the zoom lens position is within a predetermined range, for example, on the wide side of the predetermined position. If “Yes”, the process proceeds to S 151. If “No”, the process proceeds to S 152. The zoom position is not within the predetermined range when, for example, the zoom lens position is at or near the tele end. In this case, the back distant view with a small amount of incident light cannot be included in the angle of view, and is not suitable for night view photography, so it is determined as AUTO.

S151では、SR=夜景に設定する。そして、module[3]の後に続く処理に進む。   In S151, SR = night view is set. Then, the process proceeds after module [3].

S152では、SR=AUTOに設定する。そして、module[3]の後に続く処理に進む
In S152, SR = AUTO is set. Then, the process proceeds after module [3].

図12は、シーン判定サブルーチン(夜景判定、module[3])の他の一例を示すフロー
チャートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。夜景判定は、図11または12のいずれかを採用すれば足りる。いずれか一方を選択的に実行できてもよい。
FIG. 12 is a flowchart illustrating another example of the scene determination subroutine (night scene determination, module [3]). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68. For night view determination, either of FIGS. 11 and 12 is sufficient. Either one may be selectively executed.

S161では、制御回路74の測光した被写界輝度が、ROM68に記憶された所定の閾値よりも低いか否かを判断する。“Yes”の場合はS162、“No”の場合はS168に進む。なお、この閾値は、補助光制御部25へ発光を指示するか否かを判別する閾値と同じであってもよいし異なっていてもよい。   In S 161, it is determined whether or not the field luminance measured by the control circuit 74 is lower than a predetermined threshold stored in the ROM 68. If “Yes”, the operation proceeds to S 162. If “No”, the operation proceeds to S 168. This threshold value may be the same as or different from the threshold value for determining whether to instruct the auxiliary light control unit 25 to emit light.

S162では、レリーズボタンの半押し(S1)がロックされているか否かを判断する。“Yes”の場合はS163、“No”の場合はS168に進む。   In S162, it is determined whether or not the release button half-press (S1) is locked. If “Yes”, the process proceeds to S 163. If “No”, the process proceeds to S 168.

S163では、補助光制御部25に補助光26の発光を指示したか否かを判断する。“Yes”の場合はS164、“No”の場合はS168に進む。   In S163, it is determined whether or not the auxiliary light control unit 25 is instructed to emit the auxiliary light 26. If “Yes”, the process proceeds to S 164. If “No”, the process proceeds to S 168.

S164では、補助光制御部25が補助光発光部26を発光させる直前と直後にそれぞれ制御回路74の測光した被写界輝度の差が、ROM68に記憶された所定の閾値を超えているか否かを判断する。“Yes”の場合はS168、“No”の場合はS165に進む。なお、当該差が当該閾値を超えておらず、微小であれば、補助光照射による被写体輝度の増加の寄与がほとんどなく、被写体が近くないといえる。   In S164, whether or not the difference in the field luminance measured by the control circuit 74 immediately before and after the auxiliary light control unit 25 causes the auxiliary light emitting unit 26 to emit light exceeds a predetermined threshold stored in the ROM 68. Judging. If “Yes”, the process proceeds to S168. If “No”, the process proceeds to S165. Note that if the difference does not exceed the threshold and is very small, it can be said that there is almost no contribution to the increase in subject brightness due to irradiation of auxiliary light, and the subject is not close.

S165では、ROM68の設定パラメータとしてあるいは操作部11から、予め夜景ズーム情報フラグがオンに設定されているか否かを判断する。“Yes”の場合はS166、“No”の場合はS167に進む。   In S165, it is determined whether the night view zoom information flag is set to ON in advance as a setting parameter of the ROM 68 or from the operation unit 11. If “Yes”, the process proceeds to S 166. If “No”, the process proceeds to S 167.

S166では、ズームレンズ位置が所定範囲内、例えば所定位置よりもワイド側にあるか否かを判断する。“Yes”の場合はS167、“No”の場合はS168に進む。なお、ズーム位置が所定範囲内にないとは、例えばズームレンズ位置がテレ端あるいはその近傍にある場合である。この場合、バック遠景を画角に収めることができず、夜景撮影に適していない。   In S166, it is determined whether or not the zoom lens position is within a predetermined range, for example, on the wide side of the predetermined position. If “Yes”, the process proceeds to S 167. If “No”, the process proceeds to S 168. The zoom position is not within the predetermined range when, for example, the zoom lens position is at or near the tele end. In this case, the back distant view cannot be included in the angle of view and is not suitable for night view photography.

S167では、SR=夜景に設定する。そして、module[3]の後に続く処理に進む。   In S167, SR = night scene is set. Then, the process proceeds after module [3].

S168では、SR=AUTOに設定する。そして、module[3]の後に続く処理に進む
In S168, SR = AUTO is set. Then, the process proceeds after module [3].

図13は、シーン判定サブルーチン(接写判定、module[4])の詳細を示すフローチャ
ートである。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。
FIG. 13 is a flowchart showing details of the scene determination subroutine (close-up determination, module [4]). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S171では、レリーズボタンの半押し(S1)がロックされているか否かを判断する。“Yes”の場合はS184、“No”の場合はS172に進む。   In S171, it is determined whether or not the release button half-press (S1) is locked. If “Yes”, the process proceeds to S 184. If “No”, the process proceeds to S 172.

S172では、設定メニューや操作部11を介して予めCAFの実行が設定されているか否かを判断する。“Yes”の場合はS173、“No”の場合はS188に進む。   In S172, it is determined whether or not CAF execution is set in advance via the setting menu or the operation unit 11. If “Yes”, the process proceeds to S 173. If “No”, the process proceeds to S 188.

S173では、本撮像前AF処理部81の算出したAF評価値が、ROM68に記憶された所定の閾値よりも高いか否かを判断する。“Yes”の場合はS174、“No”の場合はS179に進む。なお、本ステップS173を省略してもよい。この場合、S172で“Yes”の場合はS174に進み、また、S173で“No”と判断された場合に続く諸処理も省略される。   In S 173, it is determined whether or not the AF evaluation value calculated by the pre-imaging AF processing unit 81 is higher than a predetermined threshold stored in the ROM 68. If “Yes”, the process proceeds to S 174. If “No”, the process proceeds to S 179. Note that step S173 may be omitted. In this case, if “Yes” in S 172, the process proceeds to S 174, and various processes subsequent to “No” in S 173 are also omitted.

S174では、E_AUTOSR_CHECK_CAFSTATUS_HIGH=0であるか否かを判断する。“Yes
”の場合はS175、“No”の場合はS176に進む。
In S174, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_HIGH = 0. “Yes
If "", the process proceeds to S175. If "No", the process proceeds to S176.

S175では、CAFの結果定まった合焦位置が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S175, it is determined whether the in-focus position determined as a result of CAF is closer to the near (NEAR) side than the predetermined focal distance threshold stored in the ROM 68, that is, whether it is closer than the predetermined distance. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S176では、E_AUTOSR_CHECK_CAFSTATUS_HIGH=1であるか否かを判断する。“Yes
”の場合はS177、“No”の場合はS178に進む。
In S176, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_HIGH = 1. “Yes
If "", the process proceeds to S177, and if "No", the process proceeds to S178.

S177では、CAFの結果、AF評価値の極大点が検出され、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S177, as a result of CAF, the maximum point of the AF evaluation value is detected, and the focal length corresponding to the in-focus position determined by the maximum point is closer than the predetermined focal length threshold value stored in the ROM 68 (NEAR). It is determined whether it is on the side, that is, whether it is closer than a predetermined distance. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S178では、CAFの結果、AF評価値の極大点が検出されるかまたはAF評価値がその極大点の近傍にあり(例えば本出願人による特開2003−348426号公報段落0041の「微動調整」の段階にある場合)、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S178, as a result of CAF, the maximum point of the AF evaluation value is detected or the AF evaluation value is in the vicinity of the maximum point (for example, “fine adjustment” in paragraph 0041 of JP-A-2003-348426 by the present applicant). And the focal length corresponding to the in-focus position determined by the local maximum point is closer to the near (NEAR) side than the predetermined focal length threshold stored in the ROM 68, that is, more than the predetermined distance. Judge whether it is close or not. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S179では、E_AUTOSR_CHECK_CAFSTATUS_LOW=0であるか否かを判断する。“Yes”の場合はS180、“No”の場合はS181に進む。   In S179, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_LOW = 0. If “Yes”, the process proceeds to S180. If “No”, the process proceeds to S181.

S180では、CAFの結果定まった合焦位置が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S180, it is determined whether the in-focus position determined as a result of CAF is closer to the nearer (NEAR) side than the predetermined focal length threshold stored in the ROM 68, that is, whether it is closer than the predetermined distance. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S181では、E_AUTOSR_CHECK_CAFSTATUS_LOW=1であるか否かを判断する。“Yes”の場合はS182、“No”の場合はS183に進む。   In S181, it is determined whether E_AUTOSR_CHECK_CAFSTATUS_LOW = 1. If “Yes”, the process proceeds to S 182. If “No”, the process proceeds to S 183.

S182では、CAFの結果、AF評価値の極大点が検出され、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S182, as a result of CAF, the maximum point of the AF evaluation value is detected, and the focal length corresponding to the in-focus position determined by the maximum point is closer than the predetermined focal length threshold value stored in the ROM 68 (NEAR). It is determined whether it is on the side, that is, whether it is closer than a predetermined distance. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S183では、CAFの結果、AF評価値の極大点が検出されるかまたはAF評価値がその極大点の近傍にあり(例えば本出願人による特開2003−348426号公報段落0041の「微動調整」の段階にある場合)、かつその極大点で定まった合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S183, as a result of CAF, the maximum point of the AF evaluation value is detected or the AF evaluation value is in the vicinity of the maximum point (for example, “fine adjustment” in Japanese Patent Application Laid-Open No. 2003-348426, paragraph 0041 by the present applicant). And the focal length corresponding to the in-focus position determined by the local maximum point is closer to the near (NEAR) side than the predetermined focal length threshold stored in the ROM 68, that is, more than the predetermined distance. Judge whether it is close or not. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S184では、AF処理部62のAF処理により合焦位置が決定され、かつその合焦位置に対応する焦点距離が、ROM68に記憶された所定の焦点距離閾値よりも至近(NEAR)側にあるか、すなわち所定距離よりも近いか否かを判断する。“Yes”の場合はS185、“No”の場合はS188に進む。   In S184, the focus position is determined by the AF process of the AF processing unit 62, and the focal length corresponding to the focus position is closer to the near (NEAR) side than the predetermined focal distance threshold stored in the ROM 68. That is, it is determined whether or not it is closer than a predetermined distance. If “Yes”, the process proceeds to S 185. If “No”, the process proceeds to S 188.

S185では、ROM68の設定パラメータとしてあるいは操作部11から、予め接写ズーム情報フラグがオンに設定されているか否かを判断する。“Yes”の場合はS186、“No”の場合はS187に進む。   In S185, it is determined whether the close-up zoom information flag is set to ON in advance as a setting parameter of the ROM 68 or from the operation unit 11. If “Yes”, the process proceeds to S186. If “No”, the process proceeds to S187.

S186では、ズームレンズ位置がROM68に記憶された所定範囲内、例えば所定位置よりもワイド側にあるか否かを判断する。“Yes”の場合はS187、“No”の場合はS188に進む。なお、ズーム位置が所定範囲内にないとは、例えばズームレンズ位置がワイド端あるいはその近傍にある場合以外である。この場合、近接被写体の合焦ができず、近接撮影に適していない。   In S186, it is determined whether or not the zoom lens position is within a predetermined range stored in the ROM 68, for example, on the wide side of the predetermined position. If “Yes”, the process proceeds to S 187. If “No”, the process proceeds to S 188. Note that the zoom position is not within the predetermined range, for example, except when the zoom lens position is at or near the wide end. In this case, the close subject cannot be focused and is not suitable for close-up photography.

S187では、SR=接写に設定する。そして、module[4]の後に続く処理に進む。   In S187, SR = close-up is set. Then, the process proceeds after module [4].

S188では、SR=AUTOに設定する。そして、module[4]の後に続く処理に進む。   In S188, SR = AUTO is set. Then, the process proceeds after module [4].

図9〜図13のシーン判定の結果は、CPU75が表示部11に表示するよう制御する。   The CPU 75 controls the display unit 11 to display the scene determination results in FIGS. 9 to 13.

例えば、図14に示すように、シーン判定の結果である「風景」、「AUTO」、「人物」、「夜景」、「接写」といった文字を、スルー画像にあるいはレリーズボタン全押し後の記録用画像に重畳して、表示部11に表示する。シーン判定の結果を示す文字列、アイコン、記号その他の情報は、図示しないOSD回路によって生成される。カメラ1に音声処理回路やスピーカが備えられていれば、シーン判定の結果に対応する報知音を出力するようCPU75が制御してもよい。「自動シーン認識OFF」が設定されていれば、シーン判定結果は表示されない。   For example, as shown in FIG. 14, characters such as “landscape”, “AUTO”, “person”, “night view”, and “close-up”, which are the results of the scene determination, are recorded on the through image or after the release button is fully pressed. The image is superimposed on the image and displayed on the display unit 11. Character strings, icons, symbols, and other information indicating the result of scene determination are generated by an OSD circuit (not shown). If the camera 1 is provided with an audio processing circuit and a speaker, the CPU 75 may control to output a notification sound corresponding to the result of the scene determination. If “automatic scene recognition OFF” is set, the scene determination result is not displayed.

以上の処理により、ユーザが撮ろうとしている、もしくは撮ったシーンが、どのようなシーンであるのかを認識できる。認識した結果は、図14に示すように、テキストやアイコン表示でユーザに分かりやすい形で通知される。認識可能なシーンは、人物(図9)、風景(図10)、夜景(図11・12)、接写(図13)である。シーン判定結果がこれらのどのシーンにもあてはまらない場合は、AUTOとなる。   Through the above processing, it is possible to recognize what kind of scene the user is going to take or has taken. As shown in FIG. 14, the recognized result is notified to the user in an easy-to-understand form by displaying text and icons. Recognizable scenes are a person (FIG. 9), a landscape (FIG. 10), a night view (FIGS. 11 and 12), and a close-up (FIG. 13). If the scene determination result does not apply to any of these scenes, the result is AUTO.

図2のメイン処理では、シーン変動時にシーン認識を行う。前回のシーン認識結果が確定されたときのフレームの状態と、現フレームの状態の変動を監視する(S4、図3)。変化があった場合にシーン変動ありと判断されると(S5)、status=サーチ状態となり
(S6)、シーン変動のタイミングで認識部が動作する(S9)。
In the main process of FIG. 2, scene recognition is performed when the scene changes. Changes in the state of the frame when the previous scene recognition result is confirmed and the state of the current frame are monitored (S4, FIG. 3). If it is determined that there is a scene change when there is a change (S5), status = search state (S6), and the recognition unit operates at the scene change timing (S9).

図3のフレーム変動チェックでは、変動を検知する因子を複数持つことが可能で、順序の入れ換えなども、E_AUTOSR_FRAME_CHECK1〜3の設定により可能である。そして、変動を検知した場合には、フレーム変動の指標となるchange_measureの値をインクリメントする(S24、S28、S32)。change_measureの値がE_AUTOSR_FRAME_CHANGE_MEASURE以
上の場合には(S25、S29、S33で“Yes”)、フレーム変動ありと判断される(S35)。
In the frame variation check of FIG. 3, it is possible to have a plurality of factors for detecting variation, and the order can be changed by setting E_AUTOSR_FRAME_CHECK1 to 3. When a change is detected, the value of change_measure that is an index of the frame change is incremented (S24, S28, S32). If the value of change_measure is greater than or equal to E_AUTOSR_FRAME_CHANGE_MEASURE (“Yes” in S25, S29, and S33), it is determined that there is a frame variation (S35).

ここでは、フレーム変動を検知する具体的な処理として、測光値変動チェック(図4)、フォーカス位置変動チェック(図5)、顔有無変動チェック(図6)を示している。なお図示は省略するが、本撮像前AF処理部81の合焦検出の有無に応じてフレーム変動を検知してもよい。   Here, as specific processing for detecting the frame fluctuation, a photometric value fluctuation check (FIG. 4), a focus position fluctuation check (FIG. 5), and a face presence / absence fluctuation check (FIG. 6) are shown. Although illustration is omitted, frame variation may be detected according to whether or not the pre-imaging AF processing unit 81 has detected focus.

図4の測光値変動チェックでは、測光値の変動量の指標となるdelta_evは、N分割の分割エリアごとに測光値変動量を算出し、各エリアに対応した重みをかけて総和をとったものである。そして、delta_evの値がE_AUTOSP_FRAME_DELTA_EV以上の場合に、測光値変動
ありと判断する。
In the photometric value fluctuation check of FIG. 4, delta_ev, which is an index of the photometric value fluctuation amount, is calculated by calculating the photometric value fluctuation amount for each of the N-divided areas and summing them by applying a weight corresponding to each area. It is. If the value of delta_ev is equal to or greater than E_AUTOSP_FRAME_DELTA_EV, it is determined that there is a change in the photometric value.

図5のフォーカス位置変動チェックでは、フォーカス位置の変動量の指標となるdelta_focal_pointは、基準情報のフォーカス位置と今回のフォーカス位置の差分によって算出
される。delta_focal_pointの値がフォーカス位置変動閾値以上の場合に、フォーカス位
置変動ありと判断する。なお、ここで使用される閾値は、ズーム位置ごとにROM68に設定されているものとする。
In the focus position fluctuation check of FIG. 5, delta_focal_point, which is an index of the focus position fluctuation amount, is calculated from the difference between the focus position of the reference information and the current focus position. When the value of delta_focal_point is equal to or greater than the focus position fluctuation threshold, it is determined that there is a focus position fluctuation. Note that the threshold used here is set in the ROM 68 for each zoom position.

図6の顔有無変動チェックでは、基準情報の顔有無結果と今回の顔有無結果が異なる場合に、顔有無変動ありと判断する。   In the face presence / absence variation check in FIG. 6, it is determined that there is a face presence / absence variation when the face presence / absence result of the reference information is different from the current face presence / absence result.

認識部動作の差異に使用するシーン認識履歴は、自動シーン認識の結果として採用するSRを求めた後にクリアする(S8)。これは、認識部は常時動作することを想定しておらず、離れた時刻の情報を参照することがないようにするためである。   The scene recognition history used for the difference in the recognition unit operation is cleared after obtaining the SR to be adopted as a result of the automatic scene recognition (S8). This is because the recognizing unit is not assumed to always operate and does not refer to information at a distant time.

ここで、シーン認識履歴がクリアされるために、サーチ状態となってから(S6)、トータルシーン認識の際に必要な数だけの単独シーン認識結果が得られるように、その数と同じ回数分だけ認識部が動作するまでは(S11で“Y”となるまでは)、SRが更新されない仕組みとなる。   Here, since the scene recognition history is cleared, after entering the search state (S6), the same number of times as the number of single scene recognition results required for total scene recognition are obtained. Only until the recognition unit operates (until “Y” in S11), the SR is not updated.

また、SRを決定した際、フレーム変動をチェックするためのフレーム変動基準情報として、採用されたSRが最大頻度になった(最新側の)時点の撮影情報を記憶する(S13)。   Further, when determining the SR, the shooting information at the time point when the adopted SR becomes the maximum frequency (latest side) is stored as the frame variation reference information for checking the frame variation (S13).

なお、決定したSRがAUTO以外の場合は、statusは「確定状態」となり(S16)、シーンが変動するまでは認識部は動作しない。これに対し、決定したSRがAUTOの場合は「サーチ状態」となり(S15)、引き続き認識部を動作させる。これはシーン変動の途中で認識した結果に基づいてstatusを「確定状態」にすることで、シーン変動を正しく検知できなくなってしまう可能性があるためである。   If the determined SR is other than AUTO, the status is “determined” (S16), and the recognition unit does not operate until the scene changes. On the other hand, when the determined SR is AUTO, the “search state” is set (S15), and the recognition unit is continuously operated. This is because setting the status to the “determined state” based on the result recognized in the middle of the scene change may prevent the scene change from being detected correctly.

仮に、シーン変動の途中の状態をフレーム変動基準情報として登録した後、フレーム変動をチェックしてしまうと、最終的にシーン変動が完了した状態で認識部に動作してほしいと思っても、基準情報との差分が小さい故に、認識部が動作しない現象が起こってしまう。そこで、これを回避するため、上記のように確定したシーンに対応する撮影情報に基づいてフレーム変動基準情報を更新する処理を行う(S13)。   If you check the frame fluctuation after registering the state in the middle of the scene fluctuation as the frame fluctuation reference information, even if you want the recognizer to operate with the scene fluctuation finally completed, Since the difference from the information is small, a phenomenon occurs in which the recognition unit does not operate. In order to avoid this, processing for updating the frame variation reference information is performed based on the shooting information corresponding to the scene determined as described above (S13).

シーン認識は結果が安定しないと、出力結果がユーザの混乱を招く。そこで、撮影シーンがどのようなシーンであるのかという判断をする処理(S7〜S16)と、認識したシーンから変動があったかという監視をする処理(S4〜S6)とを混合的に動作させることにより、正確で安定したシーン認識を行うことが可能となる。   If the result of scene recognition is not stable, the output result causes user confusion. Accordingly, by performing a mixed operation of the process for determining what kind of scene the shooting scene is (S7 to S16) and the process for monitoring whether there is a change from the recognized scene (S4 to S6). It is possible to perform accurate and stable scene recognition.

<第2実施形態>
図15は第2実施形態に係るフレーム変動チェックサブルーチンのフローチャートである。この処理は、図3の処理に換えて実行させることができる。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。
Second Embodiment
FIG. 15 is a flowchart of a frame fluctuation check subroutine according to the second embodiment. This process can be executed instead of the process of FIG. The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S201〜S203は、S21〜23と同様である。   S201 to S203 are the same as S21 to 23.

S204では、RAM69のパラメータchange_measureに、1回目のフレーム変動チェックに対応する重みE_AUTOSP_FRAME_CHECK1を加えた値を新たなchange_measureに設定する。E_AUTOSP_FRAME_CHECK1は予めROM68に記憶されている。   In S204, a value obtained by adding a weight E_AUTOSP_FRAME_CHECK1 corresponding to the first frame variation check to the parameter change_measure in the RAM 69 is set as a new change_measure. E_AUTOSP_FRAME_CHECK1 is stored in the ROM 68 in advance.

S205〜S207は、S25〜27と同様である。   S205 to S207 are the same as S25 to 27.

S208では、RAM69のパラメータchange_measureに、2回目のフレーム変動チェックに対応する重みE_AUTOSP_FRAME_CHECK2を加えた値を新たなchange_measureに設定する。E_AUTOSP_FRAME_CHECK2は予めROM68に記憶されている。   In S208, a value obtained by adding the weight E_AUTOSP_FRAME_CHECK2 corresponding to the second frame variation check to the parameter change_measure in the RAM 69 is set as a new change_measure. E_AUTOSP_FRAME_CHECK2 is stored in the ROM 68 in advance.

S209〜S211は、S29〜27と同様である。   S209 to S211 are the same as S29 to 27.

S212では、RAM69のパラメータchange_measureに、3回目のフレーム変動チェックに対応する重みE_AUTOSP_FRAME_CHECK3を加えた値を新たなchange_measureに設定する。E_AUTOSP_FRAME_CHECK3は予めROM68に記憶されている。   In S212, a value obtained by adding the weight E_AUTOSP_FRAME_CHECK3 corresponding to the third frame variation check to the parameter change_measure in the RAM 69 is set as a new change_measure. E_AUTOSP_FRAME_CHECK3 is stored in the ROM 68 in advance.

S213〜S215は、S33〜35と同様である。   S213 to S215 are the same as S33 to 35.

図16は、ROM68に記憶された、1〜3回目のフレーム変動チェックに対応する重みE_AUTOSP_FRAME_CHECK1〜3の一例と、1〜3回目のフレーム変動チェックによる変化の有無に応じたchange_measureの値の一例との関係を示すテーブルである。   FIG. 16 shows an example of weights E_AUTOSP_FRAME_CHECK1 to 3 corresponding to the first to third frame fluctuation checks stored in the ROM 68, and an example of the value of change_measure corresponding to the presence or absence of a change due to the first to third frame fluctuation checks. It is a table which shows the relationship.

ここでは一例として、1回目のフレーム変動チェックは顔有無変動(図6)、2回目のフレーム変動チェックはフォーカス位置変動(図5)、3回目のフレーム変動チェックは測光値変動(図4)であり、E_AUTOSP_FRAME_CHECK1=2、E_AUTOSP_FRAME_CHECK2=1、E_AUTOSP_FRAME_CHECK3=1とされている。すなわち顔有無変動は、フォーカス位置変動や測光値変動に比べて重みが大きい。   Here, as an example, the first frame variation check is a face presence variation (FIG. 6), the second frame variation check is a focus position variation (FIG. 5), and the third frame variation check is a photometric value variation (FIG. 4). Yes, E_AUTOSP_FRAME_CHECK1 = 2, E_AUTOSP_FRAME_CHECK2 = 1, and E_AUTOSP_FRAME_CHECK3 = 1. That is, the face presence / absence fluctuation is more weighted than the focus position fluctuation and the photometric value fluctuation.

テーブルでは1〜3回目のフレーム変動チェックで想定される変動結果の組み合わせの全てが網羅されているが、図示は省略している。例えば、E_AUTOSP_FRAME_CHANGE_MEASURE=2の場合、1回目のフレーム変動チェック(顔有無変動)で変化ありと判断されれば、change_measure=2=E_AUTOSP_FRAME_CHANGE_MEASUREとなるから、S205で“Yes”と判定され、S215に進み、フレーム変動ありと判断される。すなわち、顔有無変動に対応する重みが大きいため、顔有無変動があっただけで即座にフレーム変動ありとなる。   The table covers all combinations of variation results assumed in the first to third frame variation checks, but is not shown. For example, when E_AUTOSP_FRAME_CHANGE_MEASURE = 2, if it is determined that there is a change in the first frame change check (face presence / absence change), change_measure = 2 = E_AUTOSP_FRAME_CHANGE_MEASURE, so “Yes” is determined in S205, and the process proceeds to S215. It is determined that there is a frame fluctuation. That is, since the weight corresponding to the face presence / absence variation is large, there is a frame variation immediately when there is a face presence / absence variation.

一方。1回目のフレーム変動チェック(顔有無変動)で変化なしと判断された場合、2回目のフレーム変動チェック(フォーカス位置変動)で変化ありと判断されても、change_measure=1<E_AUTOSP_FRAME_CHANGE_MEASUREとなる。よって、3回目のフレーム変動チェックで変化ありと判断されない限り、S213で“No”と判定され、S214に進み、フレーム変動なしと判断される。すなわち、フォーカス位置変動に対応する重みが小さいため、フォーカス位置変動があっただけで即座にフレーム変動ありとはならず、他の要因の変動があって初めて変化ありと判断される。   on the other hand. If it is determined that there is no change in the first frame variation check (face presence variation), even if it is determined that there is a change in the second frame variation check (focus position variation), change_measure = 1 <E_AUTOSP_FRAME_CHANGE_MEASURE. Therefore, unless it is determined that there is a change in the third frame fluctuation check, “No” is determined in S213, and the process proceeds to S214, where it is determined that there is no frame fluctuation. In other words, since the weight corresponding to the focus position change is small, it is determined that the change does not occur immediately when there is a focus position change, but only when there is a change in other factors.

図16のテーブルの内容、すなわち各回のフレーム変動チェックに対応する重み、E_AUTOSP_FRAME_CHANGE_MEASUREの値は、表示部71に表示された「重要項目選択」画面から、操作部11を介してユーザが自由に設定できる。   The contents of the table of FIG. 16, that is, the weight corresponding to each frame change check and the value of E_AUTOSP_FRAME_CHANGE_MEASURE can be freely set by the user via the operation unit 11 from the “important item selection” screen displayed on the display unit 71. .

こうすることで、シーンが変動しているのか判断する因子が複数存在する場合に、それぞれに対応する重みを自由に設定可能にすることで、シーン変動チェックの基準を多様な形で表現できる。ユーザがシーン変動ありと判断される条件を自由に設定できれば、シーン変動基準をカスタマイズでき、ユーザが重視する因子の変化をシーン変動の判断に強く反映できる。   In this way, when there are a plurality of factors for determining whether the scene is changing, the weights corresponding to each factor can be freely set, so that the criteria for the scene change check can be expressed in various forms. If the user can freely set the condition for determining that there is a scene change, the scene change reference can be customized, and the change of the factor emphasized by the user can be strongly reflected in the determination of the scene change.

<第3実施形態>
図17は第3実施形態に係るメイン処理のフローチャートである。この処理は、図2の処理に換えて実行させることができる。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。本実施形態では、フレーム変動基準情報に基づいてフレーム変動チェック(単独フレーム変動チェック)を複数回行い、さらに、フレーム変動チェック結果をフレーム変動履歴として蓄積し、そのフレーム変動履歴に基づいてフレーム変動チェック(トータルフレーム変動チェック)を行う。
<Third Embodiment>
FIG. 17 is a flowchart of the main process according to the third embodiment. This process can be executed instead of the process of FIG. The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68. In this embodiment, the frame variation check (single frame variation check) is performed a plurality of times based on the frame variation reference information, the frame variation check result is accumulated as a frame variation history, and the frame variation check is performed based on the frame variation history. (Total frame fluctuation check) is performed.

S301〜303は、S1〜3と同様である。ただし、S302では、フレーム変動履歴も初期化する。   S301 to 303 are the same as S1 to S3. However, in S302, the frame fluctuation history is also initialized.

S304では、RAM69に記憶されたフレーム変動履歴を一世代古い方に繰り上げる。すなわち、フレーム変動履歴をスライドさせる。図18では一例として、新しいものから5個の履歴1、1、0、0、1がスライドされる。その結果、最新の履歴は「空き(null)」になり、それよりも古い履歴は1、1、0、0となる。なお、履歴の数は5個でなくてもよい。   In S304, the frame fluctuation history stored in the RAM 69 is moved up by one generation. That is, the frame fluctuation history is slid. In FIG. 18, as an example, five histories 1, 1, 0, 0, 1 are slid from a new one. As a result, the latest history is “null”, and the older history is 1, 1, 0, 0. Note that the number of histories need not be five.

S305は、取り込まれた最新フレームについて、フレーム変動チェック(単独フレーム変動チェック)を行い、その結果を最新の単独フレーム変動チェック結果としてフレーム変動履歴に加える。   In step S305, a frame variation check (single frame variation check) is performed on the latest fetched frame, and the result is added to the frame variation history as the latest single frame variation check result.

S306では、S305の結果、フレーム変動があったか否かの判断を行う。“Yes”の場合はS307,“No”の場合はS301に戻る。   In S306, it is determined whether or not the frame has changed as a result of S305. If “Yes”, the process returns to S307, and if “No”, the process returns to S301.

S307では、RAM69に記憶されたフレーム変動履歴のうち最新の単独フレーム変動チェック結果の変動フラグをONに設定する。図18では一例として、最新フレームについてフレーム変動ありと判断され、フレーム変動履歴は1、1、1、0、0となっている。   In S307, the variation flag of the latest single frame variation check result in the frame variation history stored in the RAM 69 is set to ON. In FIG. 18, as an example, the latest frame is determined to have a frame variation, and the frame variation history is 1, 1, 1, 0, 0.

S308は、S4と同様である。   S308 is the same as S4.

以下のS309及びS310において、フレーム変動履歴に基づくフレーム変動チェック(トータルフレーム変動チェック)を行う。S309では、RAM69に記憶されたフレーム変動履歴を参照し、変動のあった回数(E_AUTOSR_FRAME_CHECK_HISTORY)をカウントする。   In the following S309 and S310, a frame variation check (total frame variation check) based on the frame variation history is performed. In S309, the frame fluctuation history stored in the RAM 69 is referred to and the number of times of fluctuation (E_AUTOSR_FRAME_CHECK_HISTORY) is counted.

S309では、フレーム変動履歴に含まれる過去のM(図18ではM=5)個の単独フレーム変動チェック結果のうち、S309でカウントされた変動のあった回数(E_AUTOSR_FRAME_CHECK_HISTORY)が、ROM68に記憶された所定のシーン変動判断閾値(E_AUTOSR_SCENE_CHANGE_JUDGE)以上であるか否かを判断する。“Yes”の場合はS310、“No”の場合はS301に戻る。   In S309, the number of changes (E_AUTOSR_FRAME_CHECK_HISTORY) counted in S309 among the past M (M = 5 in FIG. 18) single frame change check results included in the frame change history is stored in the ROM 68. It is determined whether or not a predetermined scene variation determination threshold value (E_AUTOSR_SCENE_CHANGE_JUDGE) or more. If “Yes”, the process returns to S310, and if “No”, the process returns to S301.

S310では、シーン変動ありと判断し、statusをサーチ状態とし、RAM69のフレーム変動履歴をクリアする。すなわち、図18のフレーム変動履歴1、1、1、0、0は全てクリアされ、新たにM個の単独フレーム変動チェック結果が蓄積されるまでシーン変動の有無(トータルフレーム変動チェック)は判断されない。   In S310, it is determined that there is a scene change, the status is set to the search state, and the frame change history in the RAM 69 is cleared. That is, all the frame fluctuation histories 1, 1, 1, 0, 0 in FIG. 18 are cleared, and the presence or absence of scene fluctuation (total frame fluctuation check) is not judged until M individual frame fluctuation check results are newly accumulated. .

S311では、シーン認識履歴保持フラグがONであるか否かを判断する。“Yes”の場合はS313、“No”の場合はS312に進む。   In S311, it is determined whether or not the scene recognition history retention flag is ON. If “Yes”, the process proceeds to S 313. If “No”, the process proceeds to S 312.

S312では、RAM69のシーン認識カウンタを0に設定し、シーン認識履歴をクリアし、半押し(S1)後認識時参照用シーン認識履歴をクリアする。   In S312, the scene recognition counter of the RAM 69 is set to 0, the scene recognition history is cleared, and the reference scene recognition history for recognition after half-pressing (S1) is cleared.

S313〜S321は、それぞれS9〜S17と同様である。   S313 to S321 are the same as S9 to S17, respectively.

本処理では、前回のシーン認識結果SRが確定されていたときのフレーム状態と比べて、現フレームの状態が変動しているかを監視する。このフレーム変動状態はフレーム変動履歴として古いものから新しいものまで順次所定個数格納されていく。E_AUTOSR_FRAME_CHECK_HISTORY回分の履歴の中で、「フレーム変動あり」と判断された回数が、E_AUTOSR_SCENE_CHANGE_JUDGE以上であれば(S309で“Yes”)、「シーン変動あり」と判断され(S310)、認識部が動作する(S313)。   In this process, it is monitored whether the state of the current frame changes compared to the frame state when the previous scene recognition result SR is confirmed. A predetermined number of the frame fluctuation states are sequentially stored from the oldest to the newest as the frame fluctuation history. If the number of times that “there is frame variation” in the history of E_AUTOSR_FRAME_CHECK_HISTORY is greater than or equal to E_AUTOSR_SCENE_CHANGE_JUDGE (“Yes” in S309), it is determined that there is a scene variation (S310), and the recognition unit operates. (S313).

このように、シーン変動を判断する際に、フレーム変動履歴を使うことで、ハンチングを防止し、確実なシーン変動判断を行うことができる。   As described above, when the scene variation is determined, by using the frame variation history, it is possible to prevent hunting and perform a reliable scene variation determination.

<第4実施形態>
図19は第4実施形態に係るメイン処理(シーン変動認識・周期的認識併存型)のフローチャートである。この処理は、図2(または図17)の処理と選択的に実行させることができる。この処理はカメラ1のCPU75によって実行が制御される。この処理を規定するプログラムはROM68に記憶されている。
<Fourth embodiment>
FIG. 19 is a flowchart of main processing (scene variation recognition / periodic recognition coexistence type) according to the fourth embodiment. This process can be selectively executed with the process of FIG. 2 (or FIG. 17). The execution of this process is controlled by the CPU 75 of the camera 1. A program for defining this processing is stored in the ROM 68.

S401はS1と同様である。   S401 is the same as S1.

S402は、RAM69のフレーム変動履歴を初期化し、フレーム変動基準情報を初期化し、status=サーチ状態とし、チェックカウンタ=0とし、シーン認識履歴保持フラグ=OFFとする。   In step S402, the frame variation history in the RAM 69 is initialized, the frame variation reference information is initialized, status = search state, check counter = 0, and scene recognition history retention flag = OFF.

S403では、status=確定状態か否かを判断する。“Yes”の場合はS404、“
No”の場合はS415に進む。
In S403, it is determined whether status = confirmed state. If “Yes”, S404 “
If “No”, the process proceeds to S415.

S404では、周期的に認識部を動作させる旨のフラグが設定されているか(E_AUTOSR_RECOGNIZE_CYCLE_TYPE=0)否かを判断する。“Yes”の場合はS405、“No”の場合はS412に進む。E_AUTOSR_RECOGNIZE_CYCLE_TYPEの値は、操作部11からユーザが任意に入力できてもよいし、予めメーカ側でROM68に記憶されていてもよい。周期の単位も任意であり、かつそれをユーザが操作部11から任意に入力できてもよい。例えば、5フレームごと、2秒間などの周期を設定できる。周期的に認識部を動作させることにより、認識結果は目まぐるしく変わることはなく、安定性が向上する。また、周期的にチェックをするため、一旦不適切な認識をしたとしても、その結果以後継続して出力されたままとはならない。   In S404, it is determined whether or not a flag for periodically operating the recognition unit is set (E_AUTOSR_RECOGNIZE_CYCLE_TYPE = 0). If “Yes”, the process proceeds to S 405. If “No”, the process proceeds to S 412. The value of E_AUTOSR_RECOGNIZE_CYCLE_TYPE may be arbitrarily input by the user from the operation unit 11, or may be stored in the ROM 68 in advance by the manufacturer. The unit of the period is also arbitrary, and the user may arbitrarily input it from the operation unit 11. For example, a cycle such as 2 seconds every 5 frames can be set. By periodically operating the recognition unit, the recognition result does not change rapidly and stability is improved. In addition, since the check is periodically performed, even if inappropriate recognition is once performed, the result is not continuously output thereafter.

S405〜S411は、それぞれS304〜S310と同様である。   S405 to S411 are the same as S304 to S310, respectively.

S412〜414では、シーン認識を行う固定周期の到来の有無に応じてstatus=サーチ状態にする。すなわち、S412では、チェックカウンタを1だけインクリメントし、S413では、チェックカウンタがROM68に記憶された所定のサーチ周期E_AUTOSR_CONST_SEARCH_CYCLEに到達したか否かを判断する。“Yes”の場合はS414に進む。“No”の場合はS401に戻る。S414では、status=サーチ状態にし、チェックカウンタを0にする。   In S412-414, status = search state is set according to whether or not a fixed period for scene recognition has arrived. That is, in S412, the check counter is incremented by 1. In S413, it is determined whether or not the check counter has reached a predetermined search cycle E_AUTOSR_CONST_SEARCH_CYCLE stored in the ROM 68. In the case of “Yes”, the process proceeds to S414. If “No”, the process returns to S401. In S414, status = search state and check counter is set to zero.

S415〜S425は、それぞれS311〜S321と同様である。   S415 to S425 are the same as S311 to S321, respectively.

認識部が動作するタイミング、つまりシーン認識を行うタイミングをシーン変動時にする場合と一定周期ごとにする場合とでは、それぞれ一長一短がある。シーン変動時にシーン認識を行う場合は、応答性が一定周期ごとに行う場合と比べると高い。これに対し、一定周期ごとシーン認識を行う場合は、安定性に優れ、一旦間違ったシーン判定(シーン認識)をした場合であっても、それが画面上に出力されることはない。そのため、どちらの方式を採用するかをユーザに選択可能にすることで、ユーザ独自の使いやすさの向上につなげることが可能となる。   There are merits and demerits between when the recognition unit operates, that is, when the scene recognition is performed when the scene changes and when the scene recognition is performed at regular intervals. When performing scene recognition when the scene changes, the responsiveness is higher than when performing it at regular intervals. On the other hand, when scene recognition is performed at regular intervals, the stability is excellent, and even if a wrong scene determination (scene recognition) is made, it is not output on the screen. Therefore, by making it possible for the user to select which method to use, it is possible to improve the user-specific usability.

また、認識部が動作するタイミングをユーザ選択によって決定することとせず、設計者が予め選択する場合であっても、共通のファームウェアをベースに、パラメータの違いにより両者の動作を実現させることが可能となる。そのため、ファームウェアの変更なしに、異なるカメラ製品(機種)のターゲットとするユーザ別に制御を変えることも可能である。   In addition, it is possible not to determine the timing at which the recognition unit operates by user selection, but even if the designer selects in advance, the operation of both can be realized by the difference in parameters based on the common firmware It becomes. Therefore, it is also possible to change the control for each user who is a target of a different camera product (model) without changing the firmware.

62:AF処理部、63:AE/AWB処理部、75:CPU、80:顔検出処理部、81:本撮像前AF処理部 62: AF processing unit, 63: AE / AWB processing unit, 75: CPU, 80: face detection processing unit, 81: pre-imaging AF processing unit

Claims (14)

撮影シーンの情報である撮影情報を取得する撮影情報取得手段と、
前記撮影シーンの変動を判別するための基準情報を記憶する基準情報記憶手段と、
前記基準情報記憶手段に記憶された前記基準情報と前記撮影情報取得手段により取得された前記撮影情報から、前記撮影シーンが変動したか否かを判別するシーン変動判別手段と、
前記シーン変動判別手段により撮影シーンが変動したことが判別されたことに応じて、前記撮影情報取得手段により取得した前記撮影情報に基づいて撮影シーンを認識するシーン認識手段と、
前記シーン認識手段が認識したシーン認識結果に対応する撮影情報に基づく新たな基準情報を前記基準情報として前記基準情報記憶手段に記憶する処理手段と、
前記シーン認識手段が認識したシーン認識結果に応じて、表示制御、撮影制御、信号処理制御および情報記録制御のうち少なくとも1つを行う制御手段と、を備え、
前記シーン認識手段は、前記認識した撮影シーンが特定のシーンの場合、前記撮影シーンのシーン認識を継続し、前記認識した撮影シーンが特定のシーン以外の場合、前記撮影シーンのシーン認識を確定して、前記シーン変動判別手段により前記撮影シーンが変動したと判別されるまでシーン認識しない撮像装置。
Shooting information acquisition means for acquiring shooting information which is information of a shooting scene;
Reference information storage means for storing reference information for discriminating changes in the shooting scene;
Scene variation determining means for determining whether or not the shooting scene has changed from the reference information stored in the reference information storage means and the shooting information acquired by the shooting information acquisition means;
A scene recognizing unit for recognizing a shooting scene based on the shooting information acquired by the shooting information acquiring unit in response to determining that the shooting scene has been changed by the scene change determining unit;
Processing means for storing new reference information based on photographing information corresponding to a scene recognition result recognized by the scene recognition means as the reference information in the reference information storage means;
Depending on the scene recognition means scene recognition recognized result, display control, photographing control, e Bei and control means for performing at least one of the signal processing control and information recording control,
The scene recognizing means continues scene recognition of the shooting scene when the recognized shooting scene is a specific scene, and determines scene recognition of the shooting scene when the recognized shooting scene is other than a specific scene. An imaging device that does not recognize a scene until the scene change determining means determines that the shooting scene has changed .
前記シーン認識手段は、
前記シーン変動判別手段により前記撮影シーンが変動したことが判別されたことに応じて、前記撮影情報取得手段により取得した撮影情報に基づいて単独シーン認識を行う単独シーン認識手段と、
前記単独シーン認識手段による単独シーン認識結果の履歴をシーン認識履歴として記憶するシーン認識履歴記憶手段と、
を備え、
前記処理手段は、前記シーン認識履歴の中で出現頻度が最大となる単独シーン認識結果のうち、最も新しい単独シーン認識結果を得る時点に用いられた撮影情報に基づく新たな基準情報を前記基準情報記憶手段に記憶する請求項1に記載の撮像装置。
The scene recognition means includes
A single scene recognition means for performing single scene recognition based on the shooting information acquired by the shooting information acquisition means in response to the fact that the shooting scene has been changed by the scene change determination means;
A scene recognition history storage means for storing a history of a single scene recognition result by the single scene recognition means as a scene recognition history;
With
The processing means sets the new reference information based on the shooting information used at the time of obtaining the newest single scene recognition result among the single scene recognition results having the highest appearance frequency in the scene recognition history as the reference information. The imaging apparatus according to claim 1, which is stored in a storage unit.
前記シーン認識履歴に基づいて前記撮影シーンのシーン認識を行うトータルシーン認識手段を備える請求項2に記載の撮像装置。   The imaging apparatus according to claim 2, further comprising a total scene recognition unit configured to perform scene recognition of the shooting scene based on the scene recognition history. 前記トータルシーン認識手段は、前記シーン認識履歴から最大頻度の単独シーン認識結果が示す撮影シーンを検出し、前記最大頻度の単独シーン認識結果が示す撮影シーンを、前記シーン変動判別手段により撮影シーンが変動したと判別された後の撮影シーンとして認識する請求項3に記載の撮像装置。 The total scene recognizing unit detects a shooting scene indicated by the maximum frequency single scene recognition result from the scene recognition history, and the shooting scene indicated by the maximum frequency single scene recognition result is detected by the scene variation determination unit. The imaging device according to claim 3, wherein the imaging device is recognized as a photographic scene after it is determined that it has changed. 前記トータルシーン認識手段は、前記最大頻度の単独シーン認識結果が示す撮影シーンが複数検出された場合には、前記複数の最大頻度の単独シーン認識結果が示す撮影シーンの中の最新の撮影シーンを、前記シーン変動判別手段により撮影シーンが変動したと判別された後の撮影シーンとして認識する請求項に記載の撮像装置。 When a plurality of shooting scenes indicated by the maximum frequency single scene recognition result are detected, the total scene recognition means selects the latest shooting scene among the shooting scenes indicated by the plurality of maximum frequency single scene recognition results. The imaging apparatus according to claim 4 , wherein the imaging variation is recognized as a photographic scene after it is determined that the photographic scene has been changed by the scene change determination unit. 前記撮影情報取得手段は、前記撮影シーン中に人物の顔があるか否かを示す顔有無情報、被写体距離に関する被写体距離情報および被写体の明るさに関する測光情報のうちの少なくとも1つの情報を、前記撮影情報として取得する請求項1からのいずれかに記載の撮像装置。 The shooting information acquisition means includes at least one information of face presence / absence information indicating whether or not a person's face is present in the shooting scene, subject distance information related to a subject distance, and photometric information related to subject brightness, the imaging apparatus according to claim 1 for obtaining a photographic information 5. 前記撮影情報取得手段は、撮影シーン中に人物の顔があるか否かを示す顔検出結果情報、被写体距離に関する被写体距離および被写体の明るさに関する測光情報のうちの2以上の情報を、前記撮影情報として取得し、
前記シーン変動判別手段は、前記撮影情報取得手段により取得された前記撮影情報と前記基準情報記憶手段に記憶された前記撮影情報に対応する前記基準情報とから前記撮影シーンが変動したか否かを判別する請求項1からのいずれかに記載の撮像装置。
The photographing information acquisition means obtains two or more pieces of information of face detection result information indicating whether or not a person's face is present in a photographing scene, subject distance relating to subject distance, and photometric information relating to subject brightness. As information,
The scene variation determination means determines whether the shooting scene has changed from the shooting information acquired by the shooting information acquisition means and the reference information corresponding to the shooting information stored in the reference information storage means. the imaging apparatus according to any one of claims 1 to determine 6.
前記シーン変動判別手段は、前記撮影情報取得手段により取得された前記2以上の情報と前記基準情報記憶手段に記憶された前記2以上の情報に対応する前記基準情報とに、それぞれ情報別の重み付けを行う重み付け設定手段を有する請求項に記載の撮像装置。 The scene variation determination unit weights each information to the two or more pieces of information acquired by the photographing information acquisition unit and the reference information corresponding to the two or more pieces of information stored in the reference information storage unit. The imaging apparatus according to claim 7 , further comprising weight setting means for performing the following. 前記シーン変動判別手段は、
前記基準情報記憶手段に記憶された前記基準情報と前記撮影情報取得手段により取得された前記撮影情報とから逐次撮影シーンの変動の有無を判別する単独シーン変動判別手段と、
前記単独シーン変動判別手段による単独シーン変動判別の結果の履歴をシーン変動履歴として記憶するシーン変動履歴記憶手段と、
前記シーン変動履歴に基づいて前記撮影シーンが変動したか否かを判別するトータルシーン変動判別手段と、
を備える請求項1からのいずれかに記載の撮像装置。
The scene variation determination means includes
Single scene change determination means for sequentially determining the presence or absence of changes in the shooting scene from the reference information stored in the reference information storage means and the shooting information acquired by the shooting information acquisition means;
A scene fluctuation history storage means for storing a history of a result of the single scene fluctuation determination by the single scene fluctuation determination means as a scene fluctuation history;
Total scene change determination means for determining whether or not the shooting scene has changed based on the scene change history;
Imaging device according to any one of claims 1 to 8 comprising a.
前記撮影シーンのシーン認識をシーン変動時に行うか、又は所定の周期毎に行うかを選択する選択手段と、
前記シーン認識を行う所定の周期を設定する周期設定手段と、を更に備え、
前記選択手段により撮影シーンのシーン認識を所定の周期毎に行うことが選択されると、前記シーン認識手段は、前記シーン変動判別手段により前記撮影シーンが変動したことが判別されたときに代えて、前記周期設定手段により設定された所定の周期毎に前記撮影情報取得手段により取得された前記撮影情報に基づいて前記撮影シーンのシーン認識を行う請求項1からのいずれかに記載の撮像装置。
A selection means for selecting whether to perform scene recognition of the shooting scene at the time of a scene change, or to be performed at predetermined intervals;
Cycle setting means for setting a predetermined cycle for performing the scene recognition, and
If it is selected by the selection means that scene recognition of the photographic scene is performed at predetermined intervals, the scene recognition means is replaced when the scene change determination means determines that the shooting scene has changed. the apparatus according to claim 1 for the scene recognition of the photographic scene based on acquired by the photographic information obtaining means every predetermined period set by the period setting means and the photographing information 9 .
前記周期設定手段により設定される前記所定の周期は、予め設定された周期、又はユーザにより任意に設定可能な周期である請求項10に記載の撮像装置。 The imaging apparatus according to claim 10 , wherein the predetermined period set by the period setting unit is a preset period or a period that can be arbitrarily set by a user. 撮影シーンの情報である撮影情報を取得するステップと、
前記撮影シーンの変動を判別するための基準情報を記憶するステップと、
前記記憶された基準情報と前記取得された撮影情報から前記撮影シーンが変動したか否かを判別するステップと、
前記撮影シーンが変動したことが判別されたことに応じて、前記撮影情報に基づいて前記撮影シーンを認識するステップと、
前記認識した撮影シーンの認識結果に対応する撮影情報に基づく新たな基準情報を前記基準情報として記憶するステップと、
前記認識した撮影シーンの認識結果に応じて、表示制御、撮影制御、信号処理制御および情報記録制御のうち少なくとも1つを行うステップと、を含み、
前記撮影シーンを認識するステップは、前記認識した撮影シーンが特定のシーンの場合、前記撮影シーンのシーン認識を継続し、前記認識した撮影シーンが特定のシーン以外の場合、前記撮影シーンのシーン認識を確定して、前記撮影シーンが変動したと判別されるまでシーン認識しないステップを含む撮像方法。
Acquiring shooting information that is information of a shooting scene;
Storing reference information for discriminating changes in the shooting scene;
Determining whether or not the shooting scene has changed from the stored reference information and the acquired shooting information;
Recognizing the shooting scene based on the shooting information in response to determining that the shooting scene has changed; and
Storing new reference information based on shooting information corresponding to the recognition result of the recognized shooting scene as the reference information;
Performing at least one of display control, shooting control, signal processing control, and information recording control according to the recognition result of the recognized shooting scene,
The step of recognizing the shooting scene continues the scene recognition of the shooting scene when the recognized shooting scene is a specific scene, and recognizes the scene of the shooting scene when the recognized shooting scene is other than the specific scene. An imaging method including the step of not recognizing a scene until it is determined that the shooting scene has changed .
前記撮影シーンが変動したことが判別されたことに応じて、前記取得した撮影情報に基づいて単独シーン認識を行うステップと、
前記単独シーン認識結果の履歴をシーン認識履歴として記憶するステップと、
前記シーン認識履歴の中で出現頻度が最大となる単独シーン認識結果のうち、最も新しい単独シーン認識結果を得る時点に用いられた撮影情報に基づく新たな基準情報を前記基準情報として記憶するステップと、
を含む請求項12に記載の撮像方法。
Recognizing that the shooting scene has changed, and performing single scene recognition based on the acquired shooting information;
Storing the history of the single scene recognition result as a scene recognition history;
Storing, as the reference information, new reference information based on shooting information used at the time of obtaining the newest single scene recognition result among the single scene recognition results having the highest appearance frequency in the scene recognition history; ,
The imaging method according to claim 12 , comprising:
前記シーン認識履歴に基づいて前記撮影シーンのシーン認識を行うステップを含む請求項13に記載の撮像方法。 The imaging method according to claim 13 , further comprising: performing scene recognition of the shooting scene based on the scene recognition history.
JP2009173261A 2008-07-25 2009-07-24 Imaging apparatus and method Active JP5421682B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009173261A JP5421682B2 (en) 2008-07-25 2009-07-24 Imaging apparatus and method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2008192281 2008-07-25
JP2008192281 2008-07-25
JP2009173261A JP5421682B2 (en) 2008-07-25 2009-07-24 Imaging apparatus and method

Publications (2)

Publication Number Publication Date
JP2010050962A JP2010050962A (en) 2010-03-04
JP5421682B2 true JP5421682B2 (en) 2014-02-19

Family

ID=41594837

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009173261A Active JP5421682B2 (en) 2008-07-25 2009-07-24 Imaging apparatus and method

Country Status (3)

Country Link
JP (1) JP5421682B2 (en)
KR (1) KR101590190B1 (en)
CN (1) CN101635796B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102457673A (en) * 2010-10-26 2012-05-16 宏达国际电子股份有限公司 Video capturing method and system for same
CN107483816B (en) * 2017-08-11 2021-01-26 西安易朴通讯技术有限公司 Image processing method and device and electronic equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE69033646T2 (en) 1989-07-18 2001-02-22 Fuji Photo Film Co Ltd Method and device for controlling the exposure changes of a video camera
JP3337030B2 (en) * 2001-04-02 2002-10-21 ソニー株式会社 Electronic still imaging device
JP3468231B2 (en) * 2001-07-02 2003-11-17 ミノルタ株式会社 Image processing apparatus, image quality control method, program, and recording medium
JP2003032668A (en) 2001-07-19 2003-01-31 Seiwa Electric Mfg Co Ltd Digital camera for monitoring
JP2003143466A (en) * 2001-11-02 2003-05-16 Canon Inc Apparatus and method of processing picture, recording medium and program
JP2005006157A (en) * 2003-06-13 2005-01-06 Matsushita Electric Ind Co Ltd Image communication apparatus with camera
JP4181974B2 (en) * 2003-11-26 2008-11-19 富士フイルム株式会社 Digital camera and image processing apparatus
EP1748378B1 (en) * 2005-07-26 2009-09-16 Canon Kabushiki Kaisha Image capturing apparatus and image capturing method
JP2007194917A (en) 2006-01-19 2007-08-02 Seiko Epson Corp Setting of effect processing suitable for photographing scene of image
JP2007206433A (en) * 2006-02-02 2007-08-16 Canon Inc Focusing apparatus, imaging apparatus, and control method
JP2008042616A (en) * 2006-08-08 2008-02-21 Eastman Kodak Co Imaging apparatus
JP4910584B2 (en) 2006-09-14 2012-04-04 日本電気株式会社 Imaging device, mobile phone, imaging control method, imaging control program, and program recording medium

Also Published As

Publication number Publication date
KR20100011936A (en) 2010-02-03
JP2010050962A (en) 2010-03-04
CN101635796B (en) 2013-07-10
CN101635796A (en) 2010-01-27
KR101590190B1 (en) 2016-01-29

Similar Documents

Publication Publication Date Title
EP2148499B1 (en) Imaging apparatus and method
US8199203B2 (en) Imaging apparatus and imaging method with face detection based on scene recognition results
JP4655054B2 (en) Imaging device
JP4518131B2 (en) Imaging method and apparatus
US8570422B2 (en) Apparatus, method, and recording medium containing program for photographing
KR101542436B1 (en) Imaging apparatus and imaging method
KR20080101780A (en) Image device, focus control method and storage medium recording a focus control program
JP2007074388A (en) Imaging apparatus and program thereof
JP5027580B2 (en) Imaging apparatus, method, and program
JP6887245B2 (en) Imaging device and its control method, program, storage medium
JP5883564B2 (en) Imaging device
JP2010287919A (en) Imaging device
JP5421682B2 (en) Imaging apparatus and method
JP4879127B2 (en) Digital camera and digital camera focus area selection method
JP5324684B2 (en) Imaging apparatus and imaging method
JP4964992B2 (en) Image capturing apparatus and image recording method thereof
JP6084316B2 (en) Imaging device
JP2009033386A (en) Photographing device and method
JP2004246160A (en) Autofocus camera
KR101442152B1 (en) User adaptive image photographing apparatus and method for controlling the apparatus
JP2004248050A (en) Video camera
KR101417818B1 (en) Apparatus and method for recognizing scene mode in digital image processing device
JP2008311921A (en) Imaging apparatus
JP2011242790A (en) Imaging device and program of the same

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120124

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121217

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130627

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130820

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: 20131028

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131122

R150 Certificate of patent or registration of utility model

Ref document number: 5421682

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250