Refractive power measurement method, device and storage medium
By collecting the optometry image based on the zoom lens, determining the target optometry image and calculating the refractive index, the problem of low accuracy in the prior art is solved, and a higher accuracy refractive index measurement is achieved.
Patent Information
- Application Number
- CN202411829532.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-04-04
AI Technical Summary
The prior art has low accuracy in measuring the refractive index during optometry, mainly because the lens switching results are discrete, which leads to rounding the measurement results and losing accuracy.
By acquiring the optometry image acquired by the acquisition module based on the zoom lens, the focus number associated with the image is determined, and the target optometry image is determined based on the preset focus number interval, and finally the corresponding refractive point in the target optometry image is determined and output.
The accuracy of diopter measurement is improved, and the optometry image acquired through the zoom lens can more accurately determine the target optometry image within the preset focus range, thereby obtaining a more accurate dioptometry.
Smart Images

Figure CN119745314A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing technology, and in particular to a method, device and storage medium for measuring diopter. Background Art
[0002] The refractive power indicates the eye's ability to refract light and is an important indicator for evaluating whether vision is normal. At present, the subjective optometry method is usually used in the optometry process. In this method, the staff holds lenses with different focusing powers and places them in front of the pupil to be measured. The staff then asks which lens has a clearer field of view. Finally, the focusing power corresponding to the clearer lens is used as the pupil parameter to calculate the pupil's refractive power. However, the above method requires frequent switching of lenses. Since the result of lens switching is discrete, this means that the measurement result will be rounded according to the available lens power, which leads to low accuracy in the measurement of refractive power in related schemes.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The present application provides a method, device and storage medium for measuring diopter, aiming to solve the problem of low accuracy in measuring diopter in related solutions.
[0005] To achieve the above object, the present application provides a method for measuring diopter, which comprises the following steps:
[0006] Acquire at least one optometry image acquired by an acquisition module based on a zoom lens;
[0007] Determining a focusing degree associated with the optometry image;
[0008] According to a preset focusing degree interval, determining a target optometry image corresponding to the focusing degree in the preset focusing degree interval;
[0009] According to the refraction point in the target optometry image, the corresponding refraction degree is determined and output.
[0010] In one embodiment, the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image includes:
[0011] identifying the refraction point in at least one of the target optometry images;
[0012] Determining the degree of discreteness of the refractive points according to the characteristic information of the refractive points;
[0013] When the discrete degree of the refractive point is less than a preset threshold, obtaining the refractive power associated with the target optometry image corresponding to the refractive point;
[0014] The diopter is output.
[0015] In one embodiment, after the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes:
[0016] Acquire a target image captured by a target acquisition module based on retinal imaging and a pre-stored initial image, wherein the target image is acquired by the initial image based on retinal imaging;
[0017] Extracting point light sources of the initial image and the target image;
[0018] Identifying characteristic parameters of the point light source;
[0019] A scattering model is loaded, the characteristic parameters are input into the scattering model, and the scattering index output by the scattering model is obtained.
[0020] In one embodiment, after the step of inputting the characteristic parameter into the scattering model and acquiring the scattering index output by the scattering model, the method further includes:
[0021] Outputting a scattering result interface, the scattering result interface including a target image display area, an initial image display area, a scattering index display box and controls;
[0022] After detecting that the scattering model outputs the scattering index, displaying the scattering index in the scattering index display box;
[0023] Acquire the target image and the initial image, and display them in the target image display area and the initial image display area;
[0024] When the control is triggered, it jumps to the scattering curve interface.
[0025] In one embodiment, after the step of jumping to the scattering curve interface when the control is triggered, the method further includes:
[0026] outputting the scattering curve interface, wherein the scattering curve interface includes a scattering curve display area;
[0027] A scattering curve is constructed in the scattering curve display area according to the scattering index and the scattering curve function.
[0028] In one embodiment, after the step of inputting the characteristic parameter into the scattering model and acquiring the scattering index output by the scattering model, the method further includes:
[0029] When the scattering index is greater than a preset threshold, determining that the pupil of the user associated with the scattering index is in an astigmatism state;
[0030] Obtaining a pre-stored relationship table, wherein the relationship table stores a mapping relationship between the scattering index and the severity of astigmatism;
[0031] According to the scattering index, the matching severity is searched in the relationship table, and the severity and the astigmatism state are associated with the user and saved.
[0032] In one embodiment, after the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes:
[0033] obtaining the diopter;
[0034] According to the diopter, judging whether the corresponding user is myopic, and determining the degree of myopia of the user according to the diopter;
[0035] The myopia degree is associated with the user and saved.
[0036] In one embodiment, after the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes:
[0037] Outputting an optometry interface, the optometry interface including an optometry image display area and a corresponding diopter display frame;
[0038] The target light optometry image is rendered to the optometry image display area, and the diopter corresponding to the target light optometry image is displayed in the diopter display frame.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a refractive power measuring device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the refractive power measuring method as described above.
[0040] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the refractive power measurement method as described above are implemented.
[0041] The present application provides a method for measuring diopter, a device for measuring diopter and a storage medium. The method acquires at least one optometry image acquired by an acquisition module based on a zoom lens, then determines the focus degree associated with the optometry image, and determines a target optometry image corresponding to the focus degree in the preset focus degree interval according to a preset focus degree interval, and finally determines and outputs the corresponding diopter according to the refractive point in the target optometry image. The above method acquires the corresponding optometry image through a zoom lens, thereby obtaining the diopter according to the target optometry image in the preset focus degree range in the optometry image, thereby improving the accuracy of the diopter measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A schematic diagram of a flow chart of a first embodiment of a method for measuring diopter of the present application;
[0045] Figure 2 This is the overall architecture diagram involved in the embodiment of the present application;
[0046] Figure 3 This is a schematic diagram of the process of collecting optometry images involved in the embodiment of the present application;
[0047] Figure 4 This is a schematic diagram of the optometry interface involved in the embodiment of the present application;
[0048] Figure 5 A schematic flow chart of a second embodiment of the diopter measurement method of the present application;
[0049] Figure 6 A schematic flow chart of a third embodiment of the method for measuring diopter of the present application;
[0050] Figure 7 This is a schematic diagram of the scattering result interface involved in the embodiment of the present application;
[0051] Figure 8 This is a schematic diagram of the scattering curve interface involved in the embodiment of the present application;
[0052] Fig. 9This is a schematic diagram of the architecture of the hardware operating environment of the refractive power measurement device involved in the embodiment of the present application.
[0053] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] In order to better understand the above technical solution, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0056] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0057] The main solution of the present application is: obtaining at least one optometry image acquired by an acquisition module based on a zoom lens; determining the focusing degree associated with the optometry image; determining, according to a preset focusing degree interval, a target optometry image corresponding to the focusing degree in the preset focusing degree interval; determining and outputting the corresponding refractive degree according to the refractive point in the target optometry image.
[0058] The refractive power indicates the eye's ability to refract light and is an important indicator for evaluating whether vision is normal. At present, the subjective optometry method is usually used in the optometry process. In this method, the staff holds lenses with different focusing powers and places them in front of the pupil to be measured. The staff then asks which lens has a clearer field of view. Finally, the focusing power corresponding to the clearer lens is used as the pupil parameter to calculate the pupil's refractive power. However, the above method requires frequent switching of lenses. Since the result of lens switching is discrete, this means that the measurement result will be rounded according to the available lens power, which leads to low accuracy in the measurement of refractive power in related schemes.
[0059] The present application acquires at least one optometry image acquired by an acquisition module based on a zoom lens, then determines the focus degree associated with the optometry image, and determines a target optometry image corresponding to the focus degree in the preset focus degree interval according to a preset focus degree interval, and finally determines and outputs the corresponding refractive power according to the refractive point in the target optometry image. The above method acquires the corresponding optometry image through a zoom lens, thereby obtaining the refractive power according to the target optometry image in the preset focus degree range in the optometry image, thereby improving the accuracy of the refractive power measurement.
[0060] It should be noted that the execution subject of this embodiment may be a measurement system, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a diopter measurement device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the measurement system as an example of the execution subject to illustrate this embodiment and the following embodiments.
[0061] Embodiment 1
[0062] Based on this, the present application embodiment provides a method for measuring diopter, referring to Figure 1 , Figure 1 This is a flow chart of a first embodiment of a method for measuring diopter of the present application. The method for measuring diopter includes steps S10 to S30:
[0063] Step S10: obtaining at least one optometry image acquired by the acquisition module based on the zoom lens.
[0064] In this embodiment, the processing action is performed by a measurement system, the measurement system is connected to the acquisition module, and the acquisition module is composed of a laser, a zoom lens, and an image sensor. Figure 2 As shown, Figure 2 This is the overall architecture diagram involved in the embodiment of the present application, such as Figure 2 , the measurement system is connected to the acquisition module. When the measurement process of the measurement system is triggered, the connected acquisition module acquires at least one acquired optometry image. The above-mentioned measurement process can be triggered by the user by triggering a control in the interface corresponding to the measurement system, so that the measurement system receives the instruction corresponding to the control, thereby triggering the measurement process. When the acquisition module completes the acquisition process of the optometry image, it can also feed back a message of acquisition completion to the measurement system, thereby triggering the measurement process.
[0065] Specifically, first check that the acquisition module has been correctly installed and connected to the measurement system. A script can be set in the measurement system to detect whether the acquisition module is connected and can be used normally. The script is triggered by the administrator's output instruction, or triggered by a trigger bound to the script. It should be noted that if the script execution is triggered by a trigger, the above trigger needs to be associated with a preset trigger instruction, such as when a connection request from the acquisition module is detected, the trigger calls the script and executes it. After the script is triggered, a test request is sent to the acquisition module. After the acquisition module receives the test request, the laser and image sensor in the acquisition module are called by the detection tool to detect whether the laser and image sensor can operate correctly, and after the detection is completed, the corresponding results are fed back to the measurement system, thereby realizing the inspection of the acquisition module.
[0066] Then open the image acquisition software in the acquisition module, which will provide functions such as image preview, parameter setting, and trigger mode selection. In the image acquisition software interface, select the focus degree of the zoom lens. By adjusting the image acquisition parameters such as resolution, frame rate, exposure time, etc., the image quality of the acquired image can be guaranteed. Then select a suitable trigger mode in the software, such as internal trigger including continuous acquisition, single frame acquisition, or external trigger including soft trigger and hard trigger. In the internal trigger mode, you can directly click the acquisition button to start acquiring images. In the external trigger mode, the acquisition needs to be triggered according to external signals such as button presses, sensor triggers, etc. When the acquisition operation is triggered, the image acquisition module will start capturing optometry images. The acquired optometry images will be automatically saved in the specified folder and displayed and processed in the interface.
[0067] Before taking the optometry image, make sure the pupil to be tested is looking at the designated point to obtain a stable and clear image. Before the formal acquisition, you can take several test shots to check the image effect and make necessary adjustments. When all settings are ready, capture at least one optometry image through the zoom lens. Then check the acquired images to confirm that they contain the required details and have no obvious defects.
[0068] As an optional implementation method of collecting optometry images, Figure 3 As shown, Figure 3 Schematic diagram of the process of collecting optometry images involved in the embodiment of the present application. Figure 3When the acquisition module is turned on, a beam of light is emitted to the pupil to be detected through the laser, wherein the emitted light passes through the zoom lens and then enters the pupil to be detected. After the laser enters the retina of the pupil to be detected, it is reflected onto the imaging plate to form a light spot. Then the image sensor collects the light spot on the imaging plate to generate an optometry image. Then adjust the focus of the zoom lens, continue to emit the laser to the pupil to be detected through the zoom lens, and after the laser hits the retina of the pupil to be detected, it is reflected onto the imaging plate to form a light spot. Finally, the image sensor collects the light spot formed on the imaging plate to obtain an optometry image.
[0069] Step S20: Determine the focusing degree associated with the optometry image.
[0070] In this embodiment, the optometry image is a light spot formed by the reflection of the laser through the zoom lens, and then collected by the image sensor. Each optometry image corresponds to the focus degree of the zoom lens. After the optometry image is captured, the focus degree of the zoom lens at this time is obtained, and the focus degree is associated with the optometry image and saved. Therefore, the focus degree associated with the optometry image can be directly determined.
[0071] Step S30: According to a preset focusing degree interval, determining a target optometry image corresponding to the focusing degree in the preset focusing degree interval.
[0072] In this embodiment, the preset focus degree interval is determined by at least one optometry image and can be manually set by an administrator according to actual needs. The preset focus degree interval can also be automatically determined based on the light spot in the optometry image. The preset focus degree interval is recorded, including the minimum value and the maximum value. The optometry image records the light spot formed by the reflection of the laser entering the retina through the zoom lens. According to the light spot in the optometry image, the focus degree can be screened out, and then the preset focus degree interval is determined. By determining the preset focus degree interval, in at least one optometry image, the target optometry image that meets the requirements is screened out, that is, the optometry images whose associated focus degrees are in the preset focus degree interval are screened out, and these optometry images are used as target optometry images.
[0073] As an optional implementation, the target optometry image is determined by first importing all pre-processed optometry images into the analysis software, and configuring corresponding analysis parameters in the analysis software according to the preset focus degree interval, wherein the analysis parameters are determined by two thresholds in the focus degree interval, i.e., the maximum value and the minimum value. Then, the analysis software is run to evaluate the focus degree of each optometry image according to the analysis parameters, compare it with the preset focus degree interval, and select the optometry images in the focus degree interval. These optometry images are output as target optometry images.
[0074] In addition, after the analysis software outputs the above results, the results can also be displayed in the interface, and professionals can manually review the analysis results to ensure that there are no omissions or misclassifications.
[0075] Step S40: Determine and output the corresponding diopter according to the refraction point in the target optometry image.
[0076] In this embodiment, the refractive point is a light spot formed by the reflection of the laser beam entering the retina of the pupil to be detected. The image of the light spot is collected by the image sensor, so that the refractive point can be determined in the target optometry image. According to the preset rules in the image analysis software, the refractive power of the pupil to be detected is obtained from the refractive points in each of the target optometry images, and the refractive power is output to the front-end interface.
[0077] Optionally, in this embodiment, the step of determining and outputting a corresponding diopter according to a refraction point in the target optometry image includes:
[0078] Identify the refraction point in at least one of the target optometry images; determine the discreteness of the refraction point based on the characteristic information of the refraction point; when the discreteness of the refraction point is less than a preset threshold, obtain the refraction degree associated with the target optometry image corresponding to the refraction point; and output the refraction degree.
[0079] Specifically, first load the target optometry image into the image analysis software and ensure that the target optometry image is clear and noise-free. If the image is in color, it can be converted to a grayscale image to simplify subsequent processing steps. Then, use image enhancement techniques such as contrast enhancement and sharpening to improve the visibility and clarity of the refraction points in the image. Then use edge detection algorithms (such as Canny edge detection) to identify the refraction points in the image.
[0080] For the identified refractive points, the degree of dispersion is calculated. Specifically, the characteristic information of the refractive points, such as the position, shape, size, etc., can be extracted from the detected refractive points, and then the degree of dispersion of the refractive points can be determined by the position, shape, and size of the refractive points. The degree of dispersion reflects the diffusion of the refractive points in the image. If the refractive points are more concentrated, the degree of dispersion is small; if the refractive points are more diffuse, the degree of dispersion is large. The calculated degree of dispersion is compared with a preset threshold. If the degree of dispersion is less than the preset threshold, it is considered that the distribution of the refractive points is concentrated. If the degree of dispersion is greater than or equal to the preset threshold, the refractive points are more diffuse. When the refractive points are more concentrated, the target refractive image corresponding to the refractive points is used as the acquisition image of the refractive power. Then, according to the refractive power associated with the image, the refractive power corresponding to the refractive point is determined. This usually requires a previously established correspondence table or database between the refractive points and the refractive power, so that the refractive power matching the refractive points can be found from the correspondence table or database.
[0081] As an optional implementation, after the refraction point is identified, a mathematical model between the refraction point and the diopter is established according to the principle of optometry, wherein the mathematical model is established according to parameters such as the shape and position of the refraction point. Then the detected refraction point data is substituted into the model, and data fitting is performed to solve the corresponding diopter. Error correction is performed on the calculated diopter to improve the accuracy of the result. The calculated diopter is displayed on the screen in the form of numbers or charts for the user to view. Finally, the result is saved in a file for subsequent analysis and processing.
[0082] In addition, each of the target optometry images is an image collected by the light spot generated by the laser entering the lens with different focusing degrees. In this step, the refractive power corresponding to the lens is calculated by the focusing degree lens, and the refractive power is associated with the target optometry image and saved, so that the corresponding refractive power can be obtained after determining the refractive point with a discrete degree less than a preset threshold.
[0083] Optionally, in this embodiment, after the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes:
[0084] Acquire the diopter; determine whether the corresponding user is myopic based on the diopter, and determine the myopia degree of the user based on the diopter; and associate the myopia degree with the user and save it.
[0085] Specifically, the measured refractive index is obtained, and the optometry result is interpreted according to the refractive index. The optometry result is usually displayed on the optometry interface, and the refractive index displayed on the optometry interface. If the value is preceded by a negative sign, it represents myopia; if it is a positive sign, it represents hyperopia. According to the recorded refractive index, the user's myopia is analyzed. If the refractive index is a negative value and is within a certain range (such as -0.25D to -6.00D or higher, D represents the refractive index), the user is myopic. The degree of myopia is usually directly related to the refractive index, and 1 diopter is equal to 100 degrees. Therefore, the degree of myopia can be calculated by multiplying the refractive index by 100. Finally, a user profile is established, including personal information such as name, age, gender, etc. and eye health information such as optometry results, degree of myopia, etc. The calculated degree of myopia is recorded in the user profile to ensure the association with the user's personal information. An electronic archive system can be used to save this information to ensure the integrity and traceability of the information. In addition, the user's optometry results and myopia can be updated regularly to reflect changes in the user's eye health. The accuracy and completeness of the user's profile is maintained to ensure that the user's eye health information can be quickly obtained when needed.
[0086] Furthermore, in this embodiment, after the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes:
[0087] Output an optometry interface, the optometry interface including an optometry image display area and a corresponding diopter display frame; render the target light optometry image to the optometry image display area, and display the diopter corresponding to the target light optometry image in the diopter display frame.
[0088] Specifically, Figure 4 As shown, Figure 4 Schematic diagram of the optometry interface involved in the embodiment of the present application, the optometry interface includes an optometry image display area and a corresponding diopter display frame. After obtaining a target optometry image within a preset focus range, the target optometry image is rendered to the optometry image display area, such as Figure 4 The target optometry image in the figure is shown in the diopter display box below the target optometry image. Each target optometry image has a corresponding diopter displayed in the diopter display box. In addition, the best focus diopter diagram is marked with a green box. The best focus diopter diagram is a target optometry image with a discrete degree of refraction points less than a preset threshold.
[0089] In the technical solution provided in this embodiment, at least one optometry image acquired by the acquisition module based on the zoom lens is acquired, and then the focus degree associated with the optometry image is determined, and according to the preset focus degree interval, the target optometry image corresponding to the focus degree in the preset focus degree interval is determined, and finally, according to the refractive point in the target optometry image, the corresponding refractive degree is determined and output. The solution of this embodiment acquires the corresponding optometry image through the zoom lens, so as to obtain the refractive degree according to the target optometry image in the preset focus degree range in the optometry image, thereby improving the accuracy of the refractive degree measurement.
[0090] Embodiment 2
[0091] Based on Example 1, refer to Figure 5 , Figure 5 This is a flow chart of the second embodiment of the method for measuring diopter of the present application. After the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, it also includes steps S50 to S80:
[0092] Step S50: Acquire a target image captured by a target acquisition module based on retinal imaging and a pre-stored initial image, wherein the target image is acquired by the initial image based on retinal imaging.
[0093] In this embodiment, the target acquisition module is a retinal imaging device, such as a fundus camera. According to the various parameters of the pupil to be detected, the focus, exposure time and other parameters of the retinal imaging device are adjusted. And it is ensured that the light source of the device can evenly illuminate the retina of the pupil to be detected. Then the retinal imaging device is started, and the pupil to be detected is made to look at a specified point or light. The retinal image of the pupil to be detected is taken by the device, which is the target image.
[0094] During the specific shooting process, the retinal imaging device projects light to the pupil to be tested and receives the reflected light to form a target image. The target image is then fed back to the measurement system, which saves the target image.
[0095] Step S60: extracting point light sources of the initial image and the target image.
[0096] Step S70: Identify characteristic parameters of the point light source.
[0097] Step S80: loading a scattering model, inputting the characteristic parameters into the scattering model, and acquiring the scattering index output by the scattering model.
[0098] In this embodiment, after acquiring the target image captured by the target acquisition module based on retinal imaging, the target image is imported into the image analysis software of the measurement system to determine the scattering model, wherein the scattering model can be based on physical principles such as Rayleigh scattering, Mie scattering, etc., or can be based on statistics or experience.
[0099] Then, characteristic parameters related to scattering, such as brightness, contrast, texture, etc., are extracted from the preprocessed image. The scattering coefficient is calculated using the extracted characteristic parameters and the selected scattering model. The scattering coefficient is an indicator that quantifies the severity of the scattering phenomenon. Based on the scattering coefficient and other related parameters, the scattering index is determined. The scattering index is usually a dimensionless quantity used to comprehensively evaluate the scattering phenomenon in the target image. The calculated scattering index is displayed in the form of a graph or a numerical value. This can be displayed directly on the interface of the image processing software, or the result can be exported to a file.
[0100] Specifically, a pre-stored initial image is retrieved from an image database, wherein the initial image is the original image of the target image, that is, the target image is the initial image taken based on the retinal imaging of the pupil to be detected. A point light source refers to a relatively independent luminous point in an image with high brightness and small shape. Then, the point light sources of the initial image and the target image are extracted, and specifically, the point light sources can be separated from the image by using methods such as threshold segmentation and edge detection. Then, feature information such as brightness, position, and size of the point light sources are extracted, and a feature matching algorithm is used to find the corresponding point light sources between the initial image and the target image. Finally, the scattering index is calculated by comparing the changes in feature information such as brightness and position of the point light sources in the initial image and the target image.
[0101] Optionally, the calculation method of the scattering index can be brightness change analysis, by calculating the brightness change of the point light source in the target image relative to the initial image to reflect the influence of the scattering phenomenon on the light intensity. It is also possible to analyze the position offset of the point light source in the target image relative to the initial image to evaluate the influence of the scattering phenomenon on the position of the light source. It is also possible to combine the above two methods, and use an algorithm to comprehensively calculate the scattering index of the target image based on characteristic information such as brightness change and position offset.
[0102] Furthermore, a target image containing a point light source is first acquired, and the target image is preprocessed, including denoising, contrast enhancement, color correction, etc., to improve image quality. Then, in the preprocessed image, an image processing algorithm is used to locate the position of the point light source. In order to extract key information such as the brightness, color, and shape of the point light source. The scattering model can be based on physics, such as Rayleigh scattering, Mie scattering, etc., or it can be based on experience, such as a model obtained by fitting a large amount of experimental data.
[0103] The extracted point light source information is combined with the scattering model to calculate the scattering parameters. These parameters include the scattering coefficient, scattering angle distribution, etc. Then, according to the definition of the scattering parameters and the scattering model, the scattering index is calculated.
[0104] Optionally, in this embodiment, after the step of determining the scattering index according to the target image and outputting the scattering index, the method further includes:
[0105] When the scattering index is greater than a preset threshold, the pupil of the user associated with the scattering index is determined to be in an astigmatism state; a pre-stored relationship table is obtained, in which a mapping relationship between the scattering index and the severity of astigmatism is stored; according to the scattering index, a matching severity is queried in the relationship table, and the severity and the astigmatism state are associated with the user and saved.
[0106] Specifically, a preset threshold for determining the astigmatism state is set according to the standard. The measured scattering index is compared with the preset threshold. If the scattering index is greater than the preset threshold, the pupil of the user is determined to be in an astigmatism state. A correspondence between the scattering index and the severity of astigmatism is established. Specifically, a correspondence table between the scattering index and the severity of astigmatism can be established based on historical data. The correspondence should be able to accurately reflect the impact of changes in the scattering index on the severity of astigmatism. According to the measured scattering index, the corresponding severity of astigmatism is searched in the correspondence table. Finally, the determined astigmatism state, the determined severity of astigmatism, and the basic information of the user are associated and saved in a database.
[0107] In the overall technical solution provided in this embodiment, a target image captured by a target acquisition module based on retinal imaging and a pre-stored initial image are obtained, wherein the target image is acquired by the initial image based on retinal imaging, and then point light sources of the initial image and the target image are extracted, and then characteristic parameters of the point light sources are identified, and finally a scattering model is loaded, and the characteristic parameters are input into the scattering model, and the scattering index output by the scattering model is obtained. This embodiment calculates the scattering index through the target image acquired by the target acquisition module to improve the accuracy of the measurement of the pupil scattering index to be detected.
[0108] Embodiment 3
[0109] Based on any embodiment, refer to Figure 6 , Figure 6 This is a flow chart of the third embodiment of the method for measuring diopter of the present application, after the step of inputting the characteristic parameter into the scattering model and obtaining the scattering index output by the scattering model, it also includes steps S90 to S110:
[0110] Step S90: outputting a scattering result interface, wherein the scattering result interface includes a target image display area, an initial image display area, a scattering index display box, and controls.
[0111] Step S100: after detecting that the scattering model outputs the scattering index, displaying the scattering index in the scattering index display box; acquiring the target image and the initial image, and displaying them in the target image display area and the initial image display area.
[0112] Step S110: When the control is triggered, jump to the scattering curve interface.
[0113] In this embodiment, if Figure 7 As shown, Figure 7 This is a schematic diagram of the scattering result interface involved in the embodiment of the present application. The scattering result interface includes a target image display area, an initial image display area, a scattering index display box, and a control. After detecting that the scattering model outputs the scattering index, the back end of the measurement system obtains the scattering index, sends the scattering index to the scattering result interface in the front end, and displays it in the scattering index display box. Then the measurement system obtains the target image acquired by the target acquisition module and the pre-stored initial image, and sends the target image and the initial image to the scattering result interface in the front end. Thereby, it is displayed in the target image display area and the initial image display area.
[0114] In addition, when the control is triggered, the interface jumps to the scattering curve interface. The control may be a control triggered by the user in the scattering result interface based on a selection device.
[0115] Optionally, in this embodiment, after the step of jumping to the scattering curve graph when the control is triggered, the method further includes:
[0116] The scattering curve interface is output, and the scattering curve interface includes a scattering curve display area; and a scattering curve is constructed in the scattering curve display area according to the scattering index and the scattering curve function.
[0117] Specifically, Figure 8 As shown, Figure 8 The scattering curve interface diagram of the embodiment of the present application includes a scattering curve display area, and a scattering curve is constructed in the scattering curve display area according to the scattering index and the scattering curve function.
[0118] In the technical solution provided in this embodiment, a scattering result interface is output, and the scattering result interface includes a target image display area, an initial image display area, a scattering index display box and a control. After detecting that the scattering model outputs the scattering index, the scattering index is displayed in the scattering index display box, and then the target image and the initial image are acquired and displayed in the target image display area and the initial image display area. Finally, when the control is triggered, the interface is jumped to the scattering curve interface. The solution of this embodiment outputs the scattering index through the scattering result interface, so that the user can intuitively view the scattering index and the comparison process of the scattering index, thereby improving the accuracy of measuring the scattering index.
[0119] Since the system introduced in the embodiment of the present application is a system used to implement the method of the embodiment of the present application, based on the method introduced in the embodiment of the present application, the person skilled in the art can understand the specific structure and deformation of the system, so it is not repeated here. All systems used in the method of the embodiment of the present application belong to the scope of protection of this application.
[0120] The present application provides a device for measuring diopter, the device comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for measuring diopter in the above-mentioned embodiment 1.
[0121] Reference below Fig. 9 , which shows a schematic diagram of the structure of a diopter measuring device suitable for implementing the embodiment of the present application. The diopter measuring device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig. 9 The diopter measurement device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0122] like Fig. 9As shown, the diopter measuring device may include a processing device 1001 (e.g., a core processor, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the diopter measuring device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 may allow the diopter measuring device to communicate with other devices wirelessly or by wire to exchange data. Although the diopter measuring device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.
[0123] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0124] The diopter measuring device provided by the present application adopts the diopter measuring method in the above embodiment, which can solve the technical problem of low accuracy of diopter measurement in related solutions. Compared with the prior art, the beneficial effects of the diopter measuring device provided by the present application are the same as the beneficial effects of the diopter measuring method provided by the above embodiment, and other technical features in the diopter measuring device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0125] It should be understood that the various parts disclosed in this application can be implemented by 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 one or more embodiments or examples in a suitable manner.
[0126] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0127] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for measuring the diopter in the above-mentioned embodiment.
[0128] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. 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 combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0129] The computer-readable storage medium may be included in the diopter measuring device; or may exist independently without being assembled into the diopter measuring device.
[0130] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the diopter measuring device, the diopter measuring device: obtains at least one optometry image acquired by the acquisition module based on the zoom lens; determines the focusing degree associated with the optometry image; determines, according to a preset focusing degree interval, a target optometry image corresponding to the focusing degree in the preset focusing degree interval; determines and outputs the corresponding refractive degree according to the refractive point in the target optometry image.
[0131] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0132] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0133] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0134] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for measuring diopter, and can solve the technical problem that the accuracy of diopter measurement in related solutions is low. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the method for measuring diopter provided in the above-mentioned embodiment, and will not be described in detail here.
[0135] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the above-mentioned method for measuring refractive power when executed by a processor.
[0136] The computer program product provided in this application can solve the technical problem of low accuracy in measuring diopter in related solutions. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of this application are the same as the beneficial effects of the diopter measurement method provided in the above embodiment, which will not be described in detail here.
[0137] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for measuring diopter, characterized in that: The method for measuring the diopter comprises the following steps: Acquire at least one optometry image acquired by an acquisition module based on a zoom lens; Determining a focusing degree associated with the optometry image; According to a preset focusing degree interval, determining a target optometry image corresponding to the focusing degree in the preset focusing degree interval; According to the refraction point in the target optometry image, the corresponding refraction degree is determined and output.
2. The method according to claim 1, characterized in that The step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image comprises: identifying the refraction point in at least one of the target optometry images; Determining the degree of discreteness of the refractive points according to the characteristic information of the refractive points; When the discrete degree of the refractive point is less than a preset threshold, obtaining the refractive power associated with the target optometry image corresponding to the refractive point; The diopter is output.
3. The method according to claim 1, characterized in that After the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes: Acquire a target image captured by a target acquisition module based on retinal imaging and a pre-stored initial image, wherein the target image is acquired by the initial image based on retinal imaging; Extracting point light sources of the initial image and the target image; Identifying characteristic parameters of the point light source; A scattering model is loaded, the characteristic parameters are input into the scattering model, and the scattering index output by the scattering model is obtained.
4. The method according to claim 3, characterized in that After the step of inputting the characteristic parameter into the scattering model and acquiring the scattering index output by the scattering model, the method further includes: Outputting a scattering result interface, the scattering result interface including a target image display area, an initial image display area, a scattering index display box and controls; After detecting that the scattering model outputs the scattering index, displaying the scattering index in the scattering index display box; Acquire the target image and the initial image, and display them in the target image display area and the initial image display area; When the control is triggered, it jumps to the scattering curve interface.
5. The method according to claim 4, characterized in that After the step of jumping to the scattering curve interface when the control is triggered, the method further includes: outputting the scattering curve interface, wherein the scattering curve interface includes a scattering curve display area; A scattering curve is constructed in the scattering curve display area according to the scattering index and the scattering curve function.
6. The method according to claim 3, characterized in that After the step of inputting the characteristic parameter into the scattering model and acquiring the scattering index output by the scattering model, the method further includes: When the scattering index is greater than a preset threshold, determining that the pupil of the user associated with the scattering index is in an astigmatism state; Obtaining a pre-stored relationship table, wherein the relationship table stores a mapping relationship between the scattering index and the severity of astigmatism; According to the scattering index, the matching severity is searched in the relationship table, and the severity and the astigmatism state are associated with the user and saved.
7. The method according to claim 1, characterized in that After the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes: obtaining the diopter; According to the diopter, judging whether the corresponding user is myopic, and determining the degree of myopia of the user according to the diopter; The myopia degree is associated with the user and saved.
8. The method according to claim 1, characterized in that After the step of determining and outputting the corresponding diopter according to the refraction point in the target optometry image, the method further includes: Outputting an optometry interface, the optometry interface including an optometry image display area and a corresponding diopter display frame; The target light optometry image is rendered to the optometry image display area, and the diopter corresponding to the target light optometry image is displayed in the diopter display frame.
9. A diopter measuring device, characterized in that: The refractive power measuring device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the refractive power measuring method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method for measuring refractive power according to any one of claims 1 to 8 are implemented.