TWI573456B - Optical image stabilization device - Google Patents
Optical image stabilization device Download PDFInfo
- Publication number
- TWI573456B TWI573456B TW104130506A TW104130506A TWI573456B TW I573456 B TWI573456 B TW I573456B TW 104130506 A TW104130506 A TW 104130506A TW 104130506 A TW104130506 A TW 104130506A TW I573456 B TWI573456 B TW I573456B
- Authority
- TW
- Taiwan
- Prior art keywords
- driving
- circuit
- signal
- adder
- stabilization device
- Prior art date
Links
Landscapes
- Adjustment Of Camera Lenses (AREA)
Description
本發明是關於光學影像,尤其是關於光學影像穩定裝置。This invention relates to optical images, and more particularly to optical image stabilization devices.
除了數位相機之外,現今愈來愈多手持電子裝置也內建相機功能,例如手機、平板電腦(tablet)等。然而手機及平板電腦的相機模組的進光量及感光元件的尺寸都不如數位相機,所以必須搭配更佳的防手震機制來得到更好的照片及/或影片品質。而隨著手機及平板電腦的普及以及市場競爭日趨激烈,需仰賴高效能及低成本的光學防手震(optical image stabilization, OIS)解決方案來為手機及平板電腦等電子裝置帶來更多的競爭優勢。In addition to digital cameras, more and more handheld electronic devices now have built-in camera functions, such as mobile phones, tablets, and the like. However, the camera module of mobile phones and tablets does not have the same amount of light as the digital camera, so it is necessary to use a better anti-shake mechanism to get better photos and/or video quality. With the popularity of mobile phones and tablets and the increasingly fierce market competition, it is necessary to rely on high-performance and low-cost optical image stabilization (OIS) solutions to bring more electronic devices such as mobile phones and tablets. Competitive advantages.
本發明之一目的在於提供一種光學影像穩定裝置及基於該光學影像穩定裝置之鏡頭調整方法,係利用易於實作之電路來減少拍攝時之震動影響,以提高影像品質。An object of the present invention is to provide an optical image stabilization device and a lens adjustment method based on the optical image stabilization device, which utilizes an easy-to-implement circuit to reduce the influence of vibration during shooting to improve image quality.
本發明揭露一種光學影像穩定裝置,應用於一相機模組,該相機模組之一鏡頭由一馬達驅動,該相機模組包含用於感應該馬達對該鏡頭之一驅動量之一驅動感應器,以及包含偵測該相機模組之震動程度之一震動感應器,該光學影像穩定裝置包含:一濾波器,利用一第一加法器計算該驅動感應器之一驅動感應訊號於時間上的變化量,以濾波該驅動感應訊號;一映射電路,用來儲存該驅動感應訊號對應一第一角度偏移量之一映射表;一轉換單元,耦接該映射電路,用來依據該映射表將該驅動感應訊號轉換為該第一角度偏移量;一積分器,用來對該震動感應器之一震動感應訊號積分,以產生一第二角度偏移量;一第二加法器,耦接該積分器及該轉換單元,用來計算該第一角度偏移量及該第二角度偏移量之一差值;以及一馬達驅動電路,耦接該第二加法器,用來依據對應該差值之一控制變數控制該馬達對該鏡頭之該驅動量;其中該第一加法器及該第二加法器係共用一加法電路。The invention discloses an optical image stabilization device, which is applied to a camera module. One lens of the camera module is driven by a motor, and the camera module includes a driving sensor for sensing the driving force of the motor. And a vibration sensor including a vibration level detecting the camera module, the optical image stabilization device comprising: a filter for calculating a time change of driving the sensing signal by one of the driving inductors by using a first adder The mapping circuit is configured to store a mapping table corresponding to a first angular offset of the driving sensing signal; a conversion unit coupled to the mapping circuit for using the mapping table according to the mapping table The driving induction signal is converted into the first angular offset; an integrator is used to integrate the vibration sensing signal of one of the vibration sensors to generate a second angular offset; and a second adder coupled The integrator and the conversion unit are configured to calculate a difference between the first angular offset and the second angular offset; and a motor driving circuit coupled to the second adder One basis for the difference to be used to control the variable control of the motor driving amount of the lens; wherein the first adder and the second adder circuit adding a common line.
本發明之光學影像穩定裝置及基於該光學影像穩定裝置之鏡頭調整方法以易於實作之電路來達到光學影像穩定之效果,並藉由對各元件的時程控制來達到共用電路的效果,以節省電路成本。The optical image stabilization device of the present invention and the lens adjustment method based on the optical image stabilization device achieve the effect of optical image stabilization by an easy-to-implement circuit, and achieve the effect of the shared circuit by controlling the time of each component. Save circuit costs.
有關本發明的特徵、實作與功效,茲配合圖式作實施例詳細說明如下。The features, implementations, and effects of the present invention are described in detail below with reference to the drawings.
以下說明內容之技術用語係參照本技術領域之習慣用語,如本說明書對部分用語有加以說明或定義,該部分用語之解釋係以本說明書之說明或定義為準。The technical terms of the following descriptions refer to the idioms in the technical field, and some of the terms are explained or defined in the specification, and the explanation of the terms is based on the description or definition of the specification.
本發明之揭露內容包含光學影像穩定裝置及基於該光學影像穩定裝置之鏡頭調整方法。由於本發明之光學影像穩定裝置所包含之部分元件單獨而言可能為已知元件,因此在不影響該裝置發明之充分揭露及可實施性的前提下,以下說明對於已知元件的細節將予以節略。此外,本發明之基於該光學影像穩定裝置之鏡頭調整方法可以是軟體及/或韌體之形式,在不影響該方法發明之充分揭露及可實施性的前提下,以下方法發明之說明將著重於步驟內容而非硬體。The disclosure of the present invention includes an optical image stabilization device and a lens adjustment method based on the optical image stabilization device. Since some of the components included in the optical image stabilization device of the present invention may be known components alone, the following description will be given for details of known components without affecting the full disclosure and feasibility of the device invention. Abridged. In addition, the lens adjustment method based on the optical image stabilization device of the present invention may be in the form of a soft body and/or a firmware, and the description of the following method invention will be emphasized without affecting the full disclosure and feasibility of the method invention. In the step content instead of hardware.
圖1係本發明光學防手震電路之一實施例的功能方塊圖。光學影像穩定裝置10(或稱為光學防手震電路)的功能之一在於依據震動感應器30所產生的震動感應訊號(反應相機模組的震動程度),來控制音圈馬達40相對應地調整鏡頭的位置,以補償因相機模組震動所造成的鏡頭偏移。震動感應器30可以例如是陀螺儀,其感測相機模組的震動而產生角速度訊號。積分器130對數位化(由ADC 120轉換)後的角速度訊號進行積分運算,得到對應相機模組震動程度的角度偏移量 gyro;另一方面,驅動感應器50(例如一霍爾感應器)感應音圈馬達40所產生的磁場變化(反應音圈馬達40對鏡頭的驅動量,亦即反應鏡頭的位移量)而產生驅動感應訊號S’,此驅動感應訊號S’經由ADC 190轉換為數位格式後(驅動感應訊號S),經由濾波器180濾除雜訊,再由轉換單元160參考映射電路170之一映射表轉換為對應鏡頭位移量的角度偏移量 hall。加法器135計算出角度偏移量 gyro及角度偏移量 hall的差值 ,比例積分微分(proportional integral and differential, PID)控制器140再依據此差值 控制馬達驅動電路150驅動音圈馬達40時的驅動訊號V的大小(例如電流大小),使音圈馬達40以漸進的方式將鏡頭移動至目標位置,以避免鏡頭在一次到位的大幅度移動中產生明顯的晃動(damping)。請注意,由於差值 或角度偏移量 gyro係依據震動感應器30的震動感應訊號而產生,所以可視為光學影像穩定裝置10中的震動補償訊號;再者,在某些情況下,如果鏡頭在移動的過程中所產生的晃動不明顯,則光學影像穩定裝置10可省略比例積分微分控制器140,在此情況下馬達驅動電路150直接耦接加法器135,並直接依據差值 來驅動音圈馬達40。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a functional block diagram of one embodiment of an optical anti-shake circuit of the present invention. One of the functions of the optical image stabilization device 10 (or optical anti-shake circuit) is to control the voice coil motor 40 according to the vibration sensing signal generated by the vibration sensor 30 (reaction to the vibration degree of the camera module). Adjust the position of the lens to compensate for lens shift caused by camera module vibration. The vibration sensor 30 can be, for example, a gyroscope that senses the vibration of the camera module to produce an angular velocity signal. The integrator 130 performs an integral operation on the angular velocity signal after the digitization (converted by the ADC 120) to obtain an angular offset corresponding to the degree of vibration of the camera module. Gyro ; on the other hand, the driving sensor 50 (for example, a Hall sensor) induces a change in the magnetic field generated by the voice coil motor 40 (reacting the amount of driving of the voice coil motor 40 to the lens, that is, the amount of displacement of the reaction lens) Driving the sensing signal S', the driving sensing signal S' is converted into a digital format by the ADC 190 (driving the sensing signal S), filtering the noise through the filter 180, and then converting the mapping table by the conversion unit 160 with reference to the mapping circuit 170 Angle offset corresponding to the lens displacement Hall . The adder 135 calculates the angular offset Gyro and angular offset Hall difference , a proportional integral and differential (PL) controller 140 is further based on the difference Controlling the magnitude (eg, current magnitude) of the drive signal V when the motor drive circuit 150 drives the voice coil motor 40, causing the voice coil motor 40 to move the lens to the target position in a progressive manner to avoid the lens moving in a large amount in one position. Produces significant damping. Please note that due to the difference Or angular offset The gyro is generated according to the vibration sensing signal of the vibration sensor 30, so it can be regarded as the vibration compensation signal in the optical image stabilization device 10; in addition, in some cases, if the lens is not swaying during the movement process, the sloshing is not obvious. The optical image stabilization device 10 can omit the proportional integral derivative controller 140. In this case, the motor drive circuit 150 is directly coupled to the adder 135 and directly depends on the difference. To drive the voice coil motor 40.
驅動感應器50容易受到溫度等操作環境的影響而使得驅動感應訊號S帶有較大的雜訊,濾波器180的目的之一即是濾除此類的雜訊。圖2為本發明的濾波器之一實施例的局部電路圖,此電路的目的在於濾除連續訊號中因雜訊所造成的訊號劇烈變動。三個延遲單元181、182及183各自將訊號延遲一個系統的時脈週期T,加法器184耦接三個延遲單元,計算訊號S[k-1]與訊號S[k-2]的差值 以及訊號S[k]與S[k-1]的差值 (k為整數,代表時間指標): (1) (2) 之後比較器185將 與 的絕對差值 與一臨界值做比較,如果 與 的絕對差值大於臨界值,則表示訊號S[k-1]的值與訊號S[k]的值及訊號S[k-2] 的值差距過大(亦即訊號S[k-1]可能為雜訊),此時比較器185輸出控制訊號,令多工器186選擇訊號S[k-2]輸出,以濾除雜訊訊號S[k-1];而如果 與 的絕對差值不大於臨界值,則比較器185輸出控制訊號,令多工器186選擇訊號S[k-1]輸出。因此,濾波器180對驅動感應器50經類比數位轉換後的連續三個訊號作比較,其中只需要用到加法器184作加減運算以及使用比較器185進行比較,而不需要用到乘法器等占用電路面積及運算耗時的電路,因此可以減少濾波器180的成本以及增加效率。 The driving sensor 50 is susceptible to an operating environment such as temperature, so that the driving sensing signal S has a large amount of noise, and one of the purposes of the filter 180 is to filter out such noise. 2 is a partial circuit diagram of an embodiment of a filter of the present invention, the purpose of which is to filter out drastic changes in signals caused by noise in continuous signals. The three delay units 181, 182, and 183 each delay the signal by a clock period T of one system, and the adder 184 is coupled to the three delay units to calculate the difference between the signal S[k-1] and the signal S[k-2]. And the difference between the signal S[k] and S[k-1] (k is an integer representing the time indicator): (1) (2) After the comparator 185 will versus Absolute difference Compare with a threshold if versus If the absolute difference is greater than the critical value, it means that the value of the signal S[k-1] is too far from the value of the signal S[k] and the value of the signal S[k-2] (ie, the signal S[k-1] may be For the noise, the comparator 185 outputs a control signal, so that the multiplexer 186 selects the signal S[k-2] output to filter out the noise signal S[k-1]; versus The absolute difference is not greater than the threshold, and the comparator 185 outputs a control signal to cause the multiplexer 186 to select the signal S[k-1] output. Therefore, the filter 180 compares the three consecutive signals after the analog-to-digital conversion of the driving inductor 50, wherein only the adder 184 is used for addition and subtraction and the comparator 185 is used for comparison, without using a multiplier or the like. Circuits occupying circuit area and computationally time-consuming, thus reducing the cost of the filter 180 and increasing efficiency.
驅動感應器50的驅動感應訊號S經濾波後成為濾波訊號S_F,此濾波訊號S_F再由轉換單元160參考映射電路170的映射表將其轉換為角度偏移量 hall。驅動感應器50的驅動感應訊號S與角度偏移量 hall的對應關係預先量測並儲存在映射電路170的映射表中,轉換單元160參考映射表並使用內插法及/或外插法,將驅動感應訊號S轉換為對應的角度偏移量 hall。舉例來說,轉換單元160先判斷濾波訊號S_F位於映射電路170的區間[S map, S map+1],其中S map及S map+1分別對應角度偏移量 map及 map+1,且此區間的斜率為ratio map;則角度偏移量 。 The driving induction signal S of the driving sensor 50 is filtered to become a filtering signal S_F, and the filtering signal S_F is converted into an angular offset by the conversion unit 160 by referring to the mapping table of the mapping circuit 170. Hall . Drive sensor signal S and angular offset of drive sensor 50 The correspondence of the hall is pre-measured and stored in the mapping table of the mapping circuit 170, and the conversion unit 160 refers to the mapping table and uses the interpolation method and/or the extrapolation method to convert the driving sensing signal S into a corresponding angular offset. Hall . For example, the converting unit 160 first determines that the filtered signal S_F is located in the interval [S map , S map+1 ] of the mapping circuit 170, wherein S map and S map +1 respectively correspond to the angular offset Map and Map+1 , and the slope of this interval is ratio map ; then the angular offset .
然而,有時驅動感應器50的輸出受溫度等環境因素的影響過大,而造成其驅動感應訊號S中有大範圍的不合理輸出值,此時濾波器180可以參考馬達驅動電路150的驅動訊號V所對應的角度偏移量,來濾除此大範圍的不合理輸出值。當光學影像穩定裝置10讀取驅動感應器50的驅動感應訊號S時,多工器165及175依據控制訊號Ctrl(由處理單元110發出)選取濾波訊號S_F及對應的映射表使轉換單元160據以轉換得到角度偏移量 hall,接著比例積分微分控制器140可依上述的機制控制馬達驅動電路150;另一方面,當馬達驅動電路150驅動音圈馬達40時,多工器165及175依據控制訊號Ctrl選取驅動訊號V及對應的映射表使轉換單元160據以轉換得到訊號v2h,此時濾波器180參考此訊號v2h來濾除訊號S之大範圍的不合理輸出值。也就是說光學影像穩定裝置10可以使用同一個轉換單元160來轉換驅動感應器50的驅動感應訊號S及馬達驅動電路150的驅動訊號V。 However, sometimes the output of the driving sensor 50 is excessively affected by environmental factors such as temperature, and a large range of unreasonable output values are generated in the driving sensing signal S. At this time, the filter 180 can refer to the driving signal of the motor driving circuit 150. The angular offset corresponding to V is used to filter out this wide range of unreasonable output values. When the optical image stabilization device 10 reads the driving sensing signal S of the driving sensor 50, the multiplexers 165 and 175 select the filtering signal S_F and the corresponding mapping table according to the control signal Ctrl (issued by the processing unit 110) to cause the conversion unit 160 to Get the angular offset by conversion Hall , then the proportional integral derivative controller 140 can control the motor driving circuit 150 according to the above mechanism; on the other hand, when the motor driving circuit 150 drives the voice coil motor 40, the multiplexers 165 and 175 select the driving signal V according to the control signal Ctrl. And the corresponding mapping table causes the converting unit 160 to convert the signal v2h, and the filter 180 refers to the signal v2h to filter out the unreasonable output value of the signal S. That is to say, the optical image stabilization device 10 can use the same conversion unit 160 to convert the driving induction signal S of the driving sensor 50 and the driving signal V of the motor driving circuit 150.
圖3為本發明的濾波器之一實施例的局部電路圖,此電路的目的在於濾除驅動感應器50的驅動感應訊號S中的大範圍的不合理的輸出值。訊號v2h[k]為驅動訊號V經轉換單元160轉換後的訊號。經過延遲的訊號S[K]與訊號v2h[k]同時輸入加法器188,加法器188計算得到其絕對差值為 。比較器189再將此絕對差值與預設值做比較,如果絕對差值大於預設值,代表此時的驅動感應訊號S出現不合理的輸出值,則濾波器180略過此段不合理的輸出;相反的,如果絕對差值不大於預設值,代表此時的驅動感應訊號S為合理的輸出值,則濾波器180可以進一步對驅動感應訊號S進行濾波(使用圖2所示的濾波電路)。 3 is a partial circuit diagram of an embodiment of a filter of the present invention, the purpose of which is to filter out a wide range of unreasonable output values in the drive sense signal S of the drive inductor 50. The signal v2h[k] is a signal after the drive signal V is converted by the conversion unit 160. The delayed signal S[K] and the signal v2h[k] are simultaneously input to the adder 188, and the adder 188 calculates the absolute difference as . The comparator 189 compares the absolute difference with the preset value. If the absolute difference is greater than the preset value, indicating that the drive sensing signal S at this time has an unreasonable output value, the filter 180 skips the section and is unreasonable. The output is reversed. If the absolute difference is not greater than the preset value, indicating that the drive sensing signal S at this time is a reasonable output value, the filter 180 can further filter the driving sensing signal S (using the Filter circuit).
比例積分微分控制器140的細部電路圖如圖4所示。誤差量e(即前述的角度偏移量的差值 )經過三個延遲單元141、142及143的延遲後,由乘法器145將延遲後的誤差量e乘上PID係數(儲存於暫存器147中),加法器146再將乘法器145的輸出與前一次的控制變數u[k-1]相加,最後可得當次的控制變數u[k]如下: (3) 馬達驅動電路150依據控制變數u調整其驅動訊號V的大小(即驅動力),其中PID係數k1、k2及k3與原始的PID係數(k p ,k i, k d)具有如下的轉換關係: (4) 上述的轉換關係可由原始的PID公式推導出來,PID最基本的原理公式表示如下: (5) 將方程式(5)轉換為離散時間模式後,可得: (6) 將方程式(6)調整如下: (7) 將方程式(4)的轉換關係套用至方程式(7)再整理後即可得方程式(3)。利用轉換後的PID係數k1、k2及k3做運算,使得本發明的比例積分微分控制器140能用圖4所示的簡單電路完成,可以免除複雜的積分與微分運算。 A detailed circuit diagram of the proportional-integral-derivative controller 140 is shown in FIG. Error amount e (ie the difference in the aforementioned angular offset) After the delay of the three delay units 141, 142, and 143, the delayed error amount e is multiplied by the PID coefficient (stored in the register 147) by the multiplier 145, and the adder 146 outputs the output of the multiplier 145. Adding to the previous control variable u[k-1], the last control variable u[k] is as follows: (3) The motor drive circuit 150 adjusts the magnitude of its drive signal V (ie, the driving force) according to the control variable u, wherein the PID coefficients k1, k2, and k3 and the original PID coefficients (k p , k i , k d ) have the following Conversion relationship: (4) The above conversion relationship can be derived from the original PID formula. The most basic principle formula of PID is expressed as follows: (5) After converting equation (5) to discrete time mode, you can get: (6) Adjust equation (6) as follows: (7) Applying the conversion relationship of equation (4) to equation (7) and rearranging, equation (3) can be obtained. The operation is performed by using the converted PID coefficients k1, k2, and k3, so that the proportional-integral-derivative controller 140 of the present invention can be completed by the simple circuit shown in FIG. 4, and complicated integral and differential operations can be eliminated.
綜上所述,本發明的光學影像穩定裝置10具有電路簡單的特點,並且透過適當的時序設計,加法器135、184、188以及146可以共用同一個加法電路,比較器185及189也可共用同一個比較電路。在其中一個實施例中,加法電路、比較電路以及乘法器145所使用的乘法電路可以是各為16位元的數位電路,即可完成光學影像穩定裝置10所需的功能,而且以圖2及圖3完成的濾波器180雖然使用簡單的電路及元件,但仍具有極佳的效果。因此本發明的光學影像穩定裝置10具有低成本及高效能的優點。In summary, the optical image stabilization device 10 of the present invention has the characteristics of simple circuit, and through the appropriate timing design, the adders 135, 184, 188, and 146 can share the same addition circuit, and the comparators 185 and 189 can also share The same comparison circuit. In one embodiment, the multiplying circuit used by the adding circuit, the comparing circuit, and the multiplier 145 may be a 16-bit digital circuit, which can complete the functions required by the optical image stabilization device 10, and The filter 180 completed in Fig. 3 has excellent effects although it uses simple circuits and components. Therefore, the optical image stabilization device 10 of the present invention has the advantages of low cost and high performance.
圖7為本發明之加法電路、乘法電路及比較電路由光學防手震電路的各個元件所使用之時序圖,圖中的縱軸代表時間,每一個時間單位為系統的一個時脈週期。在時間T1時轉換單元160(使用加法電路及乘法電路)依據映射電路170中相對應的映射表將驅動訊號V轉換為訊號v2h;在時間T2時濾波器180(使用加法電路及比較電路)對驅動感應訊號S進行濾波,得到濾波訊號S_F;在時間T3時轉換單元160(使用加法電路及乘法電路)依據映射電路170中相對應的映射表將濾波訊號S_F轉換為角度偏移量 hall;在時間T4時加法器135(使用加法電路)計算出角度偏移量 gyro及角度偏移量 hall的差值 ;在時間T5時PID控制器140(使用加法電路及乘法電路)依據此差值 控制馬達驅動電路150驅動音圈馬達40時的驅動訊號V的大小;以及在時間T6時轉換單元160(使用加法電路及乘法電路)再次依據映射電路170中相對應的映射表將驅動訊號V轉換為訊號v2h,以作為濾波器180下一回濾波程序的參考。光學防手震電路在時間T1~T6對x軸進行偵測及補償,而且在接下來的時間T7~T12以及時間T13~T18分別對y軸及z軸進行偵測及補償,其細節可參考上述對時間T1~T6的描述。時間T19及T20為等待音圈馬達40反應的時間,待音圈馬達40動作完畢,接下來的時間T21中濾波器180可依據時間T6時所得到的訊號v2h再次對驅動感應訊號S進行濾波,之後反覆進行上述的步驟。 Figure 7 is a timing diagram of the addition circuit, the multiplication circuit, and the comparison circuit of the present invention used by the components of the optical anti-shake circuit. The vertical axis represents time, and each time unit is one clock cycle of the system. At time T1, the converting unit 160 (using the adding circuit and the multiplying circuit) converts the driving signal V into a signal v2h according to the corresponding mapping table in the mapping circuit 170; at time T2, the filter 180 (using the adding circuit and the comparing circuit) Driving the sensing signal S to perform filtering to obtain the filtered signal S_F; at time T3, the converting unit 160 (using the adding circuit and the multiplying circuit) converts the filtered signal S_F into an angular offset according to the corresponding mapping table in the mapping circuit 170. Hall ; at time T4, adder 135 (using the addition circuit) calculates the angular offset Gyro and angular offset Hall difference At time T5, the PID controller 140 (using the adder circuit and the multiplying circuit) is based on the difference Controlling the magnitude of the driving signal V when the motor drive circuit 150 drives the voice coil motor 40; and at time T6, the converting unit 160 (using the adding circuit and the multiplying circuit) again converts the driving signal V according to the corresponding mapping table in the mapping circuit 170 It is the signal v2h as a reference for the next filter of the filter 180. The optical anti-shake circuit detects and compensates the x-axis at time T1~T6, and detects and compensates the y-axis and z-axis respectively at the next time T7~T12 and time T13~T18. The above description of time T1~T6. The times T19 and T20 are the time for waiting for the voice coil motor 40 to react. When the voice coil motor 40 is completed, the filter 180 can filter the drive sensing signal S again according to the signal v2h obtained at the time T6. Then repeat the above steps.
光學影像穩定裝置10的另一功能在於藉由分析影像感應器20的輸出影像,可以得知相機模組之鏡頭在組裝完成後所產生的組裝誤差,此類的組裝誤差會造成影像偏移或模糊。該組裝誤差可以被預先得知並儲存,之後拍照時可藉由控制鏡頭的位移以抵消該組裝誤差,因此即便鏡頭的組裝不完美,該相機模組仍可拍出清晰的影像。圖5為本發明之光學影像穩定裝置10偵測並記錄相機模組之組裝誤差之一實施例的流程圖。流程剛開始時(例如相機模組剛完成組裝),因為尚無分析結果,所以略過步驟S510直接進行步驟S520。在步驟S520中,像機模組先透過鏡頭及影像感應器20擷取參考物的影像。參考物上具有定位標記,因此接下來處理單元110可以分析參考物上定位標記的位置及清晰度,來產生分析結果(步驟S530),並且依據分析結果(例如影像是否夠清晰、影像的位置是否正確等等)來決定是否需調整鏡頭的位置(步驟S540)。如果分析結果指示鏡頭的位置還沒調至最佳的位置(步驟S540判斷為是),則處理單元110依據分析結果控制馬達驅動電路150,以驅動音圈馬達40調整鏡頭(步驟S510)。如此反覆進行步驟S510~S540,最後當參考物的影像夠清晰時(步驟S540判斷為否),可得到鏡頭在步驟S510~S540的調整過程中在各軸向上的調整量(例如x、y、z方向上的調整量分別為 、 、 ,其中x、y、z方向的其中之一為焦距方向),然後處理單元110再將所獲得的調整量儲存於記憶體115中(步驟S550)。記憶體115可以是非揮發性的記憶體元件,例如快閃記憶體,則該些調整量不會因為光學影像穩定裝置10斷電而遺失。之後當相機模組擷取影像時,馬達驅動電路150除了參考比例積分微分控制器140的控制變數u之外,更參考記憶體115中的鏡頭調整量來驅動音圈馬達40,亦即馬達驅動電路150更依據鏡頭調整量來調整音圈馬達40對鏡頭的驅動量(步驟S560)。如此一來,鏡頭可以移動至較佳的拍攝位置以克服鏡頭的組裝誤差,而且同時達到光學防手震的效果。 Another function of the optical image stabilization device 10 is to analyze the output image of the image sensor 20 to know the assembly error of the lens of the camera module after assembly. Such assembly errors may cause image shift or blurry. The assembly error can be known and stored in advance, and the assembly error can be offset by controlling the displacement of the lens after photographing, so that even if the lens assembly is not perfect, the camera module can still capture a clear image. FIG. 5 is a flow chart of an embodiment of the optical image stabilization device 10 of the present invention for detecting and recording an assembly error of a camera module. At the beginning of the process (for example, the camera module has just completed assembly), since there is no analysis result, step S520 is skipped directly to step S520. In step S520, the camera module first captures an image of the reference object through the lens and the image sensor 20. The reference object has a positioning mark, so that the processing unit 110 can analyze the position and the sharpness of the positioning mark on the reference object to generate an analysis result (step S530), and according to the analysis result (for example, whether the image is clear enough, whether the position of the image is clear or not) Correct, etc.) to determine whether the position of the lens needs to be adjusted (step S540). If the analysis result indicates that the position of the lens has not been adjusted to the optimum position (YES in step S540), the processing unit 110 controls the motor drive circuit 150 in accordance with the analysis result to drive the voice coil motor 40 to adjust the lens (step S510). In this way, steps S510 to S540 are repeatedly performed. Finally, when the image of the reference object is clear enough (NO in step S540), the amount of adjustment in each axial direction of the lens during the adjustment of steps S510 to S540 (for example, x, y, The adjustment amount in the z direction is , , , wherein one of the x, y, and z directions is the focal length direction, and then the processing unit 110 stores the obtained adjustment amount in the memory 115 (step S550). The memory 115 can be a non-volatile memory component, such as a flash memory, and the adjustments are not lost due to powering down of the optical image stabilization device 10. Then, when the camera module captures the image, the motor drive circuit 150 drives the voice coil motor 40, that is, the motor drive, with reference to the lens adjustment amount in the memory 115 in addition to the control variable u of the proportional integral derivative controller 140. The circuit 150 further adjusts the driving amount of the voice coil motor 40 to the lens in accordance with the lens adjustment amount (step S560). In this way, the lens can be moved to a better shooting position to overcome the assembly error of the lens, and at the same time achieve the effect of optical anti-shake.
然而相機模組在拍攝時有許多因素會造成影像模糊,其中一個原因是因為正在被拍攝的目標物正在移動。因此光學影像穩定裝置10的另一功能在於藉由分析影像感應器20的輸出影像,以得知目標物的移動狀態,並依據目標物的移動狀態作相對應的補償。圖6為本發明依據目標物的位移資訊來對鏡頭進行偏移補償之一實施例的流程圖。如圖所示,當相機模組即將拍攝目標物時,此時鏡頭已對準目標物而且影像感應器20已產生目標物的影像(步驟S610)。之後處理單元110分析目標物的影像並且產生對應目標物位移的角速度資訊(亦即將目標物的位移程度轉換為相機模組的震動程度)(步驟S620),此角速度資訊即代表目標物於拍攝過程中的移動狀態。接著,積分器130對此角速度資訊積分,而得到對應目標物位移的角度偏移量,並且比例積分微分控制器140依據此角度偏移量與驅動感應器50之角度偏移量的差值來決定鏡頭偏移補償量(步驟S630)。然後馬達驅動電路150再依據鏡頭偏移補償量驅動音圈馬達40以調整鏡頭,亦即馬達驅動電路150更依據鏡頭偏移補償量來調整音圈馬達40對鏡頭的驅動量(步驟S640),使鏡頭的偏移趨勢與目標物的位移趨勢一致,以得到更清晰的目標物影像。圖6的流程可與光學影像穩定裝置10之前述的光學防手震機制同時執行,以得到更佳的影像品質。However, there are many factors that cause the camera to blur when the camera module is shooting. One of the reasons is because the target being shot is moving. Therefore, another function of the optical image stabilization device 10 is to analyze the output image of the image sensor 20 to know the moving state of the target, and to perform corresponding compensation according to the moving state of the target. FIG. 6 is a flow chart of an embodiment of the present invention for offset compensation of a lens according to displacement information of a target. As shown in the figure, when the camera module is about to shoot the target, the lens is now aimed at the target and the image sensor 20 has generated an image of the target (step S610). Afterwards, the processing unit 110 analyzes the image of the target object and generates angular velocity information corresponding to the displacement of the target object (that is, the degree of displacement of the target object is converted into the vibration degree of the camera module) (step S620), and the angular velocity information represents the target object during the shooting process. The state of movement in . Then, the integrator 130 integrates the angular velocity information to obtain an angular offset corresponding to the target displacement, and the proportional integral derivative controller 140 determines the difference between the angular offset and the angular offset of the driving sensor 50. The lens shift compensation amount is determined (step S630). Then, the motor driving circuit 150 drives the voice coil motor 40 to adjust the lens according to the lens offset compensation amount, that is, the motor driving circuit 150 further adjusts the driving amount of the voice coil motor 40 to the lens according to the lens shift compensation amount (step S640). Make the offset trend of the lens consistent with the displacement trend of the target to get a clearer image of the target. The flow of FIG. 6 can be performed simultaneously with the aforementioned optical anti-shake mechanism of the optical image stabilization device 10 for better image quality.
上述的光學影像穩定裝置10係應用於相機模組,相機模組包含影像感應器20、震動感應器30、音圈馬達40、驅動感應器50。光學影像穩定裝置10可以是相機模組的一部分,或獨立於相機模組之外。請注意,前揭圖示中,元件之形狀、尺寸、比例以及步驟之順序等僅為示意,係供本技術領域具有通常知識者瞭解本發明之用,非用以限制本發明。再者,前揭實施例雖以手持裝置之相機模組為例,然此並非對本發明之限制,本技術領域人士可依本發明之揭露適當地將本發明應用於其它類型的影像擷取裝置。The optical image stabilization device 10 described above is applied to a camera module. The camera module includes an image sensor 20, a vibration sensor 30, a voice coil motor 40, and a drive sensor 50. The optical image stabilization device 10 can be part of the camera module or be independent of the camera module. It is noted that the shapes, dimensions, proportions, and order of steps of the elements are merely illustrative, and are intended to be used by those of ordinary skill in the art to understand the invention and not to limit the invention. In addition, the foregoing embodiment is exemplified by a camera module of a handheld device, which is not a limitation of the present invention. Those skilled in the art can appropriately apply the present invention to other types of image capturing devices according to the disclosure of the present invention. .
雖然本發明之實施例如上所述,然而該些實施例並非用來限定本發明,本技術領域具有通常知識者可依據本發明之明示或隱含之內容對本發明之技術特徵施以變化,凡此種種變化均可能屬於本發明所尋求之專利保護範疇,換言之,本發明之專利保護範圍須視本說明書之申請專利範圍所界定者為準。Although the embodiments of the present invention are described above, the embodiments are not intended to limit the present invention, and those skilled in the art can change the technical features of the present invention according to the explicit or implicit contents of the present invention. Such variations are all within the scope of patent protection sought by the present invention. In other words, the scope of patent protection of the present invention is defined by the scope of the patent application of the specification.
10‧‧‧光學影像穩定裝置
20‧‧‧影像感應器
30‧‧‧震動感應器
40‧‧‧音圈馬達
50‧‧‧驅動感應器
110‧‧‧處理單元
115‧‧‧記憶體
120、190‧‧‧類比數位轉換器
130‧‧‧積分器
135、184、188、146‧‧‧加法器
140‧‧‧比例積分微分控制器
150‧‧‧馬達驅動電路
160‧‧‧轉換單元
165、175、186‧‧‧多工器
170‧‧‧映射電路
180‧‧‧濾波器
141、142、143、144、181、182、183、187‧‧‧延遲單元
185、189‧‧‧比較器
145‧‧‧乘法器
147‧‧‧暫存器
S510~S560、S610~S640‧‧‧步驟10‧‧‧Optical image stabilization device
20‧‧‧Image sensor
30‧‧‧Vibration sensor
40‧‧‧ voice coil motor
50‧‧‧Drive sensor
110‧‧‧Processing unit
115‧‧‧ memory
120, 190‧‧‧ analog digital converter
130‧‧‧ integrator
135, 184, 188, 146‧‧ ‧ adders
140‧‧‧Proportional Integral Derivative Controller
150‧‧‧Motor drive circuit
160‧‧‧Conversion unit
165, 175, 186‧‧‧ multiplexers
170‧‧‧ mapping circuit
180‧‧‧ filter
141, 142, 143, 144, 181, 182, 183, 187‧‧‧ delay units
185, 189‧‧‧ comparator
145‧‧‧Multiplier
147‧‧‧ 存存器
S510 ~ S560, S610 ~ S640‧ ‧ steps
[圖1]為本發明光學防手震電路之一實施例的功能方塊圖; [圖2]為本發明的濾波器之一實施例的局部電路圖; [圖3]為本發明的濾波器之一實施例的局部電路圖; [圖4]為本發明比例積分微分控制器140的細部電路圖; [圖5]為本發明之光學影像穩定裝置10偵測並記錄相機模組之組裝誤差之一實施例的流程圖; [圖6]為本發明依據目標物的位移資訊來對鏡頭進行偏移補償之一實施例的流程圖;以及 [圖7]為本發明之加法電路、乘法電路及比較電路由光學防手震電路的各個元件所使用之時序圖。1 is a functional block diagram of an embodiment of an optical anti-shake circuit of the present invention; [Fig. 2] is a partial circuit diagram of an embodiment of a filter of the present invention; [Fig. 3] A partial circuit diagram of an embodiment; [Fig. 4] is a detailed circuit diagram of the proportional integral derivative controller 140 of the present invention; [Fig. 5] is an implementation of the assembly error of detecting and recording the camera module of the optical image stabilization device 10 of the present invention. [FIG. 6] is a flowchart of an embodiment of the present invention for offset compensation of a lens according to displacement information of a target; and [FIG. 7] is an addition circuit, a multiplication circuit, and a comparison circuit of the present invention. Timing diagram used by the various components of the optical anti-shake circuit.
10‧‧‧光學影像穩定裝置 10‧‧‧Optical image stabilization device
20‧‧‧影像感應器 20‧‧‧Image sensor
30‧‧‧震動感應器 30‧‧‧Vibration sensor
40‧‧‧音圈馬達 40‧‧‧ voice coil motor
50‧‧‧驅動感應器 50‧‧‧Drive sensor
110‧‧‧處理單元 110‧‧‧Processing unit
115‧‧‧記憶體 115‧‧‧ memory
120、190‧‧‧類比數位轉換器 120, 190‧‧‧ analog digital converter
130‧‧‧積分器 130‧‧‧ integrator
135‧‧‧加法器 135‧‧‧Adder
140‧‧‧比例積分微分控制器 140‧‧‧Proportional Integral Derivative Controller
150‧‧‧馬達驅動電路 150‧‧‧Motor drive circuit
160‧‧‧轉換單元 160‧‧‧Conversion unit
165、175‧‧‧多工器 165, 175‧‧‧ multiplexers
170‧‧‧映射電路 170‧‧‧ mapping circuit
180‧‧‧濾波器 180‧‧‧ filter
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104130506A TWI573456B (en) | 2015-09-15 | 2015-09-15 | Optical image stabilization device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104130506A TWI573456B (en) | 2015-09-15 | 2015-09-15 | Optical image stabilization device |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI573456B true TWI573456B (en) | 2017-03-01 |
TW201711440A TW201711440A (en) | 2017-03-16 |
Family
ID=58766072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW104130506A TWI573456B (en) | 2015-09-15 | 2015-09-15 | Optical image stabilization device |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI573456B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200837486A (en) * | 2007-03-12 | 2008-09-16 | Asia Optical Co Inc | System and method of offset compensation of solid-state imaging device |
TW201204026A (en) * | 2010-05-17 | 2012-01-16 | On Semiconductor Trading Ltd | Control circuit for an imaging device |
-
2015
- 2015-09-15 TW TW104130506A patent/TWI573456B/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200837486A (en) * | 2007-03-12 | 2008-09-16 | Asia Optical Co Inc | System and method of offset compensation of solid-state imaging device |
TW201204026A (en) * | 2010-05-17 | 2012-01-16 | On Semiconductor Trading Ltd | Control circuit for an imaging device |
Also Published As
Publication number | Publication date |
---|---|
TW201711440A (en) | 2017-03-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5501119B2 (en) | Imaging apparatus and control method thereof | |
CN102111550B (en) | Image capturing apparatus and control method thereof | |
JP5230398B2 (en) | Imaging apparatus and control method thereof | |
US9264616B2 (en) | Image capturing apparatus, method of controlling the same, and storage medium for correcting image blurring of a captured image | |
US8754951B2 (en) | Control circuit for image-capturing device | |
WO2015012076A1 (en) | Image blur correction device and imaging device | |
US10237486B2 (en) | Image-capturing apparatus, lens apparatus and image-capturing system | |
US9626743B2 (en) | Image stabilization apparatus, method of controlling the same, image capturing apparatus, lens apparatus, and storage medium | |
US20120033091A1 (en) | Image capture apparatus and control method thereof | |
US10101593B2 (en) | Optical apparatus, control method thereof and storage medium | |
JP2006220870A (en) | Imaging apparatus | |
JP2014029420A (en) | Shake amount detection device, imaging apparatus, and shake amount detection method | |
US11570361B2 (en) | Lens unit, imaging device, control methods thereof, and storage medium | |
JP2009044520A (en) | Antivibration control circuit | |
JP2012078495A (en) | Imaging device, shake correction device, and shake correction method | |
JP2019029968A (en) | Imaging apparatus and control method thereof | |
JP6932531B2 (en) | Image blur correction device, image pickup device, control method of image pickup device | |
TWI620439B (en) | Optical image stabilization device and lens adjusting method to solve image blurs due to object displacement | |
TWI573456B (en) | Optical image stabilization device | |
TW201711445A (en) | Optical image stabilization device and lens adjusting method to solve assembly error | |
JP2009053348A (en) | Apparatus and method for correcting camera shake | |
KR101608828B1 (en) | Apparatus for vibration compensation of gyro sensor of mobile camera | |
CN106556955B (en) | Solve the optical image stabilising arrangement and lens adjusting method of assembly error | |
US7916176B2 (en) | Device of offset compensation for solid-state imaging device and related method | |
JP3865125B2 (en) | Image processing apparatus and method, recording medium, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |