Method and system for acquiring focusing curve of zoom lens and storage medium

文档序号:1503840 发布日期:2020-02-07 浏览:27次 中文

阅读说明:本技术 一种变焦距镜头调焦曲线的获取方法、系统及存储介质 (Method and system for acquiring focusing curve of zoom lens and storage medium ) 是由 张海波 李焱 吕春雷 董宇星 李珍 于 2019-11-14 设计创作,主要内容包括:本申请公开了一种变焦距镜头调焦曲线的获取方法、系统及计算机可读存储介质,方法包括:接收控制命令,控制变焦距控制电机进行移动,以带动变焦距镜头中的调焦镜组进行移动;获取与变焦距控制电机相咬合的电位计在多个采样点处的码值,采集玻罗板与各采样点对应的图像;从各图像中获取玻罗板的目标刻线对的像间距,并通过像间距、目标刻线对的刻线间距和标准平行光管的焦距得到变焦距镜头在各采样点处的焦距值;通过电位计在各采样点处的码值及变焦距镜头在各采样点处的焦距值得到变焦距镜头的调焦曲线。本申请公开的上述技术方案,通过自动化方式实现调焦曲线的获取,以减少人工参与,从而降低调焦曲线获取的繁琐程度,提高调焦曲线的获取效率。(The application discloses a method, a system and a computer readable storage medium for acquiring a focusing curve of a zoom lens, wherein the method comprises the following steps: receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in a zoom lens to move; acquiring code values of a potentiometer meshed with the zoom control motor at a plurality of sampling points, and acquiring images of the glass compass plate corresponding to the sampling points; acquiring the image spacing of a target reticle pair of the glass compass plate from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator; and obtaining a focusing curve of the zoom lens through the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point. According to the technical scheme, the focusing curve is acquired in an automatic mode, so that manual participation is reduced, the complexity of acquiring the focusing curve is reduced, and the acquiring efficiency of the focusing curve is improved.)

1. A method for acquiring a focusing curve of a zoom lens is characterized by comprising the following steps:

receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in a zoom lens to move;

acquiring code values of potentiometers meshed with the zoom control motor at a plurality of sampling points, and acquiring images of a glass compass plate corresponding to the sampling points after passing through a standard collimator and the zoom lens;

acquiring the image spacing of a target reticle pair of the glass compass plate from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator;

and obtaining a focusing curve of the zoom lens according to the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point.

2. The method of claim 1, wherein obtaining an image pitch of a target reticle pair of the vitrolite from each of the images comprises:

and acquiring the image space of the target reticle pair of the Perot plate from each image through an image algorithm.

3. The method of claim 2, wherein obtaining an image pitch of a target reticle pair of the vitrolite from each of the images by an image algorithm comprises:

acquiring a pixel difference between two reticle lines in the target reticle line pair from each image, and acquiring a pixel size from each image;

and acquiring the image space by using the pixel difference and the pixel size.

4. The method of claim 1, wherein obtaining the focus curve of the zoom lens from the code value of the potentiometer at each of the sampling points and the focal length value of the zoom lens at each of the sampling points comprises:

inputting the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point into origin software, and fitting by using the origin software to obtain the focusing curve.

5. The method according to claim 4, wherein inputting code values of the potentiometer at the sampling points and focal length values of the zoom lens at the sampling points into an origin software, and fitting the code values and the focal length values with the origin software to obtain the focusing curve comprises:

setting the fitting function in the origin software to Y-P1 + P2 e(P3*X)Wherein X is the code value of the potentiometer, Y is the focal length value corresponding to the code value of the potentiometer, and P1, P2 and P3 are fitting coefficients;

inputting the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point into the origin software;

and setting a numerical value for the fitting coefficient, and fitting the fitting function to obtain a focusing curve graph and a fitted fitting function corresponding to the focusing curve graph.

6. The method of claim 5, wherein fitting the fitting function comprises:

and fitting the fitting function for multiple times.

7. The method of claim 1, further comprising, prior to controlling the zoom control motor to move:

predetermining a moving range of the zoom control motor;

accordingly, the zoom control motor is controlled to move, and the method comprises the following steps:

and controlling the zoom control motor to move within the moving range.

8. A zoom lens focus profile acquisition system comprising a stage, a standard collimator, a glass plate, a zoom lens, a memory for storing a computer program, a processor coupled to the zoom lens and configured to implement the steps of the method for acquiring a zoom lens focus profile according to any one of claims 1 to 7 when executing the computer program, wherein:

the zoom lens comprises a zoom control motor, a focusing lens group and a potentiometer meshed with the zoom control motor;

the glass plate is positioned on the focal plane of the standard collimator, the standard collimator is positioned between the glass plate and the zoom lens, and the zoom lens is approximately coaxial with the standard collimator.

9. The system for acquiring a focusing curve of a zoom lens according to claim 8, further comprising:

and the three-dimensional adjusting platform is positioned on the platform and used for carrying the zoom lens so as to enable the zoom lens to perform three-dimensional motion on the platform.

10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of acquiring a focus curve of a zoom lens according to any one of claims 1 to 7.

Technical Field

The present disclosure relates to the field of optical system performance testing technologies, and in particular, to a method and a system for obtaining a focusing curve of a zoom lens, and a computer-readable storage medium.

Background

The zoom lens is an important component of an optical system, and when the distance of a target and/or the environment changes, the target can form a clear image by adjusting the focal length of the zoom lens. During the performance test of the optical system, it is usually necessary to measure the focal length of the zoom lens so that the working performance of the zoom lens can be known.

Currently, a focusing curve is usually obtained through a correspondence between a code value of a potentiometer and a focal length of a zoom lens, and then a focal length value of the zoom lens is obtained through the code value fed back by the potentiometer. The process of acquiring the focusing curve comprises the following steps: the method comprises the steps of measuring the total resistance value of a potentiometer meshed with a zoom control motor by using a universal meter (wherein, the potentiometer with the total resistance value of 10k is generally selected here), then manually adjusting the resistance value to 4k, adjusting and measuring the resistance value, calculating the voltage value of the potentiometer under the current resistance value, obtaining the code value of the potentiometer through the voltage value, simultaneously calculating the focal length value corresponding to the current resistance value to obtain a plurality of groups of data groups containing the code value of the potentiometer and the focal length value corresponding to the code value, and then obtaining a focusing curve through the obtained plurality of groups of data groups, wherein in the first 10 groups of data, one group of data is calculated every 0.1k, and then, one group of data is calculated every 0.05 k. When the focal length value is calculated, a group of relative scribed lines in the glass compass are selected as a target scribed line pair, the actual distance of the target scribed line pair is obtained, the glass compass is imaged through the collimator and the zoom lens, then an image formed by the target scribed line pair of the glass compass under the current focal length value is observed through a microscope with an eyepiece having a cross wire, the real-time data of the target scribed line pair is obtained by a digital display depth gauge, the distance of the image formed by the target scribed line pair is obtained through the difference value of the two real-time data, and then the current focal length value is calculated through the current focal length value (the distance of the image formed by the target scribed line pair is equal to the focal length value of the collimator)/the actual distance of the target scribed line pair to obtain the current focal length value.

However, in the above process, the resistance value needs to be manually measured, the code value corresponding to each resistance value needs to be manually calculated, and the image corresponding to each resistance value needs to be manually observed and measured to obtain the image distance formed by the target reticle of the glass plate, so the process of obtaining the focusing curve is complicated, and the efficiency is low.

In summary, how to reduce the complexity of obtaining the focusing curve and improve the efficiency of obtaining the focusing curve is a technical problem to be solved urgently by those skilled in the art at present.

Disclosure of Invention

In view of the above, an object of the present application is to provide a method, a system and a computer-readable storage medium for acquiring a focus curve of a zoom lens, which are used to reduce the complexity of acquiring the focus curve and improve the efficiency of acquiring the focus curve.

In order to achieve the above purpose, the present application provides the following technical solutions:

a method for acquiring a focusing curve of a zoom lens comprises the following steps:

receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in a zoom lens to move;

acquiring code values of potentiometers meshed with the zoom control motor at a plurality of sampling points, and acquiring images of a glass compass plate corresponding to the sampling points after passing through a standard collimator and the zoom lens;

acquiring the image spacing of a target reticle pair of the glass compass plate from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator;

and obtaining a focusing curve of the zoom lens according to the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point.

Preferably, acquiring an image pitch of a target reticle pair of the glass compass plate from each of the images includes:

and acquiring the image space of the target reticle pair of the Perot plate from each image through an image algorithm.

Preferably, the obtaining of the image pitch of the target reticle pair of the glass compass plate from each of the images by an image algorithm includes:

acquiring a pixel difference between two reticle lines in the target reticle line pair from each image, and acquiring a pixel size from each image;

and acquiring the image space by using the pixel difference and the pixel size.

Preferably, obtaining a focusing curve of the zoom lens by a code value of the potentiometer at each sampling point and a focal length value of the zoom lens at each sampling point includes:

inputting the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point into origin software, and fitting by using the origin software to obtain the focusing curve.

Preferably, inputting the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point into origin software, and fitting by using the origin software to obtain the focusing curve includes:

setting the fitting function in the origin software to Y-P1 + P2 e(P3*X)Wherein X is the code value of the potentiometer, Y is the focal length value corresponding to the code value of the potentiometer, and P1, P2 and P3 are fitting coefficients;

inputting the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point into the origin software;

and setting a numerical value for the fitting coefficient, and fitting the fitting function to obtain a focusing curve graph and a fitted fitting function corresponding to the focusing curve graph.

Preferably, fitting the fitting function includes:

and fitting the fitting function for multiple times.

Preferably, before controlling the zoom control motor to move, the method further includes:

predetermining a moving range of the zoom control motor;

accordingly, the zoom control motor is controlled to move, and the method comprises the following steps:

and controlling the zoom control motor to move within the moving range.

A zoom lens focusing curve acquisition system, comprising a platform, a standard collimator, a glass plate, a zoom lens, a memory for storing a computer program, and a processor coupled to the zoom lens and configured to implement the steps of the method for acquiring a zoom lens focusing curve as described in any of the above when executing the computer program, wherein:

the zoom lens comprises a zoom control motor, a focusing lens group and a potentiometer meshed with the zoom control motor;

the glass plate is positioned on the focal plane of the standard collimator, the standard collimator is positioned between the glass plate and the zoom lens, and the zoom lens is approximately coaxial with the standard collimator.

Preferably, the method further comprises the following steps:

and the three-dimensional adjusting platform is positioned on the platform and used for carrying the zoom lens so as to enable the zoom lens to perform three-dimensional motion on the platform.

A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of acquiring a focus curve of a zoom lens according to any one of the preceding claims.

The application provides a method, a system and a computer readable storage medium for acquiring a focusing curve of a zoom lens, wherein the method comprises the following steps: receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in a zoom lens to move; acquiring code values of potentiometers meshed with the zoom control motor at a plurality of sampling points, and acquiring images corresponding to the sampling points of a glass-quartz plate after the glass-quartz plate passes through a standard collimator and a zoom lens; acquiring the image spacing of a target reticle pair of the glass compass plate from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator; and obtaining a focusing curve of the zoom lens through the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point.

According to the technical scheme disclosed by the application, when a control command is received, the zoom control motor is controlled to move, so that the focus lens group is driven to move through the zoom control motor, code values of a potentiometer at a plurality of sampling points are obtained in the moving process of the focus lens group, images of a glass compass corresponding to each sampling point are collected, then the image distance of a glass compass target reticle pair is directly obtained through the collected images, the focal length value of the zoom lens at each sampling point is calculated, then a focus curve is obtained through the code values of the potentiometer at each sampling point and the focal length values of the zoom lens at each sampling point, so that the zoom control motor moves under control, automatic acquisition of the target reticle distance in the potentiometer code values, the glass compass images and the glass compass images is realized, automatic calculation of the focal length value is realized, and the complexity degree of acquisition of the focus curve is reduced, the efficiency of obtaining of focusing curve is improved.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

Fig. 1 is a flowchart of a method for acquiring a focusing curve of a zoom lens according to an embodiment of the present disclosure;

fig. 2 is a schematic structural diagram of a zoom lens provided in an embodiment of the present application;

fig. 3 is a schematic diagram illustrating a test of a focal length value of a zoom lens according to an embodiment of the present disclosure;

fig. 4 is a schematic structural diagram of a system for acquiring a focusing curve of a zoom lens according to an embodiment of the present disclosure.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Referring to fig. 1 and fig. 2, fig. 1 shows a flowchart of a method for acquiring a focus curve of a zoom lens according to an embodiment of the present disclosure, and fig. 2 shows a schematic structural diagram of the zoom lens according to the embodiment of the present disclosure. The method for acquiring the focusing curve of the zoom lens provided by the embodiment of the application can comprise the following steps:

s11: and receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in the zoom lens to move.

When a user needs to measure a focal length value of the zoom lens to acquire a focusing curve of the zoom lens, a control command may be issued to the processor 10 connected to the zoom lens. The processor 10 controls the motor driving module 21 in the zoom lens after receiving a control command sent by a user, and the motor driving module 21 controls the zoom control motor 22 to move so as to drive the focusing lens group 23 to move back and forth through the zoom control motor 22, thereby changing the focal length value of the zoom lens.

S12: code values of potentiometers meshed with the zoom control motor at a plurality of sampling points are obtained, and images of the glass-compass plate corresponding to the sampling points are collected after the glass-compass plate passes through the standard collimator and the zoom lens.

In the process that the focus control motor 22 drives the focus control motor 23 to move, the potentiometer 24 engaged with the focus control motor 22 through a gear moves along with the movement, and at this time, the processor 10 connected with the zoom lens can directly acquire the code value of the potentiometer 24 at a plurality of sampling points, wherein the sampling points mentioned here are specifically the positions of the focus control motor 23, and when the sampling points are different, the positions of the focus control motor 22 are different. Compared with the prior art that the resistance value of the zoom control motor 22 is manually adjusted, the resistance value is measured, and the code value of the potentiometer 24 is calculated, the method for acquiring the code value of the potentiometer 24 is simple in operation and takes a short time.

It should be noted that the number of sampling points may be set according to the fitting accuracy of the focusing curve, and for convenience of sampling, a plurality of continuous discrete points may be selected as the sampling points, for example: 30 discrete and continuous positions can be set as sampling points, and the number of the sampling points and the distribution mode of the sampling points are not limited in any way.

While acquiring the code values of the potentiometer 24 at the plurality of sampling points, the processor 10 may acquire images of the glass compass plate corresponding to the sampling points after passing through the standard collimator and the zoom lens. Specifically, a magnification method may be used to test the focal length value of the zoom lens, and specifically, refer to fig. 3, which shows a schematic diagram of the test of the focal length value of the zoom lens provided in the embodiment of the present application, in fig. 3, images are sequentially formed by a reticle target pair, a standard collimator, a zoom lens, and a reticle target reticle pair from left to right, where the standard collimator is mainly used to generate parallel light, and may simulate an infinite target; the glass compass plate is positioned on the focal plane of the standard collimator and is provided with a plurality of pairs of scribing lines; the zoom lens is positioned in front of a standard collimator objective.

S13: and acquiring the image spacing of the target reticle pair of the glass compass from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator.

After the processor 10 collects the images of the glass compass plate corresponding to the sampling points, the image space of the target scribing line pair of the glass compass plate can be obtained from the collected images, wherein the target scribing line pair can be the scribing line pair selected in advance according to the logarithm and the distribution of the scribing line pair in the glass compass plate. Compared with the mode that observation is carried out through a microscope with an eyepiece and a cross wire and measurement is carried out through a digital display depth gauge, the mode that the images of the glass plates are directly collected and the target scribed line image-to-image distance is directly obtained from the images of the glass plates can reduce the use of the microscope and the digital display depth gauge, reduce the complexity of obtaining the target scribed line image-to-image distance and improve the convenience of obtaining the target scribed line image-to-image distance.

After the image spacing of the target reticle pair is obtained from each image, the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator can be determined according to f ═ f (f ═ f)cY')/y is used for obtaining the focal length value of the zoom lens at each sampling point, wherein f is the focal length value of the zoom lens, fcAnd y' is the image spacing of the target reticle pair, and y is the reticle spacing of the target reticle pair, namely the actual spacing of the target reticle pair in the glass plate.

It should be noted that the reticle spacing of the target reticle pair and the focal length of the standard collimator can be obtained in advance through measurement, so that the target reticle pair and the focal length of the standard collimator can directly participate in the calculation of the focal length value of the zoom lens.

S14: and obtaining a focusing curve of the zoom lens through the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point.

After the code value of the potentiometer 24 at each sampling point is acquired and the focal length value of the zoom lens at each sampling point is calculated, the focusing curve of the zoom lens can be obtained according to the code value and the focal length value corresponding to the code value.

According to the technical scheme disclosed by the application, when a control command is received, the zoom control motor is controlled to move, so that the focus lens group is driven to move through the zoom control motor, code values of a potentiometer at a plurality of sampling points are obtained in the moving process of the focus lens group, images of a glass compass corresponding to each sampling point are collected, then the image distance of a glass compass target reticle pair is directly obtained through the collected images, the focal length value of the zoom lens at each sampling point is calculated, then a focus curve is obtained through the code values of the potentiometer at each sampling point and the focal length values of the zoom lens at each sampling point, so that the zoom control motor moves under control, automatic acquisition of the target reticle distance in the potentiometer code values, the glass compass images and the glass compass images is realized, automatic calculation of the focal length value is realized, and the complexity degree of acquisition of the focus curve is reduced, the efficiency of obtaining of focusing curve is improved.

The method for acquiring a focusing curve of a zoom lens, which is provided by the embodiment of the application, acquires an image interval of a target reticle pair of a glass compass plate from each image, and may include:

and acquiring the image space of the target reticle pair of the Perot plate from each image through an image algorithm.

The image distance of the target reticle pair of the glass rib plate can be directly acquired from each acquired image through an image algorithm, so that the convenience and the accuracy of acquiring the image distance are improved, and the efficiency and the accuracy of acquiring a focusing curve are improved.

The method for acquiring a focusing curve of a zoom lens, provided by the embodiment of the application, acquires an image distance of a target reticle pair of a glass compass plate from each image through an image algorithm, and may include:

acquiring a pixel difference between two scribed lines in the target scribed line pair from each image, and acquiring a pixel size from each image;

and acquiring the image space by using the pixel difference and the pixel size.

When the image pitch of the target reticle pair of the glass plate is obtained from each image through an image algorithm, a pixel difference n between two reticles in the target reticle pair can be obtained from each image, a pixel size p is obtained from each image, and then the image pitch y 'is obtained according to y' n x p by using the pixel difference n and the pixel size p.

The pixel difference of the two lines in the target line pair refers to the number of pixels of an image between the two lines, and the pixel size refers to the actual length represented by one pixel.

The method for acquiring a focusing curve of a zoom lens according to the embodiment of the present application obtains the focusing curve of the zoom lens according to the code value of the potentiometer 24 at each sampling point and the focal length value of the zoom lens at each sampling point, and may include:

the code value of the potentiometer 24 at each sampling point and the focal length value of the zoom lens at each sampling point are input into origin software, and the origin software is used for fitting to obtain a focusing curve.

The focusing curve of the zoom lens can be obtained by origin software. Specifically, the code value of the potentiometer 24 at each sampling point and the focal length value of the zoom lens corresponding to the code value are input into origin software, and the code value and the focal length value corresponding to the sampling point are fitted into a discontinuous e-exponential function by the origin software, so that a focusing curve with reliability is generated, and the accuracy of the focusing curve is improved.

The origin software mentioned here may be origin7.0 software or other versions of origin software, and of course, fitting may also be performed by using Matlab software, and the present application is not limited in any way.

The method for acquiring a focusing curve of a zoom lens according to the embodiment of the present application inputs a code value of the potentiometer 24 at each sampling point and a focal length value of the zoom lens at each sampling point into origin software, and performs fitting by using the origin software to obtain the focusing curve, which may include:

the fitting function was set to Y-P1 + P2 e in origin software(P3*X)Where X is the code value of the potentiometer 24, Y is the focal length value corresponding to the code value of the potentiometer 24, and P1, P2, and P3 are fitting coefficients;

inputting the code value of the potentiometer 24 at each sampling point and the focal length value of the zoom lens at each sampling point into origin software;

and setting a numerical value for the fitting coefficient, and fitting the fitting function to obtain a focusing curve graph and a fitted fitting function corresponding to the focusing curve graph.

When origin software is used to fit code values and focus values at sampling points, it is possible to do soThe origin software is opened first, Analysis in the menu bar is clicked, Non-linear current fit is selected in the dialog box which appears, then Advanced fitting tool is selected, and the function tab is selected. Then, the fitting function is set to Y ═ P1+ P2 · e(P3 *X)Where X is the code value of the potentiometer 24, Y is the focal length value corresponding to the code value of the potentiometer 24, and P1, P2, and P3 are fitting coefficients. Meanwhile, the code value of the potentiometer 24 at each sampling point and the focal length value corresponding to the code value are input into origin software, wherein the code value and the focal length value corresponding to the code value can be stored in one document in the process of acquiring the code value and the focal length value, then, the data stored in the document is directly copied to the corresponding position of the origin software when the origin software is used for fitting, specifically, the code value corresponding to each sampling point is copied to the X column in the origin software, and the focal length value corresponding to each sampling point is copied to the Y column in the origin software. Then, the graph button in origin software can be clicked, and specific values can be set for the fitting coefficients P1, P2, and P3, wherein the values set for the fitting coefficients can be set empirically, for example: 10 may be set for P1, 20 for P2, and 0.005 for P3. After specific numerical values are set for the fitting coefficients, fitting can be performed on the fitting functions to obtain a focusing curve graph and fitting functions corresponding to the focusing curve graph, so that the relation between the code values and the focal length values can be visually seen through the focusing curve graph, and the focal length values corresponding to the code values or the code values corresponding to the focal length values can be accurately calculated through the fitting functions corresponding to the focusing curve graph.

The method for acquiring the zoom lens focusing curve provided by the embodiment of the application performs fitting on the fitting function, and may include:

and fitting the fitting function for multiple times.

When fitting the fitting function, in order to improve the accuracy of the focusing curve graph and the fitting function after fitting, fitting can be performed for multiple times, specifically, a 100-simplex filter button in origin software can be clicked to perform fitting for multiple times, that is, fitting can be performed for 100 times to obtain the focusing curve graph and obtain the fitting functionThe coefficient P1 changed from originally set 10 to-0.17653 after fitting, P2 changed from originally set 20 to 9.18724 after fitting, and P3 changed from originally set 0.005 to 0.00729 after fitting, i.e. the fitting function after fitting was finally obtained as Y-0.17653 +9.18724 × e(0.00729*X)The confidence coefficient can reach more than 96%.

Before controlling the zoom control motor 22 to move, the method for acquiring a focusing curve of a zoom lens according to the embodiment of the present application may further include:

the movement range of the zoom control motor 22 is predetermined;

accordingly, controlling the movement of the zoom control motor 22 may include:

the zoom control motor 22 is controlled to move within the movement range.

Before controlling the zoom control motor 22 to move, the movement range of the zoom control motor 22 may be determined in advance according to the focal length range of the zoom lens, and then, the zoom control motor 22 may be controlled to move within the determined movement range, that is, the focusing lens group 23 may be moved within the focusing range of the zoom lens (specifically, moved within the range from long focus to short focus), so as to avoid the influence on the acquisition of the focusing curve caused by the too large or too small movement range of the zoom control motor 22.

As shown in fig. 2, an electrical limit connected to the focusing lens assembly 23 and the processor 10 may be provided in the zoom lens, which may feed back the movement of the focusing lens assembly 23 and the zoom control motor 22 to the processor 10 in real time, so as to prevent the focusing lens assembly 23 from moving out of the focal range as much as possible, and prevent the zoom control motor 22 from moving out of the determined movement range.

An embodiment of the present application further provides a system for acquiring a focus curve of a zoom lens, see fig. 2 and fig. 4, where fig. 4 shows a schematic structural diagram of the system for acquiring a focus curve of a zoom lens provided in an embodiment of the present application, and may include a platform 3, a standard collimator 4, a glass plate 5, a zoom lens 2, a memory for storing a computer program, and a processor 10 connected to the zoom lens 2 and configured to implement, when executing the computer program, steps of any one of the methods for acquiring a focus curve of a zoom lens described above, where:

the zoom lens 2 may include a zoom control motor 22, a focusing lens group 23, a potentiometer 24 engaged with the zoom control motor 22;

the glass plate 5 is positioned on the focal plane of the standard collimator 4, the standard collimator 4 is positioned between the glass plate 5 and the zoom lens 2, and the zoom lens 2 is substantially coaxial with the standard collimator 4.

The system for acquiring the focusing curve of the zoom lens can comprise a platform 3, a standard collimator 4, a glass plate 5, a zoom lens 2, a memory and a processor 10, wherein the memory and the processor 10 can be integrated in the computer 1.

The platform 3 is used for bearing the standard collimator 4, the zoom lens 2 and the computer 1, so that the standard collimator 4, the zoom lens 2 and the computer 1 can be kept stable; the standard collimator 4 is mainly used for generating parallel light to simulate infinite targets; the glass rib plate 5 comprises a plurality of scribing line pairs, and the scribing line pairs are positioned on the focal plane of the standard collimator 4; the zoom lens 2 comprises a zoom control motor 22, a focusing lens group 23 and a potentiometer 24 meshed with the zoom control motor 22, and is positioned in front of an objective lens of a standard collimator 4, namely the standard collimator 4 is positioned between the glass plate 5 and the zoom lens 2, and the zoom lens 2 is approximately coaxial (specifically, the optical axis is approximately coaxial) with the standard collimator 4, so that a glass plate 5 image can be clearly seen from the zoom lens 2; the memory is used for storing computer programs, and the processor 10 can realize the following steps when being used for executing the computer programs stored in the memory:

receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in a zoom lens to move; acquiring code values of potentiometers meshed with the zoom control motor at a plurality of sampling points, and acquiring images corresponding to the sampling points of a glass-quartz plate after the glass-quartz plate passes through a standard collimator and a zoom lens; acquiring the image spacing of a target reticle pair of the glass compass plate from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator; and obtaining a focusing curve of the zoom lens through the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point.

The system for acquiring the focusing curve of the zoom lens provided by the embodiment of the application can further comprise:

a three-dimensional adjusting stage 6 which is located on the platform 3 and used for carrying the zoom lens 2 so that the zoom lens 2 can move on the platform 3 in three dimensions.

The acquisition system may further comprise a three-dimensional adjustment stage 6 positioned on the platform 3, the three-dimensional adjustment stage 6 being adapted to carry the zoom lens 2 such that the zoom lens 2 is capable of three-dimensional movement on the platform 3 such that the optical axis of the zoom lens 2 is substantially coaxial with the optical axis of the collimator.

It should be noted that, descriptions of relevant parts in the system for acquiring a zoom lens focusing curve provided in the embodiment of the present application and descriptions of corresponding parts in the method for acquiring a zoom lens focusing curve provided in the embodiment of the present application may be mutually referred to, and are not described herein again.

An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the following steps:

receiving a control command, and controlling a zoom control motor to move so as to drive a focusing lens group in a zoom lens to move; acquiring code values of potentiometers meshed with the zoom control motor at a plurality of sampling points, and acquiring images corresponding to the sampling points of a glass-quartz plate after the glass-quartz plate passes through a standard collimator and a zoom lens; acquiring the image spacing of a target reticle pair of the glass compass plate from each image, and obtaining the focal length value of the zoom lens at each sampling point through the image spacing, the reticle spacing of the target reticle pair and the focal length of the standard collimator; and obtaining a focusing curve of the zoom lens through the code value of the potentiometer at each sampling point and the focal length value of the zoom lens at each sampling point.

The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.

For a description of a relevant part in a computer-readable storage medium provided in the embodiment of the present application, reference may be made to detailed descriptions of a corresponding part in a method for acquiring a focusing curve of a zoom lens provided in the embodiment of the present application, and details are not described herein again.

It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include elements inherent in the list. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:投影镜头系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!