CN112946855A - Automatic focusing method and system - Google Patents

Automatic focusing method and system Download PDF

Info

Publication number
CN112946855A
CN112946855A CN201911268822.7A CN201911268822A CN112946855A CN 112946855 A CN112946855 A CN 112946855A CN 201911268822 A CN201911268822 A CN 201911268822A CN 112946855 A CN112946855 A CN 112946855A
Authority
CN
China
Prior art keywords
lens
detection signal
driving mechanism
maximum intensity
auto
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
CN201911268822.7A
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.)
Yuyao Sunny Optical Intelligence Technology Co Ltd
Original Assignee
Yuyao Sunny Optical Intelligence Technology 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 Yuyao Sunny Optical Intelligence Technology Co Ltd filed Critical Yuyao Sunny Optical Intelligence Technology Co Ltd
Priority to CN201911268822.7A priority Critical patent/CN112946855A/en
Publication of CN112946855A publication Critical patent/CN112946855A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/02Mountings, adjusting means, or light-tight connections, for optical elements for lenses
    • G02B7/04Mountings, adjusting means, or light-tight connections, for optical elements for lenses with mechanism for focusing or varying magnification
    • G02B7/09Mountings, 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
    • GPHYSICS
    • G02OPTICS
    • G02BOPTICAL ELEMENTS, SYSTEMS OR APPARATUS
    • G02B7/00Mountings, adjusting means, or light-tight connections, for optical elements
    • G02B7/28Systems for automatic generation of focusing signals
    • G02B7/282Autofocusing of zoom lenses
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS 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/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B13/32Means for focusing
    • G03B13/34Power focusing
    • G03B13/36Autofocus systems

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Lens Barrels (AREA)

Abstract

The invention provides an automatic focusing method and system, wherein the automatic focusing method comprises the following steps: a driving mechanism drives a first lens of an optical lens to move between a first limit position and a second limit position relative to a second lens so as to change the focal length of the optical lens; acquiring detection signals corresponding to a plurality of positions in the process that the first lens moves relative to the second lens, and processing the detection signals at each position to acquire a detection signal with the maximum intensity and a position corresponding to the detection signal; and driving the first lens to move to a position corresponding to the detection signal with the maximum intensity relative to the second lens by the driving mechanism.

Description

Automatic focusing method and system
Technical Field
The present invention relates to the field of auto-focusing, and in particular, to an auto-focusing method and system.
Background
The automatic focusing technology is generally applied to the field of camera lenses of digital cameras, mobile phones, computers and the like, and with the rapid development of the laser technology, the automatic focusing lens based on the laser technology is gradually and widely applied, so that rapid automatic focusing can be realized.
For example, patent application No. CN105938233A discloses an infrared automatic focusing system and a fast automatic focusing method, in which a motor system is controlled to move by detecting temperature and resolving according to temperature conditions, image information is collected for each point in a full range and infrared image characteristic analysis is performed, and operation and storage are performed, then an optimal position is determined according to characteristic indexes of each point in a memory, and a direct current motor is controlled by the motor system to move in place. Therefore, the method is greatly influenced by the external environment temperature, and the automatic focusing error and the precision of the method are higher under the condition of larger external temperature fluctuation. In addition, the method firstly judges the optimal position through the characteristic indexes of all point positions of the full range stored by the memory, so that the operation time is prolonged, and the focusing time is increased.
For another example, patent application No. CN106154688A discloses an auto-focusing method and device, the method includes: acquiring a fuzzy diameter value of an image sensor of a terminal, an aperture value of a lens and a motion parameter of a motor; calculating the object distance range of each step of the motor according to the fuzzy diameter value, the aperture value of the lens and the motion parameter of the motor; eliminating the steps of which the object distance range is within the object distance range of other steps in the steps; obtaining gray contrast values of corresponding positions of all steps left after elimination; and determining a stepping position from the remaining steps after the elimination according to the gray contrast value to be used as a focusing focus. In the method, the length and the speed of each step of the motor are set according to the fuzzy diameter value, the aperture value of the lens and the motor motion parameters, so that the step length and the speed of the motor are limited, the focusing precision is reduced, the focusing range is small, and the focusing time is prolonged.
In summary, there is a need for an auto-focusing method and system that can achieve auto-focusing in a shorter focusing time.
Disclosure of Invention
One of the main advantages of the present invention is to provide an auto-focusing method and system, which can achieve auto-focusing within a shorter focusing time than the conventional auto-focusing method.
Another advantage of the present invention is to provide an auto-focusing method and system, which can obtain a position where a signal is strongest, i.e., a best focus position, by comparing signal strengths between a detection signal fed back at each step position of a motor and a detection signal fed back at a previous step position, to achieve auto-focusing.
Another advantage of the present invention is to provide an auto-focusing method and system, which obtains a position with a proper signal intensity, i.e., a proper focusing position, by comparing the magnitude between the signal intensity of the detection signal fed back at step-by-step positions of the motor and a preset signal intensity, to achieve auto-focusing.
It is another advantage of the present invention to provide an auto-focusing method and system in which the step travel of the motor is adjustable to meet the wide range of auto-focusing requirements.
Another advantage of the present invention is to provide an auto-focusing method and system that uses a high-precision, high-speed linear motor to accomplish auto-focusing to improve focusing precision and shorten focusing time.
Additional advantages and features of the invention will be set forth in the detailed description which follows and in part will be apparent from the description, or may be learned by practice of the invention as set forth hereinafter.
According to an aspect of the present invention, there is provided an auto-focusing method, including:
a driving mechanism drives a first lens of an optical lens to move between a first limit position and a second limit position relative to a second lens so as to change the focal length of the optical lens;
acquiring detection signals corresponding to a plurality of positions in the process that the first lens moves relative to the second lens, and processing the detection signals at each position to acquire a detection signal with the maximum intensity and a position corresponding to the detection signal; and
and the driving mechanism drives the first lens to move to a position corresponding to the detection signal with the maximum intensity relative to the second lens.
In an embodiment of the present application, before a driving mechanism drives a first lens of an optical lens to move between a first limit position and a second limit position relative to a second lens to change a focal length of the optical lens, the driving mechanism further includes:
and rotating the driving mechanism one or more times in the same direction until the driving mechanism is positioned at an initial limiting position, wherein the initial limiting position is positioned at the first limiting position, the second limiting position or between the first limiting position and the second limiting position.
In an embodiment of the present application, acquiring detection signals corresponding to a plurality of positions during a process in which the first lens moves relative to the second lens, and processing the detection signals at the respective positions to obtain a detection signal with a maximum intensity and a corresponding position thereof includes:
acquiring the detection signal of the current position, comparing the detection signal with the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position thereof; and
and acquiring the detection signal of the next position, comparing the detection signal with the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position thereof.
In an embodiment of the present application, acquiring detection signals corresponding to a plurality of positions during a process in which the first lens moves relative to the second lens, and processing the detection signals at the respective positions to obtain a detection signal with a maximum intensity and a corresponding position thereof further includes:
stopping acquiring the detection signal in response to the drive mechanism being in an end position; and
and responding to the fact that the driving mechanism is not located at the end position, and continuously acquiring the detection signal of the next position.
In an embodiment of the present application, acquiring detection signals corresponding to a plurality of positions during a process in which the first lens moves relative to the second lens, and processing the detection signals at the respective positions to obtain a detection signal with a maximum intensity and a corresponding position thereof includes:
acquiring the detection signal of the current position;
responding to the intensity that the detection signal of the current position is greater than the preset signal, and recording the current position as a proper focusing position; and
and responding to the intensity of the detection signal at the current position being smaller than the preset signal intensity, and continuously acquiring the detection signal at the next position so as to drive the first lens to move to the proper focusing position relative to the second lens by the driving mechanism.
According to another aspect of the present application, there is provided an auto-focusing system adapted to adjust a focal length of an optical lens, including:
the driving mechanism is used for driving the first lens of the optical lens to move between a first limit position and a second limit position relative to the second lens so as to change the focal length of the optical lens;
a photosensor; and
the control unit is used for processing the detection signals of each position to obtain a detection signal with the maximum intensity and a corresponding position thereof, and controlling the driving mechanism to drive the first lens to move to the position corresponding to the detection signal with the maximum intensity relative to the second lens.
In one embodiment of the present application, the driving mechanism is a high-speed linear motor having the processes of starting, accelerating, uniform speed, decelerating and stopping.
In an embodiment of the present application, the auto-focusing system further comprises a limit switch, wherein the limit switch is connected to the driving mechanism, wherein the limit switch is used for limiting the step travel of the driving mechanism.
In an embodiment of the present application, the control unit compares the magnitude between the detection signal of the current position and the previously recorded detection signal with the maximum intensity by a ratio method or a difference method, and records the detection signal with the maximum intensity and the corresponding position thereof.
Further objects and advantages of the invention will be fully apparent from the ensuing description and drawings.
These and other objects, features and advantages of the present invention will become more fully apparent from the following detailed description, the accompanying drawings and the claims.
Drawings
FIG. 1 illustrates a block diagram of an auto-focus system according to a preferred embodiment of the present application.
Fig. 2 is a block diagram illustrating a specific example of the auto-focusing system according to the preferred embodiment of the present application.
FIG. 3 is a schematic diagram illustrating the operating curve coordinates of the driving mechanism of the auto-focusing system according to the preferred embodiment of the present application.
Fig. 4 is a schematic diagram illustrating a procedure of the auto-focusing system according to the preferred embodiment of the present application.
FIG. 5 illustrates a method flowchart of an auto-focus method according to a preferred embodiment of the present application.
Detailed Description
The following description is presented to disclose the invention so as to enable any person skilled in the art to practice the invention. The preferred embodiments in the following description are given by way of example only, and other obvious variations will occur to those skilled in the art. The basic principles of the invention, as defined in the following description, may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
It will be understood by those skilled in the art that in the present disclosure, the terms "longitudinal," "lateral," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like are used in an orientation or positional relationship indicated in the drawings for ease of description and simplicity of description, and do not indicate or imply that the referenced devices or components must be in a particular orientation, constructed and operated in a particular orientation, and thus the above terms are not to be construed as limiting the present invention.
It is understood that the terms "a" and "an" should be interpreted as meaning that a number of one element or element is one in one embodiment, while a number of other elements is one in another embodiment, and the terms "a" and "an" should not be interpreted as limiting the number.
Exemplary auto-focusing System
Fig. 1 is a block diagram schematically illustrating an auto-focusing system according to a preferred embodiment of the present application, and as shown in fig. 1 and 2, the auto-focusing system according to the preferred embodiment of the present application includes: a driving mechanism 10, a photo sensor 20 and a control unit 30, wherein the driving mechanism 10 and the photo sensor 20 are communicatively connected and/or electrically connected to the control unit 30 for adjusting a focal length of an optical lens.
The driving mechanism 10 is used for driving the first lens of the optical lens to move between a first limit position and a second limit position relative to the second lens so as to change the focal length of the optical lens. In this embodiment, the second lens remains fixed, and the driving mechanism 10 moves the first lens closer to or away from the second lens to change the focal length of the optical lens. Alternatively, the first lens remains fixed and the driving mechanism 10 moves the second lens closer to or away from the first lens to change the focal length of the optical lens. Alternatively, the driving mechanism 10 moves the first lens and the second lens at the same time and at different distances to change the focal length of the optical lens.
The driving mechanism 10 is preferably a stepping motor, wherein the stepping stroke of the driving mechanism 10 is the distance between the first limit position and the second limit position. That is, the distance between the first limit position and the second limit position is not suitable to be larger or smaller than the step stroke of the driving mechanism 10, so as to prevent the driving mechanism 10 from being damaged due to over-stroke or the automatic focusing effect from being affected due to too short stroke. Further, the driving mechanism 10 is a high-precision high-speed linear motor, and has the processes of starting, accelerating, uniform speed, decelerating and stopping, and when the stroke is fixed, the stepping speed and precision of the driving mechanism 10 are both higher, so as to shorten the focusing time, i.e. compared with the traditional automatic focusing system, the automatic focusing system of the present invention adopts the high-precision high-speed linear motor to complete automatic focusing, so that the focusing precision can be improved, the focusing time is shortened, the focusing time is about 2-3 seconds, the quick focusing is realized, and the user experience is improved.
That is, during the auto-focusing process, the driving mechanism 10 undergoes the processes of starting, accelerating, uniform speed, decelerating and stopping, and as shown in fig. 3, the operation curve coordinate diagram of the driving mechanism 10 is shown. Further, after the optical lens is started, the driving mechanism 10 needs to be reset, wherein the driving mechanism 10 drives the first lens of the optical lens to move to an initial limit position relative to the second lens. Preferably, the initial limit position is the first limit position or the second limit position, i.e. the starting point or the end point of the driving mechanism 10. Optionally, the initial limit position is one of preset positions between the first limit position and the second limit position, such as an intermediate position.
For example, the distance between the first limit position and the second limit position is 8mm, that is, the step travel of the driving mechanism 10 is 8mm, wherein the step number of the driving mechanism 10 is 8000 steps, and the step pitch is 1 um.
Further, after the driving mechanism 10 is activated, the driving mechanism 10 rotates one or more times in the same direction until the driving mechanism 10 is at the initial limit position to complete the resetting, wherein the initial limit position is located at the first limit position, the second limit position or between the first limit position and the second limit position.
Specifically, after the driving mechanism 10 is started, the control unit 30 determines whether the driving mechanism 10 is located at the initial limit position, if so, the resetting is completed, if not, the driving mechanism 10 rotates one or more times in the same direction, and the control unit 30 determines again whether the driving mechanism 10 is located at the initial limit position, if so, the resetting is completed, and if not, the driving mechanism 10 rotates one or more times in the same direction until the driving mechanism 10 is located at the initial limit position.
After the driving mechanism 10 is reset, the driving mechanism 10 enters an acceleration process, that is, the driving mechanism 10 runs in an acceleration mode, that is, the stepping speed gradually accelerates at a certain acceleration until the stepping speed of the driving mechanism 10 reaches a constant speed threshold, and enters a constant speed process. The constant speed threshold is preset according to the relative stepping times or positions of the driving mechanism 10 or the relative distance between the first lens and the second lens. Or, when the driving mechanism 10 reaches a preset position or runs for a preset number of steps, the driving mechanism 10 ends the acceleration process and enters a constant speed process.
In the process of uniform speed, the driving mechanism 10 operates at a constant speed, and when the driving mechanism 10 steps by a preset number of times or reaches a preset position, the driving mechanism 10 ends the process of uniform speed and enters the process of deceleration.
During the deceleration process, the driving mechanism 10 is decelerated, i.e. the stepping speed is gradually decelerated, until the driving mechanism 10 reaches a specified position (or a target position) or an end position (or a limit position), the driving mechanism 10 stops, i.e. enters a stopping process, at which time the first lens and the second lens are kept relatively still, and the focal length of the optical lens is not changed.
As shown in fig. 2, further, the auto-focusing system further includes a limit switch 40, wherein the limit switch 40 is used for limiting the step travel of the driving mechanism 10. When the driving mechanism 10 rotates to the first limit position, the limit switch 40 is triggered to control the driving mechanism 10 to rotate reversely to move towards the second limit position. When the driving mechanism 10 rotates to the second limit position, the limit switch 40 is triggered to control the driving mechanism 10 to rotate reversely to rotate towards the first limit position. Furthermore, the number of the limit switches 40 is two, wherein one of the limit switches 40 is used to be triggered to control the driving mechanism 10 to rotate reversely at the first limit position, and the other limit switch 40 is used to be triggered to control the driving mechanism 10 to rotate reversely at the second limit position.
It should be noted that the step stroke of the driving mechanism 10 can be preset and adjusted, that is, the distance between the first limit position and the second limit position can be preset, so as to meet the requirement of large-range automatic focusing. Preferably, the automatic focusing system can meet the automatic focusing requirement of the optical lens in the range of 0-50 m. The step accuracy of the driving mechanism 10 may be preset adjusted, that is, the number of steps and the number of positions between the first limit position and the second limit position may be preset adjusted to adjust the accuracy of the auto-focusing.
The photoelectric sensor 20 is used for acquiring detection signals corresponding to a plurality of positions in the process of moving the first lens relative to the second lens. The photosensor 20, such as a photo sensor chip, is used to convert an optical signal into an electrical signal. During the auto-focusing process, the photosensor 20 is used for receiving the light beam passing through the first lens and the second lens of the optical lens and converting the light beam into the detection signal in the form of an electrical signal. It should be understood that the higher the illumination intensity of the light beam irradiated on the photosensor 20, the better the focal length of the optical lens, and the greater the intensity (voltage) of the detection signal detected by the photosensor 20. That is, the greater the intensity of the detection signal detected by the photosensor 20 is, the better the focal length of the optical lens at the corresponding position is. Therefore, in this embodiment, the auto-focusing system compares the intensities of the detection signals corresponding to the plurality of positions to obtain an optimal focusing position.
Preferably, the photoelectric sensor 20 acquires the detection signal of the corresponding position every time the driving mechanism 10 is stepped. That is, in the case that the stepping stroke of the driving mechanism 10 is constant, the higher the stepping accuracy of the driving mechanism 10 is, the higher the number of the detection signals detected by the photosensor 20 is, which is advantageous for improving the focusing accuracy of the auto-focusing system.
Alternatively, the photoelectric sensor 20 acquires the detection signal of the corresponding position every time the driving mechanism 10 is stepped two or more times.
The control unit 30 is configured to process the detection signals at the respective positions to obtain a detection signal with the maximum intensity and a position corresponding to the detection signal, and is configured to control the driving mechanism 10 to drive the first lens to move relative to the second lens to a position corresponding to the detection signal with the maximum intensity, which is a position of an optimal focus point of the optical lens, so as to complete auto-focusing. The control unit 30 is, for example, a Central Processing Unit (CPU), wherein the control unit 30 has functions of receiving, processing, outputting signals, and storing data.
It should be noted that the control unit 30 may include a counter for recording the number of steps (i.e. the number of forward or reverse rotations) of the driving mechanism 10, wherein the number of times recorded by the counter represents the position information corresponding to the movement of the first lens relative to the second lens driven by the driving mechanism 10.
Further, after the driving mechanism 10 is reset, that is, the driving mechanism 10 is located at the initial position, the photoelectric sensor 20 detects and acquires a detection signal of a first position, wherein the control unit 30 marks the detection signal of the first position as the detection signal with the maximum intensity, and records a corresponding position. Then, each time the detection signal of the next position is acquired, the detection signal is compared with the previously recorded detection signal with the maximum intensity, wherein the control unit 30 records the detection signal with the maximum intensity and the corresponding position thereof until the driving mechanism 10 moves to the limit position (i.e., the full stroke is completed), i.e., the comparison of the detection signals corresponding to the positions in the full stroke is completed, and the control unit 30 records the detection signal with the maximum intensity and the corresponding position thereof, i.e., the best focus position. Then, the control unit 30 controls the driving mechanism 10 to drive the first lens to move to the position corresponding to the detection signal with the maximum intensity relative to the second lens, thereby completing the automatic focusing.
It should be noted that the control unit 30 compares the intensity between the two detection signals by a ratio method or a difference method, that is, the control unit 30 compares the intensity between the detection signal at the current position and the previously recorded detection signal with the maximum intensity by a ratio method or a difference method, and records the detection signal with the maximum intensity and the corresponding position thereof.
That is, during the auto-focusing, the photosensor 20 detects the detection signal for acquiring the current position and feeds back the detection signal to the control unit 30, wherein the control unit 30 records the detection signal with the maximum intensity and the corresponding position by comparing the detection signal with the current position and the previously recorded detection signal with the maximum intensity. Then, the photo sensor 20 continues to acquire the detection signal of the next position and feeds back the detection signal to the control unit 30, wherein the control unit 30 records the detection signal with the maximum intensity and the corresponding position thereof by comparing the detection signal of the next position with the previously recorded detection signal with the maximum intensity.
Further, in response to that the driving mechanism 10 is at the end position, i.e. the limit position, that is, when the driving mechanism 10 has completed the entire stroke, the photoelectric sensor 20 stops acquiring the detection signal, and then the control unit 30 controls the driving mechanism 10 to drive the first lens to move to the position corresponding to the detection signal with the maximum strength relative to the second lens, so as to complete the automatic focusing. In response to the driving mechanism not being in the end position, that is, the driving mechanism 10 does not complete the full stroke, the photoelectric sensor 20 continues to acquire the detection signal of the next position until the driving mechanism 10 completes the full stroke.
Fig. 4 is a flowchart of the auto-focusing system of the present embodiment, wherein the program flow includes:
s01, starting;
s02, driving the driving mechanism 10 to rotate forward once, wherein the speed is the initial speed;
s03, judging whether the driving mechanism 10 is accelerated or not, if not, returning to the step S02, and if so, executing the next step;
s04, driving the driving mechanism 10 to rotate forward once at an acceleration speed;
s05, judging whether the driving mechanism 10 is in a limit position (namely whether the driving mechanism is reset), if not, returning to the step S04, and if so, executing the next step;
s06, driving the driving mechanism 10 to rotate reversely once at an accelerating speed, the counter of the control unit 30 recording the number of steps plus 1, comparing the magnitude between the detection signal of the current position obtained by the photodetector and the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position (i.e. the counter recording the number of steps of the best focus position);
s07, judging whether the driving mechanism 10 reaches a limit position (namely an end position), if not, returning to the step S06, and if so, executing the next step;
s08, driving the driving mechanism 10 to rotate forward once, wherein the speed is the acceleration speed, and the number of steps of the best focusing position recorded by the counter is reduced by 1;
s09, judging whether the driving mechanism 10 decelerates, if not, returning to the step S08, if so, executing the next step;
s10, judging whether the driving mechanism 10 is in the best focusing position, if not, returning to the step S08, and if so, executing the next step;
s11, the program ends or the program is re-executed.
Optionally, to further shorten the focusing time, the auto-focusing system can control the optical lens to be in a proper focusing position, wherein the driving mechanism 10 does not need to go all the way. Specifically, the photoelectric sensor 20 acquires the detection signal of the current position, the control unit 30 records the current position as a proper focusing position in response to that the detection signal of the current position is greater than the intensity of a preset signal, and then the control unit 30 controls the driving mechanism 10 to drive the first lens to move to the proper focusing position relative to the second lens, so as to complete the auto-focusing. In response to the detection signal of the current position being smaller than the intensity of the preset signal, the control unit 30 continues to acquire the detection signal of the next position until the control unit 30 finds the proper focusing position, and then the control unit 30 controls the driving mechanism 10 to drive the first lens to move to the proper focusing position relative to the second lens, so as to complete the auto-focusing.
Exemplary auto-focusing method
Fig. 5 is a flowchart illustrating a method of an auto-focusing method according to a preferred embodiment of the present application. As shown in fig. 5, the auto-focusing method according to the preferred embodiment of the present application includes:
the driving mechanism 10 drives the first lens of the optical lens to move between a first limit position and a second limit position relative to the second lens so as to change the focal length of the optical lens;
acquiring detection signals corresponding to a plurality of positions in the process that the first lens moves relative to the second lens, and processing the detection signals at each position to acquire a detection signal with the maximum intensity and a position corresponding to the detection signal; and
the driving mechanism 10 drives the first lens to move relative to the second lens to a position corresponding to the detection signal with the maximum intensity.
In an embodiment of the present application, in the auto-focusing method, before the driving mechanism 10 drives the first lens of the optical lens to move between the first limit position and the second limit position relative to the second lens to change the focal length of the optical lens, the method further includes:
and rotating the driving mechanism one or more times in the same direction until the driving mechanism is positioned at an initial limiting position, wherein the initial limiting position is positioned at the first limiting position, the second limiting position or between the first limiting position and the second limiting position.
In an embodiment of the present application, in the auto-focusing method, the driving mechanism 10 is a high-speed linear motor having the processes of starting, accelerating, uniform speed, decelerating and stopping.
In an embodiment of the present application, in the auto-focusing method, acquiring detection signals corresponding to a plurality of positions during the process that the first lens moves relative to the second lens, and processing the detection signals at each position to obtain a detection signal with a maximum intensity and a corresponding position thereof includes:
acquiring the detection signal of the current position, comparing the detection signal with the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position thereof; and
and acquiring the detection signal of the next position, comparing the detection signal with the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position thereof.
In an embodiment of the present application, in the auto-focusing method, acquiring detection signals corresponding to a plurality of positions during a process in which the first lens moves relative to the second lens, and processing the detection signals at each position to obtain a detection signal with a maximum intensity and a position corresponding to the detection signal, the auto-focusing method further includes:
stopping acquiring the detection signal in response to the drive mechanism being in an end position; and
and responding to the fact that the driving mechanism is not located at the end position, and continuously acquiring the detection signal of the next position.
In an embodiment of the present application, in the auto-focusing method, acquiring detection signals corresponding to a plurality of positions during the process that the first lens moves relative to the second lens, and processing the detection signals at each position to obtain a detection signal with a maximum intensity and a corresponding position thereof includes:
acquiring the detection signal of the current position;
responding to the intensity that the detection signal of the current position is greater than the preset signal, and recording the current position as a proper focusing position; and
and responding to the intensity of the detection signal at the current position being smaller than the preset signal intensity, and continuously acquiring the detection signal at the next position so as to drive the first lens to move to the proper focusing position relative to the second lens by the driving mechanism.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
It will be appreciated by persons skilled in the art that the embodiments of the invention described above and shown in the drawings are given by way of example only and are not limiting of the invention. The objects of the invention have been fully and effectively accomplished. The functional and structural principles of the present invention have been shown and described in the examples, and any variations or modifications of the embodiments of the present invention may be made without departing from the principles.

Claims (10)

1. An auto-focusing method, comprising:
a driving mechanism drives a first lens of an optical lens to move between a first limit position and a second limit position relative to a second lens so as to change the focal length of the optical lens;
acquiring detection signals corresponding to a plurality of positions in the process that the first lens moves relative to the second lens, and processing the detection signals at each position to acquire a detection signal with the maximum intensity and a position corresponding to the detection signal; and
and the driving mechanism drives the first lens to move to a position corresponding to the detection signal with the maximum intensity relative to the second lens.
2. The auto-focusing method of claim 1, wherein before a driving mechanism drives a first lens of an optical lens to move relative to a second lens between a first limit position and a second limit position to change a focal length of the optical lens, further comprising:
and rotating the driving mechanism one or more times in the same direction until the driving mechanism is positioned at an initial limiting position, wherein the initial limiting position is positioned at the first limiting position, the second limiting position or between the first limiting position and the second limiting position.
3. The auto-focusing method of claim 1, wherein the driving mechanism is a high-speed linear motor having a start, acceleration, uniform speed, deceleration, and stop process.
4. The auto-focusing method according to any one of claims 1 to 3, wherein acquiring detection signals corresponding to a plurality of positions during the movement of the first lens with respect to the second lens, and processing the detection signals of the respective positions to obtain a detection signal with a maximum intensity and a corresponding position thereof comprises:
acquiring the detection signal of the current position, comparing the detection signal with the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position thereof; and
and acquiring the detection signal of the next position, comparing the detection signal with the previously recorded detection signal with the maximum intensity, and recording the detection signal with the maximum intensity and the corresponding position thereof.
5. The auto-focus position according to claim 4, wherein detecting signals corresponding to a plurality of positions during the movement of the first lens relative to the second lens are acquired, and the detecting signals at each position are processed to obtain a detecting signal with the maximum intensity and a corresponding position thereof, further comprising:
stopping acquiring the detection signal in response to the drive mechanism being in an end position; and
and responding to the fact that the driving mechanism is not located at the end position, and continuously acquiring the detection signal of the next position.
6. The auto-focusing method according to any one of claims 1 to 3, wherein acquiring detection signals corresponding to a plurality of positions during the movement of the first lens with respect to the second lens, and processing the detection signals of the respective positions to obtain a detection signal with a maximum intensity and a corresponding position thereof comprises:
acquiring the detection signal of the current position;
responding to the intensity that the detection signal of the current position is greater than the preset signal, and recording the current position as a proper focusing position; and
and responding to the intensity of the detection signal at the current position being smaller than the preset signal intensity, and continuously acquiring the detection signal at the next position so as to drive the first lens to move to the proper focusing position relative to the second lens by the driving mechanism.
7. An auto-focus system adapted to adjust a focal length of an optical lens, comprising:
the driving mechanism is used for driving the first lens of the optical lens to move between a first limit position and a second limit position relative to the second lens so as to change the focal length of the optical lens;
a photosensor; and
the control unit is used for processing the detection signals of each position to obtain a detection signal with the maximum intensity and a corresponding position thereof, and controlling the driving mechanism to drive the first lens to move to the position corresponding to the detection signal with the maximum intensity relative to the second lens.
8. The autofocus system of claim 7, wherein the driving mechanism is a high-speed linear motor having a start, acceleration, uniform speed, deceleration, and stop process.
9. The autofocus system of claim 8, further comprising a limit switch, wherein the limit switch is coupled to the drive mechanism, wherein the limit switch is configured to limit a step travel of the drive mechanism.
10. The auto-focusing system of any one of claims 7 to 9, wherein the control unit compares the magnitude between the detection signal of the current position and the previously recorded detection signal having the maximum intensity by a ratio method or a difference method, and records the detection signal having the maximum intensity therein and the position corresponding thereto.
CN201911268822.7A 2019-12-11 2019-12-11 Automatic focusing method and system Pending CN112946855A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911268822.7A CN112946855A (en) 2019-12-11 2019-12-11 Automatic focusing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911268822.7A CN112946855A (en) 2019-12-11 2019-12-11 Automatic focusing method and system

Publications (1)

Publication Number Publication Date
CN112946855A true CN112946855A (en) 2021-06-11

Family

ID=76234148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911268822.7A Pending CN112946855A (en) 2019-12-11 2019-12-11 Automatic focusing method and system

Country Status (1)

Country Link
CN (1) CN112946855A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1745335A (en) * 2003-08-26 2006-03-08 卡西欧计算机株式会社 Stepping motor control circuit, electronic camera, and stepping motor control method
CN1856021A (en) * 2005-04-21 2006-11-01 佳能株式会社 Image-taking apparatus and focusing method
CN101098405A (en) * 2006-06-30 2008-01-02 索尼株式会社 Auto-focus apparatus, image capture apparatus, and auto-focus method
CN101098406A (en) * 2006-06-30 2008-01-02 索尼株式会社 Auto-focus apparatus, image capture apparatus, and auto-focus method
CN101191980A (en) * 2006-11-27 2008-06-04 亚洲光学股份有限公司 Automatic focusing method
CN101806988A (en) * 2009-02-12 2010-08-18 奥林巴斯映像株式会社 Image pickup apparatus and image pickup method
CN202021191U (en) * 2011-01-10 2011-11-02 上海华虹Nec电子有限公司 Automatic pre-treatment device for cleaning vacuum system in integrated circuit production line
CN204728888U (en) * 2015-04-07 2015-10-28 朱颖莉 A kind of intelligent window
CN206353764U (en) * 2016-12-28 2017-07-25 长春华懋科技有限公司 A kind of motor driver for night flight control system
CN108024053A (en) * 2016-10-28 2018-05-11 奥林巴斯株式会社 Camera device, focus adjusting method and recording medium
CN208587052U (en) * 2018-06-25 2019-03-08 深圳市智安宝电子有限公司 A kind of remote-controlled curtain suspension

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1745335A (en) * 2003-08-26 2006-03-08 卡西欧计算机株式会社 Stepping motor control circuit, electronic camera, and stepping motor control method
CN1856021A (en) * 2005-04-21 2006-11-01 佳能株式会社 Image-taking apparatus and focusing method
CN101098405A (en) * 2006-06-30 2008-01-02 索尼株式会社 Auto-focus apparatus, image capture apparatus, and auto-focus method
CN101098406A (en) * 2006-06-30 2008-01-02 索尼株式会社 Auto-focus apparatus, image capture apparatus, and auto-focus method
CN101191980A (en) * 2006-11-27 2008-06-04 亚洲光学股份有限公司 Automatic focusing method
CN101806988A (en) * 2009-02-12 2010-08-18 奥林巴斯映像株式会社 Image pickup apparatus and image pickup method
CN202021191U (en) * 2011-01-10 2011-11-02 上海华虹Nec电子有限公司 Automatic pre-treatment device for cleaning vacuum system in integrated circuit production line
CN204728888U (en) * 2015-04-07 2015-10-28 朱颖莉 A kind of intelligent window
CN108024053A (en) * 2016-10-28 2018-05-11 奥林巴斯株式会社 Camera device, focus adjusting method and recording medium
CN206353764U (en) * 2016-12-28 2017-07-25 长春华懋科技有限公司 A kind of motor driver for night flight control system
CN208587052U (en) * 2018-06-25 2019-03-08 深圳市智安宝电子有限公司 A kind of remote-controlled curtain suspension

Similar Documents

Publication Publication Date Title
JP4324402B2 (en) Camera autofocus device
US8531587B2 (en) Image pickup apparatus that provides focus control based on focusing information obtained from an interchangeable lens
US9992424B2 (en) Imaging apparatus, camera system, and control method controlling flash photography
CN1450398A (en) Image pick up apparatus and camera system thereof
US11297220B2 (en) Control apparatus, control method, and storage medium
KR20120079813A (en) Automatic focusing apparatus as well as lens apparatus and image pickup system including the automatic focusing apparatus
US9288378B2 (en) Autofocus apparatus
CN102036017B (en) Method for controlling flashing module
US20100278520A1 (en) Automatic focusing apparatus
JP2003302571A5 (en)
US6847785B2 (en) Camera system, camera and lens apparatus
CN101044671A (en) Drive device
US20130182172A1 (en) Image pickup apparatus and control method thereof
CN112946855A (en) Automatic focusing method and system
CN110830726B (en) Automatic focusing method, device, equipment and storage medium
JP2021067704A (en) Imaging device
JP2014215476A5 (en)
JP3907794B2 (en) Autofocus device
US5479234A (en) Automatic focus system
JPH04178607A (en) Automatic focusing device
JP2001166199A (en) Auto-focusing device and focus adjusting method
JPH0474683B2 (en)
JP5447549B2 (en) Focus adjustment device and imaging device
US11678072B2 (en) Control apparatus, image pickup apparatus, control method, and storage medium
US20230224580A1 (en) Focus information obtaining apparatus, lens apparatus, image pickup apparatus, focus information obtaining method, and computer readable storage medium

Legal Events

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

Application publication date: 20210611