TWI395047B - Automatic focusing method and image capture apparatus using the same - Google Patents

Automatic focusing method and image capture apparatus using the same Download PDF

Info

Publication number
TWI395047B
TWI395047B TW97150206A TW97150206A TWI395047B TW I395047 B TWI395047 B TW I395047B TW 97150206 A TW97150206 A TW 97150206A TW 97150206 A TW97150206 A TW 97150206A TW I395047 B TWI395047 B TW I395047B
Authority
TW
Taiwan
Prior art keywords
image
lens
distance
shooting
main
Prior art date
Application number
TW97150206A
Other languages
Chinese (zh)
Other versions
TW201024892A (en
Inventor
Zhi-Qiang Lan
Original Assignee
Asia Optical Co Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Asia Optical Co Inc filed Critical Asia Optical Co Inc
Priority to TW97150206A priority Critical patent/TWI395047B/en
Publication of TW201024892A publication Critical patent/TW201024892A/en
Application granted granted Critical
Publication of TWI395047B publication Critical patent/TWI395047B/en

Links

Landscapes

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

Description

自動對焦方法以及使用該方法之影像擷取裝置Autofocus method and image capturing device using the same

本發明係有關於影像擷取,特別是有關於一種利用拍攝物體之成像尺寸進行自動對焦之影像擷取裝置。The present invention relates to image capture, and more particularly to an image capture device that utilizes the imaging size of a subject to perform autofocus.

拍攝影像時,準確的對焦為擷取清晰影像的要素之一。因此,除了手動對焦之外,藉助相機所提供之自動對焦功能,使用者亦可擷取色彩飽及輪廓鮮明的影像。Accurate focus is one of the elements that captures a clear image when shooting an image. Therefore, in addition to manual focusing, with the autofocus function provided by the camera, the user can also capture images with vivid colors and sharp outlines.

習知上,自動對焦可透過測距裝置測量物體與鏡頭的距離,據以調整鏡距來完成。不過,此一方式需要額外之硬體設計與成本。Conventionally, autofocus can measure the distance between an object and a lens through a distance measuring device, and accordingly, the mirror distance is adjusted. However, this approach requires additional hardware design and cost.

或者,於一些習知技術中,可移動鏡頭進行掃瞄,並擷取相關之影像,將各影像進行頻域轉換後所產生之高頻分量作為對比度,藉以根據各影像之對比度進行分析,找出最大對比度所對應之最佳對焦位置,以擷取最清晰之影像。然而,反覆移動鏡頭不僅耗時,當欲拍攝物體不明確時,重複執行之對焦動作亦將導致對焦時間過長。Alternatively, in some conventional techniques, the movable lens scans and captures the relevant image, and the high frequency component generated by frequency domain conversion of each image is used as a contrast, thereby analyzing according to the contrast of each image. The best focus position corresponding to the maximum contrast is taken to capture the sharpest image. However, repeatedly moving the lens is not only time consuming, but when the object to be photographed is not clear, the repeated focusing operation will also cause the focusing time to be too long.

有鑑於此,本發明提供自動對焦方法及使用上述方法之影像擷取裝置。In view of the above, the present invention provides an autofocus method and an image capture device using the above method.

基於上述目的,本發明實施例提供一種自動對焦方法,適用於一影像擷取裝置,該影像擷取裝置包括一鏡頭及一影像感測單元。首先,透過該鏡頭,於該影像感測單元上擷取一影像。分析該影像,用以決定一主要拍攝物體, 並取得該主要拍攝物體之一辨識資料,其中,該辨識資料係用以取得對應於該主要拍攝物體之一成像設定值。接著,根據該影像計算該主要拍攝物體成像於該影像感測單元上之一成像尺寸。根據該成像尺寸、該成像設定值之一參考尺寸及一既定像距,用以決定一拍攝距離,其中,該既定像距為該鏡頭及該影像感測單元之距離,而該拍攝距離為該主要拍攝物體與該鏡頭之距離。最後,根據該拍攝距離及該成像設定值,對該主要拍攝物體進行影像擷取。Based on the above, an embodiment of the present invention provides an auto-focusing method, which is applicable to an image capturing device. The image capturing device includes a lens and an image sensing unit. First, an image is captured on the image sensing unit through the lens. Analyze the image to determine a primary subject, And obtaining identification data of the main shooting object, wherein the identification data is used to obtain an imaging setting value corresponding to one of the main shooting objects. Then, an imaging size of the main subject image formed on the image sensing unit is calculated according to the image. Determining a shooting distance according to the imaging size, a reference size of the imaging setting value, and a predetermined image distance, wherein the predetermined image distance is a distance between the lens and the image sensing unit, and the shooting distance is the The distance between the main subject and the lens. Finally, image capturing is performed on the main subject according to the shooting distance and the imaging setting value.

另外,本發明實施例提供一種影像擷取裝置,包括一鏡頭、一驅動單元、一影像感測單元及一處理單元。該鏡頭用以聚焦一影像。該驅動單元耦接於該鏡頭,用以驅動該鏡頭。該影像感測單元透過該鏡頭擷取該影像。該處理單元耦接於該影像感測單元,用以決定該影像之一主要拍攝物體、取得該主要拍攝物體之一辨識資料、根據該辨識資料取得對應於該主要拍攝物體之一成像設定值、計算該主要拍攝物體成像於該影像感測單元上之一成像尺寸、根據該成像尺寸及該成像設定值之一參考尺寸及一既定像距來決定一拍攝距離、以及根據該拍攝距離及該成像設定值對該主要拍攝物體進行影像擷取。In addition, an embodiment of the present invention provides an image capturing device including a lens, a driving unit, an image sensing unit, and a processing unit. This lens is used to focus an image. The driving unit is coupled to the lens for driving the lens. The image sensing unit captures the image through the lens. The processing unit is coupled to the image sensing unit for determining one of the main images of the image, obtaining an identification data of the main shooting object, and obtaining an imaging setting value corresponding to one of the main shooting objects according to the identification data, Calculating an imaging size of the main imaging object on the image sensing unit, determining a shooting distance according to the imaging size and one of the imaging setting values, and a predetermined image distance, and according to the shooting distance and the imaging The set value is used to capture the image of the main subject.

為使本發明之上述目的、特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖示,詳細說明如下。The above described objects, features, and advantages of the invention will be apparent from the description and appended claims appended claims

下文係說明本發明之較佳實施方式,配合所附圖示第1圖及第2圖,做詳細之說明。本發明說明書提供之實施 例用以說明本發明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本發明。此外,本發明實施例係以相機為例進行說明,但不以此為限,任何需執行對焦程序之影像擷取裝置,例如:攝影機,皆適用本發明實施例所述方法。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the first and second drawings of the accompanying drawings. Implementation provided by the specification of the present invention Examples are used to illustrate the technical features of various embodiments of the present invention. The arrangement of the various elements in the embodiments is for illustrative purposes and is not intended to limit the invention. In addition, the embodiment of the present invention is described by taking a camera as an example, but not limited thereto, any image capturing device that needs to perform a focusing process, such as a camera, is applicable to the method of the embodiment of the present invention.

第1圖係顯示依據本發明實施例之一影像擷取裝置10方塊圖,包括:一鏡頭102、一驅動單元104、一影像感測單元106及一處理單元108。於本發明之實施例中,該影像擷取裝置包括一相機或一攝影機。於一實施例中,該影像擷取裝置包括一數位相機’、一數位攝影機或一具有影像擷取功能的電子裝置。1 is a block diagram of an image capture device 10 according to an embodiment of the present invention, including a lens 102, a driving unit 104, an image sensing unit 106, and a processing unit 108. In an embodiment of the invention, the image capture device comprises a camera or a camera. In one embodiment, the image capture device includes a digital camera, a digital camera, or an electronic device having an image capture function.

參考第1圖,該鏡頭102用以聚焦一影像。該驅動單元104耦接於該鏡頭102,用以驅動該鏡頭102,而該影像感測單元106則透過該鏡頭102擷取該影像。於一實施例中,該驅動單元104包括一對焦馬達(未圖示),用以控制該鏡頭102之移動步數,改變該鏡頭102與該影像感測單元106間之距離。該處理單元108耦接於該影像感測單元106,用以接收該影像感測單元106所擷取之影像。於一實施例中,該處理單元108可為一數位訊號處理器(digital signal processing,DSP),對該影像進行儲存、分析及計算操作,並產生相關之控制信號。進一步,於另一實施例中,該影像感測單元106可以是電荷耦合裝置(charge-coupled device,CCD)或互補式金屬氧化半導體(CMOS),用以透過該鏡頭102感測該影像並對應輸出 影像之資料。Referring to Figure 1, the lens 102 is used to focus an image. The driving unit 104 is coupled to the lens 102 for driving the lens 102, and the image sensing unit 106 captures the image through the lens 102. In one embodiment, the driving unit 104 includes a focus motor (not shown) for controlling the number of steps of the lens 102 and changing the distance between the lens 102 and the image sensing unit 106. The processing unit 108 is coupled to the image sensing unit 106 for receiving images captured by the image sensing unit 106. In one embodiment, the processing unit 108 can be a digital signal processing (DSP) that stores, analyzes, and calculates the image and generates associated control signals. Further, in another embodiment, the image sensing unit 106 can be a charge-coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) for sensing the image through the lens 102 and corresponding thereto. Output Image information.

如第1圖所示,該處理單元108從該影像感測單元106接收該影像後,分析該影像以決定一主要拍攝物體,藉以取出該主要拍攝物體之一辨識資料。於操作上,該影像擷取裝置10更包括一記憶單元110,具有一資料庫(未圖示),係儲存複數之影像樣本。於此實施例中,該處理單元108利用影像辨識處理該影像,從該影像中擷取出複數之拍攝物體的特徵,做為一比對模板,再將該比對模板用以與該資料庫中的每一影像樣本進行比較或配對,從而辨識出與該等拍攝物體相似的特徵或種類,例如:人臉或房子。隨後,根據一既定規則,從該等辨識資料中決定該主要拍攝物體。舉例而言,可定義一優先順序來指定該主要拍攝物體。例如:該主要拍攝物體可以該影像之人臉為主,若無人臉,再依次搜尋動物。於另一實施例中,亦可以該等拍攝物體之位置決定該主要拍攝物體。舉例來講,當辨識出多張人臉,可先判斷該影像之畫面中心,再尋找鄰近中心區域之人臉,作為該主要拍攝物體。As shown in FIG. 1 , after receiving the image from the image sensing unit 106 , the processing unit 108 analyzes the image to determine a main shooting object, thereby extracting one of the main shooting objects and identifying the data. In operation, the image capturing device 10 further includes a memory unit 110 having a database (not shown) for storing a plurality of image samples. In this embodiment, the processing unit 108 processes the image by using image recognition, and extracts features of the plurality of captured objects from the image as a comparison template, and uses the comparison template in the database. Each image sample is compared or paired to identify features or categories similar to the objects, such as a face or a house. Subsequently, the main subject is determined from the identification data according to a predetermined rule. For example, a priority order can be defined to specify the primary subject. For example, the main subject may be the face of the image, and if there is no face, the animal is searched in turn. In another embodiment, the location of the objects may be determined by the location of the objects. For example, when a plurality of faces are recognized, the center of the image of the image may be first determined, and then the face of the adjacent center region may be searched for as the main subject.

進一步,根據該辨識資料,該處理單元108從該資料庫中讀取對應於該主要拍攝物體之一成像設定值,如物體尺寸,其中該物體尺寸的定義,可以從一般情況下,每一種物體的平均尺寸來定義。然後,該處理單元108計算該主要拍攝物體成像於該影像感測單元106上之一成像尺寸B。於一實施例中,假設該主要拍攝物體成像於該影像感測單元106上的長和寬各為N個圖元,而每一圖元大小為 P,則該成像尺寸BN ×P 。值得注意的是,亦可透過其它方式計算該成像尺寸。Further, according to the identification data, the processing unit 108 reads, from the database, an imaging setting value corresponding to one of the main shooting objects, such as an object size, wherein the object size is defined, and generally, each object The average size is defined. Then, the processing unit 108 calculates an imaging size B of the main subject image formed on the image sensing unit 106. In an embodiment, if the length and width of the main imaging object imaged on the image sensing unit 106 are N primitives, and each primitive size is P, the imaging size B = N × P. It is worth noting that the imaging size can also be calculated by other means.

之後,算出該成像尺寸後,利用該成像設定值之一參考尺寸及一既定像距,該處理單元108可求得一拍攝距離L,用以表示該主要拍攝物體與該鏡頭102之相對距離。舉例來講,假設該主要拍攝物體為人臉X,則可從該資料庫取得對應於人臉X之平均尺寸A,作為該參考尺寸。進一步,若該既定像距F為該鏡頭102及該影像感測單元106間之距離,根據該參考尺寸A、該成像尺寸B及該既定像距F,便可計算拍攝距離Then, after calculating the imaging size, the processing unit 108 can determine a shooting distance L to indicate the relative distance between the main shooting object and the lens 102 by using one of the imaging setting values and a predetermined image distance. For example, if the main subject is a face X, the average size A corresponding to the face X can be obtained from the database as the reference size. Further, if the predetermined image distance F is the distance between the lens 102 and the image sensing unit 106, the shooting distance can be calculated according to the reference size A, the imaging size B, and the predetermined image distance F. .

於一實施例中,該影像擷取裝置10進一步包括一光圈112及一快門114。針對該主要拍攝物體,如人臉X,該光圈112根據該成像設定值所決定之一光圈值來控制該鏡頭102之入射光量,而該快門114根據該成像設定值所決定之一快門速度來調整該影像感測單元106之曝光量。其中,可透過內建式快門鈕或外接式控制裝置來觸發該快門114。In an embodiment, the image capturing device 10 further includes an aperture 112 and a shutter 114. For the main subject, such as the face X, the aperture 112 controls the amount of incident light of the lens 102 according to the aperture value determined by the imaging setting value, and the shutter 114 determines the shutter speed according to the imaging setting value. The exposure amount of the image sensing unit 106 is adjusted. The shutter 114 can be triggered by a built-in shutter button or an external control device.

於一實施例中,根據該拍攝距離L,該驅動單元104取得對應之一移動步數,直接驅動該鏡頭102至一對焦位置,再根據該成像設定值,擷取該主要拍攝物體之影像。In an embodiment, the driving unit 104 obtains a corresponding one of the moving steps according to the shooting distance L, directly drives the lens 102 to a focus position, and then captures an image of the main shooting object according to the imaging setting value.

更具體地,該驅動單元104可根據該拍攝距離L的一對焦範圍,進行對焦掃瞄之操作。舉例來說,假設該拍攝距離L為10公尺,該拍攝距離L所對應的該移動步數為100步,而該對焦範圍假設預設為20步,則該驅動單元104 會在第90步到第110步之間,以固定間隔的每一移動步數,移動鏡頭至每一第二對焦位置處,並且進行影像擷取,以進行對焦掃描之操作,其中該對焦範圍取決於使用者之設定、該主要拍攝物體之特徵或鏡頭之規格。於每一個第二對焦位置擷取出相關影像後,該處理單元108計算對應於每一個第二對焦位置之影像對比度,以決定一最佳對焦位置。亦即,在該對焦範圍內取得對應於最大對比度之對焦位置。如此一來,可實現較高之對焦精確度。More specifically, the driving unit 104 can perform a focus scanning operation according to a focus range of the shooting distance L. For example, if the shooting distance L is 10 meters, the number of moving steps corresponding to the shooting distance L is 100 steps, and the focusing range is assumed to be preset to 20 steps, then the driving unit 104 Between the 90th step and the 110th step, the lens is moved to each of the second focus positions at a fixed interval, and the image capture is performed to perform a focus scan operation, wherein the focus range is It depends on the user's settings, the characteristics of the main subject, or the specifications of the lens. After extracting the relevant image at each of the second focus positions, the processing unit 108 calculates an image contrast corresponding to each of the second focus positions to determine an optimal focus position. That is, the in-focus position corresponding to the maximum contrast is obtained within the focus range. In this way, higher focus accuracy can be achieved.

值得注意的是,該影像擷取裝置10更進一步包括一閃光燈116,於進行影像擷取時,用以致能一閃光來補強該影像感測單元106之曝光量。It should be noted that the image capturing device 10 further includes a flasher 116 for enabling a flash to reinforce the exposure of the image sensing unit 106 during image capture.

第2圖係顯示依據本發明實施例之一自動對焦方法20流程圖。該自動對焦方法20適用於一影像擷取裝置(如第1圖之影像擷取裝置10),其中,該影像擷取裝置具有一鏡頭及一影像感測單元。2 is a flow chart showing an autofocus method 20 in accordance with an embodiment of the present invention. The auto-focusing method 20 is applicable to an image capturing device (such as the image capturing device 10 of FIG. 1), wherein the image capturing device has a lens and an image sensing unit.

參考第2圖,首先,透過該鏡頭,於該影像感測單元上擷取一影像(步驟S202)。其次,分析該影像,用以決定一主要拍攝物體,同時取得該主要拍攝物體之一辨識資料(步驟S204)。於一實施例中,自該影像中擷取複數之拍攝物體後,再利用一資料庫中所建立之影像樣本,對該等拍攝物體進行辨識,用以產生複數之辨識資料。該等辨識資料產生後,隨即根據一既定規則,從該等辨識資料中決定該主要拍攝物體,此一部份已詳述於第1圖及其相關實施例中,於此不加贅述。Referring to FIG. 2, first, an image is captured on the image sensing unit through the lens (step S202). Next, the image is analyzed to determine a main subject, and at the same time obtain one of the main subject identification data (step S204). In an embodiment, after capturing a plurality of captured objects from the image, the image samples created in a database are used to identify the captured objects to generate a plurality of identification data. After the identification data is generated, the main subject is determined from the identification data according to a predetermined rule. This part has been described in detail in FIG. 1 and its related embodiments, and will not be further described herein.

隨後,根據該辨識資料,從該資料庫中讀取對應於該主要拍攝物體之一成像設定值(步驟S206)。於一實施例中,該成像設定值包括一參考尺寸、一既定像距、一光圈值及一快門速度。該參考尺寸用以表示該主要拍攝物體之平均尺寸。該既定像距用以表示該鏡頭及該影像感測單元之相對距離。該光圈值用來控制該鏡頭之入射光量。該快門速度則用來控制該影像感測單元之曝光量。Then, based on the identification data, an imaging setting value corresponding to one of the main subjects is read from the library (step S206). In one embodiment, the imaging setpoint includes a reference size, a predetermined image distance, an aperture value, and a shutter speed. The reference size is used to indicate the average size of the main subject. The predetermined image distance is used to indicate the relative distance between the lens and the image sensing unit. This aperture value is used to control the amount of incident light of the lens. The shutter speed is used to control the exposure amount of the image sensing unit.

進一步,根據該影像,取得該主要拍攝物體成像於該影像感測單元上之一成像尺寸(步驟S208)。透過該成像尺寸及該成像設定值,便可決定一拍攝距離,即該主要拍攝物體與該鏡頭之距離(步驟S210)。計算該拍攝距離之方式已配合第1圖之實施例說明如上,在此省略其說明。Further, according to the image, an imaging size of the main imaging object imaged on the image sensing unit is obtained (step S208). Through the imaging size and the imaging setting value, a shooting distance, that is, a distance between the main shooting object and the lens can be determined (step S210). The manner of calculating the shooting distance has been described above in conjunction with the embodiment of Fig. 1, and the description thereof is omitted here.

在決定該拍攝距離後,可直接以該拍攝距離所對應之一移動步數驅動該鏡頭至一對焦位置,同時根據該成像設定值控制該快門或該光圈,以對該主要拍攝物體進行影像擷取(步驟S212)。After determining the shooting distance, the lens can be directly driven to a focus position by one of the moving steps corresponding to the shooting distance, and the shutter or the aperture is controlled according to the imaging setting value to perform image detection on the main shooting object. Take (step S212).

相對於上述之快速對焦方式,亦可根據一對焦範圍調整該拍攝距離進行一精確對焦(步驟S214)。更具體地,係根據該對焦範圍所對應之移動步數,將該鏡頭移動至相關對焦位置,進行擷取影像之操作。從擷取之影像中,再尋找具有最大對比度之影像及其對應之最佳對焦位置,藉此提高對焦精確度。Compared with the above-mentioned fast focus mode, the shooting distance can be adjusted according to a focus range to perform precise focusing (step S214). More specifically, according to the number of moving steps corresponding to the focus range, the lens is moved to the relevant focus position to perform an operation of capturing an image. From the captured image, look for the image with the highest contrast and its corresponding best focus position to improve focus accuracy.

相較於習知技術,本發明所揭露之自動對焦方法及使用該方法之影像擷取裝置,可依據不同之拍攝物體選擇成 像設定值,直接計算出最適合之對焦位置,從而縮短對焦所需之時間。除此之外,亦可利用在對焦位置的一對焦範圍進行小範圍之對焦掃描,藉由分析每一取樣點所擷取影像之對比度,進而獲得一最佳對焦位置來進行影像擷取,同時達到快速且準確對焦之目的。Compared with the prior art, the autofocus method disclosed in the present invention and the image capturing device using the same can be selected according to different shooting objects. Like the set value, directly calculate the most suitable focus position, thus shortening the time required for focusing. In addition, a small range of focus scanning can be performed by using a focus range at the focus position, and by analyzing the contrast of the image captured by each sampling point, an optimal focus position is obtained for image capturing, and at the same time Achieve fast and accurate focus.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何熟悉此項技藝者,在不脫離本發明之精神和範圍內,當可做些許更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the present invention has been described in its preferred embodiments, the present invention is not intended to limit the invention, and the present invention may be modified and modified without departing from the spirit and scope of the invention. The scope of protection is subject to the definition of the scope of the patent application.

10‧‧‧影像擷取裝置10‧‧‧Image capture device

102‧‧‧鏡頭102‧‧‧ lens

104‧‧‧驅動單元104‧‧‧ drive unit

106‧‧‧影像感測單元106‧‧‧Image sensing unit

108‧‧‧處理單元108‧‧‧Processing unit

110‧‧‧記憶單元110‧‧‧ memory unit

112‧‧‧光圈112‧‧‧ aperture

114‧‧‧快門 及114‧‧ ‧Shutter and

116‧‧‧閃光燈116‧‧‧Flash

第1圖係顯示依據本發明實施例之一影像擷取裝置方塊圖;及第2圖係顯示依據本發明實施例之一自動對焦方法流程圖。1 is a block diagram showing an image capturing device according to an embodiment of the present invention; and FIG. 2 is a flow chart showing an automatic focusing method according to an embodiment of the present invention.

10‧‧‧影像擷取裝置10‧‧‧Image capture device

102‧‧‧鏡頭102‧‧‧ lens

104‧‧‧驅動單元104‧‧‧ drive unit

106‧‧‧影像感測單元106‧‧‧Image sensing unit

108‧‧‧處理單元108‧‧‧Processing unit

110‧‧‧記憶單元110‧‧‧ memory unit

112‧‧‧光圈112‧‧‧ aperture

114‧‧‧快門 及114‧‧ ‧Shutter and

116‧‧‧閃光燈116‧‧‧Flash

Claims (9)

一種自動對焦方法,適用於一影像擷取裝置,該影像擷取裝置包括一鏡頭及一影像感測單元,該自動對焦方法包括:透過該鏡頭,擷取一影像;分析該影像以決定一主要拍攝物體,並取得該主要拍攝物體之一辨識資料;根據該辨識資料,取得對應於該主要拍攝物體之一成像設定值;根據該影像,計算該主要拍攝物體成像於該影像感測單元上之一成像尺寸;以及根據該成像尺寸、該成像設定值之一參考尺寸及一既定像距,決定一拍攝距離,其中,該既定像距為該鏡頭及該影像感測單元之距離,而該拍攝距離為該主要拍攝物體與該鏡頭之距離;其中,分析該影像之步驟包括:從該影像中擷取至少一拍攝物體;利用一資料庫中之複數影像樣本的每一者對該至少一拍攝物體進行辨識,用以產生複數之辨識資料;以及根據一規則,從該等辨識資料中決定該主要拍攝物體;其中,該規則是根據該至少一拍攝物體之種類決定該主要拍攝物體;其中該主要拍攝物體係根據該至少一拍攝物體之種類以及對應於該至少一拍攝物體之種類的一特定順序所決 定,並且該資料庫中之該等影像樣本的種類至少包括人臉、房子及動物。 An autofocus method is applicable to an image capture device. The image capture device includes a lens and an image sensing unit. The autofocus method includes: capturing an image through the lens; analyzing the image to determine a primary Taking an object and obtaining identification data of one of the main shooting objects; obtaining an imaging setting value corresponding to one of the main shooting objects according to the identification data; and calculating, according to the image, the main shooting object is imaged on the image sensing unit An imaging size; and determining a shooting distance according to the imaging size, a reference size of the imaging setting value, and a predetermined image distance, wherein the predetermined image distance is a distance between the lens and the image sensing unit, and the shooting is performed The distance is the distance between the main subject and the lens; wherein the analyzing the image comprises: capturing at least one subject from the image; using at least one of each of the plurality of image samples in a database Identifying an object to generate a plurality of identification data; and determining the master from the identification data according to a rule Shooting an object; wherein the rule is to determine the main subject according to the type of the at least one subject; wherein the main subject system is based on a type of the at least one subject and a specific order corresponding to the type of the at least one subject Determined The types of such image samples in the database include at least faces, houses and animals. 如申請專利範圍第1項所述之自動對焦方法,更包括:根據該拍攝距離及該成像設定值對該主要拍攝物體進行影像擷取。 The autofocus method of claim 1, further comprising: performing image capture on the main subject according to the shooting distance and the imaging setting value. 如申請專利範圍第2項所述之自動對焦方法,其中,對該主要拍攝物體進行影像擷取之步驟包括:依據該拍攝距離所對應之一移動步數,驅動該鏡頭至一對焦位置進行影像擷取。 The method of claim 2, wherein the step of capturing the image of the main subject comprises: driving the lens to a focus position according to a moving step corresponding to the shooting distance; Capture. 如申請專利範圍第2項所述之自動對焦方法,更包括:根據一對焦範圍調整該拍攝距離;根據該對焦範圍所對應之移動步數驅動該鏡頭,以決定複數之第二對焦位置;以及計算對應於每一個第二對焦位置之影像對比度,用以決定進行影像擷取之一最佳對焦位置。 The autofocus method of claim 2, further comprising: adjusting the shooting distance according to a focus range; driving the lens according to the number of moving steps corresponding to the focusing range to determine a plurality of second focusing positions; The image contrast corresponding to each of the second focus positions is calculated to determine one of the best focus positions for image capture. 如申請專利範圍第1項所述之自動對焦方法,其中,該主要拍攝物體係根據位於該影像之中心之該至少一拍攝物體、該至少一拍攝物體之種類以及該特定順序所決定。 The autofocus method of claim 1, wherein the main subject system is determined according to the at least one photographing object located at a center of the image, the type of the at least one photographing object, and the specific order. 一種影像擷取裝置,包括:一鏡頭,用以聚焦一影像;一驅動單元,耦接於該鏡頭,用以驅動該鏡頭;一影像感測單元,用以透過該鏡頭擷取該影像; 一處理單元,耦接於該影像感測單元,用以決定該影像之一主要拍攝物體、取得該主要拍攝物體之一辨識資料、根據該辨識資料取得對應於該主要拍攝物體之一成像設定值、計算該主要拍攝物體成像於該影像感測單元上之一成像尺寸、以及根據該成像尺寸及該成像設定值之一參考尺寸及一既定像距來決定一拍攝距離,其中,該既定像距為該鏡頭及該影像感測單元之距離,而該拍攝距離為該主要拍攝物體與該鏡頭之距離;以及一記憶單元,包括一資料庫,係儲存複數之影像樣本,其中,該處理單元從該影像中擷取複數之拍攝物體,利用複數影像樣本的每一者對該等拍攝物體進行辨識,用以產生複數之辨識資料,並根據一規則從該等辨識資料中決定該主要拍攝物體;其中,該規則根據該等拍攝物體之種類決定該主要拍攝物體;其中該主要拍攝物體係根據該至少一拍攝物體之種類以及對應於該至少一拍攝物體之種類的一特定順序所決定,並且該資料庫中之該等影像樣本的種類至少包括人臉、房子及動物。 An image capturing device includes: a lens for focusing an image; a driving unit coupled to the lens for driving the lens; and an image sensing unit for capturing the image through the lens; A processing unit is coupled to the image sensing unit for determining one of the main images of the image, obtaining an identification data of the main shooting object, and obtaining an imaging setting value corresponding to one of the main shooting objects according to the identification data. Calculating an imaging size of the main imaging object on the image sensing unit, and determining a shooting distance according to the imaging size and one of the imaging setting values and a predetermined image distance, wherein the predetermined imaging distance a distance between the lens and the image sensing unit, wherein the shooting distance is a distance between the main shooting object and the lens; and a memory unit includes a database for storing a plurality of image samples, wherein the processing unit is Taking a plurality of captured objects in the image, each of the plurality of image samples is used to identify the captured objects, to generate a plurality of identification data, and determining the main captured object from the identification data according to a rule; Wherein, the rule determines the main subject according to the type of the photographed object; wherein the main subject system root The object of at least one kind of shot, and a specific sequence corresponding to the at least one kind of object of shooting of the decision, and those kinds of images of the sample library to include at least a face, house and animals. 如申請專利範圍第6項所述之影像擷取裝置,其中,該驅動單元依據該拍攝距離所對應之一移動步數,驅動該鏡頭至一對焦位置,並且於該對焦位置進行影像擷取。 The image capturing device of claim 6, wherein the driving unit drives the lens to a focus position according to a moving step corresponding to the shooting distance, and performs image capturing at the focusing position. 如申請專利範圍第6項所述之影像擷取裝置,其中,該驅動單元根據該拍攝距離的一對焦範圍所對應之移動步 數,驅動該鏡頭至複數之第二對焦位置,並進行影像擷取,且該處理單元計算對應於每一個第二對焦位置之影像對比度,決定進行影像擷取之一最佳對焦位置。 The image capturing device of claim 6, wherein the driving unit is in accordance with a moving step corresponding to a focusing range of the shooting distance The number is driven to the second focus position of the plurality of pixels, and the image capture is performed, and the processing unit calculates the image contrast corresponding to each of the second focus positions, and determines one of the best focus positions for image capture. 如申請專利範圍第6項所述之影像擷取裝置,其中,該主要拍攝物體係根據位於該影像之中心之該至少一拍攝物體、該至少一拍攝物體之種類以及該特定順序所決定。 The image capturing device of claim 6, wherein the primary subject system is determined according to the at least one subject, the type of the at least one subject, and the specific order at a center of the image.
TW97150206A 2008-12-23 2008-12-23 Automatic focusing method and image capture apparatus using the same TWI395047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97150206A TWI395047B (en) 2008-12-23 2008-12-23 Automatic focusing method and image capture apparatus using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97150206A TWI395047B (en) 2008-12-23 2008-12-23 Automatic focusing method and image capture apparatus using the same

Publications (2)

Publication Number Publication Date
TW201024892A TW201024892A (en) 2010-07-01
TWI395047B true TWI395047B (en) 2013-05-01

Family

ID=44852352

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97150206A TWI395047B (en) 2008-12-23 2008-12-23 Automatic focusing method and image capture apparatus using the same

Country Status (1)

Country Link
TW (1) TWI395047B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297695B (en) * 2013-05-23 2016-08-10 深圳市金立通信设备有限公司 A kind of method of automatic camera and terminal
TWI693578B (en) * 2018-10-24 2020-05-11 緯創資通股份有限公司 Image stitching processing method and system thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070030381A1 (en) * 2005-01-18 2007-02-08 Nikon Corporation Digital camera
US20080136958A1 (en) * 2006-12-11 2008-06-12 Pentax Corporation Camera having a focus adjusting system and a face recognition function

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070030381A1 (en) * 2005-01-18 2007-02-08 Nikon Corporation Digital camera
US20080136958A1 (en) * 2006-12-11 2008-06-12 Pentax Corporation Camera having a focus adjusting system and a face recognition function

Also Published As

Publication number Publication date
TW201024892A (en) 2010-07-01

Similar Documents

Publication Publication Date Title
US7733412B2 (en) Image pickup apparatus and image pickup method
JP4207980B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP5789091B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
US7791668B2 (en) Digital camera
JP4571617B2 (en) Imaging apparatus and imaging method
US7382411B2 (en) Method for focus adjusting and camera
JP2006018246A (en) Imaging apparatus and imaging method
JP2014123070A5 (en)
JP5003529B2 (en) Imaging apparatus and object detection method
JP2007325053A (en) Imaging apparatus
WO2018228329A1 (en) Focusing control method and device, computer storable medium and mobile terminal
US7949244B2 (en) Method for measuring subject distance
US20100026819A1 (en) Method and apparatus for compensating for motion of an autofocus area, and autofocusing method and apparatus using the same
JP2008282031A (en) Imaging apparatus and imaging apparatus control method, and computer program
JP4871691B2 (en) Imaging apparatus and control method thereof
TWI395047B (en) Automatic focusing method and image capture apparatus using the same
JP4996568B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2009105851A (en) Imaging apparatus, control method and program thereof
JP4589646B2 (en) Digital still camera and control method thereof
JP6072632B2 (en) Imaging apparatus, imaging method, and imaging system
JP4085720B2 (en) Digital camera
JP4681899B2 (en) Imaging apparatus and imaging method
JP7363971B2 (en) Image processing device and image processing method
JP2015075648A (en) Focus detection device, control method therefor, control program and imaging device
JP6191131B2 (en) Imaging device

Legal Events

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