TWI465790B - Real-time auto-focus apparatus and method thereof - Google Patents

Real-time auto-focus apparatus and method thereof Download PDF

Info

Publication number
TWI465790B
TWI465790B TW101126444A TW101126444A TWI465790B TW I465790 B TWI465790 B TW I465790B TW 101126444 A TW101126444 A TW 101126444A TW 101126444 A TW101126444 A TW 101126444A TW I465790 B TWI465790 B TW I465790B
Authority
TW
Taiwan
Prior art keywords
unit
autofocus
image
lens
result
Prior art date
Application number
TW101126444A
Other languages
Chinese (zh)
Other versions
TW201405192A (en
Inventor
Chien Hsiang Lin
Ming Jiun Liaw
Original Assignee
Altek Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Altek Corp filed Critical Altek Corp
Priority to TW101126444A priority Critical patent/TWI465790B/en
Publication of TW201405192A publication Critical patent/TW201405192A/en
Application granted granted Critical
Publication of TWI465790B publication Critical patent/TWI465790B/en

Links

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Description

即時自動對焦裝置及其方法 Instant auto focus device and method thereof

本發明係有關一種即時自動對焦之方法,尤其指一種可以在使用者取景時,利用預視影像即時獲得的資訊,經過計算後,以控制鏡頭的動作,並且找到影像可以在感測器上所呈現最清晰的位置。 The invention relates to a method for instant autofocus, in particular to a kind of information that can be obtained instantaneously by using a preview image when the user is framing, after calculation, to control the action of the lens, and to find the image can be on the sensor. Present the clearest position.

自動對焦系統(auto focus system)已經廣泛的應用於現今的數位相機當中,其目的在於:讓使用者於拍照時無須自行調整焦距,而是藉由數位相機所得到的資訊,並配合馬達的帶動,以達成正確的對焦,並且使得拍出來的照片符合期待。 The auto focus system has been widely used in today's digital cameras. The purpose of the auto focus system is to allow the user to adjust the focus without taking the photo, but with the information obtained by the digital camera and with the motor. In order to achieve the correct focus, and make the photos taken in line with expectations.

另外,由於現今大部分數位相機產品多配置有LCD面板(panel),讓使用者在取景時方便不少,因此「即時自動對焦」(real-time auto focus)系統即是因應這種新的取景方式所發展出來的技術。 In addition, since most of today's digital camera products are equipped with LCD panels, which are convenient for users to view, the "real-time auto focus" system is in response to this new framing. The technology developed by the way.

然而,習知之即時自動對焦系統於實際使用上,顯然具有下列幾項不便與缺失存在:1、不管取像環境是否改變,通常設定每3秒自動對焦一次,因此造成不必要之電力損耗;2、每一次自動對焦時,鏡頭需要走完所設定之對焦步數(step),然後才能找出最佳之對焦點,因此對焦速度較慢,而無法達到真正「即時對焦」 之目的;以及3、習知自動對焦之精確度係依據鏡頭所設定之對焦步數的多寡而定,並且在速度的考量下,通常無法設定較多之對焦步數,因此無法進行鏡頭之微調,而影響到自動對焦之精確度。 However, the conventional instant autofocus system obviously has the following inconveniences and omissions in actual use: 1. Regardless of whether the image capturing environment changes, it is usually set to autofocus every 3 seconds, thus causing unnecessary power loss; Every time you autofocus, the lens needs to finish the set number of steps (step) before you can find the best focus point, so the focus speed is slow, and you can't achieve true "instant focus". The purpose; and 3, the accuracy of the conventional autofocus depends on the number of focus steps set by the lens, and under the speed consideration, usually can not set more focus steps, so the lens can not be fine-tuned , which affects the accuracy of autofocus.

為了解決上述問題,本發明係提供一種即時自動對焦(real-time auto focus)的方法,其係可在使用者利用LCD取景的同時作自動對焦的動作,讓使用者無論何時都可以在LCD面板上看到清晰的畫面,增加拍攝照片的成功率。 In order to solve the above problems, the present invention provides a real-time auto focus method, which can perform an auto-focusing action while a user uses an LCD to view a picture, so that the user can be in the LCD panel at any time. See a clear picture on the screen to increase the success rate of taking photos.

有鑒於上述之問題,根據本發明之目的,提出一種即時自動對焦方法,適用於具有一鏡頭之一影像擷取裝置,針對前述之問題加以處理。此即時自動對焦方法包括以下步驟:偵測一拍攝場景影像,得到至少一場景變化結果。若此場景變化結果低於一場景變化門檻值,進行一第一自動對焦。若此場景變化結果符合此場景變化門檻值,則進行一第二自動對焦。 In view of the above problems, in accordance with the purpose of the present invention, an instant autofocus method is proposed, which is suitable for an image capturing device having a lens for processing the aforementioned problems. The instant autofocus method includes the following steps: detecting a scene image to obtain at least one scene change result. If the result of the scene change is lower than a scene change threshold, a first autofocus is performed. If the result of the scene change meets the threshold of the scene change, a second autofocus is performed.

其中,此影像擷取裝置進行此第一自動對焦時,係以一先前對焦結果作為一最佳鏡頭位置。 Wherein, when the image capturing device performs the first autofocus, a previous focusing result is used as an optimal lens position.

其中,本發明之即時自動對焦方法,更包括:於進行此第一自動對焦時,計算鏡頭在一第一鏡頭位置時,對應此第一鏡頭位置之一第一影像高頻信號分量,得到一第一信號值。移動此鏡頭至一第二鏡頭位置取得對應此第二鏡頭位置之一第二影像高頻信號分量,得到一第二信號值。比較此第一信號值及此第二信號值。若此第一信號值大於此第二信號值,此影像擷取 裝置以此第一鏡頭位置為此最佳鏡頭位置。以及若該第一信號值不大於該第二信號值,此影像擷取裝置重新移動此鏡頭至一重新對焦結果,以進行此第二自動對焦。 The instant autofocus method of the present invention further includes: when performing the first autofocus, calculating a first image high frequency signal component corresponding to one of the first lens positions when the lens is in a first lens position, and obtaining a The first signal value. Moving the lens to a second lens position to obtain a second image high-frequency signal component corresponding to one of the second lens positions, to obtain a second signal value. Comparing the first signal value with the second signal value. If the first signal value is greater than the second signal value, the image capture The device uses this first lens position for this optimal lens position. And if the first signal value is not greater than the second signal value, the image capturing device re-moves the lens to a refocusing result to perform the second autofocus.

其中,此影像擷取裝置係依爬山搜尋演算法(mountain-climbing search algorithm)重新移動此鏡頭至重新對焦結果,進行此第二自動對焦。 The image capturing device moves the lens to the refocusing result according to the mountain-climbing search algorithm to perform the second autofocus.

其中,偵測此拍攝場景影像之步驟,包括:預視此拍攝場景影像,得到一第一總體影像。分割此第一總體影像為複數個第一區域影像。於一預設期間後,重新預視此拍攝場景,得到一第二總體影像,將此二總體影像分割為複數個第二區域影像。比對此第一總體影像及此第二總體影像,得到一總體移動結果。比對此第一區域影像及此第二區域影像,得到一局部移動結果。以此總體移動結果及此局部移動結果,決定此場景變化結果。 The step of detecting the image of the shooting scene includes: previewing the image of the shooting scene to obtain a first overall image. The first overall image is segmented into a plurality of first region images. After a preset period, the scene is re-previewed to obtain a second overall image, and the two overall images are divided into a plurality of second region images. An overall movement result is obtained for this first overall image and the second overall image. A partial movement result is obtained for this first area image and the second area image. Based on the overall movement result and the local movement result, the result of this scene change is determined.

根據本發明之目的,再提出一種即時自動對焦裝置,適用於具有一鏡頭之影像擷取裝置,包括:一偵測單元,用於偵測一拍攝場景影像,得到至少一場景變化結果。一自動對焦單元,於此場景變化結果低於一場景變化門檻值,進行一第一自動對焦。於此場景變化結果符合一場景變化門檻值,進行一第二自動對焦。 According to the purpose of the present invention, an instant auto-focusing device is provided, which is suitable for an image capturing device having a lens, comprising: a detecting unit, configured to detect a shooting scene image, and obtain at least one scene change result. An auto-focus unit, wherein the scene change result is lower than a scene change threshold value, and a first auto-focus is performed. The result of the scene change conforms to a scene change threshold value, and a second auto focus is performed.

其中,此自動對焦單元進行此第一自動對焦時,係以一先前對焦結果作為一最佳鏡頭位置。 Wherein, when the autofocus unit performs the first autofocus, a previous focus result is used as an optimal lens position.

其中,本發明之即時自動對焦裝置,更包括:一確認單元,於此自動對焦單元進行此第一自動對焦時,計算鏡頭在一第一鏡頭位置時,對應此第一鏡頭位置之一第一影像高頻信號分量,得到一 第一信號值。此自動對焦單元移動此鏡頭至一第二鏡頭位置取得對應此第二鏡頭位置之一第二影像高頻信號分量,得到一第二信號值。此確認單元比較此第一信號值及此第二信號值。若此第一信號值大於此第二信號值,此自動對焦單元以此第一鏡頭位置為此最佳鏡頭位置。以及若該第一信號值不大於該第二信號值,此自動對焦單元重新移動此鏡頭至一重新對焦結果,進行此第二自動對焦。 The instant autofocus device of the present invention further includes: a confirmation unit, wherein when the autofocus unit performs the first autofocus, the lens is calculated to be one of the first lens positions when the lens is in a first lens position. Image high frequency signal component, get one The first signal value. The autofocus unit moves the lens to a second lens position to obtain a second image high frequency signal component corresponding to one of the second lens positions, to obtain a second signal value. The confirmation unit compares the first signal value with the second signal value. If the first signal value is greater than the second signal value, the autofocus unit uses the first lens position as the optimal lens position. And if the first signal value is not greater than the second signal value, the auto-focus unit moves the lens to a refocusing result to perform the second auto-focusing.

其中,此自動對焦單元係依爬山搜尋演算法重新移動此鏡頭至重新對焦結果,進行此第二自動對焦。 The auto-focus unit performs the second auto-focus by re-moving the lens to the refocusing result according to the climbing search algorithm.

其中,此偵測單元偵測此拍攝場景影像之步驟,包括:預視此拍攝場景影像,得到一第一總體影像。分割此第一總體影像為複數個第一區域影像。於一預設期間後,重新預視此拍攝場景,得到一第二總體影像,將此二總體影像分割為複數個第二區域影像。比對此第一總體影像及此第二總體影像,得到一總體移動結果。比對此第一區域影像及此第二區域影像,得到一局部移動結果。以此總體移動結果及此局部移動結果,決定此場景變化結果。 The detecting unit detects the image of the captured scene, and includes: previewing the captured scene image to obtain a first overall image. The first overall image is segmented into a plurality of first region images. After a preset period, the scene is re-previewed to obtain a second overall image, and the two overall images are divided into a plurality of second region images. An overall movement result is obtained for this first overall image and the second overall image. A partial movement result is obtained for this first area image and the second area image. Based on the overall movement result and the local movement result, the result of this scene change is determined.

本發明具有下述優點:若對焦環境無改變,不需要重新移動鏡頭做掃描了,以此提升對焦速度。 The invention has the following advantages: if the focus environment is unchanged, it is not necessary to re-move the lens for scanning, thereby improving the focusing speed.

透過先取得目前位置的對比值,再透過移動鏡頭較小步數,取得另一對比值,比較兩者大小做驗證,以再次確認(double confirm)之方式,決定對焦參數位置是否為最清楚位置,因只需移動較小步數,不用採取傳統對焦之重新掃描過程,因此可提升 對焦速度。 By first obtaining the contrast value of the current position, and then moving the smaller step of the lens, another contrast value is obtained, and the two sizes are compared for verification, and the double confirm is used to determine whether the focus parameter position is the clearest position. Because it only needs to move a small number of steps, it does not need to take the re-scanning process of the traditional focus, so it can be improved Focusing speed.

關於本發明之優點與精神可以藉由以下的發明詳述及所附圖式得到進一步的瞭解。 The advantages and spirit of the present invention will be further understood from the following detailed description of the invention.

101‧‧‧場景偵測單元 101‧‧‧ Scene Detection Unit

1011‧‧‧場景變化結果 1011‧‧‧ Scene change results

103‧‧‧自動對焦單元 103‧‧‧Autofocus unit

1031‧‧‧先前對焦結果 1031‧‧‧Previous focus results

1032‧‧‧重新對焦結果 1032‧‧‧Refocus results

105‧‧‧確認單元 105‧‧‧Confirmation unit

701‧‧‧預視單元 701‧‧‧Preview unit

7011‧‧‧第一總體影像 7011‧‧‧ first overall image

7012‧‧‧第二總體影像 7012‧‧‧ second overall image

702‧‧‧分割單元 702‧‧‧Dividing unit

7021‧‧‧第一區域影像 7021‧‧‧First area image

7022‧‧‧第二區域影像 7022‧‧‧Second area image

703‧‧‧比對單元 703‧‧‧ comparison unit

7031‧‧‧總體移動結果 7031‧‧‧ overall movement results

7032‧‧‧局部移動結果 7032‧‧‧Local movement results

704‧‧‧處理單元 704‧‧‧Processing unit

7041‧‧‧場景變化結果 7041‧‧‧ Scene change results

3C、3C’‧‧‧相機欲拍攝畫面 3C, 3C’‧‧‧ camera wants to take pictures

1001~1015‧‧‧區域影像 1001~1015‧‧‧Area image

1001A~1015A‧‧‧區域影像 1001A~1015A‧‧‧ regional image

S10、S12、S14、S15、S16、S18、S20、S22及S24‧‧‧步驟流程 S10, S12, S14, S15, S16, S18, S20, S22 and S24‧‧

第一圖為本發明之即時自動對焦方法之流程圖;第二圖為本發明之即時自動對焦方法之流程圖;第三圖為本發明之即時自動對焦裝置及其方法之一實施例示意圖;第四圖為本發明之即時自動對焦裝置及方法之另一實施例示意圖;第五圖為本發明之即時自動對焦裝置之方塊圖;以及第六圖為本發明之即時自動對焦裝置之方塊圖。 The first figure is a flowchart of the instant autofocus method of the present invention; the second figure is a flowchart of the instant autofocus method of the present invention; and the third figure is a schematic diagram of an embodiment of the instant autofocus device and method thereof according to the present invention; The fourth figure is a block diagram of another embodiment of the instant autofocus device and method of the present invention; the fifth figure is a block diagram of the instant autofocus device of the present invention; and the sixth figure is a block diagram of the instant autofocus device of the present invention. .

以下在實施方式中詳細敘述本發明之詳細特徵以及優點,其內容足以使任何熟習相關技藝者了解本發明之技術內容並據以實施,且根據本說明書所揭露之內容、申請專利範圍及圖式,任何熟習相關技藝者可輕易地理解本發明相關之目的及優點。 The detailed features and advantages of the present invention are set forth in the Detailed Description of the Detailed Description of the <RTIgt; </ RTI> <RTIgt; </ RTI> </ RTI> </ RTI> <RTIgt; The objects and advantages associated with the present invention can be readily understood by those skilled in the art.

以下參考圖示詳細說明本發明之即時自動對焦方法及其裝置,並且相同的元件及步驟係以相同的符號表示。 The instant autofocus method and apparatus of the present invention are described in detail below with reference to the drawings, and the same elements and steps are denoted by the same symbols.

請參閱第一圖,其繪示本發明之即時自動對焦方法之流程圖。圖中,本發明之即時自動對焦方法包括: 於步驟S10中,偵測一拍攝場景影像,得到至少一場景變化結果。於步驟S12,判斷場景變化結果與場景變化門檻值之關係。若此場景變化結果低於一場景變化門檻值,於步驟S14,進行一第一自動對焦。若此場景變化結果符合此場景變化門檻值,於步驟S15,則進行一第二自動對焦。 Please refer to the first figure, which illustrates a flow chart of the instant autofocus method of the present invention. In the figure, the instant autofocus method of the present invention comprises: In step S10, a scene image is detected to obtain at least one scene change result. In step S12, the relationship between the scene change result and the scene change threshold value is determined. If the scene change result is lower than a scene change threshold, in step S14, a first auto focus is performed. If the scene change result meets the scene change threshold value, in step S15, a second auto focus is performed.

其中,影像擷取裝置係依爬山搜尋演算法重新移動此鏡頭進行此第二自動對焦,而影像擷取裝置進行此第一自動對焦時,係以一先前對焦結果作為一最佳鏡頭位置。 The image capturing device moves the lens to perform the second autofocus according to the climbing search algorithm, and the image capturing device performs a first focusing result as an optimal lens position.

下面將以再一實例來說明本發明即時自動對焦方法的具體工作原理,請一併參閱第二圖、第三圖及第四圖。 The specific working principle of the instant autofocus method of the present invention will be described below by way of another example. Please refer to the second, third and fourth figures together.

於步驟S10中,利用偵測單元對一場景進行一總體移動偵測與一局部移動偵測,得到至少一場景變化結果。如第三圖所示,此為相機欲拍攝畫面3C,將此畫面分割為多個區域影像1001、1002、1003、1004、1005、1006、1007、1008、1009、1010、1011、1012、1013、1014、1015。場景偵測單元於一預設時間後,再行偵測相機欲拍攝畫面3C’,如第四圖所示,此畫面亦分割為多個區域影像1001A、1002A、1003A、1004A、1005A、1006A、1007A、1008A、1009A、1010A、1011A、1012A、1013A、1014A、1015A。若3C中之每一分割區域與3C’中之每一分割區域皆相同,則於步驟S12中認定此時之總體移動偵測結果和局部移動偵測結果皆低於場景變化門檻值。接著,於步驟S16中,於自動對焦單元進行第一自動對焦時,利用確認單元計算鏡頭在一第一鏡頭位置時,對應此第一鏡頭位置之一第一影像高頻信號分量,得到一第一信號值。於步驟S18中,利用自動對焦單元移動此鏡頭至一第二 鏡頭位置取得對應此第二鏡頭位置之一第二影像高頻信號分量,得到一第二信號值。最後於步驟S20中,以確認單元比較第一信號值及第二信號值。若第一信號值大於第二信號值(步驟S22),則於步驟S24中,自動對焦單元以第一鏡頭位置為此最佳鏡頭位置。 In step S10, the detection unit performs an overall motion detection and a partial motion detection on a scene to obtain at least one scene change result. As shown in the third figure, this is the camera to take a picture 3C, and divides the picture into a plurality of area images 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015. After the preset time, the scene detecting unit detects the camera to capture the picture 3C'. As shown in the fourth figure, the picture is also divided into multiple area images 1001A, 1002A, 1003A, 1004A, 1005A, 1006A, 1007A, 1008A, 1009A, 1010A, 1011A, 1012A, 1013A, 1014A, 1015A. If each of the divided regions in the 3C is the same as each of the divided regions in the 3C', it is determined in step S12 that the overall motion detection result and the local motion detection result are lower than the scene change threshold. Next, in step S16, when the autofocus unit performs the first autofocus, the confirmation unit calculates a first image high frequency signal component corresponding to one of the first lens positions when the lens is in the first lens position, and obtains a first A signal value. In step S18, the lens is moved to a second by the auto focus unit. The lens position obtains a second image high-frequency signal component corresponding to one of the second lens positions to obtain a second signal value. Finally, in step S20, the first signal value and the second signal value are compared by the confirming unit. If the first signal value is greater than the second signal value (step S22), then in step S24, the autofocus unit uses the first lens position as the optimal lens position.

本發明之即時自對焦裝置之實施例亦可為一數位相機或一智慧型手機,下面將以另一實例來說明本發明即時自動對焦裝置的具體工作原理。請一併參閱第三圖、第四圖、第五圖及第六圖。 The embodiment of the instant self-focusing device of the present invention can also be a digital camera or a smart phone. The specific working principle of the instant autofocus device of the present invention will be described below by another example. Please refer to the third, fourth, fifth and sixth figures together.

場景偵測單元101係用以對一場景進行一總體移動偵測與一局部移動偵測,得到至少一場景變化結果。其中場景偵測單元101包括:一預視單元701、一分割單元702、一比對單元703及一處理單元704。 The scene detecting unit 101 is configured to perform an overall motion detection and a partial motion detection on a scene to obtain at least one scene change result. The scene detecting unit 101 includes a preview unit 701, a dividing unit 702, a matching unit 703, and a processing unit 704.

預視單元701用於不同時間點預視拍攝場景影像,得到一第一總體影像7011及一第二總體影像7012。分割單元702,用於分割第一總體影像為複數個第一區域影像7021,並將二總體影像分割為複數個第二區域影像7022。比對單元703,用於比對第一總體影像7031及第二總體影像7032,得到一總體移動結果,並比對第一區域影像及第二區域影像,得到一局部移動結果。處理單元704,用於以總體移動結果及局部移動結果,決定場景變化結果7041。 The preview unit 701 is configured to preview a scene image at different time points to obtain a first overall image 7011 and a second overall image 7012. The dividing unit 702 is configured to divide the first overall image into a plurality of first region images 7021, and divide the two overall images into a plurality of second region images 7022. The comparing unit 703 is configured to compare the first overall image 7031 and the second overall image 7032 to obtain an overall moving result, and compare the first area image and the second area image to obtain a partial moving result. The processing unit 704 is configured to determine the scene change result 7041 by using the overall movement result and the local movement result.

如第三圖所示,此為相機欲拍攝畫面3C,將此畫面分割為多個區域影像1001、1002、1003、1004、1005、1006、1007、1008、1009、1010、1011、1012、1013、1014、1015。場景偵測單元於 一預設時間後,再行偵測相機欲拍攝畫面3C’,如第四圖所示,此畫面亦分割為多個區域影像1001A、1002A、1003A、1004A、1005A、1006A、1007A、1008A、1009A、1010A、1011A、1012A、1013A、1014A、1015A。若使用者在手持此智慧型手機拍照時,拿著手機在移動,因畫面一直改變,故所有的局部區域影像1001、1002、1003、1004、1005、1006、1007、1008、1009、1010、1011、1012、1013、1014、1015都在移動,3C中之每一分割區域與3C’中之每一分割區域皆不相同,場景偵測單元可判斷出畫面總體移動結果。此時之總體移動偵測結果和局部移動偵測結果皆符合場景變化門檻值。接著,利用自動對焦單元103,依一般爬山搜尋演算法進行第二自動對焦。 As shown in the third figure, this is the camera to take a picture 3C, and divides the picture into a plurality of area images 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015. Scene detection unit After a preset time, the camera is again detected to capture the picture 3C'. As shown in the fourth figure, the picture is also divided into multiple area images 1001A, 1002A, 1003A, 1004A, 1005A, 1006A, 1007A, 1008A, 1009A. , 1010A, 1011A, 1012A, 1013A, 1014A, 1015A. If the user is holding the mobile phone while taking a picture while holding the smart phone, since the picture changes all the time, all the partial area images 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011 The 1012, 1013, 1014, and 1015 are all moving, and each of the divided regions in the 3C is different from each of the divided regions in the 3C', and the scene detecting unit can determine the overall moving result of the screen. At this time, the overall motion detection result and the local motion detection result are consistent with the scene change threshold. Next, using the autofocus unit 103, the second autofocus is performed in accordance with the general hill climbing search algorithm.

下面將以再一實例來說明本發明即時自動對焦方法的具體工作原理。請一併參閱第二圖、第三圖、第四圖。請參閱第二圖,其繪示本發明之一種方法之流程圖。圖中,本發明之一種即時自動對焦方法包括:步驟S10,利用一偵測單元偵測一拍攝場景影像,得到至少一場景變化結果,若相機沒移動,但欲拍攝之畫面中有一小區域1013的物體在移動,則透過3C中之1013及3C’中之1013A區域之比對,偵測出一局部移動結果,並於步驟S12中,認定局部移動結果低於場景變化門檻值。於步驟S14中,利用自動對焦單元,依據一先前對焦參數,以不移動鏡頭之方式進行第一自動對焦。於自動對焦單元進行第一自動對焦時,於步驟S16中,利用確認單元計算鏡頭在一第一鏡頭位置時,對應此第一鏡頭位置之一第一影像高頻信號分量,得到第一信號值,接著,在步驟S18中利用自動對焦單元移動鏡頭至第二鏡頭位置取得對應第 二鏡頭位置之一第二影像高頻信號分量,得到第二信號值,並於步驟S20中,利用確認單元比較第一信號值及第二信號值,以第一信號值大於第二信號值(步驟S22),於步驟S24中,決定利用自動對焦單元以第一鏡頭位置為最佳鏡頭位置。 The specific working principle of the instant autofocus method of the present invention will be described below with still another example. Please refer to the second, third and fourth figures together. Please refer to the second figure, which shows a flow chart of a method of the present invention. In the figure, an instant autofocus method of the present invention includes: in step S10, detecting a scene image by using a detecting unit to obtain at least one scene change result, if the camera does not move, but there is a small area 1013 in the picture to be shot. When the object is moving, a partial movement result is detected through the comparison of 1013A in 10C and 3C' in 3C', and in step S12, the local movement result is determined to be lower than the scene change threshold. In step S14, the first autofocus is performed in a manner that does not move the lens according to a previous focus parameter by using the autofocus unit. When the autofocus unit performs the first autofocus, in step S16, the confirmation unit calculates a first signal high frequency signal component corresponding to one of the first lens positions when the lens is in the first lens position, and obtains the first signal value. Then, in step S18, the autofocus unit is used to move the lens to the second lens position to obtain a corresponding first a second image high-frequency signal component of the second lens position obtains a second signal value, and in step S20, the first signal value and the second signal value are compared by the confirming unit, so that the first signal value is greater than the second signal value ( Step S22), in step S24, it is decided to use the autofocus unit to take the first lens position as the optimal lens position.

若相機雖無移動,但畫面中之物體正在大範圍地快速移動之情形,則透過3C中之1013及3C’中之1013A區域之比對,偵測出一局部移動結果,此局部移動結果符合預設之場景變化門檻值,則於步驟S15中,依爬山搜尋演算法,利用自動對焦單元重新移動鏡頭至一重新對焦結果,進行第二自動對焦。 If the camera does not move, but the object in the picture is moving rapidly in a wide range, through the comparison of 1013A in 10C and 3C' in 3C, a partial movement result is detected, and the local movement result is consistent. The preset scene change threshold value is, in step S15, the second auto-focus is performed by using the auto-focus unit to re-move the lens to a refocus result according to the hill-climbing search algorithm.

綜上所述,本發明之實施例在自動對焦過程說明中,最佳鏡頭位置以及重新對焦結果皆是指本發明之即時自動對焦方法中自動對焦後的鏡頭位置。先前對焦結果與最佳鏡頭位置係使用者在先後時間點進行對焦的鏡頭位置。 In summary, in the autofocus process description, the optimal lens position and the refocusing result refer to the lens position after autofocus in the instant autofocus method of the present invention. The previous focus result and the optimal lens position are the lens positions at which the user focuses at successive time points.

以上所述係藉由實施例說明本發明之特點,其目的在於使熟習技術者能了解本發明之內容並據以實施,而非限定本發明之專利範圍,故,凡其他未能脫離本發明所揭示之精神所完成之等校修飾或修改,仍應包含在以下所述之專利範圍中 The above description of the present invention is intended to be illustrative of the present invention, and it is intended that the skilled in the art can understand the invention and practice the invention without limiting the scope of the invention. Modifications or modifications made by the spirit of the disclosure shall remain in the scope of the patents described below.

101‧‧‧偵測單元 101‧‧‧Detection unit

103‧‧‧自動對焦單元 103‧‧‧Autofocus unit

105‧‧‧確認單元 105‧‧‧Confirmation unit

1011‧‧‧場景變化結果 1011‧‧‧ Scene change results

1031‧‧‧第一自動對焦 1031‧‧‧First autofocus

1032‧‧‧第二自動對焦 1032‧‧‧Second autofocus

Claims (8)

一種即時自動對焦方法,適用於具有一鏡頭之一影像擷取裝置,包括:利用一偵測單元偵測一拍攝場景影像,得到至少一場景變化結果;若該場景變化結果低於一場景變化門檻值,利用一自動對焦單元進行一第一自動對焦;以及若該場景變化結果符合該場景變化門檻值,則利用該自動對焦單元進行一第二自動對焦;其中,於該自動對焦單元進行該第一自動對焦時,利用一確認單元,計算該鏡頭在一第一鏡頭位置時,對應一第一鏡頭位置之一第一影像高頻信號分量,得到一第一信號值,利用該自動對焦單元移動該鏡頭至一第二鏡頭位置取得對應該第二鏡頭位置之一第二影像高頻信號分量,得到一第二信號值,利用該確認單元比較該第一信號值及該第二信號值,若該第一信號值大於該第二信號值,利用該自動對焦單元以該第一鏡頭位置為該最佳鏡頭位置,若該第一信號值不大於該第二信號值,利用該自動對焦單元進行該第二自動對焦。 An instant autofocusing method, which is applicable to an image capturing device having a lens, comprising: detecting a shooting scene image by using a detecting unit to obtain at least one scene change result; if the scene change result is lower than a scene change threshold a first autofocus using an autofocus unit; and if the scene change result meets the scene change threshold, the autofocus unit performs a second autofocus; wherein the autofocus unit performs the first In an auto-focusing manner, a confirmation unit is used to calculate a first image high-frequency signal component corresponding to one of the first lens positions when the lens is in a first lens position, and a first signal value is obtained, and the auto-focus unit is used to move. Obtaining, by the lens to a second lens position, a second image high frequency signal component corresponding to one of the second lens positions, to obtain a second signal value, and comparing the first signal value and the second signal value by using the confirming unit, The first signal value is greater than the second signal value, and the first lens position is used as the optimal lens position by using the autofocus unit , If the first signal value is not larger than the second signal value, with which the second AF AF unit. 如專利申請範圍第1項所述之即時自動對焦方法,其中利用該自動對焦單元進行該第一自動對焦時,係以一先前對焦結果作為一最佳鏡頭位置。 The instant autofocus method of claim 1, wherein when the first autofocus is performed by the autofocus unit, a previous focus result is used as an optimal lens position. 如專利申請範圍第1項所述之即時自動對焦方法,其中該自動對 焦單元於進行該第二自動對焦時,係依一爬山搜尋演算法(mountain-climbing search algorithm)重新移動該鏡頭至一重新對焦結果。 An instant autofocus method as described in claim 1, wherein the automatic pairing When the focus unit performs the second autofocus, the lens is re-moved to a refocusing result according to a mountain-climbing search algorithm. 如專利申請範圍第1項所述之即時自動對焦方法,其中該偵測單元偵測該拍攝場景影像之步驟,包括:利用一預視單元預視該拍攝場景影像,得到一第一總體影像;利用一分割單元分割該第一總體影像為複數個第一區域影像;於一預設期間後,利用該預視單元重新預視該拍攝場景,得到一第二總體影像,利用該分割單元將該二總體影像分割為複數個第二區域影像;利用一比對單元比對該第一總體影像及該第二總體影像,得到一總體移動結果;利用該比對單元比對該第一區域影像及該第二區域影像,得到一局部移動結果;利用一處理單元,以該總體移動結果及該局部移動結果,決定該場景變化結果。 The method of the present invention, wherein the detecting unit detects the image of the captured scene, comprising: pre-viewing the captured scene image by using a preview unit to obtain a first overall image; Dividing the first overall image into a plurality of first area images by using a dividing unit; after a preset period, using the preview unit to re-view the shooting scene to obtain a second overall image, and using the dividing unit The second image is divided into a plurality of second region images; the first overall image and the second overall image are compared by an alignment unit to obtain an overall moving result; and the comparison unit is used to compare the first region image and The second region image obtains a partial movement result; and the processing unit determines the scene change result by using the processing unit and the local movement result. 一種即時自動對焦裝置,適用於具有一鏡頭之影像擷取裝置,包括:一偵測單元,用於偵測一拍攝場景影像,得到至少一場景變化結果;一自動對焦單元,於該場景變化結果低於一場景變化門檻值,進行一第一自動對焦,或於該場景變化結果符合一場景變化門檻值,進行一第二自動對焦;以及一確認單元,於該自動對焦單元進行該第一自動對焦時,計算該鏡頭在一第一鏡頭位置時,對應該第一鏡頭位置之一第一影像高 頻信號分量,得到一第一信號值,該自動對焦單元移動該鏡頭至一第二鏡頭位置取得對應該第二鏡頭位置之一第二影像高頻信號分量,得到一第二信號值,該確認單元比較該第一信號值及該第二信號值,若該第一信號值大於該第二信號值,該自動對焦單元以該第一鏡頭位置為該最佳鏡頭位置,若該第一信號值不大於該第二信號值,該自動對焦單元進行該第二自動對焦。 An instant autofocus device is applicable to an image capturing device having a lens, comprising: a detecting unit for detecting a shooting scene image to obtain at least one scene change result; and an auto focus unit for changing the result in the scene Lowering a threshold value of a scene, performing a first autofocus, or performing a second autofocus on the scene change threshold according to a scene change threshold; and a confirming unit, performing the first auto on the autofocus unit When focusing, when the lens is in a first lens position, the first image corresponding to one of the first lens positions is high. Frequency signal component, obtaining a first signal value, the autofocus unit moves the lens to a second lens position to obtain a second image high frequency signal component corresponding to one of the second lens positions, to obtain a second signal value, the confirmation The unit compares the first signal value and the second signal value. If the first signal value is greater than the second signal value, the autofocus unit uses the first lens position as the optimal lens position, if the first signal value The autofocus unit performs the second autofocus not greater than the second signal value. 如專利申請範圍第5項所述之即時自動對焦裝置,其中該自動對焦單元進行該第一自動對焦時,係以一先前對焦結果作為一最佳鏡頭位置。 The instant autofocus device of claim 5, wherein the autofocus unit performs the first autofocus as a preferred lens position. 如專利申請範圍第5項所述之即時自動對焦裝置,其中該自動對焦單元進行該第二自動對焦時,係依一爬山搜尋演算法重新移動該鏡頭至一重新對焦結果。 The instant autofocus device of claim 5, wherein when the autofocus unit performs the second autofocus, the lens is re-moved to a refocusing result according to a hill climbing search algorithm. 如專利申請範圍第5項所述之即時自動對焦裝置,其中該偵測單元包括:一預視單元,用於不同時間點預視該拍攝場景影像,得到一第一總體影像及一第二總體影像;一分割單元,用於分割該第一總體影像為複數個第一區域影像,並將該二總體影像分割為複數個第二區域影像;一比對單元,用於比對該第一總體影像及該第二總體影像,得到一總體移動結果,並比對該第一區域影像及該第二區域影像,得到一局部移動結果;一處理單元,用於以該總體移動結果及該局部移動結果,決定該場景變化結果。 The instant autofocus device of claim 5, wherein the detecting unit comprises: a pre-viewing unit for pre-viewing the captured scene image at different time points to obtain a first overall image and a second overall a segmentation unit, configured to divide the first overall image into a plurality of first region images, and divide the two overall images into a plurality of second region images; and a comparison unit for comparing the first population The image and the second overall image obtain an overall movement result, and obtain a partial movement result compared to the first area image and the second area image; a processing unit is configured to use the overall movement result and the local movement As a result, the result of the scene change is determined.
TW101126444A 2012-07-23 2012-07-23 Real-time auto-focus apparatus and method thereof TWI465790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101126444A TWI465790B (en) 2012-07-23 2012-07-23 Real-time auto-focus apparatus and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101126444A TWI465790B (en) 2012-07-23 2012-07-23 Real-time auto-focus apparatus and method thereof

Publications (2)

Publication Number Publication Date
TW201405192A TW201405192A (en) 2014-02-01
TWI465790B true TWI465790B (en) 2014-12-21

Family

ID=50549987

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101126444A TWI465790B (en) 2012-07-23 2012-07-23 Real-time auto-focus apparatus and method thereof

Country Status (1)

Country Link
TW (1) TWI465790B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112203092B (en) * 2020-09-27 2024-01-30 深圳市梦网视讯有限公司 Code stream analysis method, system and equipment for global motion scene

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070230930A1 (en) * 2006-02-03 2007-10-04 Benq Corporation Methods and systems for automatic image acquisition
TWI339308B (en) * 2007-07-20 2011-03-21 Hon Hai Prec Ind Co Ltd Auto-focusing system and auto-focusing method
TW201111893A (en) * 2009-09-16 2011-04-01 Altek Corp Continuous focusing method for a digital camera
US7969501B2 (en) * 2007-05-01 2011-06-28 Samsung Electronics Co., Ltd. Method and apparatus for auto-focusing in image sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070230930A1 (en) * 2006-02-03 2007-10-04 Benq Corporation Methods and systems for automatic image acquisition
US7969501B2 (en) * 2007-05-01 2011-06-28 Samsung Electronics Co., Ltd. Method and apparatus for auto-focusing in image sensor
TWI339308B (en) * 2007-07-20 2011-03-21 Hon Hai Prec Ind Co Ltd Auto-focusing system and auto-focusing method
TW201111893A (en) * 2009-09-16 2011-04-01 Altek Corp Continuous focusing method for a digital camera

Also Published As

Publication number Publication date
TW201405192A (en) 2014-02-01

Similar Documents

Publication Publication Date Title
US10462374B2 (en) Zooming control apparatus, image capturing apparatus and control methods thereof
TWI432870B (en) Image processing system and automatic focusing method
EP3151536B1 (en) Image capturing terminal and image capturing method
KR101503333B1 (en) Image capturing apparatus and control method thereof
WO2015180510A1 (en) Image capturing terminal and image capturing method
WO2017167116A1 (en) Automatic-focus method and automatic-focus device
WO2014153950A1 (en) Quick automatic focusing method and image acquisition device
TW201400964A (en) Enhanced image processing with lens motion
JP2009069830A (en) Auto-focus method and device of image-capturing apparatus
JP4907740B2 (en) Imaging device
CN106031148B (en) Imaging device, method of auto-focusing in an imaging device and corresponding computer program
TWI413846B (en) Continuous focus method of digital camera
JP6548437B2 (en) Focusing apparatus, control method therefor, control program, and imaging apparatus
US20100026819A1 (en) Method and apparatus for compensating for motion of an autofocus area, and autofocusing method and apparatus using the same
US8294810B2 (en) Assisting focusing method for face block
KR101038815B1 (en) Image capture system capable of fast auto focus
TWI465790B (en) Real-time auto-focus apparatus and method thereof
TW201236448A (en) Auto-focusing camera and method for automatically focusing of the camera
TWI542857B (en) Electronic device with distance detection function and method thereof
JP2019032370A (en) Imaging device and control method thereof
US20140029929A1 (en) Auto-focus method
KR101756274B1 (en) Monitoring camera and operating method thereof
JP6592881B2 (en) Surface detection method, surface detection device, and imaging device
TWI423661B (en) Face block assisted focus method
JP2012010006A (en) Imaging apparatus

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees