Vision test method and apparatus, and vision test device and storage medium

By collecting images on portable electronic devices and performing human eye recognition, determining the size of the iris to obtain the target standard distance, the problem of low efficiency and accuracy of existing vision detection is solved, and fast and accurate vision detection is achieved.

WO2024222426A1PCT designated stage expired Publication Date: 2024-10-31BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/086355
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2024-04-07
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing vision testing institutions and home vision cards are inefficient, inconvenient and inaccurate, and cannot meet the needs for fast and accurate vision testing.

Method used

Obtain the iris size through image collection and human eye recognition, determine the target standard distance, generate vision detection guidance information, guide the user to the standard distance for vision detection, and use portable electronic devices to implement vision detection.

Benefits of technology

The timeliness and accuracy of vision testing are improved, so that vision testing no longer relies on professional institutions, and fast and accurate vision testing can be achieved on portable electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024086355_31102024_PF_FP_ABST
    Figure CN2024086355_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure relates to a vision test method and apparatus, and a vision test device and a storage medium. The method comprises: performing image collection on a target user, and performing human eye recognition on a collected image, so as to acquire a measured iris size of the iris of the target user in the image; according to the measured iris size, determining, from among all candidate standard spacings, a target standard spacing of when vision test is performed on the target user; generating vision test guidance information on the basis of the target standard spacing, wherein the vision test guidance information is used for guiding the target user to reach the target standard spacing; and performing vision test on the target user according to the target standard spacing, so as to obtain a vision test result of the target user.
Need to check novelty before this filing date? Find Prior Art

Description

Vision detection method, device, vision detection equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese invention patent application No. 202310473146.7 filed on April 27, 2023, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of medical and health service technology, and in particular to a vision detection method, apparatus, vision detection equipment and storage medium. Background Art

[0004] As vision problems have become more important to the public, existing vision testing institutions and home vision cards have problems such as low testing efficiency, inconvenience in carrying and low accuracy of test results, which cannot meet the needs of fast and accurate vision testing.

[0005] Summary of the Invention

[0006] The present disclosure provides a vision detection method, apparatus, vision detection device, computer-readable storage medium, and computer program product. The technical solutions of the present disclosure are as follows:

[0007] According to an implementation of an embodiment of the present disclosure, a vision detection method is provided, including: capturing an image of a target user, and performing human eye recognition on the captured image to obtain a measured iris size of the target user's iris in the image; determining a target standard spacing for the target user when performing a vision detection from all candidate standard spacings based on the measured iris size; generating vision detection guidance information based on the target standard spacing, the vision detection guidance information being used to guide the target user to reach the target standard spacing; performing a vision detection on the target user based on the target standard spacing to obtain a vision detection result of the target user.

[0008] In one embodiment of the present disclosure, determining the target standard spacing for the target user when performing vision testing from all candidate standard spacings based on the measured iris size includes: determining the measured spacing between the target user and the camera based on the measured iris size; and selecting the candidate standard spacing with the smallest difference from the measured spacing from all candidate standard spacings as the target standard spacing.

[0009] In one embodiment of the present disclosure, determining the measured distance between the target user and the camera based on the measured iris size includes: obtaining an actual reference width of the iris; and determining the measured distance between the target user and the camera based on the measured iris size, the actual reference width, and a camera intrinsic parameter.

[0010] In one embodiment of the present disclosure, performing eye recognition on a captured image to obtain a measured iris size of the target user's iris in the image includes: performing face recognition on the captured image to obtain candidate measured iris sizes of the target user's two irises in the image; determining a difference between the two candidate measured iris sizes; if the difference is less than or equal to a set value, obtaining an average of the two candidate measured iris sizes and determining the average as the measured iris size; if the difference is greater than the set value, selecting the larger candidate measured iris size from the two candidate measured iris sizes as the measured iris size.

[0011] In one embodiment of the present disclosure, performing face recognition on the collected image to obtain candidate measured iris sizes of the target user's two irises in the image includes: performing face recognition on the collected image, and extracting a face image from the collected image based on the face recognition result; performing key point positioning on the face image to determine the position of the eyes in the face image, and extracting two eye slices from the face image based on the eye positions; and performing iris detection on the two eye slices to obtain the candidate measured iris sizes.

[0012] In one embodiment of the present disclosure, after generating the vision detection guidance information based on the target standard distance, it also includes: updating the user's measurement distance in real time; when the updated measurement distance of the target user reaches the target standard distance, starting the vision detection process, performing a vision detection on the target user at the target standard distance, and outputting the vision detection result of the target user until the vision detection process ends.

[0013] In one embodiment of the present disclosure, the vision test is performed on the target user at the target standard spacing until the vision test process is completed and the vision test result of the target user is output, including: displaying the visual acuity symbol of the standard vision value at the target detection spacing, and obtaining a first vision test result of the standard vision value, wherein each vision value at the target detection spacing corresponds to a visual acuity symbol of a different size; based on the first vision test result, determining a vision value set for subsequent vision testing from each vision value of the target detection spacing, and displaying the visual acuity symbols of the vision values ​​in the vision value set in sequence; ending the vision test when the second vision test result of the currently detected vision value is different from the third vision test result of the previously detected vision value; and determining the vision test result of the target user based on the second vision test result and the third vision test result.

[0014] In one embodiment of the present disclosure, the process of obtaining any vision detection result includes: collecting voice information of the target user, performing voice recognition on the voice information, and obtaining the vision detection result; or, collecting a hand image of the target user, and recognizing gestures in the hand image, and determining the vision detection result based on the recognized target gesture; or, collecting the feedback operation of the target user in the operating area of ​​the vision detection device, and determining the vision detection result based on the feedback operation.

[0015] In one embodiment of the present disclosure, the method further includes: for each detected vision value, obtaining N directions of visual marks under the vision value for display, and obtaining the sub-vision detection result under each direction, wherein N is an integer greater than or equal to 1; based on the sub-vision detection result under each direction, determining the vision detection result of the vision value.

[0016] According to another implementation of the embodiments of the present disclosure, a detection device of a vision detection equipment is provided, including: a human eye recognition module, which captures an image of a target user and performs human eye recognition on the captured image to obtain a measured iris size of the target user's iris in the image; a distance measurement module, which determines, based on the measured iris size, a target standard spacing for the target user when performing a vision detection from all candidate standard spacings; a generation module, which generates vision detection guidance information based on the target standard spacing, and the vision detection guidance information is used to guide the target user to reach the target standard spacing; and a vision detection module, which performs a vision detection on the target user according to the target standard spacing to obtain a vision detection result of the target user.

[0017] According to another implementation of the embodiment of the present disclosure, a vision detection device is provided, including a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the vision detection method provided in the embodiment of the present disclosure.

[0018] According to another implementation of the embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a server, the steps of the vision detection method provided by the embodiment of the present disclosure are implemented.

[0019] According to another implementation of the embodiment of the present disclosure, a computer program product is provided, including a computer program, characterized in that when the computer program is executed by a server of a vision detection device, the steps of the vision detection method provided in the embodiment of the present disclosure are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute an improper limitation of the present disclosure.

[0021] Fig. 1 is a flow chart showing a vision detection method according to an exemplary embodiment.

[0022] Fig. 2 is a flow chart showing a vision detection method according to another exemplary embodiment.

[0023] Figure 3 is a schematic diagram of the pinhole imaging principle.

[0024] Fig. 4 is a flow chart showing a vision detection method according to an exemplary embodiment.

[0025] Fig. 5 is a flow chart showing a vision detection method according to an exemplary embodiment.

[0026] Fig. 6 is a flow chart showing a vision detection method according to an exemplary embodiment.

[0027] Fig. 7 is a flow chart showing a vision detection method according to another exemplary embodiment.

[0028] Fig. 8 is a flow chart showing a vision detection method according to an exemplary embodiment.

[0029] Fig. 9 is a block diagram of a vision detection device according to an exemplary embodiment.

[0030] FIG10 is a block diagram of a vision detection device according to an exemplary embodiment. DETAILED DESCRIPTION

[0031] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.

[0032] It should be noted that the terms "first," "second," and the like in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the numbers used in this manner are interchangeable where appropriate so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure as detailed in the appended claims.

[0033] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present application and the present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional detection institutions, and improving the timeliness of vision detection. Moreover, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0034] FIG1 is a flow chart of a vision detection method according to an exemplary embodiment. As shown in FIG1 , the vision detection method of the embodiment of the present disclosure includes but is not limited to the following steps.

[0035] S101 , capturing an image of a target user, and performing eye recognition on the captured image to obtain a measured iris size of the target user's iris in the image.

[0036] It should be noted that the vision testing method of the embodiments of the present disclosure is performed by an electronic device having an image acquisition device, which can perform vision testing based on the captured images. Alternatively, the electronic device can be a mobile terminal or a portable vision testing device, both of which have vision testing capabilities.

[0037] In the embodiment of the present disclosure, an image of a target user who needs to undergo vision testing can be acquired in real time. Optionally, a vision testing device can be activated by voice or touch operation, which turns on a camera and enters an image acquisition process.

[0038] It should be noted that in order to ensure that the light source is bright and sufficient during the vision test, the vision testing equipment will remind the user to move to a position with sufficient light source when it detects that the light source brightness is low; if two or more faces are recognized, the user is reminded to ensure that the detection object is single and fixed; if no face is recognized, the user is reminded to keep looking directly at the camera.

[0039] In one embodiment, the user turns on the vision testing device and enters the vision testing interface. The user positions the device according to the prompts, adjusts their posture, and clicks the "Start Testing" button. This enters the image acquisition interface and begins dynamic image acquisition. Furthermore, facial images can be captured in real time. Optionally, facial image recognition can be performed locally or transmitted to a server for image recognition. The server then feeds the image recognition results back to the vision testing device.

[0040] In this disclosed embodiment, a two-stage object detection technique is used to measure iris size. The first-stage model uses facial landmark localization technology to locate the eyes in the acquired facial image and extract an eye slice. The second-stage model uses this eye slice to establish pixel coordinates, locate the specific position of the iris, and measure its size.

[0041] It's important to note that using object detection techniques to detect eyes in images requires a dataset containing images containing eyes to facilitate training and optimization for specific applications. An object detection model is trained on this dataset using a deep convolutional neural network (CNN) learning algorithm. During training, the model learns how to detect eyes and distinguish them from other objects. After the model is trained, it can be used to detect eyes in images. This is done by sliding a fixed-size window across the image and using the trained model to determine whether the window contains an eye. Once an eye is detected, the detection results can be further enhanced using algorithms such as tracking algorithms or morphological operations.

[0042] It should be noted that an iris detection model is trained as the second-stage model. The training data includes images with annotated boxes, where the annotated boxes indicate the location and size of objects. Preprocessing the images for object size detection, including scaling, cropping, and normalization, helps improve the model's detection accuracy and speed. The iris detection model is used to perform object detection on the preprocessed images to obtain object location and size information. Based on the detection results, the object's size is calculated, and pixel coordinates are used to represent the object's location and size.

[0043] S102 , determining a target standard spacing for a target user to be tested for vision from all candidate standard spacings based on the measured iris size.

[0044] In the embodiment of the present disclosure, the width of the user's iris, the size of the iris image in the camera, and the focal length of the camera are known. According to the pinhole imaging principle, the measured distance between the user and the vision detection device during the vision detection can be obtained in real time by detecting the image size of the user's iris in the camera in real time.

[0045] In some implementations, a target standard spacing suitable for the target user's vision test can be determined based on the measured distance. Optionally, a standard spacing closest to the measured distance is selected from all candidate standard spacings as the target standard spacing for the target user's vision test.

[0046] S103: Generate vision detection guidance information based on the target standard distance, where the vision detection guidance information is used to guide the target user to reach the target standard distance.

[0047] In the embodiment of the present disclosure, the vision detection device generates guidance information based on the standard distance measured between the user and the vision detection device, guides the user to adjust the distance between the eyes and the vision detection device, and determines the distance from the target standard distance based on the adjusted distance. When the target standard distance is reached, the user is prompted to maintain position to facilitate vision detection.

[0048] Optionally, the vision detection device can guide the user to adjust the distance between the user and the vision detection device through voice prompts or text prompts, and when the distance between the two reaches the target standard distance, the user is prompted to maintain the position.

[0049] S104: Perform a vision test on the target user according to the target standard spacing to obtain a vision test result of the target user.

[0050] In one embodiment, the national standard "Standard Logarithmic Vision Chart" is used as a reference to obtain the relationship between the sight mark size and the vision standard at different design distances. According to the target standard distance between the target user and the camera, a vision comparison table of the design distance and sight mark size is used to present the sight mark size at different vision values ​​at the same standard distance multiple times to test the user's vision.

[0051] Optionally, the user's vision test result can be determined by determining the orientation of optotypes of different sizes at the target standard spacing. For the same vision value, optotypes with different orientations can be displayed for that vision value, and feedback from the user's voice, gestures, or screen taps can be obtained. Based on the feedback, the vision test result can be obtained. It is understood that at the target standard spacing, optotypes corresponding to the same vision value may have the same size but different orientations. The optotypes can be displayed at set intervals or displayed again after feedback is detected.

[0052] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0053] FIG2 is a flow chart of a vision detection method according to another exemplary embodiment. As shown in FIG2 , the vision detection method of the embodiment of the present disclosure includes but is not limited to the following steps.

[0054] S201 : Capture an image of a target user, and perform eye recognition on the captured image to obtain a measured iris size of the target user's iris in the image.

[0055] In the embodiment of the present disclosure, the implementation of step S201 can be implemented by any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0056] S202: Determine a measurement distance between the target user and the camera based on the measured iris size.

[0057] In one embodiment, before the vision test begins, the user can input his or her actual iris width according to his or her own situation, so as to facilitate statistics and calculation of the measurement distance between the user and the camera.

[0058] In another embodiment, the statistically collected iris diameters may be averaged based on the statistically collected iris diameters of a large number of people to obtain an average iris diameter, and the average iris diameter may be determined as the actual reference width of the user's iris.

[0059] As shown in Figure 3, let H be the actual reference width of the user's iris, h be the measured size of the iris in the image, d be the focal length of the camera, and D be the actual distance between the user and the camera. According to the pinhole imaging principle, the ratio of the image to the object is equal to the distance from the pinhole to the imaging screen divided by the distance from the pinhole to the object, that is, The measured distance between the user and the camera is obtained. The pinhole is the camera, the image is h, the object is H, the distance from the pinhole to the imaging screen is d, and the distance from the pinhole to the object is D. According to the variation of the pinhole imaging principle, Determine the measured distance between the target user and the camera.

[0060] S203 : Selecting a candidate standard spacing with the smallest difference from the measured spacing from all candidate standard spacings as the target standard spacing.

[0061] In one embodiment, multiple candidate standard spacings are pre-designed, and the same visual acuity value has different corresponding sight mark side lengths under different candidate standard spacings. Assuming the standard visual acuity value is 5.0, the corresponding sight mark side lengths under different candidate standard spacings are shown in Table 1 below:

[0062] Table 1

[0063] It should be understood that each element in Table 1 exists independently. These elements are illustratively listed in the same table, but this does not necessarily mean that all elements in the table must be present simultaneously as shown. The value of each element is independent of the value of any other element in Table 1. Therefore, those skilled in the art will understand that the value of each element in Table 1 represents an independent embodiment.

[0064] In some implementations, to minimize the user's movement to the target standard spacing, the measured distance between the user and the camera is compared with candidate standard spacings. Candidate standard spacings located on either side of the measured distance or on either side of the measured distance can be found. If a candidate standard spacing exists on either side of the measured distance, this standard spacing is the target standard spacing. If a candidate standard spacing exists on both sides of the measured distance, the difference between the two candidate standard spacings and the measured distance is calculated, and the candidate standard spacing with the smaller difference is selected as the target standard spacing.

[0065] S204: Generate vision detection guidance information based on the target standard distance, where the vision detection guidance information is used to guide the target user to reach the target standard distance.

[0066] In the embodiment of the present disclosure, the implementation of step S204 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0067] S205 , performing a vision test on the target user according to the target standard spacing to obtain a vision test result of the target user.

[0068] In the embodiment of the present disclosure, the implementation of step S205 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0069] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0070] FIG4 is a flow chart of a vision detection method according to an exemplary embodiment. As shown in FIG4 , the vision detection method of the embodiment of the present disclosure includes but is not limited to the following steps.

[0071] S401 : Capture an image of a target user, and perform eye recognition on the captured image to obtain a measured iris size of the target user's iris in the image.

[0072] In the embodiment of the present disclosure, the implementation of step S401 can be implemented by any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0073] S402 , determining a target standard spacing for a target user to be tested for vision from all candidate standard spacings based on the measured iris size.

[0074] In the embodiment of the present disclosure, the implementation of step S402 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0075] S403: Generate vision detection guidance information based on the target standard distance, where the vision detection guidance information is used to guide the target user to reach the target standard distance.

[0076] In the embodiment of the present disclosure, the implementation of step S403 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0077] S404, updating the user's measurement distance in real time.

[0078] In the embodiment of the present disclosure, the vision detection device generates guidance information such as voice prompts based on the standard distance measured between the user and the camera, guiding the user to adjust the distance between the eyes and the camera, and determines the distance from the target standard distance based on the adjusted distance. When the target standard distance is reached, the user is prompted to maintain position to facilitate vision detection.

[0079] S405, when the updated measurement distance of the target user reaches the target standard distance, starting the vision testing process, performing a vision test on the target user at the target standard distance, and outputting the vision test result of the target user until the vision testing process is completed.

[0080] In one embodiment, the target standard spacing is set to 40 cm, the standard vision value is 5.0, and each vision value at the target detection spacing corresponds to a visual mark of different sizes. When the target user is at the target standard spacing, multiple visual marks of different orientations corresponding to the standard vision values ​​are displayed to the target user on the screen of the vision detection device.

[0081] Optionally, the target user's voice information can be collected and voice recognition performed on the voice information to obtain the vision test results. By collecting the target user's language information, key words such as "up," "down," "left," and "right" in the voice information are recognized to determine the vision test results. For example, if the voice information is "up" and the sight mark displayed on the screen is facing "up," the vision test is determined to be qualified. For another example, if the voice information is "down" and the sight mark displayed on the screen is facing "up," the vision test is determined to be unqualified.

[0082] Optionally, feedback operations performed by the target user within the operating area of ​​the vision testing device can be collected, and the vision test result can be determined based on the feedback operations. The target user performs feedback operations within the operating area of ​​the vision testing device, such as clicking the "up," "down," "left," or "right" arrows on the screen, and the vision test result is determined based on the feedback operations. For example, if the target user clicks the "up" arrow, the sight mark displayed on the screen will be oriented "up," and the vision test result will be determined to be qualified. For another example, if the target user clicks the "down" arrow, the sight mark displayed on the screen will be oriented "up," and the vision test result will be determined to be unqualified.

[0083] Optionally, an image of the target user's hand is captured, and gestures in the hand image are recognized. The vision test result is determined based on the recognized target gesture. For example, gestures include "up," "down," "left," and "right." If the gesture is "up," the visual mark displayed on the screen is facing "up," and the vision test is determined to be acceptable. If the gesture is "down," the visual mark displayed on the screen is facing "up," and the vision test is determined to be unacceptable.

[0084] When the end conditions of the vision testing process are met, the vision testing results of the target user can be output. For example, when the vision testing result of the currently tested vision value is different from the vision testing result of the previously tested vision value, it can be determined that the end conditions of the vision testing process are met and the final vision testing result can be output.

[0085] Optionally, the current visual acuity value and the previous visual acuity value that passed the test can be used as the target user's final visual acuity value. For example, if the current visual acuity value is 4.8, which is a passing result, and the previous visual acuity value was 4.9, which was an unqualified result, the target user's final visual acuity value is 4.8. For another example, if the current visual acuity value is 5.1, which is an unqualified result, and the previous visual acuity value was 5.0, which was a passing result, the target user's final visual acuity value is 5.0.

[0086] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0087] On the basis of the above embodiments, the present disclosure can explain the process of starting the vision detection process to perform vision detection on the user, as shown in FIG5 . The vision detection process includes but is not limited to the following steps.

[0088] S501, displaying an optotype of a standard vision value at a target detection interval, and obtaining a first vision test result of the standard vision value, wherein each vision value at the target detection interval corresponds to an optotype of different size.

[0089] Alternatively, the standard visual acuity value may be 5.0.

[0090] Optionally, the test is started from 5.0, and the visual mark corresponding to 5.0 is displayed on the vision testing device to obtain a first vision test result of the standard vision value.

[0091] It is understandable that different visual acuity values ​​under target detection distances correspond to sight marks of different sizes, as shown in Table 2:

[0092] Table 2

[0093] It is understood that each element in Table 2 exists independently. These elements are illustratively listed in the same table, but this does not mean that all elements in the table must exist simultaneously as shown in the table. The value of each element is independent of the value of any other element in Table 2. Therefore, those skilled in the art will understand that the value of each element in Table 2 is an independent embodiment. It should be noted that during the entire vision testing process, the distance between the target user's eyes and the vision testing equipment must be maintained at the target standard spacing.

[0094] S502 , based on the first vision test result, determining a vision value set for subsequent vision testing from each vision value of the target detection interval, and displaying the visual acuity values ​​in the vision value set in sequence.

[0095] In one embodiment, if the first vision test result is qualified, the vision test value can be increased. For example, if the vision test result is 5.0, the test direction is to increase the vision value, and continue to test 5.1, 5.2, and so on, where {5.1, 5.2, 5.3} is a vision value set. If the vision test result is 5.0, it is unqualified, and the test direction is to decrease the vision value, and continue to test 4.9, 4.8, and so on, where {4.9, 4.8, ..., 3.6} is a vision value set.

[0096] The vision values ​​in the vision value set may be arranged in a certain order. After the vision value set is determined, the vision values ​​in the detection vision value set may be detected in sequence.

[0097] For example, if the vision value set is {5.1, 5.2, 5.3}, the detection can be performed starting from 5.1 and proceeding in ascending order.

[0098] For another example, the vision value set is {4.9, 4.8, ..., 3.6}, and the detection can be carried out starting from 4.9 and proceeding in descending order.

[0099] For example, if the vision test result of 5.0 is unqualified, the vision value will be tested again at 4.9. When the vision test of 4.9 is qualified, the user's vision test result will be 4.9; if the vision test result of 4.9 is unqualified, the vision value will be tested again at 4.8. If the vision test of 4.8 is qualified, the user's vision test result will be 4.8.

[0100] In some implementations, during the vision testing process, for the same vision value, to improve the accuracy of the test, N optotypes corresponding to the vision value can be displayed on the screen. N is an integer greater than or equal to 1. It is understood that the N optotypes corresponding to the same vision value are displayed sequentially on the screen of the vision testing device.

[0101] Furthermore, the sub-vision test results for each orientation can be obtained, and based on the sub-vision test results for each orientation, the vision test result for that vision value can be determined. For example, when the standard vision value is 5.0, five sight marks with different orientations are displayed on the screen of the vision testing device. If the orientations of three or more sight marks are correctly determined, the vision test result for a vision value of 5.0 is considered qualified. If the orientations of three consecutive sight marks are incorrectly determined, the vision test result for a vision value of 5.0 is determined to be unqualified.

[0102] S503, ending the vision test when the second vision test result of the currently tested vision value is different from the third vision test result of the previously tested vision value.

[0103] In the embodiment of the present disclosure, the test starts from a standard vision value of 5.0, and the test result is a first vision test result. Depending on whether the first vision test result is qualified or not, the vision test is further performed with a different vision value set, and the test result is a second vision test result. Then, the vision test is continued under this vision value set until a different vision test result appears.

[0104] For example, if the vision value set for the vision test is {4.9, 4.8, ..., 3.6}, the current vision value is 4.7, the vision test result is unqualified, and the vision value is continued to be tested to be 4.6, the vision test result is unqualified, and the vision value is continued to be tested to be 4.5, the vision test result is qualified, and the vision test is ended.

[0105] For example, if the vision value set for the vision test is {5.1, 5.2, 5.3}, the current vision value is 5.1, the vision test result is unqualified, and the vision value is continued to be 5.2, the vision test result is qualified, and the vision test is ended.

[0106] S504: Determine a vision test result of the target user based on the second vision test result and the third vision test result.

[0107] In one embodiment, a vision test is performed in an increased vision value set. When the second vision test result is qualified and the third vision test result is unqualified, the user's vision test result is the tested vision value corresponding to the second vision test result; a vision test is performed in a decreased vision value set. When the second vision test result is unqualified and the third vision test result is qualified, the target user's vision test result is the tested vision value corresponding to the third vision test result.

[0108] For example, when the vision value set for vision testing is {5.1, 5.2, 5.3}, if the vision value 5.1 is qualified and the vision value 5.2 is unqualified, the user's vision test result is 5.1; if the vision value 5.1 is qualified, the vision value 5.2 is qualified, and the vision value 5.3 is unqualified, the target user's vision test result is 5.2.

[0109] For example, when the vision value set for vision testing is {4.9, 4.8, ..., 3.6}, if the vision value 4.8 is unqualified and the vision value 4.7 is qualified, the user's vision test result is 4.7; if the vision value 4.8 is unqualified, the vision value 4.7 is unqualified, and the vision value 4.6 is qualified, the target user's vision test result is 4.6.

[0110] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0111] Based on the above embodiments, the presently disclosed embodiments can explain the process of starting a vision detection process to identify the user's eyes to obtain the measured iris size of the target user's iris in the image. As shown in Figure 6, the vision detection process includes but is not limited to the following steps.

[0112] S601 , performing face recognition on the collected image, and obtaining candidate measurement iris sizes of the target user's two irises in the image.

[0113] In the disclosed embodiment, face recognition is performed on the collected images based on the facial features of the person, an image containing the face is collected using a camera, and the two eyes of the target user are automatically detected and tracked in the collected image, thereby detecting the candidate measurement iris sizes of the target user's two irises in the image.

[0114] S602: Determine the difference between two candidate measured iris sizes.

[0115] In one embodiment, a difference between the two candidate measured iris sizes of the target user's two irises in the image can be calculated. Based on the difference, it is determined whether the target user has a vision problem during the vision test, such as a problem with the target user's eye condition or an abnormality in the vision test equipment's recognition.

[0116] S603: If the difference is less than or equal to the set value, obtain the average value of the two candidate measured iris sizes, and determine the average value as the measured iris size.

[0117] In the disclosed embodiment, before the vision test begins, a difference value can be set based on the iris sizes of a large number of people. This difference can be compared with the difference between the two candidate iris sizes of the target user. It is understood that the size difference between a person's two eyes is not large. If the difference between the two candidate iris sizes differs significantly from the set value, it may be that the target user did not open one eye during the image capture, or that the vision test equipment may have a recognition error. The user needs to be prompted to open both eyes, and the candidate iris sizes of the target user's two irises in the image should be re-measured.

[0118] In some implementations, if the difference between the two candidate measured iris sizes of the target user is within a reasonable range and the difference between the two candidate measured iris sizes is less than or equal to the set value, the average value of the two candidate measured iris sizes is calculated, and the average value is determined as the measured iris size, and then vision testing is performed based on the determined measured iris size.

[0119] S604: If the difference is greater than a set value, select the larger candidate measured iris size from the two candidate measured iris sizes as the measured iris size.

[0120] In some implementations, if the difference between the two candidate measured iris sizes of the target user is within a reasonable range and the difference between the two candidate measured iris sizes is greater than the set value, the larger candidate measured iris size is selected from the two candidate measured iris sizes as the measured iris size, and vision testing is performed based on the determined measured iris size.

[0121] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0122] FIG7 is a flow chart of a vision detection method according to another exemplary embodiment. As shown in FIG7 , the vision detection method of the embodiment of the present disclosure includes the following steps.

[0123] S701, performing face recognition on the collected image, and extracting a face image from the collected image based on the face recognition result.

[0124] In the disclosed embodiment, face recognition is based on human facial features, such as statistical features or geometric features, using a camera to capture images containing faces, and automatically detects and tracks faces in the images, and then performs a series of related application operations on the detected face images, including image acquisition, feature positioning, etc.

[0125] In one embodiment, image extraction uses an image acquisition system to collect available images, performs image processing on the input images, uses an algorithm to adjust the image pixel size to eliminate noise and improve image quality, performs image segmentation based on the image processing results, removes noise other than the face, and generates a valid face image.

[0126] S702 , performing key point positioning on the face image to determine the position of the eyes in the face image, and extracting two eye slices from the face image based on the eye positions.

[0127] It should be noted that facial key point localization, also known as facial key point detection or face alignment, refers to locating the key facial areas, including eyebrows, eyes, nose, mouth, etc., given a facial image. In the disclosed embodiment, facial key point localization is performed based on a deep learning method. Based on the collected facial images, a facial image set with multiple facial key points is annotated. After the facial area is determined, edge detection is first performed to determine the horizontal area of ​​the left and right eyes. The number of areas of each eye is statistically calculated separately, and then slice images are extracted for each eye area.

[0128] S703: Perform iris detection on the two human eye slice images to obtain candidate iris sizes for measurement.

[0129] In one embodiment, an iris detection model is trained. The training data includes images with annotated boxes representing the location and size of objects. Preprocessing the images, including scaling, cropping, and normalization, helps improve the model's detection accuracy and speed. The iris detection model is then used to perform object detection on two preprocessed human eye slices, obtaining the location and size information of the two eyes. Based on the detection results, candidate iris sizes are obtained, which can be represented using pixel coordinates.

[0130] S704 , determining a target standard spacing for the target user to be tested for vision from all candidate standard spacings based on the measured iris size.

[0131] In the embodiment of the present disclosure, the implementation of step S704 can be implemented by using any of the methods in the embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0132] S705 , generating vision detection guidance information based on the target standard distance, where the vision detection guidance information is used to guide the target user to reach the target standard distance.

[0133] In the embodiment of the present disclosure, the implementation of step S705 can be implemented by using any of the methods in the various embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0134] S706: Perform a vision test on the target user according to the target standard spacing to obtain a vision test result of the target user.

[0135] In the embodiment of the present disclosure, the implementation of step S706 can be implemented by using any of the methods in the various embodiments of the present disclosure, which is not limited here and will not be described in detail.

[0136] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0137] FIG8 of the present disclosure is a flowchart of a detection method of a vision detection device according to an exemplary embodiment. As shown in FIG8 , the detection method of the vision detection device in the embodiment of the present disclosure includes the following steps.

[0138] S801: Collect a target user image for face recognition, and extract a face image from the collected image based on the face recognition result.

[0139] S802: Position key points of the face image to determine the positions of the eyes in the face image, and extract two eye slices from the face image based on the positions of the eyes.

[0140] S803: Perform iris detection on the two human eye slice images to obtain candidate iris sizes for measurement.

[0141] S804: Determine the measurement distance between the target user and the camera based on the measured iris size.

[0142] S805 , selecting a candidate standard spacing with the smallest difference from the measured spacing from all candidate standard spacings as the target standard spacing.

[0143] S806, displaying the sight mark of the standard vision value at the target detection distance, and obtaining the first vision detection result of the standard vision value.

[0144] S807, based on the first vision test result, determine a vision value set for subsequent vision testing from each vision value of the target detection interval, and display the visual acuity values ​​in the vision value set in sequence.

[0145] S808, ending the vision test when the second vision test result of the currently tested vision value is different from the third vision test result of the previously tested vision value.

[0146] S809: Determine a vision test result of the target user based on the second vision test result and the third vision test result.

[0147] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0148] FIG9 is a block diagram of a vision detection device according to an exemplary embodiment. Referring to FIG9 , the vision detection device 900 of the embodiment of the present disclosure includes: a human eye recognition module 901 , a distance measurement module 902 , a generation module 903 and a vision detection module 904 .

[0149] The human eye recognition module 901 is configured to perform image capture of the target user and perform human eye recognition on the captured image to obtain the measured iris size of the target user's iris in the image.

[0150] The distance measurement module 902 is configured to determine a target standard distance for a target user to perform vision testing from all candidate standard distances according to the measured iris size.

[0151] The generating module 903 is configured to generate vision detection guiding information based on the target standard distance, where the vision detection guiding information is used to guide the target user to reach the target standard distance.

[0152] The vision detection module 904 is configured to perform a vision detection on the target user according to the target standard spacing to obtain a vision detection result of the target user.

[0153] In one embodiment of the present disclosure, the distance measurement module 902 is further configured to perform: determining a measured distance between the target user and the camera based on the measured iris size; and selecting a candidate standard distance with the smallest difference from the measured distance from all candidate standard distances as the target standard distance.

[0154] In one embodiment of the present disclosure, the distance measurement module 902 is further configured to execute: obtaining the actual reference width of the iris; and determining the measured distance between the target user and the camera based on the measured iris size, the actual reference width, and the camera intrinsic parameters.

[0155] In one embodiment of the present disclosure, the eye recognition module 901 is further configured to perform the following: perform facial recognition on the captured image to obtain candidate measured iris sizes of the target user's two irises in the image; determine the difference between the two candidate measured iris sizes; if the difference is less than or equal to a set value, obtain the average of the two candidate measured iris sizes and determine the average as the measured iris size; if the difference is greater than the set value, select the larger candidate measured iris size from the two candidate measured iris sizes as the measured iris size.

[0156] In one embodiment of the present disclosure, the eye recognition module 801 is further configured to perform: performing face recognition on the collected image, and extracting a face image from the collected image based on the face recognition result; performing key point positioning on the face image to determine the position of the eyes in the face image, and extracting two eye slices from the face image based on the eye position; and performing iris detection on the two eye slices to obtain candidate measured iris sizes.

[0157] In one embodiment of the present disclosure, the vision detection module 904 is further configured to perform: real-time updating of the user's measured distance; when the updated measured distance of the target user reaches the target standard distance, starting the vision detection process, performing a vision detection on the target user at the target standard distance, and outputting the target user's vision detection result until the vision detection process ends.

[0158] In one embodiment of the present disclosure, the vision detection module 904 is further configured to perform: displaying visual acuity marks of standard vision values ​​at the target detection interval, and obtaining a first vision detection result of the standard vision values, wherein each vision value at the target detection interval corresponds to a visual acuity mark of a different size; based on the first vision detection result, determining a vision value set for subsequent vision detection from each vision value of the target detection interval, and displaying the visual acuity marks of the vision values ​​in the vision value set in sequence; ending the vision detection when the second vision detection result of the currently detected vision value is different from the third vision detection result of the previously detected vision value; and determining the vision detection result of the target user based on the second vision detection result and the third vision detection result.

[0159] In one embodiment of the present disclosure, the vision detection module 904 is further configured to perform the following operations: collecting voice information of the target user, performing voice recognition on the voice information, and obtaining a vision detection result; or collecting a hand image of the target user, and performing gesture recognition on the hand image, and determining a vision detection result based on the recognized target gesture; or collecting feedback operations of the target user within the operating area of ​​the vision detection device, and determining a vision detection result based on the feedback operations.

[0160] In one embodiment of the present disclosure, the vision detection module 904 is further configured to perform: for each detected vision value, obtain the visual marks of N directions under the vision value for display, and obtain the sub-vision detection result under each direction, where N is an integer greater than or equal to 1; based on the sub-vision detection result under each direction, determine the vision detection result of the vision value.

[0161] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0162] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the target user's iris in the image, determines the target standard distance for the target user's vision detection based on the measured iris size, guides the target user to the target standard distance, and then performs a vision detection on the target user to obtain the target user's vision detection result. The present disclosure can determine the standard distance during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby realizing that vision detection no longer relies on professional testing institutions, and improving the timeliness of vision detection. In addition, the determination of the standard distance by the portable electronic device improves the accuracy of vision detection.

[0163] In order to implement the above embodiments, the present disclosure further proposes a vision detection device, including a processor and a memory for storing instructions executable by the processor.

[0164] Figure 10 of the present disclosure is a block diagram of a vision detection device 1000 shown according to an exemplary embodiment. The vision detection device 1000 includes components such as a processor 1002, an I / O interface 1011, a network adapter 1012, and a memory 1001. In addition, the vision detection device 1000 can also be connected to other devices to achieve rich human-computer interaction functions, such as being connected to a display 1010, an external device 1009, a speaker (not shown), a camera (not shown), etc. The display (and / or camera) and the external device are communicatively connected to the processor via the I / O interface, and the memory is also communicatively connected to the processor. Through the display, the vision detection device can be made to realize video monitoring and control. Through the camera, image capture can be realized and then image processing and use can be realized through the processor. Through the speaker, the detection device can be made to realize audio capture, and then audio processing and use can be realized through the processor.

[0165] Specifically, as shown in FIG10 , the vision detection device 1000 includes:

[0166] The memory 1001 and the processor 1002, a bus 1003 connecting different components (including the memory 1001 and the processor 1002), the memory 1001 stores a computer program, and when the processor 1002 executes the program, the control method of the air conditioner described in the embodiment of the present disclosure is implemented.

[0167] Bus 1003 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0168] The vision testing device 1000 typically includes a variety of electronic device readable media, which can be any available media that can be accessed by the vision testing device 1000, including volatile and non-volatile media, removable and non-removable media.

[0169] The memory 1001 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 1004 and / or cache memory 1005. The vision detection device 1000 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 1006 may be used to read and write non-removable, non-volatile magnetic media (not shown in FIG10 , commonly referred to as a “hard drive”). Although not shown in FIG10 , a disk drive for reading and writing to a removable non-volatile disk (such as a “floppy disk”) and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical media) may be provided. In these cases, each drive may be connected to the bus 1003 via one or more data medium interfaces. The memory 1001 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of each embodiment of the present disclosure.

[0170] A program / utility 1008 having a set (at least one) of program modules 1007 may be stored, for example, in memory 1001. Such program modules 1007 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 1007 generally implement the functions and / or methods described in the embodiments of the present disclosure.

[0171] The vision testing device 1000 can also communicate with one or more external devices 1009 (e.g., a keyboard, pointing device, display 1010, etc.), one or more devices that enable a user to interact with the vision testing device 1000, and / or any device that enables the vision testing device 1000 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). This communication can occur via an input / output (I / O) interface 1011. Furthermore, the vision testing device 1000 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 1012. As shown in FIG10 , the network adapter 1012 communicates with other modules of the vision testing device 1000 via a bus 1003. It should be understood that, although not shown, other hardware and / or software modules can be used in conjunction with the vision testing device 1000, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0172] The processor 1002 executes various functional applications and data processing by running programs stored in the memory 1001 .

[0173] It should be noted that the implementation process and technical principles of the vision detection equipment of this embodiment can be found in the aforementioned explanation of the control method of the air conditioner of the embodiment of the present disclosure, and will not be repeated here.

[0174] In the vision detection method provided in the embodiments of the present disclosure, the vision detection device collects an image of the target user and performs human eye recognition on the collected image to obtain the measured size of the user's iris in the image. Based on the measured iris size, the target standard distance for the target user's vision detection is determined. The target user's vision is detected based on the target standard spacing to obtain the target user's vision detection result. The present disclosure can determine the standard spacing during detection by the human eye, providing a basis for implementing vision detection on portable electronic devices, thereby achieving vision detection no longer relying on professional testing institutions and improving the timeliness of vision detection. In addition, the determination of the standard spacing by the portable electronic device improves the accuracy of vision detection.

[0175] In order to implement the above embodiments, the present disclosure further provides a computer-readable storage medium having computer program instructions stored thereon. When the program instructions are executed by a processor, the steps of the air conditioner control method provided by the present disclosure are implemented.

[0176] Alternatively, the computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.

[0177] In order to implement the above embodiments, the present disclosure further provides a computer program product, including a computer program, characterized in that when the computer program is executed by a processor of an electronic device, the above air conditioner control method is implemented.

[0178] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0179] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for detecting vision, comprising: Capturing an image of a target user, and performing human eye recognition on the captured image to obtain a measured iris size of the target user's iris in the image; Determining, according to the measured iris size, a target standard spacing for the target user to be tested for vision from all candidate standard spacings; Generate vision detection guidance information based on the target standard distance, wherein the vision detection guidance information is used to guide the target user to reach the target standard distance; The vision of the target user is tested according to the target standard spacing to obtain a vision test result of the target user.

2. The method according to claim 1, wherein: The step of determining, based on the measured iris size, a target standard spacing for the target user to perform vision testing from all candidate standard spacings includes: Determining a measurement distance between the target user and the camera according to the measured iris size; A candidate standard spacing that has the smallest difference from the measured spacing is selected from all candidate standard spacings as the target standard spacing.

3. The method according to claim 2, wherein: The step of determining the measurement distance between the target user and the camera according to the measured iris size includes: Get the actual reference width of the iris; A measurement distance between the target user and the camera is determined according to the measured iris size, the actual reference width, and a camera internal parameter.

4. The method according to claim 1, wherein: The performing human eye recognition on the collected image to obtain the measured iris size of the target user's iris in the image includes: Performing face recognition on the collected image to obtain candidate measured iris sizes of two irises of the target user in the image; determining a difference between two of the candidate measured iris sizes; If the difference is less than or equal to the set value, obtaining an average value of the two candidate measured iris sizes, and determining the average value as the measured iris size; If the difference is greater than the set value, a larger candidate measured iris size is selected from the two candidate measured iris sizes as the measured iris size.

5. The method according to claim 4, wherein: The performing face recognition on the collected image to obtain the candidate measured iris sizes of the two irises of the target user in the image respectively includes: Performing face recognition on the collected image, and extracting a face image from the collected image based on the face recognition result; Positioning key points of the face image to determine the position of human eyes in the face image, and extracting two eye slices from the face image based on the position of human eyes; Iris detection is performed on the two human eye slice images to obtain the candidate measured iris sizes.

6. The method according to any one of claims 1 to 5, wherein: After the vision detection guidance information is generated based on the target standard spacing, the method further includes: updating the measured distance of the user in real time; When the updated measurement interval of the target user reaches the target standard interval, the vision detection process is started, and the vision detection of the target user is performed at the target standard interval, until the vision detection process is completed and the vision detection result of the target user is output.

7. The method according to claim 6, wherein: The step of performing vision testing on the target user at the target standard spacing until the vision testing process is completed and outputting the vision testing result of the target user includes: Displaying the sight mark of the standard vision value at the target detection interval, and obtaining the first vision detection result of the standard vision value, wherein each vision value at the target detection interval corresponds to a sight mark of different sizes; Based on the first vision detection result, from each vision value of the target detection interval Determine a set of vision values ​​for subsequent vision testing, and display the visual acuity values ​​in the set of vision values ​​in sequence; When the second vision test result of the vision value currently tested is different from the third vision test result of the vision value previously tested, the vision test is terminated; Based on the second vision detection result and the third vision detection result, determine the vision detection result of the target user.

8. The method according to claim 7, wherein: The process of obtaining any vision test result includes: collecting voice information of the target user, performing voice recognition on the voice information, and obtaining the vision detection result; or, collecting a hand image of the target user, and identifying a gesture in the hand image, and determining the vision detection result based on the identified target gesture; or, The feedback operation of the target user in the operation area of ​​the vision detection device is collected, and the vision detection result is determined based on the feedback operation.

9. The method according to claim 8, wherein: The method further comprises: For each detected vision value, obtain the visual marks of N directions under the vision value for display, and obtain the sub-vision test result under each direction, wherein N is an integer greater than or equal to 1; Based on the sub-vision test results in each direction, the vision test result of the vision value is determined.

10. A detection device for vision detection equipment, comprising: The human eye recognition module is configured to perform image acquisition of the target user and perform human eye recognition on the acquired image to obtain the measured iris size of the target user's iris in the image; A distance measurement module is configured to determine a target standard distance when the target user performs vision testing from all candidate standard distances according to the measured iris size; A generating module is configured to generate a vision detection guide based on the target standard spacing. Guidance information, wherein the vision detection guidance information is used to guide the target user to reach the target standard distance; The vision detection module is configured to perform a vision detection on the target user according to the target standard spacing to obtain a vision detection result of the target user.

11. The device of claim 10, wherein: The ranging module is further configured to execute: Determining a measurement distance between the target user and the camera according to the measured iris size; A candidate standard spacing that has the smallest difference from the measured spacing is selected from all candidate standard spacings as the target standard spacing.

12. The device of claim 11, wherein: The ranging module is further configured to execute: Get the actual reference width of the iris; A measurement distance between the target user and the camera is determined according to the measured iris size, the actual reference width, and a camera internal parameter.

13. The device of claim 10, wherein: The human eye recognition module is further configured to execute: Performing face recognition on the collected image to obtain candidate measured iris sizes of two irises of the target user in the image; determining a difference between two of the candidate measured iris sizes; If the difference is less than or equal to the set value, obtaining an average value of the two candidate measured iris sizes, and determining the average value as the measured iris size; If the difference is greater than the set value, the larger candidate measured iris size is selected from the two candidate measured iris sizes as the measured iris size.

14. The device of claim 13, wherein: The human eye recognition module is further configured to execute: Performing face recognition on the collected image, and extracting a face image from the collected image based on the face recognition result; Positioning key points of the face image to determine the position of human eyes in the face image, and extracting two eye slices from the face image based on the position of human eyes; Iris detection is performed on the two human eye slice images to obtain the candidate measured iris sizes.

15. The device according to any one of claims 10 to 14, wherein: The vision detection module is further configured to perform: updating the measured distance of the user in real time; When the updated measurement interval of the target user reaches the target standard interval, the vision detection process is started, and the vision detection of the target user is performed at the target standard interval, until the vision detection process is completed and the vision detection result of the target user is output.

16. The device of claim 15, wherein: The vision detection module is further configured to perform: Displaying the sight mark of the standard vision value at the target detection interval, and obtaining the first vision detection result of the standard vision value, wherein each vision value at the target detection interval corresponds to a sight mark of different sizes; Based on the first vision test result, determine a vision value set for subsequent vision testing from each vision value of the target detection interval, and display the sight marks of the vision values ​​in the vision value set in sequence; When the second vision test result of the vision value currently tested is different from the third vision test result of the vision value previously tested, the vision test is terminated; Based on the second vision detection result and the third vision detection result, determine the vision detection result of the target user.

17. The device of claim 16, wherein: The vision detection module is further configured to perform: collecting the target user's voice information and performing voice recognition on the voice information, Obtaining the vision test result; or, Collecting a hand image of the target user, and recognizing a gesture in the hand image, and determining the vision detection result based on the recognized target gesture; or, The feedback operation of the target user in the operation area of ​​the vision detection device is collected, and the vision detection result is determined based on the feedback operation.

18. The device of claim 17, wherein: The vision detection module is further configured to perform: For each detected vision value, obtain the visual marks of N directions under the vision value for display, and obtain the sub-vision test result under each direction, wherein N is an integer greater than or equal to 1; Based on the sub-vision test results in each direction, the vision test result of the vision value is determined.

19. A vision detection device, comprising a processor and a memory for storing processor executable instructions in communication with the processor, in, The processor is configured to control to execute the instructions, so as to implement the steps of the method according to any one of claims 1 to 9 through at least one of a speaker, a camera and a display communicatively connected to the processor.

20. A computer-readable storage medium having computer program instructions stored thereon, wherein the program instructions, when executed by a processor, implement the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Eyesight detection method and device, and mobile terminal

    CN106725288A

  • Vision detecting method, device thereof, vision detecting instrument and computer storage medium

    CN110123257A

  • Vision detection method and device, electronic product and storage medium

    CN111543934A

  • Detection method, vision detection method and device, electronic equipment and storage medium

    CN113509136A

  • Vision detection method and device, vision detection equipment and storage medium

    CN116439651A