Lens compensation method, device, and storage medium

By acquiring the wearing posture and surface height data of the lens, and using the height compensation mapping relationship to compensate the rear surface of the lens, the optical performance deviation caused by wearing the lens at an angle is solved, and the wearing comfort and adaptability are improved.

CN123047121APending Publication Date: 2026-11-06GOERTEK OPTICAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611057967.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-15
Publication Date
2026-11-06

AI Technical Summary

Technical Problem

Optical performance deviations caused by wearing lenses at an angle can lead to visual discomfort for the wearer, requiring a long adaptation period and even necessitating a re-examination.

Method used

By acquiring the target wearing posture of the lens and the surface height data of the rear surface, the surface height compensation amount is determined using a preset height compensation mapping relationship. Based on these compensation amounts, the rear surface of the lens is processed to generate compensation height data to counteract the optical deviation caused by oblique incidence of light.

Benefits of technology

It effectively reduces optical deviation caused by changes in the frame, shortens the adaptation period, and ensures that the lens provides stable optical performance under the target wearing posture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123047121A_ABST
    Figure CN123047121A_ABST
Patent Text Reader

Abstract

The application discloses a lens compensation method, device and storage medium, relates to the technical field of lens processing, and comprises the following steps: acquiring a target wearing posture of a lens to be compensated and acquiring surface sag data of the back surface of the lens to be compensated; determining surface sag compensation of the surface sag data based on the target wearing posture and a preset sag compensation mapping relationship, wherein the surface sag compensation comprises a sag compensation amount of each sampling point in the surface sag data, and the preset sag compensation mapping relationship is used for representing a mapping relationship between the sampling points and a preset compensation amount under a preset wearing posture; compensating the surface sag data according to the surface sag compensation to obtain compensated sag data, and processing the back surface of the lens to be compensated based on the compensated sag data to obtain a target lens. The application solves the technical problem that optical deviation is relatively large due to changes in the wearing posture of the lens.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lens processing technology, and in particular to lens compensation methods, equipment, and storage media. Background Technology

[0002] In the manufacturing process of custom lenses for car optics, the optical design of the lenses is usually based on the ideal posture of perpendicular light incidence and the lens facing the wearer. However, in actual wear, the lens will tilt relative to the eyes due to the design of the frame, resulting in a specific tilted wearing posture.

[0003] When lenses are worn at this tilted position, the light path through the lens changes, meaning the light passes through the lens at an angle. This causes the lens's optical performance (effective power and / or astigmatism distribution, etc.) to deviate from the desired target performance. This means that when the wearer changes to different frames, the actual optical performance deviates from the original lens design's intended optical performance due to the change in wearing posture. This can easily lead to visual discomfort, often requiring a long adaptation period, and may even necessitate a re-examination. Therefore, there is currently a technical problem of significant optical deviations caused by changes in lens wearing posture.

[0004] The above content is only used to help understand the technical solutions of the embodiments of this application, and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this application is to provide a lens compensation method, device, and storage medium, which aims to solve the technical problem of large optical deviations caused by changes in the wearing posture of the lens.

[0006] To achieve the above objectives, embodiments of this application provide a lens compensation method, the method comprising: Obtain the target wearing posture of the lens to be compensated, and obtain the surface sagitta data of the rear surface of the lens to be compensated; Based on the target wearing posture and the preset height compensation mapping relationship, the surface height compensation of the surface height data is determined. The surface height compensation includes the height compensation amount of each sampling point in the multiple sampling points of the surface height data. The preset height compensation mapping relationship is used to characterize the mapping relationship between the sampling points and the preset compensation amount under the preset wearing posture. The surface height data is compensated according to the surface height compensation to obtain compensated height data, and the back surface of the lens to be compensated is processed based on the compensated height data to obtain the target lens.

[0007] In one embodiment, the step of determining the surface elevation compensation of the surface elevation data based on the target wearing posture and a preset elevation compensation mapping relationship includes: The attitude angle of the lens to be compensated is determined from the target wearing posture; Obtain the attitude compensation coefficient of the attitude angle; Based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship, the surface height compensation of the surface height data is determined.

[0008] In one embodiment, the posture angle of the target wearing posture includes at least a forward tilt angle and / or a mirror angle.

[0009] In one embodiment, the step of obtaining the attitude compensation coefficient of the attitude angle includes: The ratio of the trigonometric function value of the attitude angle to the preset reference value is used as the attitude compensation coefficient of the attitude angle.

[0010] In one embodiment, the step of determining the surface elevation compensation of the surface elevation data based on the attitude compensation coefficient of the attitude angle and the preset elevation compensation mapping relationship includes: Based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship, the target height compensation mapping relationship under the target wearing posture is generated; For each sampling point in the surface elevation data, the elevation compensation amount of the sampling point is obtained in the target elevation compensation mapping relationship based on the three-dimensional coordinates of the sampling point.

[0011] In one embodiment, the step of generating the target height compensation mapping relationship under the target wearing posture based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship includes: At least one compensation component is determined from the preset height compensation mapping relationship, and the component compensation coefficient of each compensation component is determined based on the attitude compensation coefficient of the attitude angle. Based on at least one of the compensation components and the component compensation coefficients of the compensation components, a target height compensation mapping relationship under the target wearing posture is constructed.

[0012] In one embodiment, the step of determining at least one compensation component from the preset elevation compensation mapping relationship, and determining the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle, includes: At least one compensation component belonging to the horizontal type is determined from the preset sag compensation mapping relationship; wherein, the horizontal type is the type of compensation component that is related to the horizontal direction of the lens coordinate system where the lens to be compensated is located and is independent of the vertical direction of the lens coordinate system; The horizontal compensation coefficient is determined from the attitude compensation coefficient, and the horizontal compensation coefficient is configured as a component compensation coefficient belonging to at least one compensation component of the horizontal type; Among them, the compensation component belonging to the horizontal type is a horizontal compensation term or a horizontal sag coupling term.

[0013] In one embodiment, the step of determining at least one compensation component from the preset elevation compensation mapping relationship, and determining the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle, further includes: At least one compensation component belonging to the vertical type is determined from the preset sag compensation mapping relationship; wherein, the vertical type is the type of compensation component that is related to the vertical direction of the lens coordinate system where the lens to be compensated is located and is independent of the horizontal direction of the lens coordinate system; The vertical compensation coefficient is determined from the attitude compensation coefficient, and the vertical compensation coefficient is configured as a component compensation coefficient belonging to at least one compensation component of the vertical type; Among them, the compensation component belonging to the vertical type is either a vertical compensation term or a vertical sag coupling term.

[0014] In one embodiment, the step of determining at least one compensation component from the preset elevation compensation mapping relationship, and determining the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle, further includes: The compensation components belonging to the cross type are determined from the preset sag compensation mapping relationship; wherein, the cross type is the type of compensation component that is related to both the vertical direction and the horizontal direction of the lens coordinate system where the lens to be compensated is located; Configure the attitude compensation coefficient as the component compensation coefficient belonging to the compensation component of the cross type; Among them, the compensation components belonging to the intersection type are horizontal and vertical intersection terms.

[0015] In one embodiment, the compensation elevation data includes the target elevation of at least one sampling point; The step of compensating the surface elevation data based on the surface elevation compensation to obtain compensated elevation data includes: For each sampling point in the surface elevation data, the current elevation of the sampling point is obtained, and the elevation compensation amount of the sampling point is obtained in the surface elevation compensation. The sum of the current elevation and the elevation compensation amount is taken as the target elevation of the sampling point.

[0016] In one embodiment, the lens compensation method further includes: Obtain the original design sagittal data of the rear surface of the test lens, and the target sagittal data of the test lens when it achieves comfortable wearing in at least one preset wearing posture; Based on the original design elevation data and at least one target elevation data, the elevation deviation between the original design elevation data and the target elevation data is fitted to obtain the preset elevation compensation mapping relationship.

[0017] In addition, to achieve the above objectives, this application embodiment also provides a lens compensation device, which includes: a memory, a processor, and a program of the lens compensation method stored in the memory and executable on the processor. When the program of the lens compensation method is executed by the processor, it can implement the steps of the lens compensation method as described above.

[0018] In addition, to achieve the above objectives, embodiments of this application also provide a computer-readable storage medium storing a program for implementing a lens compensation method, wherein when the program for the lens compensation method is executed by a processor, it implements the steps of the lens compensation method as described above.

[0019] In addition, to achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the lens compensation method described above.

[0020] One or more technical solutions proposed in the embodiments of this application have at least the following technical effects: This application can obtain the target wearing posture of the lens to be compensated and the surface height data of the rear surface of the lens to be compensated, and then, based on the target wearing posture and a predetermined preset height compensation mapping relationship that reflects the correspondence between sampling points and preset compensation amounts under the preset wearing posture, it can determine the required height compensation amount for each of the multiple sampling points in the surface height data, and then compensate the surface height data according to each height compensation amount to obtain compensated height data; Since this application can compensate the surface elevation data using various elevation compensation amounts, it is equivalent to compensating the curvature on the back surface of the lens to be compensated. The curvature of the lens determines the degree of refraction of light when it passes through the lens. Therefore, the target lens processed based on the compensated elevation data can completely or at least partially offset the optical deviation introduced by the oblique incidence of light under the target wearing posture. This effectively reduces the optical deviation caused by changes in wearing posture due to changing different frames and shortens the wearing adaptation period. Attached Figure Description

[0021] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of the embodiments of this application.

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0023] Figure 1 This is a schematic flowchart of one embodiment of the lens compensation method of this application; Figure 2 This is a schematic flowchart of another embodiment of the lens compensation method of this application; Figure 3 This is a schematic flowchart illustrating an example of a lens compensation method according to an embodiment of this application; Figure 4 This is a schematic diagram showing the deviation distribution between the actual sagitta of each point on the rear surface of the target lens and the ideal sagitta of that point in the lens compensation method of this application embodiment; Figure 5 This is a schematic diagram of the device structure of the hardware operating environment involved in the lens compensation method in the embodiments of this application.

[0024] The objectives, features, and advantages of the embodiments described in this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0025] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of the embodiments of this application and are not intended to limit the embodiments of this application.

[0026] To better understand the technical solutions of the embodiments of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0027] In the manufacturing process of custom lenses for car optics, the optical design of the lenses is usually based on the ideal posture of perpendicular light incidence and the lens facing the wearer. However, in actual wear, the lens will tilt relative to the eyes due to the design of the frame, resulting in a specific tilted wearing posture.

[0028] When lenses are worn at this tilted position, the light path through the lens changes, meaning the light passes through the lens at an angle. This causes the lens's optical performance (effective power and / or astigmatism distribution, etc.) to deviate from the desired target performance. This means that when the wearer changes to different frames, the actual optical performance deviates from the original lens design's intended optical performance due to the change in wearing posture. This can easily lead to visual discomfort, often requiring a long adaptation period, and may even necessitate a re-examination. Therefore, there is currently a technical problem of significant optical deviations caused by changes in lens wearing posture.

[0029] This embodiment can acquire the target wearing posture of the lens to be compensated and the surface height data of the rear surface of the lens to be compensated. Then, based on the target wearing posture and the predetermined preset height compensation mapping relationship that reflects the correspondence between the sampling points and the preset compensation amount under the preset wearing posture, the required height compensation amount for each of the multiple sampling points in the surface height data can be determined. Then, the surface height data can be compensated according to each height compensation amount to obtain the compensated height data. Since this embodiment can use various height compensation amounts to compensate for the surface height data, it is equivalent to compensating for the curvature on the back surface of the lens to be compensated. For example, it can compensate for the local curvature corresponding to multiple sampling points on the back surface. The local curvature determines the degree of deflection when light passes through the lens. Therefore, the target lens processed based on the compensated height data can completely or at least partially offset the optical deviation introduced by the oblique incidence of light under the target wearing posture. This effectively reduces the optical deviation caused by changes in wearing posture due to changing different frames and shortens the wearing adaptation period.

[0030] Based on this, the embodiments of this application provide a lens compensation method, referring to... Figure 1 , Figure 1 This is a schematic flowchart of one embodiment of the lens compensation method according to this application. The lens compensation method includes steps S10 to S30: Step S10: Obtain the target wearing posture of the lens to be compensated and obtain the surface sagitta data of the rear surface of the lens to be compensated. It should be noted that the lens to be compensated can be a lens blank or semi-finished product that has not yet undergone compensation processing. In other embodiments, the lens to be compensated can also be a lens that has undergone a pre-processing of replicating the surface shape of an old lens, that is, the back surface of the lens to be compensated has been replicated with the back surface shape of the user's original old lens.

[0031] The target wearing posture is the tilt state of the lens to be compensated when it is finally worn by the user. The target wearing posture includes the posture angle of the lens to be compensated, which includes at least the tilt angle and / or the mirror angle. The rear surface of the lens to be compensated is the side of the lens facing the user's eyes. The surface elevation data is the point cloud data of the rear surface, which includes the three-dimensional coordinates of each sampling point on the rear surface in the lens coordinate system. The lens coordinate system is the coordinate system in which the lens to be compensated resides. The lens coordinate system can be a coordinate system established with the geometric center of the lens to be compensated as the origin. The lens coordinate system can be a Cartesian coordinate system; in other embodiments, it can also be a polar coordinate system, etc. In yet another embodiment, the lens coordinate system can also be a normalized coordinate system, which facilitates application to lenses of different diameters. This embodiment does not specifically limit this; the specific method can be determined based on actual conditions. In this embodiment, the lens coordinate system is described as a Cartesian coordinate system or a normalized coordinate system. When the lens coordinate system is a Cartesian coordinate system or a normalized coordinate system, the lens coordinate system includes an x-axis, a y-axis and a z-axis. The z-axis points towards the wearer along the optical axis, the x-axis is horizontal to the right, and the y-axis is vertically upward.

[0032] For example, by obtaining the 3D model data or frame design parameters corresponding to the eyeglass frame to be worn by the wearer, the tilt angle and lens angle of the frame when fitted with lenses can be obtained from the 3D model data or frame design parameters. In other embodiments, this can also be determined by 3D facial scanning. It should be noted that the 3D facial scanning here is a scan of the head area of ​​the wearer when wearing the eyeglass frame, the purpose of which is to measure the tilt angle and lens angle of the lenses. In other embodiments, the wearer's wearing image can also be identified and estimated to obtain the target wearing posture; or the tilt angle and / or lens angle can be obtained by querying a preset parameter database based on the frame model. The parameter database includes the mapping relationship between the frame model and the wearing posture.

[0033] The rear surface of the lens to be compensated can be scanned using a scanning device to obtain surface sagittal data. The scanning device can be, for example, a structured light scanner, a confocal microscope, or a surface profile measurement device based on the fringe deflection method; this embodiment does not specifically limit the method. In other embodiments, a surface profile file of the lens to be compensated, designed based on the wearer's optometry prescription, can be directly obtained and used as the surface sagittal data. This surface profile file may include point cloud data of the rear surface of the lens to be compensated.

[0034] Step S20: Based on the target wearing posture and the preset height compensation mapping relationship, determine the surface height compensation of the surface height data. The surface height compensation includes the height compensation amount of each sampling point in multiple sampling points in the surface height data. The preset height compensation mapping relationship is used to characterize the mapping relationship between the sampling points and the preset compensation amount under the preset wearing posture. It should be noted that the preset height compensation mapping relationship can characterize the mapping relationship between any sampling point on the rear surface of the lens and the preset compensation amount corresponding to that sampling point under at least one preset wearing posture. The preset height compensation mapping relationship can be determined based on experiments, and this embodiment does not impose specific limitations on it. The preset height compensation mapping relationship can be expressed in the form of a mathematical model. In other embodiments, the preset height compensation mapping relationship can also be a mapping table, and this embodiment does not impose specific limitations on it.

[0035] Surface sag compensation includes the sag compensation amount corresponding to each sampling point to be compensated in the surface sag data. A sampling point is a point on the rear surface of the lens to be compensated. Each sampling point can obtain its corresponding sag compensation amount in the preset sag compensation mapping relationship. The sag compensation amount of a sampling point refers to the sag value that needs to be compensated for at that sampling point.

[0036] For example, for each sampling point in the surface height data, the height compensation amount for that sampling point is determined based on the target wearing posture and the three-dimensional coordinates of the sampling point, according to a preset height compensation mapping relationship. In other embodiments, the rear surface of the lens to be compensated can also be divided into several regions. The same height compensation amount is used for all sampling points within the same region. For example, a height compensation amount representing that region is calculated based on the coordinates of the center point of that region and the target wearing posture, and applied to all sampling points within that region. The preset height compensation mapping relationship can be determined by pre-testing the test lens and fitting the corresponding test data. In other embodiments, the preset height compensation mapping relationship can be obtained through simulation testing of the lens to be compensated under the target wearing posture. For example, during the simulation test, multiple iterative calculations from compensation to verification can be performed to obtain the target optimal compensation amount for each sampling point on the rear surface of the lens to be compensated. In another embodiment, the preset sag compensation mapping relationship can also be represented as a trained neural network model. For example, training data can be acquired in advance, and the neural network to be trained can be trained based on the training data to obtain a trained model. This trained model can be used as the preset compensation mapping relationship. The input samples in the training data are the forward tilt angle, mirror angle and three-dimensional coordinates of the sampling point used for training, and the sample label is the target sag compensation amount under the input sample.

[0037] Step S30: The surface height data is compensated according to the surface height compensation to obtain the compensated height data, and the back surface of the lens to be compensated is processed based on the compensated height data to obtain the target lens.

[0038] It should be noted that the compensation height data refers to the data obtained after compensation. The compensation height data reflects the final desired geometric curvature of the rear surface of the target lens. The compensation height data can serve as the basis for processing the rear surface of the lens to be compensated. The target lens refers to the lens after the rear surface of the lens to be compensated has been processed according to the compensation height data. The optical performance provided by the target lens in the target wearing posture tends to be consistent with the preset optical performance; the preset optical performance can be the optical performance provided by the old lens in the old frame. In some embodiments, the preset optical performance can be the visual experience provided by the wearer's original old lens in its old frame, such as the same level of clarity and comfort. After the rear surface of the target lens is processed with compensation height data, the local curvature on its rear surface has been compensated. When the target lens is in the target wearing posture, the rear surface of the target lens can counteract the additional refraction introduced by the oblique incidence of light.

[0039] For example, for each sampling point in the surface elevation data, the elevation of the sampling point is compensated according to the elevation compensation amount of each sampling point to obtain the target elevation of the sampling point, so that the compensated elevation data can include the target elevation of each sampling point to be compensated. In this embodiment, the compensated elevation data can be automatically converted into a CNC machining program containing tool paths. The CNC machining program is loaded onto the machine tool, and then the rear surface of the lens to be compensated can be machined by the tool on the machine tool to obtain the target lens. In the surface elevation data, the sampling point can be any point on the rear surface of the lens to be compensated. In other embodiments, multiple sampling points in the surface elevation data can be predetermined. For example, a surface point cloud mesh can be pre-constructed on the rear surface of the lens to be compensated. The surface point cloud mesh includes multiple mesh nodes, each of which serves as a sampling point. The spacing between each adjacent mesh node in the surface point cloud mesh is the same. In other embodiments, the spacing between adjacent mesh nodes in the surface point cloud mesh can also be different. For example, a denser mesh spacing can be used in the central region of the lens, and a sparser mesh spacing can be used in the edge region of the lens, so as to reduce the overall data volume while ensuring compensation accuracy. The above is only one example and does not limit the mesh spacing in the surface point cloud mesh.

[0040] This embodiment can acquire the target wearing posture of the lens to be compensated and the surface height data of the rear surface of the lens to be compensated. Then, based on the target wearing posture and the predetermined preset height compensation mapping relationship that reflects the correspondence between the sampling points and the preset compensation amount under the preset wearing posture, the required height compensation amount for each of the multiple sampling points in the surface height data can be determined. Then, the surface height data can be compensated according to each height compensation amount to obtain the compensated height data. Since this embodiment can use various height compensation amounts to compensate for the surface height data, it is equivalent to compensating for the curvature on the back surface of the lens to be compensated. For example, it can compensate for the local curvature corresponding to multiple sampling points on the back surface. The local curvature determines the degree of deflection when light passes through the lens. Therefore, the target lens processed based on the compensated height data can completely or at least partially offset the optical deviation introduced by the oblique incidence of light under the target wearing posture. This effectively reduces the optical deviation caused by changes in wearing posture due to changing different frames and shortens the wearing adaptation period.

[0041] In addition, since the lens to be compensated in this embodiment can be a lens that has been pre-processed by replicating the surface shape of the old lens, this embodiment can offset the optical deviation caused by the wearing posture while ensuring that the back surface of the target lens continues the surface shape of the old lens. This can shorten the wearer's adaptation period and achieve a comfortable wearing effect even after the wearer changes the frame.

[0042] In one embodiment, please refer to Figure 2 Step S20 includes steps S21 to S23: Step S21: Determine the attitude angle of the lens to be compensated from the target wearing posture; In one feasible embodiment, the attitude angles of the target wearing posture include at least a tilt angle and / or a mirror angle. In other embodiments, the attitude angles may also include a rotation angle, which may be the rotation angle of the lens about its optical axis (Z-axis). The mirror angle is the angle between the lens plane of the lens to be compensated and the wearer's forehead plane when the lens to be compensated is fitted into the wearer's desired frame. The tilt angle is the angle at which the top of the lens to be compensated is tilted backward when the lens to be compensated is fitted into the wearer's desired frame.

[0043] Step S22: Obtain the attitude compensation coefficient of the attitude angle; It should be noted that the attitude compensation coefficient may include a forward tilt compensation coefficient and a mirror compensation coefficient. In other embodiments, the attitude compensation coefficient may be either a forward tilt compensation coefficient or a mirror compensation coefficient. For example, when the attitude angle includes a forward tilt angle, the attitude compensation coefficient includes a forward tilt compensation coefficient; when the attitude angle includes a mirror angle, the attitude compensation coefficient includes a mirror compensation coefficient. The forward tilt compensation coefficient is essentially a normalized coefficient for the forward tilt angle, and the mirror compensation coefficient is essentially a normalized coefficient for the mirror angle. This embodiment, by determining the forward tilt angle and the forward tilt compensation coefficient, facilitates application to different sizes of forward tilt angles. Determining the mirror compensation coefficient for the mirror angle also facilitates application to different sizes of mirror angles, so that the sag compensation amount of the sampling point can be accurately determined under different sizes of forward tilt angles and / or mirror angles, thereby improving the accuracy of compensation.

[0044] In a feasible embodiment, step S22 further includes step S221: using the ratio of the trigonometric function value of the attitude angle to a preset reference value as the attitude compensation coefficient of the attitude angle.

[0045] It should be noted that the trigonometric function value can be a tangent, sine, or cosine value, etc., and this embodiment does not specifically limit it. The preset reference value is a preset trigonometric function value, and the function type of the preset reference value is the same as the trigonometric function value type used for the attitude angle. For example, when the attitude angle uses a tangent value, the preset reference value is the tangent value of a preset angle (such as the standard wearing tilt angle or mirror angle); when a sine value is used, the preset reference value is the sine value of the corresponding angle.

[0046] Specifically, when the attitude angle includes only the pitch angle, the attitude compensation coefficient is the pitch compensation coefficient, which is obtained by the ratio of the trigonometric function value of the pitch angle to the trigonometric function value of a preset pitch reference angle of the same type. When the attitude angle includes only the mirror angle, the attitude compensation coefficient is the mirror compensation coefficient, which is obtained by the ratio of the trigonometric function value of the mirror angle to the trigonometric function value of a preset mirror reference angle of the same type. When the attitude angle includes both the pitch angle and the mirror angle, the attitude compensation coefficient includes both the pitch compensation coefficient and the mirror compensation coefficient, and is calculated separately as described above.

[0047] By comparing trigonometric functions of the same type, attitude angles of different sizes can be normalized, making it easier to reliably determine the sag compensation amount under different tilt angles and / or mirror angles.

[0048] Preferably, when the attitude angle includes a forward tilt angle, the ratio of the tangent of the forward tilt angle to a preset forward tilt reference tangent can be used as the forward tilt compensation coefficient; the ratio of the tangent of the mirror angle to a preset mirror reference tangent can be used as the mirror compensation coefficient. In this preferred embodiment, when the attitude angle only includes a forward tilt angle, the preset reference value is the preset forward tilt reference tangent; when the attitude angle only includes a mirror angle, the preset reference value is the preset mirror reference tangent; when the attitude angle includes both a forward tilt angle and a mirror angle, the preset reference value includes both the preset forward tilt reference tangent and the preset mirror reference tangent.

[0049] The preset forward tilt reference tangent is the tangent of the preset forward tilt reference angle. The preset forward tilt reference angle is a pre-set reference forward tilt angle. The preset forward tilt reference tangent is used as the denominator when calculating the forward tilt compensation coefficient, and is used to scale the tangent of the forward tilt angle of the lens to be compensated.

[0050] The preset mirror reference tangent is the tangent of the preset mirror reference angle. The preset mirror reference angle is a pre-set reference mirror angle. The preset mirror reference tangent is used as the denominator when calculating the mirror compensation coefficient, and is used to scale the tangent of the mirror angle of the lens to be compensated.

[0051] For example, the preset forward tilt reference tangent value can be tan(3°), the preset mirror reference tangent value can be tan(4°), etc. This embodiment does not make specific limitations on this, and the specific value can be set according to the actual situation.

[0052] For example, you can refer to Formula 1, which shows how to calculate the forward tilt compensation coefficient and the mirror compensation coefficient: kx = tanβ / tanC1; ky = tanα / tanC2 (Formula 1); Where kx is the lens compensation coefficient and ky is the tilt compensation coefficient. The lens compensation coefficient can be used to compensate for optical deviations in the horizontal direction caused by changes in wearing posture, and the tilt compensation coefficient can be used to compensate for optical deviations in the vertical direction caused by changes in wearing posture. Optical deviations in the horizontal direction include, for example, optical power deviations and / or astigmatism shifts in the horizontal direction, and optical deviations in the vertical direction include, for example, optical power deviations and / or astigmatism shifts in the vertical direction. The horizontal direction refers to the x-axis direction in the lens coordinate system, and the vertical direction refers to the y-axis direction in the lens coordinate system.

[0053] Since changes in the mirror angle alter the horizontal incident angle of light, resulting in horizontal optical power and astigmatism shifts, corresponding to optical deviations in the horizontal direction, and changes in the forward tilt angle alter the vertical incident angle of light, resulting in vertical optical power and astigmatism shifts, corresponding to optical deviations in the vertical direction, this embodiment determines the mirror compensation coefficient and the forward tilt compensation coefficient so that subsequent compensation can completely or at least partially offset the optical deviations in the horizontal and vertical directions.

[0054] Step S23: Determine the surface elevation compensation of the surface elevation data based on the attitude compensation coefficient of the attitude angle and the preset elevation compensation mapping relationship.

[0055] In this embodiment, attitude compensation coefficients can be input into a preset height compensation mapping relationship to obtain a target height compensation mapping relationship. Surface height compensation for surface height data is then determined within this target height compensation mapping relationship. For example, tilt compensation coefficients and mirror compensation coefficients can be input into the preset height compensation mapping relationship. In other embodiments, tilt compensation coefficients or mirror compensation coefficients can also be input into the preset height compensation mapping relationship; this embodiment does not specifically limit this. If tilt compensation coefficients and mirror compensation coefficients are input into the preset height compensation mapping relationship, compensation for both tilt angle and mirror angle can be achieved simultaneously, thereby improving the reliability and accuracy of the target height compensation mapping relationship.

[0056] This embodiment determines the attitude compensation coefficient, thereby enabling the preset height compensation mapping relationship to dynamically adapt to any target wearing posture. It generates a height compensation amount that precisely matches the attitude angle of the lens to be compensated, thus achieving height compensation for the lens under any wearing posture and improving the accuracy of compensation.

[0057] When the attitude angle includes only the tilt angle, the attitude compensation coefficient is the same as the tilt compensation coefficient. Inputting the tilt compensation coefficient into the preset sag compensation mapping relationship can compensate for the vertical optical deviation introduced by the tilt angle. Specifically, the tilt angle mainly causes a shift in the effective optical power of the lens in the vertical direction and tilt astigmatism, affecting the wearer's visual clarity when switching between near and far vision. Compensating for the optical deviation introduced by the tilt angle makes the target lens's visual performance in the vertical direction more consistent with the preset optical performance.

[0058] When the attitude angle includes only the mirror angle, the attitude compensation coefficient is the same as the mirror compensation coefficient. Inputting the mirror compensation coefficient into a preset sag compensation mapping relationship can compensate for horizontal optical deviations introduced by the mirror angle. The mirror angle primarily affects visual comfort in wide-field-of-view scenarios, leading to peripheral astigmatism and binocular fusion differences in the horizontal direction. Compensating solely with the mirror compensation coefficient can effectively reduce visual fatigue in the left and right eyes caused by differences in lens tilt, ensuring that the target lens's horizontal visual performance aligns with the preset optical performance.

[0059] When the attitude angle includes both tilt angle and mirror angle, the attitude compensation coefficient includes both tilt compensation coefficient and mirror compensation coefficient. By inputting both the tilt compensation coefficient and mirror compensation coefficient into a preset sag compensation mapping relationship, comprehensive compensation for both tilt angle and mirror angle can be achieved. Specifically, the tilt compensation coefficient primarily corrects optical deviations in the vertical direction, while the mirror compensation coefficient primarily corrects optical deviations in the horizontal direction. These two coefficients can compensate for the cross-coupling deviation caused by the combined effect of tilt angle and mirror angle, a deviation that cannot be eliminated independently by compensation in a single direction. Therefore, by compensating for both tilt angle and mirror angle, the accuracy and reliability of optical deviation compensation can be improved, thereby enhancing the comfort of wearing the lenses.

[0060] In a feasible embodiment, step S23 further includes steps S231 to S232: Step S231: Based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship, generate the target height compensation mapping relationship under the target wearing attitude. It should be noted that the target height compensation mapping relationship is obtained by inputting the attitude compensation coefficient into the preset height compensation mapping relationship. The target height compensation mapping relationship is used to determine the corresponding height compensation amount of each sampling point on the rear surface of the lens to be compensated under the target wearing posture.

[0061] In a feasible embodiment, the preset elevation compensation mapping relationship includes at least one compensation component. For example, the preset elevation compensation mapping relationship includes at least one of the following compensation components: a horizontal compensation term, a vertical compensation term, a horizontal elevation coupling term, a vertical elevation coupling term, and a horizontal-vertical intersection term. The target elevation compensation mapping relationship includes at least one compensation component and an attitude compensation coefficient for each compensation component.

[0062] In a feasible embodiment, step S231 further includes steps A10 to A20: Step A10: Determine at least one compensation component from the preset height compensation mapping relationship, and determine the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle. It should be noted that the preset height compensation mapping relationship is a mapping model that is pre-established or fitted under a preset wearing posture, used to characterize the mathematical relationship between the coordinates of the sampling points on the back surface of the lens and the height compensation amount. The compensation component is an independent compensation term that constitutes the preset height compensation mapping relationship.

[0063] The component compensation coefficient is a coefficient assigned to the compensation component based on the attitude compensation coefficient. The component compensation coefficient is determined by the attitude compensation coefficient and is used to adjust the contribution weight of the compensation component under the target's wearing attitude.

[0064] This embodiment decomposes the influence of the target wearing posture and assigns it to each compensation component. By determining the corresponding component compensation coefficient for each compensation component, the subsequently constructed target height compensation mapping relationship can accurately reflect the different degrees of influence of the current target wearing posture on various types of height deviations, thus realizing personalized compensation for posture adaptation.

[0065] In a feasible embodiment, step A10 further includes steps A11 to A12: Step A11: Determine at least one compensation component belonging to the horizontal type from the preset sag compensation mapping relationship; wherein, the horizontal type is the type of compensation component that is related to the horizontal direction of the lens coordinate system where the lens to be compensated is located, and is independent of the vertical direction of the lens coordinate system. Step A12: Determine the horizontal compensation coefficient from the attitude compensation coefficients, and configure the horizontal compensation coefficient as the component compensation coefficient of at least one compensation component belonging to the horizontal type. Among them, the compensation components belonging to the horizontal type are horizontal compensation terms or horizontal sag coupling terms.

[0066] It should be noted that the horizontal compensation term is the compensation component related to the X-axis of the lens coordinate system in the preset height compensation mapping relationship, that is, the compensation component related to the horizontal direction. The horizontal compensation term can compensate for optical deviations related to the horizontal direction. For example, the horizontal compensation term is either a horizontal compensation term or a horizontal height coupling term. When the attitude compensation coefficient includes the mirror compensation coefficient, the horizontal compensation coefficient is the same as the mirror compensation coefficient; when the attitude compensation coefficient does not include the mirror compensation coefficient, the horizontal compensation coefficient is 1.

[0067] The horizontal compensation term can include multiple horizontal sub-compensation terms, which can have different orders. For example, the multiple horizontal sub-compensation terms can be first-order horizontal compensation terms, second-order horizontal compensation terms, and so on up to N-order horizontal compensation terms, where N is a positive integer. The first-order horizontal compensation term represents a linear relationship with the X-axis coordinate of the lens coordinate system, the second-order horizontal compensation term represents a quadratic relationship with the X-axis coordinate, and so on for higher orders. The specific value of N can be determined comprehensively based on factors such as the optical design requirements of the lens to be compensated and the compensation accuracy; this embodiment does not impose specific limitations on this. Each horizontal sub-compensation term includes an X variable in the horizontal direction and a corresponding horizontal fitting coefficient.

[0068] The horizontal elevation coupling term is a compensation component in the preset elevation compensation mapping relationship that is related to both the horizontal and vertical directions in the lens coordinate system. The numerical variation of the horizontal elevation coupling term is affected by the coordinates in both the horizontal and vertical directions. The horizontal elevation coupling term is used to compensate for optical deviations related to both the horizontal and vertical directions. Component compensation coefficients can be used to adjust the horizontal component.

[0069] The horizontal sag coupling term can be first-order. In other embodiments, it can also be second-order, in which case it includes a horizontal sag fitting coefficient, an X variable in the horizontal direction, and a Z variable in the vertical direction. In yet another embodiment, the horizontal sag coupling term can also include multiple horizontal sag sub-coupling terms, which can be first-order horizontal sag terms (e.g., both X and Z variables are first-order), second-order horizontal sag terms (e.g., X variable is quadratic, Z variable is first-order), and second-order horizontal sag terms (e.g., X variable is quadratic, Z variable is quadratic), etc. This embodiment does not specifically limit this. Each horizontal sag sub-coupling term also includes a horizontal sag fitting coefficient, an X variable in the horizontal direction, and a Z variable in the vertical direction. The value of the Z variable represents the position of the sampling point in the vertical direction relative to the origin of the coordinate system; therefore, the Z variable is the sag value in the vertical direction.

[0070] For example, for ease of description, compensation components belonging to the horizontal type can be described as horizontal components. Each horizontal component is a compensation component that is related to the horizontal direction but not to the vertical direction. For each horizontal component, the mirror compensation coefficient can be configured as the component compensation coefficient of the horizontal component, for example, by multiplying the mirror compensation coefficient by the horizontal component.

[0071] In this embodiment, the compensation components are divided into horizontal types according to the direction type, and the mirror compensation coefficient in the attitude compensation coefficient is used as the horizontal compensation coefficient and assigned to the horizontal compensation term and / or the horizontal sag coupling term, so that the preset sag compensation mapping relationship can dynamically adapt to the horizontal optical deviation under different mirror angles; at the same time, multi-order horizontal sub-compensation terms and horizontal sag sub-coupling terms are introduced, so that accurate sag compensation can be obtained under different wearing postures, thereby improving visual quality.

[0072] In a feasible embodiment, step A20 further includes steps A13 to A14: Step A13: Determine at least one compensation component belonging to the vertical type from the preset sag compensation mapping relationship; wherein, the vertical type is the type of compensation component that is related to the vertical direction of the lens coordinate system where the lens to be compensated is located and is independent of the horizontal direction of the lens coordinate system. Step A14: Determine the vertical compensation coefficient from the attitude compensation coefficients, and configure the vertical compensation coefficient as the component compensation coefficient of at least one compensation component belonging to the vertical type. Among them, the compensation components belonging to the vertical type are vertical compensation terms or vertical sag coupling terms.

[0073] It should be noted that when the attitude compensation coefficient includes the forward tilt compensation coefficient, the vertical compensation coefficient is the mirror compensation coefficient; when the attitude compensation coefficient does not include the forward tilt compensation coefficient, the vertical compensation coefficient is 1.

[0074] The vertical compensation term can also be subdivided into multiple vertical sub-compensation terms of different orders in the same way. Each vertical sub-compensation term includes a Y variable in the vertical direction and a vertical fitting coefficient corresponding to the vertical sub-compensation term. The value of the X variable represents the position of the sampling point in the horizontal direction relative to the origin of the coordinate system. Therefore, the X variable is the horizontal coordinate. When the horizontal coordinate of the sampling point is different, the X variable will also be different. The value of the Y variable represents the position of the sampling point in the vertical direction relative to the origin of the coordinate system. Therefore, the Y variable is the vertical coordinate.

[0075] The vertical compensation term is a compensation component related to the vertical direction in the lens coordinate system within the preset sag compensation mapping relationship. The numerical change of the vertical compensation term is only affected by the position in the vertical direction, and it can be used to compensate for optical deviations in the vertical direction caused by changes in the tilt angle.

[0076] The vertical sag coupling term is a compensation component in the preset sag compensation mapping relationship that is related to both the vertical and perpendicular directions in the lens coordinate system. The numerical variation of the vertical sag coupling term is affected by its position in the vertical and perpendicular directions, and it is used to compensate for optical deviations in both directions.

[0077] The vertical sag coupling term can be first-order. In other embodiments, it can also be second-order, in which case it includes a vertical sag fitting coefficient, a Y variable in the vertical direction, and a Z variable in the vertical direction. In yet another embodiment, the vertical sag coupling term can also include multiple vertical sag sub-coupling terms, which can be first-order vertical sag terms (e.g., both Y and Z variables are first-order), second-order vertical sag terms (e.g., Y variable is quadratic, Z variable is first-order), and second-order vertical sag terms (e.g., Y variable is first-order, Z variable is quadratic), etc. This embodiment does not specifically limit this. Each vertical sag sub-coupling term also includes a vertical sag fitting coefficient, a Y variable in the vertical direction, and a Z variable in the vertical direction.

[0078] For example, each vertical component is a compensation component that is related to the vertical direction but not to the horizontal direction. For each vertical component, the forward tilt compensation coefficient can be configured as the component compensation coefficient of the vertical component. For example, the forward tilt compensation coefficient can be multiplied by the vertical component to configure the forward tilt compensation coefficient as the component compensation coefficient of the vertical component.

[0079] By classifying the compensation components into vertical types according to their direction, and assigning the forward tilt compensation coefficient in the attitude compensation coefficient as the vertical compensation coefficient to the vertical compensation term and / or the vertical sag coupling term, the preset sag compensation mapping relationship can dynamically adapt to the vertical optical deviation under different forward tilt angles. At the same time, multi-order vertical sub-compensation terms and vertical sag sub-coupling terms are introduced, so that accurate sag compensation can be obtained under different forward tilt angles, improving the visual clarity and comfort of the lens when switching between near and far vision.

[0080] In a feasible embodiment, step A20 further includes steps A15 to A16: Step A15: Determine the compensation components belonging to the cross type from the preset sag compensation mapping relationship; wherein, the cross type is the type of compensation component that is related to both the vertical direction and the horizontal direction of the lens coordinate system where the lens to be compensated is located. Step A16: Configure the attitude compensation coefficients to be the component compensation coefficients of the compensation components belonging to the cross type; Among them, the compensation components belonging to the cross type are horizontal and vertical cross terms.

[0081] It should be noted that the horizontal and vertical cross terms are compensation components in the preset sag compensation mapping relationship that are related to both the horizontal and vertical directions of the lens coordinate system. The horizontal and vertical cross terms are used to compensate for the cross-coupled optical deviation caused by the combined effect of the tilt angle and the mirror angle, which cannot be compensated independently by pure horizontal compensation or pure vertical compensation.

[0082] The horizontal and vertical cross terms can be first-order. In other embodiments, they can also be second-order, in which case the horizontal and vertical cross terms include horizontal and vertical fitting coefficients, an X variable in the horizontal direction, and a Y variable in the vertical direction. In yet another embodiment, the horizontal and vertical cross terms can also include multiple horizontal and vertical sub-coupling terms. These multiple horizontal and vertical sub-coupling terms can be first-order horizontal and vertical terms (e.g., both X and Y variables are first-order), second-order horizontal and vertical terms (e.g., X variable is quadratic, Y variable is first-order), and second-order horizontal and vertical terms (e.g., X variable is first-order, Y variable is quadratic), etc. This embodiment does not specifically limit this. Each horizontal and vertical sub-coupling term also includes horizontal and vertical fitting coefficients, an X variable in the horizontal direction, and a Y variable in the vertical direction.

[0083] For example, the horizontal compensation coefficient, the vertical compensation coefficient, and the horizontal-vertical intersection term are multiplied together to obtain the configuration component compensation coefficient for the horizontal-vertical intersection term.

[0084] This embodiment determines the horizontal and vertical cross terms from the preset sag compensation mapping relationship and configures their component compensation coefficients as the product of the horizontal compensation coefficient and the vertical compensation coefficient, so that the target sag compensation mapping relationship can compensate for the cross-coupling optical deviation caused by the combined effect of the forward tilt angle and the mirror angle.

[0085] Step A20: Based on at least one compensation component and the component compensation coefficient of the compensation component, construct the target height compensation mapping relationship under the target wearing posture.

[0086] It should be noted that the target elevation compensation mapping relationship is composed of at least one compensation component and its corresponding component compensation coefficient. Depending on the selection of the compensation components, the specific structure of the target elevation compensation mapping relationship can take various forms, which will be described in detail below. The target elevation compensation mapping relationship may include only horizontal type compensation components and their component compensation coefficients, or only vertical type compensation components and their component compensation coefficients. In other embodiments, it may also include only intersection type compensation components and their component compensation coefficients. In another embodiment, the target elevation compensation mapping relationship may also be composed of at least two of the following combinations: a combination of horizontal type compensation components and their component compensation coefficients, a combination of vertical type compensation components and their component compensation coefficients, and a combination of intersection type compensation components and their component compensation coefficients.

[0087] When at least one compensation component belonging to the horizontal type is determined from the preset sag-height compensation mapping relationship, and the horizontal compensation coefficient is configured as the component compensation coefficient of that compensation component, the target sag-height compensation mapping relationship may include a combination of the compensation component of the horizontal type and the horizontal compensation coefficient. When the determined horizontal type compensation component is a horizontal compensation term, the target sag-height compensation mapping relationship may include the product of the horizontal compensation term and the horizontal compensation coefficient. When the determined horizontal type compensation component is a horizontal sag-height coupling term, the target sag-height compensation mapping relationship may include the product of the horizontal sag-height coupling term and the horizontal compensation coefficient. When the determined horizontal type compensation component includes both a horizontal compensation term and a horizontal sag-height coupling term, the target sag-height compensation mapping relationship may include the product of the horizontal compensation term and the horizontal compensation coefficient, as well as the product of the horizontal sag-height coupling term and the horizontal compensation coefficient.

[0088] When at least one compensation component belonging to the vertical type is determined from the preset sag-height compensation mapping relationship, and the vertical compensation coefficient is configured as the component compensation coefficient of that compensation component, the target sag-height compensation mapping relationship may include a combination of the compensation component of the vertical type and the vertical compensation coefficient. When the determined vertical type compensation component is a vertical compensation term, the target sag-height compensation mapping relationship may include the product of the vertical compensation term and the vertical compensation coefficient. When the determined vertical type compensation component is a vertical sag-height coupling term, the target sag-height compensation mapping relationship may include the product of the vertical sag-height coupling term and the vertical compensation coefficient. When the determined vertical type compensation component includes both a vertical compensation term and a vertical sag-height coupling term, the target sag-height compensation mapping relationship may include the product of the vertical compensation term and the vertical compensation coefficient, as well as the product of the vertical sag-height coupling term and the vertical compensation coefficient.

[0089] When a compensation component belonging to the intersection type is determined from a preset elevation compensation mapping relationship, and the attitude compensation coefficient is configured as the component compensation coefficient of that compensation component, the target elevation compensation mapping relationship may include a combination of the compensation component of that intersection type and its component compensation coefficient. In this case, the target elevation compensation mapping relationship may include the product of the horizontal and vertical intersection terms and the corresponding component compensation coefficients.

[0090] For example, referring to Formula 2, the expression for the target elevation compensation mapping relationship is explained with the following example: the horizontal compensation term includes first-order and second-order horizontal compensation terms; the vertical compensation term includes first-order and second-order vertical compensation terms; the horizontal elevation coupling term, the vertical elevation coupling term, and the horizontal-vertical intersection term are all first-order. diff = kx·A0·X+ ky·A1·Y+kx· A2·X·Z+ ky·A3·Y·Z+ kx·A4·X²+ky·A5·Y² + kx·ky·A6·X·Y (Formula 2); Where, diff is the sag compensation amount, A0 is the horizontal fitting coefficient in the first-order horizontal compensation term (A0·X), A1 is the vertical fitting coefficient in the first-order vertical compensation term (A1·Y), A2 is the horizontal sag fitting coefficient in the horizontal sag coupling term (A2·X·Z), A3 is the vertical sag fitting coefficient in the vertical sag coupling term (A3·Y·Z), A4 is the horizontal fitting coefficient in the second-order horizontal compensation term (A4·X²), A5 is the vertical fitting coefficient in the second-order vertical compensation term (A5·Y²), and A6 is the horizontal and vertical fitting coefficient in the horizontal-vertical cross term (A6·X·Y). The vertical sag fitting coefficient, horizontal sag fitting coefficient, horizontal and vertical fitting coefficient, each vertical fitting coefficient, and each horizontal fitting coefficient are all obtained in advance during the experiment. kx is the horizontal compensation coefficient, and ky is the vertical compensation coefficient. In Formula 2, the component compensation coefficients of the first-order horizontal compensation term, the second-order horizontal compensation term, and the horizontal sag coupling term are all horizontal compensation coefficients; the component compensation coefficients of the first-order vertical compensation term, the second-order vertical compensation term, and the vertical sag coupling term are all vertical compensation coefficients; the component compensation coefficients of the horizontal-vertical intersection term are the product of the horizontal compensation coefficient and the vertical compensation coefficient.

[0091] When it is necessary to determine the sag compensation amount of any sampling point in the surface sag data, the horizontal coordinate of the sampling point can be substituted into the X variable in Formula 2, the vertical coordinate of the sampling point can be substituted into the Y variable in Formula 2, and the current sag of the sampling point can be substituted into the Z variable in Formula 2 to calculate the sag compensation amount of the sampling point.

[0092] When the wearing posture changes, the forward tilt compensation coefficient of the changed forward tilt angle can be substituted into ky in Formula 2, and the mirror compensation coefficient of the changed mirror angle can be substituted into kx in Formula 2. This allows us to obtain the target height compensation mapping relationship corresponding to the changed wearing posture. Formula 2 is one example of the target height compensation mapping relationship and does not limit the number of terms in the target height compensation mapping relationship.

[0093] In other embodiments, the preset height compensation mapping relationship can also be expressed by Formula 2. When Formula 2 is used to express the preset height compensation mapping relationship and the target height compensation mapping relationship respectively, the main difference between the two lies in the values ​​of kx and ky: in the preset height compensation mapping relationship, kx and ky are coefficients to be determined; in the target height compensation mapping relationship, kx and ky are replaced according to the actual target wearing posture. After the wearing posture changes, the updated mirror compensation coefficient and forward tilt compensation coefficient can be substituted into kx and ky to generate a target height compensation mapping that adapts to the new wearing posture.

[0094] Multiple compensation components can be spatially categorized into horizontal components, vertical components, and horizontal-vertical cross-components. This embodiment can further assign the mirror compensation coefficient to the horizontal component, the tilt compensation coefficient to the vertical component, and the tilt compensation coefficient and mirror compensation coefficient together determine the compensation coefficient for the horizontal-vertical cross-component. When both tilt angle and mirror angle exist simultaneously, they will generate a coupling effect at different positions on the lens surface. For example, the direction and magnitude of the sag changes at the upper right and lower left corners of the lens are different, forming an asymmetrical optical deviation distribution. Therefore, this embodiment determines the sag compensation amount for each sampling point through a preset sag compensation mapping relationship, until optical deviations in the horizontal and vertical directions are compensated. It can also support compensation for coupled optical deviations generated in the horizontal and vertical directions, as well as coupled optical deviations generated in the horizontal and vertical directions, thereby improving the accuracy of compensation and accurately meeting the needs of differentiated compensation in different areas of the lens when both tilt angle and mirror angle exist simultaneously.

[0095] Step S232: For each sampling point in the surface elevation data, obtain the elevation compensation amount of the sampling point in the target elevation compensation mapping relationship based on the three-dimensional coordinates of the sampling point.

[0096] It should be noted that the three-dimensional coordinates of the sampling point include the abscissa, ordinate, and current sag of the sampling point in the lens coordinate system. In this embodiment, the three-dimensional coordinates of the sampling point can be input into the target sag compensation mapping relationship to obtain the sag compensation amount of the sampling point.

[0097] This embodiment generates a target height compensation mapping relationship that adapts to the target wearing posture of the lens to be compensated by the attitude compensation coefficient and the preset height compensation mapping relationship. Then, the height compensation amount corresponding to each sampling point can be determined in the target height compensation mapping relationship, which facilitates the subsequent effective reduction of optical deviation caused by changes in wearing posture.

[0098] In a feasible embodiment, the compensation elevation data includes the target elevation of at least one sampling point; step S30 further includes steps S31 to S32: Step S31: For each sampling point in the surface elevation data, obtain the current elevation of the sampling point and obtain the elevation compensation amount of the sampling point in the surface elevation compensation. It should be noted that the current sag is obtained from the three-dimensional coordinates of the sampling point, and is the sag value in the vertical direction of the lens coordinate system. The current sag of each sampling point in the surface sag data is the original sag value without sag compensation.

[0099] For example, all sampling points can be traversed. For each sampling point, the vertical sag value of the sampling point in the lens coordinate system is read from the surface sag data as the current sag. At the same time, the sag compensation amount of the sampling point is obtained from the surface sag compensation based on the horizontal and vertical coordinates of the sampling point.

[0100] Step S32: The sum of the current sag and the sag compensation amount is taken as the target sag of the sampling point.

[0101] It should be noted that the target sag is the compensated sag value of the sampling point. The target sag is obtained by directly summing the current sag and the sag compensation amount, representing the final sag that the sampling point should achieve after compensation. The compensated sag data can include the target sag of multiple sampling points, as well as the x and y coordinates of each sampling point, thus facilitating the subsequent processing of the back surface of the lens to be compensated to obtain the target lens based on the compensated sag data.

[0102] For example, for each sampling point in the surface elevation data, the current elevation of the sampling point and the elevation compensation amount of that sampling point are summed to obtain the target elevation of that sampling point. In other embodiments, the current elevations of all sampling points in the surface elevation data can be grouped into a vector or matrix, and the elevation compensation amounts of all sampling points in the surface elevation compensation can be organized into vectors or matrices of the same dimension. The target elevations of all sampling points can then be generated at once through matrix addition.

[0103] This embodiment determines the sagittal compensation amount for each sampling point in the surface sagittal data, and compensates the current sagittal of the sampling point based on the sagittal compensation amount. This allows the final compensated sagittal data to completely or at least partially offset the asymmetric optical deviations caused by the forward tilt angle and / or mirror angle at different positions, thereby reducing visual discomfort caused by changes in wearing posture and shortening the wearing adaptation time.

[0104] In a feasible embodiment, the lens compensation method further includes steps B10 to B20: Step B10: Obtain the original design sagittal data of the back surface of the test lens, and the target sagittal data of the test lens when it achieves comfortable wearing in at least one preset wearing posture; It should be noted that the test lens refers to the lens used in the stage of establishing the preset height compensation mapping relationship. The original design height data is the initial surface shape data of the back surface of the test lens before any height compensation is applied. The target height data is the surface shape data of the back surface of the test lens when the wearer obtains a comfortable visual experience under a given preset wearing posture, after wearing tests or optical simulations. This target height data is the goal that the test lens should achieve after compensation.

[0105] Step B20: Based on the original design elevation data and at least one target elevation data, fit the elevation deviation between the original design elevation data and the target elevation data to obtain a preset elevation compensation mapping relationship.

[0106] It should be noted that the sag deviation includes the sag difference of each sampling point in the original design sag data. The sag difference is the difference between the sag of the same sampling point in the original design sag data and the sag in the target sag data.

[0107] For example, by acquiring the original design height data and target height data of the test lens under a preset wearing posture, the height deviation between the original design height data and the target height data is fitted to obtain a preset height compensation mapping relationship. That is, a compensation rule is determined through fitting, so that after applying compensation to the original design height data according to this compensation rule, the compensated height data can be as close as possible to the target height data. This compensation rule is the fitted preset height compensation mapping relationship. For example, algorithms such as the least squares method can be used for fitting; this embodiment does not specifically limit this. The preset height compensation mapping relationship can be a function, for example, the function represented by Formula 2; in other embodiments, the fitted preset height compensation mapping relationship can also be expressed as a Zernike polynomial, Chebyshev polynomial, B-spline basis function, radial basis function, Fourier series, etc. This embodiment does not specifically limit this; the specific method can be determined based on the actual situation. For example, the type of function ultimately needed to express the preset height compensation mapping relationship can be used to select the corresponding basis function to construct the height compensation mapping model.

[0108] In other embodiments, target height data under multiple preset wearing postures can be used. By acquiring multiple sets of experimental data for the test lens under multiple preset wearing postures, each set of experimental data includes the original design height data and the target height data under the corresponding preset wearing posture. The height deviation between the target height data and the original design height data under each preset wearing posture parameter is jointly fitted to obtain the preset height compensation mapping relationship. During this fitting process, various fitting coefficients in Formula 2 can be fitted, such as the vertical height fitting coefficient, the horizontal height fitting coefficient, the horizontal and vertical fitting coefficients, various vertical fitting coefficients, and various horizontal fitting coefficients.

[0109] In addition, since the original design elevation data includes the original coordinates of each sampling point in multiple sampling points, the original coordinates include the original x-coordinate, y-coordinate and original elevation, and the target elevation data includes the target coordinates of each sampling point in multiple sampling points, the target coordinates include the target x-coordinate, y-coordinate and the required elevation, when fitting the elevation difference between the original design elevation data and the target elevation data, the original coordinates and target coordinates of each sampling point in multiple sampling points will be used for fitting. The resulting preset elevation compensation mapping relationship will include: the X variable in the horizontal direction, the Y variable in the vertical direction and the Z variable in the vertical direction.

[0110] Because multiple sets of experimental data cover a wider range of wearing postures, the fitted preset height compensation mapping relationship can more accurately capture the variation of height deviation with tilt angle and mirror angle, thus providing more accurate compensation when wearing the lens in any target orientation. This embodiment, by determining the preset height compensation mapping relationship, facilitates subsequent improvements in the compensation efficiency of different lenses to be compensated.

[0111] To better understand this embodiment, please refer to the following example for a brief description of the process of processing the rear surface of the lens to be compensated in this embodiment: Example 1: Compensation for a single-vision spherical lens: The lens to be compensated is a -4.00D single-vision spherical lens. The front surface of the lens to be compensated is spherical, and the rear surface is aspherical. In the target wearing state, the tilt angle α = 3° and the mirror angle β = 4°. Sag compensation needs to be applied to the rear surface of the lens to ensure that the optical effect of the lens in the actual wearing state is consistent with the design value. Step 1: Read the SDF file (81×81 grid, covering the range of -40mm to +40mm) of the rear surface of the lens to be compensated. The SDF file contains the surface sag data. Extract the coordinates (X, Y) of each grid point and the original sag Z from the SDF file. Step 2: Calculate the tilt compensation coefficient for the tilt angle and the mirror compensation coefficient for the mirror angle. Step 3: Substitute the tilt compensation coefficient and the mirror compensation coefficient into the preset sag compensation mapping relationship to obtain the target sag compensation mapping relationship. Step 4: Traverse each point in the 81×81 grid. Based on its coordinates (X, Y) and original elevation Z, substitute them into the target elevation compensation mapping relationship to obtain the elevation compensation amount ΔZ for that point. Step 5: Based on the elevation compensation amount for each point, compensate the elevation of each grid point in the SDF file to obtain the compensated elevation data. The compensated elevation data can also be represented as an SDF format file. The compensated elevation data can be directly used for processing the lens to be compensated.

[0112] Example 2: The lens to be compensated is a -4.00D SPH / -2.0D CYL×0° astigmatic lens. In the target wearing posture, the tilt angle α = 6° and the mirror angle β = 6°. Step 1: Read the SDF file of the rear surface of the lens to be compensated. The SDF file contains the surface sagittal data. Due to the different curvatures of the two orthogonal directions (horizontal and vertical) of the rear surface of the astigmatic lens, the surface sagittal data exhibits different curvature characteristics in the X and Y directions. Step 2: Calculate the tilt compensation coefficient for the tilt angle and the mirror compensation coefficient for the mirror angle. The mirror angle mainly affects the compensation in the first principal meridian direction (X direction), while the tilt angle mainly affects the compensation in the second principal meridian direction (Y direction). Step 3: Substitute the tilt compensation coefficient and the mirror compensation coefficient into the preset sagittal compensation mapping relationship to obtain the target sagittal compensation mapping relationship. Step 4: Traverse each point in the 81×81 grid. Based on its coordinates (X, Y) and original sag Z, substitute them into the target sag compensation mapping relationship to obtain the sag compensation amount ΔZ for that point. Step 5: Based on the sag compensation amount for each point, compensate the sag of each grid point in the SDF file to obtain compensated sag data. The compensated sag data can also be represented as an SDF format file. Since the target sag compensation mapping relationship inherently includes multiple compensation components, and these components compensate for different directions, this embodiment can perform differentiated compensation for different regions on the astigmatic lens when compensating for astigmatic lenses. For example, the distribution of sag compensation amount on the astigmatic lens exhibits elliptical symmetry rather than circular symmetry.

[0113] To better understand this embodiment, please refer to Figure 3 The compensation process in this embodiment is briefly described below, and includes steps Z10 to Z50: Step Z10: Obtain the target wearing posture of the lens to be compensated, and obtain the surface sagitta data of the rear surface of the lens to be compensated; Step Z20: Determine the tilt angle and mirror angle of the lens to be compensated from the target wearing posture, calculate the tilt compensation coefficient of the tilt angle, and calculate the mirror compensation coefficient of the mirror angle; Step Z30: Input the tilt compensation coefficient and mirror compensation coefficient into the preset sagitta compensation mapping relationship to generate the target sagitta compensation mapping relationship under the target wearing posture; Step Z40: Obtain the sagitta compensation amount of each sampling point in the target sagitta compensation mapping relationship; Step Z50: For each sampling point in the surface sagitta data, compensate the original sagitta of the sampling point according to the sagitta compensation amount of the sampling point to obtain the target sagitta of the sampling point.

[0114] You can also refer to Figure 4 , Figure 4 This shows the deviation between the actual sagitta and the ideal sagitta at each point on the rear surface of the target lens. The ideal sagitta refers to the theoretically required sagitta value of each sampling point on the rear surface to eliminate optical deviations in the target wearing posture. From Figure 4 It can be seen that the deviation of the sag at each point on the rear surface of the target lens is small, and the difference between the actual sag and the ideal sag at each point is between -0.121 and 0.0111. This indicates that the sag compensation amount of each sampling point determined by the preset sag compensation mapping relationship in this embodiment is relatively accurate, thereby enabling the target lens to at least partially offset the optical deviation introduced by the oblique incidence of light under the target wearing posture.

[0115] This application provides a lens compensation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the lens compensation method in the first embodiment described above.

[0116] The following is for reference. Figure 5 It shows a schematic diagram of a lens compensation device suitable for implementing the embodiments of this application. Figure 5 The lens compensation device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.

[0117] like Figure 5 As shown, the lens compensation device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the lens compensation device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. The communication device 1009 allows the lens compensation device to communicate wirelessly or wiredly with other devices to exchange data. Although lens compensation devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.

[0118] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0119] The lens compensation device provided in this application, employing the lens compensation method described in the above embodiments, can solve the technical problem of significant optical deviation caused by changes in lens wearing posture. Compared with the prior art, the beneficial effects of the lens compensation device provided in this application are the same as those of the lens compensation method provided in the above embodiments, and other technical features of this lens compensation device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0120] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0121] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0122] This embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the lens compensation method in the first embodiment described above.

[0123] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, apparatuses, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable EPROM (Electrical Programmable Read Only Memory) or flash memory, optical fiber, portable compact disk CD-ROM (compact discread-only memory), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution device, apparatus, or apparatus. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0124] The aforementioned computer-readable storage medium may be included in the lens compensation device; or it may exist independently and not assembled into the lens compensation device.

[0125] The aforementioned computer-readable storage medium carries one or more programs. When the one or more programs are executed by the lens compensation device, the lens compensation device causes the following: to acquire the target wearing posture of the lens to be compensated and to acquire surface height data of the rear surface of the lens to be compensated; to determine the surface height compensation of the surface height data based on the target wearing posture and a preset height compensation mapping relationship, wherein the surface height compensation includes the height compensation amount of each sampling point among multiple sampling points in the surface height data, and the preset height compensation mapping relationship is used to characterize the mapping relationship between the sampling points and the preset compensation amount under the preset wearing posture; to compensate the surface height data according to the surface height compensation to obtain compensated height data, and to process the rear surface of the lens to be compensated based on the compensated height data to obtain the target lens.

[0126] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a LAN (local area network) or WAN (wide area network)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0127] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based device that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0128] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0129] The computer-readable storage medium provided in this application embodiment stores computer-readable program instructions for executing the above-described lens compensation method, aiming to solve the technical problem of large optical deviations caused by changes in lens wearing posture. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application embodiment are the same as the beneficial effects of the lens compensation method provided in the above embodiments, and will not be repeated here.

[0130] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the lens compensation method described above.

[0131] The computer program product provided in this application aims to solve the technical problem of significant optical deviation caused by changes in lens wearing posture. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the lens compensation method provided in the above embodiments, and will not be repeated here.

[0132] The above are merely preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structural or procedural transformations made using the description and drawings of the present application, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present application.

Claims

1. A method of compensating a lens, characterized in that, The method includes: Obtain the target wearing posture of the lens to be compensated, and obtain the surface sagitta data of the rear surface of the lens to be compensated; Based on the target wearing posture and the preset height compensation mapping relationship, the surface height compensation of the surface height data is determined. The surface height compensation includes the height compensation amount of each sampling point in the multiple sampling points of the surface height data. The preset height compensation mapping relationship is used to characterize the mapping relationship between the sampling points and the preset compensation amount under the preset wearing posture. The surface height data is compensated according to the surface height compensation to obtain compensated height data, and the back surface of the lens to be compensated is processed based on the compensated height data to obtain the target lens.

2. The lens compensation method as described in claim 1, characterized in that, The step of determining the surface height compensation of the surface height data based on the target wearing posture and the preset height compensation mapping relationship includes: The attitude angle of the lens to be compensated is determined from the target wearing posture; Obtain the attitude compensation coefficient of the attitude angle; Based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship, the surface height compensation of the surface height data is determined.

3. The lens compensation method as described in claim 2, characterized in that, The posture angle of the target wearing posture includes at least a forward tilt angle and / or a mirror angle.

4. The lens compensation method as described in claim 2, characterized in that, The step of obtaining the attitude compensation coefficient of the attitude angle includes: The ratio of the trigonometric function value of the attitude angle to the preset reference value is used as the attitude compensation coefficient of the attitude angle.

5. The lens compensation method as described in claim 2, characterized in that, The step of determining the surface elevation compensation of the surface elevation data based on the attitude compensation coefficient of the attitude angle and the preset elevation compensation mapping relationship includes: Based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship, the target height compensation mapping relationship under the target wearing posture is generated; For each sampling point in the surface elevation data, the elevation compensation amount of the sampling point is obtained in the target elevation compensation mapping relationship based on the three-dimensional coordinates of the sampling point.

6. The lens compensation method as described in claim 5, characterized in that, The step of generating the target height compensation mapping relationship under the target wearing posture based on the attitude compensation coefficient of the attitude angle and the preset height compensation mapping relationship includes: At least one compensation component is determined from the preset height compensation mapping relationship, and the component compensation coefficient of each compensation component is determined based on the attitude compensation coefficient of the attitude angle. Based on at least one of the compensation components and the component compensation coefficients of the compensation components, a target height compensation mapping relationship under the target wearing posture is constructed.

7. The lens compensation method as described in claim 6, characterized in that, The step of determining at least one compensation component from the preset elevation compensation mapping relationship, and determining the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle, includes: At least one compensation component belonging to the horizontal type is determined from the preset sag compensation mapping relationship; wherein, the horizontal type is the type of compensation component that is related to the horizontal direction of the lens coordinate system where the lens to be compensated is located and is independent of the vertical direction of the lens coordinate system; Determine the horizontal compensation coefficient from the attitude compensation coefficients, and configure the horizontal compensation coefficient as a component compensation coefficient belonging to at least one compensation component of the horizontal type; Among them, the compensation component belonging to the horizontal type is a horizontal compensation term or a horizontal sag coupling term.

8. The lens compensation method as described in claim 6, characterized in that, The step of determining at least one compensation component from the preset height compensation mapping relationship, and determining the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle, further includes: At least one compensation component belonging to the vertical type is determined from the preset sag compensation mapping relationship; wherein, the vertical type is the type of compensation component that is related to the vertical direction of the lens coordinate system where the lens to be compensated is located and is independent of the horizontal direction of the lens coordinate system; The vertical compensation coefficient is determined from the attitude compensation coefficient, and the vertical compensation coefficient is configured as a component compensation coefficient belonging to at least one compensation component of the vertical type; Among them, the compensation component belonging to the vertical type is either a vertical compensation term or a vertical sag coupling term.

9. The lens compensation method as described in claim 6, characterized in that, The step of determining at least one compensation component from the preset height compensation mapping relationship, and determining the component compensation coefficient of each compensation component based on the attitude compensation coefficient of the attitude angle, further includes: The compensation components belonging to the cross type are determined from the preset sag compensation mapping relationship; wherein, the cross type is the type of compensation component that is related to both the vertical direction and the horizontal direction of the lens coordinate system where the lens to be compensated is located; Configure the attitude compensation coefficient as the component compensation coefficient belonging to the compensation component of the cross type; Among them, the compensation components belonging to the intersection type are horizontal and vertical intersection terms.

10. The lens compensation method as described in claim 1, characterized in that, The compensation elevation data includes the target elevation of at least one sampling point; The step of compensating the surface elevation data based on the surface elevation compensation to obtain compensated elevation data includes: For each sampling point in the surface elevation data, the current elevation of the sampling point is obtained, and the elevation compensation amount of the sampling point is obtained in the surface elevation compensation. The sum of the current elevation and the elevation compensation amount is taken as the target elevation of the sampling point.

11. The lens compensation method as described in claim 1, characterized in that, The lens compensation method further includes: Obtain the original design sagittal data of the rear surface of the test lens, and the target sagittal data of the test lens when it achieves comfortable wearing in at least one preset wearing posture; Based on the original design elevation data and at least one target elevation data, the elevation deviation between the original design elevation data and the target elevation data is fitted to obtain the preset elevation compensation mapping relationship.

12. A lens compensation device, characterized in that, The lens compensation device includes: At least one processor; and a memory communicatively connected to the at least one processor; The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the lens compensation method according to any one of claims 1 to 11.

13. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, on which a program for implementing the lens compensation method is stored, and the program for implementing the lens compensation method is executed by a processor to implement the steps of the lens compensation method as described in any one of claims 1 to 11.