JP6294607B2 - IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM - Google Patents

IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM Download PDF

Info

Publication number
JP6294607B2
JP6294607B2 JP2013170826A JP2013170826A JP6294607B2 JP 6294607 B2 JP6294607 B2 JP 6294607B2 JP 2013170826 A JP2013170826 A JP 2013170826A JP 2013170826 A JP2013170826 A JP 2013170826A JP 6294607 B2 JP6294607 B2 JP 6294607B2
Authority
JP
Japan
Prior art keywords
flicker
instruction
shooting
control
imaging
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
JP2013170826A
Other languages
Japanese (ja)
Other versions
JP2015041823A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013170826A priority Critical patent/JP6294607B2/en
Publication of JP2015041823A publication Critical patent/JP2015041823A/en
Application granted granted Critical
Publication of JP6294607B2 publication Critical patent/JP6294607B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、撮像装置のフリッカを抑制する技術に関する。   The present invention relates to a technique for suppressing flicker in an imaging apparatus.

デジタルカメラなどの撮像装置は、撮影準備動作時にディスプレイにスルー画像(あるいはライブビュー画像)を表示する電子ビューファインダ機能(EVF)を備えている。撮像装置は、シャッタボタンの半押し時にオンされて第1スイッチ信号SW1を出力する第1スイッチと、全押し時にオンされて第2スイッチ信号SW2を出力する第2スイッチを有し、第1スイッチ信号SW1がオンすると撮影準備動作を開始し、第2スイッチ信号SW2がオンすると本撮影を開始する。   An imaging apparatus such as a digital camera has an electronic viewfinder function (EVF) that displays a through image (or live view image) on a display during a shooting preparation operation. The imaging apparatus includes a first switch that is turned on when the shutter button is half-pressed and outputs a first switch signal SW1, and a second switch that is turned on when the shutter button is fully pressed and outputs a second switch signal SW2. When the signal SW1 is turned on, the photographing preparation operation is started, and when the second switch signal SW2 is turned on, the main photographing is started.

撮影準備動作時には、本撮影時の露出を決定する自動露出制御(AE)やフォーカスレンズ位置を決定する自動焦点検出(AF)が行われる。例えば、撮影者は、撮影したい画角が確定したら第1スイッチにより第1スイッチ信号SW1をオンすることでAE処理やAF処理を行い、SW1がオン状態(半押し状態)のまま、撮影したいタイミングで第2スイッチにより第2スイッチ信号SW2をオンすることにより本撮影を行うことができる。   During the shooting preparation operation, automatic exposure control (AE) for determining the exposure during actual shooting and automatic focus detection (AF) for determining the focus lens position are performed. For example, the photographer performs AE processing and AF processing by turning on the first switch signal SW1 by the first switch when the angle of view to be photographed is determined, and the timing at which the photographer wants to photograph while the SW1 is in the on state (half-pressed state). Thus, the main photographing can be performed by turning on the second switch signal SW2 by the second switch.

また、一般的なAE処理では、予め用意されたプログラム線図(P線図)を用いて、被写体輝度に応じた適切な撮影条件(絞り値Avとシャッタ速度Tv(必要に応じてセンサ感度Sv)の組み合わせ)を決定する。さらに、用途に応じたP線図を予め用意しておき、AF時や本撮影時に選択的に用いることが知られている。   In general AE processing, an appropriate shooting condition (aperture value Av and shutter speed Tv (sensor sensitivity Sv as required) is used according to subject brightness, using a program diagram (P diagram) prepared in advance. ) Combination). Further, it is known that a P diagram corresponding to the application is prepared in advance and selectively used during AF or actual photographing.

一方、絞りの制御では、第1スイッチ信号SW1オン前、第1スイッチ信号SW1オン中から第2スイッチ信号SW2オン、第2スイッチ信号SW2オンの各状態で異なるP線図を用いる場合、それぞれで絞り値が変わる可能性がある。そうすると、撮影者が第1スイッチ信号SW1オン中に所望の撮影タイミングで第2スイッチ信号SW2をオンしたとしても、絞り制御に要する時間がタイムラグとなって、所望の撮影タイミングから大きくずれて本撮影が行われてしまうことも考えられる。このような不都合に対しては、第1スイッチ信号SW1オン中と第2スイッチ信号SW2オン時の絞り値を同じ値にすることで、本撮影時の絞り制御にかかる動作時間を短縮し、本撮影時のタイムラグを低減することが可能となる。   On the other hand, in the aperture control, when different P diagrams are used before the first switch signal SW1 is turned on and when the first switch signal SW1 is turned on, the second switch signal SW2 is turned on and the second switch signal SW2 is turned on. The aperture value may change. Then, even if the photographer turns on the second switch signal SW2 at a desired photographing timing while the first switch signal SW1 is on, the time required for aperture control becomes a time lag, and the main photographing is greatly deviated from the desired photographing timing. It is also possible that will be done. For such inconvenience, by setting the same aperture value when the first switch signal SW1 is ON and when the second switch signal SW2 is ON, the operation time required for aperture control at the time of actual photographing is shortened. It is possible to reduce the time lag during shooting.

例えば、特許文献1では記録準備時または記録指示時から記録指示が解除されるまで、記録指示が行われた直前にライブ表示された画像の撮像に用いられた絞り値を維持することが記載されている。   For example, Patent Document 1 describes that the aperture value used for capturing an image displayed live immediately before the recording instruction is issued from the time of recording preparation or when the recording instruction is canceled until the recording instruction is canceled. ing.

特開2006−060409号公報JP 2006-060409 A

しかしながら、第1スイッチ信号SW1オン中と第2スイッチ信号SW2オン時の絞り値を常時同じ値にすると、例えば、フリッカ光源下での露出制御において不都合が発生することがある。デジタルカメラなどに撮像素子として搭載されるCMOSイメージセンサは、ラインごとに露光タイミングが異なる。このため、蛍光灯のような、電源周波数(50Hzや60Hz等)で周期的に輝度が変化する光源(フリッカ光源)下で撮像した1フレーム分の画像信号には横縞状の明暗変化が生じる。この明暗変化は時間の経過と共に、イメージセンサの露光ラインに対して垂直方向に移動する。このような、垂直方向の周期的な明暗をフリッカと呼ぶ。このようなフリッカを抑制する方法として、1/(光源のフリッカ周波数(つまり電源周波数)の正の整数倍)のシャッタ速度で撮像する方法が知られている。この場合、フリッカ周波数が50Hzならばシャッタ速度を1/50秒や1/100秒に、60Hzならば1/60秒や1/120秒となる。   However, if the aperture value is always the same while the first switch signal SW1 is on and the second switch signal SW2 is on, inconvenience may occur in exposure control under a flicker light source, for example. A CMOS image sensor mounted as an image sensor in a digital camera or the like has different exposure timing for each line. For this reason, a horizontal stripe-like light-dark change occurs in an image signal for one frame captured under a light source (flicker light source) whose luminance periodically changes at a power supply frequency (50 Hz, 60 Hz, etc.) such as a fluorescent lamp. This light / dark change moves in the direction perpendicular to the exposure line of the image sensor with time. Such vertical periodic brightness is called flicker. As a method for suppressing such flicker, a method is known in which imaging is performed at a shutter speed of 1 / (positive integer multiple of the flicker frequency of the light source (that is, the power supply frequency)). In this case, if the flicker frequency is 50 Hz, the shutter speed is 1/50 seconds or 1/100 seconds, and if it is 60 Hz, 1/60 seconds or 1/120 seconds.

一方、シャッタ速度を1/100秒や1/120秒よりも短い値に設定できるカメラも多く存在する。第1スイッチ信号SW1オン中にフリッカの抑制を優先すると、シャッタ速度は1/100秒や1/120秒で小絞り寄りを使用することになる。しかしながら、小絞りになりすぎると回折現象により解像感が低下するなど画質への悪影響があることから、一般的に撮影時の絞りはシャッタ速度が1/100秒や1/120秒より短秒でも開放寄りを使用することが多い。つまり、フリッカの抑制を優先すると第1スイッチ信号SW1オン中と第2スイッチ信号SW2オン時との絞り値を同じ値にできず、タイムラグが解消できないことがある。   On the other hand, there are many cameras that can set the shutter speed to a value shorter than 1/100 seconds or 1/120 seconds. If priority is given to suppression of flicker while the first switch signal SW1 is on, the shutter speed is 1/100 seconds or 1/120 seconds, and a small aperture is used. However, if the aperture is too small, there is an adverse effect on the image quality, such as a reduction in resolution due to diffraction phenomenon, so that the aperture during shooting generally has a shutter speed shorter than 1/100 sec or 1/120 sec. But I often use an open side. In other words, if priority is given to flicker suppression, the aperture value when the first switch signal SW1 is on and when the second switch signal SW2 is on cannot be set to the same value, and the time lag may not be eliminated.

本発明は、上記解題に鑑みてなされ、その目的は、シーンに応じてフリッカの抑制を優先する制御を行うか、撮影時のタイムラグの低減を優先する制御を行うかを適切に切り替えることができる技術を実現することである。   The present invention has been made in view of the above problems, and the object thereof can be appropriately switched between performing control giving priority to flicker suppression or control giving priority to time lag reduction during shooting according to the scene. It is to realize technology.

上記課題を解決し、目的を達成するために、本発明の撮像装置は、撮像手段と、影準備動作の指示に応じて被写体輝度に基づいて撮影条件を決定する決定手段と、前記撮像手段により撮像された画像に基づいてフリッカを検出する検出手段と、前記検出手段によるフリッカの検出結果に応じて、撮影準備状態から本撮影までの間の露出制御を、フリッカの抑制を優先する第1の制御または撮影時のタイムラグの低減を優先する第2の制御に切り替える制御手段と、を有し、前記制御手段は、前記撮影準備動作の指示を受けるまでにフリッカが検出され、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出された場合には、前記本撮影の指示を受けるまで前記第1の制御を設定し、前記撮影準備動作の指示を受けるまでにフリッカが検出されず、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出された場合には、前記本撮影の指示を受けるまで前記第2の制御を設定することを特徴とする。 In order to solve the above problems and achieve the object, an imaging apparatus according to the present invention includes an imaging unit, a determination unit that determines a shooting condition based on subject luminance in accordance with an instruction for a shadow preparation operation, and the imaging unit. A detection unit that detects flicker based on a captured image, and a first control that prioritizes flicker suppression in exposure control from a shooting preparation state to main shooting according to the flicker detection result by the detection unit. Control means for switching to second control that prioritizes control or time lag reduction at the time of shooting. The control means detects flicker until receiving an instruction for the shooting preparation operation, and wherein after receiving instructions if flicker is detected by receiving an indication of the shooting, set the first control until receiving an instruction of the present photographing, the instruction of the photographing preparation operation If flicker is not detected until the first shooting is completed and flicker is detected after receiving the instruction for the shooting preparation operation and receiving the instruction for the main shooting, the second control is performed until the instruction for the main shooting is received. Is set.

本発明によれば、シーンに応じてフリッカの抑制を優先する制御を行うか、撮影時のタイムラグの低減を優先する制御を行うかを適切に切り替えることができる。   According to the present invention, it is possible to appropriately switch between performing control that prioritizes flicker suppression and performing control that prioritizes time lag reduction during shooting according to the scene.

本発明に係る実施形態の装置構成を示すブロック図。The block diagram which shows the apparatus structure of embodiment which concerns on this invention. 本実施形態の撮影処理を示すフローチャート。5 is a flowchart showing imaging processing according to the present embodiment. 本実施形態の撮影処理に用いられるプログラム線図。The program diagram used for the imaging | photography process of this embodiment. 本実施形態のフリッカ検出処理を示すフローチャート。6 is a flowchart illustrating flicker detection processing according to the present embodiment.

以下に、本発明を実施するための形態について詳細に説明する。尚、以下に説明する実施の形態は、本発明を実現するための一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されるべきものであり、本発明は以下の実施の形態に限定されるものではない。また、後述する各実施形態の一部を適宜組み合わせて構成しても良い。   Hereinafter, embodiments for carrying out the present invention will be described in detail. The embodiment described below is an example for realizing the present invention, and should be appropriately modified or changed according to the configuration and various conditions of the apparatus to which the present invention is applied. It is not limited to the embodiment. Moreover, you may comprise combining suitably one part of each embodiment mentioned later.

以下、本発明を、例えば、動画や静止画を撮影するデジタルカメラ等の撮像装置に適用した実施形態について説明する。なお、本発明は、カメラが搭載されたスマートフォン等の携帯型電子機器にも広く適用可能である。   Hereinafter, an embodiment in which the present invention is applied to an imaging apparatus such as a digital camera that captures a moving image or a still image will be described. Note that the present invention can be widely applied to portable electronic devices such as a smartphone equipped with a camera.

<装置構成>図1を参照して、本発明に係る実施形態の撮像装置の構成及び機能の概略について説明する。   <Apparatus Configuration> With reference to FIG. 1, an outline of the configuration and functions of an imaging apparatus according to an embodiment of the present invention will be described.

図1において、撮影レンズ101はズーム機構を備える。絞り/シャッタ102は、AE(自動露出)処理部103の動作指令に従って、被写体の反射光である光学像の撮像素子106への入射光量を調節し電荷蓄積時間を制御する。AE処理部103は、絞り/シャッタ102の動作を制御すると共に、A/D変換部107を制御する。フォーカスレンズ104は、AF(オートフォーカス)処理部105からの制御信号に従って、撮像素子106の受光面上に焦点を合わせて光学像を結像させる。なお、撮影レンズ101、絞り/シャッタ102、フォーカスレンズ104は、図1に示す順に並んでいなくても良い。   In FIG. 1, the photographing lens 101 includes a zoom mechanism. The aperture / shutter 102 controls the charge accumulation time by adjusting the amount of light incident on the image sensor 106 of the optical image, which is the reflected light of the subject, according to the operation command of the AE (automatic exposure) processing unit 103. The AE processing unit 103 controls the operation of the aperture / shutter 102 and controls the A / D conversion unit 107. The focus lens 104 focuses on the light receiving surface of the image sensor 106 to form an optical image in accordance with a control signal from an AF (autofocus) processing unit 105. Note that the photographing lens 101, the aperture / shutter 102, and the focus lens 104 need not be arranged in the order shown in FIG.

撮像素子106は、受光面に結像した光学像をCCDやCMOS等の光電変換素子によって電気信号に変換してA/D変換部107へ出力する。A/D変換部107は、撮像素子106から入力したアナログ信号をデジタル信号に変換する。また、A/D変換部107は、アナログ信号からノイズを除去するCDS回路や、デジタル信号に変換する前にアナログ信号を非線形増幅するための非線形増幅回路を含む。   The image sensor 106 converts an optical image formed on the light receiving surface into an electrical signal by a photoelectric conversion element such as a CCD or a CMOS, and outputs the electrical signal to the A / D converter 107. The A / D conversion unit 107 converts the analog signal input from the image sensor 106 into a digital signal. The A / D converter 107 includes a CDS circuit that removes noise from the analog signal, and a nonlinear amplifier circuit that nonlinearly amplifies the analog signal before converting it to a digital signal.

画像処理部108は、A/D変換部107から出力されたデジタル信号に対して所定の画素補間や画像縮小等のリサイズ処理と色変換処理とを行って、画像データを出力する。フォーマット変換部109は、画像データをDRAM110に記憶するために、画像処理部108で生成した画像データのフォーマット変換を行う。DRAM110は、高速な内蔵メモリの一例であり、画像データの一時的な記憶を司る高速バッファとして、或いは、画像データの圧縮/伸張処理における作業用メモリ等として使用される。   The image processing unit 108 performs predetermined resizing processing such as pixel interpolation and image reduction and color conversion processing on the digital signal output from the A / D conversion unit 107, and outputs image data. The format conversion unit 109 performs format conversion of the image data generated by the image processing unit 108 in order to store the image data in the DRAM 110. The DRAM 110 is an example of a high-speed built-in memory, and is used as a high-speed buffer that manages temporary storage of image data, or as a working memory in image data compression / decompression processing.

画像記録部111は、撮影画像(静止画、動画)を記録するメモリーカード等の記録媒体とそのインターフェースを有する。システム制御部112は、CPU、ROM、RAMを有し、CPUがROMに格納されたプログラムをRAMの作業エリアに展開し、実行することにより、装置全体の動作を制御する。また、システム制御部112は、撮像素子106の有する複数の電荷蓄積制御モードの中から実施するモードを選択して制御を行う。VRAM113は画像表示用のメモリである。表示部114は、例えば、LCD等であり、画像の表示や操作補助のための表示、カメラの状態表示を行う他、撮影時には撮影画面と測距領域を表示する。   The image recording unit 111 includes a recording medium such as a memory card that records captured images (still images and moving images) and an interface thereof. The system control unit 112 includes a CPU, a ROM, and a RAM. The CPU expands and executes a program stored in the ROM in a work area of the RAM, thereby controlling the operation of the entire apparatus. In addition, the system control unit 112 performs control by selecting a mode to be implemented from among a plurality of charge accumulation control modes of the image sensor 106. The VRAM 113 is an image display memory. The display unit 114 is, for example, an LCD or the like, and displays an imaging screen and a distance measurement area at the time of shooting, in addition to displaying an image, a display for assisting operations, and a camera status display.

撮影者は、操作部115を操作することにより装置を外部から操作する。操作部115は、例えば、露出補正や絞り値の設定、画像再生時の設定等の各種設定を行うメニュースイッチ、撮影レンズのズーム動作を指示するズームレバー、撮影モードと再生モードの動作モード切替スイッチ等を含む。メインスイッチ116は、システムに電源を投入するためのスイッチである。第1スイッチ117は、第1スイッチ信号SW1をシステム制御部112へ出力し、AE処理やAF処理等の撮影準備動作を行うためのスイッチである。第2スイッチ118は、第1スイッチ117による第1スイッチ信号SW1オン中(撮影準備状態)に、第2スイッチ信号SW2をシステム制御部112へ出力し、撮影指示を行うためのスイッチである。   The photographer operates the operation unit 115 to operate the apparatus from the outside. The operation unit 115 includes, for example, a menu switch for performing various settings such as exposure correction, aperture value setting, and image reproduction setting, a zoom lever for instructing a zoom operation of the photographing lens, and an operation mode switching switch between the photographing mode and the reproduction mode Etc. The main switch 116 is a switch for turning on the system. The first switch 117 is a switch for outputting the first switch signal SW1 to the system control unit 112 and performing a shooting preparation operation such as AE processing or AF processing. The second switch 118 is a switch for outputting the second switch signal SW2 to the system control unit 112 and instructing photographing while the first switch signal SW1 by the first switch 117 is on (in the photographing preparation state).

<撮影処理>次に、図2を参照して、本実施形態の撮像装置による撮影処理であって、シーンに応じてフリッカ抑制を優先する露出制御または撮影時のタイムラグ低減を優先する露出制御に切り替える処理について説明する。なお、図2の処理は、システム制御部112のCPUがROMに格納されたプログラムをRAMの作業エリアに展開し、実行することにより実現される。なお、本実施形態で検出するフリッカは50Hz光源下のものとする。   <Shooting Process> Next, referring to FIG. 2, it is a shooting process by the imaging apparatus of the present embodiment, in which exposure control giving priority to flicker suppression or exposure control giving priority to time lag reduction at the time of shooting according to the scene. The switching process will be described. The processing in FIG. 2 is realized by the CPU of the system control unit 112 developing and executing a program stored in the ROM in the RAM work area. Note that the flicker detected in this embodiment is under a 50 Hz light source.

ステップS201では、システム制御部112は、第1スイッチ117による第1スイッチ信号SW1がオンされるまでの間にフリッカ検出を行う。フリッカの検出方法については図4で詳述する。   In step S201, the system control unit 112 performs flicker detection until the first switch signal SW1 by the first switch 117 is turned on. The flicker detection method will be described in detail with reference to FIG.

ステップS202では、システム制御部112は、ステップS201でフリッカ検出がされたか判定する。フリッカが検出された場合にはステップS203へ進み、そうでない場合にはステップS204へ進む。   In step S202, the system control unit 112 determines whether flicker is detected in step S201. If flicker is detected, the process proceeds to step S203, and if not, the process proceeds to step S204.

ステップS203では、システム制御部112は、フリッカが検出されたので、フリッカ抑制を優先したTvになるような第1の露出制御に切り替える。なお、露出制御の内容については図3で詳述する。   In step S203, since the flicker is detected, the system control unit 112 switches to the first exposure control so that Tv gives priority to flicker suppression. The details of the exposure control will be described in detail with reference to FIG.

ステップS204では、システム制御部112は、フリッカが検出されていないので、撮影時のタイムラグの低減を優先した露出制御として、撮影準備状態(第1スイッチ信号SW1のオン中)のAF処理と同じ絞り値に設定する第2の露出制御に切り替える。   In step S204, since flicker is not detected, the system control unit 112 uses the same aperture as the AF processing in the shooting preparation state (while the first switch signal SW1 is on) as exposure control that prioritizes time lag reduction during shooting. Switch to the second exposure control set to the value.

ステップS205では、システム制御部112は、撮影準備動作への移行指示(第1スイッチ信号SW1のオン)が入力されるのを待ち、移行指示を受けた場合にはステップS206に進む。なお、フリッカ検出は、第1スイッチ信号SW1がオンされるか、フリッカが抑制されるまで常時行うようにする。また、メインスイッチ116による電源投入時のみフリッカ検出を行い、その検出結果に応じて実施する露出制御を決定しても良い。   In step S205, the system control unit 112 waits for an instruction to shift to the shooting preparation operation (the first switch signal SW1 is turned on), and proceeds to step S206 if the shift instruction is received. Note that flicker detection is always performed until the first switch signal SW1 is turned on or flicker is suppressed. Alternatively, flicker detection may be performed only when the main switch 116 is turned on, and exposure control to be performed may be determined according to the detection result.

ステップS206では、システム制御部112は、撮影準備状態(第1スイッチ信号SW1のオン中)におけるAE処理およびAF処理を行う。具体的には、先ず、AE処理部103がAF処理を実行する際の露出条件を設定するAE処理を実行する。AE処理では、後述するプログラム線図を用いて、被写体輝度に応じた適切な撮影条件(絞り値Avとシャッタ速度Tv(必要に応じてISO相当の感度Sv)の組み合わせ)を決定する。AE処理の後、AF処理部105はAF処理を行う。AF処理としては、例えば、撮像素子106から得られる被写体の輝度信号の高域周波数成分が最大になるレンズ位置を合焦位置とする方式を採用する。具体的には、測距範囲の全域に亘ってフォーカスレンズ104を駆動して、撮像素子106から得られる輝度信号の高域周波数成分に基づく評価値をその都度記憶し、記憶した値の最大値に対応するレンズ位置を合焦位置とするスキャン方式によるAF処理を行う。   In step S206, the system control unit 112 performs AE processing and AF processing in the shooting preparation state (while the first switch signal SW1 is on). Specifically, first, the AE processing unit 103 executes AE processing for setting an exposure condition when executing AF processing. In the AE process, an appropriate shooting condition (a combination of an aperture value Av and a shutter speed Tv (a sensitivity Sv equivalent to ISO if necessary)) corresponding to the subject brightness is determined using a program diagram to be described later. After the AE process, the AF processing unit 105 performs the AF process. As the AF processing, for example, a method is adopted in which the lens position where the high frequency component of the luminance signal of the subject obtained from the image sensor 106 is maximized is set to the in-focus position. Specifically, the focus lens 104 is driven over the entire distance measurement range, and an evaluation value based on the high frequency component of the luminance signal obtained from the image sensor 106 is stored each time, and the maximum value of the stored values AF processing is performed by a scanning method in which the lens position corresponding to is the in-focus position.

ステップS207〜S209では、システム制御部112はフリッカ検出を行い、検出結果に応じて本撮影用の露出条件を設定する。具体的には、ステップS207でフリッカが検出された場合にはステップS208へ進み、そうでない場合にはステップS209へ進む。なお、光学ファインダと電子ビューファインダ機能(EVF)の少なくともいずれかを備える場合であって、EVFを使用せずに光学ファインダを使用している場合には、フリッカを考慮する必要がないため、フリッカが検出されたとしてもステップS209ヘ進む。また、第1スイッチ信号SW1と第2スイッチ信号SW2が所定の時間内に連続してオンされた場合にも、第1スイッチ信号SW1のオン中にフリッカの影響を受ける時間が短く、また、撮影者はすぐに撮影したいと判断できるので、ステップS209へ進む。
さらに、静止画を連続撮影する連写撮影機能を有する場合であって、連写撮影モードにおける1枚目の撮影時はフリッカ抑制優先のため、ステップS208へ進み、2枚目以降の撮影は連写スピード優先のためステップS209へ進む。一方、第1スイッチ信号SW1のオン中にAE/AF処理を行い続けるサーボ制御が可能な場合には、サーボ制御中に絞りも自由に作動できるようにする。
In steps S207 to S209, the system control unit 112 performs flicker detection, and sets the exposure condition for the main photographing according to the detection result. Specifically, if flicker is detected in step S207, the process proceeds to step S208, and if not, the process proceeds to step S209. In the case where at least one of the optical viewfinder and the electronic viewfinder function (EVF) is provided and the optical viewfinder is used without using the EVF, it is not necessary to consider flicker. Even if is detected, the process proceeds to step S209. Also, when the first switch signal SW1 and the second switch signal SW2 are continuously turned on within a predetermined time, the time affected by flicker is short while the first switch signal SW1 is on, and the photographing is performed. Since it can be determined that the person wants to shoot immediately, the process proceeds to step S209.
Furthermore, in the case of having a continuous shooting function for continuously shooting still images, in the continuous shooting mode, since the flicker suppression is prioritized during the first shooting, the process proceeds to step S208, and the second and subsequent shootings are continuously performed. Proceed to step S209 to prioritize the copying speed. On the other hand, when the servo control that can continue the AE / AF processing is possible while the first switch signal SW1 is ON, the diaphragm can be freely operated during the servo control.

ステップS208では、システム制御部112は、撮影準備状態(第1スイッチ信号SW1のオン中)にてフリッカが検出されたので、フリッカ抑制を優先したTvになるような第1の露出制御を行う。   In step S208, since the flicker is detected in the shooting preparation state (while the first switch signal SW1 is on), the system control unit 112 performs first exposure control so that Tv is given priority to flicker suppression.

ステップS209では、システム制御部112は、撮影準備状態(第1スイッチ信号SW1のオン中)にてフリッカが検出されていないので、撮影時のタイムラグの低減を優先した第2の露出制御に切り替える。第2の露出制御では、本撮影時(第2スイッチ信号SW2のオン)と同じ絞り値に設定される。なお、撮影準備動作に移行する前(第1スイッチ信号SW1のオン前)にフリッカが検出されず(ステップS201)、撮影準備動作後(第1スイッチ信号SW1のオン後)にフリッカが検出された場合に、撮影時のタイムラグの低減を優先した露出制御に切り替えても良い。この場合、第1スイッチ信号SW1のオン後に被写体もしくはカメラが動いてシーンが変化した可能性があり、タイムラグの低減を優先する実益がある。   In step S209, since the flicker is not detected in the shooting preparation state (while the first switch signal SW1 is on), the system control unit 112 switches to the second exposure control that prioritizes the reduction of the time lag during shooting. In the second exposure control, the same aperture value as that at the time of actual photographing (the second switch signal SW2 is turned on) is set. Note that flicker is not detected before the transition to the shooting preparation operation (before the first switch signal SW1 is turned on) (step S201), and flicker is detected after the shooting preparation operation (after the first switch signal SW1 is turned on). In this case, the exposure control may be switched to give priority to the reduction of the time lag during shooting. In this case, there is a possibility that the subject or the camera has moved and the scene has changed after the first switch signal SW1 is turned on, and there is an advantage that priority is given to reducing the time lag.

ステップS210で第2スイッチ信号SW2がオンされ、本撮影の移行指示を受けた場合には、システム制御部112は、ステップS211に進み、本撮影用の露出制御を行い、ステップS212で本撮影を実施する。   When the second switch signal SW2 is turned on in step S210 and an instruction to shift to the main shooting is received, the system control unit 112 proceeds to step S211 to perform exposure control for the main shooting, and performs the main shooting in step S212. carry out.

上述したように、本実施形態によれば、シーンに応じてフリッカの抑制を優先する制御を行うか、撮影時のタイムラグの低減を優先する制御を行うかを適切に切り替えることができる。なお、本実施形態では50Hzフリッカを検出する例について説明したが、50Hzと60Hzのフリッカが検出可能な場合には、ステップS202でのフリッカ検出結果に応じて、50Hzフリッカ抑制を優先したTvになるような露出制御、60Hzフリッカ抑制を優先したTvになるような露出制御、タイムラグの低減を優先した撮影準備状態でのAF処理と同じ絞り値になるような露出制御、のいずれかに分岐するように制御しても良い。同様に、ステップS207でのフリッカ検出結果に応じて、50Hzフリッカ抑制を優先したTvになるような露出制御、60Hzフリッカ抑制を優先したTvになるような露出制御、タイムラグの低減を優先した撮影時と同じ絞り値になるような露出制御、のいずれかに分岐するように制御しても良い。   As described above, according to this embodiment, it is possible to appropriately switch between performing control that prioritizes flicker suppression and performing control that prioritizes time lag reduction during shooting. In this embodiment, an example in which 50 Hz flicker is detected has been described. However, when 50 Hz and 60 Hz flicker can be detected, Tv is given priority to 50 Hz flicker suppression according to the flicker detection result in step S202. The exposure control is such that the exposure control is such that the Tv gives priority to 60 Hz flicker suppression, and the exposure control gives the same aperture value as the AF processing in the shooting preparation state giving priority to reducing the time lag. You may control to. Similarly, according to the flicker detection result in step S207, exposure control that gives priority to Tv giving priority to 50Hz flicker suppression, exposure control to give Tv giving priority to suppression of 60Hz flicker, and shooting that gives priority to time lag reduction It may be controlled to branch to any one of the exposure controls so that the same aperture value is obtained.

<プログラム線図>次に、図3を参照して、本実施形態の撮影処理に用いるプログラム線図(以下、P線図)について説明する。なお、これらのP線図は、システム制御部112のROMまたはRAMに格納されている。また、本実施形態では、絞り値をAv2〜6(F2.0〜F8.0)、シャッタ速度をTv0〜11(1秒〜1/2000秒)、ゲインアップ量をGain0〜4(ISO100〜ISO1600)に設定可能であるとする。ゲインアップ量の制御は、システム制御部112からの制御指令を受けたAE処理部103が行う。   <Program Diagram> Next, with reference to FIG. 3, a program diagram (hereinafter referred to as a P diagram) used in the photographing process of this embodiment will be described. Note that these P diagrams are stored in the ROM or RAM of the system control unit 112. In this embodiment, the aperture value is Av2 to 6 (F2.0 to F8.0), the shutter speed is Tv0 to 11 (1 second to 1/2000 second), and the gain increase amount is Gain0 to 4 (ISO100 to ISO1600). ) Can be set. The gain increase amount is controlled by the AE processing unit 103 that has received a control command from the system control unit 112.

図3は、第1スイッチ信号SW1オン前(スルー画像撮像時)およびSW1オン中(フリッカ検出)(a)、SW1オン中のAF処理時(b)、SW1オン中(フリッカ未検出)(c)、本撮影時(d)の各P線図を例示している。   FIG. 3 shows the state before the first switch signal SW1 is turned on (when a through image is captured), while SW1 is turned on (flicker detection) (a), during AF processing while SW1 is on (b), and when SW1 is on (flicker not detected) (c) ), And each P diagram at the time of actual photographing (d).

図3において、実線は絞り値Avを、破線はシャッタ速度Tvを、点線はGain値をそれぞれ示している。また、横軸は被写体輝度であり、横軸の右側に行くに従って高輝度となる。縦軸は絞り値Av、シャッタ速度Tv、Gain値であり、縦軸の上側に行くに従って大きい値となる。なお、システム制御部112は、撮像素子106から得られる画像信号と、絞り/シャッタ102の絞り値Av及びシャッタ速度Tvと、Gain値とから被写体輝度を算出する。   In FIG. 3, the solid line indicates the aperture value Av, the broken line indicates the shutter speed Tv, and the dotted line indicates the Gain value. The horizontal axis represents the subject brightness, and the brightness increases as going to the right side of the horizontal axis. The vertical axis represents the aperture value Av, the shutter speed Tv, and the gain value, and the values increase as going upward on the vertical axis. The system control unit 112 calculates the subject brightness from the image signal obtained from the image sensor 106, the aperture value Av and shutter speed Tv of the aperture / shutter 102, and the Gain value.

一般的に、被写体輝度が低くなるに従ってAvとTvを小さくして、Gain値を大きくする。つまり、開放絞りとし、シャッタ速度を低速にして、ゲインアップ量を大きくすることで、暗いシーンに対して適正な画像が撮影できるように設定される。一方、被写体輝度が高くなるに従ってAvとTvを大きくして、Gain値を小さくする。つまり、小絞りとし、シャッタ速度を高速にして、ゲインアップ量を小さくする。   Generally, as the subject brightness decreases, Av and Tv are decreased and the Gain value is increased. In other words, the aperture is set wide, the shutter speed is set low, and the gain increase amount is increased so that an appropriate image can be taken for a dark scene. On the other hand, Av and Tv are increased and the Gain value is decreased as the subject brightness increases. That is, the aperture is made small, the shutter speed is increased, and the gain increase amount is decreased.

本実施形態では、第1スイッチ信号SW1オン前(スルー画像撮像時)およびSW1オン中(a)並びにAF処理時(b)におけるシャッタ速度は1/30秒以下に制限されている。SW1オン前およびSW1オン中については、シャッタ速度が遅くなると、撮影者が画角を合わせるのが困難になるためであり、このような不都合を回避するために、適正なシャッタ速度のみを使用できるようにしている。また、AF処理時(b)については、シャッタ速度が遅くなると、手ブレや被写体ブレにより周波数成分が取得し難くなるためである。また、本実施形態では、どのようなシーンであっても、絞り値、Gain値の上限及び下限を同一とするが、シャッタ速度と同様に、シーンごとに適正な処理ができるように、上限及び下限をそれぞれ異なる値としても良い。   In the present embodiment, the shutter speed is limited to 1/30 second or less before the first switch signal SW1 is turned on (when a through image is captured), while SW1 is turned on (a) and during AF processing (b). Before SW1 is turned on and while SW1 is turned on, if the shutter speed becomes slow, it becomes difficult for the photographer to adjust the angle of view. In order to avoid such inconvenience, only an appropriate shutter speed can be used. I am doing so. Further, at the time of AF processing (b), if the shutter speed is slow, it is difficult to acquire a frequency component due to camera shake or subject blur. In this embodiment, the upper limit and the lower limit of the aperture value and the Gain value are the same for any scene, but the upper limit and the lower limit are set so that appropriate processing can be performed for each scene, as with the shutter speed. The lower limit may be a different value.

図3(a)において、領域[A1]は低輝度時の挙動を表している。領域[A1]では、Tvを輝度に応じて変更している。Tvが所定の値となる輝度よりも明るい領域[B1]では、Gain値を変更している。所定の値とは、1/(光源のフリッカ周波数の正の整数倍)のシャッタ速度である。50Hzフリッカが検出された場合は1/50秒や1/100秒のシャッタ速度に設定する。一方、60Hzフリッカが検出された場合は1/60秒や1/120秒のシャッタ速度に設定する。また、50Hzと60Hzのフリッカのうちいずれかのみが検出可能な場合も考えられる。この場合は、50(または60)Hzフリッカが検出された場合はシャッタ速度を1/50(または60)秒や1/100(または120)秒に設定し、フリッカ未検出の場合は1/60(または50)秒や1/120(または100)秒に設定しても良い。Gain値が最小値となる輝度よりも明るい領域[C1]では、Tvを固定したままAvを変更する。これは、フリッカ抑制が可能なTvをできるだけ優先するためである。Avが設定可能な小絞りとなる輝度よりも明るい領域[D1]では、Tvを変更するようにしている。   In FIG. 3A, a region [A1] represents a behavior at low luminance. In the area [A1], Tv is changed according to the luminance. In the area [B1] brighter than the luminance at which Tv is a predetermined value, the Gain value is changed. The predetermined value is a shutter speed of 1 / (positive integer multiple of the flicker frequency of the light source). When 50 Hz flicker is detected, the shutter speed is set to 1/50 second or 1/100 second. On the other hand, when 60 Hz flicker is detected, the shutter speed is set to 1/60 seconds or 1/120 seconds. Further, there may be a case where only one of 50 Hz and 60 Hz flicker can be detected. In this case, the shutter speed is set to 1/50 (or 60) seconds or 1/100 (or 120) seconds when 50 (or 60) Hz flicker is detected, and 1/60 when flicker is not detected. (Or 50) seconds or 1/120 (or 100) seconds may be set. In the region [C1] brighter than the luminance at which the Gain value is the minimum value, Av is changed while Tv is fixed. This is because Tv capable of suppressing flicker is given priority as much as possible. In the region [D1] brighter than the luminance that is a small aperture for which Av can be set, Tv is changed.

図3(b)において、領域[A2]は低輝度時の挙動を表している。領域[A2]では、Gain値を輝度に応じて変更している。Gain値が最小値となる輝度よりも明るい領域[B2]では、Tvを変更している。そして、Tvが最大値となる輝度よりも明るい領域[C2]では、Avを小絞りに変更するようにしている。理由は以下の通りである。即ち、画像信号から得られるコントラストデータを用いて合焦位置を決定するAF処理では、一般にAvとGain値が小さいシーンの方が性能は高いことが知られている。これは、Avを小さくする(絞りを開放寄りにする)に従って被写界深度が浅くなり、ピントの合っている部分とそうでない部分との差がわかりやすくなるためである。つまり、絞りを開放寄りにするに従ってコントラストデータのピーク値がわかりやすくなるため、正確な合焦が容易になる。一方、Gain値を大きくするということは、撮像素子106から出力される画像信号をより大きく増幅することになるが、この場合ノイズも増幅されてしまう。すると、ノイズのコントラストデータへの影響が大きくなり、コントラストデータのピーク値を誤判定し、AF性能の低下を招く可能性がある。このような理由から、AF精度を重視して、開放絞り、低感度優先のP線図にする。   In FIG. 3B, a region [A2] represents a behavior at low luminance. In the area [A2], the Gain value is changed according to the luminance. In the region [B2] brighter than the luminance at which the Gain value is the minimum value, Tv is changed. In the area [C2] brighter than the luminance at which Tv is the maximum value, Av is changed to a small aperture. The reason is as follows. That is, it is known that, in AF processing that determines the in-focus position using contrast data obtained from an image signal, generally a scene with a small Av and Gain value has higher performance. This is because the depth of field becomes shallower as the Av is reduced (the aperture is moved closer to the open position), and the difference between the focused portion and the unfocused portion becomes easier to understand. That is, since the peak value of the contrast data becomes easier to understand as the aperture is moved closer to the full aperture, accurate focusing becomes easier. On the other hand, increasing the Gain value amplifies the image signal output from the image sensor 106, but in this case, noise is also amplified. Then, the influence of the noise on the contrast data becomes large, and the peak value of the contrast data may be erroneously determined, leading to a decrease in AF performance. For this reason, focus is placed on AF accuracy, and a P diagram with priority to the wide aperture and low sensitivity is used.

図3(c)において、領域[A3]は、低輝度時の挙動を表している。領域[A3]では、Tvを輝度に応じて変更している。Tvが所定の値となる輝度よりも明るい領域[B3]では、Gain値を変更している。所定の値とは、図3(a)と同様に1/(光源のフリッカ周波数の正の整数倍)のシャッタ速度である。Gain値が最小値となる輝度よりも明るい領域[C3]では、Avを変更する。Avが所定の値よりも明るい領域[D3]では、Tvを変更している。そして、Tvが所定の値よりも明るい領域[E3]では、Avを変更している。[B3]と[C3]の境界、[C3]と[D3]の境界、[D3]と[E3]の境界となるAvは、後述する本撮影時とあらゆる明るさで同じ値になるように設定している。これは、第1スイッチ信号SW1オン中に第2スイッチ信号SW2がオンされて本撮影を行う際に、Avを同じ値にすることで絞り制御にかかる時間がタイムラグとして追加されないようにするためである。また、本撮影時と同じの絞り値をAF処理時に使用した場合に、絞り値によっては被写体深度が深くなってAF精度が低下するおそれがある。これに対処するために、AF精度が高精度を保証できる開放絞りから所定の範囲内の絞り値で、本撮影時とAF処理時とで絞り値が同じ値になるようなP線図を設定しても良い。なお、複数の撮影モードに切り替えられるデジタルカメラの場合であれば、撮影モードごとにP線図を変更して用いるようにしても良い。   In FIG. 3C, a region [A3] represents a behavior at low luminance. In the area [A3], Tv is changed according to the luminance. In the region [B3] brighter than the luminance at which Tv is a predetermined value, the Gain value is changed. The predetermined value is a shutter speed 1 / (a positive integer multiple of the flicker frequency of the light source) as in FIG. In the region [C3] brighter than the luminance at which the Gain value is the minimum value, Av is changed. In the area [D3] where Av is brighter than a predetermined value, Tv is changed. In the region [E3] where Tv is brighter than a predetermined value, Av is changed. Av, which is the boundary between [B3] and [C3], the boundary between [C3] and [D3], and the boundary between [D3] and [E3], is set to the same value at all brightnesses, as will be described later. It is set. This is to prevent the time required for aperture control from being added as a time lag by setting Av to the same value when the second switch signal SW2 is turned on while the first switch signal SW1 is turned on to set Av to the same value. is there. Further, when the same aperture value as that used in the actual photographing is used during the AF process, depending on the aperture value, the subject depth may be deepened and the AF accuracy may be reduced. In order to cope with this, a P diagram is set so that the aperture value is the same within the predetermined range from the widest aperture that can guarantee high accuracy, and the aperture value is the same at the time of actual photographing and AF processing. You may do it. In the case of a digital camera that can be switched to a plurality of shooting modes, the P diagram may be changed for each shooting mode.

図3(d)において、領域[A4]は、低輝度時の挙動を表している。領域[A4]では、Tvを輝度に応じて変更しており、シャッタ速度が遅くなる(露光時間が長くなる)に従って手ブレや被写体ブレが発生しやすくなるため、これを抑制するために輝度が高くなるに従ってTvが低くなるようにする。Tvが閾値以上になる領域[B4]では、Gain値を変更する。ゲインアップ量が高くなるに従って撮影画像にノイズが多く発生して見栄えが悪化するため、手ブレや被写体ブレを抑制できるTvの場合には、輝度が高くなるに従ってシャッタ速度をより高速にするよりもゲインアップ量を小さくする。これにより、見栄えの良い画像の撮影が可能になる。   In FIG. 3D, a region [A4] represents a behavior at low luminance. In the area [A4], Tv is changed according to the luminance, and as the shutter speed becomes slower (exposure time becomes longer), camera shake and subject blur tend to occur. Tv is lowered as the value increases. In the region [B4] where Tv is equal to or greater than the threshold value, the Gain value is changed. As the amount of gain increases, noise increases in the captured image and the appearance deteriorates. Therefore, in the case of Tv that can suppress camera shake and subject blur, the shutter speed becomes higher as the brightness increases. Reduce the gain increase amount. As a result, it is possible to take a good-looking image.

Gain値が最小になる輝度よりも明るい領域[C4]では、Avを変更する。レンズの種類によっては、開放絞りよりもある程度絞る方が高解像な画像を撮影することが可能になる。そこで、手ブレや被写体ブレ、ノイズの抑制が可能な明るさならば、高解像な画像が撮影可能な絞り値に設定するようにする。高解像な画像を撮影可能な絞り値よりも明るい領域[D4]では、Tvを変更する。上述したように、小絞りになりすぎると回折現象により解像感が低下するなど画質への悪影響があることから、高輝度でもすぐには小絞りにせず、Tvが設定可能な上限まで変更する。そして、Tvが設定可能な上限よりも明るい領域[E4]では、Avを変更する。なお、なお、複数の撮影モードに切り替えられるデジタルカメラの場合であれば、撮影モードごとにP線図を変更して用いるようにしても良い。   In the region [C4] brighter than the luminance at which the Gain value is minimized, Av is changed. Depending on the type of lens, it is possible to shoot a high-resolution image when the aperture is stopped to some extent rather than an open aperture. Therefore, if the brightness is such that camera shake, subject blur, and noise can be suppressed, the aperture value is set so that a high-resolution image can be taken. In a region [D4] brighter than the aperture value at which a high-resolution image can be taken, Tv is changed. As described above, if the aperture is too small, there is an adverse effect on the image quality, such as a decrease in resolution due to the diffraction phenomenon. . Then, Av is changed in a region [E4] brighter than the upper limit that Tv can be set. In the case of a digital camera that can be switched to a plurality of shooting modes, the P diagram may be changed for each shooting mode.

上述したように、本実施形態によれば、フリッカ検出時は第1スイッチ信号SW1オン中のP線図をフリッカ抑制優先とし、フリッカ未検出時はタイムラグ低減優先としたP線図に切り替えることが可能となる。   As described above, according to the present embodiment, when flicker is detected, the P diagram when the first switch signal SW1 is ON is set to flicker suppression priority, and when flicker is not detected, the P diagram is switched to time lag reduction priority. It becomes possible.

なお、高輝度あるいは低輝度のためにシャッタ速度を、1/(光源のフリッカ周波数の正の整数倍)、つまり光源のフリッカ周波数の正の整数倍の逆数に設定できないシーンの場合には、フリッカ抑制が困難となる。この場合には、画像処理によるフリッカ補正手段を設け、1/(光源のフリッカ周波数の正の整数倍)のシャッタ速度に設定できないシーンにのみフリッカ補正を行うようにする。そうすることであらゆるシーンにおいてフリッカの抑制が可能となる。   If the scene cannot be set to 1 / (a positive integer multiple of the flicker frequency of the light source), that is, a reciprocal of a positive integer multiple of the flicker frequency of the light source, because of high brightness or low brightness, flicker. It becomes difficult to suppress. In this case, flicker correction means by image processing is provided, and flicker correction is performed only for scenes that cannot be set to a shutter speed of 1 / (positive integer multiple of the light source flicker frequency). By doing so, flicker can be suppressed in any scene.

例えば、フリッカ補正方法として、動画信号からフリッカ光源の周波数成分を検出して、フリッカが発生している領域にのみ補正値を乗算するものがある。具体的には、まず動画の各フレームを垂直でNラインに分割して、各ラインの輝度積分値を算出する。そして、時系列順に1フレーム前の画像について同様に算出した各ラインの輝度積分値をラインごとに引くことで、フリッカ成分のみを算出する。これら各ラインのフリッカ成分の情報から、フーリエ変換によりフリッカ光源による輝度変化の振幅およびフリッカ周波数を算出し、各フレームでの補正値を算出する。そして、各フレームでフリッカの影響があるラインに対して補正値を乗算する。このような方法により、フリッカの補正が可能になる。   For example, as a flicker correction method, there is a method in which a frequency component of a flicker light source is detected from a moving image signal and a correction value is multiplied only in an area where flicker occurs. Specifically, first, each frame of the moving image is vertically divided into N lines, and the luminance integrated value of each line is calculated. Then, only the flicker component is calculated by subtracting, for each line, the luminance integral value of each line calculated in the same manner for the image one frame before in time series. From the flicker component information of each line, the amplitude and flicker frequency of the luminance change by the flicker light source are calculated by Fourier transform, and the correction value at each frame is calculated. Then, the correction value is multiplied to the line having the influence of flicker in each frame. Such a method makes it possible to correct flicker.

<フリッカ検出>次に、図4を参照して、図2のS201におけるフリッカ検出処理について説明する。以下では、50Hz光源下におけるフリッカ検出方法について説明する。   <Flicker Detection> Next, the flicker detection process in S201 of FIG. 2 will be described with reference to FIG. Hereinafter, a flicker detection method under a 50 Hz light source will be described.

ステップS401では、システム制御部112は、第1スイッチ信号SW1オン前のスルー画像撮像用のP線図のゲインアップTvを1/60秒および1/120秒に設定する。これにより、60Hzのフリッカ光源下で撮像しているスルー画像のフリッカは抑制可能であるが、50Hzのフリッカ光源下で撮像しているスルー画像のフリッカを抑制することは困難となる。   In step S401, the system control unit 112 sets the gain increase Tv of the P diagram for capturing a through image before the first switch signal SW1 is turned on to 1/60 seconds and 1/120 seconds. Thus, although it is possible to suppress flicker of a through image captured under a 60 Hz flicker light source, it is difficult to suppress flicker of a through image captured under a 50 Hz flicker light source.

ステップS402では、システム制御部112は、画像処理部108によりスルー画像の現在のフレーム画像について輝度ヒストグラムYf[i]を算出する。iは輝度ヒストグラムの分割数である。例えば画像の各画素が取りうる輝度値が0〜255、iの取り得る値を0〜31とする。このとき、Yf[0]は0〜7の輝度値を持つ画素数の和、Yf[1]は8〜15の輝度値を持つ画素数の和、Yf[31]は248〜255の輝度値を持つ画素数の和、となる。   In step S402, the system control unit 112 calculates a luminance histogram Yf [i] for the current frame image of the through image by the image processing unit 108. i is the number of divisions of the luminance histogram. For example, the luminance value that each pixel of the image can take is 0 to 255, and the value i can take is 0 to 31. At this time, Yf [0] is the sum of the number of pixels having luminance values of 0 to 7, Yf [1] is the sum of the number of pixels having luminance values of 8 to 15, and Yf [31] is the luminance value of 248 to 255. Is the sum of the number of pixels.

ステップS403では、システム制御部112は、フリッカ検出に必要な、予め決められた回数(CalcNum+1)以上、画像処理部108が輝度ヒストグラムを算出したか判定する。システム制御部112は、回数が足りなければ処理を終了し、次のフレーム画像が撮像されるまで待機する。また、システム制御部112は、所定回数以上輝度ヒストグラムが算出されていればステップS404へ進む。   In step S403, the system control unit 112 determines whether or not the image processing unit 108 has calculated the luminance histogram more than a predetermined number of times (CalcNum + 1) necessary for flicker detection. If the number is not sufficient, the system control unit 112 ends the process and waits until the next frame image is captured. If the brightness histogram has been calculated a predetermined number of times or more, the system control unit 112 proceeds to step S404.

ステップS404では、システム制御部112は、スルー画像の連続する複数(CalcNum+1)のフレーム画像から算出した輝度ヒストグラムについて、連続する2つのフレーム画像間の輝度ヒストグラムの差分和を順次算出する。この差分和は、連続する2つのフレーム画像間の輝度ヒストグラムを複数の領域に分割し、領域ごとの差分を合計した値である。システム制御部112は、例えばn=0のとき、現在のフレーム画像と1つ前のフレーム画像の輝度ヒストグラムの差分和を算出し比較する。現在のフレーム画像の輝度ヒストグラムをYf[i][0]、1つ前のフレーム画像の輝度ヒストグラムをYf[i][1]とすると、差分は
DiffSum[0]=Σ(Yf[i][0]−Yf[i][1])(i=0,1,...,31)
となる。
In step S <b> 404, the system control unit 112 sequentially calculates the difference sum of the luminance histograms between two consecutive frame images for the luminance histograms calculated from a plurality of (CalcNum + 1) frame images that are continuous through images. This difference sum is a value obtained by dividing the luminance histogram between two consecutive frame images into a plurality of regions and summing up the differences for each region. For example, when n = 0, the system control unit 112 calculates and compares the difference sum between the luminance histograms of the current frame image and the previous frame image. If the luminance histogram of the current frame image is Yf [i] [0] and the luminance histogram of the previous frame image is Yf [i] [1], the difference is DiffSum [0] = Σ (Yf [i] [ 0] −Yf [i] [1]) (i = 0, 1,..., 31)
It becomes.

ステップS405では、システム制御部112は、ステップS404で取得したDiffSum[n]の最大値と最小値、およびそれらの差分Deltaを算出する。   In step S405, the system control unit 112 calculates the maximum value and minimum value of DiffSum [n] acquired in step S404, and the difference Delta thereof.

ステップS406では、システム制御部112は、Deltaの値が下限値Th_Min以上かつ上限値Th_Over以下ならばスルー画像にフリッカ成分が含まれている(フリッカが発生している)可能性があると判定する。また、システム制御部112は、Deltaの値が下限値Th_Min未満の場合にはスルー画像にフリッカ成分が含まれていないと判定し、また、上限値Th_Overを超える場合は誤検出の可能性があると判定する。   In step S406, the system control unit 112 determines that there is a possibility that the through image includes a flicker component (flicker occurs) if the value of Delta is equal to or higher than the lower limit value Th_Min and lower than the upper limit value Th_Over. . The system control unit 112 determines that the flicker component is not included in the through image when the value of Delta is less than the lower limit value Th_Min, and there is a possibility of false detection when the value exceeds the upper limit value Th_Over. Is determined.

次に、システム制御部112は、ステップS406でフリッカが発生している可能性があると判定した場合には、フリッカ検出カウントCountを1増加し(S407)、そうでなければカウントを初期化(Count=0)する(S408)。これはフリッカの誤検出を抑制するためであり、Deltaの値が一旦上限値と下限値の範囲内(Th_Min≦Delta≦Th_Over)になっただけでフリッカが発生していると判定してしまうと、フリッカを誤検出してしまう可能性があるためである。   Next, when it is determined in step S406 that there is a possibility of occurrence of flicker, the system control unit 112 increments the flicker detection count Count by 1 (S407), and otherwise initializes the count ( Count = 0) (S408). This is in order to suppress false detection of flicker. If it is determined that flicker occurs only when the value of Delta once falls within the range between the upper limit value and the lower limit value (Th_Min ≦ Delta ≦ Th_Over). This is because there is a possibility that the flicker is erroneously detected.

ステップS409およびS410では、一定期間連続して直近の(CalcNum+1)のフレーム画像についてフリッカ成分が含まれている可能性があると判定された場合に50Hzフリッカ光源下で撮像されていると判定する。具体的には、ステップS409でフリッカ検出カウントCountが所定の閾値Th_Count以上になった場合は、システム制御部112は、50Hzフリッカが検出されたと判定する。そして、50Hzフリッカを抑制するため、スルー画像撮像用のP線図におけるゲインアップTvを1/50秒および1/100秒に変更する(S410)。   In steps S409 and S410, when it is determined that there is a possibility that a flicker component may be included in the latest (CalcNum + 1) frame image continuously for a certain period, it is determined that the image is captured under a 50 Hz flicker light source. Specifically, when the flicker detection count Count is equal to or greater than a predetermined threshold Th_Count in step S409, the system control unit 112 determines that 50 Hz flicker has been detected. Then, in order to suppress 50 Hz flicker, the gain increase Tv in the P diagram for capturing a through image is changed to 1/50 seconds and 1/100 seconds (S410).

なお、本実施形態では50Hz光源下でのフリッカ検出について説明したが、ステップS401にてゲインアップTvを1/50秒に設定してステップS402〜S409の処理を行えば60Hz光源下でのフリッカを検出することが可能になる。例えば、ステップS401にてゲインアップTvを1/60秒に設定してステップS409までの処理を行い、所定時間経過後にステップS401にてゲインアップTvを1/50秒に設定して同様の処理を行う。このようにすれば、50Hzのフリッカが検出されているか、60Hzのフリッカが検出されているか、あるいはいずれのフリッカも検出されていないか、を判定することが可能になる。   In the present embodiment, flicker detection under a 50 Hz light source has been described. However, if the gain increase Tv is set to 1/50 second in step S401 and the processing in steps S402 to S409 is performed, flicker under a 60 Hz light source is detected. It becomes possible to detect. For example, in step S401, the gain increase Tv is set to 1/60 second and the process up to step S409 is performed. After a predetermined time has elapsed, the gain increase Tv is set to 1/50 second in step S401 and the same process is performed. Do. In this way, it is possible to determine whether 50 Hz flicker is detected, 60 Hz flicker is detected, or no flicker is detected.

[他の実施形態]本発明は、以下の処理を実行することによっても実現される。即ち上述した実施形態の機能を実現するソフトウェア(プログラム)をネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムコードを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。   [Other Embodiments] The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads and executes the program code. It is processing to do. In this case, the program and the storage medium storing the program constitute the present invention.

Claims (14)

撮像手段と、
撮影準備動作の指示に応じて被写体輝度に基づいて撮影条件を決定する決定手段と、
前記撮像手段により撮像された画像に基づいてフリッカを検出する検出手段と、
前記検出手段によるフリッカの検出結果に応じて、撮影準備状態から本撮影までの間の露出制御を、フリッカの抑制を優先する第1の制御または撮影時のタイムラグの低減を優先する第2の制御に切り替える制御手段と、を有し、
前記制御手段は、前記撮影準備動作の指示を受けるまでにフリッカが検出され、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出された場合には、前記本撮影の指示を受けるまで前記第1の制御を設定し、前記撮影準備動作の指示を受けるまでにフリッカが検出されず、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出された場合には、前記本撮影の指示を受けるまで前記第2の制御を設定することを特徴とする撮像装置。
Imaging means;
A determining means for determining shooting conditions based on subject brightness in accordance with an instruction for shooting preparation operation;
Detecting means for detecting flicker based on an image picked up by the image pickup means;
According to the flicker detection result by the detection means, the first control giving priority to the flicker suppression or the second control giving priority to the reduction of the time lag at the time of shooting from the shooting preparation state to the main shooting. Control means for switching to,
Wherein, the flicker until receiving an indication of the photographic preparation operation is detected, wherein when the flicker until receiving an indication of the present shooting instruction receiving from the photographing preparation operation is detected, the present until receiving an instruction to photographing setting the first control, the not detected flicker until receiving an instruction for photographing preparation operation, from receiving the indication of the photographic preparation operation until it receives an instruction of the present photographing An image pickup apparatus, wherein when the flicker is detected, the second control is set until an instruction for the main photographing is received.
前記第2の制御では、前記撮影準備状態から前記本撮影までの前記撮像手段への入射光量を調節する絞りの値を同じ値に設定することを特徴とする請求項1に記載の撮像装置。   2. The imaging apparatus according to claim 1, wherein in the second control, a diaphragm value that adjusts an amount of incident light on the imaging unit from the imaging preparation state to the main imaging is set to the same value. 前記第1の制御では、前記撮像手段の露光時間を、前記検出手段によって検出されたフリッカの周波数の正の整数倍の逆数に設定することを特徴とする請求項1または2に記載の撮像装置。   3. The imaging apparatus according to claim 1, wherein, in the first control, an exposure time of the imaging unit is set to a reciprocal of a positive integer multiple of a flicker frequency detected by the detection unit. . 前記制御手段は、前記撮影準備動作の指示を受けるまでにフリッカが検出されない場合、または、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出されない場合には、前記第2の制御に切り替えることを特徴とする請求項1ないし3のいずれか1項に記載の撮像装置。   If the flicker is not detected before receiving the instruction for the shooting preparation operation, or if the flicker is not detected before receiving the instruction for the main shooting after receiving the instruction for the shooting preparation operation, The imaging device according to claim 1, wherein the imaging device is switched to the second control. 光学ファインダと電子ビューファインダ機能の少なくともいずれかを有し、
前記電子ビューファインダ機能を動作させない場合には前記第2の制御に切り替えることを特徴とする請求項1ないし3のいずれか1項に記載の撮像装置。
It has at least one of optical viewfinder and electronic viewfinder functions,
The imaging apparatus according to claim 1, wherein when the electronic viewfinder function is not operated, switching to the second control is performed.
前記制御手段は、前記撮影準備動作の指示と前記本撮影の指示が所定の時間内に連続して行われた場合には、前記第2の制御に切り替えることを特徴とする請求項1ないし3のいずれか1項に記載の撮像装置。   The control means switches to the second control when the instruction for the photographing preparation operation and the instruction for the main photographing are continuously performed within a predetermined time. The imaging device according to any one of the above. 前記制御手段は、連写撮影モードにおいて前記本撮影の指示により1枚目の画像が撮影された後は前記第2の制御に切り替えることを特徴とする請求項1ないし3のいずれか1項に記載の撮像装置。   4. The control unit according to claim 1, wherein the control unit switches to the second control after the first image is taken in accordance with the instruction of the main shooting in the continuous shooting mode. 5. The imaging device described. 画像処理により前記フリッカの補正を行う補正手段をさらに有し、
前記第1の制御において、前記撮像手段の露光時間を前記検出手段によって検出されたフリッカの周波数の正の整数倍の逆数に設定できない場合には、前記補正手段によりフリッカの補正を行うことを特徴とする請求項3に記載の撮像装置。
A correction means for correcting the flicker by image processing;
In the first control, when the exposure time of the imaging unit cannot be set to a reciprocal of a positive integer multiple of the flicker frequency detected by the detection unit, the correction unit corrects the flicker. The imaging apparatus according to claim 3.
撮像素子と、
前記撮像素子を用いて被写体を撮像する際の、撮影準備動作および撮影動作を指示することができる指示手段と、
被写体の輝度変化に応じて、絞り値、電荷蓄積時間、ゲイン量を含む露出条件を設定するための露出制御データを設定する設定手段と、を有し、
前記設定手段は、撮影準備動作の指示中にフリッカが発生している場合とフリッカが発生していない場合とで絞り値を変更する際の被写体の輝度が異なり、撮影準備動作の指示中にフリッカが発生していない場合と撮影動作の指示中とで絞り値を変更する際の被写体の輝度が同一となるように、前記露出制御データを設定することを特徴とする撮像装置。
An image sensor;
Instruction means capable of instructing a shooting preparation operation and a shooting operation when imaging a subject using the imaging device;
Setting means for setting exposure control data for setting an exposure condition including an aperture value, a charge accumulation time, and a gain amount according to a change in luminance of the subject,
The setting means differs in the brightness of the subject when changing the aperture value depending on whether flicker occurs during the shooting preparation operation instruction or when flicker does not occur. An image pickup apparatus, wherein the exposure control data is set so that the brightness of the subject when the aperture value is changed is the same when no image is generated and when the photographing operation is instructed.
前記露出制御データは、撮影準備動作の指示中と撮影動作の指示後とで異なるデータであることを特徴とする請求項9に記載の撮像装置。   The imaging apparatus according to claim 9, wherein the exposure control data is data that is different during an instruction for a photographing preparation operation and after an instruction for a photographing operation. 撮影準備動作の指示に応じて被写体輝度に基づいて撮影条件を決定する決定工程と、
撮像手段により撮像された画像に基づいてフリッカを検出する検出工程と、
前記フリッカの検出結果に応じて、撮影準備状態から本撮影までの間の露出制御を、フリッカの抑制を優先する第1の制御または撮影時のタイムラグの低減を優先する第2の制御に切り替える制御工程と、を有し、
前記制御工程では、前記撮影準備動作の指示を受けるまでにフリッカが検出され、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出された場合には、前記本撮影の指示を受けるまで前記第1の制御を設定し、前記撮影準備動作の指示を受けるまでにフリッカが検出されず、前記撮影準備動作の指示を受けてから前記本撮影の指示を受けるまでにフリッカが検出された場合には、前記本撮影の指示を受けるまで前記第2の制御を設定することを特徴とする撮像装置の制御方法。
A determination step of determining shooting conditions based on subject brightness in accordance with an instruction for shooting preparation operation;
A detection step of detecting flicker based on an image captured by the imaging means;
Control for switching the exposure control from the shooting preparation state to the actual shooting according to the flicker detection result to the first control giving priority to the flicker suppression or the second control giving priority to the time lag reduction at the time of shooting. And having a process
Wherein in the control step, the flicker until receiving an indication of the photographic preparation operation is detected, wherein when the flicker until receiving an indication of the present shooting instruction from receiving by the photographic preparation operation is detected, the present until receiving an instruction to photographing setting the first control, the not detected flicker until receiving an instruction for photographing preparation operation, from receiving the indication of the photographic preparation operation until it receives an instruction of the present photographing A method of controlling an image pickup apparatus, wherein when the flicker is detected, the second control is set until an instruction for the main photographing is received.
撮像素子と、撮影準備動作および撮影動作を指示することができる指示手段と、を備えた撮像装置の制御方法であって、
被写体の輝度変化に応じて、絞り値、電荷蓄積時間、ゲイン量を含む露出条件を設定するための露出制御データを設定する設定工程を有し、
前記設定工程では、撮影準備動作の指示中にフリッカが発生している場合とフリッカが発生していない場合とで絞り値を変更する際の被写体の輝度が異なり、撮影準備動作の指示中にフリッカが発生していない場合と撮影動作の指示中とで絞り値を変更する際の被写体の輝度が同一となるように、前記露出制御データを設定することを特徴とする撮像装置の制御方法。
An imaging device control method comprising: an imaging element; and an instruction unit capable of instructing an imaging preparation operation and an imaging operation,
A setting step for setting exposure control data for setting an exposure condition including an aperture value, a charge accumulation time, and a gain amount according to a change in luminance of the subject;
In the setting step, the brightness of the subject when changing the aperture value differs between when flicker occurs during the shooting preparation operation instruction and when flicker does not occur, and flicker occurs during the shooting preparation operation instruction. A control method for an imaging apparatus, wherein the exposure control data is set so that the brightness of the subject when the aperture value is changed is the same when no shooting occurs and when an imaging operation is instructed.
コンピュータを、請求項1ないし10のいずれか1項に記載の撮像装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the imaging device of any one of Claim 1 thru | or 10. コンピュータを、請求項1ないし10のいずれか1項に記載の撮像装置の各手段として機能させるためのプログラムを記憶したコンピュータによる読み取りが可能な記憶媒体。   A computer-readable storage medium storing a program for causing a computer to function as each unit of the imaging apparatus according to any one of claims 1 to 10.
JP2013170826A 2013-08-20 2013-08-20 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM Active JP6294607B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013170826A JP6294607B2 (en) 2013-08-20 2013-08-20 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013170826A JP6294607B2 (en) 2013-08-20 2013-08-20 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Publications (2)

Publication Number Publication Date
JP2015041823A JP2015041823A (en) 2015-03-02
JP6294607B2 true JP6294607B2 (en) 2018-03-14

Family

ID=52695766

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013170826A Active JP6294607B2 (en) 2013-08-20 2013-08-20 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

Country Status (1)

Country Link
JP (1) JP6294607B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6399843B2 (en) * 2014-07-28 2018-10-03 キヤノン株式会社 Imaging apparatus and control method thereof
JP6763147B2 (en) * 2016-02-04 2020-09-30 リコーイメージング株式会社 Shooting device with live view function

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02288560A (en) * 1989-04-28 1990-11-28 Canon Inc Still video camera
JPH0614257A (en) * 1992-06-26 1994-01-21 Canon Inc Electronic camera
JP2006060409A (en) * 2004-08-18 2006-03-02 Canon Inc Imaging apparatus and control method thereof
JP4867822B2 (en) * 2007-07-04 2012-02-01 ソニー株式会社 Image processing apparatus, image processing method, and imaging apparatus
JP5276308B2 (en) * 2007-11-21 2013-08-28 キヤノン株式会社 Imaging apparatus and control method thereof
JP2009213076A (en) * 2008-03-06 2009-09-17 Canon Inc Imaging device and control method thereof
JP2010262173A (en) * 2009-05-08 2010-11-18 Sony Corp Imaging apparatus and photographic lens unit
JP2012247674A (en) * 2011-05-30 2012-12-13 Casio Comput Co Ltd Imaging apparatus, imaging method and program

Also Published As

Publication number Publication date
JP2015041823A (en) 2015-03-02

Similar Documents

Publication Publication Date Title
JP5523143B2 (en) Imaging apparatus and automatic focusing method
KR100906166B1 (en) Digital imaging apparatus with camera shake compensation and adaptive sensitivity switching function
JP6124538B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP4783252B2 (en) Image pickup apparatus with image stabilization function, image stabilization method, pre-processing program for image stabilization processing, and stored image determination program
JP5065060B2 (en) Imaging apparatus and control method thereof
JP6267502B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
US9071766B2 (en) Image capturing apparatus and control method thereof
JP5759190B2 (en) Imaging apparatus and control method thereof
US20170318208A1 (en) Imaging device, imaging method, and image display device
JP6070283B2 (en) Imaging apparatus, exposure control method, and program
JP2013031010A (en) Imaging apparatus, imaging method, and program
US11190704B2 (en) Imaging apparatus and control method for performing live view display of a tracked object
JP6294607B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2009017427A (en) Imaging device
JP2006030972A (en) Imaging apparatus and imaging method
JP2012090041A (en) Image processing device, method, and program
JP2006217249A (en) Electronic camera, electronic camera system and program
JP2019080261A (en) Imaging apparatus
JP2015050733A (en) Exposure control apparatus, exposure control method, control program, and imaging apparatus
JP2018132748A (en) Imaging device and focus adjusting method
JP2022130038A (en) Imaging apparatus, control method, and program
JP6222904B2 (en) Imaging apparatus and control method thereof
JP2015053652A (en) Imaging apparatus, and control method and control program for the same
JP6148575B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2017034473A (en) Photographing device and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170221

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170224

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170420

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170908

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171102

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180216

R151 Written notification of patent or utility model registration

Ref document number: 6294607

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151