TW201643537A - Image capture device and focus method - Google Patents
Image capture device and focus method Download PDFInfo
- Publication number
- TW201643537A TW201643537A TW104118158A TW104118158A TW201643537A TW 201643537 A TW201643537 A TW 201643537A TW 104118158 A TW104118158 A TW 104118158A TW 104118158 A TW104118158 A TW 104118158A TW 201643537 A TW201643537 A TW 201643537A
- Authority
- TW
- Taiwan
- Prior art keywords
- distance
- image
- aperture
- lens module
- image data
- Prior art date
Links
Landscapes
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Abstract
Description
本發明是有關於一種影像擷取裝置及對焦方法,特別是指一種快速對焦的影像擷取裝置及對焦方法。 The invention relates to an image capturing device and a focusing method, in particular to a fast focusing image capturing device and a focusing method.
習知的一種對焦方法,適用於一行動裝置如手機或平板中的影像擷取裝置,該影像擷取裝置包含一影像感測器、一鏡頭模組、一對焦驅動器、及一處理模組。該對焦方法採用對比式偵測(Contrast Detection)的技術,其中,該處理模組先根據該影像感測器感測一物體之影像所產生的一影像資料,獲得一對應該影像資料的對比度,然後該對焦驅動器藉由驅動該鏡頭模組移動來控制該鏡頭模組與該影像感測器之間的距離,以獲得具有一相對最大對比度的影像資料。依照該習知的對焦方法,若該物體與該鏡頭模組之間的距離很短時,如小於30公分,為了獲得具有一相對最大對比度的影像資料,受控於該對焦驅動器的該鏡頭模組需要被反覆移動,因而導致對焦所需時間較長,且耗電較大。 A conventional focusing method is applicable to an image capturing device in a mobile device such as a mobile phone or a tablet. The image capturing device includes an image sensor, a lens module, a focus driver, and a processing module. The focusing method adopts a contrast detection technology, wherein the processing module firstly obtains a pair of image data according to an image generated by sensing an image of the object. The focus driver then controls the distance between the lens module and the image sensor by driving the lens module to obtain image data having a relative maximum contrast. According to the conventional focusing method, if the distance between the object and the lens module is short, such as less than 30 cm, in order to obtain image data having a relative maximum contrast, the lens mode controlled by the focus driver The group needs to be moved repeatedly, resulting in longer focusing time and greater power consumption.
因此,本發明之目的,即在提供一種快速對焦 的影像擷取裝置及對焦方法。 Therefore, the object of the present invention is to provide a fast focus Image capture device and focusing method.
於是,根據本發明之一觀點,提供一種對焦方法,適用於一影像擷取裝置,該影像擷取裝置包含一影像感測器、一可相對該影像感測器移動的鏡頭模組、一用於驅動該鏡頭模組移動的對焦驅動器、及一電連接該影像感測器及該對焦驅動器的處理模組,該鏡頭模組包括一第一光圈及一不同於該第一光圈的第二光圈,該對焦方法包含以下步驟:(a)藉由該影像感測器,在該鏡頭模組位於一初始位置時,同時感測相關於一包含至少一物件之影像的一第一光譜能量及一第二光譜能量,以分別產生對應該第一光譜能量的一第一影像資料及對應該第二光譜能量的一第二影像資料,該第一影像資料及該第二影像資料分別相關於該第一光圈及該第二光圈,位於該初始位置之該鏡頭模組及該影像感測器之間的距離被定義為一初始像距;(b)藉由該處理模組,根據該第一影像資料及該第二影像資料,獲得相關於該物件且分別對應該第一影像資料與該第二影像資料的一第一模糊圈直徑與一第二模糊圈直徑,並計算出該第一模糊圈直徑與該第二模糊圈直徑的一差值;(c)藉由該處理模組,至少根據該初始像距、該差值、及一像距對模糊圈差值的查找表,產生一相關於一目標像距的控制信號;及(d)藉由該對焦驅動器,根據該控制信號驅動該鏡頭模組 移動,以便將該初始像距改變為該目標像距。 Therefore, according to one aspect of the present invention, a focusing method is provided for an image capturing device, the image capturing device comprising an image sensor, a lens module movable relative to the image sensor, and a a focus driver for driving the lens module and a processing module electrically connected to the image sensor and the focus driver, the lens module including a first aperture and a second aperture different from the first aperture The focusing method includes the following steps: (a) by the image sensor, when the lens module is in an initial position, simultaneously sensing a first spectral energy and an image related to an image including at least one object; a second spectral energy to respectively generate a first image data corresponding to the first spectral energy and a second image data corresponding to the second spectral energy, wherein the first image data and the second image data are respectively related to the first image data An aperture and the second aperture, the distance between the lens module and the image sensor at the initial position is defined as an initial image distance; (b) by the processing module, according to the first image Data and the second image data, obtaining a first blurring circle diameter and a second blurring circle diameter corresponding to the object and respectively corresponding to the first image data and the second image data, and calculating the first blurring circle a difference between the diameter and the diameter of the second blurring circle; (c) generating, by the processing module, a correlation based on at least the initial image distance, the difference, and an image distance to the fuzzy circle difference value lookup table a control signal for a target image distance; and (d) driving the lens module according to the control signal by the focus driver Move to change the initial image distance to the target image distance.
根據本發明之另一觀點,提供一種影像擷取裝置,包含一影像感測器、一可相對該影像感測器移動的鏡頭模組、一用於儲存一像距對模糊圈差值的查找表的儲存模組、一用於驅動該鏡頭模組移動的對焦驅動器、及一電連接該影像感測器、該對焦驅動器、與該儲存模組並控制該對焦驅動器的處理模組。該鏡頭模組包括共軸設置的一第一光圈及一不同於該第一光圈的第二光圈。 According to another aspect of the present invention, an image capturing device includes an image sensor, a lens module movable relative to the image sensor, and a search for storing an image distance pair blur circle difference value. The storage module of the watch, a focus driver for driving the lens module, and a processing module electrically connected to the image sensor, the focus driver, and the storage module and controlling the focus driver. The lens module includes a first aperture disposed coaxially and a second aperture different from the first aperture.
該影像感測器在該鏡頭模組位於一初始位置時,同時感測相關於一包含至少一物件之影像的一第一光譜能量及一第二光譜能量,以分別產生對應該第一光譜能量的一第一影像資料及對應該第二光譜能量的一第二影像資料。該第一影像資料及該第二影像資料分別相關於該第一光圈及該第二光圈。位於該初始位置之該鏡頭模組與該影像感測器之間的距離被定義為一初始像距。 The image sensor simultaneously senses a first spectral energy and a second spectral energy associated with an image including at least one object when the lens module is in an initial position to respectively generate a corresponding first spectral energy. a first image data and a second image material corresponding to the second spectral energy. The first image data and the second image data are related to the first aperture and the second aperture, respectively. The distance between the lens module and the image sensor located at the initial position is defined as an initial image distance.
該處理模組接收來自該影像感測器的該第一影像資料及該第二影像資料,並根據該第一影像資料及該第二影像資料,獲得相關於該物件且分別對應該第一影像資料與該第二影像資料的一第一模糊圈直徑與一第二模糊圈直徑,並計算出該第一模糊圈直徑與該第二模糊圈直徑的一差值。 The processing module receives the first image data and the second image data from the image sensor, and obtains, according to the first image data and the second image data, the object corresponding to the object and respectively corresponding to the first image And a first blur circle diameter and a second blur circle diameter of the second image data, and calculating a difference between the first blur circle diameter and the second blur circle diameter.
該處理模組至少根據該初始像距、該差值、及儲存於該儲存模組的該查找表,產生一相關於一目標像距的控制信號,並將該控制信號輸出至該對焦驅動器,以使 得該對焦驅動器根據來自該處理模組的該控制信號驅動該鏡頭模組移動,以便將該初始像距改變為該目標像距。 The processing module generates a control signal related to a target image distance according to the initial image distance, the difference, and the lookup table stored in the storage module, and outputs the control signal to the focus driver. so that The focus driver drives the lens module movement according to the control signal from the processing module to change the initial image distance to the target image distance.
本發明之功效是藉由該處理模組根據相關於不同光圈的二個影像資料,計算而得該第一模糊圈直徑及該第二模糊圈直徑的差值,再至少根據該初始像距、該差值、及該查找表,產生該相關於該目標像距的控制信號,以實現在該物件與該鏡頭模組之間的距離很短時能夠更快速地完成對焦。 The effect of the present invention is that the processing module calculates the difference between the diameter of the first blurring circle and the diameter of the second blurring circle according to two image data related to different apertures, and at least according to the initial image distance, The difference, and the lookup table, generate the control signal related to the target image distance to achieve faster focusing when the distance between the object and the lens module is short.
11‧‧‧鏡頭模組 11‧‧‧Lens module
111‧‧‧第一光圈 111‧‧‧First aperture
112‧‧‧第二光圈 112‧‧‧second aperture
12‧‧‧影像感測器 12‧‧‧Image sensor
13‧‧‧對焦驅動器 13‧‧‧Focus Drive
14‧‧‧儲存模組 14‧‧‧Storage module
15‧‧‧處理模組 15‧‧‧Processing module
S11~S14‧‧‧步驟 S11~S14‧‧‧Steps
S131‧‧‧子步驟 Sub-step S131‧‧
S132‧‧‧子步驟 S132‧‧‧ substeps
P1、P2‧‧‧位置 P1, P2‧‧‧ position
C1、C2‧‧‧模糊圈直徑 C1, C2‧‧‧ fuzzy circle diameter
A‧‧‧光圈孔徑 A‧‧‧ aperture aperture
f‧‧‧焦距 F‧‧•focal length
f1‧‧‧像距 F1‧‧‧image distance
X1、X2‧‧‧物距 X1, X2‧‧‧
G1~G3‧‧‧曲線 G1~G3‧‧‧ Curve
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,說明本發明影像擷取裝置之一實施例;圖2是一流程圖,說明本發明影像擷取裝置之該實施例所執行的一對焦方法的步驟;圖3是一示意圖,說明本發明該實施例之一模糊圈的定義;及圖4是一曲線圖,說明本發明該實施例之一物距與一模糊圈差值的關係。 The other features and advantages of the present invention will be apparent from the embodiments of the present invention. FIG. 1 is a block diagram illustrating an embodiment of the image capturing device of the present invention; FIG. 2 is a flow chart. A step of a focusing method performed by the embodiment of the image capturing device of the present invention; FIG. 3 is a schematic view showing a definition of a blurring circle of the embodiment of the present invention; and FIG. 4 is a graph illustrating the present invention. The relationship between the object distance and the difference of a blur circle in this embodiment.
參閱圖1,本發明影像擷取裝置之一實施例包含一影像感測器12、一可相對該影像感測器12移動的鏡頭模組11、一用於儲存一像距對模糊圈差值的查找表的儲存模組14、一用於驅動該鏡頭模組11移動的對焦驅動器 13、及一電連接該影像感測器12、該對焦驅動器13、與該儲存模組14並控制該對焦驅動器13的處理模組15。 Referring to FIG. 1 , an embodiment of an image capturing device of the present invention includes an image sensor 12 , a lens module 11 movable relative to the image sensor 12 , and a lens for storing an image distance pair blur circle difference. a storage module 14 of the lookup table, a focus driver for driving the movement of the lens module 11 13. The processing module 15 is electrically connected to the image sensor 12, the focus driver 13, and the storage module 14 and controls the focus driver 13.
該鏡頭模組11包括共軸設置的一第一光圈111及一不同於該第一光圈111的第二光圈112。特別值得一提的是:在本實施例中,該影像擷取裝置是應用於如手機或平板的行動裝置,因此,該鏡頭模組11的該第一光圈111及該第二光圈112分別為不可調整的二個預定參數,且該對焦驅動器13為常用於手機之相機單元的一音圈馬達(Voice Coil Motor;VCM)模組。該音圈馬達模組藉由改變一驅動電流的大小而驅動鏡頭移動以改變鏡頭與影像感測器12之間的像距。而在其他實施例中,該影像擷取裝置也可以應用於如相機或攝影機的其他設備,則該第一光圈111及該第二光圈112分別都為可調整的參數。 The lens module 11 includes a first aperture 111 disposed coaxially and a second aperture 112 different from the first aperture 111. It is particularly worth mentioning that, in this embodiment, the image capturing device is applied to a mobile device such as a mobile phone or a tablet. Therefore, the first aperture 111 and the second aperture 112 of the lens module 11 are respectively Two predetermined parameters are not adjustable, and the focus driver 13 is a voice coil motor (VCM) module commonly used in camera units of mobile phones. The voice coil motor module drives the lens movement to change the image distance between the lens and the image sensor 12 by changing the magnitude of a driving current. In other embodiments, the image capturing device can also be applied to other devices such as a camera or a camera. The first aperture 111 and the second aperture 112 are respectively adjustable parameters.
參閱圖1與圖2,圖2是一流程圖,說明該影像擷取裝置的該實施例如何執行一對焦方法。 Referring to Figures 1 and 2, Figure 2 is a flow chart illustrating how this embodiment of the image capture device performs a focus method.
於步驟S11,該影像感測器12在該鏡頭模組11位於一初始位置時,同時感測相關於一包含至少一被攝物件之影像的一第一光譜能量及一第二光譜能量,以分別產生對應該第一光譜能量的一第一影像資料及對應該第二光譜能量的一第二影像資料。該第一影像資料及該第二影像資料分別相關於該第一光圈111及該第二光圈112。位於該初始位置之該鏡頭模組11與該影像感測器12之間的距離被定義為一初始像距。 In step S11, the image sensor 12 simultaneously senses a first spectral energy and a second spectral energy associated with an image including at least one object when the lens module 11 is in an initial position. A first image data corresponding to the first spectral energy and a second image data corresponding to the second spectral energy are respectively generated. The first image data and the second image data are associated with the first aperture 111 and the second aperture 112, respectively. The distance between the lens module 11 and the image sensor 12 located at the initial position is defined as an initial image distance.
在本實施例中,該鏡頭模組11的該第一光圈 111的孔徑大於該第二光圈112的孔徑。該第一光譜能量對應於一可見光譜能量,該第二光譜能量對應於一紅外光譜能量。 In the embodiment, the first aperture of the lens module 11 The aperture of 111 is greater than the aperture of the second aperture 112. The first spectral energy corresponds to a visible spectral energy, and the second spectral energy corresponds to an infrared spectral energy.
再參閱圖1,來自該被攝物件的光線先經過該第一光圈111,再經過該第二光圈112,而至該影像感測器12。其中,該第一光圈111的材質能阻擋可見光譜能量及紅外光譜能量,允許經由該較大孔徑的該光線的可見光譜能量及紅外光譜能量通過。該第二光圈112的材質能阻擋紅外光譜能量但不能阻擋可見光譜能量,允許經由該較小孔徑的該光線的紅外光譜能量通過,而經過該第一光圈111後的該光線的可見光譜能量則能通過該第二光圈112。 Referring to FIG. 1 , the light from the object passes through the first aperture 111 and then passes through the second aperture 112 to the image sensor 12 . The material of the first aperture 111 can block the visible spectrum energy and the infrared spectrum energy, and allows the visible spectrum energy and the infrared spectrum energy of the light passing through the larger aperture to pass. The material of the second aperture 112 can block the infrared spectral energy but cannot block the visible spectrum energy, allowing the infrared spectral energy of the light passing through the smaller aperture to pass, and the visible spectral energy of the light passing through the first aperture 111 is The second aperture 112 can pass.
參閱圖1與圖2,於步驟S12,該處理模組15根據該第一影像資料及該第二影像資料,獲得相關於該物件且分別對應該第一影像資料與該第二影像資料的一第一模糊圈直徑與一第二模糊圈直徑,並計算出該第一模糊圈直徑與該第二模糊圈直徑的一差值。 Referring to FIG. 1 and FIG. 2, in step S12, the processing module 15 obtains one of the first image data and the second image data corresponding to the object according to the first image data and the second image data. a first blur circle diameter and a second blur circle diameter, and calculating a difference between the first blur circle diameter and the second blur circle diameter.
再參閱圖3,圖3是一示意圖並藉由一點光源所發出的光線在經過一透鏡後,在一成像平面上的影像,以說明一模糊圈的定義。當該點光源在位置P1而能在該成像平面上清楚成像時,即能形成一個點時,該點光源與該透鏡之間的距離為物距X1,像距為f1,此時,其模糊圈直徑幾乎為零,也就是說該物距X1為一準焦物距。當該點光源在位置P2而在該成像平面上形成一散開的圓形時,該點光源與該透鏡之間的距離為物距X2,此時,其模糊圈直徑 為C2。 Referring again to FIG. 3, FIG. 3 is a schematic diagram showing an image of a blurring circle by an image of a light source emitted from a light source after passing through a lens on an imaging plane. When the point light source can be clearly imaged on the imaging plane at the position P1, when a point can be formed, the distance between the point source and the lens is the object distance X1, and the image distance is f1. The diameter of the circle is almost zero, that is to say, the object distance X1 is a quasi-object distance. When the point light source forms a scattered circle on the imaging plane at the position P2, the distance between the point source and the lens is the object distance X2, and at this time, the diameter of the circle is blurred. For C2.
利用已知的公式,可以知道該透鏡的焦距f、該透鏡的光圈直徑(Aperture Diameter)A、該透鏡的光圈數(焦距比數;f-number)N、該物距X1、該物距X2、及該模糊圈直徑C2之間的關係為: ,其中,由上述公式可以得知,在本實施例中,該鏡頭模組11的焦距及像距為已知的情況下,該第一光圈111及該第二光圈112的孔徑不同,也就是光圈數不同,該處理模組15計算出的模糊圈直徑只有在已經對焦清楚且正確,即該被攝物件的影像清晰不模糊的情況下,模糊圈直徑才會為零。 Using a known formula, the focal length f of the lens, the aperture diameter A of the lens, the number of apertures of the lens (focal length ratio; f-number) N, the object distance X1, and the object distance X2 can be known. And the relationship between the diameter of the obscured circle C2 is: ,among them, It can be seen from the above formula that in the present embodiment, when the focal length and the image distance of the lens module 11 are known, the apertures of the first aperture 111 and the second aperture 112 are different, that is, the number of apertures is different. The diameter of the blur circle calculated by the processing module 15 is only zero when the focus has been clearly and correctly, that is, the image of the object is clear and unambiguous.
再參閱圖4,圖4是一曲線圖,說明當該鏡頭模組11與該影像感測器12之間的距離,即像距保持不變時,一點光源與該鏡頭模組11之間的物距與該第一模糊圈直徑及該第二模糊圈直徑之該差值的關係。其中,橫軸是物距,單位是米(m),縱軸的單位是毫米(mm),該鏡頭模組11的焦距f是3.69毫米,該第一光圈111的光圈數是2,該第二光圈112的光圈數是16,曲線A及B是分別在光圈數為16及2時,根據前述公式,而得的物距與模糊圈直徑大小的關係。曲線C是物距與該差值的關係。由圖中的趨勢可知,當物距為0.6公尺時,該差值為零,此時即是準焦的狀態。當物距由0.6公尺而越來越長時,該差值會越來越大,但會趨近飽和。當物距由0.6公尺而越來越短時,該差值會越來越大,且變化的程度遠大於當物距由 0.6公尺而越來越大時。 Referring to FIG. 4 again, FIG. 4 is a graph illustrating a distance between the light source and the lens module 11 when the distance between the lens module 11 and the image sensor 12, that is, the image distance remains unchanged. The relationship between the object distance and the difference between the first blur circle diameter and the second blur circle diameter. Wherein, the horizontal axis is the object distance, the unit is meters (m), the unit of the vertical axis is millimeters (mm), the focal length f of the lens module 11 is 3.69 mm, and the number of apertures of the first aperture 111 is 2, the first The aperture number of the two apertures 112 is 16, and the curves A and B are the relationship between the object distance and the diameter of the blurring circle according to the above formula when the number of apertures is 16 and 2, respectively. Curve C is the relationship between the object distance and the difference. As can be seen from the trend in the figure, when the object distance is 0.6 meters, the difference is zero, and this is the state of quasi-focus. When the object distance is longer and longer from 0.6 meters, the difference will become larger and larger, but will approach saturation. When the object distance is shorter and shorter by 0.6 meters, the difference will become larger and larger, and the degree of change is much greater than when the object distance is When it is 0.6 meters and getting bigger and bigger.
該儲存模組14儲存的該查找表包含N個不同的參考像距值、N個分別對應該N個參考像距值的模糊圈差值臨界值、及N個分別對應該N個參考像距值的調整像距值,N為正整數。該查找表中的每一模糊圈差值臨界值是在該鏡頭模組11與該影像感測器12之間的距離為該對應的參考像距值且該物件與該鏡頭模組11之間的距離為一預定物距的情況下所獲得。 The lookup table stored by the storage module 14 includes N different reference image distance values, N fuzzy threshold values corresponding to N reference image distance values, and N corresponding N reference image distances respectively. The value of the adjustment is the image distance value, and N is a positive integer. The threshold value of each blur circle difference in the lookup table is that the distance between the lens module 11 and the image sensor 12 is the corresponding reference image distance value and the object is between the object and the lens module 11 The distance is obtained in the case of a predetermined object distance.
為方便說明起見,以N=1為例並接續前面的例子說明該查找表。該參考像距值可以選擇是在該音圈馬達模組的驅動電流為零時該鏡頭模組11與該影像感測器12之間的像距。該對應的模糊圈差值臨界值可以選擇是在該被攝物件與該鏡頭模組11之間的距離,即該預定物距,遠大於一準焦物距時,該處理模組15根據該第一影像資料及該第二影像資料計算而得的該第一模糊圈直徑與該第二模糊圈直徑的差值。當該物件與該鏡頭模組之間的距離為該準焦物距,且該鏡頭模組與該影像感測器之間的距離為該對應的參考像距值時,該對應的模糊圈差值為零。 For convenience of explanation, the lookup table is illustrated by taking N=1 as an example and continuing the previous example. The reference image distance value may be selected as an image distance between the lens module 11 and the image sensor 12 when the drive current of the voice coil motor module is zero. The corresponding fuzzy circle difference threshold may be selected as the distance between the object and the lens module 11, that is, the predetermined object distance is far greater than a quasi-object distance, the processing module 15 according to the a difference between the diameter of the first blurring circle and the diameter of the second blurring circle calculated by the first image data and the second image data. When the distance between the object and the lens module is the quasi-focal distance, and the distance between the lens module and the image sensor is the corresponding reference image distance value, the corresponding blurring circle difference The value is zero.
再參閱圖4,舉例來說,該預定物距不小於該鏡頭模組11之準焦物距的22倍時,可以視為遠大於該焦距。假設選擇該預定物距為13.2米,此時,該差值為0.00954毫米,該模糊圈差值臨界值為0.00954毫米。由曲線C可知,若該被攝物件與該鏡頭模組11之間的距離小於0.6公尺而為一近端物距時,如在本實施例中,該近端物 距為0.3069米時,該差值也會是該模糊圈差值臨界值,即0.00954毫米。 Referring to FIG. 4 again, for example, when the predetermined object distance is not less than 22 times the quasi-focal distance of the lens module 11, it can be regarded as being much larger than the focal length. Assume that the predetermined object distance is selected to be 13.2 meters, at which time the difference is 0.00954 mm, and the critical value of the fuzzy circle difference is 0.00954 mm. It can be seen from the curve C that if the distance between the object and the lens module 11 is less than 0.6 meters and is a near object distance, as in the embodiment, the proximal object When the distance is 0.3069 meters, the difference will also be the critical value of the fuzzy circle difference, which is 0.00954 mm.
參閱圖1與圖2,於步驟S131,該處理模組15在該像距對模糊圈差值的查找表之該N個參考像距值中選取一個相同於該初始像距的參考像距值,並判斷該差值是否大於對應該個參考像距值的該模糊圈差值臨界值。接續前面的例子作說明,假設該初始像距與該參考像距值相等,都為3.735毫米,該對應的模糊圈差值臨界值為0.00954毫米。 Referring to FIG. 1 and FIG. 2, in step S131, the processing module 15 selects a reference image distance value identical to the initial image distance among the N reference image distance values of the image distance to blur circle difference value lookup table. And determining whether the difference is greater than a threshold value of the fuzzy circle difference corresponding to a reference image distance value. Following the previous example, it is assumed that the initial image distance is equal to the reference image distance, which is 3.735 mm, and the corresponding fuzzy circle difference value is 0.00954 mm.
於步驟S132,當步驟S131的判斷結果為是時,該處理模組15選擇對應該個參考像距值的該調整像距值作為該目標像距,並根據該目標像距產生該控制信號。接續前面的例子作說明,假設該差值為0.05毫米,再參閱圖4,由曲線C可知,若該差值大於該模糊圈差值臨界值(0.05>0.00954),表示該被攝物件與該鏡頭模組11之間的距離必定會小於該近端物距,即小於0.3069米。因此,在本實施例中,可以先依據相關的光學公式如:
於步驟S133,當步驟S131的判斷結果為否時, 該處理模組15獲得該第一影像資料的對比度,且根據該對比度決定該目標像距,並根據該目標像距產生該控制信號。 In step S133, when the result of the determination in step S131 is no, The processing module 15 obtains the contrast of the first image data, determines the target image distance according to the contrast, and generates the control signal according to the target image distance.
於步驟S14,該對焦驅動器13根據該控制信號驅動該鏡頭模組11移動,以便將該初始像距改變為該目標像距。 In step S14, the focus driver 13 drives the lens module 11 to move according to the control signal to change the initial image distance to the target image distance.
更具體的說,當該差值大於該模糊圈差值臨界值時,表示此時該被攝物件與該鏡頭模組11之間的距離很短,即小於該近端物距,該對焦驅動器13根據該控制信號,能直接驅動該鏡頭模組11移動而使該初始像距直接改變為該目標像距,進而能比習知的對比對焦方式更快速地接近準焦的像距。而當該差值不大於該模糊圈差值臨界值時,表示此時該被攝物件與該鏡頭模組11之間的距離不是很短,該處理模組15就利用傳統的對比式偵測進行對焦。 More specifically, when the difference is greater than the threshold value of the blurring circle difference, it indicates that the distance between the object and the lens module 11 is short, that is, less than the near object distance, the focus driver According to the control signal, the lens module 11 can be directly driven to move, and the initial image distance is directly changed to the target image distance, so that the image distance of the quasi-focus can be approached more quickly than the conventional contrast focus mode. When the difference is not greater than the threshold value of the fuzzy circle difference, it indicates that the distance between the object and the lens module 11 is not very short, and the processing module 15 utilizes the traditional contrast detection. Focus.
特別補充說明的是:在本實施例中是以N=1為例說明該音圈馬達的驅動電流為零的初始條件下進行對焦,而在其他實施例中,N也可為複數,而能提供初始像距在不同的情況下,都能更快速地進行對焦。 It is particularly noted that in the present embodiment, focusing is performed under the initial condition that the driving current of the voice coil motor is zero, taking N=1 as an example, and in other embodiments, N may be plural, and Providing an initial image distance allows for faster focusing in different situations.
綜上所述,該處理模組15根據相關於不同光圈的第一影像資料及第二影像資料,計算而得該第一模糊圈直徑及該第二模糊圈直徑的差值,再至少根據該初始像距、該差值、及該像距對模糊圈差值的查找表,產生該相關於該目標像距的控制信號,以實現在該物件與該鏡頭模組11之間的距離很短時能夠更快速地完成對焦,故確實能 達成本發明之目的。 In summary, the processing module 15 calculates the difference between the diameter of the first blurring circle and the diameter of the second blurring circle according to the first image data and the second image data of different apertures, and at least according to the a preliminary image distance, the difference, and a lookup table of the image distance versus the blur circle difference value, generating the control signal related to the target image distance to achieve a short distance between the object and the lens module 11 Can focus more quickly, so it really does The object of the invention is achieved.
惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即大凡依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。 The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, that is, the simple equivalent changes and modifications made by the patent application scope and patent specification content of the present invention, All remain within the scope of the invention patent.
11‧‧‧鏡頭模組 11‧‧‧Lens module
111‧‧‧第一光圈 111‧‧‧First aperture
112‧‧‧第二光圈 112‧‧‧second aperture
12‧‧‧影像感測器 12‧‧‧Image sensor
13‧‧‧對焦驅動器 13‧‧‧Focus Drive
14‧‧‧儲存模組 14‧‧‧Storage module
15‧‧‧處理模組 15‧‧‧Processing module
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104118158A TWI588585B (en) | 2015-06-04 | 2015-06-04 | Image capture device and focus method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW104118158A TWI588585B (en) | 2015-06-04 | 2015-06-04 | Image capture device and focus method |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201643537A true TW201643537A (en) | 2016-12-16 |
TWI588585B TWI588585B (en) | 2017-06-21 |
Family
ID=58055912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW104118158A TWI588585B (en) | 2015-06-04 | 2015-06-04 | Image capture device and focus method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI588585B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113055553A (en) * | 2019-12-26 | 2021-06-29 | 晋城三赢精密电子有限公司 | Automatic focusing test method and device for camera module |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI792285B (en) * | 2021-04-27 | 2023-02-11 | 財團法人國家實驗研究院 | Spectral image autofocus device based on spectral image calculation |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW262541B (en) * | 1994-05-09 | 1995-11-11 | Image Technology Internat Inc | |
US8824833B2 (en) * | 2008-02-01 | 2014-09-02 | Omnivision Technologies, Inc. | Image data fusion systems and methods |
US8587681B2 (en) * | 2008-11-21 | 2013-11-19 | Omnivision Technologies, Inc. | Extended depth of field for image sensor |
CN103210641B (en) * | 2010-02-19 | 2017-03-15 | 双光圈国际株式会社 | Process multi-perture image data |
CN103593647A (en) * | 2013-10-21 | 2014-02-19 | 王晓鹏 | Biological characteristic imaging method and equipment |
-
2015
- 2015-06-04 TW TW104118158A patent/TWI588585B/en active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113055553A (en) * | 2019-12-26 | 2021-06-29 | 晋城三赢精密电子有限公司 | Automatic focusing test method and device for camera module |
TWI736091B (en) * | 2019-12-26 | 2021-08-11 | 新煒科技有限公司 | Camera module autofocus testing method and camera module autofocus testing device |
CN113055553B (en) * | 2019-12-26 | 2022-11-25 | 晋城三赢精密电子有限公司 | Automatic focusing test method and device for camera module |
Also Published As
Publication number | Publication date |
---|---|
TWI588585B (en) | 2017-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9832362B2 (en) | Image-capturing apparatus | |
US8126322B2 (en) | Interchangeable lens, camera body, and camera system | |
US8634000B2 (en) | Image pickup apparatus having an auto zoom function and method for controlling image pickup apparatus | |
TWI471630B (en) | Auto-focus system and method of a digital camera | |
WO2015180510A1 (en) | Image capturing terminal and image capturing method | |
CN109521547A (en) | A kind of automatic focusing method and system of variable step | |
US9531938B2 (en) | Image-capturing apparatus | |
WO2014153950A1 (en) | Quick automatic focusing method and image acquisition device | |
TWI515470B (en) | Auto-focus system for multiple lens and method thereof | |
US10165188B2 (en) | Optical apparatus, display controlling method, and non-transitory computer readable storage medium storing a program, that display object distance information | |
TWI524108B (en) | Passive auto-focus device and method | |
JP2010008936A5 (en) | ||
US9584717B2 (en) | Focusing method, and image capturing device for implementing the same | |
TWI472864B (en) | Image processing device and method for controlling the same | |
JP2010139666A (en) | Imaging device | |
TWI515471B (en) | Auto-focus system for multiple lens and method thereof | |
JP6808340B2 (en) | Lens control device, control method | |
TWI588585B (en) | Image capture device and focus method | |
US9420161B2 (en) | Image-capturing apparatus | |
TW201236448A (en) | Auto-focusing camera and method for automatically focusing of the camera | |
JP2007328213A (en) | Imaging apparatus, imaging apparatus control method, and computer program | |
US9247123B2 (en) | Imaging apparatus | |
JP2020144158A (en) | Imaging device and control device therefor | |
JP2010066728A (en) | Imaging apparatus, and control method for imaging apparatus | |
US9854150B2 (en) | Auto-focus control in a camera to prevent oscillation |