Vision detection method, device, equipment and medium
By obtaining the device resolution of the display device and determining the target size of the visual target, the problem of inaccurate display of small visual targets at high vision levels is solved, and the high accuracy and reliability of visual detection is achieved.
Patent Information
- Application Number
- CN202510051393.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-05-13
AI Technical Summary
The prior art is difficult to accurately display small visual markers at high vision levels, affecting the accuracy of vision tests.
By obtaining the device resolution of the display device, the target size of the target to be displayed is determined, and the target detection distance for detecting the value of the visual acuity to be measured is determined based on the target size.
It realizes reliable vision detection while ensuring clear and complete display of the visual marker, improving the accuracy and reliability of vision detection.
Smart Images

Figure CN119969947A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of visual mark display technology, and specifically relates to a vision detection method, device, equipment and medium. Background Art
[0002] In modern families, the popularity of televisions and other electronic screens makes vision monitoring more convenient. However, the pixel resolution of many televisions and display screens is difficult to accurately present small sight marks at high vision levels, thus affecting the accuracy of vision testing. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a vision detection method, device, equipment and medium that can implement reliable vision detection while ensuring that the visual mark is clearly and completely displayed.
[0004] In a first aspect, an embodiment of the present application provides a vision detection method, comprising:
[0005] Get the device resolution of the display device;
[0006] Determining a target size of a sight mark to be displayed based on the device resolution; the sight mark to be displayed is a random direction sight mark determined according to the visual acuity value to be tested;
[0007] Based on the target size, a target detection distance for detecting the visual acuity value to be measured is determined.
[0008] In some embodiments, obtaining the device resolution of the display device includes:
[0009] Controlling the display device to display an initial calibration line segment in a preset direction, wherein the initial calibration line segment includes a preset first number of pixels;
[0010] Acquire a target calibration line segment having the same length as the preset physical object, obtained by adjusting the number of pixels occupied by the initial calibration line segment based on the preset physical object;
[0011] The device resolution of the display device is determined according to the second number of pixels occupied by the target calibration line segment.
[0012] In some embodiments, the length of the initial calibration line segment is N times the length of the target line segment, the target line segment length is a preset integer centimeter length, and the N times is n times the preset ratio of the real physical resolution to the logical resolution.
[0013] In some embodiments, obtaining a target size corresponding to the visual mark to be displayed at the device resolution includes:
[0014] Get the expected detection distance of user input;
[0015] Based on the expected detection distance, determining a mapping relationship between each visual acuity value and a visual mark difference value;
[0016] Based on the visual mark difference value and the preset visual mark display rule, determining the minimum pixel unit corresponding to the visual mark to be displayed; wherein the visual mark display rule is a pixel rule corresponding to the visual mark, and the pixel rule includes at least one of a pixel distribution rule and a pixel ratio rule;
[0017] Determine whether the device resolution is less than or equal to the minimum pixel unit;
[0018] When the device resolution is less than or equal to the minimum pixel unit, determining the target size corresponding to the visual mark to be displayed based on the expected detection distance; or
[0019] When the device resolution is greater than the minimum pixel unit, the target size corresponding to the optotype to be displayed is determined based on the device resolution and a preset optotype display rule; wherein the optotype display rule is a pixel rule corresponding to the optotype, and the pixel rule includes at least one of a pixel distribution rule and a pixel ratio rule.
[0020] In some embodiments, when the displayed sight mark is the "E" sight mark, the preset sight mark display rule is that the number of pixels contained in the sight mark to be displayed is a multiple of 5;
[0021] When the displayed optotype is another type of optotype, the preset optotype display rule is determined according to the type of the displayed optotype.
[0022] In some embodiments, determining the target detection distance for detecting the visual acuity value to be measured based on the target size includes:
[0023] Obtaining the index angle corresponding to the sight mark to be displayed;
[0024] A target detection distance for detecting the visual acuity value to be measured is determined according to the graduation angle and the target size.
[0025] In some embodiments, it also includes:
[0026] Send distance adjustment prompt information to the user according to the target detection distance.
[0027] In a second aspect, an embodiment of the present application provides a vision detection device, comprising:
[0028] A first acquisition module, used to acquire a device resolution of a display device;
[0029] A second acquisition module is used to determine the target size of the sight mark to be displayed based on the device resolution; the sight mark to be displayed is a random direction sight mark determined according to the visual acuity value to be tested;
[0030] A determination module is used to determine a target detection distance for detecting the visual acuity value to be measured based on the target size.
[0031] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the program.
[0032] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the embodiment of the present application.
[0033] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the method described in the embodiment of the present application.
[0034] The vision detection method, device, equipment and medium proposed in this embodiment achieves effective display of the visual mark to be displayed according to the device resolution by obtaining the device resolution of the display device and determining the target size of the visual mark to be displayed based on the device resolution. It can ensure that the visual mark to be displayed can be displayed clearly and completely by adjusting the target size of the visual mark to be displayed, improve the reliability of the display of the visual mark to be displayed, and provide a visual mark basis for effective detection for vision detection. At the same time, by determining the target detection distance for detecting the visual acuity value to be measured based on the target size, the vision detection can meet the detection distance requirements when the visual mark is reliable, further improving the reliability of vision detection.
[0035] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0037] Figure 1 The following is a diagram showing an implementation environment architecture of the vision detection method provided in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of a process flow of a vision detection method provided by an embodiment of the present application is shown;
[0039] Figure 3A schematic diagram showing a flow chart of a vision detection method provided by another embodiment of the present application is shown;
[0040] Figure 4 A schematic diagram of the structure of an "E" type sight mark provided in an embodiment of the present application is shown;
[0041] Figure 5 A schematic diagram of the structure of a vision detection device provided in an embodiment of the present application is shown;
[0042] Figure 6 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant inventions, rather than to limit the inventions. It should also be noted that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0044] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0045] For the specific implementation environment of the vision detection method proposed in this application, please refer to Figure 1 . Figure 1 The following is a diagram showing the implementation environment architecture of the vision detection method provided in the embodiment of the present application.
[0046] like Figure 1 As shown, the implementation environment architecture includes: a display device 101, an image acquisition device 102 and a server 103.
[0047] The display device 101 is used to display the visual mark to be displayed according to the target size calculated by the server 103. The display device 101 can be a TV, an independent display, a desktop computer, a laptop computer, a smart phone, a tablet computer, an e-book reader, a smart watch, etc., but is not limited thereto.
[0048] The image acquisition device 102 is used to acquire a user's facial image to determine the distance between the user and the display device 101. The image acquisition device 102 is usually a camera provided on the display device 101, or may be an independently provided image acquisition device 102.
[0049] The server 103 is connected to the display device 101 and the image acquisition device 102 respectively to obtain the device resolution of the display device, obtain the target size of the visual mark to be displayed based on the device resolution, and determine the target detection distance for detecting the visual acuity value to be measured based on the target size.
[0050] Server 103 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
[0051] The display device 101 and the image acquisition device 102 are directly or indirectly connected to the server 103 through wired or wireless communication. Optionally, the wireless network or wired network uses standard communication technology and / or protocols. The network is usually the Internet, and can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of a virtual private network.
[0052] The vision detection method proposed in the present application can be implemented by a vision detection device, and the vision detection device can be installed on a terminal device or a server.
[0053] In order to further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation instruction steps shown in the following embodiments or drawings, more or less operation instruction steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed in the order of the method shown in the embodiment or drawings or in parallel during the actual processing process or when the device is executed.
[0054] Please refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of a vision detection method provided by an embodiment of the present application. Figure 2 As shown, the method includes:
[0055] Step 201, obtaining the device resolution of the display device.
[0056] Among them, in the field of display devices, resolution usually refers to the number of pixels in the horizontal and vertical directions of the screen. The resolution size is indicated by a product, such as 1920×1080. When the resolution of the display device is higher, there are more pixels displayed on the display device, and the size of a single pixel is relatively small. In the embodiment of the present application, the device resolution is the size of one pixel.
[0057] In some feasible embodiments, the device resolution of the display device can be obtained by querying the model of the display device. For example, when performing a vision test for the first time, the brand and model information of the display device used for the test are input, and the server obtains the resolution of the display device by querying the corresponding brand, model and other information.
[0058] In other feasible embodiments, the device resolution of the display device can also be obtained by using the communication interface of the display device. For example, under normal conditions, the display device itself stores corresponding resolution information. When performing vision testing for the first time, the server obtains the resolution information stored by the display device itself by calling the interface information of the display device.
[0059] In a preferred embodiment, for non-standard display devices, such as e-readers, etc., there may be a situation where the corresponding resolution information is not stored in the network or within the network. In order to meet the demand for accurately obtaining the resolution of the display device, the user can also be guided to perform a resolution calibration operation to determine the actual resolution of the display device.
[0060] Specifically, the display device is controlled to display an initial calibration line segment in a preset direction, wherein the initial calibration line segment includes a preset first number of pixels, a target calibration line segment consistent with a preset food length is obtained by adjusting the number of pixels occupied by the initial calibration line segment based on a preset physical object, and a device resolution of the display device is determined according to a second number of pixels occupied by the target calibration line segment.
[0061] The length of the initial calibration line segment is N times the length of the target line segment, the target line segment length is a preset integer centimeter length, and N times is n times the ratio of the preset real physical resolution to the logical resolution.
[0062] That is to say, the server first controls the display device to display the initial calibration line segment in the preset direction according to the assumed (expected) resolution. For example, assuming that the resolution is a=0.2mm, the initial calibration line segment is to output a 20cm line segment in the horizontal direction according to the assumed resolution. The first number of pixels to be output is obtained by calculation as 20×100 / 0.2=1000, that is, the initial calibration line segment is a horizontal line segment containing 1000 pixels. Then, a user uses a physical object with a length of 20cm to compare with the initial calibration line segment, and adjusts the display device according to the length of the physical object, so that the calibration line segment displayed on the display device is adjusted to be consistent with the length of the physical object. At this time, the device resolution of the display device is inverted using the above formula. For example, if the second number of pixels corresponding to the adjusted target calibration line segment is 1500, the device resolution is 20×100 / 1500=1.333mm.
[0063] It should be noted that the preset object can be determined according to the type of display device, that is, it can be executed within the display range of the display device as much as possible, and this application does not make specific restrictions. For example, when the screen size of the display device is small, such as when a mobile terminal is used as a display device, the initial calibration line segment and the preset object are both selected to be relatively small in size, such as displaying the initial calibration line segment at 5 cm.
[0064] It should also be noted that the calibration of the display device can be performed in only one direction and the number of pixels in the perpendicular direction can be inferred, or the calibration can be performed in both directions, which is not specifically limited in this application. For example, the device resolution in the vertical direction of the display device can be determined based on the device resolution in the horizontal direction, or the device resolution can be calibrated for the horizontal and vertical directions respectively.
[0065] Therefore, the embodiments of the present application can accurately obtain the device resolution of the display device through interaction with the user, provide a reliable data basis for displaying clear and accurate sight marks thereafter, and effectively avoid problems such as blurred sight marks and unclear boundaries, as well as inaccurate vision tests caused by insufficient resolution of the display device.
[0066] Step 202: determine the target size of the visual mark to be displayed based on the device resolution.
[0067] The sight mark to be displayed is a random direction sight mark determined according to the visual acuity value to be measured.
[0068] It should be noted that the sight mark is a mark used for vision detection. In the embodiment of the present application, it is preferably an "E" type sight mark specified in GB / T11533-2011. The size of the sight mark is related to the visual acuity value, that is, when the user's test distance is determined, the higher the visual acuity value, the smaller the sight mark. The visual acuity value range specified in GB / T11533-2011 is 4.0-5.3.
[0069] It should be noted that when using a display device for vision testing, unlike the physical eye chart used in conventional vision tests, the display device relies on screen pixel blocks to display the visual target. When the pixel block size is larger than or close to the minimum resolution required by the visual target, the displayed visual target will easily deviate from the requirements of the vision test and cannot meet the needs of the vision test.
[0070] On the other hand, in actual application environments, especially during home vision testing, it may be possible that the standard test distance cannot be met. At this time, especially when testing higher vision values, in order to ensure that the visual mark is displayed clearly and reliably while meeting the distance requirements of the vision test, in the embodiment of the present application, an innovative technical solution is proposed to first determine the target size of the visual mark to be displayed according to the device resolution, and then guide the user to adjust the test distance according to the target size, so as to meet the distance requirements of the vision test while ensuring the reliability of the visual mark.
[0071] Specifically, Figure 3 As shown, the target size corresponding to the visual mark to be displayed at the device resolution is obtained, including:
[0072] Step 301: Obtain an expected detection distance input by a user.
[0073] It should be noted that based on the visual rule that objects appear larger when they are closer and smaller when they are farther away, it only makes sense to determine the target size of the visual mark to be displayed within a certain range.
[0074] In the embodiment of the present application, the expected detection distance may be the farthest detection distance that the user can provide, such as the distance between the TV and the sofa when using a home TV for vision testing, etc. The expected detection distance may be input through an interactive device or acquired through collection. Specifically, the expected detection distance may be that the user sends a distance value to the server through an interactive interface as the expected detection value during each vision test or the initial vision test, or the server acquires the user image through an image acquisition device that cooperates with the display device to calculate the expected detection distance input by the user through the behavior according to the image analysis algorithm.
[0075] In the embodiments of the present application, the image analysis algorithm for distance calculation is not specifically limited.
[0076] Step 302: Determine the mapping relationship between each vision value and the sight mark difference value based on the expected detection distance.
[0077] It should be noted that after the expected detection distance input by the user is determined, the size of the sight mark corresponding to each vision value can be obtained according to the expected detection distance, and then the sight mark difference between the sight marks corresponding to adjacent vision values can be determined.
[0078] Exemplarily, the present application uses the following formula to determine the size of the sight mark corresponding to each vision value:
[0079] D=παd / 10800
[0080] Wherein, D is the size of the sight mark, d is the test distance, which is the expected detection distance in the current embodiment, and α is the horizontal corresponding division angle corresponding to the visual acuity value.
[0081] Taking the expected detection distance α as 5m as an example, after calculation, the visual acuity values and their corresponding sight mark sizes are:
[0082] The visual acuity value of 5.3 corresponds to the sight mark size:
[0083] D=3.14.5926×0.501'×5000 / 10800=0.729mm;
[0084] The visual acuity value of 5.2 corresponds to the sight mark size:
[0085] D=3.14.5926×0.631'×5000 / 10800=0.918mm;
[0086] The visual acuity value of 5.1 corresponds to the sight mark size:
[0087] D=3.14.5926×0.794'×5000 / 10800=1.155mm;
[0088] The visual acuity value of 5.0 corresponds to the sight mark size:
[0089] D=3.14.5926×1'×5000 / 10800=1.454mm;
[0090] The visual acuity value of 4.9 corresponds to the sight mark size:
[0091] D=3.14.5926×1.259'×5000 / 10800=1.831mm;
[0092] The visual acuity value of 4.8 corresponds to the sight mark size:
[0093] D=3.14.5926×1.585'×5000 / 10800=2.305mm;
[0094] The visual acuity value of 4.7 corresponds to the sight mark size:
[0095] D=3.14.5926×1.995'×5000 / 10800=2.902mm;
[0096] The visual acuity value of 4.6 corresponds to the sight mark size:
[0097] D=3.14.5926×2.512'×5000 / 10800=3.654mm;
[0098] The visual acuity value of 4.5 corresponds to the sight mark size:
[0099] D=3.14.5926×3.162'×5000 / 10800=4.599mm;
[0100] The visual acuity value of 4.4 corresponds to the sight mark size:
[0101] D=3.14.5926×3.981'×5000 / 10800=5.790mm;
[0102] The visual acuity value of 4.3 corresponds to the sight mark size:
[0103] D=3.14.5926×5.012'×5000 / 10800=7.290mm;
[0104] The visual acuity value of 4.2 corresponds to the sight mark size:
[0105] D=3.14.5926×6.31'×5000 / 10800=9.178mm;
[0106] The visual acuity value of 4.1 corresponds to the sight mark size:
[0107] D=3.14.5926×7.943'×5000 / 10800=11.553mm;
[0108] The visual acuity value of 4.0 corresponds to the sight mark size:
[0109] D=3.14.5926×10'×5000 / 10800=14.544mm.
[0110] Furthermore, the sight mark difference values corresponding to the sight mark sizes are obtained according to the sight mark sizes. For example, the sight mark difference value between the visual acuity values 5.0 and 5.1 is 0.299 mm.
[0111] Step 303: Determine the minimum pixel unit corresponding to the optotype to be displayed based on the optotype difference and the preset optotype display rule.
[0112] The visual mark display rule is a pixel rule corresponding to the visual mark, and the pixel rule includes at least one of a pixel distribution rule and a pixel ratio rule.
[0113] It should be understood that the optotype display rule can be determined according to the selected optotype type. Optionally, when the displayed optotype is an "E" optotype, the preset optotype display rule is that the number of pixels contained in the optotype to be displayed is a multiple of 5; when the displayed optotype is other optotypes, such as a "C" optotype or a text optotype, the optotype display rule is determined according to the specific optotype type.
[0114] Furthermore, if Figure 4As shown, 51×51 pixels are required to display a complete "E" type sight mark. Therefore, after determining the sight mark difference, the sight mark difference can be divided by 5 to obtain the minimum pixel unit corresponding to the "E" type sight mark, including but not limited to the minimum pixel unit of the "E" type sight mark in the horizontal direction, or the minimum pixel unit of the "E" type sight mark in the vertical direction.
[0115] Step 304: determine whether the device resolution is less than or equal to the minimum pixel unit.
[0116] It should be noted that the difference in the visual mark is the amount of pixel change reflected by the change in the visual mark corresponding to the adjacent visual acuity values, and the minimum pixel unit is the minimum pixel adjustment amount corresponding to the visual mark to be displayed. When the resolution is small, when the size of the visual mark is changed based on the visual acuity value, the resolution may not be able to meet the pixel change required for the change in the size of the visual mark, which will result in the visual mark not being displayed clearly and completely.
[0117] Based on this, the present application proposes to determine different strategies according to the relationship between the device resolution and the minimum pixel unit, specifically, such as step 305 and step 306.
[0118] Step 305 , when the device resolution is less than or equal to the minimum pixel unit, determine the target size corresponding to the visual mark to be displayed based on the expected detection distance.
[0119] It should be noted that when the device resolution is less than or equal to the minimum pixel unit, it means that the pixel size corresponding to the resolution can meet the pixel unit change required by the change from the sight mark corresponding to the previous visual acuity value to the sight mark to be measured. At this time, it is confirmed that the sight mark to be measured can be displayed completely and clearly in a normal state. Therefore, there is no need to make too many corrections, and the target size corresponding to the sight mark to be displayed can be directly determined according to the expected detection distance. For example, when the expected detection distance is 5m, the target size corresponding to the sight mark to be displayed can be directly calculated according to the above sight mark calculation method.
[0120] Step 306: When the device resolution is greater than the minimum pixel unit, determine the target size corresponding to the optotype to be displayed based on the device resolution and a preset optotype display rule.
[0121] When the device resolution is greater than the minimum pixel unit, it means that the pixel size corresponding to the resolution cannot meet the pixel unit change required to change from the sight mark corresponding to the previous visual acuity value to the sight mark to be measured, that is, the pixel change required to reduce the sight mark in any direction is less than the change that the display device pixel can provide. At this time, in order to ensure the clarity and reliability of the sight mark display, the target size corresponding to the sight mark to be displayed is determined according to the preset sight mark display rules.
[0122] It should also be noted that in the embodiment of the present application, since the pixels of the display device and the size of the visual mark to be displayed cannot perfectly match, a technical solution for performing clarity detection on the visual mark to be displayed is further proposed in the embodiment of the present application.
[0123] Specifically, the pre-display pixel size corresponding to the visual mark to be displayed on the display device and the target size of the visual mark to be displayed are obtained, and then the display difference between the pre-display pixels and the target size is obtained. If the display difference is greater than or equal to the preset difference value, it is determined that the display device cannot clearly and completely display the visual mark to be displayed. At this time, it is necessary to redetermine the target size corresponding to the visual mark to be displayed based on the device resolution and the preset visual mark display rules. If the display difference is less than the preset difference value, it is determined that the display device can clearly and completely display the visual mark to be displayed.
[0124] Therefore, the embodiments of the present application can judge whether the device can clearly and completely display the visual mark to be displayed from two aspects: the difference between the device resolution and the visual mark and the target size and the pre-display pixels, thereby greatly improving the reliability of the display of the visual mark to be displayed, and can timely and accurately detect inappropriate display scenes and replace the corresponding display strategies, thereby ensuring that the visual mark to be displayed can be displayed clearly and completely, avoiding invalid detection, and improving the reliability of vision detection.
[0125] Step 203, based on the target size, determining the target detection distance for detecting the visual acuity value to be measured.
[0126] Specifically, the sub-angle corresponding to the sight mark to be displayed can be obtained, and the target detection distance for detecting the vision value to be measured can be determined according to the sub-angle and the target size.
[0127] Exemplarily, the target detection distance may be determined using the following formula:
[0128] d'=D'×10800 / (πα)
[0129] Among them, d' is the target detection distance, D' is the target size, and α is the horizontal corresponding division angle corresponding to the visual acuity value.
[0130] That is to say, by determining the target size of the visual mark to be displayed in the aforementioned step 304 or 305, the target detection distance required for actual detection can be determined.
[0131] In a feasible embodiment, when the device resolution is less than or equal to the minimum pixel unit, the expected detection distance can be directly used as the target detection distance without additional calculation.
[0132] In another feasible embodiment, when the device resolution is greater than the minimum pixel unit, the size of the pixel block is 5 times the size to determine the target size of the visual mark to be displayed, and then the target size is used to determine the target detection distance corresponding to the visual mark to be displayed corresponding to each vision value.
[0133] For example, the device resolution of a 55-inch display device of a certain brand is 3840×2160, and the size of a single pixel block (a pixel block consisting of 5 consecutive pixels in the horizontal or vertical direction) is about 0.3166 mm. When 5 pixel blocks are used to represent a complete "E" type sight mark, then:
[0134] The target detection distance corresponding to the visual acuity value of 5.2 is:
[0135] d'=0.3166×10800 / (3.1415926×0.631′)=1.725m;
[0136] The target detection distance corresponding to the vision value of 5.0 is:
[0137] d'=0.3166×10800 / (3.1415926×1′)=1.088m;
[0138] The target detection distance corresponding to the vision value of 4.6 is:
[0139] d'=0.3166×10800 / (3.1415926×2.512′)=0.433m;
[0140] When a 10-pixel block is used to represent a complete "E" type sight sign, then:
[0141] The target detection distance corresponding to the visual acuity value of 5.2 is:
[0142] d'=0.6332×10800 / (3.1415926×0.631′)=3.45m;
[0143] The target detection distance corresponding to the vision value of 5.0 is:
[0144] d'=0.6332×10800 / (3.1415926×1′)=2.176m;
[0145] The target detection distance corresponding to the vision value of 4.6 is:
[0146] d'=0.6332×10800 / (3.1415926×2.512′)=0.866m.
[0147] In a feasible embodiment, in order to further reduce the impact of the user's movement during the test on the user's detection effect, the above two determination methods can also be combined. That is, when the display device can clearly and completely display the visual mark to be displayed corresponding to a part of the vision value when the user is tested at the expected detection distance, the visual mark to be displayed corresponding to the part of the vision value is displayed at the expected detection distance; when the display device cannot clearly and completely display the visual mark to be displayed corresponding to another part of the vision value when the user is tested at the expected detection distance, the target size of the visual mark to be displayed is determined according to the device resolution and the preset visual mark display rules, and then the target detection distance is determined.
[0148] For example, for the above-mentioned 55-inch display device with a device resolution of 3840×2160, when the expected detection distance is 5m, the device resolution is less than or equal to the minimum pixel unit corresponding to the visual acuity value of 4.0-5.0, that is, detection can be performed normally according to the expected detection distance, and there is no need to redetermine the target detection distance. If the device resolution is greater than the visual mark difference corresponding to the visual acuity value of 5.1-5.2, it is necessary to redetermine the target size corresponding to the visual mark to be displayed according to the device resolution and the preset visual mark display rules, and determine the target detection distance based on the target size. Alternatively, when the expected detection distance is 3m, since the difference between the visual acuity values of 4.8 and 4.9 is 0.284mm, and the difference between the visual acuity values of 4.8 and 4.7 is 0.358mm, the device resolution of the device is smaller than the minimum pixel unit between the visual acuity values of 4.8 and 4.7, but larger than the minimum pixel unit between the visual acuity values of 4.8 and 4.9. Therefore, the user does not need to adjust the detection distance when detecting visual acuity values of 4.0-4.8, but needs to re-determine the target size corresponding to the visual acuity to be displayed when detecting visual acuity values of 4.9-5.2, and determine the target detection distance based on the target size.
[0149] Therefore, the present application can select a suitable detection strategy according to the size requirements of the display device and the visual mark to be displayed, and can reduce user movement and improve user detection experience when the resolution of the display device is sufficient. When the resolution of the display device is insufficient, the reliability of vision detection can be ensured by adjusting the user's target detection distance on the basis of ensuring that the visual mark to be displayed is clearly and completely displayed.
[0150] In summary, the vision detection method proposed in this embodiment achieves effective display of the visual mark to be displayed according to the device resolution by obtaining the device resolution of the display device and determining the target size of the visual mark to be displayed based on the device resolution. It can ensure that the visual mark to be displayed can be displayed clearly and completely by adjusting the target size of the visual mark to be displayed, improve the reliability of the display of the visual mark to be displayed, and provide a visual mark basis for effective detection for vision detection. At the same time, by determining the target detection distance for detecting the visual acuity value to be measured based on the target size, the vision detection can meet the detection distance requirements when the visual mark is reliable, further improving the reliability of vision detection.
[0151] Based on this, the vision detection method proposed in the embodiment of the present application can be used to perform vision tests using display devices with different device resolutions, so that users can perform self-detection according to their needs. By adjusting the size of the sight mark and the detection distance, reliable vision detection in complex environments can be achieved, thereby improving the scene generalization of vision detection and improving user experience.
[0152] In a feasible embodiment, in order to ensure that the user's actual detection distance is consistent with the target detection distance, that is, to ensure that the user performs vision detection at the target detection distance, the present application further proposes to send distance adjustment prompt information to the user according to the target detection distance.
[0153] Optionally, an iris tracking algorithm is used to track the user's iris to determine the user's actual detection distance. When the user's actual detection distance is inconsistent with the target detection distance, a distance adjustment prompt message is sent to the user based on the difference between the actual detection distance and the target detection distance, including but not limited to moving forward XX, moving backward XX, etc.
[0154] Specifically, the user's eye information can be collected by using an image acquisition device used in conjunction with a display device, and then the user's iris diameter in the image can be obtained through image analysis, and the user's actual detection distance can be determined based on changes in the user's iris diameter.
[0155] Exemplarily, the actual detection distance of the user can be determined using the following formula:
[0156] DD=L×DX / Dx
[0157] Wherein, DD is the actual detection distance, L is the user distance when calibrating the image acquisition device, DX is the user iris diameter when calibrating the image acquisition device, and Dx is the current user iris diameter.
[0158] In a feasible embodiment, the present application further determines the sight mark to be displayed by means of sight mark calibration image processing to improve the clarity and completeness of the sight mark to be displayed.
[0159] Specifically, a visual mark vector image or a high-resolution large image is losslessly compressed according to the target size so that the visual mark finally displayed will not have problems such as scale deformation, edge blur, and contrast change.
[0160] Exemplarily, the setRenderingHint method in the java.awt.Graphics2D tool is used, and then by reasonably setting the three attributes of VALUE_INTERPOLATION_BICUBIC, VALUE_ANTIALIAS_ON and VALUE_RENDER_QUALITY, bicubic interpolation, anti-aliasing and higher quality compression are implemented in turn, and then the compressed image is decoded into RGBA format, and then uploaded as a texture object of the GPU, and the filtering mode and edge processing mode of the texture are configured through glTexParameteri, such as linear filtering and edge clamping. Then, the vertex coordinates and texture coordinates of the visual mark to be displayed are defined according to the display area of the target size, so as to correspond the image to the display area of the visual mark to be displayed. The rendering is completed using the vertex shader and the fragment shader, wherein the vertex shader is responsible for mapping the texture coordinates, and the fragment shader applies the image texture to each pixel. Finally, the quadrilateral is drawn through functions such as glDrawArrays, and the image texture is mapped and displayed on the display device, so as to realize the lossless display of the visual mark to be displayed, and further ensure the clear and complete display of the visual mark to be displayed from the perspective of image processing.
[0161] In a specific embodiment, the user tests from a visual acuity value of 4.0 to a visual acuity value of 5.2 according to the visual acuity test chart. The user stands in front of the display device, and the user's expected detection distance is determined by collecting the user's eye information. For example, the predicted detection distance is calculated to be 5m. At this time, the minimum pixel unit corresponding to the visual acuity value of 4.0 and the visual acuity value of 4.1 is determined, and the device resolution corresponding to the display device is determined to be smaller than the minimum pixel unit corresponding to the visual acuity value of 4.0 and the visual acuity value of 4.1. The target size corresponding to the visual acuity value of 4.0 is displayed according to the expected detection distance, and at least two random directions of sight marks are displayed to test the user's vision. The random directions include four directions of left, right, upward and backward at the "E"-shaped opening. Determine whether the user's test result is consistent with the direction of the sight mark. If they are consistent, determine the size relationship between the device resolution and the minimum pixel unit between the next vision value (currently 4.1) and the next vision value (currently 4.2). If the device resolution is less than the minimum pixel unit, continue to display the sight mark and detect and judge. If the device resolution is greater than or equal to the minimum pixel unit, determine the target size corresponding to the sight mark to be displayed according to the device resolution and the preset sight mark display rules, and then determine the target detection distance according to the target size, and prompt the user to adjust the actual detection distance according to the target detection distance, and then complete the test of the vision value until the user makes two consecutive mistakes in the direction of the sight marks during a certain vision value test, and determine the user's vision level.
[0162] It should be noted that although the operations of the method of the present invention are described in a particular order in the drawings, this does not require or imply that the operations must be performed in this particular order or that all illustrated operations must be performed to achieve the desired results.
[0163] Figure 5 A schematic structural diagram of a vision detection device provided in one embodiment of the present application is shown.
[0164] like Figure 5 As shown, the vision detection device 10 comprises:
[0165] A first acquisition module 11 is used to acquire a device resolution of a display device;
[0166] The second acquisition module 12 is used to determine the target size of the sight mark to be displayed based on the device resolution; the sight mark to be displayed is a random direction sight mark determined according to the visual acuity value to be tested;
[0167] The determination module 13 is used to determine the target detection distance for detecting the visual acuity value to be measured based on the target size.
[0168] In some embodiments, the first acquisition module 11 is further used to:
[0169] Controlling the display device to display an initial calibration line segment in a preset direction, wherein the initial calibration line segment includes a preset first number of pixels;
[0170] Acquire a target calibration line segment having the same length as the preset physical object, obtained by adjusting the number of pixels occupied by the initial calibration line segment based on the preset physical object;
[0171] The device resolution of the display device is determined according to the second number of pixels occupied by the target calibration line segment.
[0172] In some embodiments, the second acquisition module 12 is further used to:
[0173] Get the expected detection distance of user input;
[0174] Based on the expected detection distance, determining a mapping relationship between each visual acuity value and a visual mark difference value;
[0175] Based on the visual mark difference value and the preset visual mark display rule, determining the minimum pixel unit corresponding to the visual mark to be displayed; wherein the visual mark display rule is a pixel rule corresponding to the visual mark, and the pixel rule includes at least one of a pixel distribution rule and a pixel ratio rule;
[0176] Determine whether the device resolution is less than or equal to the minimum pixel unit;
[0177] When the device resolution is less than or equal to the minimum pixel unit, determining the target size corresponding to the visual mark to be displayed based on the expected detection distance; or
[0178] When the device resolution is greater than the minimum pixel unit, the target size corresponding to the optotype to be displayed is determined based on the device resolution and a preset optotype display rule.
[0179] In some embodiments, the preset sight mark display rule is that the number of pixels contained in the sight mark to be displayed is a multiple of 5.
[0180] In some embodiments, the determination module 13 is further configured to:
[0181] Obtaining the index angle corresponding to the sight mark to be displayed;
[0182] A target detection distance for detecting the visual acuity value to be measured is determined according to the graduation angle and the target size.
[0183] In some embodiments, the determination module 13 is further configured to:
[0184] Send distance adjustment prompt information to the user according to the target detection distance.
[0185] It should be understood that the modules or modules described in the vision detection device 10 are similar to those described in the reference Figure 2 The various steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the vision detection device 10 and the modules contained therein, and will not be repeated here. The vision detection device 10 can be pre-implemented in a browser or other security application of an electronic device, or loaded into a browser or its security application of an electronic device by downloading or the like. The corresponding modules in the vision detection device 10 can cooperate with the modules in the electronic device to implement the solution of the embodiment of the present application.
[0186] The several modules or units mentioned in the above detailed description are not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0187] Reference below Figure 6 , Figure 6 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown.
[0188] like Figure 6 As shown, the computer system includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation instructions of the system are also stored. The CPU 601, the ROM 602 and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0189] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0190] In particular, according to an embodiment of the present application, the above reference flow chart Figure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes 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 flow chart. In such an embodiment, the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0191] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 the present application, a 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, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium such as a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0192] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operating instructions of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, the boxes represented by two connections 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 flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operating instruction, or can be implemented with a combination of dedicated hardware and computer instructions.
[0193] The units or modules involved in the embodiments of the present application may be implemented by software or hardware. The units or modules described may also be provided in a processor. For example, they may be described as follows: a processor includes a first acquisition module, a second acquisition module, and a determination module. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves. For example, the first acquisition module may also be described as "acquiring the device resolution of a display device."
[0194] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the vision detection method described in the present application.
[0195] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A method for visual acuity detection, characterized in that: include: Get the device resolution of the display device; Determining a target size of the visual mark to be displayed based on the device resolution; The sight mark to be displayed is a random direction sight mark determined according to the visual acuity value to be tested; Based on the target size, a target detection distance for detecting the visual acuity value to be measured is determined.
2. The method for visual acuity detection according to claim 1, characterized in that: The obtaining of the device resolution of the display device includes: Controlling the display device to display an initial calibration line segment in a preset direction, wherein the initial calibration line segment includes a preset first number of pixels; Acquire a target calibration line segment having the same length as the preset physical object, obtained by adjusting the number of pixels occupied by the initial calibration line segment based on the preset physical object; The device resolution of the display device is determined according to the second number of pixels occupied by the target calibration line segment.
3. The method for visual acuity detection according to claim 2, characterized in that: The length of the initial calibration line segment is N times the length of the target line segment, the target line segment length is a preset integer centimeter length, and the N times is n times the preset ratio of the real physical resolution to the logical resolution.
4. The method for visual acuity detection according to claim 1, characterized in that: The step of obtaining a target size corresponding to the visual mark to be displayed at the device resolution includes: Get the expected detection distance of user input; Based on the expected detection distance, determining a mapping relationship between each visual acuity value and a visual mark difference value; Based on the visual mark difference value and the preset visual mark display rule, determining the minimum pixel unit corresponding to the visual mark to be displayed; wherein the visual mark display rule is a pixel rule corresponding to the visual mark, and the pixel rule includes at least one of a pixel distribution rule and a pixel ratio rule; Determine whether the device resolution is less than or equal to the minimum pixel unit; When the device resolution is less than or equal to the minimum pixel unit, determining the target size corresponding to the visual mark to be displayed based on the expected detection distance; or When the device resolution is greater than the minimum pixel unit, the target size corresponding to the optotype to be displayed is determined based on the device resolution and a preset optotype display rule.
5. The method for visual acuity detection according to claim 4, characterized in that: When the displayed sight mark is the "E" sight mark, the preset sight mark display rule is that the number of pixels contained in the sight mark to be displayed is a multiple of 5; When the displayed optotype is another type of optotype, the preset optotype display rule is determined according to the type of the displayed optotype.
6. The method for visual acuity detection according to claim 1, characterized in that: The step of determining a target detection distance for detecting the visual acuity value to be measured based on the target size includes: Obtaining the index angle corresponding to the sight mark to be displayed; A target detection distance for detecting the visual acuity value to be measured is determined according to the graduation angle and the target size.
7. The vision detection method according to claim 1, characterized in that: Also includes: Send distance adjustment prompt information to the user according to the target detection distance.
8. A vision detection device, characterized in that: include: A first acquisition module, used to acquire a device resolution of a display device; A second acquisition module, used to determine the target size of the visual mark to be displayed based on the device resolution; The sight mark to be displayed is a random direction sight mark determined according to the visual acuity value to be tested; A determination module is used to determine a target detection distance for detecting the visual acuity value to be measured based on the target size.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the vision detection method as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the vision detection method as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and system for carrying out vision test on terminal screen and storage medium
CN111367484A
Calibration method for visual mark displayed on terminal screen and vision detection system
CN113951810A
Vision detection method and device based on display equipment and display equipment
CN114431822A
Optometric apparatus, optometric method, and optometric server
US20050083485A1
Cited By
Visual acuity measurement method and apparatus, device, and medium
WO2026149521A1