Vision detection method, desk lamp and storage medium
By integrating lighting and vision detection devices into the desk lamp, parameters are adjusted in real time to adapt to ambient light and user status, solving the problem of ambient light affecting the accuracy of vision detection and achieving higher detection accuracy.
Patent Information
- Application Number
- CN202310373614.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2043-04-07
AI Technical Summary
When existing vision testing equipment is used with a desk lamp, ambient light has a significant impact on the test results, leading to a decrease in test accuracy.
The desk lamp is equipped with a lighting device and a vision testing device. By collecting ambient light parameters and the user's binocular parameters, the vision testing correction parameters are determined, and the parameters of the lighting and vision testing device are adjusted to optimize the testing conditions.
It improves the accuracy of vision testing and ensures that the test can be performed normally in different environments and user conditions.
Smart Images

Figure CN116350171B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vision testing technology, and in particular to a vision testing method, a desk lamp, and a storage medium. Background Technology
[0002] Currently, commonly used vision testing equipment requires operation under certain environmental conditions, especially with strict requirements on ambient light. When vision testing equipment is integrated with a desk lamp, the ambient light significantly affects the vision test results due to the distance between the user and the lamp, greatly reducing the accuracy of the results. Summary of the Invention
[0003] This invention provides a vision testing method, a desk lamp, and a storage medium to address the problem in the prior art that ambient light has a significant impact on vision testing results, greatly reducing the accuracy of vision testing results.
[0004] In a first aspect, a vision testing method is provided, applied to a desk lamp, wherein the desk lamp is provided with a lighting device and a vision testing device, the method comprising: collecting current ambient light parameters and target binocular parameters of a user, wherein the target binocular parameters include: the target distance between the user's eyes and the vision testing device, and the target pupil size of the user;
[0005] Based on the current ambient light parameters and the target binocular parameters, vision detection correction parameters are determined, which are used to indicate the parameter adjustments for the lighting device and the vision detection device.
[0006] Adjust the parameters of the lighting device and the parameters of the vision testing device according to the vision testing correction parameters;
[0007] The vision test device with adjusted parameters is used to perform a vision test on the user, and the vision test result is obtained.
[0008] As an optional implementation, in a first aspect of the present invention, determining the vision detection correction parameters based on the current ambient light parameters and the target binocular parameters includes:
[0009] Based on the current ambient light parameters and the target binocular parameters, the visual acuity detection target parameters are determined, and the visual acuity detection target parameters change with the current ambient light parameters and the target binocular parameters;
[0010] Acquire initial parameters for vision testing, which include: initial parameters of the lighting device and initial parameters of the vision testing device;
[0011] The vision test correction parameters are determined based on the vision test target parameters and the vision test initial parameters.
[0012] As an optional implementation, in a first aspect of the present invention, determining the target parameters for vision detection based on the current ambient light parameters and the target binocular parameters includes:
[0013] Based on the correspondence between pre-stored ambient light parameters, binocular parameters, and visual acuity testing parameters, the visual acuity testing target parameters corresponding to the current ambient light parameters and the target binocular parameters are determined.
[0014] As an optional implementation, in a first aspect of the present invention, the method further includes:
[0015] Before testing, visual acuity was tested on the test subjects, and the results of the visual acuity test, ambient light test parameters, and binocular test parameters were recorded.
[0016] Based on the vision test results and the vision test standard results of the tester, the test parameters of the lighting device and the test parameters of the vision test device are adjusted so that the vision test results obtained after adjustment are the same as the vision test standard results.
[0017] The ambient light test parameters and binocular test parameters are stored in correspondence with the adjusted test parameters of the lighting device and the adjusted test parameters of the vision testing device to obtain the correspondence between the pre-stored ambient light parameters, binocular parameters and vision testing parameters.
[0018] As an optional implementation, in a first aspect of the present invention, the acquisition of the user's target binocular parameters includes:
[0019] The target image is acquired through the vision detection device, and the user's eyes are located at the center of the target image;
[0020] Based on the target image and the focal length parameters of the vision testing device, the target binocular parameters of the user are determined.
[0021] As an optional implementation, in a first aspect of the present invention, acquiring the target image through the vision detection device includes:
[0022] An initial image is acquired using the vision detection device.
[0023] The initial image is detected to determine the initial position of the user's eyes in the initial image;
[0024] Based on the initial position and the center position, the offset distance and offset direction are determined, wherein the center position is the center position within the field of view of the vision detection device.
[0025] The vision detection device is angled according to the offset distance and the offset direction so that the user's eyes move to the center position and the target image is captured.
[0026] As an optional implementation, in a first aspect of the present invention, the desk lamp is provided with a bidirectional rotating motor device, the bidirectional rotating motor device being connected to the vision detection device, and the step of adjusting the angle of the vision detection device according to the offset distance and the offset direction so that the user's eyes move to the center position includes:
[0027] The angle to be adjusted for the vision detection device is determined based on the offset distance and the offset direction;
[0028] The bidirectional rotating motor device is used to adjust the angle of the vision detection device according to the angle to be adjusted, so that the user's eyes move to the center position.
[0029] Secondly, a desk lamp is provided, wherein the desk lamp is provided with a lighting device and a vision detection device, the desk lamp including: an acquisition module for acquiring current ambient light parameters and target binocular parameters of the user, the target binocular parameters including: the target distance between the user's eyes and the vision detection device, and the target pupil size of the user;
[0030] The processing module is used to determine vision detection correction parameters based on the current ambient light parameters and the target binocular parameters. The vision detection correction parameters are used to indicate the parameter adjustments for the lighting device and the vision detection device.
[0031] The processing module is also used to adjust the parameters of the lighting device and the parameters of the vision detection device according to the vision detection correction parameters;
[0032] The processing module is also used to perform vision testing on the user using the vision testing device with adjusted parameters, and obtain vision test results.
[0033] Thirdly, a desk lamp is provided, wherein the desk lamp is provided with a lighting device and a vision testing device, the desk lamp comprising:
[0034] Memory containing executable program code;
[0035] A processor coupled to the memory;
[0036] The processor calls the executable program code stored in the memory to execute the vision detection method in the first aspect of the present invention.
[0037] Fourthly, a computer-readable storage medium is provided that stores a computer program that causes a computer to execute the vision detection method of the first aspect of the present invention. The computer-readable storage medium includes ROM / RAM, a magnetic disk, or an optical disk, etc.
[0038] Fifthly, a computer program product is provided that, when the computer program product is run on a computer, causes the computer to perform some or all of the steps of any of the methods of the first aspect.
[0039] In a sixth aspect, an application publishing platform is provided for publishing computer program products, wherein when the computer program products are run on a computer, the computer performs some or all of the steps of any of the methods of the first aspect.
[0040] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0041] In this embodiment of the invention, the desk lamp is equipped with a lighting device and a vision detection device. The desk lamp can collect current ambient light parameters and target binocular parameters of the user. The target binocular parameters include the target distance between the user's eyes and the vision detection device, and the user's target pupil size. Based on the current ambient light parameters and the target binocular parameters, vision detection correction parameters are determined. These correction parameters indicate the adjustment status of the parameters for the lighting device and the vision detection device. The parameters of the lighting device and the vision detection device are adjusted according to the correction parameters. The user's vision is then tested using the adjusted vision detection device to obtain the vision test result. In this solution, the desk lamp can adjust the parameters of the lighting device and the vision detection device in real time according to ambient light information and the user's status to the most suitable state for vision testing. This ensures the normal operation of vision testing and effectively improves the accuracy of the vision test results. Attached Figure Description
[0042] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0043] Figure 1 This is a schematic diagram of the structure of a table lamp provided in an embodiment of the present invention. Figure 1 ;
[0044] Figure 2 This is a flowchart illustrating a vision testing method provided in an embodiment of the present invention. Figure 1 ;
[0045] Figure 3 This is a flowchart illustrating a vision testing method provided in an embodiment of the present invention. Figure 2 ;
[0046] Figure 4 This is a flowchart illustrating a vision testing method provided in an embodiment of the present invention. Figure 3 ;
[0047] Figure 5 This is a schematic diagram of the structure of a table lamp provided in an embodiment of the present invention. Figure 2 ;
[0048] Figure 6 This is a schematic diagram of the structure of a table lamp provided in an embodiment of the present invention. Figure 3 . Detailed Implementation
[0049] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0050] The terms "first" and "second," etc., used in the specification and claims of this invention are used to distinguish different objects, rather than to describe a specific order of objects.
[0051] The terms “comprising” and “having” and any variations thereof in this invention are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product or device.
[0052] It should be noted that in the embodiments of the present invention, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0053] The execution subject of the vision detection method provided in this embodiment of the invention can be a desk lamp, such as... Figure 1As shown, the desk lamp can include a microcontroller unit (MCU), a lighting device 11, and a vision detection device 12. The MCU can be the processor of the desk lamp. All steps performed by the desk lamp in this embodiment can be executed by the MCU. The MCU is connected to the lighting device 11 to control it, and the MCU is connected to the vision detection device 12 to control it. The lighting device 11 can be a lamp tube, a light bulb, or a light-emitting diode (LED), etc. The vision detection device 12 can perform real-time vision testing for the user. Since the desk lamp is usually placed on a table, and the user sits beside the table, the vision detection device 12 can be placed on the side of the desk lamp, facing outwards, which facilitates vision testing for the user.
[0054] like Figure 2 As shown, an embodiment of the present invention provides a vision detection method, which may include the following steps:
[0055] 201. Collect the current ambient light parameters and the user's target binocular parameters.
[0056] In this embodiment of the invention, since the desk lamp is usually placed on a table and the user sits next to the table, the desk lamp can collect the current ambient light parameters of the current environment. The current ambient light parameters may include the ambient light intensity and the desk lamp light intensity.
[0057] It should be noted that the target binocular parameters may include: the target distance between the user's eyes and the vision testing device, and the user's target pupil size. The target distance is the distance between the user's eyes and the vision testing device, which is also the distance between the user's eyes and the desk lamp; the target pupil size is the size of the user's two pupils.
[0058] Optionally, the desk lamp may be equipped with a light sensor to collect current ambient light parameters; a distance sensor to obtain the target distance between the user's eyes and the vision testing device; and a camera to obtain the user's target pupil size.
[0059] 202. Determine the vision test correction parameters based on the current ambient light parameters and the target binocular parameters.
[0060] In this embodiment of the invention, after the desk lamp determines the current ambient light parameters and the target binocular parameters, it can determine vision detection correction parameters based on the current ambient light parameters and the target binocular parameters. These vision detection correction parameters can be used to indicate the parameter adjustments for the lighting device and the vision detection device.
[0061] It should be noted that, since there is a certain distance between the desk lamp and the user's eyes when performing vision tests, the light in the environment where the user and the desk lamp are located will have a certain impact on the vision test results. Since the ambient brightness cannot be adjusted, the parameters of the lighting device need to be adjusted to achieve the optimal environmental conditions for vision testing. At the same time, the vision testing device also needs to adjust relevant parameters according to the real-time environment and the user's state. The vision testing correction parameters are the parameters that correspond to the current ambient light parameters and the target's eyes, which can adjust the parameters of the lighting device and the vision testing device to the optimal state.
[0062] Optionally, the correspondence between ambient light parameters, binocular parameters, and vision test parameters can be pre-trained and stored in the desk lamp, so that the desk lamp can directly determine the vision test correction parameters corresponding to the current ambient light parameters and the target binocular parameters.
[0063] 203. Adjust the parameters of the lighting device and the vision testing device according to the vision test correction parameters.
[0064] In this embodiment of the invention, since the vision detection correction parameter can be used to indicate the parameter adjustment status of the lighting device and the vision detection device, the desk lamp can adjust the parameters of the lighting device and the vision detection device according to the vision detection correction parameter. The vision detection correction parameter can be equivalent to a change amount. The desk lamp needs to adjust the parameters based on the current parameters of the lighting device and the vision detection device by adjusting the magnitude of the vision detection correction parameter.
[0065] Optionally, the parameters of the lighting device may include: the brightness and color temperature of the lighting device, and the parameters of the vision detection device may include: the brightness and emission time of the infrared supplementary light, the exposure and shutter parameters of the infrared photosensitive camera, etc.
[0066] 204. The vision test device with adjusted parameters is used to test the user's vision and obtain the vision test results.
[0067] In this embodiment of the invention, after the parameters of the lighting device and the vision testing device are adjusted to optimal conditions, the user's vision can be tested by the vision testing device with the adjusted parameters, and a more accurate vision test result can be obtained.
[0068] Optionally, when the desk lamp performs a vision test on the user, the vision testing device is equipped with a vision testing program. This vision testing program can complete the vision test on the user under certain conditions. After the desk lamp adjusts the parameters of the lighting device and the vision testing device, it can start the vision testing program to perform a vision test on the user.
[0069] Optionally, the desk lamp performs a vision test on the user. After obtaining the vision test results, the parameters of the lighting device and the vision test device can be restored to their previous state. Since the environment and user state are different each time a vision test is conducted, the vision test correction parameters need to be redefined each time to adjust the parameters of the lighting device and the vision test device.
[0070] This invention provides a vision testing method. A desk lamp includes a lighting device and a vision testing device. The desk lamp can collect current ambient light parameters and target binocular parameters of the user. These target binocular parameters include the target distance between the user's eyes and the vision testing device, and the user's target pupil size. Based on the current ambient light parameters and the target binocular parameters, vision testing correction parameters are determined. These correction parameters indicate the adjustment status of the parameters for the lighting device and the vision testing device. The parameters of the lighting device and the vision testing device are adjusted according to the correction parameters. The user's vision is then tested using the adjusted vision testing device to obtain the vision test result. In this solution, the desk lamp can adjust the parameters of the lighting device and the vision testing device in real time based on ambient light information and the user's status to the most suitable state for vision testing. This ensures the normal operation of the vision test and effectively improves the accuracy of the vision test results.
[0071] like Figure 3 As shown in the figure, an embodiment of the present invention provides a vision detection method, which may further include the following steps:
[0072] 301. Collect current ambient light parameters.
[0073] In this embodiment of the invention, the description of step 301 is the same as the detailed description of step 201 in the above embodiments, and will not be repeated in this embodiment of the invention.
[0074] 302. Obtain the target image through a vision testing device.
[0075] In this embodiment of the invention, the desk lamp can acquire a target image, which includes the user's eyes, and the user's eyes are located at the center of the target image.
[0076] The desk lamp can acquire the target image through a vision testing device, which is equipped with a camera, that is, the target image is acquired through the camera.
[0077] Optionally, the target image can be acquired using a vision testing device, which may include: acquiring an initial image using the vision testing device; detecting the initial image to determine the initial position of the user's eyes in the initial image; determining the offset distance and offset direction based on the initial position and the center position; and adjusting the angle of the vision testing device based on the offset distance and offset direction so that the user's eyes move to the center position and the target image is captured.
[0078] In this implementation, since the position and angle of the vision detection device are not fixed, the user's eyes may not be in the center of the target image when the target image is first captured. Therefore, the angle of the vision detection device needs to be adjusted so that the user's eyes are in the center. Thus, the vision detection device can first acquire an initial image and determine the initial position of the user's eyes in the initial image. Then, it can determine the offset distance and offset direction between the initial position and the center position. The vision detection device can then adjust its angle according to the offset distance and offset direction. When the user's eyes are in the center position after the adjustment, the vision detection device can capture the target image.
[0079] It should be noted that the center position is the center position within the field of view of the vision testing device. In other words, as the angle of the vision testing device is adjusted, this center position will move. Since the user does not move, the user's eyes will eventually move to the center position, which is actually moving the center position to be aligned with the user's eyes.
[0080] Optionally, to ensure that the user's eyes are centered, after the vision testing device adjusts the angle based on the offset distance and offset direction, a test image is taken by the vision testing device, and the position of the user's eyes in the test image is detected. If the user's eyes are centered in the test image, then the test image can be directly determined as the target image; if the user's eyes are still not centered in the test image, then the vision testing device needs to adjust the angle.
[0081] Furthermore, the angle of the vision testing device is adjusted according to the offset distance and offset direction so that the user's eyes move to the center position. Specifically, this may include: determining the angle to be adjusted of the vision testing device according to the offset distance and offset direction; and adjusting the angle of the vision testing device according to the angle to be adjusted using a bidirectional rotary motor device so that the user's eyes move to the center position.
[0082] In this implementation, such as Figure 1As shown, the desk lamp can also be equipped with a bidirectional rotating motor device 13, which is connected to the MCU and the vision detection device 12 respectively. The bidirectional rotating motor device 13 can control the vision detection device 12 to adjust its angle left and right and up and down. The bidirectional rotating motor device 13 is equivalent to a driving device. The vision detection device 12 is equipped with a rotating shaft connected to the bidirectional rotating motor device 13. When the bidirectional rotating motor device 13 rotates, it drives the rotating shaft to rotate synchronously, which in turn drives the vision detection device 12 to rotate synchronously, so that the user's eyes move to the center position.
[0083] It should be noted that after the desk lamp determines the offset distance and offset direction, the angle to be adjusted of the vision detection device can be calculated. This angle can offset the offset distance and offset direction. This angle can include the angles in the X and Y directions. Then, the bidirectional rotary motor device can rotate according to this angle.
[0084] 303. Determine the user's target binocular parameters based on the target image and the focal length parameters of the vision testing device.
[0085] In this embodiment of the invention, after the desk lamp acquires a clear target image of the user's eyes at the center position, it can determine the user's target binocular parameters based on the focal length parameters of the vision testing device.
[0086] It should be noted that the target image obtained by the desk lamp through the vision testing device is a clear image after autofocus. Therefore, the desk lamp can determine the target distance between the user's eyes and the vision testing module based on the autofocus focal length parameters. Moreover, after determining the target distance, the actual pupil size of the user can be determined by combining the target distance with the user's pupil size in the target image, thereby obtaining the target binocular parameters.
[0087] 304. Determine the target parameters for vision testing based on the current ambient light parameters and the parameters of both eyes.
[0088] In this embodiment of the invention, the desk lamp can first determine the parameter conditions required for vision testing based on the current ambient light parameters and the target binocular parameters. These are the vision testing target parameters, which can change with the current ambient light parameters and the target binocular parameters.
[0089] Optionally, the visual acuity test target parameters can be determined based on the current ambient light parameters and the target binocular parameters. Specifically, this can include determining the visual acuity test target parameters corresponding to the current ambient light parameters and the target binocular parameters based on the pre-stored correspondence between the ambient light parameters, binocular parameters, and visual acuity test parameters.
[0090] In this implementation, the desk lamp has a pre-stored correspondence between ambient light parameters, binocular parameters, and vision detection parameters. When the ambient light parameters and binocular parameters change, the corresponding vision detection parameters will also change synchronously. Therefore, after the desk lamp determines the current ambient light parameters and the target binocular parameters, it can find the vision detection target parameters corresponding to the current ambient light parameters and the target binocular parameters from the pre-stored correspondence between the ambient light parameters, binocular parameters, and vision detection parameters.
[0091] Furthermore, the correspondence between ambient light parameters, binocular parameters, and visual acuity test parameters can be obtained through extensive pre-training and stored in the desk lamp. Specifically, the training process may include: pre-testing the subject's visual acuity and recording the results, ambient light parameters, and binocular parameters; adjusting the testing parameters of the lighting device and the visual acuity test device based on the visual acuity test results and the subject's visual acuity test standard results, so that the adjusted visual acuity test results are consistent with the visual acuity test standard results; and storing the ambient light parameters and binocular parameters in correspondence with the adjusted lighting device parameters and visual acuity test device parameters to obtain the pre-stored correspondence between the ambient light parameters, binocular parameters, and visual acuity test parameters.
[0092] In this implementation, the desk lamp can pre-test the test subject's vision and record the current vision test results, ambient light test parameters, and binocular test parameters. At this point, there will be a certain error between the vision test results and the test subject's vision test standard results. Therefore, the test parameters of the lighting device and the vision test device can be adjusted. During the adjustment process, vision tests are continuously performed until the vision test results are found to be the same as the vision test standard results. This indicates that the adjusted test parameters of the lighting device and the vision test device have reached the optimal conditions. At this point, the ambient light test parameters, binocular test parameters, and the adjusted test parameters of the lighting device and the vision test device can be stored accordingly. During training, a large number of test subjects can be selected to conduct vision tests, and vision tests can be conducted in a large number of different environments to obtain a large number of correspondences between ambient light parameters, binocular parameters, and vision test parameters.
[0093] 305. Obtain initial parameters for vision testing.
[0094] In this embodiment of the invention, the initial parameters for vision detection include: initial parameters of the lighting device and initial parameters of the vision detection device.
[0095] 306. Determine the vision test correction parameters based on the target parameters and initial parameters of the vision test.
[0096] In this embodiment of the invention, the vision detection correction parameter is the difference between the vision detection target parameter and the vision detection initial parameter. In other words, to change from the vision detection initial parameter to the vision detection target parameter, the change value of the vision detection correction parameter needs to be adjusted.
[0097] 307. Adjust the parameters of the lighting device and the vision testing device according to the vision test correction parameters.
[0098] 308. The vision test device with adjusted parameters is used to test the user's vision and obtain the vision test results.
[0099] In this embodiment of the invention, the description of steps 307 to 308 is the same as the detailed description of steps 203 to 204 in the above embodiments, and will not be repeated in this embodiment of the invention.
[0100] 309. Output vision test results.
[0101] In this embodiment of the invention, after the desk lamp determines the vision test result, it can output the vision test result to the user.
[0102] Optionally, the methods for outputting vision test results may include at least:
[0103] (1) Display the vision test results on the lamp’s display screen.
[0104] It should be noted that, as Figure 1 As shown, the desk lamp can also be equipped with a display module 14, which can be connected to the MCU. The display module 14 can be a display screen, and the desk lamp can directly display the vision test result on the display module 14 so that the user can know the current vision status directly through the display module 14.
[0105] (2) Output vision test results via voice.
[0106] It should be noted that, as Figure 1 As shown, the desk lamp can also be equipped with a voice reminder module 15, which can be connected to the MCU. The voice reminder module 15 can be a loudspeaker, and the desk lamp can directly broadcast the vision test results through the voice reminder module 15, so that the user can hear the current vision status directly through the voice reminder module 15.
[0107] (3) Send the vision test results to the user's terminal device.
[0108] It should be noted that the desk lamp can send the vision test results to the user's terminal device for display.
[0109] The desk lamp and the terminal device can communicate via Bluetooth, Wi-Fi, or other means.
[0110] (4) If the user is a minor, the vision test results will be sent to the terminal device of the user's guardian.
[0111] It should be noted that if the user being tested is a minor, the desk lamp can send the vision test results to the guardian's terminal device, where the results can be displayed, allowing the guardian to be aware of the user's vision status.
[0112] The desk lamp and the terminal device can communicate via Bluetooth, Wi-Fi, or other means.
[0113] Optionally, the above only shows some of the ways to output visual acuity test results, and does not mean that there are only the above ways to output visual acuity test results. Other ways to output visual acuity test results may also be included, which will not be described in detail here.
[0114] Optionally, before collecting the current ambient light parameters, the desk lamp can also remind the user whether a vision test is needed. If the user confirms the test, the lamp will start collecting the current ambient light parameters.
[0115] It should be noted that the desk lamp can display vision test information on the screen or broadcast vision test information through the voice prompt module. When the user confirms that a vision test is needed, they can confirm through voice, touch, or posture, among other methods.
[0116] Furthermore, such as Figure 1 As shown, the desk lamp can also be equipped with a camera module 16, which can be connected to the MCU. The camera module 16 can be a camera. The desk lamp can use the camera module 16 to confirm in real time whether a user is sitting near the desk lamp. When the camera module 16 confirms that the user is sitting in front of the desk lamp, it can remind the user whether they need to have their vision checked.
[0117] Furthermore, when the desk lamp confirms that the user is sitting in front of it, the lighting module can be turned on. The desk lamp can adjust the brightness and color temperature of the lighting module to the optimal state according to the ambient light intensity and the current time. For example, during the daytime when there is sunlight, the lighting brightness is reduced and adjusted to a cooler color temperature; during the nighttime, the lighting brightness is increased and adjusted to a warmer color temperature.
[0118] Optionally, the desk lamp can also enable a visual fatigue monitoring function, which monitors the user's status and eye usage in real time through a camera module. Through behavioral analysis, it can determine whether the user has visual fatigue or excessive eye use. When visual fatigue or excessive eye use is detected, the lamp will promptly output a fatigue monitoring reminder to the user through a voice reminder module to remind the user to rest. At the same time, the lamp's lighting module brightness and color temperature will be dynamically adjusted to alleviate the user's visual fatigue.
[0119] Optional, such as Figure 4 The diagram shows a complete flowchart of the vision detection method provided in this embodiment of the invention. First, the desk lamp activates the camera module to continuously monitor for users within its field of view. When a user is detected, the lighting module is activated, and its brightness and color temperature are adjusted according to ambient light intensity and time. The user is asked if they wish to begin vision detection; upon receiving confirmation, vision detection begins. The vision detection device captures images of both eyes. If the eyes are not centered in the image, the angle is adjusted using a bidirectional rotating motor to center the eyes in the image. The vision detection device collects current ambient light parameters and target eye parameters, and calculates vision detection correction parameters. Based on these correction parameters, the device adjusts the parameters of the lighting device and the vision detection device itself. After optimizing all parameters, vision detection is performed on the user, and the results are obtained. The vision detection results are output. Finally, a visual fatigue monitoring function is activated to promptly alert the user to fatigue.
[0120] This invention provides a vision testing method. A desk lamp can pre-learn through extensive training to determine the optimal testing conditions for different environments and user states. Then, based on ambient light information and user state, the parameters of the lighting device and the vision testing device are adjusted in real time to the most suitable state for vision testing. This ensures the normal operation of vision testing and effectively improves the accuracy of vision testing results.
[0121] like Figure 5 As shown, an embodiment of the present invention provides a desk lamp, which includes a lighting device and a vision testing device. The desk lamp includes:
[0122] The acquisition module 501 is used to acquire the current ambient light parameters and the user's target binocular parameters. The target binocular parameters include the target distance between the user's eyes and the vision testing device, and the user's target pupil size.
[0123] Processing module 502 is used to determine vision detection correction parameters based on the current ambient light parameters and the target binocular parameters. The vision detection correction parameters are used to indicate the parameter adjustments for the lighting device and the vision detection device.
[0124] The processing module 502 is also used to adjust the parameters of the lighting device and the parameters of the vision testing device according to the vision test correction parameters;
[0125] The processing module 502 is also used to perform vision tests on the user through the vision testing device with adjusted parameters, and to obtain vision test results.
[0126] Optionally, the processing module 502 is specifically used to determine the vision detection target parameters based on the current ambient light parameters and the target binocular parameters. The vision detection target parameters change with the current ambient light parameters and the target binocular parameters.
[0127] The acquisition module 501 is specifically used to acquire the initial parameters of the vision test, which include the initial parameters of the lighting device and the initial parameters of the vision test device.
[0128] The processing module 502 is specifically used to determine the vision test correction parameters based on the vision test target parameters and the vision test initial parameters.
[0129] Optionally, the processing module 502 is specifically used to determine the vision detection target parameters corresponding to the current ambient light parameters and the target binocular parameters based on the correspondence between the pre-stored ambient light parameters, binocular parameters and vision detection parameters.
[0130] Optionally, the processing module 502 is also used to pre-test the test subject's vision and record the vision test results, ambient light test parameters, and binocular test parameters;
[0131] The processing module 502 is also used to adjust the test parameters of the lighting device and the test parameters of the vision testing device according to the vision test results and the vision test standard results of the tester, so that the vision test results obtained after adjustment are the same as the vision test standard results.
[0132] The processing module 502 is also used to store the ambient light test parameters and binocular test parameters in correspondence with the test parameters of the adjusted lighting device and the test parameters of the adjusted vision testing device, so as to obtain the correspondence between the pre-stored ambient light parameters, binocular parameters and vision testing parameters.
[0133] Optionally, the acquisition module 501 is specifically used to acquire a target image through a vision testing device, with the user's eyes located at the center of the target image;
[0134] The processing module 502 is specifically used to determine the user's target binocular parameters based on the target image and the focal length parameters of the vision testing device.
[0135] Optionally, the acquisition module 501 is specifically used to acquire an initial image through a vision testing device;
[0136] Processing module 502 is specifically used to detect the initial image and determine the initial position of the user's eyes in the initial image;
[0137] The processing module 502 is specifically used to determine the offset distance and offset direction based on the initial position and the center position, wherein the center position is the center position within the field of view detection device;
[0138] The processing module 502 is specifically used to adjust the angle of the vision detection device according to the offset distance and offset direction so that the user's eyes move to the center position and capture the target image.
[0139] Optionally, the desk lamp is equipped with a bidirectional rotating motor, which is connected to a vision testing device.
[0140] The processing module 502 is specifically used to determine the angle to be adjusted of the vision testing device based on the offset distance and offset direction;
[0141] The processing module 502 is specifically used to adjust the angle of the vision testing device according to the angle to be adjusted by a bidirectional rotating motor device, so that the user's eyes move to the center position.
[0142] In this embodiment of the invention, each module can implement the vision detection method provided in the above method embodiment and achieve the same technical effect. To avoid repetition, it will not be described again here.
[0143] like Figure 6 As shown, this embodiment of the invention also provides a desk lamp, which includes a lighting device and a vision testing device. The desk lamp may include:
[0144] Memory 601 storing executable program code;
[0145] Processor 602 coupled to memory 601;
[0146] In this process, the processor 602 calls the executable program code stored in the memory 601 to execute the vision detection method performed by the desk lamp in the above method embodiments.
[0147] This invention provides a computer-readable storage medium storing a computer program that causes a computer to perform some or all of the steps of the methods described in the above embodiments.
[0148] This invention also provides a computer program product, wherein when the computer program product is run on a computer, the computer performs some or all of the steps of the methods described in the above method embodiments.
[0149] This invention also provides an application publishing platform, which is used to publish computer program products. When the computer program products are run on a computer, the computer performs some or all of the steps of the methods described in the above method embodiments.
[0150] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to the invention. The above-described multiple embodiments are not necessarily multiple independent embodiments; they are divided into multiple embodiments only to highlight different technical features in different embodiments. Those skilled in the art should understand that the above-described multiple embodiments can also be combined arbitrarily.
[0151] In various embodiments of the present invention, it should be understood that the sequence number of each process does not necessarily imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0152] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; they can be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0153] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0154] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several requests to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute some or all of the steps of the methods described in the various embodiments of the present invention.
[0155] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. This program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically erasable programmable read-only memory (OEPROM), optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.
Claims
1. A vision testing method, characterized in that, Applied to a desk lamp, the desk lamp being equipped with a lighting device and a vision testing device, the method includes: Collect current ambient light parameters and target binocular parameters of the user, the target binocular parameters including: target distance between the user's eyes and the vision detection device, and target pupil size of the user; Based on the current ambient light parameters and the target binocular parameters, vision detection correction parameters are determined, which are used to indicate the parameter adjustments for the lighting device and the vision detection device. Adjust the parameters of the lighting device and the parameters of the vision testing device according to the vision testing correction parameters; The user's vision is tested using the vision testing device with adjusted parameters to obtain the vision test result. The step of determining vision detection correction parameters based on the current ambient light parameters and the target binocular parameters includes: Based on the current ambient light parameters and the target binocular parameters, the visual acuity detection target parameters are determined, and the visual acuity detection target parameters change with the current ambient light parameters and the target binocular parameters; Acquire initial parameters for vision testing, which include: initial parameters of the lighting device and initial parameters of the vision testing device; The vision detection correction parameters are determined based on the vision detection target parameters and the vision detection initial parameters; The step of determining the target parameters for vision detection based on the current ambient light parameters and the target binocular parameters includes: Based on the correspondence between the pre-stored ambient light parameters, binocular parameters, and visual acuity test parameters, determine the visual acuity test target parameters corresponding to the current ambient light parameters and the target binocular parameters; The method further includes: Before testing, visual acuity was tested on the test subjects, and the results of the visual acuity test, ambient light test parameters, and binocular test parameters were recorded. Based on the vision test results and the vision test standard results of the tester, the test parameters of the lighting device and the test parameters of the vision test device are adjusted so that the vision test results obtained after adjustment are the same as the vision test standard results. The ambient light test parameters and binocular test parameters are stored in correspondence with the adjusted test parameters of the lighting device and the adjusted test parameters of the vision testing device to obtain the correspondence between the pre-stored ambient light parameters, binocular parameters and vision testing parameters.
2. The method according to claim 1, characterized in that, The user's target binocular parameters include: The target image is acquired through the vision detection device, and the user's eyes are located at the center of the target image; Based on the target image and the focal length parameters of the vision testing device, the target binocular parameters of the user are determined.
3. The method according to claim 2, characterized in that, The acquisition of the target image through the vision detection device includes: An initial image is acquired using the vision detection device. The initial image is detected to determine the initial position of the user's eyes in the initial image; Based on the initial position and the center position, the offset distance and offset direction are determined, wherein the center position is the center position within the field of view of the vision detection device. The vision detection device is angled according to the offset distance and the offset direction so that the user's eyes move to the center position and the target image is captured.
4. The method according to claim 3, characterized in that, The desk lamp is equipped with a bidirectional rotating motor device, which is connected to the vision detection device. The step of adjusting the angle of the vision detection device based on the offset distance and the offset direction, so that the user's eyes move to the center position, includes: The angle to be adjusted for the vision detection device is determined based on the offset distance and the offset direction; The bidirectional rotating motor device is used to adjust the angle of the vision detection device according to the angle to be adjusted, so that the user's eyes move to the center position.
5. A table lamp, characterized in that, The desk lamp includes a lighting device and a vision testing device, and the desk lamp comprises: The acquisition module is used to collect current ambient light parameters and target binocular parameters of the user. The target binocular parameters include: the target distance between the user's eyes and the vision detection device, and the target pupil size of the user. The processing module is used to determine vision detection correction parameters based on the current ambient light parameters and the target binocular parameters. The vision detection correction parameters are used to indicate the parameter adjustments for the lighting device and the vision detection device. The processing module is also used to adjust the parameters of the lighting device and the parameters of the vision detection device according to the vision detection correction parameters; The processing module is also used to perform vision testing on the user through the vision testing device with adjusted parameters, and obtain vision test results; The determination module is used to determine vision detection target parameters based on the current ambient light parameters and the target binocular parameters, wherein the vision detection target parameters change with the current ambient light parameters and the target binocular parameters; The acquisition module is further configured to acquire initial parameters for vision testing, which include: initial parameters of the lighting device and initial parameters of the vision testing device; The determining module is further configured to determine the vision detection correction parameters based on the vision detection target parameters and the vision detection initial parameters; and to determine the vision detection target parameters corresponding to the current ambient light parameters and the target binocular parameters based on the correspondence between the pre-stored ambient light parameters, binocular parameters and vision detection parameters. The detection module is used to pre-test the test subject's vision and record the vision test results, ambient light test parameters, and binocular test parameters; The processing module is further configured to adjust the test parameters of the lighting device and the test parameters of the vision testing device according to the vision test results and the vision test standard results of the test subject, so that the vision test results obtained after adjustment are the same as the vision test standard results; and to store the ambient light test parameters and binocular test parameters in correspondence with the adjusted test parameters of the lighting device and the adjusted test parameters of the vision testing device, so as to obtain the correspondence between the pre-stored ambient light parameters, binocular parameters and vision test parameters.
6. A table lamp, characterized in that, The desk lamp includes a lighting device and a vision testing device, and the desk lamp comprises: Memory containing executable program code; and the processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the vision detection method as described in any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that, include: The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the vision detection method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Vision screening device and methods
CN110772218A
Vision detection method and device, electronic product and storage medium
CN111543934A