WO2022057667A1 - Autofocus method and autofocus apparatus - Google Patents
Autofocus method and autofocus apparatus Download PDFInfo
- Publication number
- WO2022057667A1 WO2022057667A1 PCT/CN2021/116765 CN2021116765W WO2022057667A1 WO 2022057667 A1 WO2022057667 A1 WO 2022057667A1 CN 2021116765 W CN2021116765 W CN 2021116765W WO 2022057667 A1 WO2022057667 A1 WO 2022057667A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- angle
- lens barrel
- voltage
- contact
- controller
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000003384 imaging method Methods 0.000 claims abstract description 26
- 238000013507 mapping Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 10
- 238000006243 chemical reaction Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 229910052799 carbon Inorganic materials 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/02—Mountings, adjusting means, or light-tight connections, for optical elements for lenses
- G02B7/04—Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
- G02B7/09—Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification adapted for automatic focusing or varying magnification
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/28—Systems for automatic generation of focusing signals
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B7/00—Mountings, adjusting means, or light-tight connections, for optical elements
- G02B7/28—Systems for automatic generation of focusing signals
- G02B7/282—Autofocusing of zoom lenses
-
- G—PHYSICS
- G03—PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
- G03B—APPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
- G03B13/00—Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
- G03B13/32—Means for focusing
- G03B13/34—Power focusing
- G03B13/36—Autofocus systems
Definitions
- the present application relates to the field of projection technology, and in particular, to an automatic focusing method and an automatic focusing device.
- the distance sensor can also be used to measure the projection distance, and after knowing the current angle position of the lens, the direction and angle that need to be rotated at this time can be calculated according to the lens focusing specification, and then the motor is used to drive the lens to quickly complete the automatic focusing.
- the rotation angle is mostly realized by adjusting the number of steps of the motor, and the sensor needs to sense the starting position of the motor, and there are problems that the structural matching gap is difficult to eliminate, the motor has an idle stroke and the rotation angle calculation is inaccurate, resulting in a slow autofocus speed and poor experience. , while the cost of the externally installed angle sensor is high, and a new mechanism needs to be added for coordination, which is easy to introduce new errors.
- the present application provides an automatic focusing method and an automatic focusing device, which can realize automatic focusing and reduce costs.
- the technical solution adopted in the present application is to provide an automatic focusing device, the automatic focusing device includes a lens, a lens barrel, a controller and a driving device, the lens barrel is provided with a resistance bar, and the lens is provided with a At least one end of the resistance strip is connected to the controller, and the contact is connected to the controller; the controller is used to detect the contact voltage on the contact, and obtain the current angle of the lens barrel according to the contact voltage, and according to the preset The obtained imaging angle and the current angle are used to obtain the angle difference that the lens barrel needs to rotate; the driving device is connected to the controller to drive the lens barrel to rotate to reduce the angle difference; the contact voltage detected by the controller follows the mirror change according to the rotation of the cylinder.
- the technical solution adopted in the present application is to provide an automatic focusing method, which is applied to an automatic focusing device.
- the automatic focusing device includes a lens, a lens barrel, a controller and a driving device, and a resistor is provided on the lens barrel.
- the lens is provided with a contact contact with the resistance strip, at least one end of the resistance strip is connected with the controller, and the contact is connected with the controller.
- the method includes: using the controller to detect the contact voltage on the contact, according to the contact The voltage is used to obtain the current angle of the lens barrel; the controller is used to obtain the angle difference that the lens barrel needs to rotate according to the pre-obtained imaging angle and the current angle; the controller is used to control the driving device to drive the lens barrel to rotate to reduce the angle difference; Among them, the contact voltage detected by the controller changes with the rotation of the lens barrel.
- the beneficial effect of the present application is: the current angle of the lens barrel is detected by the resistance bar on the lens barrel and the contact point on the lens, the contact point and the resistance bar are in contact with each other, and when the lens barrel rotates, the resistance bar follows the movement , so that the contact position between the contact and the resistance strip changes, the controller can detect the voltage at the contact, and use the mapping relationship between the contact voltage and the current angle to calculate the current angle corresponding to the current contact voltage, and then Then use the imaging angle and the current angle to calculate the angle difference that the lens barrel needs to rotate.
- the lens barrel rotates under the action of the driving device, so that the angle difference becomes smaller, so that the picture captured by the lens is clear, because the contact voltage follows the lens barrel. Rotating and changing, it can achieve automatic focus, clear imaging, and the structure is simple, no need to add new mechanisms to match the contacts or resistance strips, no new errors are introduced, and costs can be saved.
- FIG. 1 is a schematic structural diagram of an embodiment of an automatic focusing device provided by the present application.
- FIG. 2 is a schematic diagram of contacts and resistance bars in the embodiment shown in FIG. 1;
- FIG. 3 is a schematic structural diagram of another embodiment of an autofocus device provided by the present application.
- Fig. 4 is the connection schematic diagram of the analog-to-digital converter, the power source, the resistance bar and the temperature sensor in the embodiment shown in Fig. 3;
- FIG. 5 is a schematic flowchart of an embodiment of an automatic focusing method provided by the present application.
- FIG. 1 is a schematic structural diagram of an embodiment of an auto-focusing device provided by the present application.
- the auto-focusing device includes a lens 11 , a lens barrel 12 , a controller 13 and a driving device 14 .
- the lens 11 is a retractable structure, and a contact 111 is provided on the lens 11 .
- the contact 111 can be a conductor, and the contact 111 can be connected to the controller 13 through a wire.
- the lens barrel 12 is connected with the lens 11, the lens barrel 12 is provided with a resistance bar 121 in contact with the contact 111, at least one end of the resistance bar 121 is connected with the controller 13, and the contact 111 is connected with the controller 13; 12 is provided with a chute (not shown in the figure), the resistance strip 121 is attached to the side of the chute, the contact point 111 protruding on the lens 11 is embedded in the chute and abuts with the resistance strip 121, the resistance of the resistance strip 121 The value changes uniformly with the length, which can be a carbon film or a resistance wire, and the opposite ends of the resistance bar 121 are respectively connected with wires.
- the resistance bar 121 follows the lens barrel 12 to move together, and the contact 111 and the resistance bar 121
- the contact position of the controller 13 changes with the change; the controller 13 is used to detect the contact voltage on the contact 111, and the contact voltage detected by the controller 13 changes with the rotation of the lens barrel 12; for example, as shown in FIG.
- the contact 111 is in contact with the position A of the resistance bar 121, the resistance value corresponding to the position A is R1, and the contact voltage detected by the controller 13 is recorded as U1; with the rotation of the lens barrel 12, at the moment t2, the contact 111 Contact with the position B of the resistance bar 121, the resistance value corresponding to the position B is R2, and the contact voltage detected by the controller 13 is recorded as U2.
- the controller 13 is also used to obtain the current angle of the lens barrel 12 according to the contact voltage, and obtain the required rotation angle difference of the lens barrel 12 according to the pre-acquired imaging angle and the current angle of the lens barrel 12; specifically, the angle difference
- the controller 13 can calculate the current angle according to the current contact voltage and the mapping relationship between the current angle and the contact voltage;
- there is a mapping relationship between the current angle of the lens barrel 12 and the imaging angle and the angle difference According to the mapping relationship between the three, the current angle and the angle difference, the angle that the lens barrel 12 needs to rotate at present can be calculated. After being rotated, the imaging of the lens 11 can be made clear.
- the driving device 14 can be connected with the lens barrel 12, which is used to drive the lens barrel 12 to rotate, so as to reduce the angle difference; specifically, the driving device 14 is connected with the controller 13, can receive the angle difference sent by the controller 13, and drive The lens barrel 12 is rotated, so that the lens barrel 12 is rotated to drive the lens 11 to move back and forth, so as to realize automatic focusing and clear imaging.
- the angle difference may also be the angular position of the lens barrel 12 , that is, the final angle of the lens barrel 12 , the implementation principle of which is similar to that of the above-mentioned embodiment, and will not be repeated here.
- This embodiment provides an automatic focusing device.
- Contacts 111 and resistance bars 121 are respectively provided on the lens 11 and the lens barrel 12, and the contacts 111 and the resistance bars 121 are in contact with each other.
- the controller 13 can detect the contact voltage, and use the contact voltage and the mapping relationship between the contact voltage and the current angle Calculate the current angle of the lens barrel 12, and then use the imaging angle and the current angle to calculate the required rotation angle of the lens barrel 12.
- the lens barrel 12 rotates under the action of the driving device 14, so that the picture captured by the lens 11 is clear. The voltage changes with the rotation of the lens barrel 12 , which enables automatic focusing and clear imaging.
- FIG. 3 is a schematic structural diagram of another embodiment of the auto-focusing device provided by the present application.
- the contact point is a spring piece 222 .
- the shrapnel 222 can withstand the lens barrel 22 to prevent the forward and reverse idle travel errors from appearing in the gap, and ensure the accurate mapping relationship between the contact voltage and the position of the contact 211; 222 contacts the resistance bar 221 that moves with the focus adjustment, and the contact 211 can be tightly matched with the resistance bar 221 in the chute through the elastic piece 222; for example, as shown in FIG.
- the controller 23 includes a detection circuit 231 and a processor 232 that are connected to each other.
- the detection circuit 231 is connected to the resistance bar 221 for detecting the contact voltage, and performing analog-to-digital conversion processing on the contact voltage to obtain a digital voltage.
- the detection circuit 231 includes an analog-to-digital converter 2311 and a power supply 2312 connected to each other, and the analog-to-digital converter 2311 is used for converting the contact voltage into a first digital voltage, and feeding back the first digital voltage to the
- the processor 232 specifically, the analog-to-digital converter 2311 can collect the contact voltage, and use the functional relationship between the angle of the lens barrel 22 and the contact voltage to calculate the angle of the lens barrel 22, that is, the current angle.
- the analog-to-digital converter 2311 includes a first terminal, a second terminal and a third terminal, the first terminal of the analog-to-digital converter 2311 is connected to the power supply 2312, and the second terminal of the analog-to-digital converter 2311 is connected to the contact 211 is connected, the third end of the analog-to-digital converter 2311 is grounded; one end (B end) of the resistance bar 221 is grounded, the other end (C end) of the resistance bar 221 is connected to the power supply 2312, and the position of the contact 211 and the resistance bar 221 D contact.
- the processor 232 is connected to the detection circuit 231 and the driving device 24, and is used for controlling the driving device 24 according to the digital voltage fed back by the detection circuit 231; It is used to receive the angle difference sent by the processor 232 and drive the motor 242 according to the angle difference, so that the motor 242 drives the lens barrel 22 to rotate.
- the lens 21 is further provided with a temperature sensor 212 .
- the temperature sensor 212 can be used to detect the temperature of the lens 21 .
- One end of the temperature sensor 212 is connected to the analog-to-digital converter 2311 .
- the other end of the sensor 212 is grounded; specifically, as shown in FIG. 4 , the temperature sensor 212 is connected to the fourth end of the analog-to-digital converter 2311.
- a current limiting resistor 2313 can be provided, one end of the current limiting resistor 2313 is connected to the power source 2312 , and the other end of the current limiting resistor 2313 is connected to the fourth end of the analog-to-digital converter 2311 .
- the analog-to-digital converter 2311 is also used to convert the voltage on the temperature sensor 212 into a second digital voltage, and feed back the second digital voltage to the processor 232, and the processor 232 is used to calculate the corresponding thermal defocus according to the second digital voltage. Compensation angle.
- the voltage of the lens 21 of the target projection size at different temperatures and the angle that needs to be compensated can be measured and stored.
- the auto-focusing device further includes a memory 25, which is connected to the processor 232 and is used for storing the voltages of the temperature sensor 212 and the corresponding compensation angles at different temperatures; specifically, the memory 25 may be electrically erasable Programmable Read Only Memory (EEPROM, Electrically Erasable Programmable Read Only Memory).
- EEPROM Electrically Erasable Programmable Read Only Memory
- the processor 232 is further configured to fit the data in the memory 25 to obtain a functional relationship between the voltage of the temperature sensor 212 and the compensation angle, and use the functional relationship to calculate the corresponding voltage of the temperature sensor 212.
- the temperature sensor 212 can be a thermistor, which can determine the real-time temperature of the lens 21 according to the change of the voltage on the thermistor with the temperature, and calculate the required temperature at the current temperature with the fitted functional relationship. Compensation angle.
- the processor 232 may use the data in the memory 25 to establish a mapping table between the voltage of the temperature sensor 212 and the compensation angle, and use the voltage of the temperature sensor 212 to search in the mapping table to obtain the corresponding Compensation angle.
- the autofocus device further includes a ranging sensor 26 connected to the processor 232 for measuring the projection distance between the lens 21 and the target object, and sending the projection distance to the processor 232 .
- the processor 232 is also used to obtain the imaging angle of the lens barrel 22 according to the projection distance and the design parameters of the lens 21, and use the imaging angle, the current angle and the compensation angle to calculate the angle difference; specifically, the design parameters may include the imaging angle, Or there is a mapping relationship between the design parameters and the imaging angle, and the imaging angle corresponding to the design parameters can be obtained according to the mapping relationship between the two.
- the processor 232 can use the following formula to calculate the angle difference:
- the angle at which the lens 21 can image clearly can be obtained according to the design parameters of the lens 21
- the current angle of the lens barrel 22 can be calculated through the contact voltage
- the current angle of the lens barrel 22 can be calculated through the voltage on the temperature sensor 212 .
- the motor 242 can be controlled to drive the lens barrel 22 to rotate, and the compensation angle can be readjusted according to the real-time temperature of the lens 21 during subsequent operations.
- the auto-focusing device directly attaches the resistance bar 221 to the lens barrel 22, and assists the auto-focusing by detecting the rotation angle of the lens barrel 22, without adding a new structure for cooperation, the structure is simple, the cost is low, and the elastic piece 222 Can withstand the lens barrel 22, prevent the occurrence of gaps to avoid forward and reverse idle travel errors, reduce the influence of the structural matching gap, make the angle detection accurate, and can indicate the current angle of the lens barrel 22 in real time, and can detect the lens 21
- the temperature and the projection distance can compensate for thermal defocus in real time.
- FIG. 5 is a schematic flowchart of an embodiment of an auto-focusing device provided by the present application.
- the method can be applied to the auto-focusing device shown in FIG. 1 .
- the auto-focusing device includes a lens 11 , a lens barrel 12 , and a controller 13
- the driving device 14 the lens barrel 12 is provided with a resistance bar 121
- the lens 11 is provided with a contact 111 in contact with the resistance bar 121
- at least one end of the resistance bar 121 is connected with the controller 13
- the contact 111 is connected with the controller 13
- the method includes:
- Step 51 Use the controller to detect the contact voltage on the contact, and obtain the current angle of the lens barrel according to the contact voltage.
- the contact 111 is in contact with the resistance bar 121 on the lens barrel 12. Since the controller 13 is connected to the contact 111, the controller 13 can be used to detect the voltage at the contact 111 (ie, the contact voltage).
- the contact voltage When the lens barrel 12 rotates , the resistance bar 121 rotates with the lens barrel 12 , and the contact 111 is fixed relative to the lens barrel 12 in the rotation direction of the lens barrel 12 , so the contact position of the contact 111 and the resistance bar 121 follows the rotation of the lens barrel 12 and change, so that the contact voltage changes with the rotation of the lens barrel 12. Since the contact voltage and the current angle of the lens barrel 12 have a mapping relationship, the controller 13 can use the mapping relationship to obtain the current detected contact voltage. The corresponding current angle.
- Step 52 Use the controller to obtain the angle difference required to rotate the lens barrel according to the imaging angle and the current angle.
- the controller 13 can be used for calculation.
- the controller 13 can use the current angle of the lens barrel 12 and the imaging angle of the lens barrel 12 to calculate the current angle of the lens barrel 12 that needs to be rotated. angle to make the image clear.
- Step 53 Use the controller to control the driving device to drive the lens barrel to rotate, so as to reduce the angle difference.
- the controller 13 can be used to control the driving device 14, and the driving device 14 can receive the angle difference sent by the controller 13, so that the driving device 14 drives the lens barrel 12 to continue to rotate. After the rotation of the drum 12 reaches the angle difference, the driving device 14 is controlled to stop working, thereby realizing focusing.
- the present embodiment provides a method for assisting auto-focusing by detecting the rotation angle of the lens barrel 12.
- a resistor strip 121 is attached to a specific position on the lens barrel 12 and a contact 111 is set at a specific position on the lens barrel 11.
- the contact 111 continuously contacts different positions of the resistance bar 121, and the controller 13 can detect the change of the voltage to determine the current angle of the lens barrel 12, and then use the current angle and the imaging angle to calculate the angle that the lens barrel 12 needs to rotate, and The lens barrel 12 is driven to rotate to realize automatic focusing.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Optics & Photonics (AREA)
- Lens Barrels (AREA)
Abstract
An autofocus method and an autofocus apparatus. The autofocus apparatus comprises a lens (11), a lens barrel (12), a controller (13) and a drive device (14). A resistor bar (121) is provided on the lens barrel (12). The lens (11) is provided with a contact (111) in contact with the resistor bar (121). At least one end of the resistor bar (121) is connected to the controller (13). The contact (111) is connected to the controller (13). The controller (13) is used to detect a contact voltage at the contact (111), to obtain a current angle of the lens barrel (12) according to the contact voltage, and to obtain an angle difference by which the lens barrel (12) needs to rotate according to an imaging angle acquired in advance and the current angle. The drive device (14) is connected to the controller (13), and is used to drive the lens barrel (12) to rotate so as to reduce the angle difference. The contact voltage detected by the controller (13) changes with rotation of the lens barrel (12). The autofocus apparatus can realize automatic focusing, and reduce costs.
Description
本申请涉及投影技术领域,具体涉及一种自动对焦方法以及自动对焦装置。The present application relates to the field of projection technology, and in particular, to an automatic focusing method and an automatic focusing device.
目前大部分投影调焦可通过旋转镜筒实现,但通过测量投影距离实现的快速自动对焦需要知道镜筒旋转的角度,并且存在镜头温升后失焦的问题,需要旋转镜筒再次进行调整;另外,还可利用距离传感器测得投影距离,并在知道当前镜头的角度位置后,根据镜头对焦规格推出此时需要旋转的方向和角度,再用马达带动镜头快速完成自动对焦,但现有镜头旋转角度大多通过马达调节步数来实现,需要通过传感器感应马达起始位置,并且具有结构配合间隙难以消除、马达有空行程以及旋转角度计算不准的问题,导致自动对焦速度慢,体验较差,而外置安装角度传感器的成本较高,且需要增加新的机构进行配合,容易引入新的误差。At present, most of the projection focusing can be achieved by rotating the lens barrel, but the fast autofocus achieved by measuring the projection distance needs to know the rotation angle of the lens barrel, and there is a problem of defocusing after the lens temperature rises, and the lens barrel needs to be rotated to adjust again; In addition, the distance sensor can also be used to measure the projection distance, and after knowing the current angle position of the lens, the direction and angle that need to be rotated at this time can be calculated according to the lens focusing specification, and then the motor is used to drive the lens to quickly complete the automatic focusing. The rotation angle is mostly realized by adjusting the number of steps of the motor, and the sensor needs to sense the starting position of the motor, and there are problems that the structural matching gap is difficult to eliminate, the motor has an idle stroke and the rotation angle calculation is inaccurate, resulting in a slow autofocus speed and poor experience. , while the cost of the externally installed angle sensor is high, and a new mechanism needs to be added for coordination, which is easy to introduce new errors.
发明内容SUMMARY OF THE INVENTION
本申请提供一种自动对焦方法以及自动对焦装置,能够实现自动对焦,减少成本。The present application provides an automatic focusing method and an automatic focusing device, which can realize automatic focusing and reduce costs.
为解决上述技术问题,本申请采用的技术方案是:提供一种自动对焦装置,该自动对焦装置包括镜头、镜筒、控制器以及驱动设备,镜筒上设置有电阻条,镜头上设置有与电阻条接触的触点,电阻条的至少一端与控制器连接,触点与控制器连接;控制器用于检测触点上的触点电压,根据触点电压得到镜筒的当前角度,并根据预先获取到的成像角度与当前角度,得到镜筒所需旋转的角度差;驱动设备与控制器连接,用于驱动镜筒旋转,以使角度差减小;控制器检测到的触点电压跟随镜筒的旋转而变化。In order to solve the above-mentioned technical problems, the technical solution adopted in the present application is to provide an automatic focusing device, the automatic focusing device includes a lens, a lens barrel, a controller and a driving device, the lens barrel is provided with a resistance bar, and the lens is provided with a At least one end of the resistance strip is connected to the controller, and the contact is connected to the controller; the controller is used to detect the contact voltage on the contact, and obtain the current angle of the lens barrel according to the contact voltage, and according to the preset The obtained imaging angle and the current angle are used to obtain the angle difference that the lens barrel needs to rotate; the driving device is connected to the controller to drive the lens barrel to rotate to reduce the angle difference; the contact voltage detected by the controller follows the mirror change according to the rotation of the cylinder.
为解决上述技术问题,本申请采用的技术方案是:提供一种自动对焦方法,该方法应用于自动对焦装置,自动对焦装置包括镜头、镜筒、控制器以及驱动设备,镜筒上设置有电阻条,镜头上设置有与电阻条接触的触点,电阻条的至少一端与控制器连接,触点与控制器连接,该方法包括:利用控制器检测触点上的触点电压,根据触点电压得到镜筒的当前角度;利用控制器根据预先获取到的成像角度与当前角度,得到镜筒所需旋转的角度差;利用控制器控制驱动设备驱动镜筒旋转,以使角度差减小;其中,控制器检测到的触点电压跟随镜筒的旋转而变化。In order to solve the above-mentioned technical problems, the technical solution adopted in the present application is to provide an automatic focusing method, which is applied to an automatic focusing device. The automatic focusing device includes a lens, a lens barrel, a controller and a driving device, and a resistor is provided on the lens barrel. The lens is provided with a contact contact with the resistance strip, at least one end of the resistance strip is connected with the controller, and the contact is connected with the controller. The method includes: using the controller to detect the contact voltage on the contact, according to the contact The voltage is used to obtain the current angle of the lens barrel; the controller is used to obtain the angle difference that the lens barrel needs to rotate according to the pre-obtained imaging angle and the current angle; the controller is used to control the driving device to drive the lens barrel to rotate to reduce the angle difference; Among them, the contact voltage detected by the controller changes with the rotation of the lens barrel.
通过上述方案,本申请的有益效果是:通过镜筒上的电阻条和镜头上的触点来检测镜筒的当前角度,触点与电阻条相互接触,在镜筒旋转时,电阻条跟随运动,使得触点与电阻条的接触位置发生变化,控制器可检测到触点处的电压,并利用触点电压与当前角度之间的映射关系计算出与当前触点电压对应的当前角度,然后再利用成像角度与当前角度计算出镜筒所需旋转的角度差,镜筒在驱动设备的作用下旋转,使得角度差变小,从而使得镜头拍摄到的画面清晰,由于触点电压跟随镜筒的旋转而变化,能够实现自动对焦,清晰成像,且结构简单,无需新增机构来配合触点或电阻条,不会引入新的误差,能够节省成本。Through the above scheme, the beneficial effect of the present application is: the current angle of the lens barrel is detected by the resistance bar on the lens barrel and the contact point on the lens, the contact point and the resistance bar are in contact with each other, and when the lens barrel rotates, the resistance bar follows the movement , so that the contact position between the contact and the resistance strip changes, the controller can detect the voltage at the contact, and use the mapping relationship between the contact voltage and the current angle to calculate the current angle corresponding to the current contact voltage, and then Then use the imaging angle and the current angle to calculate the angle difference that the lens barrel needs to rotate. The lens barrel rotates under the action of the driving device, so that the angle difference becomes smaller, so that the picture captured by the lens is clear, because the contact voltage follows the lens barrel. Rotating and changing, it can achieve automatic focus, clear imaging, and the structure is simple, no need to add new mechanisms to match the contacts or resistance strips, no new errors are introduced, and costs can be saved.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。其中:In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort. in:
图1是本申请提供的自动对焦装置一实施例的结构示意图;1 is a schematic structural diagram of an embodiment of an automatic focusing device provided by the present application;
图2是图1所示的实施例中触点与电阻条的示意图;FIG. 2 is a schematic diagram of contacts and resistance bars in the embodiment shown in FIG. 1;
图3是本申请提供的自动对焦装置另一实施例的结构示意图;3 is a schematic structural diagram of another embodiment of an autofocus device provided by the present application;
图4是图3所示的实施例中模数转换器、电源、电阻条以及温度传感器的连接示意图;Fig. 4 is the connection schematic diagram of the analog-to-digital converter, the power source, the resistance bar and the temperature sensor in the embodiment shown in Fig. 3;
图5是本申请提供的自动对焦方法一实施例的流程示意图。FIG. 5 is a schematic flowchart of an embodiment of an automatic focusing method provided by the present application.
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性的劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
请参阅图1,图1是本申请提供的自动对焦装置一实施例的结构示意图,自动对焦装置包括镜头11、镜筒12、控制器13以及驱动设备14。Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of an embodiment of an auto-focusing device provided by the present application. The auto-focusing device includes a lens 11 , a lens barrel 12 , a controller 13 and a driving device 14 .
镜头11为可伸缩结构,镜头11上设置有触点111,触点111可以为导体,触点111可通过导线与控制器13连接。The lens 11 is a retractable structure, and a contact 111 is provided on the lens 11 . The contact 111 can be a conductor, and the contact 111 can be connected to the controller 13 through a wire.
镜筒12与镜头11连接,镜筒12上设置有与触点111接触的电阻条121,电阻条121的至少一端与控制器13连接,触点111与控制器13连接;具体地,镜筒12上设置有一斜槽(图中未示出),电阻条121贴附在斜槽的侧面,镜头11上突出的触点111嵌入斜槽中并与电阻条121抵接,电阻条121的电阻值跟随长度均匀变化,其可以为碳膜或电阻丝,且电阻条121的相对两端分别连接导线,在镜筒12旋转时电阻条121跟随镜筒12一同运动,触点111与电阻条121的接触位置跟随变化;控制器13用于检测触点111上的触点电压,控制器13检测到的触点电压跟随镜筒12的旋转而变化;例如,如图2所示,在t1时刻,触点111与电阻条121的位置A接触,位置A对应的电阻值为R1,控制器13检测到的触点电压记作U1;随着镜筒12的旋转,在t2时刻,触点111与电阻条121的位置B接触,位置B对应的电阻值为R2,控制器13检测到的触点电压记作U2。The lens barrel 12 is connected with the lens 11, the lens barrel 12 is provided with a resistance bar 121 in contact with the contact 111, at least one end of the resistance bar 121 is connected with the controller 13, and the contact 111 is connected with the controller 13; 12 is provided with a chute (not shown in the figure), the resistance strip 121 is attached to the side of the chute, the contact point 111 protruding on the lens 11 is embedded in the chute and abuts with the resistance strip 121, the resistance of the resistance strip 121 The value changes uniformly with the length, which can be a carbon film or a resistance wire, and the opposite ends of the resistance bar 121 are respectively connected with wires. When the lens barrel 12 rotates, the resistance bar 121 follows the lens barrel 12 to move together, and the contact 111 and the resistance bar 121 The contact position of the controller 13 changes with the change; the controller 13 is used to detect the contact voltage on the contact 111, and the contact voltage detected by the controller 13 changes with the rotation of the lens barrel 12; for example, as shown in FIG. 2, at time t1 , the contact 111 is in contact with the position A of the resistance bar 121, the resistance value corresponding to the position A is R1, and the contact voltage detected by the controller 13 is recorded as U1; with the rotation of the lens barrel 12, at the moment t2, the contact 111 Contact with the position B of the resistance bar 121, the resistance value corresponding to the position B is R2, and the contact voltage detected by the controller 13 is recorded as U2.
控制器13还用于根据触点电压得到镜筒12的当前角度,并根据预先获取到的镜筒12的成像角度与当前角度,得到镜筒12所需旋转的角度差;具体地,角度差为使得成像清晰的角度,镜筒12的当前角度与触点电压之间具有映射关系,控制器13根据当前触点电压以及当前角度与触点电压之间的映射关系,可以计算出当前角度;而且镜筒12的当前角度与成像角度以及角度差之间具有映射关系,根据三者之间的映射关系、当前角度以及角度差,能够计算出镜筒12当前需要旋转的角度,在驱动镜筒12旋转了 后,可使得镜头11的成像清晰。The controller 13 is also used to obtain the current angle of the lens barrel 12 according to the contact voltage, and obtain the required rotation angle difference of the lens barrel 12 according to the pre-acquired imaging angle and the current angle of the lens barrel 12; specifically, the angle difference In order to make the angle of imaging clear, there is a mapping relationship between the current angle of the lens barrel 12 and the contact voltage, and the controller 13 can calculate the current angle according to the current contact voltage and the mapping relationship between the current angle and the contact voltage; Moreover, there is a mapping relationship between the current angle of the lens barrel 12 and the imaging angle and the angle difference. According to the mapping relationship between the three, the current angle and the angle difference, the angle that the lens barrel 12 needs to rotate at present can be calculated. After being rotated, the imaging of the lens 11 can be made clear.
驱动设备14可与镜筒12连接,其用于驱动镜筒12旋转,以使角度差减小;具体地,驱动设备14与控制器13连接,可接收控制器13发送的角度差,并驱动镜筒12旋转,使得镜筒12旋转以带动镜头11前后移动,实现自动对焦,清晰成像。The driving device 14 can be connected with the lens barrel 12, which is used to drive the lens barrel 12 to rotate, so as to reduce the angle difference; specifically, the driving device 14 is connected with the controller 13, can receive the angle difference sent by the controller 13, and drive The lens barrel 12 is rotated, so that the lens barrel 12 is rotated to drive the lens 11 to move back and forth, so as to realize automatic focusing and clear imaging.
在其他实施例中,角度差还可以是镜筒12的角度位置,即镜筒12的最终角度,其实现原理与上述实施例类似,在此不再赘述。In other embodiments, the angle difference may also be the angular position of the lens barrel 12 , that is, the final angle of the lens barrel 12 , the implementation principle of which is similar to that of the above-mentioned embodiment, and will not be repeated here.
本实施例提供了一种自动对焦装置,在镜头11和镜筒12上分别设置触点111与电阻条121,且触点111与电阻条121相互接触,在镜筒12旋转时,电阻条121跟随运动,使得触点111与电阻条121的接触位置产生变化,即触点电压改变,控制器13可检测到触点电压,并利用触点电压以及触点电压与当前角度之间的映射关系计算出镜筒12的当前角度,然后再利用成像角度与当前角度计算出镜筒12所需旋转的角度,镜筒12在驱动设备14的作用下旋转,使得镜头11拍摄到的画面清晰,由于触点电压跟随镜筒12的旋转而变化,能够实现自动对焦,清晰成像。This embodiment provides an automatic focusing device. Contacts 111 and resistance bars 121 are respectively provided on the lens 11 and the lens barrel 12, and the contacts 111 and the resistance bars 121 are in contact with each other. When the lens barrel 12 rotates, the resistance bars 121 Following the movement, the contact position of the contact 111 and the resistance bar 121 changes, that is, the contact voltage changes, the controller 13 can detect the contact voltage, and use the contact voltage and the mapping relationship between the contact voltage and the current angle Calculate the current angle of the lens barrel 12, and then use the imaging angle and the current angle to calculate the required rotation angle of the lens barrel 12. The lens barrel 12 rotates under the action of the driving device 14, so that the picture captured by the lens 11 is clear. The voltage changes with the rotation of the lens barrel 12 , which enables automatic focusing and clear imaging.
请参阅图3,图3是本申请提供的自动对焦装置另一实施例的结构示意图,本实施例中触点为弹片222。Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of another embodiment of the auto-focusing device provided by the present application. In this embodiment, the contact point is a spring piece 222 .
弹片222可以顶住镜筒22以防止出现间隙产生正反转空行程误差,确保触点电压与触点211的位置之间的精准映射关系;具体地,弹片222设置于镜筒22上,弹片222接触随调焦运动的电阻条221,通过弹片222可使得触点211与斜槽中的电阻条221紧密配合;例如,如图4所示,触点211与电阻条221的一端(B端)之间的电阻值记作R1,触点电压记作U,镜筒22的角度记作α,电阻值R1可连续变化,触点电压U可连续变化,角度α和触点电压U成线性关系,即α=AU,A为常数。The shrapnel 222 can withstand the lens barrel 22 to prevent the forward and reverse idle travel errors from appearing in the gap, and ensure the accurate mapping relationship between the contact voltage and the position of the contact 211; 222 contacts the resistance bar 221 that moves with the focus adjustment, and the contact 211 can be tightly matched with the resistance bar 221 in the chute through the elastic piece 222; for example, as shown in FIG. The resistance value between the relationship, that is, α=AU, and A is a constant.
控制器23包括互相连接的检测电路231与处理器232,检测电路231与电阻条221连接,其用于检测触点电压,并对该触点电压进行模数转换处理,得到数字电压。The controller 23 includes a detection circuit 231 and a processor 232 that are connected to each other. The detection circuit 231 is connected to the resistance bar 221 for detecting the contact voltage, and performing analog-to-digital conversion processing on the contact voltage to obtain a digital voltage.
在一具体的实施例中,检测电路231包括互相连接的模数转换器2311与电源2312,模数转换器2311用于将触点电压转换成第一数字电压,并将 第一数字电压反馈至处理器232;具体地,模数转换器2311可采集触点电压,利用镜筒22的角度与触点电压之间的函数关系可计算出镜筒22的角度,即当前角度。In a specific embodiment, the detection circuit 231 includes an analog-to-digital converter 2311 and a power supply 2312 connected to each other, and the analog-to-digital converter 2311 is used for converting the contact voltage into a first digital voltage, and feeding back the first digital voltage to the The processor 232; specifically, the analog-to-digital converter 2311 can collect the contact voltage, and use the functional relationship between the angle of the lens barrel 22 and the contact voltage to calculate the angle of the lens barrel 22, that is, the current angle.
如图4所示,模数转换器2311包括第一端、第二端以及第三端,模数转换器2311的第一端与电源2312连接,模数转换器2311的第二端与触点211连接,模数转换器2311的第三端接地;电阻条221的一端(B端)接地,电阻条221的另一端(C端)与电源2312连接,触点211与电阻条221上的位置D接触。As shown in FIG. 4 , the analog-to-digital converter 2311 includes a first terminal, a second terminal and a third terminal, the first terminal of the analog-to-digital converter 2311 is connected to the power supply 2312, and the second terminal of the analog-to-digital converter 2311 is connected to the contact 211 is connected, the third end of the analog-to-digital converter 2311 is grounded; one end (B end) of the resistance bar 221 is grounded, the other end (C end) of the resistance bar 221 is connected to the power supply 2312, and the position of the contact 211 and the resistance bar 221 D contact.
处理器232与检测电路231以及驱动设备24连接,其用于根据检测电路231反馈的数字电压,对驱动设备24进行控制;具体地,驱动设备24包括互相连接的驱动器241与电机242,驱动器241用于接收处理器232发送的角度差,并根据角度差驱动电机242,以使得电机242带动镜筒22转动。The processor 232 is connected to the detection circuit 231 and the driving device 24, and is used for controlling the driving device 24 according to the digital voltage fed back by the detection circuit 231; It is used to receive the angle difference sent by the processor 232 and drive the motor 242 according to the angle difference, so that the motor 242 drives the lens barrel 22 to rotate.
在另一具体的实施例中,如图3所示,镜头21上还设置有温度传感器212,温度传感器212可用于检测镜头21的温度,温度传感器212的一端与模数转换器2311连接,温度传感器212的另一端接地;具体地,如图4所示,温度传感器212与模数转换器2311的第四端连接,为了防止流过温度传感器212的电流过大,对温度传感器212造成损坏,可设置一限流电阻2313,限流电阻2313的一端与电源2312连接,限流电阻2313的另一端与模数转换器2311的第四端连接。In another specific embodiment, as shown in FIG. 3 , the lens 21 is further provided with a temperature sensor 212 . The temperature sensor 212 can be used to detect the temperature of the lens 21 . One end of the temperature sensor 212 is connected to the analog-to-digital converter 2311 . The other end of the sensor 212 is grounded; specifically, as shown in FIG. 4 , the temperature sensor 212 is connected to the fourth end of the analog-to-digital converter 2311. In order to prevent the current flowing through the temperature sensor 212 from being too large and causing damage to the temperature sensor 212, A current limiting resistor 2313 can be provided, one end of the current limiting resistor 2313 is connected to the power source 2312 , and the other end of the current limiting resistor 2313 is connected to the fourth end of the analog-to-digital converter 2311 .
模数转换器2311还用于将温度传感器212上的电压转换成第二数字电压,并将第二数字电压反馈至处理器232,处理器232用于根据第二数字电压计算热失焦对应的补偿角度。The analog-to-digital converter 2311 is also used to convert the voltage on the temperature sensor 212 into a second digital voltage, and feed back the second digital voltage to the processor 232, and the processor 232 is used to calculate the corresponding thermal defocus according to the second digital voltage. Compensation angle.
由于镜头21的热失焦需要补偿的角度和温度的关系呈单调变化,可测量目标投影尺寸的镜头21在不同温度下的电压和需要补偿的角度,并进行存储。Since the relationship between the angle that needs to be compensated for the thermal defocus of the lens 21 and the temperature changes monotonically, the voltage of the lens 21 of the target projection size at different temperatures and the angle that needs to be compensated can be measured and stored.
继续参阅图3,自动对焦装置还包括存储器25,存储器25与处理器232连接,其用于存储不同温度下温度传感器212的电压以及对应的补偿角度;具体地,存储器25可以为电可擦除可编程只读存储器(EEPROM, Electrically Erasable Programmable Read Only Memory)。Continuing to refer to FIG. 3 , the auto-focusing device further includes a memory 25, which is connected to the processor 232 and is used for storing the voltages of the temperature sensor 212 and the corresponding compensation angles at different temperatures; specifically, the memory 25 may be electrically erasable Programmable Read Only Memory (EEPROM, Electrically Erasable Programmable Read Only Memory).
在一具体的实施例中,处理器232还用于对存储器25中的数据进行拟合,得到温度传感器212的电压与补偿角度之间的函数关系,并利用函数关系计算温度传感器212的电压对应的补偿角度;具体地,温度传感器212可以为热敏电阻,可根据热敏电阻上的电压随温度改变来判定镜头21的实时温度,并配合拟合到的函数关系计算出在当前温度下需要补偿的角度。In a specific embodiment, the processor 232 is further configured to fit the data in the memory 25 to obtain a functional relationship between the voltage of the temperature sensor 212 and the compensation angle, and use the functional relationship to calculate the corresponding voltage of the temperature sensor 212. Specifically, the temperature sensor 212 can be a thermistor, which can determine the real-time temperature of the lens 21 according to the change of the voltage on the thermistor with the temperature, and calculate the required temperature at the current temperature with the fitted functional relationship. Compensation angle.
在另一具体的实施例中,处理器232可利用存储器25中的数据建立温度传感器212的电压与补偿角度之间的映射表,并利用温度传感器212的电压在映射表中进行查找得到对应的补偿角度。In another specific embodiment, the processor 232 may use the data in the memory 25 to establish a mapping table between the voltage of the temperature sensor 212 and the compensation angle, and use the voltage of the temperature sensor 212 to search in the mapping table to obtain the corresponding Compensation angle.
继续参阅图3,自动对焦装置还包括测距传感器26,测距传感器26与处理器232连接,其用于测量镜头21与目标物体之间的投影距离,并将投影距离发送至处理器232。Continuing to refer to FIG. 3 , the autofocus device further includes a ranging sensor 26 connected to the processor 232 for measuring the projection distance between the lens 21 and the target object, and sending the projection distance to the processor 232 .
处理器232还用于根据投影距离与镜头21的设计参数,得到镜筒22的成像角度,并利用成像角度、所当前角度以及补偿角度计算出角度差;具体地,设计参数可包括成像角度,或者设计参数与成像角度之间具有映射关系,根据两者之间的映射关系可以得到与设计参数对应的成像角度。The processor 232 is also used to obtain the imaging angle of the lens barrel 22 according to the projection distance and the design parameters of the lens 21, and use the imaging angle, the current angle and the compensation angle to calculate the angle difference; specifically, the design parameters may include the imaging angle, Or there is a mapping relationship between the design parameters and the imaging angle, and the imaging angle corresponding to the design parameters can be obtained according to the mapping relationship between the two.
在一具体的实施例中,处理器232可采用如下公式计算角度差:In a specific embodiment, the processor 232 can use the following formula to calculate the angle difference:
其中,
为角度差,γ为成像角度,α为当前角度,β为补偿角度。
in, is the angle difference, γ is the imaging angle, α is the current angle, and β is the compensation angle.
在通过测距传感器26获取投影距离后,根据镜头21的设计参数可以获取镜头21能够清晰成像的角度,通过触点电压可计算出镜筒22的当前角度,通过温度传感器212上的电压可计算出补偿角度,然后即可控制电机242带动镜筒22旋转,并且根据后续工作时镜头21的实时温度可再调整补偿角度。After the projection distance is obtained through the ranging sensor 26 , the angle at which the lens 21 can image clearly can be obtained according to the design parameters of the lens 21 , the current angle of the lens barrel 22 can be calculated through the contact voltage, and the current angle of the lens barrel 22 can be calculated through the voltage on the temperature sensor 212 . After compensating the angle, the motor 242 can be controlled to drive the lens barrel 22 to rotate, and the compensation angle can be readjusted according to the real-time temperature of the lens 21 during subsequent operations.
本实施例所提供的自动对焦装置直接将电阻条221贴在镜筒22上,通过检测镜筒22的旋转角度辅助自动对焦,未增加新的结构进行配合,结构简单,成本低,并且弹片222能够顶住镜筒22,防止出现间隙以避免产生正反转空行程误差,减小了结构配合间隙的影响,使得角度检测准确,且能够实时指示镜筒22的当前角度,并能够检测镜头21的温度并配合投影 距离,能够实时补偿热失焦。The auto-focusing device provided in this embodiment directly attaches the resistance bar 221 to the lens barrel 22, and assists the auto-focusing by detecting the rotation angle of the lens barrel 22, without adding a new structure for cooperation, the structure is simple, the cost is low, and the elastic piece 222 Can withstand the lens barrel 22, prevent the occurrence of gaps to avoid forward and reverse idle travel errors, reduce the influence of the structural matching gap, make the angle detection accurate, and can indicate the current angle of the lens barrel 22 in real time, and can detect the lens 21 The temperature and the projection distance can compensate for thermal defocus in real time.
请参阅图5,图5是本申请提供的自动对焦装置一实施例的流程示意图,该方法可应用于图1所示的自动对焦装置,自动对焦装置包括镜头11、镜筒12、控制器13以及驱动设备14,镜筒12上设置有电阻条121,镜头11上设置有与电阻条121接触的触点111,电阻条121的至少一端与控制器13连接,触点111与控制器13连接,该方法包括:Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of an embodiment of an auto-focusing device provided by the present application. The method can be applied to the auto-focusing device shown in FIG. 1 . The auto-focusing device includes a lens 11 , a lens barrel 12 , and a controller 13 And the driving device 14, the lens barrel 12 is provided with a resistance bar 121, the lens 11 is provided with a contact 111 in contact with the resistance bar 121, at least one end of the resistance bar 121 is connected with the controller 13, and the contact 111 is connected with the controller 13 , the method includes:
步骤51:利用控制器检测触点上的触点电压,根据触点电压得到镜筒的当前角度。Step 51: Use the controller to detect the contact voltage on the contact, and obtain the current angle of the lens barrel according to the contact voltage.
触点111与镜筒12上的电阻条121接触,由于控制器13与触点111连接,可利用控制器13去检测触点111处的电压(即触点电压),当镜筒12旋转时,电阻条121跟随镜筒12一同旋转,而触点111相对镜筒12来说在镜筒12的旋转方向上固定不动,因而触点111与电阻条121的接触位置跟随镜筒12的旋转而变化,使得触点电压跟随镜筒12的旋转而变化,由于触点电压与镜筒12的当前角度具有映射关系,因而控制器13利用该映射关系可以得到与当前检测到的触点电压相对应的当前角度。The contact 111 is in contact with the resistance bar 121 on the lens barrel 12. Since the controller 13 is connected to the contact 111, the controller 13 can be used to detect the voltage at the contact 111 (ie, the contact voltage). When the lens barrel 12 rotates , the resistance bar 121 rotates with the lens barrel 12 , and the contact 111 is fixed relative to the lens barrel 12 in the rotation direction of the lens barrel 12 , so the contact position of the contact 111 and the resistance bar 121 follows the rotation of the lens barrel 12 and change, so that the contact voltage changes with the rotation of the lens barrel 12. Since the contact voltage and the current angle of the lens barrel 12 have a mapping relationship, the controller 13 can use the mapping relationship to obtain the current detected contact voltage. The corresponding current angle.
步骤52:利用控制器根据成像角度与当前角度,得到镜筒所需旋转的角度差。Step 52: Use the controller to obtain the angle difference required to rotate the lens barrel according to the imaging angle and the current angle.
在利用控制器13计算出镜筒12的当前角度后,可利用控制器13进行计算,控制器13可利用镜筒12的当前角度与镜筒12的成像角度,计算出当前镜筒12需要旋转的角度,才能使得成像清晰。After the current angle of the lens barrel 12 is calculated by the controller 13 , the controller 13 can be used for calculation. The controller 13 can use the current angle of the lens barrel 12 and the imaging angle of the lens barrel 12 to calculate the current angle of the lens barrel 12 that needs to be rotated. angle to make the image clear.
步骤53:利用控制器控制驱动设备驱动镜筒旋转,以使角度差减小。Step 53: Use the controller to control the driving device to drive the lens barrel to rotate, so as to reduce the angle difference.
在计算出镜筒12需要旋转的角度后,可利用控制器13对驱动设备14进行控制,驱动设备14可接收控制器13发送的角度差,使得驱动设备14驱动镜筒12继续旋转,在驱动镜筒12的旋转达到该角度差后,控制驱动设备14停止工作,从而实现对焦。After calculating the angle that the lens barrel 12 needs to rotate, the controller 13 can be used to control the driving device 14, and the driving device 14 can receive the angle difference sent by the controller 13, so that the driving device 14 drives the lens barrel 12 to continue to rotate. After the rotation of the drum 12 reaches the angle difference, the driving device 14 is controlled to stop working, thereby realizing focusing.
本实施例提供了一种通过检测镜筒12的旋转角度进行辅助自动对焦的方法,在镜筒12上特定位置贴附电阻条121以及在镜头11上特定位置设置触点111,镜筒12在旋转时触点111连续接触电阻条121的不同位置,通过控制器13可检测电压的变化,从而判定镜筒12的当前角度,然后利 用当前角度与成像角度计算出镜筒12需要旋转的角度,并驱动镜筒12转动,实现自动对焦。The present embodiment provides a method for assisting auto-focusing by detecting the rotation angle of the lens barrel 12. A resistor strip 121 is attached to a specific position on the lens barrel 12 and a contact 111 is set at a specific position on the lens barrel 11. When rotating, the contact 111 continuously contacts different positions of the resistance bar 121, and the controller 13 can detect the change of the voltage to determine the current angle of the lens barrel 12, and then use the current angle and the imaging angle to calculate the angle that the lens barrel 12 needs to rotate, and The lens barrel 12 is driven to rotate to realize automatic focusing.
以上仅为本申请的实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only the embodiments of the present application, and are not intended to limit the scope of the patent of the present application. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present application, or directly or indirectly applied in other related technical fields, All are similarly included in the scope of patent protection of the present application.
Claims (10)
- 一种自动对焦装置,其特征在于,包括镜头、镜筒、控制器以及驱动设备,所述镜筒上设置有电阻条,所述镜头上设置有与所述电阻条接触的触点,所述电阻条的至少一端与所述控制器连接,所述触点与所述控制器连接;An automatic focusing device is characterized in that it includes a lens, a lens barrel, a controller and a driving device, the lens barrel is provided with a resistance strip, the lens is provided with a contact contact with the resistance strip, the At least one end of the resistance bar is connected with the controller, and the contact is connected with the controller;所述控制器用于检测所述触点上的触点电压,根据所述触点电压得到所述镜筒的当前角度,并根据预先获取到的成像角度与所述当前角度,得到所述镜筒所需旋转的角度差;The controller is used to detect the contact voltage on the contact, obtain the current angle of the lens barrel according to the contact voltage, and obtain the lens barrel according to the pre-obtained imaging angle and the current angle The angle difference of the required rotation;所述驱动设备与所述控制器连接,用于驱动所述镜筒旋转,以使所述角度差减小;The driving device is connected with the controller, and is used for driving the lens barrel to rotate, so as to reduce the angle difference;所述控制器检测到的所述触点电压跟随所述镜筒的旋转而变化。The contact voltage detected by the controller changes with the rotation of the lens barrel.
- 根据权利要求1所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 1, wherein,所述触点为弹片,所述弹片顶住所述镜筒以防止产生正反转空行程误差。The contacts are elastic pieces, and the elastic pieces bear against the lens barrel to prevent the forward and reverse idle stroke errors.
- 根据权利要求1所述的自动对焦装置,其特征在于,所述控制器包括:The automatic focusing device according to claim 1, wherein the controller comprises:检测电路,用于对所述触点电压进行模数转换处理,得到数字电压;a detection circuit for performing analog-to-digital conversion processing on the contact voltage to obtain a digital voltage;处理器,与所述检测电路以及所述驱动设备连接,用于根据所述检测电路反馈的所述数字电压,对所述驱动设备进行控制。A processor, connected to the detection circuit and the driving device, is configured to control the driving device according to the digital voltage fed back by the detection circuit.
- 根据权利要求3所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 3, wherein,所述检测电路包括互相连接的模数转换器与电源,所述模数转换器用于将所述触点电压转换成第一数字电压,并将所述第一数字电压反馈至所述处理器;The detection circuit includes an analog-to-digital converter and a power supply connected to each other, the analog-to-digital converter is used for converting the contact voltage into a first digital voltage, and feeding back the first digital voltage to the processor;其中,所述模数转换器包括第一端、第二端以及第三端,所述模数转换器的第一端与所述电源连接,所述模数转换器的第二端与所述触点连接,所述模数转换器的第三端接地;所述电阻条的一端接地,所述电阻条的另一端与所述电源连接。The analog-to-digital converter includes a first end, a second end and a third end, the first end of the analog-to-digital converter is connected to the power supply, and the second end of the analog-to-digital converter is connected to the power supply. The contacts are connected, and the third end of the analog-to-digital converter is grounded; one end of the resistance bar is grounded, and the other end of the resistance bar is connected to the power supply.
- 根据权利要求4所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 4, wherein,所述镜头上还设置有温度传感器,所述温度传感器的一端与所述模数转换器连接,所述温度传感器的另一端接地;The lens is also provided with a temperature sensor, one end of the temperature sensor is connected to the analog-to-digital converter, and the other end of the temperature sensor is grounded;所述模数转换器还用于将所述温度传感器上的电压转换成第二数字电压,并将所述第二数字电压反馈至所述处理器;所述处理器用于根据所述第二数字电压计算热失焦对应的补偿角度。The analog-to-digital converter is also used for converting the voltage on the temperature sensor into a second digital voltage, and feeding back the second digital voltage to the processor; the processor is used for according to the second digital voltage The voltage calculates the compensation angle corresponding to thermal defocus.
- 根据权利要求5所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 5, wherein,所述自动对焦装置还包括测距传感器,所述测距传感器与所述处理器连接,用于测量所述镜头与目标物体之间的投影距离,并将所述投影距离发送至所述处理器;所述处理器还用于根据所述投影距离与所述镜头的设计参数,得到所述成像角度,并利用所述成像角度、所述当前角度以及所述补偿角度计算出所述角度差。The automatic focusing device further includes a ranging sensor, which is connected to the processor for measuring the projection distance between the lens and the target object, and sending the projection distance to the processor The processor is further configured to obtain the imaging angle according to the projection distance and the design parameters of the lens, and calculate the angle difference by using the imaging angle, the current angle and the compensation angle.
- 根据权利要求6所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 6, wherein,所述处理器采用如下公式计算所述角度差:The processor uses the following formula to calculate the angle difference:
- 根据权利要求6所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 6, wherein,所述自动对焦装置还包括存储器,所述存储器与所述处理器连接,用于存储不同温度下温度传感器的电压以及对应的补偿角度;The automatic focusing device further includes a memory, which is connected to the processor and is used for storing the voltage of the temperature sensor and the corresponding compensation angle at different temperatures;所述处理器还用于对所述存储器中的数据进行拟合,得到所述温度传感器的电压与所述补偿角度之间的函数关系,并利用所述函数关系计算所述温度传感器的电压对应的补偿角度;或者The processor is further configured to fit the data in the memory, obtain a functional relationship between the voltage of the temperature sensor and the compensation angle, and use the functional relationship to calculate the voltage corresponding to the temperature sensor. the compensation angle; or利用所述存储器中的数据建立所述温度传感器的电压与所述补偿角度之间的映射表,并利用所述温度传感器的电压在所述映射表中进行查找得到对应的补偿角度。A mapping table between the voltage of the temperature sensor and the compensation angle is established by using the data in the memory, and the corresponding compensation angle is obtained by searching in the mapping table by using the voltage of the temperature sensor.
- 根据权利要求3所述的自动对焦装置,其特征在于,The automatic focusing device according to claim 3, wherein,所述驱动设备包括互相连接的驱动器与电机,所述驱动器用于接收所述处理器发送的所述角度差,并根据所述角度差驱动所述电机,以使得所述电机带动所述镜筒转动。The driving device includes a driver and a motor that are connected to each other, the driver is configured to receive the angle difference sent by the processor, and drive the motor according to the angle difference, so that the motor drives the lens barrel turn.
- 一种自动对焦方法,其特征在于,应用于自动对焦装置,所述自动对焦装置包括镜头、镜筒、控制器以及驱动设备,所述镜筒上设置有电阻条,所述镜头上设置有与所述电阻条接触的触点,所述电阻条的至少一端与所述控制器连接,所述触点与所述控制器连接,所述方法包括:An automatic focusing method is characterized in that it is applied to an automatic focusing device, the automatic focusing device includes a lens, a lens barrel, a controller and a driving device, the lens barrel is provided with a resistance bar, and the lens is provided with a The contact point contacted by the resistance strip, at least one end of the resistance strip is connected with the controller, the contact point is connected with the controller, and the method includes:利用所述控制器检测所述触点上的触点电压,根据所述触点电压得到所述镜筒的当前角度;Use the controller to detect the contact voltage on the contact, and obtain the current angle of the lens barrel according to the contact voltage;利用所述控制器根据预先获取到的成像角度与所述当前角度,得到所述镜筒所需旋转的角度差;Using the controller to obtain the angle difference required to rotate the lens barrel according to the pre-obtained imaging angle and the current angle;利用所述控制器控制所述驱动设备驱动所述镜筒旋转,以使所述角度差减小;所述控制器检测到的所述触点电压跟随所述镜筒的旋转而变化。The controller is used to control the driving device to drive the lens barrel to rotate, so as to reduce the angle difference; the contact voltage detected by the controller changes with the rotation of the lens barrel.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010975333.1A CN114200631A (en) | 2020-09-16 | 2020-09-16 | A kind of automatic focusing method and automatic focusing device |
CN202010975333.1 | 2020-09-16 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022057667A1 true WO2022057667A1 (en) | 2022-03-24 |
Family
ID=80644556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/116765 WO2022057667A1 (en) | 2020-09-16 | 2021-09-06 | Autofocus method and autofocus apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114200631A (en) |
WO (1) | WO2022057667A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115407476A (en) * | 2022-07-29 | 2022-11-29 | 歌尔光学科技有限公司 | Lens, electronic equipment, method and device for determining focus position of lens |
CN116067409A (en) * | 2023-02-03 | 2023-05-05 | 北京亚华物联科技发展有限公司 | A character wheel reading device, method and storage medium using resistance marks |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6822686B1 (en) * | 1997-06-27 | 2004-11-23 | Canon Kabushiki Kaisha | Lens control apparatus |
CN1940697A (en) * | 2005-09-30 | 2007-04-04 | 鸿富锦精密工业(深圳)有限公司 | Automatic focusing structure and digital camera mould set therewith |
CN205049798U (en) * | 2015-04-09 | 2016-02-24 | 深圳华瑞通科技有限公司 | Laser camera lens and long -range coordinated control and laser angle adjusting device zoom |
CN108710251A (en) * | 2018-04-20 | 2018-10-26 | 广景视睿科技(深圳)有限公司 | A kind of Atomatic focusing method, device and projecting apparatus |
CN111505792A (en) * | 2020-04-26 | 2020-08-07 | 东莞市普密斯精密仪器有限公司 | Multiplying power feedback lens based on variable resistance form |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2834143B2 (en) * | 1988-06-03 | 1998-12-09 | 株式会社日立製作所 | Video camera |
CN203502659U (en) * | 2013-08-22 | 2014-03-26 | 福建福光数码科技有限公司 | High-resolution long-focus automatic-focusing and automatic-dimming airborne zoom camera lens |
CN214540197U (en) * | 2020-09-16 | 2021-10-29 | 深圳光峰科技股份有限公司 | an automatic focusing device |
-
2020
- 2020-09-16 CN CN202010975333.1A patent/CN114200631A/en active Pending
-
2021
- 2021-09-06 WO PCT/CN2021/116765 patent/WO2022057667A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6822686B1 (en) * | 1997-06-27 | 2004-11-23 | Canon Kabushiki Kaisha | Lens control apparatus |
CN1940697A (en) * | 2005-09-30 | 2007-04-04 | 鸿富锦精密工业(深圳)有限公司 | Automatic focusing structure and digital camera mould set therewith |
CN205049798U (en) * | 2015-04-09 | 2016-02-24 | 深圳华瑞通科技有限公司 | Laser camera lens and long -range coordinated control and laser angle adjusting device zoom |
CN108710251A (en) * | 2018-04-20 | 2018-10-26 | 广景视睿科技(深圳)有限公司 | A kind of Atomatic focusing method, device and projecting apparatus |
CN111505792A (en) * | 2020-04-26 | 2020-08-07 | 东莞市普密斯精密仪器有限公司 | Multiplying power feedback lens based on variable resistance form |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115407476A (en) * | 2022-07-29 | 2022-11-29 | 歌尔光学科技有限公司 | Lens, electronic equipment, method and device for determining focus position of lens |
CN116067409A (en) * | 2023-02-03 | 2023-05-05 | 北京亚华物联科技发展有限公司 | A character wheel reading device, method and storage medium using resistance marks |
Also Published As
Publication number | Publication date |
---|---|
CN114200631A (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022057667A1 (en) | Autofocus method and autofocus apparatus | |
JP5821001B2 (en) | Lens barrel and imaging device | |
US8891951B2 (en) | Lens barrel and camera system capable of correcting tracking data and camera system | |
US8582018B2 (en) | Imaging device, imaging method, and program | |
WO2019085260A1 (en) | Autofocus system and method, and projection device | |
US9491350B2 (en) | Autofocus device and digital camera | |
US8135269B2 (en) | Image pickup apparatus | |
US8582964B2 (en) | Imaging device and control method thereof | |
CN105308489B (en) | Focus-regulating device, camera arrangement and focus adjusting method | |
CN103969786A (en) | Varifocal mechanism of varifocal television system | |
TWI448802B (en) | Image capturing device and method of backlash auto-correction | |
CN214540197U (en) | an automatic focusing device | |
CN102202170B (en) | Image pickup lens, image pickup apparatus and lens controlling method | |
CN106813635A (en) | A kind of bearing calibration of lens motor focusing curve and device | |
WO2018040098A1 (en) | Lens module | |
CN111427383B (en) | Control method for variable base line of binocular cradle head | |
US20140104485A1 (en) | Imaging apparatus | |
US9207428B2 (en) | Lens barrel including a correction lens to move for zoom tracking, and imaging apparatus | |
WO2022267196A1 (en) | Driving method using sma line pair, and actuation structure and storage medium | |
US9229188B2 (en) | Imaging apparatus and control method for same | |
JP2004205742A (en) | Optical system driving method | |
JP2006227274A (en) | Imaging apparatus | |
JP7580415B2 (en) | Imaging device, control method, and program | |
CN119520747A (en) | A focusing method, projection equipment and storage medium | |
JP3620339B2 (en) | Optical barrel position correction mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21868492 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 21868492 Country of ref document: EP Kind code of ref document: A1 |