Parameter adjustment method, device and electronic equipment
Through intelligent desk lamps testing the user's eye condition data and adjusting the lighting parameters, the impact of long-term use of desk lamp lighting on eye health is solved, and the effect of effectively protecting the user's eyes is achieved.
Patent Information
- Application Number
- CN202111402676.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-19
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2041-11-19
AI Technical Summary
Long-term use of desk lamp lighting may affect the health of users' eyes, and the prior art is difficult to effectively protect users' eyes.
Interact with the user through smart desk lamps, test the user's eye condition data, and adjust the lighting parameters, such as brightness and color temperature, based on the test results, to protect the user's eyes.
The lighting parameters of the smart desk lamp are reasonably adjusted according to the user's eye condition, thereby protecting the health of the user's eyes.
Smart Images

Figure CN114143934B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a parameter adjustment method, device, and electronic device. Background Art
[0002] In daily life, users may use desk lamps for lighting, and in some specific usage scenarios, users use desk lamps for lighting more frequently. Using desk lamps for lighting for a long time may affect the health of users' eyes.
[0003] It can be seen that when users use desk lamps for lighting, it is particularly important to pay attention to the user's eye health. Summary of the invention
[0004] This disclosure section is provided to introduce concepts in a brief form, which will be described in detail in the detailed description section below. This disclosure section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0005] The embodiments of the present disclosure provide a parameter adjustment method, device and electronic device, which can reasonably adjust the lighting parameters of a smart desk lamp according to the user's eye condition, so as to achieve the effect of protecting the user's eyes.
[0006] In a first aspect, an embodiment of the present disclosure provides a parameter adjustment method, the method comprising: assisting a user to move to a target test position; under the premise that the user is at the target test position, based on the interaction between a smart desk lamp and the user, testing the user's eye condition data; determining lighting adjustment data matching the eye condition data; and adjusting the lighting parameters of the smart desk lamp according to the lighting adjustment data.
[0007] In a second aspect, an embodiment of the present disclosure provides a parameter adjustment device, which includes: an auxiliary unit, used to assist a user in moving to a target test position; a testing unit, used to test the user's eye condition data based on the interaction between the smart desk lamp and the user when the user is at the target test position; a determination unit, used to determine light adjustment data that matches the eye condition data; and an adjustment unit, used to adjust the light parameters of the smart desk lamp according to the light adjustment data.
[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the parameter adjustment method as described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the parameter adjustment method described in the first aspect are implemented.
[0010] The parameter adjustment method, device and electronic device provided by the embodiments of the present disclosure can test the user's eye condition data by means of the interaction between the smart desk lamp and the user, and further can determine the light adjustment data matching the user's eye condition data, and adjust the light parameters of the smart desk lamp according to the light adjustment data. Thus, the light parameters of the smart desk lamp can be reasonably adjusted according to the user's eye condition, so as to achieve the effect of protecting the user's eyes. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.
[0012] Figure 1 is a flow chart of an embodiment of the parameter adjustment method disclosed herein;
[0013] Figure 2 is a flow chart of assisting a user to move to a target test position in some embodiments of the parameter adjustment method of the present disclosure;
[0014] Figures 3A to 3C is a schematic diagram of updating the distance prompt control in some application scenarios of the parameter adjustment method of the present disclosure;
[0015] Figure 4 is a flow chart of testing eye condition data in some embodiments of the parameter adjustment method of the present disclosure;
[0016] Figures 5 to 7 is a flow chart of testing eye condition data in some embodiments of the parameter adjustment method of the present disclosure;
[0017] Figure 8 is a structural schematic diagram of an embodiment of a parameter adjustment device disclosed in the present invention;
[0018] Fig. 9 is an exemplary system architecture in which the parameter adjustment method of the present disclosure may be applied in one embodiment;
[0019] Fig.10 It is a schematic diagram of the basic structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0021] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0022] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0023] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0024] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0025] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0026] Please refer to Figure 1 , which shows the process of an embodiment of the parameter adjustment method of the present disclosure. Figure 1 As shown, the parameter adjustment method comprises the following steps:
[0027] Step 101, assisting the user to move to the target test position.
[0028] The target test position may be a position at a target distance from the smart desk lamp.
[0029] The above-mentioned smart desk lamp can be provided with a display screen, a camera, a speaker and a microphone.
[0030] Step 102, under the premise that the user is located at the target test position, based on the interaction between the smart desk lamp and the user, the user's eye condition data is tested.
[0031] Under the premise that the user is located at the target test position, the user's eye condition data can be tested more accurately.
[0032] Optionally, the eye condition data includes at least one of the following: vision data, grayscale perception data, and color perception data. The vision data may include the vision value of the user's eyes (left eye and / or right eye). The grayscale perception data may include the grayscale value of the minimum grayscale perceived by the user's eyes (left eye and / or right eye). The color perception data may include the color value (e.g., RGB value) of the color that the user's eyes (left eye and / or right eye) perceive poorly.
[0033] Step 103, determining lighting adjustment data that matches the eye condition data.
[0034] Optionally, the lighting parameters of the smart desk lamp include at least one of the following: brightness, color temperature. Accordingly, the lighting adjustment data includes a parameter value for adjusting at least one of the above lighting parameters.
[0035] In some scenarios, the execution subject of the parameter adjustment method can determine the lighting adjustment data matching the above-mentioned eye condition data from the database.
[0036] Step 104, adjusting the lighting parameters of the smart desk lamp according to the lighting adjustment data.
[0037] In some scenarios, the execution subject can automatically adjust the lighting parameters of the smart desk lamp according to the lighting adjustment data. In other scenarios, in response to the user's confirmation adjustment operation, the execution subject adjusts the lighting parameters of the smart desk lamp according to the lighting adjustment data.
[0038] In this embodiment, the user's eye condition data can be tested by the interaction between the smart desk lamp and the user, and further, the light adjustment data matching the user's eye condition data can be determined, and the light parameters of the smart desk lamp can be adjusted according to the light adjustment data. Therefore, the light parameters of the smart desk lamp can be reasonably adjusted according to the user's eye condition, so as to achieve the effect of protecting the user's eyes.
[0039] In addition, the smart desk lamp can be used to assist the user to move to the target test position, and the user's eye condition data can be tested under the premise that the user is at the target test position. Thus, the user's eye condition data can be tested more accurately using the smart desk lamp, thereby improving the accuracy of adjusting the lighting parameters of the smart desk lamp.
[0040] In some embodiments, the above execution entity may also perform the following steps.
[0041] Specifically, the lighting parameters of the smart desk lamp are adjusted according to the user characteristic data of the user and the user's usage characteristic data of the smart desk lamp.
[0042] The user characteristic data and the usage characteristic data can be set according to actual needs and are not specifically limited here. In some scenarios, the above-mentioned execution subject can input the user characteristic data and the usage characteristic data into the calculation model to obtain the target light adjustment data output by the calculation model. Furthermore, the above-mentioned execution subject can adjust the light parameters of the smart desk lamp according to the target light adjustment data.
[0043] It can be seen that the lighting parameters of the smart desk lamp are adjusted first according to the user's eye condition, and then the lighting parameters of the smart desk lamp are further fine-tuned according to the user's characteristics and the characteristics of the user's use of the smart desk lamp. Therefore, the lighting parameters of the smart desk lamp can be adjusted in a targeted manner based on the user's own situation.
[0044] In some embodiments, the above execution entity may also perform the following steps.
[0045] Specifically, if the eye condition data indicates that the user's vision value is lower than a vision threshold, a vision impairment prompt message is output.
[0046] The vision impairment prompt information may include at least one of the following for prompting the vision impairment: text, picture, pop-up window, and voice.
[0047] By outputting information prompting vision impairment, users can understand their vision conditions in real time, thereby prompting them to pay attention to their eye health.
[0048] In some embodiments, the above execution entity may be Figure 2 The process shown in the figure assists the user to move to the target test position. The process includes the following steps.
[0049] Step 201, displaying the pre-test preparation interface.
[0050] The pre-test preparation interface displays a distance prompt control, which is used to prompt the user of the distance between the user and the smart desk lamp.
[0051] Step 202, detecting the distance between the user and the smart desk lamp in real time, and updating the distance prompt control in real time according to the detected distance.
[0052] The user can move his position. At the same time, the execution subject can detect the distance between the user and the smart desk lamp in real time, and update the distance prompt control in real time according to the detected distance.
[0053] Step 203: If the user moves to a position where the distance from the smart desk lamp is the target distance, it is determined that the user moves to the target test position.
[0054] The target distance may be a distance suitable for testing eye condition data (eg, 1 meter).
[0055] It can be seen that during the user's movement, the distance between the user and the smart desk lamp can be reflected in real time through the distance prompt control displayed in the pre-test preparation interface. Furthermore, the distance prompt control can assist the user to quickly move to the target test position.
[0056] In some embodiments, the distance prompt control has a reference mark and a moving mark, wherein the reference mark indicates the target distance, and the moving mark indicates the distance between the user and the smart desk lamp.
[0057] It can be understood that the position of the reference mark in the distance prompt control is fixed, and the position of the mobile mark in the distance prompt control can be changed according to the distance between the user and the smart desk lamp.
[0058] At this time, the above-mentioned execution subject can update the distance prompt control in real time according to the detected distance in the following manner.
[0059] The first step is to move the position of the mobile marker in the distance prompt control in real time according to the detected distance.
[0060] In the second step, if the moving mark moves to a position before or after the reference mark, the background color of the distance prompt control is updated to the first color.
[0061] In the third step, if the mobile marker moves to the position where the reference marker is located, the background color of the distance prompt control is updated to the second color.
[0062] When the mobile identifier moves to before the reference identifier, it means that the distance between the user and the smart desk lamp is less than the target distance. When the mobile identifier moves to after the reference identifier, it means that the distance between the user and the smart desk lamp is greater than the target distance. When the mobile identifier moves to before the reference identifier, it means that the distance between the user and the smart desk lamp is the target distance.
[0063] It can be seen that, according to the distance between the user and the smart desk lamp, the position of the above-mentioned moving mark in the distance prompt control is moved in real time, and the background color of the distance prompt control is updated accordingly. Thus, in the process of assisting the user to move to the target test position, the user can be prompted to move closer to or away from the smart desk lamp, and the user can be better prompted whether to move to the target test position.
[0064] Figure 3A to Figure 3CAn application scenario diagram of real-time updating of the distance prompt control is shown. A distance prompt control 302 is displayed in the pre-test preparation interface 301. The distance prompt control 302 has a reference mark 303 and a moving mark 304. Among them, the reference mark 303 indicates the target distance (i.e., "1 meter" shown in the figure). The above-mentioned execution entity can move the position of the moving mark 304 in the distance prompt control 302 in real time according to the distance between the user and the smart desk lamp.
[0065] like Figure 3A As shown, the moving mark 304 moves to the position before the reference mark 303. At this time, the background color of the distance prompt control 302 is the first color. Figure 3B As shown, the moving mark 304 moves to the position behind the reference mark 303. At this time, the background color of the distance prompt control 302 is the first color. Figure 3C As shown, the moving mark 304 moves to the position where the reference mark 303 is located. At this time, the background color of the distance prompt control 302 is the second color.
[0066] In some embodiments, the above execution entity may also perform the following steps.
[0067] In the first step, in response to the user moving to the target test position, countdown information is displayed in the pre-test preparation interface.
[0068] The second step is to display a test interface of the eye condition data in response to the countdown ending.
[0069] Optionally, the test interface of the eye condition data includes at least one of the following: a vision data test interface, a grayscale perception data test interface, and a color perception data test interface. The vision data test interface may be a test interface for vision data. The grayscale perception data test interface may be a test interface for grayscale perception data. The color perception data test interface may be a test interface for color perception data.
[0070] It can be seen that after the user moves to the target test position, by displaying the countdown information, the user can be reminded that the eye condition data is about to be tested.
[0071] In some embodiments, the above-mentioned execution entity can display the pre-test preparation interface in the following manner.
[0072] The first step is to output the query information whether to wear glasses.
[0073] The second step is to receive the user's reply information to the inquiry information.
[0074] The inquiry information may include at least one of the following: text, picture, voice, and control to inquire whether the user wears glasses.
[0075] In some scenarios, the reply information may be a voice message in which the user replies whether to wear glasses. In other scenarios, the control includes a first control and a second control, wherein the first control represents wearing glasses and the second control represents not wearing glasses. The reply information may be information represented by the first control or the second control triggered by the user.
[0076] The third step is to display the pre-test preparation interface if a reply message is received.
[0077] In some scenarios, if a reply message is received, the execution body may display a pre-test preparation interface. In some scenarios, in response to a test start operation by a user, the execution body displays the pre-test preparation interface again.
[0078] It can be seen that after understanding whether the user wears glasses, the pre-test preparation interface is displayed, and the distance prompt control is displayed in the pre-test preparation interface to assist the user in moving to the target test position.
[0079] At this time, the above-mentioned execution subject can determine the lighting adjustment data matching the user's eye condition data in the following manner.
[0080] Specifically, based on whether the user wears glasses, light adjustment data matching the eye condition data is determined.
[0081] In some scenarios, the database stores light adjustment data suitable for users wearing glasses and light adjustment data suitable for users not wearing glasses. If the user wears glasses, the execution entity may determine light adjustment data matching the glasses condition data from the light adjustment data suitable for users wearing glasses. If the user does not wear glasses, the execution entity may determine light adjustment data matching the glasses condition data from the light adjustment data suitable for users not wearing glasses.
[0082] Different lighting parameters are usually suitable for users who wear glasses and those who do not wear glasses. Therefore, adjusting the lighting parameters of the smart desk lamp according to the lighting adjustment data determined in the above manner can more effectively protect the user's eyes.
[0083] In some embodiments, the above-mentioned execution entity can detect the distance between the user and the smart desk lamp in real time in the following manner.
[0084] Specifically, a face image is collected in real time, and based on the collected face image, the distance between the user and the smart desk lamp is detected in real time.
[0085] In some scenarios, the execution subject may input the collected face image into the distance detection model to obtain the detection result information output by the distance detection model, wherein the detection result information represents the distance between the user and the smart desk lamp.
[0086] In some embodiments, the execution subject can be Figure 4 The process shown in the figure tests the user's eye condition data. The process includes the following steps.
[0087] Step 401, displaying a test interface for eye condition data.
[0088] Step 402: Determine in real time whether the test suspension condition is met.
[0089] The pause test conditions include at least one of the following: the user approaches or moves away from the smart desk lamp; the collected face image does not include a face; the collected face image includes at least two faces.
[0090] The execution subject can determine whether the user is close to or far away from the smart desk lamp according to the real-time detected distance between the user and the smart desk lamp. The execution subject can identify faces from the real-time collected face images, thereby determining the number of faces included in the collected face images.
[0091] Step 403, in response to the suspension test condition being met, suspending the test of the eye condition data, and using a mask to cover the test interface.
[0092] Optionally, the mask layer is an interface layer with a certain degree of transparency.
[0093] After the eye condition data test begins, if the user leaves the target test position, or the user leaves the face image acquisition range of the smart desk lamp, or other users enter the face image acquisition range of the smart desk lamp, it may result in an inability to accurately test the user's eye condition data. Therefore, if at least one of the above situations occurs, the eye condition data test is suspended and the test interface is covered with a mask.
[0094] Step 404, according to the pause test conditions that are met, corresponding movement prompt information is displayed in real time in the mask to enable the user to move to the target test condition that is met.
[0095] After the corresponding movement prompt information is displayed in the mask, the user can make corresponding movements according to the movement prompt information.
[0096] The target test conditions include: the distance between the user and the smart desk lamp is the target distance, and the collected face image includes a human face.
[0097] Step 405, in response to the target test condition being met, continue testing the eye condition data and collapse the mask.
[0098] It can be seen that after the eye condition data test starts, if any of the above situations that affect the test accuracy occurs, the test is paused, and according to the specific situation, the corresponding moving prompt information is displayed in the mask to assist the user to move to the target test condition. Thus, any of the above situations that affect the eye condition data test can be avoided, thereby improving the accuracy of the eye condition data of the test user.
[0099] In some embodiments, the above-mentioned movement prompt information includes a distance prompt control and / or text prompt information.
[0100] In some scenarios, the execution subject can detect the distance between the user and the smart desk lamp in real time, and update the distance prompt control displayed in the mask according to the detected distance. For the method of updating the distance prompt control, please refer to the above content, which will not be repeated here.
[0101] In some scenarios, if the user approaches or moves away from the smart desk lamp, the above-mentioned execution subject can be displayed in the mask, indicating text prompt information moving backward or forward. If the collected face image does not include a face, the above-mentioned execution subject can be displayed in the mask, indicating text prompt information that no face is recognized. If the collected face image includes at least two faces, the above-mentioned execution subject can be displayed in the mask, indicating text prompt information that multiple faces are recognized.
[0102] In some embodiments, the above-mentioned execution entity can test the user's eye condition data in the following manner.
[0103] The first step is to display the test interface of eye condition data.
[0104] The second step is to present the test demonstration information in the test interface.
[0105] The test demonstration information is used to demonstrate the test method of the eye condition data. The test demonstration information can be at least one of the following used to demonstrate the above test method: text, picture, icon, voice, video.
[0106] Optionally, the test demonstration information includes at least one of the following: test demonstration information of vision data, test demonstration information of grayscale perception data, and test demonstration information of color perception data. The test demonstration information of vision data is used to demonstrate a test method for vision data. The test demonstration information of grayscale perception data is used to demonstrate a test method for grayscale perception data. The test demonstration information of color perception data is used to demonstrate a test method for color perception data.
[0107] The third step is to test the eye condition data based on the interaction between the smart desk lamp and the user in response to the end of the test demonstration information presentation.
[0108] It can be seen that after the test starts, by presenting the test demonstration information, the test method of the eye condition data is demonstrated to the user, so as to help the user quickly master the test method of the eye condition data. Thus, it can ensure that the user can use the smart desk lamp to test the eye condition data smoothly in the future.
[0109] In some embodiments, the eye condition data includes vision data. Figure 5 The process shown in the figure tests the user's eye condition data. The process includes the following steps.
[0110] Step 501, display the vision data test interface.
[0111] Step 502, obtaining a vision test icon set.
[0112] The vision test icon has an opening. The vision test icon can be an "E" icon, a "C" icon, or other icons for testing vision.
[0113] The vision test icons in the vision test icon set are sorted from low to high according to the difficulty of identifying the opening direction.
[0114] Step 503, select a vision test icon from the vision test icon set according to the sorting, and execute the vision test steps: display the selected vision test icon in the vision data test interface; voice prompt the user to answer the opening direction of the currently displayed vision icon; if the user answers incorrectly, determine the user's vision data based on the user's answer result.
[0115] Step 504: If the user's answer is correct, select the next vision test icon from the vision test icon set, and continue to execute the vision test step.
[0116] It can be seen that the user's vision data can be tested by using a smart desk lamp to display vision test icons.
[0117] In some embodiments, the eye condition data includes grayscale perception data. Figure 6 The process shown in the figure tests the user's eye condition data. The process includes the following steps.
[0118] Step 601, display the grayscale perception data test interface.
[0119] Step 602: Obtain a first picture set.
[0120] The first picture includes characters (eg, numeric characters). The first picture may be any picture used to test grayscale perception.
[0121] The first pictures in the first picture set are sorted from low to high according to grayscale values.
[0122] Step 603, select a group of first pictures from the first picture set according to the sorting, and execute the grayscale perception test step: display the selected group of first pictures in the grayscale perception data test interface; voice prompt the user to answer the characters contained in the target first picture with the lowest brightness in the currently displayed group of first pictures; if the user's answer is wrong, determine the user's grayscale perception data based on the user's answer result.
[0123] Step 604, if the user answers correctly, select the next set of first pictures from the first picture set, and continue to perform the grayscale perception test step.
[0124] It can be seen that the smart desk lamp can be used to display the first picture for testing grayscale perception and test the user's grayscale perception data.
[0125] In some embodiments, the eye condition data includes color perception data. Figure 7 The process shown in the figure tests the user's eye condition data. The process includes the following steps.
[0126] Step 701, displaying a color perception data test interface.
[0127] Step 702: Obtain a second picture set.
[0128] The second picture includes a pattern formed by at least one color. The second picture can be any picture used to test color perception.
[0129] Step 703: for the second picture in the second picture set, the second picture is displayed in the color perception data test interface, and a voice prompt is given to the user to answer the pattern contained in the second picture.
[0130] Step 704: Determine the user's color perception data based on the user's answer.
[0131] It can be seen that the smart desk lamp can be used to display the second picture for testing color perception and test the user's color perception data.
[0132] Further references Figure 8 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a parameter adjustment device, which is similar to Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0133] like Figure 8As shown, the parameter adjustment device of this embodiment includes an auxiliary unit 801, a test unit 802, a determination unit 803 and an adjustment unit 804. The auxiliary unit 801 is used to assist the user to move to the target test position; the test unit 802 is used to test the user's eye condition data based on the interaction between the smart desk lamp and the user under the premise that the user is located at the target test position; the determination unit 803 is used to determine the light adjustment data matching the eye condition data; the adjustment unit 804 is used to adjust the light parameters of the smart desk lamp according to the light adjustment data.
[0134] In this embodiment, the specific processing of the auxiliary unit 801, the testing unit 802, the determining unit 803 and the adjusting unit 804 of the parameter adjusting device and the technical effects thereof can be referred to respectively. Figure 1 The relevant descriptions of step 101, step 102, step 103 and step 104 in the corresponding embodiment are not repeated here.
[0135] In some embodiments, the auxiliary unit 801 is further used to: display a pre-test preparation interface, wherein a distance prompt control is displayed in the pre-test preparation interface, wherein the distance prompt control is used to prompt the user of the distance between the user and the smart desk lamp; detect the distance between the user and the smart desk lamp in real time, and update the distance prompt control in real time according to the detected distance; if the user moves to a position where the distance from the smart desk lamp is the target distance, determine that the user has moved to the target test position.
[0136] In some embodiments, the auxiliary unit 801 is further used to: output inquiry information about whether glasses are worn; receive reply information given by the user to the inquiry information; if reply information is received, display the pre-test preparation interface; the determination unit 803 is further used to: determine the lighting adjustment data that matches the eye condition data based on whether the user is wearing glasses.
[0137] In some embodiments, the auxiliary unit 801 is further used to: collect facial images in real time, and detect the distance between the user and the smart desk lamp in real time based on the collected facial images.
[0138] In some embodiments, the distance prompt control has a reference mark and a moving mark, wherein the reference mark indicates the target distance, and the moving mark indicates the distance between the user and the smart desk lamp; the auxiliary unit 801 is further used to: according to the detected distance, move the position of the moving mark in the distance prompt control in real time; if the moving mark moves to a position before or after the reference mark, update the background color of the distance prompt control to a first color; if the moving mark moves to the position where the reference mark is located, update the background color of the distance prompt control to a second color.
[0139] In some embodiments, the parameter adjustment device further includes a display unit (not shown in the figure). The display unit is used to display countdown information in the pre-test preparation interface in response to the user moving to the target test position; and to display the test interface of the eye condition data in response to the countdown ending.
[0140] In some embodiments, the eye condition data includes at least one of the following: vision data, grayscale perception data, color perception data; the test interface includes at least one of the following: vision data test interface, grayscale perception data test interface, color perception data test interface.
[0141] In some embodiments, the test unit 802 is further used to: display a test interface for eye condition data; determine in real time whether a pause test condition is met, wherein the pause test condition includes at least one of the following: the user is close to or away from the smart desk lamp; the collected face image does not include a human face; the collected face image includes at least two human faces; in response to the pause test condition being met, pausing the test of the eye condition data, and using a mask to cover the test interface; based on the satisfied pause test condition, displaying corresponding movement prompt information in the mask in real time to enable the user to move to a target test condition that is met, wherein the target test condition includes: the distance between the user and the smart desk lamp is the target distance, and the collected face image includes a human face; in response to the target test condition being met, continuing the test of the eye condition data, and folding the mask.
[0142] In some embodiments, the movement prompt information includes a distance prompt control and / or text prompt information.
[0143] In some embodiments, the test unit 802 is further used to: display a test interface for eye condition data; present test demonstration information in the test interface, wherein the test demonstration information is used to demonstrate a test method for eye condition data; in response to completion of presentation of the test demonstration information, test the eye condition data based on interaction between the smart desk lamp and the user.
[0144] In some embodiments, the eye condition data includes at least one of the following: vision data, grayscale perception data, color perception data; the test demonstration information includes at least one of the following: test demonstration information of vision data, test demonstration information of grayscale perception data, test demonstration information of color perception data.
[0145] In some embodiments, the adjustment unit 804 is further used to adjust the lighting parameters of the smart desk lamp according to the user characteristic data of the user and the user's usage characteristic data of the smart desk lamp.
[0146] In some embodiments, the eye condition data includes vision data; the testing unit 802 is further used to: display a vision data test interface; obtain a vision test icon set, wherein the vision test icon has an opening, and the vision test icons in the vision test icon set are sorted from low to high according to the difficulty of identifying the opening direction; according to the sorting, select a vision test icon from the vision test icon set, and perform a vision test step: display the selected vision test icon in the vision data test interface; voice prompt the user to answer the opening direction of the currently displayed vision icon; if the user answers incorrectly, determine the user's vision data based on the user's answer result; if the user answers correctly, select the next vision test icon from the vision test icon set, and continue to perform the vision test step.
[0147] In some embodiments, the eye condition data includes grayscale perception data; the testing unit 802 is further used to: display a grayscale perception data testing interface; obtain a first picture set, wherein the first picture contains characters, and the first pictures in the first picture set are sorted from low to high according to the grayscale value; according to the sorting, select a group of first pictures from the first picture set, and execute the grayscale perception testing step: display the selected group of first pictures in the grayscale perception data testing interface; voice prompt the user to answer the characters contained in the target first picture with the lowest brightness in the currently displayed group of first pictures; if the user answers incorrectly, determine the user's grayscale perception data based on the user's answer result; if the user answers correctly, select the next group of first pictures from the first picture set, and continue to execute the grayscale perception testing step.
[0148] In some embodiments, the eye condition data includes color perception data; the test unit 802 is further used to: display a color perception data test interface; obtain a second picture set, wherein the second picture contains a pattern formed by at least one color; for a second picture in the second picture set, display the second picture in the color perception data test interface, and voice prompt the user to answer the pattern contained in the second picture; determine the user's color perception data based on the user's answer.
[0149] In some embodiments, the parameter adjustment device further includes an output unit (not shown in the figure). The output unit is used to output vision impairment prompt information if the eye condition data indicates that the user's vision value is lower than the vision threshold.
[0150] In some embodiments, the lighting parameters include at least one of the following: brightness, color temperature.
[0151] Further references Fig. 9 , Fig. 9 An exemplary system architecture is shown in which the parameter adjustment method of the present disclosure can be applied in one embodiment.
[0152] like Fig. 9 As shown, the system architecture may include a smart desk lamp 901. The smart desk lamp 901 is provided with a display screen 9011 and a camera 9012. Optionally, the smart desk lamp 901 is also provided with a speaker and a microphone. It should be noted that the positions of the display screen, camera, speaker and microphone in the smart desk lamp 901 may be determined according to actual needs.
[0153] Various applications (eg, eye condition detection applications) may be installed on the smart desk lamp 901 .
[0154] In some scenarios, the smart desk lamp 901 can assist the user to move to the target test position, and then, under the premise that the user is at the target test position, based on the interaction between the smart desk lamp and the user, test the user's eye condition data, and further determine the lighting adjustment data that matches the eye condition data, so that the lighting parameters can be adjusted according to the lighting adjustment data.
[0155] The smart desk lamp 901 can be hardware or software. When the smart desk lamp 901 is hardware, it can be any desk lamp that supports interaction with the user. When the smart desk lamp 901 is software, it can be installed in the desk lamps listed above, and can be implemented as multiple software or software modules, or as a single software or software module, which is not specifically limited here.
[0156] It should be noted that the parameter adjustment method provided in the embodiment of the present disclosure can be executed by the smart desk lamp 901 , and accordingly, the parameter adjustment device can be set in the smart desk lamp 901 .
[0157] It should be understood that Fig. 9 The number of display screens and cameras in the embodiment is only for illustration. Any number of display screens and cameras may be provided as required.
[0158] Reference below Fig.10 , which shows an electronic device (eg, Fig. 9 Schematic diagram of the structure of the smart desk lamp). Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0159] like Fig.10As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0160] Typically, the following devices may be connected to the I / O interface 1005: input devices 1006 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 1007 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1008 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication devices 1009 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all of the devices shown, and more or fewer devices may be implemented or possessed instead.
[0161] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 1009, or installed from a storage device 1008, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0162] It should be noted that the computer-readable medium described in the embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments of the present disclosure, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the embodiments of the present disclosure, the computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0163] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0164] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: assists the user to move to the target test position; under the premise that the user is at the target test position, based on the interaction between the smart desk lamp and the user, tests the user's eye condition data; determines the light adjustment data that matches the eye condition data; and adjusts the light parameters of the smart desk lamp according to the light adjustment data.
[0165] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0166] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units described in the embodiments of the present disclosure may be implemented by software or hardware. The names of these units do not limit the units themselves in some cases. For example, an auxiliary unit may also be described as a unit that "assists a user to move to a target test position".
[0168] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), etc.
[0169] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0170] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the disclosure scope involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) to form a technical solution.
[0171] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0172] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A parameter adjustment method, applied to a smart desk lamp, comprising: Assist the user to move to the target test position; Under the premise that the user is located at the target test position, based on the interaction between the smart desk lamp and the user, testing the user's eye condition data; determining lighting adjustment data matching the eye condition data; According to the light adjustment data, adjust the light parameters of the smart desk lamp; The assisting user to move to a target test position comprises: Displaying a pre-test preparation interface, wherein a distance prompt control is displayed in the pre-test preparation interface, wherein the distance prompt control is used to prompt the user of the distance between the user and the smart desk lamp; Detecting the distance between the user and the smart desk lamp in real time, and updating the distance prompt control in real time according to the detected distance; If the user moves to a position at a target distance from the smart desk lamp, determining that the user moves to a target test position; The distance prompt control has a reference mark and a moving mark, wherein the reference mark indicates the target distance, and the moving mark indicates the distance between the user and the smart desk lamp; and The updating of the distance prompt control in real time according to the detected distance includes: According to the detected distance, the position of the moving mark in the distance prompt control is moved in real time; If the moving mark moves to a position before or after the reference mark, updating the background color of the distance prompt control to a first color; If the moving mark moves to the position where the reference mark is located, the background color of the distance prompt control is updated to a second color.
2. The method according to claim 1, characterized in that The display pre-test preparation interface includes: Output the query information whether to wear glasses; Receiving a reply message from the user in response to the inquiry message; If the reply message is received, displaying the pre-test preparation interface; and The determining of the lighting adjustment data matching the eye condition data comprises: Based on whether the user wears glasses, light adjustment data matching the eye condition data is determined.
3. The method according to claim 1, characterized in that The real-time detection of the distance between the user and the smart desk lamp includes: The facial image is collected in real time, and the distance between the user and the smart desk lamp is detected in real time based on the collected facial image.
4. The method according to claim 1, characterized in that After the auxiliary user moves to the target test position, the method further includes: In response to the user moving to the target test position, displaying countdown information in the pre-test preparation interface; In response to the countdown ending, a test interface of the eye condition data is displayed.
5. The method according to claim 4, characterized in that The eye condition data includes at least one of the following: vision data, grayscale perception data, color perception data; the test interface includes at least one of the following: vision data test interface, grayscale perception data test interface, color perception data test interface.
6. The method according to claim 1, characterized in that The step of testing the user's eye condition data based on the interaction between the smart desk lamp and the user, under the premise that the user is located at the target test position, includes: A test interface for displaying the eye condition data; Determine in real time whether a pause test condition is met, wherein the pause test condition includes at least one of the following: the user approaches or moves away from the smart desk lamp; the collected face image does not include a face; the collected face image includes at least two faces; In response to the test suspension condition being met, pausing the test of the eye condition data, and using a mask to cover the test interface; According to the pause test condition being met, corresponding moving prompt information is displayed in real time in the mask layer, so that the user moves to the target test condition being met, wherein the target test condition includes: the distance between the user and the smart desk lamp is the target distance, and the collected face image includes a face; In response to the target test condition being met, continuing the testing of the eye condition data, and retracting the mask.
7. The method according to claim 6, characterized in that The movement prompt information includes a distance prompt control and / or text prompt information.
8. The method according to claim 1, characterized in that The step of testing the user's eye condition data based on the interaction between the smart desk lamp and the user includes: A test interface for displaying the eye condition data; Presenting test demonstration information in the test interface, wherein the test demonstration information is used to demonstrate a test method for the eye condition data; In response to the end of the presentation of the test demonstration information, the eye condition data is tested based on the interaction between the smart desk lamp and the user.
9. The method according to claim 8, characterized in that The eye condition data includes at least one of the following: vision data, grayscale perception data, color perception data; the test demonstration information includes at least one of the following: test demonstration information of vision data, test demonstration information of grayscale perception data, test demonstration information of color perception data.
10. The method according to claim 1, characterized in that The method further comprises: The lighting parameters of the smart desk lamp are adjusted according to the user characteristic data of the user and the usage characteristic data of the smart desk lamp by the user.
11. The method according to claim 1, characterized in that The eye condition data includes vision data; and The step of testing the user's eye condition data based on the interaction between the smart desk lamp and the user includes: Display vision data test interface; Acquire a vision test icon set, wherein the vision test icon has an opening, and the vision test icons in the vision test icon set are sorted from low to high according to the difficulty of identifying the opening direction; Selecting a vision test icon from the vision test icon set according to the order, and performing the vision test step: displaying the selected vision test icon in the vision data test interface; prompting the user to answer the opening direction of the currently displayed vision icon by voice; if the user answers incorrectly, determining the user's vision data according to the user's answer result; If the user answers correctly, the next vision test icon is selected from the vision test icon set, and the vision test step is continued.
12. The method according to claim 1, characterized in that The eye condition data includes grayscale perception data; as well as The step of testing the user's eye condition data based on the interaction between the smart desk lamp and the user includes: Display the grayscale perception data test interface; Acquire a first picture set, wherein the first picture contains characters, and the first pictures in the first picture set are sorted from low to high according to grayscale values; According to the sorting, a group of first pictures are selected from the first picture set, and a grayscale perception test step is performed: the selected group of first pictures are displayed in the grayscale perception data test interface; a voice prompt is given to the user to answer the character contained in the target first picture with the lowest brightness in the currently displayed group of first pictures; if the user's answer is wrong, the user's grayscale perception data is determined according to the user's answer result; If the user answers correctly, the next set of first pictures is selected from the first picture set, and the grayscale perception test step is continued.
13. The method according to claim 1, characterized in that The eye condition data includes color perception data; and The step of testing the user's eye condition data based on the interaction between the smart desk lamp and the user includes: Display the color perception data test interface; Acquire a second picture set, wherein the second picture includes a pattern formed by at least one color; For a second picture in the second picture set, display the second picture in the color perception data test interface, and prompt the user to answer a pattern included in the second picture by voice; According to the user's answer result, the user's color perception data is determined.
14. The method according to claim 1, characterized in that The method further comprises: If the eye condition data indicates that the user's vision value is lower than a vision threshold, a vision impairment prompt message is output.
15. The method according to any one of claims 1 to 14, characterized in that: The lighting parameters include at least one of the following: brightness and color temperature.
16. A parameter adjustment device, applied to a smart desk lamp, comprising: An auxiliary unit, used to assist the user to move to a target test position; A testing unit, configured to test the eye condition data of the user based on the interaction between the smart desk lamp and the user, under the premise that the user is located at the target testing position; a determination unit, configured to determine light adjustment data matching the eye condition data; An adjustment unit, used for adjusting the lighting parameters of the smart desk lamp according to the lighting adjustment data; The auxiliary unit is specifically used to display a pre-test preparation interface, wherein a distance prompt control is displayed in the pre-test preparation interface, wherein the distance prompt control is used to prompt the user of the distance from the smart desk lamp; and to detect the distance between the user and the smart desk lamp in real time, and to update the distance prompt control in real time according to the detected distance; if the user moves to a position where the distance from the smart desk lamp is a target distance, it is determined that the user moves to a target test position; The distance prompt control has a reference mark and a moving mark, wherein the reference mark indicates the target distance, and the moving mark indicates the distance between the user and the smart desk lamp; and The updating of the distance prompt control in real time according to the detected distance includes: According to the detected distance, the position of the mobile identifier in the distance prompt control is moved in real time; if the mobile identifier moves to a position before or after the reference identifier, the background color of the distance prompt control is updated to a first color; if the mobile identifier moves to the position where the reference identifier is located, the background color of the distance prompt control is updated to a second color.
17. An electronic device comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 15.
18. A computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 15 is implemented.
Citation Information
Patent Citations
Intelligent table lamp and system with vision detection function
CN111828858A
Light adjusting method and intelligent device
CN112118659A