CN113028997B - Method, device and equipment for measuring travel allowance of lens group and storage medium - Google Patents

Method, device and equipment for measuring travel allowance of lens group and storage medium Download PDF

Info

Publication number
CN113028997B
CN113028997B CN201911360967.XA CN201911360967A CN113028997B CN 113028997 B CN113028997 B CN 113028997B CN 201911360967 A CN201911360967 A CN 201911360967A CN 113028997 B CN113028997 B CN 113028997B
Authority
CN
China
Prior art keywords
lens group
stroke
image
detected
initial position
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.)
Active
Application number
CN201911360967.XA
Other languages
Chinese (zh)
Other versions
CN113028997A (en
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201911360967.XA priority Critical patent/CN113028997B/en
Publication of CN113028997A publication Critical patent/CN113028997A/en
Application granted granted Critical
Publication of CN113028997B publication Critical patent/CN113028997B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M11/00Testing of optical apparatus; Testing structures by optical methods not otherwise provided for
    • G01M11/08Testing mechanical properties
    • G01M11/081Testing mechanical properties by using a contact-less detection method, i.e. with a camera

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Lens Barrels (AREA)
  • Testing Of Optical Devices Or Fibers (AREA)
  • Eyeglasses (AREA)

Abstract

The embodiment of the invention discloses a method, a device, equipment and a storage medium for measuring the stroke allowance of a lens group, wherein the method for measuring the stroke allowance of the lens group comprises the following steps: controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed; controlling the lens group to be detected to acquire an image at a new position, and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged; if the definition of the image acquired after any new position is consistent with that of the image acquired at the new position, determining the new position as the stroke allowance end point position of the lens group to be detected; and determining the stroke margin value of the lens group to be detected according to the initial position and the stroke margin end position. According to the method, the definition of the collected image is unchanged after the lens group reaches the stroke end position, the automatic measurement of the lens group stroke allowance is realized, the complicated step of disassembling and measuring the lens group is avoided, and the measurement efficiency is improved.

Description

Method, device and equipment for measuring travel allowance of lens group and storage medium
Technical Field
The embodiment of the invention relates to the technical field of lenses, in particular to a method, a device, equipment and a storage medium for measuring the stroke allowance of a lens group.
Background
In the zoom lens, the focal length and the focusing position of the lens are changed by moving the positions of the zoom lens group and the focusing lens group, so that the zoom and focusing functions of the lens are ensured. The zoom lens group and the focus lens group have a specified moving range respectively, and a lens manufacturer generally leaves certain stroke margins at two ends of the effective range in order to ensure that the lens group can normally operate in the effective range without colliding with a wall when producing a lens. The stroke margin is defined in a lens specification, and when the lens is actually used, if the lens margin is smaller than a specification value given by a manufacturer or has no margin, the control effect of the lens is influenced, and the lens is considered to be unqualified. Therefore, the numerical value needs to be measured during production so as to screen out the lens which does not meet the specification and ensure the control effect of zoom focusing of the lens.
The existing method for measuring the stroke allowance of the lens is to use a high-precision laser range finder to align to a lens group, then drive a motor to move the lens group, so as to measure the moving range of the lens group, and calculate to obtain the stroke allowance.
However, when the lens group to be measured is located between the two lens groups, one of the lens groups must be removed, which results in complicated measurement steps and affects the measurement efficiency. And when the high-precision laser distance measuring device is used for measuring the stroke allowance of the lens, the measurement is required to be carried out before the lens is assembled, and the measurement can only be carried out in a lens production factory, so that the measurement of the stroke allowance is difficult for an ordinary user, and the quality of the lens cannot be ensured.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for measuring the stroke allowance of a lens group.
In a first aspect, an embodiment of the present invention provides a method for measuring a stroke margin of a lens assembly, including:
controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed;
controlling the lens group to be detected to acquire an image at the new position and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
if the definition of the image acquired after any new position is consistent with that of the image acquired at the new position, determining the new position as the stroke allowance end point position of the lens group to be detected;
and determining the stroke allowance value of the lens group to be detected according to the initial position and the stroke allowance end position.
In a second aspect, an embodiment of the present invention further provides a device for measuring a stroke margin of a lens assembly, including:
the lens group to be detected moving module is used for controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed;
the image definition determining module is used for controlling the lens group to be detected to acquire an image at the new position and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
the stroke allowance end position determining module is used for determining the new position as the stroke allowance end position of the lens group to be detected if the definition of the image acquired after any new position is consistent with that of the image acquired at the new position;
and the stroke allowance value determining module is used for determining the stroke allowance value of the lens group to be detected according to the initial position and the stroke allowance end position.
In a third aspect, an embodiment of the present invention further provides a computer device, including:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, the one or more programs cause the one or more processors to implement a method for measuring a stroke margin of a lens assembly according to any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for measuring a stroke margin of a lens set according to any embodiment of the present invention.
The embodiment of the invention is based on the determination of the fixed initial position, realizes the determination of the stroke end position of the lens group to be detected according to the determination of the acquired image definition of the lens group to be detected in the moving process, and determines the stroke margin value of the lens group to be detected according to the moving distance between the fixed initial position and the stroke margin value. The definition of the acquired image cannot be changed after the lens group reaches the stroke end position, the automatic measurement of the lens group stroke allowance is realized, the complicated steps of disassembling and measuring the lens group are avoided, and the measurement efficiency is improved.
Drawings
FIG. 1 is a flowchart illustrating a method for measuring a stroke margin of a lens assembly according to a first embodiment of the invention;
FIG. 2 is a flowchart illustrating a method for measuring a stroke margin of a lens assembly according to a second embodiment of the invention;
FIG. 3 is a schematic diagram of a device for measuring a stroke margin of a lens assembly according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
FIG. 1 is a flowchart illustrating a method for measuring a lens assembly stroke margin according to a first embodiment of the present invention, which is suitable for improving the efficiency of measuring the stroke margin of the lens assembly of a zoom lens. The method may be performed by a device for measuring the stroke margin of the lens group, which may be implemented in software and/or hardware, and may be configured in a computer device, for example, a device with communication and computing capabilities such as a background server. As shown in fig. 1, the method specifically includes:
step 101, controlling a lens group to be detected to start moving from an initial position to obtain at least two new positions; wherein the initial position is fixed.
The lens group to be measured is a lens group which needs to measure the reserved travel allowance of a lens manufacturer outside the specified movement range, the actual value of the reserved travel allowance needs to be determined, and the lens group to be measured is placed in a position which causes insufficient movement range due to production difference. For example, the lens group to be measured may be a zoom lens group or a focus lens group in the zoom lens, the focal length of the zoom lens may be changed by moving the zoom lens group, the focus position of the lens may be changed by moving the focus lens group, and after the zoom lens is produced, the actual data of the stroke allowance defined for the lens group in the specification needs to be measured to screen out the lens which does not meet the specification, so as to ensure the zoom lens zooming control effect. The initial position refers to a reference position of the preset position information of the known lens group after the lens where the lens group to be detected is located is produced. For example, for a zoom lens, the initial position refers to a position whose stroke value is known at a fixed position in the standard stroke range of the lens group, for example, for a zoom lens, the standard stroke range is 0-1000, and the initial position may be a position whose stroke value is 100. The lens group is usually driven by a stepping motor, which is used to convert an electrical pulse signal into a linear displacement, i.e. the lens group moves a certain distance every time an electrical pulse is input. For a lens set having a standard range of travel defined in the specification of 0-1000, the value may be the number of steps moved by the stepper motor. Optionally, a conversion relationship exists between the number of moving steps of the stepping motor and parameters of the lens group, for example, when the focal length variation range of the zoom lens group is 20mm to 70mm, the focal length of the stepping motor at the initial position is 30mm, and the starting position of the stepping motor from the standard stroke is 100 steps, that is, the focal length variation is 5mm every 100 steps of the stepping motor. Therefore, for the lens group, the focal length and position parameter information of the lens group can be accurately represented by the number of moving steps of the motor. In the present embodiment, for convenience of description, the mentioned stroke margin value is the moving step number of the lens group motor if not specifically stated.
Specifically, the initial position of the lens group to be tested is determined, and the lens group to be tested is moved to the initial position. So that the lens group to be measured is moved from the initial position at the time of measuring the stroke margin of the lens group. The standard stroke range of the lens group to be measured has a start position and an end position, and therefore, the lens group to be measured can move in two directions from the initial position. The stepping motor of the lens group to be measured is controlled to move towards the starting position, that is, to the left side, and new position information of the movement is continuously obtained in the moving process, wherein the new position information can be the moving step number from the initial position. For example, when the stroke margin of the zoom lens group in the zoom lens is measured, it can be known from the initial specification of the lens that the initial position is a position of the stepping motor 100 steps away from the starting position, at this position, the stepping motor starts to move to the starting position of the standard stroke, and every time the stepping motor moves one step, the position is defined as a new position, for example, when the stepping motor moves one step to the left, at this time, the starting position is 99 steps away from the standard stroke, and the position is defined as a new position. The initial position defined by the lens is positioned to provide reference for moving the lens group to be measured, so that the corresponding value of the moving distance and the actual parameter is convenient to calculate, and the accuracy of measuring the stroke allowance is improved.
Step 102, controlling the lens group to be detected to acquire an image at the new position, and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged.
The other acquisition parameters are to ensure that only the position of the lens group to be measured is changed when measuring the stroke allowance of the lens group to be measured, and the other acquisition parameters, such as the object distance of the acquired image and the brightness value of the external environment parameter, are kept unchanged, so that the inaccurate measurement of the stroke allowance caused by the change of the definition of the acquired image at the new position due to the factors unrelated to the position of the lens group to be measured is avoided.
Specifically, when the lens group to be detected is moved to a new position, images are collected, when the images are collected, the object distance, the external illumination environment and the positions of other parts in the lens are kept unchanged during image collection, the definition of the images collected at each new position is determined, the image definition is used for representing the photographing quality of the lens at the position, and the change of the position of the lens group to be detected can be visually observed conveniently. The image is blurred when the definition degree of the image is not high, the blurring is a common image degradation form, and in a frequency domain, when the high-frequency part of an image is weakened, the image looks blurred; in the spatial domain, when the boundaries and detailed parts of the image are unclear, the image looks blurred. Therefore, the image definition can be determined through the information of the image frequency domain or the image space domain.
Illustratively, the images are collected under the collimator, the collected images are ensured to be kept unchanged in the external environment under the infinite object distance, and the collimator is an optical instrument for generating parallel beams, so that conditions can be provided for the infinite object distance, and the requirement on the measuring environment of the stroke allowance is reduced. On the basis, when the stroke allowance of the zoom lens group in the zoom lens is measured, in the moving process of the zoom lens group, the position of the focus lens group is kept unchanged, and the phenomenon that the image definition changes due to the movement of the focus lens group and an error is brought to the determination of the stroke allowance of the zoom lens group is avoided. On the basis of the above example, the zoom lens set is moved once to acquire an image and determine the sharpness of the acquired image, for example, the sharpness values of the acquired image are acquired once when the zoom lens set is moved to 99, 98, 8230, and the like positions from the initial position 100.
By keeping other acquisition parameters except the position of the lens group to be measured unchanged, the measuring environment is only influenced by the position of the lens group to be measured, influence on image definition caused by other factors is avoided, and measuring accuracy is improved. And the position of the lens group to be measured is visually expressed by determining the image definition, so that a measurer can master the moving condition of the lens group in the lens according to the external image definition without disassembling the lens, and the measuring step of the stroke allowance is simplified.
Optionally, the determining the definition of the image includes:
determining an edge change rate of the image;
and determining the definition of the image according to the edge change rate.
Specifically, the edge change rate reflects the speed of change of the edge gray value from high gray to low gray. Since an image is blurred when the boundary and detail of the image are unclear, the sharpness of the image is determined by using the edge change rate of the image as a basis for determining the sharpness of the image. Illustratively, the gray values of the digital image are stored in the computer in the form of a two-dimensional array, and for an image with a resolution of m × n, the gray values are stored in the computer as an n × m numerical matrix. And taking the gray change rate of the edge with the largest number of continuously-reduced pixel points of the gray value of each row in the numerical matrix to represent the gray change rate of the row, calculating the gray change rates of all the rows, summing the gray change rates, taking the sum as an evaluation value of the image definition, and indicating that the image is clearer when the value is larger. The definition of the image is evaluated by the edge change rate of the image, so that the definition of the image is expressed numerically, and the definition determination precision is improved.
Optionally, the method further includes:
if the lens group to be measured is a zoom lens group, determining the optimal focusing position of the focusing lens group at the initial position, so that the definition of an image collected at the initial position is optimal;
controlling the focusing lens set to be maintained at the best focusing position.
For a zoom lens, there are multiple groups of focusing curves, that is, there is a focusing curve reflecting the corresponding relationship between different focal lengths and focusing positions at different object distances. It can be understood that, at the same object distance, the zoom lens group corresponds to the position of one focusing lens group in each position, so that the focusing is clear, and the position of the focusing lens group is the best focusing position at the focal distance when the images acquired under the condition that the two positions correspond to each other are the best.
Specifically, when the stroke margin of the zoom lens group in the zoom lens needs to be measured, when the zoom lens group is at the initial position, the position of the focusing lens group corresponding to the initial position of the zoom lens group, that is, the optimal focusing position, is determined according to the focusing curve at the object distance of the collected image, and the focusing lens group is moved to the position and maintained. Illustratively, in an actual case, the position of the focusing lens group corresponding to the position of the zoom lens group determined from the focusing curve is a desired value, and is actually in the vicinity of the curve of the position point of the focusing lens group at which the sharpness of the image acquired at the initial position of the zoom lens group is best, typically within 20 steps. Therefore, the zoom lens group is kept at the initial position, the stepping motor driving the focusing lens group moves back and forth once near the position point determined according to the focusing curve, the definition of the acquired image of each step of movement is acquired, the position of the focusing lens group corresponding to the acquired image with the highest definition is determined as the optimal focusing position, and the focusing lens group is kept at the position in the subsequent process of moving the zoom lens group.
Through the corresponding confirmation that makes the best focus lens group position of the image sharpness of gathering of zooming the lens group when initial position for when confirming the stroke allowance of zooming the lens group, the sharpness of gathering the image begins to change from the best, makes the sharpness change span big, is favorable to observing more, and then improves the accuracy of confirming stroke allowance terminal position.
Optionally, the method further includes:
if the lens group to be detected is a focusing lens group, determining the optimal focal length position of the zoom lens group at the initial position so as to ensure that the image definition acquired at the initial position is optimal;
controlling the zoom lens group to remain at the optimal focal length position.
On the basis of the above example, similarly, under the same object distance, the focusing lens group corresponds to the position of one zoom lens group in each position, so that the focusing is clear, the image acquired under the condition that the two positions correspond to each other is optimal, and the position of the zoom lens group is the optimal focal length position in the focusing position.
Specifically, when the stroke margin of a focusing lens group in the zoom lens needs to be measured, when the focusing lens group is at an initial position, the position of the zoom lens group corresponding to the initial position of the focusing lens group, that is, the optimal focal length position, is determined according to a focusing curve at the object distance of the acquired image, and the zoom lens group is moved to the position and maintained. For example, in an actual case where the zoom lens group position corresponding to the focusing lens group position determined from the focusing curve is an ideal value, the position point of the zoom lens group at which the image clarity acquired at the initial position of the focusing lens group is best is actually made in the vicinity of the zoom curve. Therefore, the focusing lens group is kept to be stationary at the initial position, the stepping motor driving the zooming lens group moves back and forth once near the position point determined according to the focusing curve, the definition of the acquired image in each step is acquired, the position of the zooming lens group corresponding to the acquired image with the highest definition is determined to be used as the optimal focal length position, and the zooming lens group is kept to be stationary at the position in the subsequent process of moving the focusing lens group.
Through the determination of the position of the zoom lens group which corresponds to the initial position of the focusing lens group and enables the acquired image definition to be optimal, when the stroke allowance of the focusing lens group is determined, the definition of the acquired image changes from the optimal, the change span of the image definition is large, the observation is facilitated, and the accuracy of determining the stroke allowance end position is improved.
And 103, if the definition of the image acquired after any new position is consistent with that acquired at the new position, determining the new position as the stroke allowance end position of the lens group to be detected.
The stroke allowance end position refers to the fact that the lens group to be detected reaches a moving end point, and the actual position of the lens group to be detected does not change due to the fact that the stepping motor moves in the same direction.
Specifically, the image definition values of the lens group to be measured at different new positions are determined, and when the image definition value of the lens group to be measured does not change any more after the lens group to be measured reaches a certain position, it indicates that the actual position of the lens group to be measured does not change, and the position where the corresponding image definition starts to be unchanged is the stroke margin end position. For example, on the basis of the above example, if the image definition at the initial position 100 is 10, after the stepping motor of the lens group to be measured moves 150 steps, the corresponding image definition becomes 1, and the stepping motor continues to move backward, and the definition of the acquired image remains 1, then the position where the corresponding stepping motor moves 150 steps from the initial position is the stroke margin end position. Because the definition of the image acquired correspondingly is not changed when the actual position of the lens group to be measured is not changed, the characteristics are utilized to provide accurate basis for determining the stroke allowance end point position of the lens group to be measured, the step of determining the stroke allowance end point position is simplified, and meanwhile, the visual judgment basis of the definition of the image is adopted, which is more beneficial to the implementation and improves the efficiency of automatic measurement.
And step 104, determining the stroke allowance value of the lens group to be detected according to the initial position and the stroke allowance end position.
The stroke margin value refers to the number of steps that the stepping motor of the lens group to be measured can move after the position of the stroke starting point of the standard stroke range, or the stroke margin value refers to the size of the focal length that the lens group to be measured can also measure below the minimum value of the standard measurable focal length. For example, if the standard stroke range is 0 to 1000, the stroke margin value may be 100, which indicates that when the lens group to be measured moves to the 0 position in the standard stroke range, the lens group may also move 100 steps in the direction; or for the zoom lens with the standard focal length variation range of 20-70mm, the stroke margin value can be 5mm, which indicates that the minimum focal length which can be measured on the lens group to be measured is 5mm. The moving step number of the stepping motor and the measurement focal length value can be converted according to a lens specification.
Specifically, determining a stroke value from an initial position when the lens group to be detected reaches a stroke allowance end position; and then according to the stroke value of the initial position in the standard stroke range, subtracting the stroke value of the initial position in the standard stroke range from the stroke value of the stroke allowance end position from the initial position, namely the stroke allowance value of the lens group to be measured, which can move outside the starting position of the standard stroke range. For example, on the basis of the above example, when it is determined that the acquired image sharpness value reaches the lowest point after the lens group to be measured moves from the initial position by the distance of the stroke value of 150, the stroke value of 100 of the initial position is subtracted from the movement stroke value of 150, and then the stroke value of 50 is the stroke margin value of the lens group to be measured from the stroke starting position.
In a possible embodiment, optionally, the lens group to be measured may also obtain the stroke value in real time when moving, for example, on the basis of the above example, when the stroke value corresponding to the initial position is 100, when the lens group to be measured moves towards the direction of the stroke starting position, the real-time stroke value, for example 99, is determined every step of moving, and when the movement exceeds 0, the stroke margin value may be directly determined, so as to facilitate direct observation of the stroke margin value.
The embodiment of the invention is based on the determination of the fixed initial position, and determines the position of the lowest point of the acquired image definition according to the determination of the acquired image definition of the lens group to be detected in the moving process, thereby realizing the determination of the stroke end point position of the lens group to be detected, and determining the stroke allowance value of the lens group to be detected according to the moving distance between the lens group to be detected and the fixed initial position. The definition of the acquired image cannot be changed after the lens group reaches the stroke end position, the automatic measurement of the lens group stroke allowance is realized, the complicated steps of disassembling and measuring the lens group are avoided, and the measurement efficiency is improved.
Example two
Fig. 2 is a flowchart of a method for measuring a stroke allowance of a lens assembly according to a second embodiment of the present invention, where the second embodiment is further optimized based on the first embodiment, and if the measured stroke allowance value is a distance from an actual moving stroke value of the lens assembly to be measured to a stroke end position of a standard stroke range of the lens assembly to be measured, a specific measuring method when the stroke allowance end is a right stroke allowance end point is determined, as shown in fig. 2, the method includes:
step 201, controlling a lens group to be detected to move from an initial position to a target position, so as to take the target position as a new initial position; wherein the target position is located to the left of the standard end of travel position.
The standard range of travel is defined in the lens specification, and is 0-1000 in the above example. The standard stroke end position is a position corresponding to the maximum stroke value in the standard stroke, and for example, the position corresponding to the stroke value of 1000 in the above example is the standard stroke end position. The target position is a position closer to the standard travel end point in the standard travel range, and can be selected according to actual conditions. The stroke value of the target position may be determined from the stroke value of the fixed initial position.
Specifically, the travel value of the target position is determined, for example, based on an empirical value, for example, a position from the standard end-of-travel position 100 is selected, and based on the above example, the travel value corresponding to the target position is 1000-100=900. And determining a stroke value required for moving the lens group to be detected from the initial position to the target position according to the stroke value of the initial position and the stroke value of the target position, and moving the lens group to be detected to the target position according to the stroke value, wherein the target position is equivalent to the initial position when the left stroke allowance end point is measured when the right stroke allowance end point is determined, namely the new initial position.
The new initial position is determined through the fixed initial position, and the accuracy of the stroke value of the new initial position can be ensured; and when the right stroke allowance end point is measured, the lens group to be measured is moved to a new initial position, so that the process of determining the definition of the acquired image in the moving process from the initial position to the new initial position is avoided, and the process of determining the definition of the image directly from the new initial position can effectively improve the measurement efficiency because the right stroke allowance end point does not appear in the stroke.
Step 202, controlling the lens group to be measured to continuously move from the new initial position to obtain at least two new positions.
Step 203, controlling the lens group to be detected to acquire an image at the new position, and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged.
And 204, if the image definition acquired after any new position is consistent with the image definition acquired at the new position, determining the new position as the stroke allowance end position of the lens group to be detected.
And step 205, determining the stroke margin value of the lens group to be detected according to the initial position and the stroke margin end position.
Specifically, determining a stroke value from the initial position when the lens group to be detected reaches the right stroke allowance end position; and then according to the stroke value of the initial position in the standard stroke range, subtracting the stroke value of the initial position from the stroke end point in the standard stroke range from the stroke value of the stroke allowance end point position from the initial position, namely the stroke allowance value of the lens group to be measured, which can move outside the end point position of the standard stroke range. For example, on the basis of the above example, when it is determined that the acquired image sharpness value reaches the lowest point after the lens group to be measured moves from the initial position by the distance of 150 travel values, the travel value indicating that the initial position is 150 from the right travel end point position, the travel value of the initial position in the standard travel is 900, the distance from the initial position to the standard travel end point is 100, and 150-100=50 is the travel margin value of the lens group to be measured from the standard travel end point position, that is, the right travel margin to be measured.
In a possible embodiment, optionally, determining the stroke margin value of the lens group to be measured according to the initial position and the stroke margin end position includes:
and subtracting the standard travel value of the lens group to be detected from the travel value at the travel allowance end point to obtain the travel allowance value of the lens group to be detected.
Specifically, when the stroke value of the lens group to be measured is determined, the stroke distance from the standard stroke starting point is directly adopted for determination. For example, when the lens group to be measured moves, the real-time stroke value is directly obtained, and if the corresponding stroke value is 900 when the lens group to be measured moves to the new initial position, the stroke value is calculated once every time the lens group to be measured moves to the right stroke margin end position, for example, 901. The determined stroke value at the end point of the right stroke allowance is the stroke value of the new initial position plus the moving stroke value, and the determination process of the stroke value is determined in real time along with the moving process, so that the stroke can be visually observed conveniently. The right stroke margin value of the lens group to be measured is the maximum value obtained by subtracting the standard stroke value of the lens group to be measured from the stroke value at the determined end point of the right stroke margin. For example, on the basis of the above example, when the stroke value at the end point of the right stroke allowance is 1100, and the distance from the end point of the right stroke allowance to the start point of the standard stroke is 1100, the maximum value 1000 in the standard stroke range is subtracted from 1100, that is, the stroke value that the lens group to be measured can move after moving to the end point of the marked stroke is the right stroke allowance value of the lens group to be measured.
In the embodiment of the present invention, the measured lens group to be measured may be a zoom lens group in the zoom lens, or may be a focusing lens group. And the stroke allowance of one zoom lens group consists of a left stroke allowance value and a right stroke allowance value, so the scheme of the embodiment of the invention can accurately measure the stroke allowance of the lens group, reduce the measurement steps and improve the measurement efficiency.
When the right stroke allowance value is measured, the lens group to be measured is moved from the initial position to the position which is closer to the right stroke allowance end point in the standard stroke, the number of images with definition to be determined is reduced, and therefore the measuring efficiency of the right stroke allowance value of the lens group to be measured is improved. And based on the determination of the fixed initial position, fixing the new initial position, then determining the stroke end point position of the lens group to be detected according to the determination of the definition of the acquired image in the moving process of the lens group to be detected, and determining the stroke margin value of the lens group to be detected according to the moving distance from the fixed initial position. The definition of the acquired image cannot be changed after the lens group reaches the stroke end position, the automatic measurement of the lens group stroke allowance is realized, the complicated steps of disassembling and measuring the lens group are avoided, and the measurement efficiency is improved.
EXAMPLE III
FIG. 3 is a schematic view of a third embodiment of a device for measuring a stroke margin of a lens assembly of a zoom lens according to the present invention, which is suitable for improving the efficiency of measuring the stroke margin of the lens assembly of the zoom lens. As shown in fig. 3, the apparatus includes:
a lens group to be measured moving module 310, configured to control the lens group to be measured to start moving from an initial position to obtain at least two new positions; wherein the initial position is fixed;
an image definition determining module 320, configured to control the lens group to be measured to acquire an image at the new position and determine the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
a stroke allowance end position determining module 330, configured to determine, if the sharpness of an image acquired after any new position is consistent with the sharpness of an image acquired at the new position, the new position as a stroke allowance end position of the lens group to be measured;
a stroke margin value determining module 340, configured to determine a stroke margin value of the lens group to be measured according to the initial position and the stroke margin end position.
The embodiment of the invention is based on the determination of the fixed initial position, realizes the determination of the stroke end position of the lens group to be detected according to the determination of the definition of the acquired image in the moving process of the lens group to be detected, and determines the stroke margin value of the lens group to be detected according to the moving distance with the fixed initial position. The definition of the acquired image cannot be changed after the lens group reaches the stroke end position, the automatic measurement of the lens group stroke allowance is realized, the complicated steps of disassembling and measuring the lens group are avoided, and the measurement efficiency is improved.
Optionally, the apparatus further includes a best focus position determining module, specifically configured to:
if the lens group to be detected is a zoom lens group, determining the optimal focusing position of the focusing lens group at the initial position so as to ensure that the definition of the image acquired at the initial position is optimal;
controlling the focusing lens set to be maintained at the best focusing position.
Optionally, the apparatus further includes an optimal focal length position determining module, specifically configured to:
if the lens group to be measured is a focusing lens group, determining the optimal focal length position of the zoom lens group at the initial position, so that the definition of an image acquired at the initial position is optimal;
controlling the zoom lens group to remain at the optimal focal length position.
Optionally, if the stroke allowance end point is the right stroke allowance end point, the module 310 for moving the lens group to be measured is specifically configured to:
controlling the lens group to be detected to move from the initial position to the target position so as to take the target position as a new initial position; wherein the target position is located to the left of the standard trip end position;
and controlling the lens group to be detected to continuously move from the new initial position so as to obtain at least two new positions.
Optionally, the trip margin value determining module 340 includes:
and subtracting the standard travel value of the lens group to be detected from the travel value at the travel allowance end point to obtain the travel allowance value of the lens group to be detected.
Optionally, the image definition determining module 320 is specifically configured to:
determining an edge change rate of the image;
and determining the definition of the image according to the edge change rate.
The device for measuring the stroke allowance of the lens group provided by the embodiment of the invention can execute the method for measuring the stroke allowance of the lens group provided by any embodiment of the invention, and has the corresponding functional module and the beneficial effect of executing the method for measuring the stroke allowance of the lens group.
Example four
Fig. 4 is a schematic structural diagram of a computer device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 4 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in FIG. 4, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory device 28, and a bus 18 that couples various system components including the system memory device 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory device bus or memory device controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system storage 28 may include computer system readable media in the form of volatile storage, such as Random Access Memory (RAM) 30 and/or cache storage 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Storage 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in storage 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) through network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 over the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes programs stored in the system storage device 28 to perform various functional applications and data processing, for example, to implement a method for measuring a stroke margin of a lens assembly provided by an embodiment of the present invention, including:
controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed;
controlling the lens group to be detected to acquire an image at the new position and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
if the definition of the image acquired after any new position is consistent with that of the image acquired at the new position, determining the new position as the stroke allowance end position of the lens group to be detected;
and determining the stroke allowance value of the lens group to be detected according to the initial position and the stroke allowance end position.
EXAMPLE five
The fifth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for measuring the stroke margin of a lens assembly, the method including:
controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed;
controlling the lens group to be detected to acquire an image at the new position and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
if the definition of the image acquired after any new position is consistent with that of the image acquired at the new position, determining the new position as the stroke allowance end position of the lens group to be detected;
and determining the stroke allowance value of the lens group to be detected according to the initial position and the stroke allowance end position.
Computer storage media for embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. A method for measuring a stroke margin of a lens group is characterized by comprising the following steps:
controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed;
controlling the lens group to be detected to acquire an image at the new position and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
if the image definition acquired at any other new position behind the new position is consistent with the image definition acquired at the new position, determining the new position as the stroke allowance end position of the lens group to be detected;
and determining the stroke allowance value of the lens group to be detected according to the initial position and the stroke allowance end position.
2. The method of claim 1, further comprising:
if the lens group to be detected is a zoom lens group, determining the optimal focusing position of the focusing lens group at the initial position so as to ensure that the definition of the image acquired at the initial position is optimal;
controlling the focusing lens set to be maintained at the best focusing position.
3. The method of claim 1, further comprising:
if the lens group to be measured is a focusing lens group, determining the optimal focal length position of the zoom lens group at the initial position, so that the definition of an image acquired at the initial position is optimal;
controlling the zoom lens group to remain at the optimal focal length position.
4. The method as claimed in claim 1, wherein if the stroke margin end point is a right stroke margin end point, controlling the lens set to be tested to move from the initial position to obtain at least two new positions, comprising:
controlling the lens group to be detected to move from an initial position to a target position so as to take the target position as a new initial position; wherein the target position is located to the left of the standard trip end position;
and controlling the lens group to be detected to continuously move from the new initial position so as to obtain at least two new positions.
5. The method of claim 1, wherein determining the stroke margin value of the set of lenses to be tested according to the initial position and the stroke margin end position comprises:
and subtracting the standard stroke value of the lens group to be detected from the stroke value at the stroke allowance end point to obtain the stroke allowance value of the lens group to be detected.
6. The method of claim 1, wherein determining the sharpness of the image comprises:
determining an edge change rate of the image;
and determining the definition of the image according to the edge change rate.
7. A stroke allowance measuring device of a lens group is characterized by comprising:
the lens group to be detected moving module is used for controlling the lens group to be detected to start moving from the initial position so as to obtain at least two new positions; wherein the initial position is fixed;
the image definition determining module is used for controlling the lens group to be detected to acquire an image at the new position and determining the definition of the image; wherein other acquisition parameters except the position of the lens group to be detected are unchanged;
the stroke allowance end position determining module is used for determining the new position as the stroke allowance end position of the lens group to be detected if the image definition acquired at any other new position after the new position is consistent with the image definition acquired at the new position;
and the stroke margin value determining module is used for determining the stroke margin value of the lens group to be detected according to the initial position and the stroke margin end position.
8. The apparatus according to claim 7, further comprising a best focus position determination module, in particular for:
if the lens group to be measured is a zoom lens group, determining the optimal focusing position of the focusing lens group at the initial position, so that the definition of an image collected at the initial position is optimal;
controlling the focusing lens set to be maintained at the best focusing position.
9. A computer device, comprising:
one or more processors;
a storage device to store one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of measuring a stroke margin for a set of lenses of any of claims 1-6.
10. A computer-readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of measuring a stroke margin for a set of lenses as claimed in any one of claims 1 to 6.
CN201911360967.XA 2019-12-25 2019-12-25 Method, device and equipment for measuring travel allowance of lens group and storage medium Active CN113028997B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911360967.XA CN113028997B (en) 2019-12-25 2019-12-25 Method, device and equipment for measuring travel allowance of lens group and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911360967.XA CN113028997B (en) 2019-12-25 2019-12-25 Method, device and equipment for measuring travel allowance of lens group and storage medium

Publications (2)

Publication Number Publication Date
CN113028997A CN113028997A (en) 2021-06-25
CN113028997B true CN113028997B (en) 2022-11-11

Family

ID=76458435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911360967.XA Active CN113028997B (en) 2019-12-25 2019-12-25 Method, device and equipment for measuring travel allowance of lens group and storage medium

Country Status (1)

Country Link
CN (1) CN113028997B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115835016B (en) * 2022-11-16 2024-04-23 中国科学院新疆理化技术研究所 Open-loop type automatic focusing method, device, equipment and medium for radiation-resistant camera

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1952731A (en) * 2005-10-21 2007-04-25 鸿富锦精密工业(深圳)有限公司 Lens assembling and testing device
CN102928385A (en) * 2012-11-26 2013-02-13 中国科学院长春光学精密机械与物理研究所 Portable stray light detection device with inclined illumination structure
CN104965297A (en) * 2015-06-25 2015-10-07 福建省光学技术研究所 Rear group adjusting video shooting high-definition zoom lens and rear group adjusting method for lens
CN106161887A (en) * 2015-04-10 2016-11-23 宁波舜宇光电信息有限公司 A kind of image module adjusting means and antidote thereof
CN106997084A (en) * 2016-01-22 2017-08-01 大立光电股份有限公司 Optical lenses for image formation group, image-taking device and electronic installation
CN107036579A (en) * 2016-11-17 2017-08-11 上海航天控制技术研究所 A kind of target relative positioning method based on monocular liquid lens optical system
CN107770434A (en) * 2016-08-15 2018-03-06 广州康昕瑞基因健康科技有限公司 A kind of quick focusing regulation method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10387477B2 (en) * 2017-05-30 2019-08-20 Qualcomm Incorporated Calibration for phase detection auto focus (PDAF) camera systems

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1952731A (en) * 2005-10-21 2007-04-25 鸿富锦精密工业(深圳)有限公司 Lens assembling and testing device
CN102928385A (en) * 2012-11-26 2013-02-13 中国科学院长春光学精密机械与物理研究所 Portable stray light detection device with inclined illumination structure
CN106161887A (en) * 2015-04-10 2016-11-23 宁波舜宇光电信息有限公司 A kind of image module adjusting means and antidote thereof
CN104965297A (en) * 2015-06-25 2015-10-07 福建省光学技术研究所 Rear group adjusting video shooting high-definition zoom lens and rear group adjusting method for lens
CN106997084A (en) * 2016-01-22 2017-08-01 大立光电股份有限公司 Optical lenses for image formation group, image-taking device and electronic installation
CN107770434A (en) * 2016-08-15 2018-03-06 广州康昕瑞基因健康科技有限公司 A kind of quick focusing regulation method
CN107036579A (en) * 2016-11-17 2017-08-11 上海航天控制技术研究所 A kind of target relative positioning method based on monocular liquid lens optical system

Also Published As

Publication number Publication date
CN113028997A (en) 2021-06-25

Similar Documents

Publication Publication Date Title
US10101572B2 (en) Variable focal length lens system with multi-level extended depth of field image processing
CN103399015B (en) Pathological section scanner and slide glass platform positioning precision measuring method thereof and device
CN112651949B (en) 3D printing monitoring method and device, electronic equipment and storage medium
CN104730802A (en) Optical axis included angle calibrating and focusing method and system and double-camera equipment
JP2008170981A (en) Eccentricity adjustment method, apparatus, and program for lens optical system
CN111948784B (en) Iterative optimization automatic focusing method based on hill climbing method
CN111192331A (en) External parameter calibration method and device for laser radar and camera
CN105787947A (en) Voice coil motor stroke calibration method and device and test fixture
CN107421722A (en) Based on CCD camera image intensifier modulation transfer function test method and system
CN104049437A (en) Lens apparatus and a camera system
CN109272575B (en) Method for improving modeling speed of digital slice scanner
CN106353747A (en) Distance measurement method and distance measurement device
CN112135055B (en) Zoom tracking method, device, equipment and storage medium
CN103487927A (en) Automatic focusing method of microscope
JPWO2011125937A1 (en) Calibration data selection device, selection method, selection program, and three-dimensional position measurement device
CN107026979A (en) Double-camera photographing method and device
CN113028997B (en) Method, device and equipment for measuring travel allowance of lens group and storage medium
CN113705298A (en) Image acquisition method and device, computer equipment and storage medium
CN102759788A (en) Surface multi-point focusing system and surface multi-point focusing method
CN116182786B (en) Monocular vision ranging method, camera and medium
CN113327289A (en) Method for simultaneously calibrating internal and external parameters of multi-source heterogeneous sensor
CN112153271B (en) Control method and control device for optical lens of electronic equipment and storage medium
CN112904548B (en) Endoscope focusing method and device
CN117310962A (en) Microscopic imaging focusing control method and device
CN112504156A (en) Structural surface strain measurement system and measurement method based on foreground grid

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
GR01 Patent grant
GR01 Patent grant