A mirror set ball center image positioning calculation and centering lens selection method, device and medium

By employing a method for calculating the spherical center of a lens group, and utilizing interactive program interfaces and data file reading, the position of the spherical center of a multi-lens lens group can be quickly calculated. This solves the problem of high computational complexity in existing technologies and improves production efficiency and lens accuracy.

CN122194472APending Publication Date: 2026-06-12CHANGCHUN ZHIRAN PHOTOELECTRIC TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
CHANGCHUN ZHIRAN PHOTOELECTRIC TECH CO LTD
Filing Date
2026-05-14
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Existing technologies struggle to efficiently calculate the spherical center position of multi-lens groups, resulting in low production efficiency and requiring complex simulation calculations assisted by optical professionals.

Method used

This paper provides a method for calculating the spherical center image of a lens group and selecting a centering lens. By reading the centering lens information and lens group data, and using the program interface for key interaction and data file reading, bubble sorting and recursive calculation are performed to quickly obtain the spherical center image position data and draw a graphic to simulate the lens position.

🎯Benefits of technology

It significantly reduces the need for optical expertise, reduces labor and time costs, improves the production efficiency of centering and turning multi-lens groups, and enhances the precision and performance of optical lenses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122194472A_ABST
    Figure CN122194472A_ABST
Patent Text Reader

Abstract

The application discloses a kind of mirror group ball center image positioning calculation and centering lens selection method, equipment and medium, it is related to optical lens assembly technical field, including reading text information that has centering lens information obtains the motion range of upper and lower optical path and centering lens focal length information and carries out bubble sorting;According to the number of calculated curved surface creation list row, read the Excel file that has mirror group data information;Using list data to obtain all ball center image position results, and the ball center image position data are compared with centering lens data to obtain lens selection recommendation data;Judge whether the list contains mirror group data and ball center image position data, under the premise that data is contained in list, draw graphics to simulate the position and shape of lens after scaling according to list data proportion.This application adopts program interface key type interaction and data file reading mode, can quickly calculate all results, without complex simulation modeling process, to improve production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of optical lens assembly processing technology, and in particular to a method, equipment and medium for calculating the spherical center image of a lens assembly and selecting a centering lens. Background Technology

[0002] Currently, multi-element lenses typically employ a segmented assembly and adjustment method. Several lens elements form a lens group, each element is centered and machined on a centering lathe, and then multiple elements are assembled and centered using a centering machine to form the lens group. These lens groups are then combined into a single lens. However, with the increasing complexity and precision requirements of ultraviolet optical lenses, the number of lens elements needed for a single lens is constantly increasing. Traditional segmented assembly and adjustment methods are insufficient to meet these precision requirements. To improve assembly and adjustment accuracy, a secondary centering and machining process is necessary for the lens groups after centering and adjustment using a centering machine.

[0003] When centering and turning a lens assembly, the alignment and adjustment of the optical axis are crucial steps. Existing related technologies, such as the invention patent with authorization announcement number CN120828326A entitled "Ultra-precision Optical Centering Lathe," employ a dual-optical-path lens eccentricity system to locate the lens's optical axis. This process requires positioning the focal points of the upper and lower optical path lenses at the spherical center image positions on the upper and lower surfaces of the target lens. After alignment, the lens is rotated, and the movement of the spherical center image with the lens rotation is observed via a display television. This allows for adjustment of the lens's position and tilt angle until the accuracy standard is met. For a single spherical lens, its spherical center image position is located at the center of the circle formed by its upper and lower curved surfaces, i.e., at a distance of one radius of curvature from the lens apex. This position can be quickly obtained from the drawing parameters of a single spherical lens. However, for multi-lens assemblies, aligning and adjusting the optical axis requires calibrating the spherical center images on multiple lens surfaces to ensure the alignment of the entire lens assembly's optical axis. The position of the center image of the target surface changes with each refraction of a spherical surface. After refraction by all the spherical surfaces along the optical path, its position becomes difficult to calculate. For example, to observe the center image of the fourth surface from the top down from the upper optical path, the center image of the fourth surface must first be calculated by refraction with the third surface, then the result must be calculated by refraction with the second surface, and finally the result must be calculated by refraction with the first surface. The final result is the correct position observed from the upper optical path. The same recursive calculation process must be performed to calculate the position of the center image of the third surface.

[0004] Currently, domestically produced centering lathes are mainly designed for centering single lenses, and the systems lack the capability to calculate the spherical center position of lens groups. Calculating the spherical center position of multi-lens lens groups is highly complex and computationally intensive. This calculation is typically performed by optical designers using specialized optical simulation software, or by centering machine operators using a dedicated auxiliary system provided by the manufacturer, which integrates design parameters into the control software. However, centering lathe operators lack optical expertise and the availability of dedicated software like those for centering machines. Therefore, spherical center positioning usually requires simulation calculations assisted by optical designers, making labor and time costs a significant constraint on production efficiency. To promote equipment and process upgrades, we propose a method, equipment, and medium for calculating spherical center position and selecting centering lenses. Summary of the Invention

[0005] The purpose of this invention is to provide a method, device, and medium for calculating the spherical center image of a lens group and selecting a centering lens, so as to solve the problems mentioned in the background art.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for calculating the spherical center image of a lens group and selecting a centering lens, comprising: S1, read the text information containing the centering lens information to obtain the motion range of the upper and lower optical paths and the focal length information of the centering lens, and perform bubble sorting on the focal length information of the centering lens in the upper and lower optical paths. S2, create a list of rows on the interface based on the number of surfaces to be calculated, read the Excel file containing mirror group data information, store it in numerical form and display it on the list created on the interface; S3: Calculate all the center image positions using the list data, compare the center image position data with the centering lens data to obtain recommended lens selection data, and store the data in the Excel file of step S2; S4. Determine whether the list contains lens group data and spherical center image position data. If the list contains the data, draw a graphic to simulate the position and shape of the lens after scaling it according to the list data ratio.

[0007] Preferably, step S1 specifically includes: S101, Click the "Lens Library Read" button on the program interface, and the lens library file selection window will pop up to execute step S102; S102, Select the txt text file containing centering lens information in the lens library file and open it to execute step S103; S103: Using the file path information obtained in step S102, the text information in the file is read and analyzed in text form to obtain the focal length data of the centering lens for the upper and lower optical paths. The data is then sorted and stored using bubble sorting for use in the lens selection recommendation in step S3.

[0008] Preferably, step S2 specifically includes: S201, Based on the number of surfaces to be calculated, create the required number of list rows in the program interface using the "Create List" button and then execute step S202; S202: Obtain the number of lists to be created through step S201, and create lists on the interface by looping and appending. Each time the loop is repeated, a list position will be added to the interface, and finally a list of the number of input rows will be generated on the program interface. S203, Click the "Read Data" button on the program interface to pop up an Excel file containing lens group data information and execute step S204. S204, Select the Excel file containing the lens group data information through folder operation and open it to execute step S205; In step S205, using the file path information obtained in step S204, the data information in the Excel file is read into the program in numerical form and analyzed. Starting from the second row and second column of the file, the second column of each row is used as the radius of curvature of the surface, the third column is used as the distance between the surface and the previous surface, the fourth column is used as the refractive index of the material above the surface, and the fifth column is used as the aperture of the lens. Step S205 reads the data information of the corresponding number of rows from the file according to the number of rows created in step S202, stores the data information in numerical form and displays it on the list on the interface. The list data can be manually modified, and subsequent calculations are based on the modified data.

[0009] Preferably, step S3 specifically includes: S301, Execute step S302 by clicking the "Calculate Center of Sphere" button on the program interface; S302, recursively calculate the mirror group data one by one to obtain the position data of all sphere center images; S303: Compare and select all the sphere center image position data obtained in step S302 with the focal length data of the centering lens obtained in step S103 to obtain recommended data for selecting upper and lower optical path lenses. S304, The spherical center image position data of the upper and lower optical paths obtained in steps S302 and S303, along with the recommended lens selection data for the upper and lower optical paths, are sequentially sent to the list for display. S305, Enter the starting column number of the data to be saved in the number box on the interface, and execute step S306 according to the entered number by clicking the "Save to Excel" button; S306, according to the column number obtained in step S305, store the calculation results obtained in steps S302 and S303 into the mirror group data file selected in step S204.

[0010] Preferably, step S4 specifically includes: S401: By clicking the "Draw" button on the program interface, the program will perform different steps according to the data in the list. If no data is found in the list, no steps will be performed. If the list contains lens group data information but the sphere center position data has not been calculated, proceed to step S402. If the list contains lens group data and sphere center image data for which the sphere center position has been calculated, proceed to step S403. S402, read the lens group data information in the list, including the curvature radius, spacing and aperture information of the lens surface, scale it according to the data, and draw a graphic on the display interface to simulate the position and shape of the lens; S403: Read the lens group data and spherical center image position data from the list, scale the data proportionally, and draw a graphic simulation of the lens position and shape on the display interface. Draw a red line to simulate the position of the upper optical path spherical center image and a green line to simulate the position of the lower optical path spherical center image. By clicking on a specific data in the "Upper Light Source Spherical Center Image Position" and "Lower Light Source Spherical Center Image Position" lists on the program interface, the graphical interface will hide the spherical center image position diagrams other than the selected data and only display the spherical center image position diagram of the selected data for positioning reference of the single curved surface spherical center image position.

[0011] Preferably, step S302, calculating the sphere center image position data, specifically includes: 101. Read the radius of curvature, spacing, and refractive index of each lens surface and store them in digital form; 102. Using the centering lens above the lathe turntable, with the dome position of the first curved surface as the coordinate 0 point and the vertical downward direction as the positive direction, calculate the upper optical path sphere center image. 103. The position of the center of the first surface of the upper optical path is the optical center of the surface, which can be directly obtained from the radius of curvature of the first surface; 104. Calculate the position of the spherical center image of the downward-moving lens surface; 105. Calculate the spherical refractive index of the input surface and the previous surface using the single refraction calculation formula, where the single refraction calculation formula is: ; In the formula: Let be the radius of curvature of the refracting surface. The input parameter is the distance between the center of the sphere and the top of the refracting surface, with downwards as the positive direction. Let be the refractive index of the material beneath the refracting surface. Let be the refractive index of the material above the refracting surface. The distance between the position of the refracted sphere's center image and the top of the refracting surface is taken as the positive direction. 106, the result obtained by calculation in 105 steps. Add the distance from the previous surface The distance between the position of the center image of the new input surface and the dome of the refracting surface is obtained, that is... As the next calculation in step 105. refractive index and The refractive index and radius of curvature of the material above and below the new refracting surface are taken sequentially. Take the new radius of curvature of the refractive surface, and obtain the input data for the next step 105. The process of steps 105 and 106 is a loop calculation. The loop ends when the first surface is reached and the process proceeds to step 107. Steps 107 and 104 to step 107 are performed in a loop. At the end of each loop, the next surface is taken as the target surface. The loop ends when the calculation of the center image position of the bottom surface is completed. By repeating steps 105 and 106, the final center image position of the target surface after refraction through all the surfaces above is obtained. After obtaining the center image position of the target surface in step 104, the loop returns to step 104 to start the next loop. The loop ends when the calculation of the center image position of the bottom surface is completed and the process proceeds to step 108. 108. Use the centering lens under the lathe turntable to observe the spherical center image. Take the position of the spherical dome of the lowest curved surface as the coordinate 0 point and vertically downward as the positive direction to calculate the lower optical path spherical center image. 109. Starting from the first surface, calculate the position of the sphere center image of the target surface; 110. In contrast to step 105, the refracted surface is below the input surface. The single refraction calculation formula in step 105 is used to calculate the spherical refraction between the input surface and the next surface. The results obtained from steps 111 and 110 Subtract the distance from the previous surface The distance between the position of the center image of the new input surface and the dome of the refracting surface is obtained, that is... As the next calculation in step 105. refractive index and The refractive index and radius of curvature of the material above and below the new refracting surface are taken sequentially. Take the new radius of curvature of the refractive surface, and obtain the input data for the next step 110 calculation. The process of steps 110 and 111 is a loop calculation, which is recursively calculated until the bottom surface, at which point the loop ends and the process proceeds to step 112. Steps 112 to 109 are performed in a loop. At the end of each loop, the next surface is taken as the target surface. The loop ends when the calculation of the center image position of the second to last surface at the bottom is completed. By repeating steps 110 and 111, the final center image position of the target surface after refraction through all the surfaces below is obtained. This is the center image position of the target surface in step 109. At this point, the loop from step 109 to step 112 ends, and the loop returns to step 109 for the next loop. The loop ends when the calculation of the center image position of the second to last surface at the bottom is completed, and the process proceeds to step 113. 113. The position of the center of the sphere on the lowest surface of the lower optical path is the optical center of the sphere on that surface, which can be directly obtained from the radius of curvature of the lowest surface. 114. Change the reference 0 point of the sphere center image position of the lower optical path to the reference 0 point of the upper optical path. That is, add the sum of the intervals of the entire lens group to all the sphere center image position results of the lower optical path. At this time, all sphere center image positions of the upper and lower optical paths are obtained, and the reference 0 point is the sphere top of the uppermost curved surface of the lens group.

[0012] Preferably, in step S103, the process of reading the text information in the file in text form specifically includes: The first line is read as the range of motion of the upper optical path, and the second line is read as the range of motion of the lower optical path. The range of motion of both the upper and lower optical paths is taken from the surface of the lathe rotary table as the distance starting point. Read the focal length information of the centering lens in the third line as the upper optical path, and read the focal length information of the centering lens in the fourth line as the lower optical path. The focal length information of the centering lens in the upper and lower optical paths are separated by a space, with downward being the positive direction. The focal length information of the centering lens in the upper and lower optical paths is bubble sorted. The sorting principle is that the smaller the absolute value of the focal length, the first one is sorted, and when the absolute values ​​are the same, the positive direction is sorted first.

[0013] Preferably, in step S303, the comparison and selection of the sphere center image position data and lens data specifically involves: The focal lengths of the upper optical path spherical center image and the upper optical path centering lens are compared in turn. The selection principle is that the upper optical path lens can move within its travel range to the focal position to coincide with the position of the optical path spherical center image on the target surface, and the distance between the upper optical path lens and the lens group is more than 5mm. The focal lengths of the lower optical path sphere center image and the lower optical path centering lens are compared sequentially. The selection principle is that the lower optical path can move within its travel range to the point where the focal position coincides with the lower optical path sphere center position of the target curved surface, and the distance between the lower optical path lens and the lens group is more than 5mm.

[0014] In addition, the present invention also provides a computer device, including a storage device and a processor; The storage device is used to store computer programs that can run on the processor; The processor is used to execute the computer program to implement the above-described method for calculating the spherical center of a lens group and selecting a centering lens.

[0015] In addition, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a method for calculating the spherical center of a lens group and selecting a centering lens as described above.

[0016] The technical effects and advantages of this invention are as follows: This invention can obtain the sphere center image calculation result by reading the file and calculating the data inside the program. It does not require the operator to understand professional optical knowledge, nor does it require professional simulation design through simulation software, which can significantly reduce the need for professional knowledge.

[0017] This invention employs a program interface with button-based interaction and data file reading, eliminating the need for extensive data input. The program performs loop and recursive calculations to quickly calculate all results, allowing centering lathe operators to calculate the sphere's center position without the need for additional optical professionals or complex simulation modeling processes. This significantly reduces the time and labor costs of the process and improves production efficiency.

[0018] This invention can effectively solve the problem of centering and turning of segmented lens groups in multi-lens lenses, and assist domestic single-lens centering lathes in exploring the process of centering and turning multi-lens lens groups, thereby improving the performance and precision of optical lenses, and has broad application prospects in the manufacturing and use of precision optical equipment. Attached Figure Description

[0019] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used together with the embodiments of the invention to explain the invention, but do not constitute a limitation thereof. In the drawings: Figure 1 This is one of the schematic diagrams of the method flow of the present invention.

[0020] Figure 2 This is the second schematic diagram of the method flow of the present invention.

[0021] Figure 3 This is a schematic diagram of the method for calculating the position of the sphere's center image according to the present invention.

[0022] Figure 4 This is a schematic diagram of the interactive interface for running the program of this invention. Detailed Implementation

[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] This invention provides, for example Figures 1-4 The method for calculating the spherical center of a lens group and selecting a centering lens, as shown in this embodiment, is designed based on the C++ language and generated using the QT development platform. It includes four functional modules: centering lens data reading, lens group data reading, display and storage of spherical center calculation and centering lens selection results, and graphical display. The specific method includes the following steps: S1, read the text information containing the centering lens information to obtain the motion range of the upper and lower optical paths and the focal length information of the centering lens, and perform bubble sorting on the focal length information of the centering lens in the upper and lower optical paths. Specifically, step S1 is as follows: S101, using the "Lens Library Read" button as the program exchange interface, click the "Lens Library Read" button on the program interface, and a lens library file selection window will pop up to execute step S102; S102, Select the txt text file containing the centering lens information in the lens library file and click the "Open" button on its window to execute step S103; S103: Using the file path information obtained in step S102, the text information within the file is read and analyzed in text form. The specific process is as follows: The first line (the first line of text information, the same below) is read as the movement range of the upper optical path, and the second line is read as the movement range of the lower optical path. The movement ranges of both the upper and lower optical paths are based on the lathe turntable surface as the starting point, with the unit being millimeters. The third line is read as the focal length information of the centering lens of the upper optical path, and the fourth line is read as the focal length information of the centering lens of the lower optical path. The focal length information of the centering lens of both the upper and lower optical paths is separated by a space, with the unit being millimeters, and downward being the positive direction. Then, the read focal length information of the centering lens of the upper and lower optical paths is sorted using a bubble sort. The bubble sort is based on the sorting principle of smaller absolute focal length values ​​first, and when the absolute values ​​are the same, the positive direction is first. Finally, the sorting result is stored for use in subsequent lens selection and recommendation. S2, create a list of rows on the interface based on the number of surfaces to be calculated, read the Excel file containing mirror group data information, store it in numerical form and display it on the list created on the interface; Specifically, step S2 is as follows: S201, using the "Create List" button as the program's interface, enter the number of list rows to be created through the number box to the left of "Create List" according to the number of surfaces to be calculated. The number of list rows corresponds to the number of surfaces to be calculated. After clicking "Create List", execute step S202 according to the entered number. S202: Obtain the number of lists to be created through step S201, and create lists on the interface by looping and appending. Each time the loop is repeated, a list position will be added to the interface, and finally a list of the number of input rows will be generated on the program interface. S203, using the "Read Data" button as the program's interface, after clicking the "Read Data" button, an Excel file containing the lens group data information pops up on the interface and the S204 step is executed. S204, Select the Excel file containing the lens group data information through folder operation, and execute step S205 by clicking the "Open" button on the window; S205: Using the file path information obtained in step S204, the data information in the Excel file is read into the program in numerical form and analyzed. Starting from the second row and second column of the file, the second column of each row is used as the radius of curvature of the surface, the third column is used as the distance between the surface and the previous surface (this column of the first surface is not read), the fourth column is used as the refractive index of the material above the surface, and the fifth column is used as the aperture of the lens (i.e., the diameter of the circular lens). Step S205 reads the data information of the corresponding number of rows from the file according to the number of rows created in step S202, stores the data information in numerical form and displays it on the list on the interface. The list data can be manually modified, and subsequent calculations are based on the modified data. The above steps S1 and S2, by reading the centering lens data and lens group data, do not require a large amount of data input, reducing the skill requirements for business operations, thereby helping to reduce labor costs and data input time costs, and improving production efficiency. S3: Calculate all the center image positions using the list data, compare the center image position data with the centering lens data to obtain recommended lens selection data, and store the data in the Excel file of step S2; Specifically, step S3 is as follows: S301, using the "Calculate Center of Sphere" button as the program's interface, execute step S302 by clicking the "Calculate Center of Sphere" button on the program interface; S302, recursively calculate the mirror group data one by one to obtain the position data of all sphere center images; S303, compare and select all the sphere center image position data obtained in step S302 with the focal length data of the centering lens obtained in step S103 to obtain recommended data for selecting upper and lower optical path lenses; the comparison and selection process is as follows: The focal lengths of the upper optical path spherical center image and the upper optical path centering lens are compared in turn. The lens is selected according to the principle that the upper optical path lens can move to the focal position within the travel range to coincide with the position of the optical path spherical center image on the target surface, and the distance between the upper optical path lens and the lens group is more than 5mm. The focal lengths of the lower optical path sphere center image and the lower optical path centering lens are compared sequentially. Lens selection is based on the principle that the lower optical path can move within its travel range to the focal position to coincide with the lower optical path sphere center position of the target surface, and the distance between the lower optical path lens and the lens group is more than 5mm. Thus, recommended data for the selection of upper and lower optical path lenses are obtained. S304, The spherical center image position data of the upper and lower optical paths and the recommended lens selection data of the upper and lower optical paths obtained in steps S302 and S303 are sequentially sent to the list for display; S305 uses the "Save to Excel" button as the program's interface, allowing users to enter the starting column number of the data to be saved in the number box to the right of "Save to Excel" on the interface. The default number is usually the 6th column. After clicking the "Save to Excel" button, the program will execute the subsequent steps in S306 according to the entered number. S306, according to the number of columns obtained in step S305, store the four calculation results obtained in steps S302 and S303 into the mirror group data file selected in step S204 in sequence; It should be noted that step S302, which calculates the position data of the sphere's center image, specifically includes: 101. Read the radius of curvature, spacing, and refractive index of each lens surface and store them in digital form; 102. Using the centering lens above the lathe turntable, with the dome position of the first curved surface as the coordinate 0 point and the vertical downward direction as the positive direction, calculate the upper optical path sphere center image. 103. The position of the center of the first surface of the upper optical path is the optical center of the surface, which can be directly obtained from the radius of curvature of the first surface; 104. Calculate the position of the spherical center image of the downward-moving lens surface; 105. Calculate the spherical refractive index of the input surface and the previous surface using the single refraction calculation formula, where the single refraction calculation formula is: ; In the formula: Let be the radius of curvature of the refracting surface. The input parameter is the distance between the center of the sphere and the top of the refracting surface, with downwards as the positive direction. Let be the refractive index of the material beneath the refracting surface. Let be the refractive index of the material above the refracting surface. The distance between the position of the refracted sphere's center image and the top of the refracting surface is taken as the positive direction. 106, the result obtained by calculation in 105 steps. Add the distance from the previous surface The distance between the position of the center image of the new input surface and the dome of the refracting surface is obtained, that is... As the next calculation in step 105. refractive index and The refractive index and radius of curvature of the material above and below the new refracting surface are taken sequentially. Take the new radius of curvature of the refractive surface, and obtain the input data for the next step 105. The process of steps 105 and 106 is a loop calculation. The loop ends when the first surface is reached and the process proceeds to step 107. Steps 107 and 104 to step 107 are performed in a loop. At the end of each loop, the next surface is taken as the target surface. The loop ends when the calculation of the center image position of the bottom surface is completed. By repeating steps 105 and 106, the final center image position of the target surface after refraction through all the surfaces above is obtained. After obtaining the center image position of the target surface in step 104, the loop returns to step 104 to start the next loop. The loop ends when the calculation of the center image position of the bottom surface is completed and the process proceeds to step 108. 108. Use the centering lens under the lathe turntable to observe the spherical center image. Take the position of the spherical dome of the lowest curved surface as the coordinate 0 point and vertically downward as the positive direction to calculate the lower optical path spherical center image. 109. Starting from the first surface, calculate the position of the sphere center image of the target surface; 110. In contrast to step 105, the refracted surface is below the input surface. The single refraction calculation formula in step 105 is used to calculate the spherical refraction between the input surface and the next surface. The results obtained from steps 111 and 110 Subtract the distance from the previous surface The distance between the position of the center image of the new input surface and the dome of the refracting surface is obtained, that is... As the next calculation in step 105. refractive index and The refractive index and radius of curvature of the material above and below the new refracting surface are taken sequentially. Take the new radius of curvature of the refractive surface, and obtain the input data for the next step 110 calculation. The process of steps 110 and 111 is a loop calculation, which is recursively calculated until the bottom surface, at which point the loop ends and the process proceeds to step 112. Steps 112 to 109 are performed in a loop. At the end of each loop, the next surface is taken as the target surface. The loop ends when the calculation of the center image position of the second to last surface at the bottom is completed. By repeating steps 110 and 111, the final center image position of the target surface after refraction through all the surfaces below is obtained. This is the center image position of the target surface in step 109. At this point, the loop from step 109 to step 112 ends, and the loop returns to step 109 for the next loop. The loop ends when the calculation of the center image position of the second to last surface at the bottom is completed, and the process proceeds to step 113. 113. The position of the center of the sphere on the lowest surface of the lower optical path is the optical center of the sphere on that surface, which can be directly obtained from the radius of curvature of the lowest surface. 114. Change the reference 0 point of the sphere center image position of the lower optical path to the reference 0 point of the upper optical path. That is, add the sum of the intervals of the entire lens group to all the sphere center image position results of the lower optical path. At this time, all sphere center image positions of the upper and lower optical paths are obtained. The reference 0 point is the sphere top of the uppermost curved surface of the lens group. S4, determine whether the list contains lens group data and sphere center image position data. If the list contains data, draw a graphic to simulate the position and shape of the lens after scaling it according to the list data ratio. Specifically, step S4 includes: S401 uses the "Paint" button as the program's interface. By clicking the "Paint" button on the program interface, the data in the list is searched and judged. Based on the judgment result, the corresponding steps are executed. The specific judgment and execution process is as follows: If no data is found in the list, no further steps are taken. If the list contains mirror group data information but the sphere center image position data has not been calculated, proceed to step S402; If the list contains mirror group data and sphere center image data for which the sphere center image position has been calculated, then proceed to step S403. S402, the program reads the lens group data information in the list. The lens group data information includes the curvature radius, spacing and aperture information of the lens surface. After scaling the data proportionally, the program draws a graphic on the display interface on the right side of the program interface to simulate the position and shape of the lens. S403, the program reads the lens group data and spherical center image position data from the list, scales the data proportionally, and draws a graphic simulation of the lens position and shape on the display interface on the right side of the program interface. A red line is drawn to simulate the position of the upper optical path spherical center image, and a green line is drawn to simulate the position of the lower optical path spherical center image. Then, by clicking on a specific data in the "Upper Light Source Spherical Center Image Position" and "Lower Light Source Spherical Center Image Position" lists in the program interface, the graphical interface will hide the spherical center image position illustrations other than the selected data and only display the spherical center image position illustration of the selected data for positioning reference of the single curved surface spherical center image position. Clicking on other positions will restore the display of the spherical center image position. Steps S3 and S4 described above can perform cyclic and recursive calculations to quickly calculate all results. This eliminates the need for operators to understand professional optical knowledge or perform professional simulation design using simulation software when operating the centering lathe, thus reducing operational requirements and effectively solving the problem of centering turning of segmented lens groups in multi-lens lenses, thereby improving the performance and precision of optical lenses.

[0025] The above embodiments can obtain the spherical center image calculation results by reading files and performing internal program data calculations, simplifying and facilitating the spherical center image positioning calculation for multi-lens lens groups. This eliminates the need for professional optical expertise and simulation software operation skills, overcoming the limitations and inconveniences of using dedicated centering lathe auxiliary calculation software. Furthermore, this embodiment utilizes a program interface with button-based interaction and data file reading, eliminating the need for extensive data input. The program performs loop and recursive calculations to quickly calculate all results, enabling centering lathe operators to quickly position the spherical center image of the lens group. This allows for the production of multi-lens lens group centering turning using a single-lens centering lathe. It solves the problem of difficult spherical center image positioning in current domestic single-lens centering lathes for multi-lens lens group turning processes, significantly improving the efficiency of spherical center image positioning calculations when using optical centering lathes for multi-lens lens group turning. It also significantly reduces the professional knowledge requirements and time costs of this production process, providing significant assistance for the upgrade of domestic centering lathes from single-lens processing to next-generation multi-lens lens group processing.

[0026] This application also proposes a computer device, including a storage unit and a processor. The storage unit is used to store a computer program that can run on the processor. The processor is used to execute the computer program to implement a method for calculating the spherical center of a lens group and selecting a centering lens as described in any of the above embodiments.

[0027] This application also proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements a method for calculating the spherical center of a lens group and selecting a centering lens as described in any of the above embodiments.

[0028] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for calculating the spherical center image of a lens group and selecting a centering lens, characterized in that, include: S1, read the text information containing the centering lens information to obtain the motion range of the upper and lower optical paths and the focal length information of the centering lens, and perform bubble sorting on the focal length information of the centering lens in the upper and lower optical paths. S2, create a list of rows on the interface based on the number of surfaces to be calculated, read the Excel file containing mirror group data information, store it in numerical form and display it on the list created on the interface; S3: Calculate all the center image positions using the list data, compare the center image position data with the centering lens data to obtain recommended lens selection data, and store the data in the Excel file of step S2; S4. Determine whether the list contains lens group data and spherical center image position data. If the list contains the data, draw a graphic to simulate the position and shape of the lens after scaling it according to the list data ratio.

2. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 1, characterized in that, The S1 step specifically includes: S101, Click the "Lens Library Read" button on the program interface, and the lens library file selection window will pop up to execute step S102; S102, Select the txt text file containing centering lens information in the lens library file and open it to execute step S103; S103: Using the file path information obtained in step S102, the text information in the file is read and analyzed in text form to obtain the focal length data of the centering lens for the upper and lower optical paths. The data is then sorted and stored using bubble sorting for use in the lens selection recommendation in step S3.

3. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 2, characterized in that, The S2 step specifically includes: S201, Based on the number of surfaces to be calculated, create the required number of list rows in the program interface using the "Create List" button and then execute step S202; S202: Obtain the number of lists to be created through step S201, and create lists on the interface by looping and appending. Each time the loop is repeated, a list position will be added to the interface, and finally a list of the number of input rows will be generated on the program interface. S203, Click the "Read Data" button on the program interface to pop up an Excel file containing lens group data information and execute step S204; S204, Select the Excel file containing the lens group data information through folder operation and open it to execute step S205; In step S205, using the file path information obtained in step S204, the data information in the Excel file is read into the program in numerical form and analyzed. Starting from the second row and second column of the file, the second column of each row is used as the radius of curvature of the surface, the third column is used as the distance between the surface and the previous surface, the fourth column is used as the refractive index of the material above the surface, and the fifth column is used as the aperture of the lens. Step S205 reads the data information of the corresponding number of rows from the file according to the number of rows created in step S202, stores the data information in numerical form and displays it on the list on the interface. The list data can be manually modified, and subsequent calculations are based on the modified data.

4. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 3, characterized in that, The S3 step specifically includes: S301, Execute step S302 by clicking the "Calculate Center of Sphere" button on the program interface; S302, recursively calculate the mirror group data one by one to obtain the position data of all sphere center images; S303: Compare and select all the sphere center image position data obtained in step S302 with the focal length data of the centering lens obtained in step S103 to obtain recommended data for selecting upper and lower optical path lenses. S304, The spherical center image position data of the upper and lower optical paths obtained in steps S302 and S303, along with the recommended lens selection data for the upper and lower optical paths, are sequentially sent to the list for display. S305, enter the starting column number of the data to be saved in the number box on the interface, and execute step S306 according to the entered number by clicking the "Save to Excel" button; S306, according to the column number obtained in step S305, store the calculation results obtained in steps S302 and S303 into the mirror group data file selected in step S204.

5. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 4, characterized in that, The S4 step specifically includes: S401, by clicking the "Draw" button on the program interface, the program performs different steps according to the data in the list. If no data is found in the list, no steps are performed; if the list contains lens group data information but the sphere center image position data has not been calculated, proceed to step S402; if the list contains lens group data and sphere center image data for which the sphere center image position has been calculated, proceed to step S403. S402, read the lens group data information in the list, including the curvature radius, spacing and aperture information of the lens surface, scale it according to the data, and draw a graphic on the display interface to simulate the position and shape of the lens; S403: Read the lens group data and spherical center image position data from the list, scale the data proportionally, and draw a graphic simulation of the lens position and shape on the display interface. Draw a red line to simulate the position of the upper optical path spherical center image and a green line to simulate the position of the lower optical path spherical center image. By clicking on a specific data in the "Upper Light Source Spherical Center Image Position" and "Lower Light Source Spherical Center Image Position" lists on the program interface, the graphical interface will hide the spherical center image position diagrams other than the selected data and only display the spherical center image position diagram of the selected data for positioning reference of the single curved surface spherical center image position.

6. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 4, characterized in that, The calculation of the sphere center image position data in step S302 specifically includes:

101. Read the radius of curvature, spacing, and refractive index of each lens surface and store them in digital form; 102. Using the centering lens above the lathe turntable, with the dome position of the first curved surface as the coordinate 0 point and the vertical downward direction as the positive direction, calculate the upper optical path sphere center image.

103. The position of the center of the first surface of the upper optical path is the optical center of the surface, which can be directly obtained from the radius of curvature of the first surface; 104. Calculate the position of the spherical center image of the downward-moving lens surface; 105. Calculate the spherical refractive index of the input surface and the previous surface using the single refraction calculation formula, where the single refraction calculation formula is: ; In the formula: Let be the radius of curvature of the refracting surface. The input parameter is the distance between the center of the sphere and the top of the refracting surface, with downwards as the positive direction. Let be the refractive index of the material beneath the refracting surface. Let be the refractive index of the material above the refracting surface. The distance between the position of the refracted sphere's center image and the top of the refracting surface is taken as the positive direction. 106, the result obtained by calculation in 105 steps. Add the distance from the previous surface The distance between the position of the center image of the new input surface and the dome of the refracting surface is obtained, that is... As the next calculation in step 105. refractive index and The refractive index and radius of curvature of the material above and below the new refracting surface are taken sequentially. Take the new radius of curvature of the refractive surface, and obtain the input data for the next step 105. The process of steps 105 and 106 is a loop calculation. The loop ends when the first surface is reached and the process proceeds to step 107. Steps 107 and 104 to step 107 are performed in a loop. At the end of each loop, the next surface is taken as the target surface. The loop ends when the calculation of the center image position of the bottom surface is completed. By repeating steps 105 and 106, the final center image position of the target surface after refraction through all the surfaces above is obtained. After obtaining the center image position of the target surface in step 104, the loop returns to step 104 to start the next loop. The loop ends when the calculation of the center image position of the bottom surface is completed and the process proceeds to step 108.

108. Use the centering lens under the lathe turntable to observe the spherical center image. Take the position of the spherical dome of the lowest curved surface as the coordinate 0 point and vertically downward as the positive direction to calculate the lower optical path spherical center image.

109. Starting from the first surface, calculate the position of the sphere center image of the target surface; 110. In contrast to step 105, the refracted surface is below the input surface. The single refraction calculation formula in step 105 is used to calculate the spherical refraction between the input surface and the next surface. The results obtained from steps 111 and 110 Subtract the distance from the previous surface The distance between the position of the center image of the new input surface and the dome of the refracting surface is obtained, that is... As the next calculation in step 105. refractive index and The refractive index and radius of curvature of the material above and below the new refracting surface are taken sequentially. Take the new radius of curvature of the refractive surface, and obtain the input data for the next step 110 calculation. The process of steps 110 and 111 is a loop calculation, which is recursively calculated until the bottom surface, at which point the loop ends and the process proceeds to step 112. Steps 112 to 109 are performed in a loop. At the end of each loop, the next surface is taken as the target surface. The loop ends when the calculation of the center image position of the second to last surface at the bottom is completed. By repeating steps 110 and 111, the final center image position of the target surface after refraction through all the surfaces below is obtained. This is the center image position of the target surface in step 109. At this point, the loop from step 109 to step 112 ends, and the loop returns to step 109 for the next loop. The loop ends when the calculation of the center image position of the second to last surface at the bottom is completed, and the process proceeds to step 113.

113. The position of the center of the sphere on the lowest surface of the lower optical path is the optical center of the sphere on that surface, which can be directly obtained from the radius of curvature of the lowest surface.

114. Change the reference 0 point of the sphere center image position of the lower optical path to the reference 0 point of the upper optical path. That is, add the sum of the intervals of the entire lens group to all the sphere center image position results of the lower optical path. At this time, all sphere center image positions of the upper and lower optical paths are obtained, and the reference 0 point is the sphere top of the uppermost curved surface of the lens group.

7. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 3, characterized in that, In step S103, the process of reading the text information in the file in text form specifically includes: The first line is read as the range of motion of the upper optical path, and the second line is read as the range of motion of the lower optical path. The range of motion of both the upper and lower optical paths is taken from the surface of the lathe rotary table as the distance starting point. Read the focal length information of the centering lens in the third line as the upper optical path, and read the focal length information of the centering lens in the fourth line as the lower optical path. The focal length information of the centering lens in the upper and lower optical paths are separated by a space, with downward being the positive direction. The focal length information of the centering lens in the upper and lower optical paths is bubble sorted. The sorting principle is that the smaller the absolute value of the focal length, the first one is sorted, and when the absolute values ​​are the same, the positive direction is sorted first.

8. The method for calculating the spherical center image of a lens group and selecting a centering lens according to claim 4, characterized in that, In step S303, the comparison and selection of the sphere center image position data and lens data is specifically as follows: The focal lengths of the upper optical path spherical center image and the upper optical path centering lens are compared in turn. The selection principle is that the upper optical path lens can move within its travel range to the focal position to coincide with the position of the optical path spherical center image on the target surface, and the distance between the upper optical path lens and the lens group is more than 5mm. The focal lengths of the lower optical path sphere center image and the lower optical path centering lens are compared sequentially. The selection principle is that the lower optical path can move within its travel range to the point where the focal position coincides with the lower optical path sphere center position of the target curved surface, and the distance between the lower optical path lens and the lens group is more than 5mm.

9. A computer device, characterized in that, Includes storage and processor; The storage device is used to store computer programs that can run on the processor; The processor is used to execute the computer program to implement the method for calculating the spherical center image of a lens group and selecting a centering lens as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements a method for calculating the spherical center of a lens group and selecting a centering lens as described in any one of claims 1-8.