JP6659132B2 - Image blur correction device, imaging device, control method, and program - Google Patents

Image blur correction device, imaging device, control method, and program Download PDF

Info

Publication number
JP6659132B2
JP6659132B2 JP2015238193A JP2015238193A JP6659132B2 JP 6659132 B2 JP6659132 B2 JP 6659132B2 JP 2015238193 A JP2015238193 A JP 2015238193A JP 2015238193 A JP2015238193 A JP 2015238193A JP 6659132 B2 JP6659132 B2 JP 6659132B2
Authority
JP
Japan
Prior art keywords
subject
detection
vector
detection area
motion vector
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.)
Expired - Fee Related
Application number
JP2015238193A
Other languages
Japanese (ja)
Other versions
JP2017106947A (en
JP2017106947A5 (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 JP2015238193A priority Critical patent/JP6659132B2/en
Publication of JP2017106947A publication Critical patent/JP2017106947A/en
Publication of JP2017106947A5 publication Critical patent/JP2017106947A5/ja
Application granted granted Critical
Publication of JP6659132B2 publication Critical patent/JP6659132B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、像ブレ補正装置、撮像装置、制御方法およびプログラムに関する。   The present invention relates to an image blur correction device, an imaging device, a control method, and a program.

手振れにより撮影画像に生じるブレ(像ブレ)を、補正レンズなどの光学式補正手段を駆動することによって補正する像ブレ補正装置が提案されている。また、カメラの撮影方法の一つとして、流し撮りがある。流し撮りは、例えば、水平方向に移動している主被写体の動きにカメラを追従させながら撮影する手法である。ユーザは、流し撮り時に、被写体の躍動感を出すために、シャッター速度を遅くする。遅いシャッター速度でカメラを振りながら被写体を上手く追従して撮影するためには、経験が必要であり、特に初心者にとって流し撮りは難しい撮影手法である。   2. Description of the Related Art There has been proposed an image blur correction apparatus that corrects blur (image blur) generated in a captured image due to camera shake by driving an optical correction unit such as a correction lens. In addition, there is a panning shot as one of the shooting methods of the camera. The follow shot is a method of shooting while causing the camera to follow the movement of the main subject moving in the horizontal direction, for example. The user slows down the shutter speed in order to give the subject a lively feeling during panning. In order to successfully shoot a subject while shaking the camera at a slow shutter speed, experience is required, and panning is a particularly difficult shooting method for beginners.

特許文献1は、被写体のベクトルを検出し、検出した動きベクトルに基づいて補正レンズを駆動させることで、流し撮りをサポートするカメラ装置を開示している。   Patent Literature 1 discloses a camera device that supports panning by detecting a vector of a subject and driving a correction lens based on the detected motion vector.

特開2013−110754号公報JP 2013-110754 A

動きベクトルの検出方法として、相関演算に基づく相関法やブロックマッチング法等が知られている。例えば、ブロックマッチング法では、入力された画像信号を複数の適当な大きさの検出ブロック(例えば8画素×8ライン)に分割する。そして、検出ブロック単位で、前のフレームにおける一定範囲の画素との差を計算し、この差の絶対値の和が最小となる前のフレームの検出ブロックを探索する。そして、画面間の相対的なずれをその検出ブロックの動きベクトルとして検出する。   As a method of detecting a motion vector, a correlation method based on a correlation operation, a block matching method, and the like are known. For example, in the block matching method, an input image signal is divided into a plurality of detection blocks of an appropriate size (for example, 8 pixels × 8 lines). Then, a difference from a certain range of pixels in the previous frame is calculated for each detection block, and a detection block of the frame before the sum of the absolute values of the differences is minimized is searched for. Then, the relative displacement between the screens is detected as a motion vector of the detection block.

複数の検出ブロックに対応する動きベクトルの検出領域の配置については、用途に応じて適切な配置がある。例えば、画像切り出しによる電子式の手振れ補正を行う場合では、画面全体の振れを検出したほうが良いので、検出ブロックを画面全体に均等に配置したほうが良い。一方、流し撮りで比較的大きな角速度(例えば40dps)でカメラを振りながら撮影する場合を想定する。この場合には、検出ブロックの検出レンジを広くとるため、検出ブロックのサイズを小さくして画面中心付近に配置したほうが好ましい。しかし、検出ブロックを画面中心付近に配置すると、被写体が動きベクトルの検出領域から外れた位置にある場合に、被写体のベクトルを検出することができない。   Regarding the arrangement of the motion vector detection areas corresponding to the plurality of detection blocks, there is an appropriate arrangement depending on the application. For example, in the case of performing electronic camera shake correction by cutting out an image, it is better to detect the shake of the entire screen, and it is better to arrange the detection blocks evenly over the entire screen. On the other hand, it is assumed that panning is performed while the camera is shaken at a relatively high angular velocity (for example, 40 dps). In this case, in order to increase the detection range of the detection block, it is preferable to reduce the size of the detection block and arrange it near the center of the screen. However, when the detection block is arranged near the center of the screen, the vector of the subject cannot be detected when the subject is located outside the motion vector detection area.

本発明は、被写体が動きベクトルの検出領域内に収まっていない場合に、被写体を動きベクトルの検出領域内へ収めて被写体のベクトルを検出することができる像ブレ補正装置の提供を目的とする。   SUMMARY OF THE INVENTION It is an object of the present invention to provide an image blur correction device that can detect a vector of a subject by placing the subject in the detection region of the motion vector when the subject is not within the detection region of the motion vector.

本発明の一実施形態の像ブレ補正装置は、振れ検出信号に基づいて、像ブレを補正する補正手段と、撮影画面内の所定の検出領域から動きベクトルを検出する検出手段と、前記検出された動きベクトルと、前記振れ検出信号とに基づいて、被写体が前記検出領域に収まっているかを判定し、前記被写体が前記検出領域に収まっていない場合に、前記被写体が前記検出領域に収まるように前記補正手段を制御する制御手段とを備える。   An image blur correction apparatus according to an embodiment of the present invention includes a correction unit that corrects an image blur based on a shake detection signal, a detection unit that detects a motion vector from a predetermined detection area in a shooting screen, Based on the motion vector and the shake detection signal, it is determined whether the subject is in the detection area.If the subject is not in the detection area, the subject is included in the detection area. Control means for controlling the correction means.

本発明の像ブレ補正装置によれば、被写体が動きベクトルの検出領域内に収まっていない場合に、被写体を動きベクトルの検出領域内へ収めて被写体のベクトルを検出することができる。   ADVANTAGE OF THE INVENTION According to the image blur correction device of this invention, when an object is not contained in the detection area of a motion vector, the object can be contained in the detection area of a motion vector and the vector of the object can be detected.

本実施形態の撮像装置の構成を示す図である。FIG. 1 is a diagram illustrating a configuration of an imaging device according to an embodiment. 被写体ベクトル選択部の構成例を説明する図である。FIG. 4 is a diagram illustrating a configuration example of a subject vector selection unit. 1フレーム毎に算出されるベクトルの度数分布を示す図である。It is a figure showing the frequency distribution of the vector calculated for every frame. 検出ブロックの配置の例について説明する図である。FIG. 5 is a diagram illustrating an example of the arrangement of detection blocks. デジタルカメラによる動きベクトルの検出結果に応じた動作処理を説明するフローチャートである。6 is a flowchart illustrating an operation process according to a detection result of a motion vector by the digital camera. 検出ブロックの移動について説明する図である。It is a figure explaining movement of a detection block.

図1は、本実施形態の撮像装置の構成を示す図である。
図1に示す撮像装置は、デジタルカメラである。以下の説明では、画像の横方向または縦方向のいずれか一方のブレを補正する制御に関して説明し、他方のブレを補正する制御については、説明を省略する。なお、本発明は、監視カメラ、Webカメラ、携帯電話などの撮影装置にも適用可能である。
FIG. 1 is a diagram illustrating a configuration of an imaging device according to the present embodiment.
The imaging device shown in FIG. 1 is a digital camera. In the following description, control for correcting any one of the horizontal and vertical shakes of the image will be described, and the description of the control for correcting the other shake will be omitted. Note that the present invention is also applicable to photographing devices such as surveillance cameras, Web cameras, and mobile phones.

デジタルカメラ100は、マイクロコンピュータ(μCOM)101乃至フォーカス情報入力部119を備える。μCOM101は、デジタルカメラ100全体を制御する。μCOM101は、HPF103乃至乗算部117を備える。角速度検出部102は、撮像装置100に加わる振れを角速度信号(振れ検出信号)として検出する。図1に示す例では、角速度検出部102は、角速度センサである。角速度検出部102が出力する信号は、角速度データとしてμCOM101内部のハイパスフィルタ(以下、HPF)103に供給される。   The digital camera 100 includes a microcomputer (μCOM) 101 to a focus information input unit 119. The μCOM 101 controls the entire digital camera 100. The μCOM 101 includes the HPF 103 to the multiplication unit 117. The angular velocity detection unit 102 detects a shake applied to the imaging device 100 as an angular velocity signal (a shake detection signal). In the example shown in FIG. 1, the angular velocity detection unit 102 is an angular velocity sensor. The signal output from the angular velocity detection unit 102 is supplied to a high-pass filter (hereinafter, HPF) 103 inside the μCOM 101 as angular velocity data.

HPF103は、任意の周波数帯域でその特性を変更し得る機能を有しており、角速度データに含まれる低周波数成分を遮断してから高周波数帯域の信号を出力する。なお、HPF103は、角速度検出部102の出力からフィルタ(LPF)を通過させた信号を減算する構成にしても良い。このフィルタは、角速度検出部102の出力に対して高周波数帯域の信号を遮断する。   The HPF 103 has a function of changing its characteristics in an arbitrary frequency band, and outputs a signal in a high frequency band after blocking a low frequency component included in the angular velocity data. Note that the HPF 103 may be configured to subtract a signal that has passed through a filter (LPF) from the output of the angular velocity detection unit 102. This filter blocks a signal in a high frequency band with respect to the output of the angular velocity detection unit 102.

焦点距離演算部104は、ズーム情報入力部118が入力するズーム情報に基づいて、不図示の撮像光学系の焦点距離を算出し、振れ補正系を駆動するのに最適な値となるようにHPF103の出力を補正する。振れ補正系は、例えば、シフトレンズである。μCOM101は、振れ検出信号に基づいて振れ補正系を駆動することによって、撮影画像のブレ(像ブレ)を補正する。振れ補正系は、光軸と異なる方向(この例では、垂直な方向)に移動されることにより光軸を偏光する。これにより、装置の振れにより生じる撮像面上の被写体の移動が補正された像が、撮像素子に結像される。本実施形態では、振れ補正系は、被写体を追尾しながら撮影する、流し撮りのサポートにも用いられる。   The focal length calculation unit 104 calculates the focal length of the imaging optical system (not shown) based on the zoom information input by the zoom information input unit 118, and sets the HPF 103 to an optimal value for driving the shake correction system. Correct the output of. The shake correction system is, for example, a shift lens. The μCOM 101 corrects a shake (image blur) of a captured image by driving a shake correction system based on a shake detection signal. The shake correction system polarizes the optical axis by being moved in a direction different from the optical axis (in this example, a direction perpendicular to the optical axis). Accordingly, an image in which the movement of the subject on the imaging surface caused by the shake of the apparatus is corrected is formed on the imaging device. In the present embodiment, the shake correction system is also used to support panning, which captures an image while tracking a subject.

積分器105は、任意の周波数帯域でその特性を変更し得る機能を有しており、焦点距離演算部104からの出力を積分し、振れ補正系の駆動量を算出する。加算器106は、振れ補正系の駆動量と後述する被写体の移動量とを加算する。振れ補正系位置検出部112は、振れ補正系の位置を検出する。振れ補正系位置検出部112は、磁石と、磁石に対向する位置に供えられたホールセンサとを有する。   The integrator 105 has a function of changing its characteristics in an arbitrary frequency band, and integrates an output from the focal length calculation unit 104 to calculate a drive amount of the shake correction system. The adder 106 adds the driving amount of the shake correction system and the moving amount of the subject, which will be described later. The shake correction system position detection unit 112 detects the position of the shake correction system. The shake correction system position detection unit 112 has a magnet and a Hall sensor provided at a position facing the magnet.

A/D変換器113は、振れ補正系位置検出部112の出力をA(アナログ)/D(デジタル)変換し、デジタル化したデータを出力する。減算器107は、加算器106の出力からA/D変換器113の出力を減算して、制御フィルタ108へ供給する。   The A / D converter 113 performs A (analog) / D (digital) conversion on the output of the shake correction system position detection unit 112 and outputs digitized data. The subtracter 107 subtracts the output of the A / D converter 113 from the output of the adder 106 and supplies the result to the control filter 108.

制御フィルタ108は、入力データを所定のゲインで増幅する増幅器、及び位相補償フィルタで構成されている。減算器107から供給された偏差データは、制御フィルタ108において増幅器及び位相補償フィルタによる信号処理が行われた後、パルス幅変調部109に出力される。   The control filter 108 includes an amplifier that amplifies input data with a predetermined gain, and a phase compensation filter. The deviation data supplied from the subtracter 107 is output to a pulse width modulation unit 109 after signal processing is performed by an amplifier and a phase compensation filter in a control filter 108.

パルス幅変調部109は、制御フィルタ108を通過して供給されたデータを、パルス波のデューティー比を変化させる波形(即ちPWM波形)に変調して、モータ駆動部110に供給する。モータ111は、振れ補正系の駆動用のボイスコイル型モータであり、モータ駆動部110によって駆動される。これにより、振れ補正系が光軸と垂直な方向に移動される。   The pulse width modulator 109 modulates the data supplied through the control filter 108 into a waveform (that is, a PWM waveform) that changes the duty ratio of the pulse wave, and supplies the waveform to the motor driver 110. The motor 111 is a voice coil type motor for driving a shake correction system, and is driven by the motor driving unit 110. Thus, the shake correction system is moved in a direction perpendicular to the optical axis.

動きベクトル検出部114は、不図示の信号処理部で生成された現在の映像信号に含まれる輝度信号と、1フレーム前の映像信号に含まれる輝度信号とに基づいて、ブロックマッチング法を用いて、画像の動きベクトルを検出する。具体的には、動きベクトル検出部114は、映像信号を複数の適当な大きさの検出ブロックに分割し、ブロック単位で前のフレームの一定範囲の画素との差を計算し、この差の絶対値の和が最小となる前のフレームの検出ブロックを探索する。複数の検出ブロックに対応する範囲が動きベクトルの検出領域となる。動きベクトル検出部114は、画面間の相対的なずれを、その検出ブロックの動きベクトルとして検出する。すなわち、動きベクトル検出部114は、撮影画像に基づいて、撮影画面内の所定の検出領域から動きベクトルを検出する検出手段として機能する。動きベクトル検出部114によって検出された動きベクトルデータは、被写体ベクトル選択部115に供給される。被写体ベクトル選択部115は、被写体のベクトルを選択(決定)する。積分器116は、被写体のベクトルを積分し、角度情報とする。乗算部117は、積分器116の出力にゲインKを乗算し、加算器106に供給する。   The motion vector detection unit 114 uses a block matching method based on the luminance signal included in the current video signal generated by the signal processing unit (not shown) and the luminance signal included in the video signal one frame before. , The motion vector of the image is detected. Specifically, the motion vector detection unit 114 divides the video signal into a plurality of detection blocks of an appropriate size, calculates a difference between each block of pixels in a certain range of the previous frame, and calculates the absolute value of the difference. The detection block of the frame before the sum of the values is minimized is searched. A range corresponding to a plurality of detection blocks is a motion vector detection area. The motion vector detection unit 114 detects a relative shift between screens as a motion vector of the detected block. That is, the motion vector detection unit 114 functions as a detection unit that detects a motion vector from a predetermined detection area in the shooting screen based on the shot image. The motion vector data detected by the motion vector detection unit 114 is supplied to a subject vector selection unit 115. The subject vector selection unit 115 selects (determines) a subject vector. The integrator 116 integrates the vector of the subject to obtain angle information. The multiplier 117 multiplies the output of the integrator 116 by a gain K and supplies the result to the adder 106.

図2は、被写体ベクトル選択部の構成例を説明する図である。
被写体ベクトル選択部115は、度数分布処理部201、被写体ベクトル重み付け処理部202、被写体ベクトル各速度換算部203とを備える。度数分布処理部201は、動きベクトル検出部114の出力である撮影画面内のベクトル情報と、角速度検出部102の出力である角速度情報とに基づいて、撮影画面内で検出された全ベクトルのうち、被写体のベクトルを選択する。被写体ベクトル角速度換算部203は、選択された被写体のベクトルを、ピクセル単位から角速度単位へ換算する。積分器116は、角速度単位に換算されたベクトルを積分し角度情報とし、乗算部117に入力する。以下に、図3を用いて度数分布処理部201の動作処理について説明する。
FIG. 2 is a diagram illustrating a configuration example of a subject vector selection unit.
The subject vector selection unit 115 includes a frequency distribution processing unit 201, a subject vector weighting processing unit 202, and a subject vector speed conversion unit 203. The frequency distribution processing unit 201 performs processing based on vector information in the shooting screen output from the motion vector detection unit 114 and angular velocity information output from the angular speed detection unit 102, among all vectors detected in the shooting screen. , Select the vector of the subject. The subject vector angular velocity conversion unit 203 converts the vector of the selected subject from a pixel unit to an angular velocity unit. The integrator 116 integrates the vector converted into the unit of angular velocity and outputs the result as angle information to the multiplication unit 117. Hereinafter, the operation processing of the frequency distribution processing unit 201 will be described with reference to FIG.

図3は、1フレーム毎に算出されるベクトルの度数分布を示す図である。
動きベクトル検出部114が検出した動きベクトル自体では、どのベクトルが被写体、背景を示すかを区別できない。度数分布処理部201は、角速度検出部102の出力値を用いて、被写体のベクトルを選択する。例えば、カメラを三脚に固定して移動する被写体を撮影する場合、角速度検出部102の出力値は、約0dps相当になる。また、画面内において、動体は被写体のみであり、背景部分は、角速度検出部102の出力値とほぼ同等の値になる。したがって、度数分布処理部201は、一定の周期毎に算出される角速度検出部102の出力値を、度数分布においてベクトルと比較できるようにピクセル単位に換算する。
FIG. 3 is a diagram showing a frequency distribution of a vector calculated for each frame.
The motion vector itself detected by the motion vector detection unit 114 cannot distinguish which vector indicates the subject or the background. The frequency distribution processing unit 201 selects a subject vector using the output value of the angular velocity detection unit 102. For example, when photographing a moving subject with the camera fixed on a tripod, the output value of the angular velocity detection unit 102 is equivalent to about 0 dps. In the screen, the moving object is only the subject, and the background portion has a value substantially equal to the output value of the angular velocity detection unit 102. Therefore, the frequency distribution processing unit 201 converts the output value of the angular velocity detection unit 102 calculated at regular intervals into a pixel unit so that it can be compared with a vector in the frequency distribution.

度数分布処理部201は、動きベクトル検出部114の出力と、角速度検出部102の出力値とを度数分布で比較する。これにより、度数分布処理部201は、被写体と背景とを区別する。図3に示す度数分布に示す例では、度数分布処理部201は、角速度検出部102の出力値303付近のベクトル群302を、背景ベクトル群とする。この例では、カメラを一定方向に振っていると想定すると、度数分布処理部201は、出力値303から離れたベクトル群301を、被写体ベクトル群として抽出する。すなわち、度数分布処理部201は、動きベクトルと振れ検出信号とに基づいて得られるベクトルの度数分布に基づき、振れ検出信号の出力値の近傍のベクトルを背景のベクトルとし、背景のベクトル以外のベクトルを被写体のベクトルとして決定する。   The frequency distribution processing unit 201 compares the output of the motion vector detection unit 114 and the output value of the angular velocity detection unit 102 with a frequency distribution. Thereby, the frequency distribution processing unit 201 distinguishes the subject from the background. In the example illustrated in the frequency distribution illustrated in FIG. 3, the frequency distribution processing unit 201 sets the vector group 302 around the output value 303 of the angular velocity detection unit 102 as a background vector group. In this example, assuming that the camera is swung in a certain direction, the frequency distribution processing unit 201 extracts a vector group 301 apart from the output value 303 as a subject vector group. That is, based on the frequency distribution of the vector obtained based on the motion vector and the shake detection signal, the frequency distribution processing unit 201 sets a vector near the output value of the shake detection signal as a background vector and a vector other than the background vector. Is determined as the vector of the subject.

被写体ベクトル重み付け処理部202は、度数分布処理部201で抽出された被写体ベクトル群に対して重み付けを行う。被写体ベクトル重み付け処理部202は、フォーカス情報入力部120から入力されるフォーカス情報を用いて、被写体ベクトル群に対して重み付けを行う。フォーカス情報は、画面内のAF枠の位置情報つまり焦点検出領域の位置情報を含んでいる。   The subject vector weighting processing unit 202 weights the subject vector group extracted by the frequency distribution processing unit 201. The subject vector weighting processing unit 202 weights the subject vector group using the focus information input from the focus information input unit 120. The focus information includes the position information of the AF frame in the screen, that is, the position information of the focus detection area.

撮影者は、AF枠に被写体の止めたい部分を合せる。したがって、被写体ベクトル重み付け処理部202は、AF枠周辺の検出ブロックから検出されるベクトルに対して重み付けを行うことで信頼度を向上させる。被写体ベクトル重み付け処理部202は、重み付けの結果を用いて、被写体ベクトル群から最終的に出力する被写体のベクトルを決定する。被写体ベクトル重み付け処理部202が出力した被写体のベクトルは、被写体ベクトル角速度換算203でピクセル単位から角速度単位へ換算される。積分器116が、換算されたベクトルを積分し、角度情報として乗算部117に入力する。乗算部117が、積分器116の出力にゲインKを乗算して、加算器106に供給する。   The photographer adjusts a portion of the subject to be stopped to the AF frame. Therefore, the subject vector weighting processing unit 202 improves the reliability by weighting the vectors detected from the detection blocks around the AF frame. The subject vector weighting processing unit 202 determines the finally output subject vector from the subject vector group using the result of the weighting. The subject vector output by the subject vector weighting processing unit 202 is converted from a pixel unit to an angular velocity unit by a subject vector angular velocity conversion 203. The integrator 116 integrates the converted vector and inputs the integrated vector to the multiplier 117 as angle information. The multiplier 117 multiplies the output of the integrator 116 by the gain K and supplies the result to the adder 106.

図4は、検出ブロックの配置の例について説明する図である。
本実施例では、検出ブロックの配置を手振れ用と流し撮り用とで変えている。手振れによる像ブレの補正用に動きベクトルを使用する場合は、画面全体の振れを検出したいので、図4(A)のように、検出ブロックを画面全体に均等に配置する。一方、流し撮り時に振れ補正系を駆動して被写体が画面内の所定の位置に来るように制御することで、流し撮りをサポートする場合には、画面全体の動きベクトルではなく被写体部分のみのベクトルが必要である。したがって、この場合には、図4(B)に示すように、画面中央付近に検出ブロックを密集させて配置する。
FIG. 4 is a diagram illustrating an example of the arrangement of the detection blocks.
In the present embodiment, the arrangement of the detection blocks is changed for camera shake and panning. When a motion vector is used for correcting image blur due to camera shake, it is desired to detect a shake of the entire screen. Therefore, as shown in FIG. 4A, the detection blocks are arranged uniformly over the entire screen. On the other hand, when panning is supported by controlling the subject so that the subject comes to a predetermined position in the screen by driving the shake correction system at the time of panning, the motion vector of the subject only is used instead of the motion vector of the entire screen. is necessary. Therefore, in this case, as shown in FIG. 4B, detection blocks are densely arranged near the center of the screen.

流し撮りでは、撮影者が大きくパンニングをしており(例えば40dps相当)、被写体の移動量とカメラの振り量の差分を被写体の動き量としてベクトル検出するので、像ブレ補正時よりも大きな動き量を検出する必要がある。したがって、検出ブロックのサイズを小さくして、動きベクトル検出部の検出レンジを広くできるようにする。さらに、検出ブロックは、被写体の止めたい個所に集中して配置する方が好ましい。しかし、画面中心付近に集中して検出ブロックを配置する場合、例えば被写体が画面端にいる場合にレリーズボタンを押下すると、動きベクトルの検出領域402に収まっていないので被写体のベクトルを検出できない。本実施例の像ブレ補正装置は、被写体のベクトルの検出結果に応じて、被写体が動きベクトルの検出領域に収まるように振れ補正系を駆動制御する。   In panning, the photographer pans greatly (for example, equivalent to 40 dps), and the difference between the amount of movement of the subject and the amount of camera shake is vector detected as the amount of movement of the subject. Need to be detected. Therefore, the size of the detection block is reduced, and the detection range of the motion vector detection unit can be widened. Further, it is preferable that the detection blocks are arranged in a concentrated manner at a position of the subject to be stopped. However, when the detection blocks are arranged near the center of the screen, for example, when the release button is pressed while the subject is at the edge of the screen, the subject vector cannot be detected because the subject is not within the motion vector detection area 402. The image blur correction apparatus according to the present embodiment drives and controls the shake correction system according to the detection result of the vector of the subject so that the subject falls within the detection area of the motion vector.

図5は、デジタルカメラによる動きベクトルの検出結果に応じた動作処理を説明するフローチャートである。
本実施形態において、被写体ベクトル選択部115は、被写体のベクトルの数が閾値未満である場合に、被写体が検出領域に収まっていないと判定し、この被写体が検出領域に収まるように振れ補正系を駆動する。まず、ステップS501において、μCOM101が、防振SWがオンであるかを判断する。防振SWのオンは、カメラの手振れ補正設定が有効になっていることを示す。防振SWがオンでない場合は、処理を終了する。防振SWがオンである場合は、処理がステップS502に進む。
FIG. 5 is a flowchart illustrating an operation process according to a result of detection of a motion vector by the digital camera.
In the present embodiment, when the number of subject vectors is less than the threshold, the subject vector selection unit 115 determines that the subject is not included in the detection area, and performs a shake correction system so that the subject is included in the detection area. Drive. First, in step S501, the μCOM 101 determines whether the anti-shake SW is on. Turning on the image stabilization switch indicates that the camera shake correction setting of the camera is enabled. If the image stabilization switch is not on, the process ends. If the image stabilization switch is on, the process proceeds to step S502.

ステップS502において、動きベクトル検出部114が、割込み周期毎に撮影画面全体の動きベクトルを検出する。続いて、角速度検出部102が、割込み周期毎にカメラに加わる角度振れを検出する。   In step S502, the motion vector detection unit 114 detects a motion vector of the entire shooting screen at each interruption cycle. Subsequently, the angular velocity detection unit 102 detects an angular shake applied to the camera at each interruption cycle.

次に、被写体ベクトル選択部115が、割込み周期毎に、ステップS502で検出された動きベクトルとステップS502で検出された角度振れの値に基づいて、ベクトルの度数分布を作成する。そして、被写体ベクトル選択部115が、ベクトルの度数分布に基づいて、被写体のベクトルを抽出する。   Next, the subject vector selection unit 115 creates a frequency distribution of the vector for each interruption cycle based on the motion vector detected in step S502 and the value of the angular shake detected in step S502. Then, the subject vector selection unit 115 extracts a subject vector based on the frequency distribution of the vector.

次に、ステップS505において、被写体ベクトル選択部115が、抽出した被写体のベクトルの数が、予め設定された閾値1以上であるかを判断する。被写体のベクトルの数が閾値1以上であることは、被写体が動きベクトルの検出領域に所定の割合以上(例えば90%以上)入っていることを示す。したがって、被写体のベクトルの数が閾値1以上である場合は、被写体ベクトル選択部115は、被写体が検出領域に収まっており、検出ブロックに対して被写体のベクトルが十分検出できていると判断し、ベクトル検出のために振れ補正系を駆動させない。被写体のベクトルの数が閾値1未満である場合は、処理がステップS506に進む。   Next, in step S505, the subject vector selection unit 115 determines whether the number of extracted subject vectors is equal to or greater than a preset threshold value of one. The fact that the number of subject vectors is equal to or greater than the threshold value 1 indicates that the subject is included in the motion vector detection region at a predetermined ratio or more (for example, 90% or more). Therefore, when the number of subject vectors is equal to or greater than the threshold value 1, the subject vector selection unit 115 determines that the subject is within the detection area and the subject vector has been sufficiently detected with respect to the detection block. Do not drive the shake correction system for vector detection. If the number of vectors of the subject is less than the threshold value 1, the process proceeds to step S506.

ステップS506において、被写体ベクトル選択部115が、被写体のベクトルの数が、予め設定された閾値2以上であるかを判断する。閾値2は、閾値1より小さい数に設定されている。被写体のベクトルの数が閾値2以上であることは、被写体が動きベクトルの検出領域に所定の割合以上(例えば10%以上)入っていることを示す。被写体のベクトルの数が閾値2以上である場合は、処理がステップS508に進む。被写体のベクトルの数が閾値2未満である場合は、被写体が、動きベクトルの検出領域に収まっていない可能性がある。したがって、この場合は、処理がステップS507に進む。   In step S506, the subject vector selection unit 115 determines whether the number of subject vectors is equal to or greater than a preset threshold value of two. The threshold 2 is set to a number smaller than the threshold 1. The fact that the number of vectors of the subject is equal to or greater than the threshold value 2 indicates that the subject is included in the motion vector detection area by a predetermined ratio or more (for example, 10% or more). If the number of vectors of the subject is equal to or larger than the threshold value 2, the process proceeds to step S508. If the number of subject vectors is less than the threshold value 2, the subject may not be within the motion vector detection area. Therefore, in this case, the process proceeds to step S507.

本実施形態において、被写体が動きベクトルの検出領域に収まっていない場合には、μCOM101は、被写体が動きベクトルの検出領域に収まるように振れ補正系を駆動する。しかし、振れ補正系が光学中心付近から離れて駆動端付近にいる場合は、動きベクトル検出のための駆動量を確保できない場合がある。したがって、ステップS507において、μCOM101が、振れ補正系の現在の位置を検出する。   In the present embodiment, when the subject does not fall within the motion vector detection region, the μCOM 101 drives the shake correction system so that the subject falls within the motion vector detection region. However, when the shake correction system is located near the drive end away from the vicinity of the optical center, a drive amount for detecting a motion vector may not be secured. Therefore, in step S507, the μCOM 101 detects the current position of the shake correction system.

ステップS508において、被写体ベクトル選択部115が、被写体のベクトルの数が予め設定された閾値3以上であり、かつ被写体のベクトルのエラー判定がないかを判断する。閾値3は、閾値2より大きく閾値1より小さい値に設定される。被写体のベクトルの数が閾値3以上であることは、被写体が検出ブロックに所定の割合以上(例えば50%以上)入っていることを示す。被写体のベクトルの数が閾値3以上であり、かつ被写体のベクトルのエラー判定がない場合は、振れ補正系を駆動させずに処理を終了する。被写体のベクトルの数が閾値3未満である場合や、被写体のベクトルのエラー判定がある場合は、処理がステップS507に進む。   In step S508, the subject vector selection unit 115 determines whether the number of subject vectors is equal to or greater than the preset threshold value 3 and whether there is any error determination of the subject vector. The threshold value 3 is set to a value larger than the threshold value 2 and smaller than the threshold value 1. The fact that the number of vectors of the object is equal to or greater than the threshold value 3 indicates that the object is included in the detection block by a predetermined ratio or more (for example, 50% or more). If the number of subject vectors is greater than or equal to the threshold value 3 and there is no error determination of the subject vectors, the process ends without driving the shake correction system. When the number of subject vectors is less than the threshold value 3 or when there is an error determination of the subject vector, the process proceeds to step S507.

ステップS509において、μCOM101が、ステップS507で検出した振れ補正系の現在の位置が予め設定した閾値未満であるかを判断する。振れ補正系の現在の位置が予め設定した閾値未満である場合、μCOM101は、振れ補正系を駆動しても駆動端まで余裕があると判断する。そして、処理がステップS510に進む。振れ補正系の現在の位置が予め設定した閾値以上である場合、μCOM101は、振れ補正系を駆動すると駆動端まで余裕がないと判断する。そして、この場合には、振れ補正系を駆動させる処理以外の処理で被写体のベクトルを検出できるようにする必要がある。したがって、処理がステップS511に進む。   In step S509, the μCOM 101 determines whether the current position of the shake correction system detected in step S507 is less than a preset threshold. If the current position of the shake correction system is less than the preset threshold, the μCOM 101 determines that there is room to the drive end even if the shake correction system is driven. Then, the process proceeds to step S510. If the current position of the shake correction system is equal to or greater than a preset threshold, the μCOM 101 determines that there is no room to the drive end when driving the shake correction system. In this case, it is necessary to detect the vector of the subject by a process other than the process of driving the shake correction system. Therefore, the process proceeds to step S511.

ステップS510において、μCOM101が、被写体のベクトル数が閾値2以上となるような振れ補正系の駆動量を算出する。μCOM101は、振れ補正系の位置に応じてゲインK(図1)を可変させる。例えば、光学中心位置付近にいる場合は、駆動端まで余裕があるので、μCOM101は、1倍程度のゲインKを設定する。そして、ステップS512において、μCOM101が、ステップS510で算出した駆動量に基づいて振れ補正系を駆動する。μCOM101は、過去のフレーム毎に検出しておいた動きベクトルの情報から被写体の移動している向きを決定し、決定した向きの逆方向へ振れ補正系を駆動させる。これにより、被写体を動きベクトルの検出領域の中心付近に収め、被写体のベクトル数を検出することができるようになる。   In step S510, the μCOM 101 calculates a drive amount of the shake correction system such that the number of vectors of the subject is equal to or greater than the threshold value 2. The μCOM 101 varies the gain K (FIG. 1) according to the position of the shake correction system. For example, in the case of being near the optical center position, the μCOM 101 sets a gain K of about 1 since there is a margin to the drive end. Then, in step S512, the μCOM 101 drives the shake correction system based on the drive amount calculated in step S510. The μCOM 101 determines the moving direction of the subject from the information of the motion vector detected for each past frame, and drives the shake correction system in a direction opposite to the determined direction. As a result, the subject can be placed near the center of the motion vector detection area, and the number of vectors of the subject can be detected.

ステップS511において、μCOM101は、被写体が動きベクトルの検出領域に収まるように検出領域を移動する。具体的には、μCOM101は、検出ブロックを1フレーム毎に移動させることによって、被写体を動きベクトルの検出領域に収める。以下に、検出ブロックの移動について説明する。   In step S511, the μCOM 101 moves the detection area so that the subject falls within the motion vector detection area. Specifically, the μCOM 101 moves the detection block for each frame so that the subject is included in the motion vector detection area. Hereinafter, the movement of the detection block will be described.

図6は、検出ブロックの移動について説明する図である。
図6(A)は、検出ブロックの移動の一例を示す。図6(A)に示す例では、μCOM101は、検出ブロック601を有する動きベクトルのテンプレートを画面内で1フレーム毎に平行移動させている。すなわち、μCOM101は、AF枠602の位置に動きベクトルの検出領域の中心が配置されるように検出領域を移動させる。
FIG. 6 is a diagram illustrating the movement of the detection block.
FIG. 6A shows an example of the movement of the detection block. In the example shown in FIG. 6A, the μCOM 101 translates the template of the motion vector having the detection block 601 in the screen for each frame. In other words, the μCOM 101 moves the detection area such that the center of the motion vector detection area is located at the position of the AF frame 602.

図6(B)は、検出ブロックの移動の他の例を示す。図6(B)に示す例では、μCOM101は、被写体認識情報を用いて、被写体の種類に応じて検出ブロックの配置数とサイズを変更した上で、変更後の検出ブロック603を、被写体が動きベクトルの検出領域に入るように移動する。例えば、人物の全身を画面内に収めて流し撮りする場合は、μCOM101は、検出ブロックのサイズを縦長とする。   FIG. 6B shows another example of the movement of the detection block. In the example illustrated in FIG. 6B, the μCOM 101 changes the number of detection blocks and the size of the detection blocks according to the type of the subject using the subject recognition information, and moves the detection block 603 after the change so that the subject moves. Move to enter the vector detection area. For example, when the whole body of a person is panned and captured in a screen, the μCOM 101 sets the size of the detection block to be vertically long.

以上説明したように、本実施例の像ブレ補正装置によれば、被写体が動きベクトルの検出領域に入らず被写体のベクトルが検出できない場合でも、振れ補正系を駆動して被写体を動きベクトルの検出領域内へ収めることで被写体のベクトルを検出することができる。   As described above, according to the image blur correction apparatus of the present embodiment, even when the subject does not enter the detection area of the motion vector and the vector of the subject cannot be detected, the shake correction system is driven to detect the motion vector. The vector of the subject can be detected by being contained in the area.

101 μCOM
115 被写体ベクトル選択部
101 μCOM
115 Subject Vector Selection Unit

Claims (11)

振れ検出信号に基づいて、像ブレを補正する補正手段と、
撮影画面内の所定の検出領域から動きベクトルを検出する検出手段と、
前記検出された動きベクトルと、前記振れ検出信号とに基づいて、被写体が前記検出領域に収まっているかを判定し、前記被写体が前記検出領域に収まっていない場合に、前記被写体が前記検出領域に収まるように前記補正手段を制御する制御手段とを備える
ことを特徴とする像ブレ補正装置。
Correction means for correcting image blur based on a shake detection signal;
Detecting means for detecting a motion vector from a predetermined detection area in the shooting screen,
Based on the detected motion vector and the shake detection signal, it is determined whether the subject is in the detection area.If the subject is not in the detection area, the subject is in the detection area. Control means for controlling the correction means so as to be accommodated therein.
前記制御手段は、
前記検出された動きベクトルと、前記振れ検出信号とに基づいて、前記検出された動きベクトルから前記被写体のベクトルを選択し、
前記被写体のベクトルの数に基づいて、前記被写体が前記検出領域に収まっているかを判定する
ことを特徴とする請求項1に記載の像ブレ補正装置。
The control means includes:
Based on the detected motion vector and the shake detection signal, select a vector of the subject from the detected motion vector,
The image blur correction device according to claim 1, wherein it is determined whether the subject is within the detection area based on the number of vectors of the subject.
前記制御手段は、
前記被写体のベクトルの数が閾値未満である場合に、前記被写体が前記検出領域に収まっていないと判定する
ことを特徴とする請求項2に記載の像ブレ補正装置。
The control means includes:
3. The image blur correction device according to claim 2, wherein when the number of vectors of the subject is less than a threshold, the subject is determined to be out of the detection area. 4.
前記制御手段は、
前記検出された動きベクトルと前記振れ検出信号とに基づいて得られるベクトルの度数分布を用いて、前記振れ検出信号の出力値に基づき背景のベクトルを決定し、前記背景のベクトル以外のベクトルを被写体のベクトルとして決定する
ことを特徴とする請求項2または請求項3に記載の像ブレ補正装置。
The control means includes:
Using a frequency distribution of a vector obtained based on the detected motion vector and the shake detection signal, a background vector is determined based on an output value of the shake detection signal, and a vector other than the background vector is set as a subject. The image blur correction device according to claim 2, wherein the vector is determined as a vector.
前記制御手段は、前記検出領域の領域のうち、焦点検出領域の周辺の領域から検出される動きベクトルに対して重み付けを行い、前記重み付けの結果を用いて前記被写体のベクトルを決定する
ことを特徴とする請求項2乃至4のいずれか1項に記載の像ブレ補正装置。
The control unit weights a motion vector detected from a region around a focus detection region among the detection regions, and determines a vector of the subject using the result of the weighting. The image blur correction device according to any one of claims 2 to 4, wherein
前記制御手段は、
前記被写体が前記検出領域に収まっていないと判定した場合に、前記補正手段の現在の位置が閾値未満であるかを判定し、
前記補正手段の現在の位置が閾値未満である場合に、前記被写体が前記検出領域に収まるように前記補正手段を駆動する
ことを特徴とする請求項1乃至5のいずれか1項に記載の像ブレ補正装置。
The control means includes:
If it is determined that the subject is not within the detection area, determine whether the current position of the correction means is less than a threshold,
The image according to any one of claims 1 to 5, wherein when the current position of the correction unit is less than a threshold, the correction unit is driven so that the subject is included in the detection area. Image stabilizer.
前記制御手段は、
前記補正手段の位置が閾値以上である場合に、前記被写体が前記検出領域に収まるように前記検出領域を移動する
ことを特徴とする請求項6に記載の像ブレ補正装置。
The control means includes:
The image blur correction device according to claim 6, wherein when the position of the correction unit is equal to or more than a threshold, the object moves in the detection area so that the subject falls within the detection area.
前記制御手段は、
前記補正手段の位置が閾値以上である場合に、前記検出領域の中心が焦点検出領域に配置されるように前記検出領域を移動する
ことを特徴とする請求項7に記載の像ブレ補正装置。
The control means includes:
The image blur correction device according to claim 7, wherein when the position of the correction unit is equal to or larger than a threshold, the detection area is moved such that the center of the detection area is located in a focus detection area.
前記検出手段は、前記検出領域に対応する複数の検出ブロックの動きベクトルを検出し、
前記制御手段は、前記補正手段の位置が閾値以上である場合に、前記複数の検出ブロックを移動するともに、前記被写体の種類に応じて前記検出ブロックの配置数とサイズを変更する
ことを特徴とする請求項7または請求項8に記載の像ブレ補正装置。
The detection means detects a motion vector of a plurality of detection blocks corresponding to the detection area,
The control unit, when the position of the correction unit is equal to or larger than a threshold, moves the plurality of detection blocks and changes the arrangement number and size of the detection blocks according to the type of the subject. The image blur correction device according to claim 7 or 8, wherein
請求項1乃至9のいずれか1項に記載の像ブレ補正装置を有する撮像装置。 An imaging device comprising the image blur correction device according to claim 1. 振れ検出信号に基づいて、像ブレを補正する補正手段を備える像ブレ補正装置の制御方法であって、
撮影画面内の所定の検出領域から動きベクトルを検出する検出工程と、
前記検出された動きベクトルと、前記振れ検出信号とに基づいて、被写体が前記検出領域に収まっているかを判定し、前記被写体が前記検出領域に収まっていない場合に、前記被写体が前記検出領域に収まるように前記補正手段を駆動する制御工程とを有する
ことを特徴とする制御方法。
A control method of an image blur correction device including a correction unit that corrects image blur based on a shake detection signal,
A detection step of detecting a motion vector from a predetermined detection area in the shooting screen,
Based on the detected motion vector and the shake detection signal, it is determined whether the subject is in the detection area.If the subject is not in the detection area, the subject is in the detection area. A control step of driving the correction means so that the correction means can be settled.
JP2015238193A 2015-12-07 2015-12-07 Image blur correction device, imaging device, control method, and program Expired - Fee Related JP6659132B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015238193A JP6659132B2 (en) 2015-12-07 2015-12-07 Image blur correction device, imaging device, control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015238193A JP6659132B2 (en) 2015-12-07 2015-12-07 Image blur correction device, imaging device, control method, and program

Publications (3)

Publication Number Publication Date
JP2017106947A JP2017106947A (en) 2017-06-15
JP2017106947A5 JP2017106947A5 (en) 2019-01-10
JP6659132B2 true JP6659132B2 (en) 2020-03-04

Family

ID=59060617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015238193A Expired - Fee Related JP6659132B2 (en) 2015-12-07 2015-12-07 Image blur correction device, imaging device, control method, and program

Country Status (1)

Country Link
JP (1) JP6659132B2 (en)

Also Published As

Publication number Publication date
JP2017106947A (en) 2017-06-15

Similar Documents

Publication Publication Date Title
JP6661493B2 (en) Image blur control device, imaging device, and control method
JP5501119B2 (en) Imaging apparatus and control method thereof
US9253400B2 (en) Image capture apparatus and control method thereof
JP4245185B2 (en) Imaging device
JP6302341B2 (en) Imaging apparatus, control method therefor, program, and storage medium
CN108337428B (en) Image stabilization apparatus, control method thereof, image capturing apparatus, and storage medium
US10694109B2 (en) Imaging apparatus
JP6108940B2 (en) Image blur correction apparatus, control method therefor, program, and storage medium
JP6674264B2 (en) Image blur detection apparatus and method, and imaging apparatus
US10250808B2 (en) Imaging apparatus and control method therefor
US10230897B2 (en) Control apparatus, image capturing apparatus, lens apparatus, control method, and non-transitory computer-readable storage medium
JP2016024235A (en) Imaging apparatus and control method thereof
US9811891B2 (en) Image shake correction device, optical apparatus, imaging apparatus, and control method
JP2017069706A (en) Imaging apparatus and control method of imaging apparatus
US10089745B2 (en) Image processing apparatus that enables easy tracking of a subject if the subject moves to outside a field angle and control method for same
JP5426952B2 (en) Image shake correction apparatus, control method therefor, optical apparatus, and imaging apparatus
JP6659132B2 (en) Image blur correction device, imaging device, control method, and program
US11265478B2 (en) Tracking apparatus and control method thereof, image capturing apparatus, and storage medium
JP6738151B2 (en) Imaging device and control method thereof
JP6611585B2 (en) Zoom control device, zoom control method, and imaging device
JP6296824B2 (en) Imaging apparatus and control method thereof
JP2015195497A (en) Imaging apparatus and control method and control program of the same
JP6873841B2 (en) Image blur correction device, imaging device, imaging system, control method, program and storage medium
JP2021078053A (en) Imaging control device, imaging control method, imaging device, and program
JP2015166771A (en) Imaging apparatus and method for controlling the same

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181119

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181119

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190830

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191001

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191120

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200204

R151 Written notification of patent or utility model registration

Ref document number: 6659132

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees