[go: up one dir, main page]

CN102540639A - Automatic focusing method and image capturing system - Google Patents

Automatic focusing method and image capturing system Download PDF

Info

Publication number
CN102540639A
CN102540639A CN2010105863042A CN201010586304A CN102540639A CN 102540639 A CN102540639 A CN 102540639A CN 2010105863042 A CN2010105863042 A CN 2010105863042A CN 201010586304 A CN201010586304 A CN 201010586304A CN 102540639 A CN102540639 A CN 102540639A
Authority
CN
China
Prior art keywords
focus
focusing
predeterminated position
focus data
moving section
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN2010105863042A
Other languages
Chinese (zh)
Inventor
许盛雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ability Enterprise Co Ltd
Original Assignee
Ability Enterprise 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 Ability Enterprise Co Ltd filed Critical Ability Enterprise Co Ltd
Priority to CN2010105863042A priority Critical patent/CN102540639A/en
Publication of CN102540639A publication Critical patent/CN102540639A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Automatic Focus Adjustment (AREA)

Abstract

The present invention relates to an auto-focusing method and an image capturing system, and more particularly, to an auto-focusing method and an image capturing system for focusing in a first moving interval of a focusing mode by a focusing lens and recording a plurality of first focusing positions and a plurality of corresponding first focusing data. Then, it is determined whether the first focus data has an absolute maximum value. If not, determining a second moving interval, and focusing the focusing lens in the second moving interval to obtain a plurality of second focusing data; and determining an absolute maximum value according to the second focusing data, and enabling a second focusing position corresponding to the absolute maximum value to be an automatic focusing position.

Description

自动对焦方法及影像撷取系统Autofocus method and image capture system

技术领域 technical field

本发明涉及一种成像技术,特别是涉及一种影像撷取系统的自动对焦方法。The invention relates to an imaging technology, in particular to an automatic focusing method of an image capture system.

背景技术 Background technique

数码相机在出厂之前,通常会针对对焦镜头执行无穷远对焦位置的校正,并将校正得到的无穷远对焦位置记录于数码相机内的内存中。当使用者半压下快门按钮而启动自动对焦程序时,数码相机即以该储存的无穷远对焦位置作为基准,移动对焦镜头以进行对焦。Before the digital camera leaves the factory, it usually calibrates the infinity focus position of the focus lens, and records the corrected infinity focus position in the internal memory of the digital camera. When the user half-presses the shutter button to start the auto-focus procedure, the digital camera uses the stored infinity focus position as a reference to move the focus lens to focus.

然而,数码相机往往受到外部环境变化,例如温度或湿度变化,或者受到外力,例如落摔或不同摆放位置,造成对焦镜头的偏移,使得真实的无穷远对焦位置异于出厂前的校正值,导致对焦镜头未能移动至正确的对焦位置,让使用者因对焦不良或失败而拍摄出模糊的影像。特别是对于塑料材质的镜头,由于塑料材质本身容易吸收水气,极易导致镜头折射率的改变。此外,镜头可能随外界温度及湿度而发生热涨冷缩或含水度变化,因而造成折射率的改变。However, digital cameras are often affected by external environmental changes, such as temperature or humidity changes, or by external forces, such as falling or different placements, causing the focus lens to shift, making the real infinity focus position different from the calibration value before leaving the factory , causing the focus lens to fail to move to the correct focus position, allowing users to shoot blurry images due to poor focus or failure. Especially for lenses made of plastic, since the plastic material itself is easy to absorb moisture, it is easy to cause changes in the refractive index of the lens. In addition, the lens may expand and contract with temperature and humidity, or the moisture content may change, resulting in a change in the refractive index.

由此可见,上述现有的成像技术在方法及使用上,显然仍存在有不便与缺陷,而亟待加以进一步改进。为了解决上述存在的问题,相关厂商莫不费尽心思来谋求解决之道,但长久以来一直未见适用的设计被发展完成,而一般方法及方法又没有适切的方法及方法能够解决上述问题,此显然是相关业者急欲解决的问题。因此如何能创设一种新的自动对焦方法及影像撷取系统,实属当前重要研发课题之一,亦成为当前业界极需改进的目标。It can be seen that the above-mentioned existing imaging technology obviously still has inconvenience and defects in the method and use, and needs to be further improved urgently. In order to solve the above-mentioned existing problems, relevant manufacturers have tried their best to find a solution, but no suitable design has been developed for a long time, and there are no suitable methods and methods to solve the above-mentioned problems. This is obviously a problem that relevant industry players are eager to solve. Therefore, how to create a new autofocus method and image capture system is one of the current important research and development topics, and has also become a goal that the industry needs to improve.

发明内容 Contents of the invention

本发明的目的在于,克服现有的成像技术存在的缺陷,而提供一种新的自动对焦方法及影像撷取系统,所要解决的技术问题是使其提出一种自动对焦方法及影像撷取系统,以补正预设对焦位置因外界环境影响所造成的偏移,而能准确地自动对焦,非常适于实用。The purpose of the present invention is to overcome the defects of existing imaging technology, and provide a new autofocus method and image capture system, the technical problem to be solved is to make it propose an autofocus method and image capture system , to correct the deviation of the preset focus position due to the influence of the external environment, so as to be able to accurately focus automatically, which is very suitable for practical use.

本发明的目的及解决其技术问题是采用以下技术方案来实现的。依据本发明提出的利用一对焦镜头在一对焦模式的一第一移动区间内进行对焦;记录多个第一对焦位置及相应的多个第一对焦数据;判断上述第一对焦数据是否存在一绝对最大值;如否,则决定一第二移动区间;使该对焦镜头在该第二移动区间内进行对焦,以获得多个第二对焦数据;及根据上述第二对焦数据决定该绝对最大值,并使与该绝对最大值相应的一第二对焦位置为一自动对焦位置。The purpose of the present invention and the solution to its technical problems are achieved by adopting the following technical solutions. According to the present invention, a focus lens is used to focus in a first movement interval of a focus mode; a plurality of first focus positions and corresponding first focus data are recorded; and it is judged whether the first focus data has an absolute the maximum value; if not, then determine a second movement interval; make the focusing lens focus in the second movement interval to obtain a plurality of second focus data; and determine the absolute maximum value according to the second focus data, And make a second focus position corresponding to the absolute maximum value an automatic focus position.

本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。The purpose of the present invention and its technical problems can also be further realized by adopting the following technical measures.

前述的自动对焦方法,其中所述的更包含:当判断上述第一对焦数据存在一绝对最大值,则决定与该绝对最大值相应的该第一对焦位置为该自动对焦位置。The aforementioned auto-focus method further includes: when it is determined that there is an absolute maximum value in the first focus data, determining the first focus position corresponding to the absolute maximum value as the auto-focus position.

前述的自动对焦方法,其中所述的上述第一对焦数据及上述第二对焦数据是边缘锐利度值。In the aforementioned auto-focus method, wherein the first focus data and the second focus data are edge sharpness values.

前述的自动对焦方法,其中所述的该第一移动区间介于一第一预设位置和一第二预设位置之间,当该第二预设位置相应的该第一对焦数据为相对最大值时,则该第二移动区间是自该第二预设位置向外平移至一第三预设位置;当该第一预设位置相应的该第一对焦数据为相对最大值时,则该第二移动区间是自该第一预设位置向外平移至一第四预设位置。In the aforementioned autofocus method, wherein the first movement interval is between a first preset position and a second preset position, when the first focus data corresponding to the second preset position is relatively maximum value, the second moving interval is to move outward from the second preset position to a third preset position; when the first focus data corresponding to the first preset position is a relative maximum value, then the The second movement interval is outward translation from the first preset position to a fourth preset position.

本发明的目的及解决其技术问题还采用以下技术方案来实现。依据本发明提出的一对焦镜头;一致动器,在一对焦模式的一第一移动区间内驱动该对焦镜头至多个第一对焦位置;一储存装置,用以记录上述第一对焦位置及相应的多个第一对焦数据;及一中央处理系统,用以决定上述第一对焦数据是否存在一绝对最大值;其中当上述第一对焦数据未存在该绝对最大值,则该中央处理系统决定一第二移动区间,并使该致动器驱动该对焦镜头在该第二移动区间内移动,以获得相应的多个第二对焦数据,且该中央处理系统根据上述第二对焦数据决定该绝对最大值,并使与该绝对最大值相应的一第二对焦位置为一自动对焦位置。The purpose of the present invention and the solution to its technical problem also adopt the following technical solutions to achieve. According to the present invention, a focus lens is proposed; an actuator drives the focus lens to a plurality of first focus positions in a first movement interval of a focus mode; a storage device is used to record the above-mentioned first focus positions and corresponding A plurality of first focus data; and a central processing system, used to determine whether there is an absolute maximum value in the first focus data; wherein when the absolute maximum value does not exist in the first focus data, the central processing system determines a first focus data Two movement intervals, and the actuator drives the focus lens to move within the second movement interval to obtain a corresponding plurality of second focus data, and the central processing system determines the absolute maximum value according to the second focus data , and make a second focus position corresponding to the absolute maximum value an automatic focus position.

本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。The purpose of the present invention and its technical problems can also be further realized by adopting the following technical measures.

前述的影像撷取系统,其中所述的该第一移动区间介于一第一预设位置和一第二预设位置之间,当该第二预设位置相应的该第一对焦数据为相对最大值时,则该第二移动区间是自该第二预设位置向外平移至一第三预设位置;当该第一预设位置相应的该第一对焦数据为相对最大值时,则该第二移动区间是自该第一预设位置向外平移至一第四预设位置。In the aforementioned image capture system, wherein the first movement interval is between a first preset position and a second preset position, when the first focus data corresponding to the second preset position is relative to When the maximum value is reached, the second movement interval is translated outward from the second preset position to a third preset position; when the first focus data corresponding to the first preset position is the relative maximum value, then The second moving section is outwardly translated from the first preset position to a fourth preset position.

前述的影像撷取系统,其中所述的该第一预设位置为储存在该储存装置内的一无穷远对焦位置。In the aforementioned image capture system, the first preset position is an infinity focus position stored in the storage device.

前述的影像撷取系统,其中所述的该储存装置内建一致动步数调变表,用以依据该对焦模式及一环境参数调变该致动器的一致动步数变化率。In the aforementioned image capture system, the storage device has a built-in actuation step adjustment table for adjusting an actuation step change rate of the actuator according to the focusing mode and an environmental parameter.

前述的影像撷取系统,其中所述的该中央处理系统根据该致动步数调变表,以调变该第三预设位置及该第四预设位置。In the aforementioned image capture system, the central processing system adjusts the third preset position and the fourth preset position according to the actuation step adjustment table.

前述的影像撷取系统,其中所述的该中央处理系统根据该第四预设位置更新该无穷远对焦位置,且该储存装置根据该第四预设位置以更新该致动步数调变表。The aforementioned image capture system, wherein the central processing system updates the infinity focus position according to the fourth preset position, and the storage device updates the actuation step adjustment table according to the fourth preset position .

本发明与现有技术相比具有明显的优点和有益效果。由以上技术方案可知,本发明的主要技术内容如下:Compared with the prior art, the present invention has obvious advantages and beneficial effects. As can be seen from above technical scheme, main technical content of the present invention is as follows:

为达到上述目的,本发明提供了一种自动对焦方法,首先利用对焦镜头在一对焦模式的第一移动区间内进行对焦,并记录多个第一对焦位置及相应的多个第一对焦数据。接着,判断上述第一对焦数据是否存在一绝对最大值。如否,则决定一第二移动区间,并使对焦镜头在第二移动区间内进行对焦,以获得多个第二对焦数据;及根据上述第二对焦数据决定绝对最大值,并使与绝对最大值相应的第二对焦位置为一自动对焦位置。In order to achieve the above object, the present invention provides an autofocus method. Firstly, a focus lens is used to focus in a first movement interval of a focus mode, and multiple first focus positions and corresponding multiple first focus data are recorded. Next, it is judged whether there is an absolute maximum value in the first focusing data. If not, then determine a second movement interval, and make the focus lens focus in the second movement interval, so as to obtain a plurality of second focus data; and determine the absolute maximum value according to the second focus data, and make the absolute maximum The second focusing position corresponding to the value is an auto-focusing position.

此外,为达到上述目的,本发明还提供了一种影像撷取系统,其包含对焦镜头、致动器、储存装置及中央处理系统。致动器在一对焦模式的第一移动区间内驱动对焦镜头至多个第一对焦位置。储存装置记录上述第一对焦位置及相应的多个第一对焦数据。中央处理系统决定上述第一对焦数据是否存在一绝对最大值。其中,当上述第一对焦数据未存在绝对最大值,则中央处理系统决定一第二移动区间,并使致动器驱动对焦镜头在第二移动区间内移动,以获得相应的多个第二对焦数据,且中央处理系统根据上述第二对焦数据决定绝对最大值,并使与绝对最大值相应的第二对焦位置为一自动对焦位置。In addition, to achieve the above object, the present invention also provides an image capture system, which includes a focusing lens, an actuator, a storage device, and a central processing system. The actuator drives the focus lens to a plurality of first focus positions in a first movement interval of a focus mode. The storage device records the above-mentioned first focus position and a plurality of corresponding first focus data. The central processing system determines whether there is an absolute maximum value in the first focusing data. Wherein, when the above-mentioned first focus data does not have an absolute maximum value, the central processing system determines a second movement interval, and makes the actuator drive the focus lens to move within the second movement interval, so as to obtain corresponding multiple second focus data, and the central processing system determines the absolute maximum value according to the second focus data, and makes the second focus position corresponding to the absolute maximum value an auto-focus position.

借由上述技术方案,本发明自动对焦方法及影像撷取系统至少具有下列优点及有益效果:数码相机在受到外部环境变化,或者受到外力,造成对焦镜头的偏移,使得真实的无穷远对焦位置异于出厂前的校正值,对焦镜头可以自动移动至正确的对焦位置,克服使用者因对焦不良或失败而拍摄出模糊的影像。特别是对于塑料材质的镜头,由于塑料材质本身容易吸收水气,可以自动补正镜头折射率的改变。By means of the above-mentioned technical solution, the autofocus method and image capture system of the present invention have at least the following advantages and beneficial effects: when the digital camera is subject to changes in the external environment or external force, the focus lens is shifted, so that the true infinity focus position Different from the calibration value before leaving the factory, the focus lens can automatically move to the correct focus position, overcoming blurred images caused by poor focus or failure of the user. Especially for lenses made of plastic, since the plastic material itself is easy to absorb moisture, it can automatically correct for changes in the refractive index of the lens.

综上所述,本发明是有关于一种自动对焦方法及影像撷取系统,尤指利用对焦镜头在一对焦模式的第一移动区间内进行对焦,并记录多个第一对焦位置及相应的多个第一对焦数据。接着,判断上述第一对焦数据是否存在一绝对最大值。如否,则决定一第二移动区间,并使对焦镜头在第二移动区间内进行对焦,以获得多个第二对焦数据;及根据上述第二对焦数据决定绝对最大值,并使与绝对最大值相应的第二对焦位置为一自动对焦位置。本发明在技术上有显着的进步,并具有明显的积极效果,诚为一新颖、进步、实用的新设计。To sum up, the present invention relates to an auto-focus method and an image capture system, especially to use a focus lens to focus in a first movement interval of a focus mode, and record a plurality of first focus positions and corresponding A plurality of first focusing data. Next, it is judged whether there is an absolute maximum value in the first focusing data. If not, then determine a second moving interval, and make the focusing lens focus in the second moving interval, so as to obtain a plurality of second focusing data; and determine the absolute maximum value according to the above-mentioned second focusing data, and make the absolute maximum The second focusing position corresponding to the value is an auto-focusing position. The present invention has significant progress in technology, and has obvious positive effects, and is a novel, progressive and practical new design.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the following preferred embodiments are specifically cited below, and are described in detail as follows in conjunction with the accompanying drawings.

附图说明 Description of drawings

图1是本发明自动对焦方法及影像撷取系统实施例的影像撷取系统的功能方框图。FIG. 1 is a functional block diagram of the image capture system of the embodiment of the autofocus method and the image capture system of the present invention.

图2是本发明自动对焦方法及影像撷取系统实施例的自动对焦方法的流程图。FIG. 2 is a flow chart of the auto-focus method and the auto-focus method of the image capture system embodiment of the present invention.

图3A、图3B、图3C例示各种边缘曲线。3A, 3B, and 3C illustrate various edge curves.

10:镜头模块             102:对焦镜头10: Lens module 102: Focus lens

104:镜头驱动装置        12:储存装置104: Lens driving device 12: Storage device

122:内存                124:硬盘122: memory 124: hard disk

14:中央处理系统         142:运算单元14: Central processing system 142: Computing unit

144:控制单元            16:影像感测单元144: Control unit 16: Image sensing unit

18:环境参数感测单元     21-27:步骤18: Environmental parameter sensing unit 21-27: Steps

D1:第一移动区间         D2、D3:第二移动区间D1: the first moving interval D2, D3: the second moving interval

F1:第一预设位置         F2:第二预设位置F1: First preset position F2: Second preset position

F3:第三预设位置         F4:第四预设位置F3: The third preset position F4: The fourth preset position

AF、AF’、AF”:自动对焦位置AF, AF’, AF”: auto focus position

具体实施方式 Detailed ways

为更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明提出的自动对焦方法及影像撷取系统其具体实施方式、方法、步骤、特征及其功效,详细说明如后。In order to further explain the technical means and effects that the present invention adopts to achieve the intended purpose of the invention, below in conjunction with the accompanying drawings and preferred embodiments, the specific implementation methods, methods, Steps, features and effects thereof are described in detail below.

图1显示本发明实施例的影像撷取系统的功能方块图。本实施例的影像撷取系统主要是用以执行自动对焦,该影像撷取系统可以为相机、摄影机、移动电话、个人数字助理(Personal Digital Assistant,PDA)、数字音乐(MPEG Audio Layer 3,MP3)播放器或网络摄影机(webcam),但不以此为限。在本实施例中,影像撷取系统主要包含镜头模块10、储存装置12及中央处理系统14。此外,影像撷取系统还可包含影像感测单元16及环境参数感测单元18。FIG. 1 shows a functional block diagram of an image capture system according to an embodiment of the present invention. The image capture system of this embodiment is mainly used to perform autofocus. The image capture system can be a camera, video camera, mobile phone, personal digital assistant (Personal Digital Assistant, PDA), digital music (MPEG Audio Layer 3, MP3 ) player or webcam, but not limited thereto. In this embodiment, the image capture system mainly includes a lens module 10 , a storage device 12 and a central processing system 14 . In addition, the image capture system may further include an image sensing unit 16 and an environmental parameter sensing unit 18 .

如图1所示,本实施例的镜头模块10包含对焦镜头102及镜头驱动装置104。其中,对焦镜头102可移动于一预设移动区间内,用以对被摄物进行对焦。对焦镜头102通常包含有至少一对焦镜片。镜头驱动装置104受控于中央处理系统14,用以驱动对焦镜头102的对焦镜片移动至多个的对焦位置。镜头驱动装置104可包含一致动器,例如步进马达,但不以此为限。As shown in FIG. 1 , the lens module 10 of this embodiment includes a focusing lens 102 and a lens driving device 104 . Wherein, the focus lens 102 can move within a preset movement interval to focus on the subject. The focus lens 102 generally includes at least one focus lens. The lens driving device 104 is controlled by the central processing system 14 and is used to drive the focus lens of the focus lens 102 to move to a plurality of focus positions. The lens driving device 104 may include an actuator, such as a stepping motor, but not limited thereto.

请继续参阅图1,镜头模块10所撷取的影像经由影像感测单元16由模拟的光信号转换为数字的电信号,其包含有镜头模块10所获得的多个对焦数据,例如边缘锐利度(sharpness)值。接着,上述对焦数据被馈至中央处理系统14进行运算处理。本实施例的中央处理系统14包含运算单元142及控制单元144。其中,运算单元142对上述对焦数据进行数值运算,控制单元144则根据运算结果决定如何控制镜头驱动装置104以移动对焦镜头102,最终获得一自动对焦位置。本实施例的运算单元142可以为数字信号处理器,控制单元144可以为中央处理单元,且实作上中央处理系统14可以是一颗芯片,而运算单元142及控制单元144是整合在芯片上,但不以此为限。Please continue to refer to FIG. 1, the image captured by the lens module 10 is converted from an analog optical signal to a digital electrical signal through the image sensing unit 16, which includes a plurality of focusing data obtained by the lens module 10, such as edge sharpness (sharpness) value. Then, the above focus data is fed to the central processing system 14 for calculation and processing. The central processing system 14 of this embodiment includes a computing unit 142 and a control unit 144 . Wherein, the calculation unit 142 performs numerical calculation on the focus data, and the control unit 144 determines how to control the lens driving device 104 to move the focus lens 102 according to the calculation result, and finally obtains an auto-focus position. The operation unit 142 of this embodiment can be a digital signal processor, the control unit 144 can be a central processing unit, and the central processing system 14 can be a chip in practice, and the operation unit 142 and the control unit 144 are integrated on the chip , but not limited to this.

请继续参阅图1,储存装置12主要是用以记录上述对焦位置及相应的对焦数据。本实施例的储存装置12包含作为主存储器的内建内存122及作为次内存的硬盘124。此外,储存装置12还可用以储存无穷远对焦位置。具体而言,在一实施例中,储存装置12储存有镜头驱动装置104的致动步数调变表,其记录各对焦模式(zoom mode)的环境参数变化率所对应的致动步数变化率,其中环境参数是指温度或湿度,但不限于此。下表一例示一致动步数调变表,在表一中以温度作为环境参数为例。在此实施例中,对于广角对焦模式,如果温度25℃时的无穷远对焦位置为200步数的位置,则在温度0℃时,无穷远对焦位置将变为150步数的位置,即200-10*((25-0)/5)。在一实施例中,中央处理系统14可将调变后的无穷远对焦位置更新在储存装置12内。上述温度的变化可由环境参数感测单元18来提供。Please continue to refer to FIG. 1 , the storage device 12 is mainly used to record the aforementioned focus positions and corresponding focus data. The storage device 12 in this embodiment includes a built-in memory 122 as a main memory and a hard disk 124 as a secondary memory. In addition, the storage device 12 can also be used to store the focus position at infinity. Specifically, in one embodiment, the storage device 12 stores the actuation step adjustment table of the lens driving device 104, which records the change of the actuation step corresponding to the change rate of the environmental parameter of each focus mode (zoom mode). rate, where the environmental parameter refers to temperature or humidity, but is not limited thereto. Table 1 below shows an example of an actuation step adjustment table. In Table 1, temperature is used as an environmental parameter as an example. In this example, for the wide-angle focus mode, if the infinity focus position at a temperature of 25°C is the position of 200 steps, then at a temperature of 0°C, the infinity focus position will become the position of 150 steps, that is, 200 steps -10*((25-0)/5). In one embodiment, the central processing system 14 can update the adjusted infinity focus position in the storage device 12 . The above-mentioned temperature change can be provided by the environmental parameter sensing unit 18 .

表一Table I

Figure BSA00000384223400051
Figure BSA00000384223400051

图2显示本发明实施例的自动对焦方法的流程图,其可适用于图1所示的影像撷取装置。以下关于图2的流程说明,请同时参阅图1所示的影像撷取装置。首先,在步骤21,在一对焦模式下,利用对焦镜头102在该对焦模式的第一移动区间内的多个第一对焦位置进行对焦。如前所述,对焦镜头102可由镜头驱动装置104的致动器驱动至上述第一对焦位置。以数码相机为例,数码相机一般会分为数个对焦模式,例如分为一般对焦模式及近处对焦模式,其中,一般对焦模式的对焦范围从无穷远对焦位置至80厘米,而近处对焦模式的对焦范围从80厘米至10厘米,但并不以此为限。接着,在步骤22,以储存装置12记录上述第一对焦位置及相应的多个第一对焦数据。在本实施例中,第一对焦数据为边缘锐利度值。上述上述第一对焦位置及上述第一对焦数据共同形成一边缘曲线。图3A例示一边缘曲线,其纵轴代表对焦数据,而横轴则代表对焦位置。在此例子中,第一移动区间D1是介于第一预设位置F1和第二预设位置F2之间。其中,第一预设位置F1可为无穷远对焦位置,其可储存在储存装置12内。FIG. 2 shows a flowchart of an auto-focusing method according to an embodiment of the present invention, which is applicable to the image capture device shown in FIG. 1 . Please also refer to the image capture device shown in FIG. 1 for the following description of the process in FIG. 2 . First, in step 21 , in a focus mode, focus is performed at a plurality of first focus positions of the focus lens 102 in a first movement interval of the focus mode. As mentioned above, the focusing lens 102 can be driven to the above-mentioned first focusing position by the actuator of the lens driving device 104 . Taking digital cameras as an example, digital cameras are generally divided into several focus modes, such as general focus mode and close focus mode. The focus range is from 80cm to 10cm, but not limited thereto. Next, in step 22 , the storage device 12 records the first focus position and the corresponding first focus data. In this embodiment, the first focus data is an edge sharpness value. The above-mentioned first focus position and the above-mentioned first focus data jointly form an edge curve. FIG. 3A is an example of an edge curve, the vertical axis represents the focus data, and the horizontal axis represents the focus position. In this example, the first moving section D1 is between the first preset position F1 and the second preset position F2. Wherein, the first preset position F1 may be an infinity focus position, which may be stored in the storage device 12 .

请继续参阅图1、图2及图3A,在步骤23,以中央处理系统14判断边缘曲线的上述第一对焦数据是否存在一绝对最大值。在本实施例中,“绝对最大值”的前、后相邻位置的数值皆小于该绝对最大值。如果在步骤23中的判断结果是边缘曲线已存在绝对最大值,则进入步骤24,决定与该绝对最大值相应的第一对焦位置作为自动对焦位置。以图3A所示边缘曲线为例,中央处理系统14依据边缘曲线的斜率,或依据第一对焦位置的前、后相邻位置的数值大小判断出第一对焦位置AF处存在绝对最大值,而定义该处即为自动对焦位置。Please continue to refer to FIG. 1 , FIG. 2 and FIG. 3A , in step 23 , the central processing system 14 judges whether there is an absolute maximum value in the above-mentioned first focusing data of the edge curve. In this embodiment, the values at the front and rear adjacent positions of the "absolute maximum value" are all smaller than the absolute maximum value. If the judging result in step 23 is that the edge curve already has an absolute maximum value, go to step 24 and determine the first focus position corresponding to the absolute maximum value as the auto focus position. Taking the edge curve shown in FIG. 3A as an example, the central processing system 14 judges that there is an absolute maximum value at the first focus position AF according to the slope of the edge curve, or according to the values of the front and rear adjacent positions of the first focus position, and Define this position as the auto focus position.

请参阅图1及图2,如果步骤23中的判断结果是边缘曲线不存在绝对最大值,则进入步骤25,中央处理系统14依据边缘曲线计算出第二移动区间。接着,在步骤26,中央处理系统14使镜头驱动装置104的致动器移动对焦镜头102在第二移动区间的多个第二对焦位置进行对焦,以获得相应的多个第二对焦数据。如同前述第一对焦数据,本实施例的第二对焦数据为边缘锐利度值。最后,在步骤27,中央处理系统14根据上述第二对焦数据的边缘曲线的斜率或数值大小以定义绝对最大值,并使与绝对最大值相应的第二对焦位置作为自动对焦位置。Please refer to FIG. 1 and FIG. 2, if the judgment result in step 23 is that the edge curve does not have an absolute maximum value, then enter step 25, and the central processing system 14 calculates the second movement interval according to the edge curve. Next, in step 26 , the central processing system 14 enables the actuator of the lens driving device 104 to move the focus lens 102 to focus at a plurality of second focus positions in the second moving interval, so as to obtain a plurality of corresponding second focus data. Like the aforementioned first focus data, the second focus data in this embodiment is the edge sharpness value. Finally, in step 27 , the central processing system 14 defines an absolute maximum value according to the slope or value of the edge curve of the second focus data, and uses the second focus position corresponding to the absolute maximum value as the auto-focus position.

图3B例示另一边缘曲线,其第二预设位置F2相应的第一对焦数据对于第一移动区间D1而言并非是绝对最大值,而仅为相对最大值,即中央处理系统14依据边缘曲线的斜率或数值大小判定第一对焦数据仅存在相对最大值。因此,根据步骤25,自第二预设位置F2向外平移至第三预设位置F3,以获得介于第二预设位置F2和第三预设位置F3之间的第二移动区间D2,或是由第三预设位置F3往前回推至第二预设位置F2之前的一特定位置作为第二移动区间D2,即第二移动区间D2可以是自第二预设位置F2至第三预设位置F3,也可以是自特定位置至第三预设位置F3,其中包含第二预设位置F2。请同时参照图1及图2,具体而言,第三预设位置F 3可以是中央处理系统14利用外插法依据边缘曲线所计算而得,或是已内建在储存装置12内的预设距离值;而特定位置可以是由镜头驱动装置104将对焦镜头102自第二预设位置F2往第一预设位置F1方向推进的预设距离值,例如若采用步进马达作为镜头驱动装置104,则设定特定位置即是步进马达自第二预设位置F2往第一预设位置F1方向推进预设数步的位置,但并不限于此。在本实施例中是以自第二预设位置F2至第三预设位置F3作为第二移动区间D2。FIG. 3B illustrates another edge curve. The first focus data corresponding to the second preset position F2 is not an absolute maximum value for the first movement interval D1, but only a relative maximum value. That is, the central processing system 14 according to the edge curve It is judged that only a relative maximum value exists in the first focusing data by a slope or a numerical value of . Therefore, according to step 25, the second preset position F2 is translated outward to the third preset position F3 to obtain a second movement interval D2 between the second preset position F2 and the third preset position F3, Or push back from the third preset position F3 to a specific position before the second preset position F2 as the second movement interval D2, that is, the second movement interval D2 can be from the second preset position F2 to the third The preset position F3 may also be from a specific position to a third preset position F3, including the second preset position F2. Please refer to FIG. 1 and FIG. 2 at the same time. Specifically, the third preset position F3 can be calculated by the central processing system 14 using an extrapolation method based on the edge curve, or a preset value that has been built in the storage device 12. Set the distance value; and the specific position can be the preset distance value that the focus lens 102 is advanced from the second preset position F2 to the first preset position F1 direction by the lens driving device 104, for example, if a stepping motor is used as the lens driving device 104, the set specific position is the position where the stepper motor advances from the second preset position F2 to the first preset position F1 by a preset number of steps, but it is not limited thereto. In this embodiment, the second movement interval D2 is from the second preset position F2 to the third preset position F3.

请再参照图1及图2,接着,根据步骤26,移动对焦镜头102在第二移动区间D2,以获得第二对焦数据。最后,根据步骤27,决定第二移动区间D2的绝对最大值,并使相应的第二对焦位置AF’作为自动对焦位置。以图3B所示边缘曲线为例,中央处理系统14判断第二对焦位置AF’处存在绝对最大值,因此使其作为自动对焦位置。Please refer to FIG. 1 and FIG. 2 again, and then, according to step 26 , the focus lens 102 is moved in the second movement interval D2 to obtain the second focus data. Finally, according to step 27, the absolute maximum value of the second movement interval D2 is determined, and the corresponding second focus position AF' is used as the automatic focus position. Taking the edge curve shown in FIG. 3B as an example, the central processing system 14 judges that there is an absolute maximum value at the second focus position AF', and therefore makes it the auto focus position.

图3C例示又一边缘曲线,其第一预设位置F1相应的第一对焦数据对于第一移动区间D1而言并非是绝对最大值,而仅为相对最大值,即中央处理系统14依据边缘曲线的斜率或数值大小判定为相对最大值。因此,根据步骤25,自第一预设位置F1向外平移至第四预设位置F4,因而得到介于第一预设位置F1和第四预设位置F4之间的第二移动区间D3,或是由第四预设位置F4往后回推至第一预设位置F1之后的一特定位置作为第二移动区间D3,即第二移动区间D3可以是自第一预设位置F1至第四预设位置F4,也可以是自特定位置至第四预设位置F4,其中包含第一预设位置F1。在本实施例中,以第一预设位置F1至第四预设位置F4作为第二移动区间D3,但并不限于此。接着,根据步骤26,移动对焦镜头102在第二移动区间D3,以获得第二对焦数据。最后,根据步骤27,决定第二移动区间D3的绝对最大值,并使相应的第二对焦位置AF”作为自动对焦位置。以图3C所示边缘曲线为例,中央处理系统14判断第二对焦位置AF”处存在绝对最大值,因此使其作为自动对焦位置。3C illustrates yet another edge curve, the first focus data corresponding to the first preset position F1 is not the absolute maximum value for the first movement interval D1, but only a relative maximum value, that is, the central processing system 14 according to the edge curve The slope or value of is judged as the relative maximum value. Therefore, according to step 25, the first preset position F1 is outwardly translated to the fourth preset position F4, thereby obtaining a second movement interval D3 between the first preset position F1 and the fourth preset position F4, Or push back from the fourth preset position F4 to a specific position after the first preset position F1 as the second movement interval D3, that is, the second movement interval D3 can be from the first preset position F1 to the fourth The preset position F4 may also be from a specific position to a fourth preset position F4, including the first preset position F1. In this embodiment, the first preset position F1 to the fourth preset position F4 are used as the second movement interval D3, but it is not limited thereto. Next, according to step 26 , move the focus lens 102 in the second movement interval D3 to obtain second focus data. Finally, according to step 27, the absolute maximum value of the second movement interval D3 is determined, and the corresponding second focus position AF" is used as the automatic focus position. Taking the edge curve shown in FIG. 3C as an example, the central processing system 14 judges the second focus position There is an absolute maximum at position AF", so that makes it the autofocus position.

请参阅图1、图3B、图3C及表一,在一实施例中,中央处理系统14可依据对焦模式及当前环境参数,例如温度或湿度,以调变镜头驱动装置104的致动器的致动步数变化率。再者,中央处理系统14还可根据如表一所例示的致动步数调变表,以调变第三预设位置F3及第四预设位置F4。在另一实施例中,中央处理系统104可根据第四预设位置F4以更新无穷远对焦位置,且储存装置12可根据第四预设位置F4以更新如表一所例示的致动步数调变表,但并不限于此,熟知此技艺者也可斟酌调整其它环境参数修订另一致动步数调变表或置换成一致动步数调变公式。Please refer to FIG. 1, FIG. 3B, FIG. 3C and Table 1. In one embodiment, the central processing system 14 can adjust the actuator of the lens driving device 104 according to the focusing mode and the current environmental parameters, such as temperature or humidity. Rate of change of actuation steps. Furthermore, the central processing system 14 can also adjust the third preset position F3 and the fourth preset position F4 according to the actuation step adjustment table as shown in Table 1. In another embodiment, the central processing system 104 can update the focus position at infinity according to the fourth preset position F4, and the storage device 12 can update the number of actuation steps as shown in Table 1 according to the fourth preset position F4 The modulation table is not limited thereto. Those skilled in the art can also adjust other environmental parameters to revise another actuation step modulation table or replace it with an actuation step modulation formula.

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, may use the technical content disclosed above to make some changes or modify them into equivalent embodiments with equivalent changes, but as long as they do not depart from the technical solution of the present invention, the Technical Essence Any simple modifications, equivalent changes and modifications made to the above embodiments still fall within the scope of the technical solution of the present invention.

Claims (10)

1. automatic focusing method is characterized in that it comprises following steps:
Utilize a focus lens in one first moving section of a focusing pattern, to focus;
Write down a plurality of first focusing positions and corresponding a plurality of first focus data;
Judge whether above-mentioned first focus data exists a bare maximum;
As not, then determine one second moving section;
This focus lens is focused, to obtain a plurality of second focus data in this second moving section; And
According to this bare maximum of above-mentioned second focus data decision, and make with corresponding one second focusing position of this bare maximum be an automatic focusing position.
2. automatic focusing method as claimed in claim 1 is characterized in that it more comprises: when judging that there is a bare maximum in above-mentioned first focus data, then decision is this automatic focusing position with corresponding this first focusing position of this bare maximum.
3. automatic focusing method as claimed in claim 1 is characterized in that above-mentioned first focus data and above-mentioned second focus data are clear-cut margin degree values.
4. automatic focusing method as claimed in claim 1; It is characterized in that this first moving section is between one first predeterminated position and one second predeterminated position; When corresponding this first focus data of this second predeterminated position was relative maximum, then this second moving section was outwards to move to one the 3rd predeterminated position from this second predeterminated position; When corresponding this first focus data of this first predeterminated position was relative maximum, then this second moving section was outwards to move to one the 4th predeterminated position from this first predeterminated position.
5. image acquisition system is characterized in that it comprises:
One focus lens;
One actuator drives this focus lens to a plurality of first focusing positions in one first moving section of a focusing pattern;
One storage device is in order to write down above-mentioned first focusing position and corresponding a plurality of first focus data; And
Whether one central processing system exists a bare maximum in order to determine above-mentioned first focus data;
Wherein work as above-mentioned first focus data and do not have this bare maximum; Then this central processing system determines one second moving section; And this focus lens of this actuator is moved in this second moving section; Obtaining corresponding a plurality of second focus data, and this central processing system is according to above-mentioned this bare maximum of second focus data decision, and make with corresponding one second focusing position of this bare maximum be an automatic focusing position.
6. image acquisition system as claimed in claim 5; It is characterized in that this first moving section is between one first predeterminated position and one second predeterminated position; When corresponding this first focus data of this second predeterminated position was relative maximum, then this second moving section was outwards to move to one the 3rd predeterminated position from this second predeterminated position; When corresponding this first focus data of this first predeterminated position was relative maximum, then this second moving section was outwards to move to one the 4th predeterminated position from this first predeterminated position.
7. image acquisition system as claimed in claim 6 is characterized in that this first predeterminated position is an infinite distance focusing position that is stored in this storage device.
8. image acquisition system as claimed in claim 7 is characterized in that building in this storage device one and activates step number modulation table, in order to activate the step number rate of change according to one of this focal modes and this actuator of environmental parameter modulation.
9. image acquisition system as claimed in claim 8 is characterized in that this central processing system is according to this actuating step number modulation table, with modulation the 3rd predeterminated position and the 4th predeterminated position.
10. image acquisition system as claimed in claim 8 it is characterized in that this central processing system according to this infinite distance focusing position of the 4th predeterminated position renewal, and this storage device should activate step number modulation table according to the 4th predeterminated position to upgrade.
CN2010105863042A 2010-12-08 2010-12-08 Automatic focusing method and image capturing system Pending CN102540639A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105863042A CN102540639A (en) 2010-12-08 2010-12-08 Automatic focusing method and image capturing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105863042A CN102540639A (en) 2010-12-08 2010-12-08 Automatic focusing method and image capturing system

Publications (1)

Publication Number Publication Date
CN102540639A true CN102540639A (en) 2012-07-04

Family

ID=46347854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105863042A Pending CN102540639A (en) 2010-12-08 2010-12-08 Automatic focusing method and image capturing system

Country Status (1)

Country Link
CN (1) CN102540639A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262944A (en) * 2014-07-11 2016-01-20 英特尔公司 systems and method to provide automatic focus with self-calibration
CN110244444A (en) * 2019-05-21 2019-09-17 深圳市智影医疗科技有限公司 Microscopical focusing method, device, terminal device and storage medium
CN112461853A (en) * 2020-10-30 2021-03-09 珠海市奥德维科技有限公司 Automatic focusing method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5664236A (en) * 1994-08-24 1997-09-02 Nikon Corporation Focus adjustment device and method
JP2005283957A (en) * 2004-03-30 2005-10-13 Sanyo Electric Co Ltd Automatic focus controller for imaging device
US20080012978A1 (en) * 2006-07-13 2008-01-17 Fujifilm Corporation Image capture apparatus and focus adjustment method
CN101295122A (en) * 2007-04-27 2008-10-29 奥林巴斯映像株式会社 Interchangeable lens type digital camera
WO2009103000A2 (en) * 2008-02-13 2009-08-20 Qualcomm Incorporated Auto-focus calibration for image capture device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5664236A (en) * 1994-08-24 1997-09-02 Nikon Corporation Focus adjustment device and method
JP2005283957A (en) * 2004-03-30 2005-10-13 Sanyo Electric Co Ltd Automatic focus controller for imaging device
US20080012978A1 (en) * 2006-07-13 2008-01-17 Fujifilm Corporation Image capture apparatus and focus adjustment method
CN101295122A (en) * 2007-04-27 2008-10-29 奥林巴斯映像株式会社 Interchangeable lens type digital camera
WO2009103000A2 (en) * 2008-02-13 2009-08-20 Qualcomm Incorporated Auto-focus calibration for image capture device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262944A (en) * 2014-07-11 2016-01-20 英特尔公司 systems and method to provide automatic focus with self-calibration
CN105262944B (en) * 2014-07-11 2020-02-28 英特尔公司 Method and system for autofocus utilizing self-calibration
CN110244444A (en) * 2019-05-21 2019-09-17 深圳市智影医疗科技有限公司 Microscopical focusing method, device, terminal device and storage medium
CN110244444B (en) * 2019-05-21 2021-09-03 深圳市智影医疗科技有限公司 Microscope focusing method and device, terminal equipment and storage medium
CN112461853A (en) * 2020-10-30 2021-03-09 珠海市奥德维科技有限公司 Automatic focusing method and system
CN112461853B (en) * 2020-10-30 2021-07-27 珠海市奥德维科技有限公司 Automatic focusing method and system

Similar Documents

Publication Publication Date Title
US9986148B2 (en) Image capturing terminal and image capturing method
CN102547113B (en) Image pickup device, control method thereof and program
EP3151536B1 (en) Image capturing terminal and image capturing method
US9781334B2 (en) Control method, camera device and electronic equipment
US8917333B2 (en) Digital image processing apparatus, digital image processing method, and recording medium storing the digital image processing method
US9693041B2 (en) Image capturing device and method for calibrating image deformation thereof
CN1611975A (en) Imaging apparatus
CN103595920A (en) Image collection equipment and auxiliary focusing method and device in zooming process
JP2014202922A (en) Imaging device and control method of the same
JP2015103852A (en) Image processing apparatus, imaging apparatus, image processing apparatus control method, image processing apparatus control program, and storage medium
CN104811607B (en) Photographic device, image capture method and recording medium
JP2010262293A (en) Image space focus
TWI446086B (en) Autofocus method and image capture system
JP5888837B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
CN102540639A (en) Automatic focusing method and image capturing system
CN101470248B (en) Focusing device and method
CN101236289A (en) autofocus method
JP2008129455A (en) Imaging device, control method, and program
KR20110069613A (en) Low power consumption auto focusing camera module and low power consumption
KR100841290B1 (en) Focus Control Method of Surveillance Camera
JP6071173B2 (en) Imaging apparatus, control method thereof, and program
JP2009260413A (en) Image pickup apparatus and method for controlling image pickup apparatus
US10051173B2 (en) Image pick-up apparatus and progressive auto-focus method thereof
WO2020044844A1 (en) Signal processing device, signal processing method, signal processing program, and image capture device
WO2017104228A1 (en) Signal processing method and image capturing device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120704