A method, device, medium, and product for displaying visual targets for vision testing based on smart devices.
By acquiring the screen pixel density and visual acuity level chart of the terminal device, the pixel height of the letter E visual target is dynamically rendered, solving the problem of adjusting the graphic size of vision test on smart devices and improving the accuracy and applicability of vision test.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHANGHAI SHIQUAN SHIMEI TECH DEV CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-06-02
AI Technical Summary
Traditional vision charts are difficult to adapt to the screen size of smart devices and the differences in user environments, especially in tests involving children, individuals, or groups. How can we dynamically adjust the display size of vision test graphics to improve test accuracy while ensuring scientific validity?
By acquiring the screen pixel density value of the terminal device, combined with the test mode and preset vision level chart, the pixel height of the letter E optotype is dynamically rendered. The physical height of the letter E is calculated based on the optotype angle and test distance, and the graphic size consistent with the standard vision chart is displayed on the terminal device.
It enables accurate display of graphic sizes consistent with standard vision charts on smart devices, improving the accuracy of vision tests and making it suitable for automatic calculation of different test distances and refractive values.
Smart Images

Figure CN122123633A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vision testing, and in particular to a vision testing target display method, device, medium, and product based on a smart device. Background Technology
[0002] Traditional vision charts rely on standardized viewing distances (such as 5 meters) for manual testing, making it difficult to adapt to the screen sizes of portable devices like smartphones and the varying user environments. This is especially true for children, solo testers, and families with multiple users, where the testing distance differs. Therefore, dynamically adjusting the display size of the vision test charts while maintaining scientific accuracy has become a crucial issue in the field of vision health testing. Summary of the Invention
[0003] The purpose of this application is to provide a method, device, medium, and product for displaying visual acuity test targets based on smart devices, so as to accurately display graphic sizes consistent with standard visual acuity charts in terminal devices, thereby improving the accuracy of visual acuity testing.
[0004] To achieve the above objectives, this application provides the following solution: In a first aspect, this application provides a method for displaying visual targets for vision testing based on a smart device, including: Obtain the screen pixel density value of the terminal device; Based on the screen pixel density value, the test distance corresponding to the test mode, and the preset vision level table, determine the display pixel height of the letter E under each level; The graphic icon is dynamically rendered on the screen of the terminal device according to the pixel height of the letter E under each gear.
[0005] In one embodiment, the display pixel height of the letter E at each visual acuity level is determined based on the screen pixel density value, the test distance corresponding to the test mode, and a preset visual acuity level table. Specifically, this includes: The process of determining the pixel height of the letter E in any preset vision level table includes: Based on the visual acuity value corresponding to the current level in the preset visual acuity level table, determine the resolving angle at the current level; Based on the resolution angle, determine the target angle at the current gear; the target angle is the visual angle formed by the target in front of the tester. Determine the physical height of the letter E in the current gear based on the target angle in the current gear and the test distance corresponding to the current test mode; The display pixel height of the letter E in the current gear is determined based on the physical height of the letter E in the current gear and the screen pixel density value.
[0006] In one embodiment, it further includes: The tester's current visual acuity is determined based on the pixel height of the smallest E letter recognized by the tester. The current visual acuity value is converted into an approximate refractive power for display and recording.
[0007] In one embodiment, the tester's current visual acuity is determined based on the pixel height of the smallest "E" recognized by the tester, specifically including: The physical height of the smallest E letter identified by the tester is determined based on the display pixel height of the smallest E letter and the screen pixel density value. Determine the angle of the smallest E based on the physical height of the smallest E letter identified by the tester and the test distance corresponding to the current test mode; Determine the tester's minimum resolvable angle based on the angle of the smallest E-letter target; The tester's current visual acuity is determined based on the tester's minimum resolving angle.
[0008] In one embodiment, converting the current visual acuity value into an approximate refractive power specifically includes: Based on the current visual acuity value, an empirical model is used to determine the approximate refractive error of the test subject; the empirical model is a lookup table model, logarithmic fitting, polynomial fitting, or a clinically validated mathematical mapping model.
[0009] Secondly, this application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method for displaying visual targets for vision testing based on a smart device.
[0010] Thirdly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method for displaying visual targets for vision testing based on a smart device.
[0011] Fourthly, this application provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method for displaying visual targets for vision testing based on a smart device.
[0012] According to the specific embodiments provided in this application, this application has the following technical effects: This application provides a method, device, medium, and product for displaying visual acuity test targets based on a smart device. It involves acquiring the screen pixel density value of the terminal device; determining the display pixel height of the letter "E" at each visual acuity level based on the screen pixel density value, the test distance corresponding to the test mode, and a preset visual acuity level chart; and dynamically rendering graphic targets on the screen of the terminal device according to the displayed pixel height of the letter "E" at each level. This application can accurately display graphic sizes consistent with standard visual acuity charts on the terminal device, thereby improving the accuracy of visual acuity testing. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating a vision test optotype display method based on a smart device, provided as an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0015] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0016] This application relates to the fields of vision testing and electronic display technology, and in particular to a vision testing method and graphic display algorithm suitable for smart terminals, especially an algorithm that automatically calculates the pixel height of the displayed image based on different test distances and refractive values.
[0017] This invention proposes an E-letter optotype display algorithm that adapts to different test distances and refractive values. It can accurately display graphic sizes consistent with standard vision charts on mobile phone screens, thereby improving the accuracy of vision tests and is suitable for various usage modes such as children, single person, and double person.
[0018] In a standard visual acuity chart, a test subject with normal visual acuity (5.0 or 1.0) can identify a visual target with a visual angle of 5 arcmin from 5 meters away. Converting this to an angle and combining it with the test distance yields the actual physical height of the visual target, which can then be converted into pixels using the screen pixel density (PPI) of the terminal device.
[0019] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0020] In one exemplary embodiment, such as Figure 1 As shown, a method for displaying optotypes for vision testing based on a smart device is provided, including the following steps: S1: Obtain the screen pixel density value of the terminal device.
[0021] In this embodiment, the device parameters of the terminal device (Redmi 12C) are shown in Table 1.
[0022] Table 1 Terminal Equipment Parameter Table
[0023] S2: Determine the display pixel height of the letter E in each level based on the screen pixel density value, the test distance corresponding to the test mode, and the preset vision level table.
[0024] In this embodiment, the test distances corresponding to different test modes are shown in Table 2.
[0025] Table 2 Test Distance Table for Test Modes
[0026] In this embodiment, the user launches a mobile vision testing app, which reads the device model and obtains the corresponding PPI value. After the user selects a test mode, the vision testing app calculates the pixel height that the letter E should display at each level based on the test distance D and a preset vision level chart, and dynamically renders graphic optotypes on the screen according to the calculation results. The user maintains a stable posture and tests at the set distance. The vision testing app infers the current vision value based on the smallest recognizable optotype pixel, and converts it into an approximate refractive power through an algorithm module for display and recording.
[0027] In one embodiment, the process of determining the pixel height of the letter E at any gear level specifically includes: S21: Determine the resolution angle at the current level based on the visual acuity value corresponding to the current level in the preset visual acuity level table.
[0028] In this embodiment, the resolution angle θ_arcmin is calculated according to the following formula: θ_arcmin = 5 ÷ visual acuity value.
[0029] S22: Determine the target angle at the current gear position based on the resolution angle; the target angle is the visual angle formed in front of the tester by the target.
[0030] In this embodiment, the target angle θ_deg is calculated according to the following formula: θ_deg = θ_arcmin ÷ 60.
[0031] S23: Determine the physical height of the letter E in the current gear based on the target angle in the current gear and the test distance corresponding to the current test mode.
[0032] In this embodiment, the physical height H_m (meters) of the letter E is calculated according to the following formula: H_m = tan(θ_deg) × D; Where D is the test distance corresponding to the test mode.
[0033] S24: Determine the display pixel height of the letter E in the current gear based on the physical height of the letter E in the current gear and the screen pixel density value.
[0034] In this embodiment, the pixel height H_px of the letter E is calculated according to the following formula: H_px = H_m × 39.3701 × PPI; PPI stands for screen pixel density.
[0035] S3: Dynamically render a graphic target on the screen of the terminal device according to the pixel height of the letter E under each gear.
[0036] In one embodiment, the vision test optotype display method based on a smart device further includes: S4: Determine the tester's current visual acuity based on the pixel height of the smallest E letter recognized by the tester.
[0037] While the user (test subject) maintains a stable posture and performs the test at the test distance D corresponding to the selected test mode, the system (vision test app) records the pixel height H_px_min of the smallest optotype (letter E) that the user can correctly identify. Based on this minimum recognizable pixel height, the system uses the following steps to deduce the user's current visual acuity value and further converts it into an approximate refractive power.
[0038] In one embodiment, S4 specifically includes: S41: Determine the physical height of the smallest E letter identified by the tester based on the smallest E letter display pixel height and the screen pixel density value.
[0039] In this embodiment, the system first converts the minimum recognizable target pixel height to the physical height H_m_min (unit: meters) of the target based on the screen pixel density (PPI) of the terminal device: H_m_min=H_px_min÷(39.3701×PPI); Where H_m_min is the physical height of the smallest E letter recognized by the tester.
[0040] S42: Determine the angle of view of the smallest E letter based on the physical height of the smallest E letter identified by the tester and the test distance corresponding to the current test mode.
[0041] In this embodiment, based on the physical height of the target and the test distance D, the system calculates the actual visual angle formed by the target in front of the user's eyes: θ_deg_min=arctan(H_m_min÷D); Wherein, θ_deg_min is the angle of view formed by the overall height of the target at the user's eye, which is the visual angle corresponding to the minimum resolving power in ophthalmology.
[0042] S43: Determine the tester's minimum resolvable angle based on the angle of the smallest E-letter target.
[0043] The system converts the above optotype angles into arcmin, a unit commonly used in ophthalmology: θ_arcmin_min=θ_deg_min×60; Where θ_arcmin_min is the minimum resolvable angle of the tester.
[0044] S44: Determine the tester's current visual acuity based on the tester's minimum resolvable angle.
[0045] Based on the relationship in the international standard visual acuity chart that "normal visual acuity (1.0 or 5.0) corresponds to a 5-arcmin angle", the system calculates the user's current visual acuity value V using the following formula: V = 5 ÷ θ_arcmin_min; The larger θ_arcmin_min is, the worse the user's ability to distinguish and the lower their visual acuity.
[0046] S5: Convert the current visual acuity value into an approximate refractive power for display and recording.
[0047] In one embodiment, converting the current visual acuity value into an approximate refractive power specifically includes: Based on the current visual acuity value, an empirical model is used to determine the approximate refractive error of the test subject; the empirical model is a lookup table model, logarithmic fitting, polynomial fitting, or a clinically validated mathematical mapping model.
[0048] The system inputs the obtained visual acuity values into the empirical conversion model f(V), and converts the visual acuity values into the corresponding approximate refractive power G based on the mapping relationship obtained by fitting clinical experience data. G=f(V); Where f(V) can be a lookup table pattern, logarithmic fitting, polynomial fitting, or other mathematical mapping model based on clinical validation.
[0049] The system will ultimately display and record the visual acuity value and the converted approximate refractive power.
[0050] Table 3 shows the actual height of the optotype and its conversion to pixels based on the change in refractive value (visual acuity) under different test modes (dual mode, single mode, and child mode) on the Redmi 12C phone.
[0051] Table 3 Pixel Conversion Results
[0052] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method for displaying visual targets for vision testing based on a smart device.
[0053] In one exemplary embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the above-described method for displaying visual targets for vision testing based on a smart device.
[0054] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the above-described method for displaying visual targets for vision testing based on a smart device.
[0055] In one exemplary embodiment, a computer device is provided, which may be a server or a terminal, and its internal structure diagram may be as follows. Figure 2As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a vision testing target display method based on a smart device.
[0056] Those skilled in the art will understand that Figure 2 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0057] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0058] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
[0059] The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchain. The processors involved in the embodiments provided in this application may be, but are not limited to, general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc.
[0060] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0061] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for displaying optotypes in a vision test based on a smart device, characterized in that, include: Obtain the screen pixel density value of the terminal device; Based on the screen pixel density value, the test distance corresponding to the test mode, and the preset vision level table, determine the display pixel height of the letter E under each level; The graphic icon is dynamically rendered on the screen of the terminal device according to the pixel height of the letter E under each gear.
2. The method for displaying optotypes for vision testing based on intelligent devices according to claim 1, characterized in that, Based on the screen pixel density value, the test distance corresponding to the test mode, and the preset visual acuity level table, the display pixel height of the letter E at each level is determined, specifically including: The process of determining the pixel height of the letter E in any preset vision level table includes: Based on the visual acuity value corresponding to the current level in the preset visual acuity level table, determine the resolving angle at the current level; Based on the resolution angle, determine the target angle at the current gear; the target angle is the visual angle formed by the target in front of the tester. Determine the physical height of the letter E in the current gear based on the target angle in the current gear and the test distance corresponding to the current test mode; The display pixel height of the letter E in the current gear is determined based on the physical height of the letter E in the current gear and the screen pixel density value.
3. The method for displaying visual targets for vision testing based on intelligent devices according to claim 1, characterized in that, Also includes: The tester's current visual acuity is determined based on the pixel height of the smallest E letter recognized by the tester. The current visual acuity value is converted into an approximate refractive power for display and recording.
4. The method for displaying optotypes for vision testing based on intelligent devices according to claim 3, characterized in that, The test subject's current visual acuity is determined based on the pixel height of the smallest "E" letter they can identify, specifically including: The physical height of the smallest E letter identified by the tester is determined based on the display pixel height of the smallest E letter and the screen pixel density value. Determine the angle of the smallest E based on the physical height of the smallest E letter identified by the tester and the test distance corresponding to the current test mode; Determine the tester's minimum resolvable angle based on the angle between the smallest E-letter and the target. The tester's current visual acuity is determined based on the tester's minimum resolving angle.
5. The method for displaying visual targets for vision testing based on intelligent devices according to claim 3, characterized in that, Converting the current visual acuity value into an approximate refractive power specifically includes: Based on the current visual acuity value, an empirical model is used to determine the approximate refractive error of the test subject; the empirical model is a lookup table model, logarithmic fitting, polynomial fitting, or a clinically validated mathematical mapping model.
6. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the vision test target display method based on any one of claims 1-5.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the vision test target display method based on any one of claims 1-5.
8. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the vision test target display method based on any one of claims 1-5.