Diopter measurement method, storage medium and electronic equipment
By generating a linear calculation function between the diopter and the lens position, the diopter measurement method is simplified, and the problem of complex algorithms in the prior art leads to low efficiency is solved, and fast and accurate diopter measurement is achieved.
Patent Information
- Application Number
- CN202411930278.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-12-25
AI Technical Summary
In the prior art, the algorithm of diopter measurement methods is complex, resulting in low efficiency.
By generating a linear calculation function between the diopter and the lens position, adjusting the lens position, obtaining fundus imaging images at different lens positions, selecting the image with the greatest clarity and determining the target lens position, and directly substituting it into the function to calculate the diopter.
The computing process is greatly simplified, the diopter measurement efficiency is improved, and the rapid and accurate diopter measurement is achieved.
Smart Images

Figure CN119837487A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of vision detection, and in particular to a diopter measurement method, a storage medium and an electronic device. Background Art
[0002] The main purpose of refraction examination is to determine the refractive state of the eyeball and check whether there is refractive error, such as myopia, hyperopia, astigmatism, etc. The device for measuring refraction usually uses Figure 1 The optical path shown is carried out. The image generating component 10 generates an initial image, which is projected to the eye 40 after being refracted and focused by the light analyzer 20 and the lens 30. The fundus images of the eye 40 at different diopters will be deformed to different degrees compared with the initial image. The deformed image is collected by the image acquisition component 50 after passing through the lens 30 and the light analyzer 20. The image acquisition component 50 uses algorithms such as image cropping, cutting, and comparison to obtain information such as the deformation size and direction of the fundus imaging compared to the initial image, and then determines the diopter. The above process algorithm is relatively complex, which affects the efficiency of diopter measurement. Summary of the invention
[0003] The technical problem to be solved by the present application is that the algorithm of the diopter measurement method in the prior art is complex, resulting in low efficiency, and thus a diopter measurement method, storage medium and electronic device are provided.
[0004] In a first aspect, the technical solution of the present application provides a method for measuring diopter, comprising:
[0005] Generate a diopter linear calculation function based on the relationship between diopter and lens position;
[0006] Adjusting the position of the lens to change the distance between the lens and the eye to be tested;
[0007] Respectively acquiring fundus imaging images of the eye to be tested acquired by the image acquisition component at different lens positions;
[0008] Selecting a target fundus imaging image from all fundus imaging images according to a preset rule, and the lens position corresponding to the target fundus imaging image is the target lens position;
[0009] The target lens position is input into the refractive power linear calculation function to obtain the refractive power measurement result of the eye to be measured.
[0010] In some embodiments of the refractive power measurement method, the step of selecting a target fundus imaging image from all fundus imaging images according to a preset rule comprises:
[0011] Acquiring the clarity of each fundus imaging image;
[0012] Selecting the fundus imaging image with the greatest clarity as the target fundus imaging image;
[0013] In the generating of the diopter linear calculation function according to the relationship between the diopter and the lens position, the diopter linear calculation function is expressed as:
[0014] S = k1P + i;
[0015] Among them, S represents the diopter, P represents the lens position, i represents the adjustment parameter, and k1 represents the linear function coefficient.
[0016] In some embodiments of the refractive power measurement method, when the initial image corresponding to the fundus imaging image is a checkerboard pattern, selecting a target fundus imaging image from all fundus imaging images according to a preset rule comprises:
[0017] Setting the origin position as the target lens position;
[0018] The fundus imaging image corresponding to the lens when the origin is set is used as the target fundus imaging image.
[0019] In some embodiments of the diopter measurement method, in generating a diopter linear calculation function based on the relationship between the diopter and the lens position, the diopter linear calculation function is expressed as:
[0020] S=k c ×j+e;
[0021] Among them, S represents the diopter, j and e represent the adjustment parameters, k c Represents the linear function coefficients.
[0022] Some protocols describe methods for measuring refraction, where the value of j is determined as follows:
[0023] Select at least one square area in the checkerboard pattern of the initial image, and use one of the square areas as an initial square, wherein the four vertices of the initial square are marked as point A1, point B1, point C1 and point D1, respectively, and A1B1=C1D1, and B1C1=A1D1;
[0024] Determine an imaging quadrilateral corresponding to the initial square in the fundus imaging image, wherein the four vertices of the imaging quadrilateral are point A1', point B1', point C1' and point D1', A1'B1'=C1'D1', B1'C1'=A1'D1';
[0025] Calculate c = Min (A1'B1', B1'C1'), and the c value has the following linear relationship with the lens position: c = k p P+j;
[0026] Repeat the above steps to obtain multiple groups of c values, and analyze the j values based on the multiple groups of c values.
[0027] The method for measuring refraction described in some embodiments further comprises:
[0028] Obtain the cylindrical diopter of the eye to be tested: C=S×(dc), where d=Max(A1'B1', B1'C1');
[0029] Obtaining the cylindrical lens axis angle α: Calculate ∠D1'A1'B1' according to the law of cosines. If A1'B1'>B1'C1', the cylindrical lens axis angle α=90°-∠D1'A1'B1'; if A1'B1'<B1'C1', α=∠D1'A1'B1'.
[0030] In some embodiments of the diopter measurement method, the square area includes two or more square areas, and other square areas other than the initial square are used as auxiliary calibration squares;
[0031] Obtaining a deformation value result corresponding to each of the auxiliary verification squares as an auxiliary verification result;
[0032] Obtaining a first weighted average value of the auxiliary verification results;
[0033] If the difference between the deformation value and the first weighted average value is not within a set range, reacquiring the deformation value;
[0034] Obtaining the cylindrical diopter result corresponding to each of the auxiliary verification squares;
[0035] Obtaining a second weighted average of the cylindrical diopter results;
[0036] If the difference between the cylindrical diopter and the second weighted average value is not within a set range, reacquiring the cylindrical diopter;
[0037] Obtaining the cylindrical lens axis angle result corresponding to each auxiliary verification square;
[0038] Obtaining a third weighted average value of the cylindrical lens axis angle results;
[0039] If the difference between the cylindrical lens axis angle and the third weighted average value is not within a set range, the cylindrical lens axis angle is reacquired.
[0040] In a second aspect, the technical solution of the present application provides a computer-readable storage medium, in which program information is stored. After a computer reads the program information, the computer executes the steps of the refractive power measurement method described in any one of the technical solutions of the first aspect.
[0041] In a third aspect, the technical solution of the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the refractive power measurement method described in any one of the first aspects.
[0042] In a fourth aspect, the technical solution of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the refractive power measurement method described in any one of the first aspects.
[0043] Compared with the prior art, the above technical solution provided by this application has the following technical effects:
[0044] The diopter measurement method, storage medium and electronic device provided by the present application pre-linearize the relationship between the diopter and the lens position, and generate a diopter linear calculation function that can obtain the diopter by linear calculation using the lens position. When measuring the diopter of the eye to be measured, the position of the lens is adjusted, a series of fundus imaging images are collected, and the target fundus imaging image that meets the requirements for measuring the diopter is determined according to the preset rules. The target lens position is selected, and the target lens position is directly substituted into the above function to obtain the diopter of the eye to be measured. Through the above scheme of the present application, it is only necessary to move the lens position, determine whether the fundus imaging image collected by the image acquisition component meets the conditions for diopter measurement, determine the target lens position, and use linear calculation to obtain the diopter of the eye to be measured, which greatly simplifies the calculation process and improves the efficiency of diopter measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of an optical path for implementing diopter measurement according to an embodiment of the present application;
[0046] Figure 2 This is a flow chart of a diopter measurement method according to an embodiment of the present application;
[0047] Figure 3 This is a schematic diagram of an initial image of a checkerboard pattern described in one embodiment of the present application;
[0048] Figure 4a and Figure 4b A schematic diagram of the deformation of a chessboard pattern observed by an eye to be tested when the diopter is not zero according to an embodiment of the present application;
[0049] Figure 5 This is a schematic diagram of marking vertices of an initial square according to an embodiment of the present application;
[0050] Figure 6 A schematic diagram of marking vertices of an imaging quadrilateral according to an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the hardware connection relationship of an electronic device for executing a diopter measurement method according to an embodiment of the present application. DETAILED DESCRIPTION
[0052] The specific implementation of the present application is further described below with reference to the accompanying drawings.
[0053] It is easy to understand that according to the technical solution of the present application, without changing the essential spirit of the present application, a variety of structural modes and implementation modes that can be replaced by those skilled in the art can be replaced with each other. Therefore, the following specific implementation modes and drawings are only exemplary descriptions of the technical solution of the present application, and should not be regarded as the entirety of the present application or as a limitation or restriction on the technical solution of the application.
[0054] The directional terms such as up, down, left, right, front, back, front, back, top, bottom, etc. mentioned or may be mentioned in this specification are defined relative to the structures shown in the drawings. They are relative concepts and may change accordingly according to different positions and different usage conditions. Therefore, these or other directional terms should not be interpreted as restrictive terms.
[0055] This embodiment provides a diopter measurement method, which is applied to a control system of a diopter measurement instrument, such as Figure 2 As shown, the method comprises the following steps:
[0056] S100: Generate a diopter linear calculation function according to the relationship between the diopter and the lens position.
[0057] Combination Figure 1 As shown, in the device for measuring refractive power, the lens 30 is usually driven by a micro motor, and a coordinate system is automatically set inside the lens 30. The moving trajectory of the lens 30 is set as the horizontal axis, and the moving range can be set between -200mm and +200mm. The upper limit position on one side is adjacent to the simulated eye 40, and the upper limit position on the other side is adjacent to the diopter 20. During the movement of the lens 30, the fundus imaging image captured by the image acquisition component 50 will change synchronously. After many experiments, it can be determined that the lens position and the refractive power have a linear correspondence: S=kP+i. For example: when the fundus imaging image captured by the image acquisition component 50 is the clearest, the refractive power of the simulated eye 40 has a linear relationship with the lens position. It can be used Figure 1 The optical path structure shown is used to replace simulated eyes with different refractive powers for separate tests. After obtaining multiple sets of test data, fitting calculations of refractive power and lens position are performed. Remember to determine the linear coefficient k and adjustment parameter i in the above linear correspondence, and then the refractive power linear calculation function can be obtained. This function can be used to measure the refractive power of the eye to be tested.
[0058] S200: adjusting the position of the lens to change the distance between the lens and the eye to be measured.
[0059] As mentioned above, the position of the lens moves within the range of -200 mm to 200 mm to avoid being too close to the eye to be tested. During the process of changing the position of the lens, the fundus imaging image of the eye to be tested will also change accordingly.
[0060] S300: respectively acquiring fundus imaging images of the eye to be tested acquired by the image acquisition component at different lens positions.
[0061] The image acquisition component 50 can acquire fundus imaging images in real time during the lens movement process.
[0062] S400: selecting a target fundus imaging image from all fundus imaging images according to a preset rule, and the lens position corresponding to the target fundus imaging image is the target lens position.
[0063] The preset rule can be determined according to the type of the initial image generated by the image generating component 10. In general, the clearest fundus imaging image can be selected, and if the initial image is a special image such as a checkerboard pattern, the preset rule can be determined according to whether the image undergoes a specific deformation. In specific applications, the corresponding preset rule can be selected according to the type of the initial image.
[0064] S500: Inputting the target lens position into the refractive power linear calculation function to obtain the refractive power measurement result of the eye to be measured.
[0065] The diopter linear calculation function provided in step S100 is a linear function of diopter and lens position. The diopter of the eye to be tested can be directly calculated by directly substituting the target lens position into the above function.
[0066] The above scheme provided by the present application performs linear reasoning on the relationship between the diopter and the lens position in advance, and generates a diopter linear calculation function that can obtain the diopter by linear calculation using the lens position. When measuring the diopter of the eye to be measured, a series of fundus imaging images are collected by adjusting the position of the lens, and the target fundus imaging image that meets the requirements for measuring the diopter is determined according to the preset rules, and the target lens position is selected. The target lens position is directly substituted into the above function to obtain the diopter of the eye to be measured. Through the above scheme of the present application, it is only necessary to move the lens position, determine whether the fundus imaging image collected by the image acquisition component meets the conditions for diopter measurement, determine the target lens position, and use linear calculation to obtain the diopter of the eye to be measured, which greatly simplifies the calculation process and improves the efficiency of diopter measurement.
[0067] Furthermore, in the above solution, step S400 includes:
[0068] S401: Obtaining the clarity of each fundus imaging image.
[0069] This step can be implemented by using an existing algorithm for calculating image clarity, such as the point sharpness method. The point sharpness method means that for any pixel in the image, the grayscale change rate between it and the adjacent pixel is dI / dx, where dI is the grayscale difference and dx is the pixel distance. Each pixel needs to calculate the grayscale change rate of eight neighborhoods, so the point sharpness of the image is expressed as the formula:
[0070]
[0071] The meaning of each parameter in the above formula is:
[0072] D point : Point sharpness
[0073] dI: Grayscale difference between adjacent points
[0074] dx: pixel distance, for an eight-point neighborhood, dx is always 1.
[0075] m and n represent the width and height of the image respectively.
[0076] The size of the point sharpness can be used to indicate the clarity of the fundus imaging image.
[0077] S402: Select the fundus imaging image with the greatest clarity as the target fundus imaging image.
[0078] The point sharpness of all fundus imaging images is calculated using the formula in step S401. point When it is at its largest, it provides the clearest fundus imaging image.
[0079] The diopter linear calculation function in step S100 is expressed as:
[0080] S = k1P + i;
[0081] Wherein, S represents diopter, P represents lens position, i represents adjustment parameter, and k1 represents linear function coefficient. Directly substituting the target lens position into P, k1 and i in the above formula is determined in step S100, thereby obtaining the diopter measurement result of the eye to be tested.
[0082] Obviously, none of the above steps requires complicated calculations, nor does it require excessive processing of the image. The diopter measurement scheme of the present application is simple and accurate.
[0083] In the above scheme, the initial image can be any image. In order to facilitate the image calibration operation of the image generating component, the initial image in the following embodiments of the present application is preferably as follows Figure 3 The checkerboard pattern shown is composed of several small squares of equal size. Compared with conventional circles or rings, the checkerboard pattern is easier to implement orthodontics and can improve the accuracy of refractive measurement results. Figure 1 In the optical path shown in FIG. 1 , the image generating component 10 projects a checkerboard-shaped square image. After being reflected by the simulated eye 40, the image acquisition component 50 acquires a fundus imaging image. At this time, if the diopter is zero, the fundus imaging image remains as a checkerboard pattern. Otherwise, deformation occurs. After stretching and tilting, the image is obtained as shown in FIG. Figure 4a Or the parallelogram shape shown in 4b. By replacing simulated eyes with different refractive powers, the pixel size or clarity of the checkerboard pattern can be determined, which is linearly related to the lens position and the refractive power of the simulated eye. When the checkerboard pattern is used as the initial image, the aforementioned maximum clarity judgment method can still be used to select the target fundus imaging image and the target lens position to obtain the refractive power of the eye to be tested. Preferably, the method of selecting the target fundus imaging image from all fundus imaging images according to the preset rules in step S400 can also simplify the calculation method to
[0084] S411: setting the origin position as the target lens position.
[0085] As mentioned above, the lens moves along the horizontal axis of the preset coordinate system, and the moving range is between -200 mm and 200 mm. The set origin position is the middle point of the moving range. At this time, the lens position P can be considered to be 0.
[0086] S412: Using the fundus imaging image corresponding to the lens when the origin is set as the target fundus imaging image.
[0087] That is, through experiments and reasoning verification, it can be determined that when the lens position is at the set origin position, some deformation information of the chessboard pattern obtained is linearly related to the diopter. Therefore, when measuring the diopter of the eye to be measured, the lens can be directly moved to the set origin, and the deformation information can be obtained according to the fundus imaging image collected by the image acquisition component, and the diopter can be directly obtained by linear calculation, which further simplifies the measurement steps and calculation process.
[0088] Furthermore, the diopter linear calculation function is expressed as:
[0089] S=k c ×j+e;
[0090] Among them, S represents the diopter, j and e represent the adjustment parameters, k c Represents the linear function coefficients.
[0091] j, e and k in the above function c Multiple sets of data can be obtained by experiment and then fitted. Specifically, the j value is determined by the following method:
[0092] S421: Select at least one square area in the checkerboard pattern of the initial image, and use one of the square areas as the initial square. The four vertices of the initial square are marked as point A1, point B1, point C1 and point D1, respectively. A1B1=C1D1, B1C1=A1D1; Figure 5 The figure shows a schematic diagram of selecting an initial square, where the side length of the square is as long as possible, so this solution selects the positions of the four corner points as the four vertices of the initial square. Specifically, the intersection points of each adjacent square block of the chessboard are identified by the chessboard intersection recognition method, and the coordinate position of each intersection point is accurately located to obtain the sub-pixel coordinate value, and the four outermost corner points are directly selected as the four vertices of the initial square.
[0093] S422: Determine the imaging quadrilateral corresponding to the initial square in the fundus imaging image, the four vertices of the imaging quadrilateral are A1', B1', C1' and D1', A1'B1'=C1'D1', B1'C1'=A1'D1'. When the cylindrical refractive power of the eye to be tested is zero, A1', B1', C1' and D1' still form a square, A1'B1'=C1'D1'=B1'C1'=A1'D1'. When the cylindrical refractive power of the eye to be tested is not zero, A1', B1', C1' and D1' form a square. Figure 6 The parallelogram shown.
[0094] S423: Calculate c=Min(A1'B1', B1'C1'), and the c value and the lens position have the following linear relationship: c=k p P+j.
[0095] Still Figure 1 Taking the optical path shown in the figure as an example, for simulated eyes 40 with different diopters, the lens 30 is moved, and the fundus imaging image of the simulated eye 40 is obtained through the image acquisition component 50, and A1'B1', B1'C1' and c are obtained according to the above-mentioned chessboard intersection recognition method. The c value has the following linear relationship with the lens position P: c = k p P+d, after multiple tests, the coefficient k can be calculated by fitting the measurement results of simulated eyes with different refractive powers pAnd parameter d. Let P = 0 to indicate that the lens position is at the set origin, and then the c value of different diopters when the lens position is "0" can be calculated, represented by c0. Obviously, if P is 0, then c0 = j.
[0096] The diopter S has the following linear relationship with the above c0: S = k c ×c0+e, that is, S=k c ×j+e. After multiple tests, the measurement results of simulated eyes with different refractive powers are fitted to calculate the coefficient k c and parameter e.
[0097] Obviously, using a checkerboard pattern for refractive power measurement can further simplify the calculation process.
[0098] Further preferably, the diopter measurement method in the above solution further comprises:
[0099] S600: Obtain the cylindrical diopter of the eye to be tested: C=S×(dc), where d=Max(A1′B1′, B1′C1′).
[0100] S700: Obtaining the cylindrical lens axis angle α: Calculating ∠D1'A1'B1' according to the law of cosines. If A1'B1'>B1'C1', the cylindrical lens axis angle α=90°-∠D1'A1'B1'; if A1'B1'<B1'C1', α=∠D1'A1'B1'.
[0101] In the present application, the diopter measurement in step S500 and before refers to the spherical diopter, and steps S600 and S700 are for measuring the cylindrical diopter. Through the present application, the chessboard pattern can be used as the initial image, and the spherical diopter, cylindrical diopter and cylindrical axis angle can be directly measured by moving the lens to the set origin position, which is simple to operate and has a small amount of calculation.
[0102] The above solution of the present application may also include a step of calibrating the diopter measurement result to avoid errors in the measurement result of a single square area due to environmental interference, etc. The calibration process is as follows:
[0103] S801: The square area includes two or more than two square areas, and other square areas other than the initial square area are used as auxiliary verification squares. In specific implementation, different square areas can be distributed around the central block of the chessboard pattern.
[0104] S802: Obtain the deformation value result corresponding to each of the auxiliary verification squares as the auxiliary verification result; obtain a first weighted average value of the auxiliary verification result; if the difference between the deformation value and the first weighted average value is not within a set range, re-obtain the deformation value.
[0105] S803: Obtain the cylindrical refractive power result corresponding to each of the auxiliary verification squares; obtain a second weighted average value of the cylindrical refractive power results; if the difference between the cylindrical refractive power and the second weighted average value is not within a set range, re-obtain the cylindrical refractive power.
[0106] S804: Obtain the cylindrical lens axis angle result corresponding to each of the auxiliary verification squares; obtain the third weighted average of the cylindrical lens axis angle results; if the difference between the cylindrical lens axis angle and the third weighted average is not within a set range, re-obtain the cylindrical lens axis angle.
[0107] The above S802, S803 and S804 refer to the calculation of the diopter (spherical lens), cylindrical lens diopter and cylindrical lens axis angle respectively for the auxiliary calibration square using the above steps. Afterwards, the average value is calculated according to each calculation result or the weighted average operation is performed according to the location of each square area. The average operation result is used as a judgment benchmark. If the calculation result of the original initial square does not deviate much from the benchmark, the original result is considered to be usable. Otherwise, it is considered that the error of the original result is large and needs to be recalculated. The above process is repeated until the calculation result of the initial square meets the error requirement. Through the present application scheme, it can be further ensured that the error of the diopter measurement result is within the allowable range.
[0108] An embodiment of the present application further provides a computer-readable storage medium, in which program information is stored. After a computer reads the program information, the computer executes the steps of the refractive power measurement method described in any one of the above method embodiments.
[0109] An embodiment of the present application also provides a computer program product, including a computer program / instruction, characterized in that when the computer program / instruction is executed by a processor, the steps of the refractive power measurement method described in any one of the above method embodiments are implemented.
[0110] The present application also provides an electronic device, such as Figure 7As shown, the electronic device includes at least one processor 71 and at least one memory 72, at least one of the memories 72 stores program information, and at least one of the processors 71 reads the program information and executes the diopter measurement method described in any one of the above method embodiments. The device may also include: an input device 73 and an output device 74. The processor 71, the memory 72, the input device 73 and the output device 74 may be communicatively connected. The memory 72, as a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs and modules. The processor 71 executes various functional applications and data processing by running the non-volatile software programs, instructions and modules stored in the memory 72, that is, the diopter measurement method provided by any one of the above schemes is implemented. The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the diopter measurement method, etc. In addition, the memory 72 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 72 may optionally include a memory remotely arranged relative to the processor 71, and these remote memories may be connected to the device for executing the diopter measurement method through a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The input device 73 may receive input user clicks, and generate signal inputs related to user settings and function controls of the diopter measurement method. The output device 74 may include a display device such as a display screen. When the one or more modules are stored in the memory 72, the diopter measurement method in any of the above-mentioned method embodiments is executed when the one or more modules are executed by the one or more processors 71.
[0111] As needed, the above technical solutions can be combined to achieve the best technical effect.
[0112] The above are only the principles and preferred embodiments of the present application. It should be noted that, for ordinary technicians in this field, on the basis of the principles of the present application, several other modifications can be made, which should also be considered as the protection scope of the present application.
Claims
1. A method for measuring diopter, characterized in that: include: Generate a diopter linear calculation function based on the relationship between diopter and lens position; Adjusting the position of the lens to change the distance between the lens and the eye to be tested; Respectively acquiring fundus imaging images of the eye to be tested acquired by the image acquisition component at different lens positions; Selecting a target fundus imaging image from all fundus imaging images according to a preset rule, and the lens position corresponding to the target fundus imaging image is the target lens position; The target lens position is input into the refractive power linear calculation function to obtain the refractive power measurement result of the eye to be measured.
2. The method for measuring diopter according to claim 1, characterized in that: The step of selecting a target fundus imaging image from all fundus imaging images according to a preset rule comprises: Acquiring the clarity of each fundus imaging image; Selecting the fundus imaging image with the greatest clarity as the target fundus imaging image; In the generating of the diopter linear calculation function according to the relationship between the diopter and the lens position, the diopter linear calculation function is expressed as: S = k1P + i; Among them, S represents the diopter, P represents the lens position, i represents the adjustment parameter, and k1 represents the linear function coefficient.
3. The method for measuring diopter according to claim 1, characterized in that: When the initial image corresponding to the fundus imaging image is a checkerboard pattern, selecting the target fundus imaging image from all fundus imaging images according to a preset rule includes: Setting the origin position as the target lens position; The fundus imaging image corresponding to the lens when the origin is set is used as the target fundus imaging image.
4. The method for measuring diopter according to claim 3, characterized in that: In the generating of the diopter linear calculation function according to the relationship between the diopter and the lens position, the diopter linear calculation function is expressed as: S=k c ×j+e; Among them, S represents the diopter, j and e represent the adjustment parameters, k c Represents the linear function coefficients.
5. The refractive power measurement method according to claim 3 or 4, characterized in that: The value of j is determined as follows: Select at least one square area in the checkerboard pattern of the initial image, and use one of the square areas as an initial square, wherein the four vertices of the initial square are marked as point A1, point B1, point C1 and point D1, respectively, and A1B1=C1D1, and B1C1=A1D1; Determine an imaging quadrilateral corresponding to the initial square in the fundus imaging image, wherein the four vertices of the imaging quadrilateral are point A1', point B1', point C1' and point D1', A1'B1'=C1'D1', B1'C1'=A1'D1'; Calculate c = Min (A1'B1', B1'C1'), and the c value has the following linear relationship with the lens position: c = k p P+j; Repeat the above steps to obtain multiple groups of c values, and analyze the j values based on the multiple groups of c values.
6. The method for measuring diopter according to claim 5, characterized in that: The method further comprises: Obtain the cylindrical diopter of the eye to be tested: C=S×(dc), where d=Max(A1'B1', B1'C1'); Obtaining the cylindrical lens axis angle α: Calculate ∠D1'A1'B1' according to the law of cosines. If A1'B1'>B1'C1', the cylindrical lens axis angle α=90°-∠D1'A1'B1'; if A1'B1'<B1'C1', α=∠D1'A1'B1'.
7. The method for measuring diopter according to claim 6, characterized in that: The square area includes two or more than two square areas, and other square areas other than the initial square area are used as auxiliary verification squares; Obtaining a deformation value result corresponding to each of the auxiliary verification squares as an auxiliary verification result; Obtaining a first weighted average value of the auxiliary verification results; If the difference between the deformation value and the first weighted average value is not within a set range, reacquiring the deformation value; Obtaining the cylindrical diopter result corresponding to each of the auxiliary verification squares; Obtaining a second weighted average of the cylindrical diopter results; If the difference between the cylindrical diopter and the second weighted average value is not within a set range, reacquiring the cylindrical diopter; Obtaining the cylindrical lens axis angle result corresponding to each auxiliary verification square; Obtaining a third weighted average value of the cylindrical lens axis angle results; If the difference between the cylindrical lens axis angle and the third weighted average value is not within a set range, the cylindrical lens axis angle is reacquired.
8. A computer-readable storage medium, characterized in that: The storage medium stores program information, and the computer reads the program information and executes the steps of the refractive power measurement method according to any one of claims 1 to 7.
9. A computer program product, characterized in that The method comprises a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the steps of the refractive power measurement method according to any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the refractive power measurement method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Full-automatic optometry topographic map instrument and optometry method
CN114587268A
Aberration instrument for measuring human eye adjustment state
CN115736813A
Eye fundus image measurement method, terminal device and computer readable storage medium
CN117462072A
Eyeground photographing device and medical color image processor
JP1994090906A
Refractometer for measuring spherical refractive errors
US5455645A