TWI407235B - Auto focus system and method same - Google Patents

Auto focus system and method same Download PDF

Info

Publication number
TWI407235B
TWI407235B TW98124655A TW98124655A TWI407235B TW I407235 B TWI407235 B TW I407235B TW 98124655 A TW98124655 A TW 98124655A TW 98124655 A TW98124655 A TW 98124655A TW I407235 B TWI407235 B TW I407235B
Authority
TW
Taiwan
Prior art keywords
module
focus
steps
starting position
contrast
Prior art date
Application number
TW98124655A
Other languages
Chinese (zh)
Other versions
TW201104332A (en
Inventor
Chia Nan Shih
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW98124655A priority Critical patent/TWI407235B/en
Publication of TW201104332A publication Critical patent/TW201104332A/en
Application granted granted Critical
Publication of TWI407235B publication Critical patent/TWI407235B/en

Links

Abstract

An auto focus system including: a focusing lens configured to move in a focusing area; a judgment module configured to contrast a current position and an initial position of the focusing lens, and judging that whether the distant between the current position and the initial position greater than 48 steps; a controlling module choosing an auto focus mode according to the result of the judgment module; when the distant between the current position and the initial position greater than 48 steps, the controlling module controls the focusing lens to move toward to the initial position; a contrasting module contrasting the contrast value of the first three images from the current position to the initial position. If the contrast value of the first three images decreases in order, the controlling module controls the focusing lens to reverse move away from the initial position to find out the optimal focus position. In other conditions, the focusing lens is fast move to the initial position, then reverse move away from the initial position and find out the optimal focus position.

Description

自動對焦系統及方法 Autofocus system and method

本發明系關於一種攝像技術,特別涉及一種自動對焦系統及自動對焦方法。 The invention relates to a camera technology, in particular to an auto focus system and an auto focus method.

先前技術中,數碼相機在進行對焦時,是利用步進馬達將鏡頭內之對焦模組前後移動(所移動之距離以步數來表示),由影像感測元件(如電荷耦合組件)接收透過對焦模組之光線,並通過數字訊號處理器計算對焦模組在對比值最大時所對應之對焦點。 In the prior art, when a digital camera focuses, a stepping motor is used to move the focus module in the lens back and forth (the distance moved is expressed in steps), and is received by the image sensing component (such as a charge coupled component). Focusing on the light of the module, and using the digital signal processor to calculate the focus point corresponding to the focus module when the contrast value is maximum.

先前之數碼相機在進行自動對焦時,不論當前位置與初始位置所差步數為多少,都會將對焦模組移動至初始位置,然後沿遠離初始位置的方向移動對焦模組並對影像感測元件採集之每幀圖像之對比值進行比較,以找到對比值最大時對焦模組所對應之對焦點。另外一種對焦方法是直接將對焦模組從當前位置移動至下一對焦位置,根據所產生起始位置及下一對焦位置所採集圖像之對比值,當對比值增加時繼續沿相同方向移動對焦模組並比較所採集之圖像之對比值,當所採集圖像之對比值減小時,就反方向移動對焦模組以找到最佳對焦點;當對比值減小時就反方向移動對焦模組並比較所採集 之圖像之對比值,當所採集圖像之對比值減小時,就再次反方向移動對焦模組以找到最佳對焦點。然而,這兩種自動對焦方法在對焦模組所處之當前位置不同時,自動對焦速度也各有優勢。如果只單純使用其中一種自動對焦方法,將使得對焦所需花費之時間過長,以致影響數碼相機之效能。 When the previous digital camera performs autofocus, regardless of the number of steps between the current position and the initial position, the focus module is moved to the initial position, and then the focus module is moved away from the initial position and the image sensing element is moved. The comparison values of each frame of the image are compared to find the focus point corresponding to the focus module when the contrast value is maximum. Another method of focusing is to directly move the focus module from the current position to the next focus position, and according to the contrast value of the image acquired by the generated start position and the next focus position, continue to move the focus in the same direction when the contrast value increases. The module compares the contrast values of the acquired images. When the contrast value of the acquired images decreases, the focus module is moved in the opposite direction to find the best focus point; when the contrast value decreases, the focus module is moved in the opposite direction. And compare the collected The contrast value of the image, when the contrast value of the acquired image is reduced, the focus module is moved again in the opposite direction to find the best focus point. However, these two autofocus methods also have an advantage in autofocus speed when the current position of the focus module is different. If you only use one of the autofocus methods, it will take too long to focus, which will affect the performance of your digital camera.

有鑑於此,有必要提供一種可根據對焦模組當前位置選擇對焦方式之自動對焦系統及自動對焦方法。 In view of this, it is necessary to provide an autofocus system and an autofocus method that can select a focus mode according to the current position of the focus module.

一種自動對焦系統,其包括一對焦模組、一判斷模組、一控制模組及一對比模組;對焦模組用於調焦;判斷模組判斷對焦模組之當前位置與起始位置所對應之步數之差是否大於48步;控制模組根據判斷結果選擇對焦方式;當步數之差大於48步,控制模組控制對焦模組向起始位置方向運動,對比模組對從當前位置起連續採集之三幀圖像之對比值進行比較;當對比值依次減小時,沿背離起始位置方向移動對焦模組,並對所採集之圖像之對比值進行比較以找到最大對比值對應之對焦點進行圖像拍攝;當所採集之連續三幀圖像之前兩偵圖像之對比值增大或當前位置與起始位置所對應之步數之差小於48步時,控制對焦模組快速返回起始位置,再沿背離起始位置方向移動並對所採集之圖像之對比值進行比較,以找到最大對比值之對焦點進行圖像拍攝。 An autofocus system includes a focus module, a determination module, a control module and a contrast module; a focus module is used for focusing; and a determination module determines a current position and a starting position of the focus module Whether the difference between the corresponding steps is greater than 48 steps; the control module selects the focus mode according to the judgment result; when the difference of the steps is greater than 48 steps, the control module controls the focus module to move toward the starting position, and the comparison module pairs are from the current The position is compared with the comparison value of the three consecutive images collected; when the contrast value is sequentially decreased, the focus module is moved away from the starting position, and the contrast values of the collected images are compared to find the maximum contrast value. The corresponding focus point is image-captured; when the contrast value of the two detected images is increased or the difference between the current position and the number of steps corresponding to the starting position is less than 48 steps, the focus mode is controlled. The group quickly returns to the starting position, then moves away from the starting position and compares the contrast values of the acquired images to find the focus of the largest contrast value for image capturing.

一種自動對焦方法,其包括以下步驟:判斷對焦模組之當前位置與起始位置所對應之步數之差是否 大於48步;如果步數之差大於48步,對焦模組向起始位置方向運動並從當前位置起連續採集三幀圖像;判斷連續採集之三幀圖像之對比值是否依次減小;如果對比值依次減小,就沿背離起始位置方向移動對焦模組,並對每幀圖像之對比值進行比較,以找到最大對比值對應之對焦點進行圖像拍攝;當所採集之連續三幀圖像之前兩偵圖像之對比值增大或當前位置與起始位置所對應之步數之差小於48步時,控制對焦模組快速返回起始位置,再沿背離起始位置方向移動並對所採集之圖像之對比值進行比較,以找到最大對比值之對焦點進行圖像拍攝。 An autofocus method includes the steps of: determining whether a difference between a current position of a focus module and a starting position is More than 48 steps; if the difference between the steps is greater than 48 steps, the focus module moves toward the starting position and continuously acquires three frames of images from the current position; and determines whether the contrast values of the three consecutively collected images are sequentially decreased; If the contrast value is sequentially decreased, the focus module is moved away from the starting position, and the contrast value of each frame image is compared to find the focus point corresponding to the maximum contrast value for image capturing; when the collected is continuous When the contrast value of the two detected images increases before the three frames of images or the difference between the current position and the number of steps corresponding to the starting position is less than 48 steps, the focus control module is quickly returned to the starting position, and then the direction is away from the starting position. Move and compare the contrast values of the acquired images to find the focus of the largest contrast value for image capture.

與先前技術相比,本發明提供之自動對焦系統及方法通過判斷當前位置與起始位置所差之垂直同步周期以選擇自動對焦方式,從而有效提高了對焦速度,節省了對焦時間。 Compared with the prior art, the autofocus system and method provided by the present invention selects the autofocus mode by judging the vertical synchronization period of the difference between the current position and the starting position, thereby effectively improving the focusing speed and saving the focusing time.

100‧‧‧自動對焦系統 100‧‧‧Auto Focus System

10‧‧‧對焦模組 10‧‧‧ Focus Module

20‧‧‧判斷模組 20‧‧‧Judgement module

30‧‧‧控制模組 30‧‧‧Control Module

40‧‧‧對比模組 40‧‧‧Comparative module

圖1係本發明實施方式提供之自動對焦系統之功能模組示意圖。 FIG. 1 is a schematic diagram of functional modules of an autofocus system according to an embodiment of the present invention.

圖2係圖1中自動對焦系統之對焦步數與對比值對應關係之示意圖。 FIG. 2 is a schematic diagram showing the correspondence between the number of focusing steps and the contrast value of the autofocus system in FIG. 1. FIG.

圖3係本發明實施方式提供之自動對焦方法之流程圖。 3 is a flow chart of an autofocus method provided by an embodiment of the present invention.

下面將結合附圖與實施例對本技術方案作進一步詳細說明。 The technical solution will be further described in detail below with reference to the accompanying drawings and embodiments.

如圖1所示,為本發明實施方式提供之一種自動對焦系統100,其包括一對焦模組10、一判斷模組20、一控制模組30及一對比模組40。 As shown in FIG. 1 , an autofocus system 100 according to an embodiment of the present invention includes a focus module 10 , a determination module 20 , a control module 30 , and a comparison module 40 .

所述對焦模組10用於在對焦區域內移動,使被拍攝景物在影像感測元件上成像最清晰。所述對焦模組10在每一個垂直同步周期內運行12步,所述影像感測元件在採集圖像時,所述對焦模組10在一個垂直同步周期內運行所需時間為1/30s;當不採集圖像而快速移動時,所述對焦模組10在一個垂直同步周期內移動所需時間為12ms。所述垂直同步周期為影像感測元件採集一次影像信號的時間。可以理解,所述對焦模組10在一個垂直同步周期內所走的步數也可設定為其他步數。 The focus module 10 is configured to move within the focus area to make the captured scene image the clearest on the image sensing element. The focus module 10 runs 12 steps in each vertical synchronization period. When the image sensing component captures an image, the time required for the focus module 10 to operate in a vertical synchronization period is 1/30 s; When the image is moved quickly without acquiring an image, the time required for the focus module 10 to move in one vertical synchronization period is 12 ms. The vertical synchronization period is a time when the image sensing component acquires an image signal once. It can be understood that the number of steps taken by the focus module 10 in one vertical synchronization period can also be set to other steps.

所述判斷模組20用於判斷對焦模組10之當前位置與起始位置所對應之步數之差是否大於48步,所述48步為對焦模組10在4個垂直同步周期內所走步數。 The determining module 20 is configured to determine whether the difference between the current position of the focus module 10 and the starting position is greater than 48 steps, and the 48 steps are performed by the focusing module 10 in four vertical synchronization periods. Step count.

所述控制模組30用於根據判斷模組20之判斷結果以選擇自動對焦方式,並控制對焦模組10移動。當對焦模組10之當前位置與起始位置對應之步數之差小於48步時,所述控制模組30控制對焦模組10快速移動到起始位置,然後再控制所述對焦模組10沿遠離所述起始位置移動採集每個垂直同步周期內之圖像。當對焦模組10之當前位置與起始位置所對應之步數之差大於48步時,所述控制模組30控制對焦模組10從當前位置 沿靠近起始位置之方向移動,所述影像感測元件採集包括當前位置及從當前位置起兩個垂直同步周期內之連續三幀圖像。 The control module 30 is configured to select an auto focus mode according to the determination result of the determination module 20 and control the movement of the focus module 10 . When the difference between the current position of the focus module 10 and the starting position is less than 48 steps, the control module 30 controls the focus module 10 to quickly move to the starting position, and then controls the focusing module 10 The image within each vertical sync period is acquired moving away from the starting position. When the difference between the current position of the focus module 10 and the starting position is greater than 48 steps, the control module 30 controls the focus module 10 from the current position. Moving in a direction near the home position, the image sensing element captures three consecutive frames of images including the current position and two vertical sync periods from the current position.

所述對比模組40用於對所採集之圖像之對比值進行比對。當對焦模組10之當前位置與起始位置對應之步數之差在48步以內時,所述對比模組40從起始位置起對對焦模組10在每個垂直同步周期內移動過程中所採集之圖像之對比值進行分析,並記錄下對比值最大時對焦模組10之位置所對應之步數;直到採集之圖像之對比值減小時,所述控制模組30直接控制所述對焦模組10快速返回對比值最大位置處。當對焦模組10之當前位置與起始位置所對應之步數之差大於48步時,所述對比模組40對所採集之從當前位置起之連續三幀圖像之對比值進行對比,當前三幀圖像之對比值依次減小時,所述控制模組30控制對焦模組10沿背離起始位置方向移動並採集每個垂直同步周期內之圖像,並對所採集之圖像之對比值進行比對,當採集之圖像之對比值減小時,所述控制模組30直接控制所述對焦模組10快速返回對比值最大位置處;當連續採集之三幀圖像之前兩幀圖像之對比值增大時,所述控制模組30直接控制所述對焦模組10快速返回起始位置,然後再沿背離起始位置的方向移動對焦模組10並採集每個垂直同步周期內之圖像之對比值進行分析,並記錄下對比值最大位置所對應之步數,當採集之圖像之對比值減小時,所述控制模組30直接控制所述對焦模組10快速返回對比值最大位置處。 The comparison module 40 is configured to compare the contrast values of the acquired images. When the difference between the current position of the focus module 10 and the starting position is within 48 steps, the comparison module 40 moves the focus module 10 during each vertical synchronization period from the starting position. The contrast value of the collected image is analyzed, and the number of steps corresponding to the position of the focus module 10 when the contrast value is maximum is recorded; until the contrast value of the collected image is decreased, the control module 30 directly controls the The focusing module 10 quickly returns to the maximum position of the contrast value. When the difference between the current position of the focus module 10 and the starting position is greater than 48 steps, the comparison module 40 compares the collected values of the consecutive three frames of images from the current position. When the comparison values of the current three frames of images are sequentially decreased, the control module 30 controls the focus module 10 to move away from the starting position and collect images in each vertical synchronization period, and the acquired images are The comparison value is compared. When the contrast value of the captured image is decreased, the control module 30 directly controls the focus module 10 to quickly return to the maximum position of the contrast value; two frames before the three consecutive frames are continuously acquired. When the contrast value of the image is increased, the control module 30 directly controls the focus module 10 to quickly return to the starting position, and then moves the focusing module 10 in a direction away from the starting position and collects each vertical synchronization period. The comparison value of the image in the image is analyzed, and the number of steps corresponding to the maximum position of the contrast value is recorded. When the contrast value of the captured image is decreased, the control module 30 directly controls the focus module 10 to quickly return. Maximum contrast value At home.

如圖2所示,所述對焦模組10之起始位置為1104步位置處,其對焦區間為1104-1248步之間。當對焦模組10之當前位置位於1140步位置處時,所述判斷模組20將對焦模組10當前位置所對應之1140步與起始位置所對應之1104步進行比較,得出位置之差小於48步;所述控制模組30直接控制對焦模組10快速返回起始位置1104處,然後沿背離起始位置方向移動對焦模組10,所述對比模組40對對焦模組10在每個垂直同步周期內移動過程中所採集之圖像之對比值進行分析,並記錄下對比值最大位置所對應之步數為1212;當採集到1236步位置處時發現採集之圖像之對比值減小,所述控制模組30直接控制所述對焦模組10快速返回到1212步位置處。當對焦模組10之當前位置位於1200位置處時,所述判斷模組20將對焦模組10當前位置所對應之1200步與起始位置所對應之1104步進行比較,得出位置之差大於48步;沿起始位置方向移動對焦模組10,並連續採集從當前位置起兩個垂直同步周期內所對應之1200步,1188步及1176步之圖像;所述對比模組40對所採集圖像之對比值進行比較,判斷出對比值依次減小,控制模組30則控制對焦模組10沿背離起始位置方向移動並採集圖像;當採集到1236步位置處時發現採集之兩幀圖像之對比值減小,所述控制模組30直接控制所述對焦模組10快速返回到1212步位置處。當前位置位於1236位置處時,所述判斷模組20將對焦模組10當前位置所對應之1236步與起始位置所對應之1104步進行比較,得出位置之差大於48步;沿起始位置方向移動對焦模組10,並採集從當前位置起兩個垂直同步周期 內所對應之1236步,1224步及1212步之圖像;所述對比模組40對所採集圖像之對比值進行比較,判斷出連續採集之三幀圖像之前兩偵圖像之對比值增大時,控制模組30則控制對焦模組10快速移動到起始位置1104處,然後沿背離起始位置方向移動對焦模組10並採集每一垂直同步周期內之圖像;當採集到1236步位置處時發現採集之圖像之對比值減小,所述控制模組30直接控制所述對焦模組10快速返回到1212步位置處。 As shown in FIG. 2, the starting position of the focus module 10 is at position 1104, and the focus interval is between 1104-1248 steps. When the current position of the focus module 10 is at the position of step 1140, the determining module 20 compares the step 1140 corresponding to the current position of the focus module 10 with the step 1104 corresponding to the starting position, and obtains the difference between the positions. The control module 30 directly controls the focus module 10 to quickly return to the starting position 1104, and then moves the focusing module 10 in a direction away from the starting position, and the comparing module 40 pairs the focusing module 10 at each The contrast value of the images collected during the vertical synchronization period is analyzed, and the number of steps corresponding to the maximum position of the contrast value is recorded as 1212; when the position of 1236 steps is collected, the contrast value of the collected image is found. The control module 30 directly controls the focus module 10 to quickly return to the 1212 step position. When the current position of the focus module 10 is at the position of 1200, the determining module 20 compares the 1200 steps corresponding to the current position of the focus module 10 with the step 1104 corresponding to the starting position, and the difference between the positions is greater than 48 steps; moving the focus module 10 along the starting position direction, and continuously collecting images of 1200 steps, 1188 steps and 1176 steps corresponding to two vertical synchronization periods from the current position; the comparison module 40 is opposite The comparison values of the collected images are compared to determine that the contrast values are sequentially decreased, and the control module 30 controls the focus module 10 to move away from the starting position and collect images; when the position of 1236 steps is collected, the collection is found. The comparison value of the two frames of images is reduced, and the control module 30 directly controls the focus module 10 to quickly return to the position of step 1212. When the current position is at the position of 1236, the determining module 20 compares the step 1236 corresponding to the current position of the focus module 10 with the step 1104 corresponding to the starting position, and obtains that the difference between the positions is greater than 48 steps; Moving the focus module 10 in the position direction and collecting two vertical synchronization periods from the current position Corresponding to the image of step 1236, step 1224 and step 1212; the comparison module 40 compares the contrast values of the acquired images to determine the contrast value of the two detected images before the three consecutive frames are continuously acquired. When increasing, the control module 30 controls the focus module 10 to quickly move to the starting position 1104, and then moves the focusing module 10 in a direction away from the starting position and acquires an image in each vertical synchronization period; When the position of the 1236 step is found, the comparison value of the collected image is reduced, and the control module 30 directly controls the focus module 10 to quickly return to the position of step 1212.

如圖3所示,本發明還提供一種自動對焦方法,其包括以下步驟:S101:判斷對焦模組10之當前位置與起始位置所對應之步數之差是否大於48步;S102:如果步數之差大於48步,對焦模組10向起始位置方向運動並對從當前位置起之連續三幀圖像進行採集;S103:判斷連續採集之三幀圖像之對比值是否依次減小;S104:如果對比值依次減小,就沿背離起始位置方向移動對焦模組10,並對每幀圖像之對比值進行比較,以找到最大對比值對應之對焦點;所述對焦模組10沿背離起始位置方向移動過程中,所述對比模組10對所採集之每一幀圖像之對比值進行比較,並記錄下最大對比值所對應之位置;當採集之圖像之對比值減小時,控制所述對焦模組10快速返回對比值最大位置處; S201:當所採集之連續三幀圖像之前兩偵圖像之對比值增大或當前位置與起始位置所對應之步數之差小於48步時,控制對焦模組10快速返回起始位置,再沿背離起始位置方向移動並對所採集之圖像之對比值進行比較以找到最大對比值之對焦點;所述對焦模組10沿背離起始位置方向移動過程中,所述對比模組10對所採集之每一幀圖像之對比值進行比較,並記錄下最大對比值所對應之位置;當所述對焦模組10快速移動時,不採集圖像。 As shown in FIG. 3, the present invention further provides an autofocus method, including the following steps: S101: determining whether a difference between a current position of a focus module 10 and a starting position is greater than 48 steps; S102: if step The difference between the numbers is greater than 48 steps, the focus module 10 moves toward the starting position direction and collects three consecutive frames of images from the current position; S103: determines whether the contrast values of the three consecutively collected images are sequentially decreased; S104: If the contrast value is sequentially decreased, the focus module 10 is moved away from the starting position direction, and the contrast value of each frame image is compared to find a focus point corresponding to the maximum contrast value; the focus module 10 During the movement away from the starting position, the comparison module 10 compares the contrast values of each frame image collected, and records the position corresponding to the maximum contrast value; when the acquired image is compared When decreasing, the focus module 10 is controlled to quickly return to the maximum position of the contrast value; S201: When the difference between the two detected images is increased or the difference between the current position and the step corresponding to the starting position is less than 48 steps, the focus module 10 is quickly returned to the starting position. And moving in a direction away from the starting position and comparing the contrast values of the collected images to find a focus point of the maximum contrast value; the contrast module moves in a direction away from the starting position, the contrast mode The group 10 compares the contrast values of each frame image collected, and records the position corresponding to the maximum contrast value; when the focus module 10 moves quickly, no image is acquired.

與先前技術相比,本發明實施方式提供之自動對焦系統及方法通過判斷當前位置與起始位置所差之垂直同步周期以選擇自動對焦方式,從而有效提高了對焦速度,節省了對焦時間。 Compared with the prior art, the autofocus system and method provided by the embodiments of the present invention select an autofocus mode by judging a vertical synchronization period between a current position and a starting position, thereby effectively improving the focusing speed and saving the focusing time.

綜上所述,本發明確已符合發明專利之要件,遂依法提出專利申請。惟,以上所述者僅為本發明之較佳實施方式,自不能以此限制本案之申請專利範圍。舉凡熟悉本案技藝之人士援依本發明之精神所作之等效修飾或變化,皆應涵蓋於以下申請專利範圍內。 In summary, the present invention has indeed met the requirements of the invention patent, and has filed a patent application according to law. However, the above description is only a preferred embodiment of the present invention, and it is not possible to limit the scope of the patent application of the present invention. Equivalent modifications or variations made by persons skilled in the art in light of the spirit of the invention are intended to be included within the scope of the following claims.

100‧‧‧自動對焦系統 100‧‧‧Auto Focus System

10‧‧‧對焦模組 10‧‧‧ Focus Module

20‧‧‧判斷模組 20‧‧‧Judgement module

30‧‧‧控制模組 30‧‧‧Control Module

40‧‧‧對比模組 40‧‧‧Comparative module

Claims (9)

一種自動對焦系統,其包括一對焦模組、一判斷模組、一控制模組及一對比模組;對焦模組用於調焦;判斷模組判斷對焦模組之當前位置與起始位置所對應之步數之差是否大於48步;控制模組根據判斷結果選擇對焦方式;當步數之差大於48步,控制模組控制對焦模組向起始位置方向運動,對比模組對從當前位置起連續採集之三幀圖像之對比值進行比較;當對比值依次減小時,沿背離起始位置方向移動對焦模組,並對所採集之圖像之對比值進行比較以找到最大對比值對應之對焦點;當所採集之連續三幀圖像之前兩偵圖像之對比值增大或當前位置與起始位置所對應之步數之差小於48步時,控制對焦模組快速返回起始位置,再沿背離起始位置方向移動並對所採集之圖像之對比值進行比較,以找到最大對比值之對焦點。 An autofocus system includes a focus module, a determination module, a control module and a contrast module; a focus module is used for focusing; and a determination module determines a current position and a starting position of the focus module Whether the difference between the corresponding steps is greater than 48 steps; the control module selects the focus mode according to the judgment result; when the difference of the steps is greater than 48 steps, the control module controls the focus module to move toward the starting position, and the comparison module pairs are from the current The position is compared with the comparison value of the three consecutive images collected; when the contrast value is sequentially decreased, the focus module is moved away from the starting position, and the contrast values of the collected images are compared to find the maximum contrast value. Corresponding focus point; when the contrast value of the two detected images increases before the acquired three consecutive frames of images or the difference between the current position and the number of steps corresponding to the starting position is less than 48 steps, the control focus module is quickly returned. The starting position is then moved away from the starting position and the contrast values of the acquired images are compared to find the focus of the largest contrast value. 如申請專利範圍第1項所述之自動對焦系統,其中:所述對焦模組沿背離起始位置方向移動後採集之圖像之對比值減小時,所述控制模組直接控制所述對焦模組快速返回對比值最大位置處。 The autofocus system of claim 1, wherein the control module directly controls the focus mode when the contrast value of the image acquired by the focus module after moving away from the starting position is decreased. The group quickly returns to the maximum position of the contrast value. 如申請專利範圍第1項所述之自動對焦系統,其中:對焦模組在每個垂直同步周期內運行12步,當採集圖像時對焦模組移動一個垂直同步周期所需時間為1/30s,當不採集圖像時對焦模組移動一個垂直同步周期所需時間為12ms。 The autofocus system of claim 1, wherein: the focus module runs 12 steps in each vertical synchronization period, and the time required for the focus module to move a vertical synchronization period when acquiring an image is 1/30 s. When the image is not captured, the time required for the focus module to move a vertical sync cycle is 12ms. 如申請專利範圍第1項所述之自動對焦系統,其中:所述對焦模組沿背離起始位置方向移動過程中,所述對比模組對所採集之每一幀圖像之對比值進行比較,並記錄下最大對比值所對應之位置。 The autofocus system of claim 1, wherein: the contrast module compares the contrast values of each frame image collected during the movement away from the starting position. And record the position corresponding to the maximum contrast value. 如申請專利範圍第1項所述之自動對焦系統,其中:當所述對焦模組快速移動時,不採集圖像。 The autofocus system of claim 1, wherein: when the focus module moves quickly, no image is acquired. 一種自動對焦方法,其包括以下步驟:判斷對焦模組之當前位置與起始位置所對應之步數之差是否大於48步;如果步數之差大於48步,對焦模組向起始位置方向運動並從當前位置起連續採集三幀圖像;判斷連續採集之三幀圖像之對比值是否依次減小;如果對比值依次減小,就沿背離起始位置方向移動鏡片,並對每幀圖像之對比值進行比較,以找到最大對比值對應之對焦點;當所採集之連續三幀圖像之前兩偵圖像之對比值增大或當前位置與起始位置所對應之步數之差小於48步時,控制對焦模組快速返回起始位置,再沿背離起始位置方向移動並對所採集之圖像之對比值進行比較,以找到最大對比值之對焦點。 An autofocus method includes the steps of: determining whether a difference between a current position of a focus module and a starting position is greater than 48 steps; if the difference of the steps is greater than 48 steps, the focusing module is oriented to a starting position Motion and continuously collect three frames of images from the current position; determine whether the contrast values of the three consecutively acquired images are sequentially decreased; if the contrast values are sequentially decreased, the lenses are moved away from the starting position, and each frame is moved Compare the contrast values of the images to find the focus point corresponding to the maximum contrast value; the contrast value of the two detected images increases or the number of steps corresponding to the current position and the starting position before the successive three frames of images are acquired When the difference is less than 48 steps, the control focus module quickly returns to the starting position, then moves away from the starting position and compares the contrast values of the acquired images to find the focus point of the maximum contrast value. 如申請專利範圍第6項所述之自動對焦方法,其中:所述對焦模組沿背離起始位置方向移動過程中,對所採集之每一幀圖像之對比值進行比較,並記錄下最大對比值所對應之位置。 The autofocus method according to claim 6, wherein: the focusing module compares the contrast values of each frame image collected during the movement away from the starting position, and records the maximum The position corresponding to the comparison value. 如申請專利範圍第7項所述之自動對焦方法,其中:所述對 焦模組沿背離起始位置方向移動後採集之圖像之對比值減小時,直接控制所述對焦模組快速返回對比值最大位置處。 The autofocus method of claim 7, wherein: the pair When the contrast value of the image captured by the focus module after moving away from the starting position is reduced, the focus module is directly controlled to quickly return to the maximum position of the contrast value. 如申請專利範圍第6項所述之自動對焦方法,其中:當所述對焦模組快速移動時,不採集圖像。 The autofocus method of claim 6, wherein: when the focus module moves quickly, no image is acquired.
TW98124655A 2009-07-22 2009-07-22 Auto focus system and method same TWI407235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98124655A TWI407235B (en) 2009-07-22 2009-07-22 Auto focus system and method same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98124655A TWI407235B (en) 2009-07-22 2009-07-22 Auto focus system and method same

Publications (2)

Publication Number Publication Date
TW201104332A TW201104332A (en) 2011-02-01
TWI407235B true TWI407235B (en) 2013-09-01

Family

ID=44813585

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98124655A TWI407235B (en) 2009-07-22 2009-07-22 Auto focus system and method same

Country Status (1)

Country Link
TW (1) TWI407235B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104678678A (en) * 2015-03-30 2015-06-03 信利光电股份有限公司 Shooting device and auto-focusing module thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030142877A1 (en) * 2001-12-18 2003-07-31 Nicholas George Imaging using a multifocal aspheric lens to obtain extended depth of field
JP2009058834A (en) * 2007-08-31 2009-03-19 Fujifilm Corp Imaging apparatus
TW200917828A (en) * 2007-08-31 2009-04-16 Fujifilm Corp Image pickup apparatus and focusing condition displaying method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030142877A1 (en) * 2001-12-18 2003-07-31 Nicholas George Imaging using a multifocal aspheric lens to obtain extended depth of field
JP2009058834A (en) * 2007-08-31 2009-03-19 Fujifilm Corp Imaging apparatus
TW200917828A (en) * 2007-08-31 2009-04-16 Fujifilm Corp Image pickup apparatus and focusing condition displaying method

Also Published As

Publication number Publication date
TW201104332A (en) 2011-02-01

Similar Documents

Publication Publication Date Title
JP4980982B2 (en) Imaging apparatus, imaging method, focus control method, and program
US8786760B2 (en) Digital photographing apparatus and method using face recognition function
USRE45900E1 (en) Imaging apparatus and control method
JP4582152B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
US9602714B2 (en) Image pickup apparatus, method of controlling image pickup apparatus, and non-transitory computer-readable storage medium
JP4730478B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP2014126710A (en) Automatic focus detection device, control method therefor, and image capturing device
JP6548437B2 (en) Focusing apparatus, control method therefor, control program, and imaging apparatus
CN105430277B (en) Autofocus control method and device
US9456143B2 (en) Image capture controlling device, image capture controlling method, and program
JP2011135185A (en) Imaging device
JP5438805B2 (en) Automatic focusing device, automatic focusing method, and imaging device
US20210314486A1 (en) Imaging element, imaging apparatus, operation method of imaging element, and program
KR101248024B1 (en) Image processing apparatus and storage medium
JP6087714B2 (en) Imaging apparatus and control method thereof
TWI407235B (en) Auto focus system and method same
JP2013160991A (en) Imaging apparatus
JP2010066728A (en) Imaging apparatus, and control method for imaging apparatus
JP4574559B2 (en) Imaging device, focus position detection device, and focus position detection method
JP2006157617A (en) Image pickup device
JP2006243745A (en) Automatic focus detector
JP2006065337A (en) Automatic focusing device, camera, portable information input device, focused position detecting method, and recording medium readable by computer
TWI465790B (en) Real-time auto-focus apparatus and method thereof
JP5932340B2 (en) Focus adjustment device
JP5697650B2 (en) Imaging apparatus and control method thereof

Legal Events

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