A light-based prompting method, a wearable device, and a storage medium.

By acquiring light parameters through the spectral sensor of a wearable device and outputting prompt messages, the problem of lack of light prompts in existing technologies is solved, and the effect of effectively preventing and controlling myopia in teenagers is achieved.

CN115541018BActive Publication Date: 2026-05-26GUANGDONG XIAOTIANCAI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG XIAOTIANCAI TECH CO LTD
Filing Date
2021-06-30
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

The lack of existing technologies to alert users based on current lighting conditions contributes to the serious problem of myopia among teenagers.

Method used

The wearable device acquires spectral parameters at multiple times, such as illuminance, color temperature, and peak width, using a spectral sensor. If the average value is detected to be outside the preset range, a prompt message is output to guide the user to adjust the lighting conditions to prevent myopia.

Benefits of technology

It effectively prompts users to obtain high-quality light sources, prolong the duration of light exposure, increase the time spent in well-lit areas, and help prevent myopia.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115541018B_ABST
    Figure CN115541018B_ABST
Patent Text Reader

Abstract

This invention discloses a lighting prompt method, a wearable device, and a storage medium, applied in the field of lighting prompt technology, which can solve the problem of how to prompt users based on the current lighting conditions. The method includes: within a preset time period, acquiring M spectral parameters at M time points using a spectral sensor, the spectral parameters including at least one of: target illuminance, color temperature, and peak width, where M is an integer greater than or equal to 1; if the average value of the M spectral parameters is detected to be outside the preset parameter range, then outputting a first prompt message, the first prompt message being used to prompt the user that the lighting is insufficient within the preset time period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of light-based prompting technology, and more particularly to a light-based prompting method, a wearable device, and a storage medium. Background Technology

[0002] In recent years, with the increasing use of electronic products and the growing academic burden, myopia among teenagers has become increasingly serious. Therefore, it is generally recommended that children and teenagers spend more than 3 hours a day in sunlight, which can effectively reduce the probability of myopia. However, specific wavelengths of the spectrum outside of sunlight can also effectively reduce the probability of myopia in children and teenagers. Therefore, how to provide users with information based on current lighting conditions has become an urgent problem to be solved. Summary of the Invention

[0003] This invention provides a lighting prompting method, a wearable device, and a storage medium to solve the problem in the prior art of how to prompt users based on current lighting conditions. To solve the above-mentioned technical problem, this invention is implemented as follows:

[0004] In a first aspect, a light illumination prompting method is provided, applied to a wearable device, the wearable device being equipped with a spectral sensor, the method comprising:

[0005] Within a preset time period, the spectral sensor acquires M spectral parameters at M time points. The spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width, where M is an integer greater than or equal to 1.

[0006] If the average value of the M spectral parameters is not within the preset parameter range, a first prompt message is output. The first prompt message is used to remind the user that the light exposure within the preset time period is not conducive to myopia prevention and control.

[0007] As an optional implementation, in a first aspect of the present invention, the step of outputting a first prompt message if the average value of the M spectral parameters is detected to be outside a preset parameter range includes:

[0008] When the spectral parameters include the target illuminance, if the average value of the M target illuminances is not within the preset illuminance range, the first prompt message is output.

[0009] And / or,

[0010] When the spectral parameters include the target color temperature, if the average value of M target color temperatures is not within the preset color temperature range, the first prompt message is output.

[0011] And / or,

[0012] When the spectral parameters include the target peak width, if the average value of the M target peak widths is not within the preset peak width range, the first prompt message is output.

[0013] As an optional implementation, in a first aspect of the present invention, the spectral parameters include: the target illuminance; and after acquiring M spectral parameters at M times within a preset time period using the spectral sensor, the method further includes:

[0014] If Q out of M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, then Q detection times corresponding to the Q target illuminance values ​​are determined, where Q is an integer greater than or equal to 1.

[0015] Determine the interval between each of the Q detection times and the previous adjacent detection time to obtain the Q interval durations;

[0016] The sum of the Q interval durations is determined as the total illumination duration;

[0017] If the total illumination duration is detected to be less than a preset illumination duration threshold, a second prompt message is output, which prompts the user to extend the illumination duration.

[0018] The preset illuminance threshold is the standard illuminance for preventing myopia in users.

[0019] As an optional implementation, in a first aspect of the present invention, the spectral parameters include: the target illuminance; and after acquiring M spectral parameters at M times within a preset time period using the spectral sensor, the method further includes:

[0020] Obtain M location information corresponding to M time points, wherein each of the M location information points corresponds one-to-one with the illuminance of M targets;

[0021] If Q of the M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, a third prompt message is output. The third prompt message includes Q location information corresponding to the Q target illuminance values. The third prompt message is used to remind the user that there is sufficient light when the user is in the Q location information.

[0022] Wherein, the preset illuminance threshold is the standard illuminance for preventing myopia in users, and Q is an integer greater than or equal to 1.

[0023] As an optional implementation, in a first aspect of the present invention, the spectral parameters include: the target illuminance, and the acquisition of M spectral parameters at M times includes:

[0024] Obtain N preset bands for each of the M time points, where N is an integer greater than or equal to 1;

[0025] Obtain the N first illuminance values ​​corresponding to the N preset wavelength bands;

[0026] The target illuminance at each moment is calculated based on the N first illuminance values.

[0027] As an optional implementation, in a first aspect of the present invention, each of the N preset bands includes P preset sub-bands, and obtaining the N first illuminance values ​​corresponding to the N preset bands includes:

[0028] Obtain the P second illuminance values ​​corresponding to the P preset sub-bands, where P is an integer greater than or equal to 1;

[0029] The average value of the P second illuminance values ​​is used to obtain the first illuminance value corresponding to each preset wavelength band.

[0030] As an optional implementation, in a first aspect of the present invention, calculating the target illuminance at each moment based on the N first illuminances includes:

[0031] Obtain the user's personal information, which includes: the user's age and the user's vision condition;

[0032] Determine a personal adjustment coefficient corresponding to the user's personal information, wherein the personal adjustment coefficient is directly proportional to the user's vision and the user's age;

[0033] The target illuminance at each moment is calculated based on the N first illuminance values, the personal adjustment coefficient, and the wavelength weighting coefficient corresponding to each of the N preset bands.

[0034] As an optional implementation, in a first aspect of the present invention, obtaining M spectral parameters at M times includes:

[0035] Get the current location information;

[0036] If the current location information is detected to be indoors, then the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing are obtained through the six-axis sensor.

[0037] Determine the angular difference between the first direction and the second direction;

[0038] If the angle difference is less than or equal to a preset angle threshold, then obtain the M spectral parameters at the M times.

[0039] Wherein, the angle difference between the first direction and the second direction at the M times is less than or equal to the preset angle threshold.

[0040] In a second aspect, a wearable device is provided, the wearable device being equipped with a spectral sensor, the wearable device comprising:

[0041] The acquisition module is used to acquire M spectral parameters at M time points within a preset time period using the spectral sensor. The spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width, where M is an integer greater than or equal to 1.

[0042] The output module is used to output a first prompt message if the average value of the M spectral parameters is not within a preset parameter range. The first prompt message is used to remind the user that the light exposure within the preset time period is not conducive to myopia prevention and control.

[0043] Thirdly, a wearable device is provided, comprising:

[0044] Memory containing executable program code;

[0045] A processor coupled to the memory;

[0046] The processor calls the executable program code stored in the memory to execute the lighting prompting method in the first aspect of the present invention.

[0047] Fourthly, a computer-readable storage medium is provided that stores a computer program that causes a computer to execute the illumination prompting 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.

[0048] 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.

[0049] 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.

[0050] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0051] In this embodiment of the invention, the wearable device is equipped with a spectral sensor. Within a preset time period, the wearable device can acquire M spectral parameters at M time points using the spectral sensor. These spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width. If the average value of the M spectral parameters is detected to be outside the preset parameter range, a first prompt message is output. This first prompt message is used to remind the user that the lighting conditions within the preset time period are not conducive to myopia prevention. Through this scheme, the wearable device can output relevant lighting prompts to the user based on spectral parameters over a period of time, helping the user to access high-quality light sources and obtain sufficient illumination, thereby achieving the goal of myopia prevention. Attached Figure Description

[0052] 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.

[0053] Figure 1 This is a flowchart illustrating a lighting prompting method provided in an embodiment of the present invention. Figure 1 ;

[0054] Figure 2 This is a scene illustration of a lighting prompting method provided in an embodiment of the present invention;

[0055] Figure 3 This is a flowchart illustrating a lighting prompting method provided in an embodiment of the present invention. Figure 2 ;

[0056] Figure 4 This is a flowchart illustrating a lighting prompting method provided in an embodiment of the present invention. Figure 3 ;

[0057] Figure 5 This is a flowchart illustrating a lighting prompting method provided in an embodiment of the present invention. Figure 4 ;

[0058] Figure 6 This is a schematic diagram of the structure of a wearable device provided in an embodiment of the present invention. Figure 1 ;

[0059] Figure 7 This is a schematic diagram of the structure of a wearable device provided in an embodiment of the present invention. Figure 2 ;

[0060] Figure 8 This is a schematic diagram of the hardware structure of a wearable device provided in an embodiment of the present invention. Detailed Implementation

[0061] 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.

[0062] The terms "first" and "second," etc., used in the specification and claims of this invention are used to distinguish different objects, not to describe a specific order of objects. For example, "first notification message" and "second notification message," etc., are used to distinguish different notification messages, not to describe a specific order of notification messages.

[0063] 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.

[0064] 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.

[0065] In related technologies, with the increasing frequency of electronic product use and the growing academic burden, myopia among teenagers is becoming more and more serious. Therefore, it is generally recommended that children and teenagers spend more than 3 hours a day in sunlight, which can effectively reduce the probability of myopia. However, specific wavelengths of the spectrum outside of sunlight can also effectively reduce the probability of myopia in children and teenagers. Therefore, how to provide users with information based on current lighting conditions has become an urgent problem to be solved.

[0066] To address the aforementioned problems, embodiments of the present invention provide a light illumination prompting method, a wearable device, and a storage medium. The wearable device is equipped with a spectral sensor. Within a preset time period, the wearable device can acquire M spectral parameters at M time points using the spectral sensor. These spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width. If the average value of the M spectral parameters is detected to be outside the preset parameter range, a first prompt message is output. This first prompt message is used to remind the user that the light illumination within the preset time period is detrimental to myopia prevention. Through this scheme, the wearable device can output relevant light illumination prompts to the user based on spectral parameters over a period of time, helping the user to seek out high-quality light sources and obtain sufficient illumination, thereby achieving the goal of myopia prevention.

[0067] The wearable devices involved in the embodiments of the present invention can be smartwatches, smart bracelets, smart phone watches, smart earrings, smart necklaces, smart headphones, etc., and the embodiments of the present invention are not limited thereto.

[0068] The subject executing the illumination prompting method provided in this embodiment of the invention can be the wearable device described above, or it can be a functional module and / or functional entity within the wearable device capable of implementing the illumination prompting method. The specific implementation can be determined according to actual usage requirements, and this embodiment of the invention does not impose any limitations. The following description uses a wearable device as an example to illustrate the illumination prompting method provided in this embodiment of the invention.

[0069] Example 1

[0070] like Figure 1 As shown, an embodiment of the present invention provides a lighting prompting method, which may include the following steps:

[0071] 101. Within a preset time period, acquire M spectral parameters at M time points using a spectral sensor.

[0072] In this embodiment of the invention, within a preset time period, the wearable device can acquire M spectral parameters corresponding to M time points through a configured spectral sensor, where M is an integer greater than or equal to 1.

[0073] Wearable devices can acquire spectral parameters at preset intervals within a set time period.

[0074] It should be noted that the duration of two adjacent intervals can be the same or different, and this embodiment of the invention does not impose any limitation.

[0075] It should be noted that the spectral parameters acquired at each current moment can be used to represent the illumination situation between the current moment and the previous moment when the spectral parameters were acquired.

[0076] For example, suppose the wearable device acquires a first spectral parameter at 12:00, a second spectral parameter at 12:05, and a third spectral parameter at 12:16. Then, the second spectral parameter can represent the average illumination between 12:00 and 12:05; and the third spectral parameter can represent the average illumination between 12:05 and 12:16.

[0077] Optionally, the spectral sensor can be a standalone testing device or a component integrated into other devices. In this embodiment of the invention, the spectral sensor can be integrated into a wearable device. The optical part of the spectral sensor includes a light-collecting element for receiving detection light, an imaging optical element that uses an off-axis mirror to reflect light, and a beam-splitting element that uses a beam splitter to divide the spectral bands. The divided spectral bands need to be acquired by multiple detectors. The spectral sensor is also equipped with a standard temperature plate to compensate for the non-uniformity of the multiple detectors.

[0078] In this embodiment of the invention, the light-collecting element in the spectral sensor can be configured on the outer surface of the wearable device to collect the ambient light in which the wearable device is located.

[0079] It should be noted that the spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width.

[0080] Optionally, illuminance represents the luminous flux received per unit area on the surface of the subject. When the user is in a well-lit place, the spectral sensor in the wearable device can receive and detect the ambient light to obtain the current illuminance, which can be used to reflect the current lighting conditions.

[0081] Optionally, color temperature is a physical quantity used in lighting optics to define the color of a light source. Specifically, if a blackbody is heated to a certain temperature and the color of the light it emits is the same as the color of the light emitted by a certain light source, the temperature at which the blackbody is heated is called the color temperature of that light source, or simply color temperature.

[0082] Optionally, the peak width is the distance between the two points where the tangents drawn at the inflection points on both sides of the spectral peak intersect with the peak base, i.e., the distance between adjacent peaks, or the distance between adjacent troughs.

[0083] Optionally, all of the above spectral parameters can be detected by a spectral sensor, and these spectral parameters all affect the user's visual health.

[0084] Optionally, M spectral parameters at M time points can be obtained, which may specifically include: obtaining the location information at the current time; if the location information at the current time is detected to be in an indoor location, then obtaining the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing; obtaining the angle difference between the first direction and the second direction; if the angle difference is less than or equal to a preset angle threshold, then obtaining the M spectral parameters at M time points.

[0085] In this optional implementation, if the wearable device detects that the user is currently in an indoor location, such as a school or office building, the user may be studying or looking at a computer. In this case, the wearable device can detect the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing. When the angle difference between the first direction and the second direction is less than or equal to a preset angle threshold, it indicates that the difference between the spectral parameters of the ambient light and the spectral parameters of the light entering the user's eyes is small. In this case, the wearable device can acquire M spectral parameters at M times.

[0086] It should be noted that the angle difference between the first direction and the second direction at M time points is less than or equal to the preset angle threshold.

[0087] Optionally, when the wearable device is worn on the user's arm, after determining that the user is indoors based on the current location information, the wearable device can obtain the first direction of the spectral sensor's orientation through a six-axis sensor and detect the user's arm movement trajectory through the six-axis sensor. Then, the wearable device can determine the user's current activity based on the user's arm movement trajectory, and further determine the second direction of the user's face orientation based on the user's current activity. If the angle difference between the first and second directions is greater than a preset angle threshold, the wearable device can output a prompt message to the user, prompting the user to place the wearable device near the user's eyes and ensure that the orientation of the spectral sensor is consistent with the user's face orientation.

[0088] For example, such as Figure 2 As shown, when the user's eyes 24 are focused on the screen 21 and the user's arm is typing on the keyboard 22, the second direction 2b in which the user's face is facing is the direction 2b towards the computer screen, while the first direction 2a in which the spectral sensor in the wearable device 23 worn on the arm is facing may be the direction 2a in which the keyboard is facing, such as... Figure 2 As shown, there may be a certain angle between the first direction 2a and the second direction 2b. Then, the user can place the wearable device 23 near the user's eyes 24 according to the prompts of the wearable device 23, and ensure that the first direction 2a of the spectral sensor in the wearable device 23 is consistent with the second direction 2b of the user's face.

[0089] With this optional implementation, the wearable device can acquire M spectral parameters when the angle difference between the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing is less than or equal to a preset angle threshold. This can avoid the situation where the detection error is large due to the large difference between the spectral parameters of the ambient light and the spectral parameters of the light entering the eye, thus improving the accuracy of the spectral sensor detection in the wearable device.

[0090] 102. If the average value of M spectral parameters is not within the preset parameter range, the first prompt message will be output.

[0091] In this embodiment of the invention, after the wearable device acquires M spectral parameters at M times, it can calculate the average value of the M spectral parameters. If the average value is not within the preset parameter range, it can be said that the current lighting conditions are not conducive to the user's myopia prevention and control. Then the wearable device can output a first prompt message to the user. The first prompt message is used to remind the user that the lighting conditions within the preset time period are not conducive to myopia prevention and control.

[0092] It should be noted that the preset parameter range is a standard parameter range that is beneficial to users in preventing myopia, obtained through multiple experiments and tests.

[0093] Optionally, if the average value of the M spectral parameters is detected to be outside the preset parameter range, a first prompt message is output, which may include the following implementation methods:

[0094] Implementation Method 1: When the spectral parameters include target illuminance, if the average value of the M target illuminances is not within the preset illuminance range, the first prompt message is output.

[0095] In this optional implementation, if the spectral parameters include illuminance, the wearable device can obtain the average value of M target illuminances. When the average value is not within the preset illuminance range, a first prompt message is output to the user.

[0096] The preset illuminance range is a standard illuminance range that has been obtained through multiple tests and is beneficial for users to prevent myopia.

[0097] For example, the preset illuminance range can be 400 lux to 749 lux.

[0098] Implementation Method 2: When the spectral parameters include color temperature, if the average value of M color temperatures is not within the preset color temperature range, the first prompt message will be output.

[0099] In this optional implementation, if the spectral parameters include color temperature, the wearable device can obtain the average value of M target color temperatures. When the average value is not within the preset color temperature range, a first prompt message is output to the user.

[0100] The preset color temperature range is a standard color temperature range that has been obtained through multiple tests and is beneficial for users to prevent myopia.

[0101] For example, the preset color temperature range can be 4500 Kelvin (K) to 6500 K.

[0102] Implementation Method 3: When the spectral parameters include peak width, if the average value of the M peak widths is not within the preset peak width range, the first prompt message will be output.

[0103] In this optional implementation, if the spectral parameters include peak width, the wearable device can obtain the average value of M target peak widths. When the average value is not within the preset peak width range, a first prompt message is output to the user.

[0104] The preset peak width range is a standard peak width range that has been obtained through multiple tests and is beneficial for users to prevent myopia.

[0105] For example, the preset peak width range can be 500 nanometers (nm) to 1300 nm.

[0106] Through the three optional implementation methods mentioned above, wearable devices can perform detection based on the standard range of different spectral parameters after acquiring them, and output prompt information to the user for different spectral parameters.

[0107] This invention provides a light illumination prompting method. A wearable device equipped with a spectral sensor can acquire M spectral parameters at M time points within a preset time period. These spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width. If the average value of the M spectral parameters is not within a preset parameter range, a first prompt message is output. This first prompt message alerts the user that the light exposure within the preset time period is detrimental to myopia prevention. Through this method, the wearable device can output light illumination prompts to the user based on spectral parameters over a specific time period, helping the user to access high-quality light sources and obtain sufficient light, thereby achieving the goal of myopia prevention.

[0108] Example 2

[0109] like Figure 3 As shown, this embodiment of the invention provides a lighting prompting method. In this embodiment, the spectral parameters include the target illuminance, and the method may further include the following steps:

[0110] 301. Within a preset time period, acquire M spectral parameters at M time points using a spectral sensor.

[0111] In this embodiment of the invention, the spectral parameters include the target illuminance.

[0112] 302. If Q out of M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, then the Q detection times corresponding to the Q target illuminance values ​​are determined.

[0113] In this embodiment of the invention, after the wearable device acquires M target illuminance values, it can compare the M target illuminance values ​​with a preset illuminance threshold to obtain Q target illuminance values ​​that are greater than or equal to the preset illuminance threshold, and determine the detection time corresponding to each of the Q target illuminance values, where Q is an integer greater than or equal to M.

[0114] The preset illuminance threshold is a standard illuminance level for preventing myopia in users, obtained through experimental testing.

[0115] 303. Determine the interval between each of the Q detection times and the previous adjacent detection time to obtain the Q interval durations.

[0116] In this embodiment of the invention, the wearable device can determine the interval duration between each detection time and the previous adjacent detection time based on the Q detection times corresponding to the Q target illuminances, so as to obtain the Q interval durations.

[0117] It should be noted that the previous adjacent detection time refers to the previous adjacent detection time among the M detection times corresponding to the M target illuminances.

[0118] For example, assuming M is 6, Q is 3, the first detection time corresponding to the first target illuminance is 12:00, the second detection time corresponding to the second target illuminance is 12:08, the third detection time corresponding to the third target illuminance is 12:20, the fourth detection time corresponding to the fourth target illuminance is 12:42, the fifth detection time corresponding to the fifth target illuminance is 12:47, and the sixth detection time corresponding to the sixth target illuminance is 12:58; wherein the second, third, and sixth target illuminances are greater than or equal to a preset illuminance threshold. The wearable device then needs to determine the interval between the second, third, and sixth detection times and the previous adjacent detection time. Specifically, the interval between the second detection time and the previous adjacent detection time is the same as the interval between the second detection time and the first detection time, which is 8 minutes; the interval between the third detection time and the previous adjacent detection time is the same as the interval between the third detection time and the second detection time, which is 12 minutes; and the interval between the sixth detection time and the previous adjacent detection time is the same as the interval between the sixth detection time and the fifth detection time, which is 11 minutes.

[0119] 304. The sum of the durations of the Q intervals is determined as the total duration of illumination.

[0120] In this embodiment of the invention, the wearable device can add up the durations of Q intervals to obtain the total duration of illumination within a preset time.

[0121] 305. If the total illumination duration is detected to be less than the preset illumination duration threshold, a second prompt message will be output.

[0122] In this embodiment of the invention, the wearable device can compare the total duration of illumination with a preset illumination duration threshold. If the total duration of illumination is less than the preset illumination duration threshold, a second prompt message is output, which prompts the user to extend the illumination duration.

[0123] Optionally, there can be a corresponding relationship between the preset illumination duration threshold and the preset duration.

[0124] Optionally, if the total illumination duration is detected to be less than a preset illumination duration threshold, a second prompt message is output, which may include the following implementation methods:

[0125] Method 1: Wearable devices can detect the target illuminance multiple times a day and, combined with the total duration of light exposure throughout the day, output a second prompt message to the user at a fixed time each day.

[0126] In this optional implementation, the preset duration can be a whole day. The wearable device can detect the illuminance of M targets at M times within a whole day, and count the interval between the Q targets with illuminance greater than or equal to the preset illuminance threshold and the previous adjacent detection time. The intervals are then added together to obtain the total illumination duration for the whole day. If the total illumination duration is less than the preset illumination duration threshold corresponding to a whole day, a second prompt message is output. This second prompt message can be used to remind the user that the illumination duration for the day is insufficient and to suggest that the illumination duration be increased the next day.

[0127] For example, assuming a preset duration of 24 hours and a preset illumination duration threshold of 3 hours, if the wearable device acquires 100 target illuminance values ​​at 100 different times within 24 hours, and 23 of these target illuminance values ​​are greater than or equal to the preset illuminance threshold, the wearable device can add each of these 23 target illuminance values ​​to the interval between the previous adjacent detection time to obtain the total illumination duration within 24 hours. If this total illumination duration is less than 3 hours, it indicates that the user's illumination duration within 24 hours is insufficient. The wearable device can then output a notification message to the user, suggesting that the user increase their illumination duration the following day.

[0128] With this optional implementation, if a user's daily light exposure time is short, the wearable device can send a reminder message at a fixed time each day, informing the user of the insufficient light exposure and suggesting that the user adjust their activity location the following day to extend the light exposure time. Through this solution, the wearable device can send reminders to the user daily based on the light exposure received, helping the user to move towards higher-quality light sources and achieving the goal of myopia prevention.

[0129] Method 2: Wearable devices can detect the target illuminance multiple times in a short period of time, and combine the total duration of illumination within that period to output a second prompt message to the user.

[0130] In this optional implementation, the preset duration can be a relatively short duration. The wearable device can detect the illuminance of M targets at M times within this short duration, and count the interval between the Q targets whose illuminance is greater than or equal to a preset illuminance threshold and the previous adjacent detection time. These intervals are then added together to obtain the total illumination duration within the short duration. If the total illumination duration is less than the preset illumination duration threshold corresponding to the short duration, a second prompt message is output. This second prompt message can be used to remind the user that the current illumination within the short duration is insufficient, and to suggest that the user adjust their position immediately.

[0131] For example, assuming a preset duration of 1 hour and a preset illumination duration threshold of 20 minutes, within 1 hour, the wearable device acquires 20 target illuminance values ​​at 20 different times. Of these, 3 target illuminance values ​​are greater than or equal to the preset illuminance threshold. The wearable device can then add the interval between each of these 3 target illuminance values ​​and the previous adjacent detection time to obtain the total illumination duration within 1 hour. If this total illumination duration is less than 20 minutes, it indicates that the user's illumination duration within 1 hour is insufficient. The wearable device can then output a prompt message to the user, suggesting that they immediately adjust their activity location to improve the illumination.

[0132] With this optional implementation, if a user's exposure time within a given period is insufficient, the wearable device can immediately send a notification message to the user, informing them of the inadequate light exposure and suggesting they adjust their location to extend the exposure time. This solution allows the wearable device to instantly alert the user based on the received light conditions, helping them move to higher-quality light sources to ensure the required daily light exposure time meets standards, thereby achieving the goal of myopia prevention.

[0133] 306. If the average value of M spectral parameters is not within the preset parameter range, the first prompt message will be output.

[0134] Optionally, the output of the first prompt message and the output of the second prompt message can be performed simultaneously; or the first prompt message can be output first and then the second prompt message can be output; or the second prompt message can be output first and then the first prompt message can be output. This embodiment of the invention does not limit the specific actions taken.

[0135] This invention provides a method for providing illumination alerts. A wearable device equipped with a spectral sensor can acquire M spectral parameters at M time points within a preset time period. The device then determines Q detection times corresponding to Q target illuminance values ​​that are greater than or equal to a preset illuminance threshold, thus obtaining the user's total illumination duration within the preset time period. Based on this total illumination duration, the device outputs an illumination duration alert message to the user. If the average value of the M spectral parameters is not within a preset parameter range, a first alert message is output to remind the user that the illumination within the preset time period is detrimental to myopia prevention. Through this method, the wearable device can output an alert message to the user regarding extending the illumination duration when the user's illumination duration is less than a preset illumination duration threshold. Furthermore, it can output illumination alert messages based on spectral parameters over a specific time period, helping the user access high-quality light sources and obtain sufficient illumination, thereby achieving the goal of myopia prevention and improving the intelligence level of the wearable device.

[0136] Example 3

[0137] like Figure 4 As shown, this embodiment of the invention provides a lighting prompting method. In this embodiment, the spectral parameters include the target illuminance, and the method may further include the following steps:

[0138] 401. Within a preset time period, acquire M spectral parameters at M time points using a spectral sensor.

[0139] In this embodiment of the invention, the spectral parameters include the target illuminance.

[0140] 402. Obtain the M location information corresponding to M time points.

[0141] In this embodiment of the invention, the wearable device can acquire M location information corresponding to M times.

[0142] The methods for obtaining location information may include at least one of the following: wireless Fidelity (WiFi) positioning, satellite positioning, and base station positioning. Satellite positioning may be based on the BeiDou Navigation Satellite System (BDS), the Global Positioning System (GPS), or other positioning methods; this embodiment of the invention is not limited to any particular method.

[0143] Optionally, obtaining the M spectral parameters at M times and obtaining the M location information corresponding to the M times can be done simultaneously; or the M spectral parameters at M times can be obtained first, and then the M location information corresponding to the M times can be obtained; or the M location information corresponding to the M times can be obtained first, and then the M spectral parameters at M times can be obtained. This embodiment of the invention does not impose any limitations.

[0144] 403. If Q out of M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, a third prompt message is output.

[0145] In this embodiment of the invention, after the wearable device acquires M target illuminance values, it can compare the M target illuminance values ​​with a preset illuminance threshold. If there are Q target illuminance values ​​that are greater than or equal to the preset illuminance threshold, the wearable device can output a third prompt message. The third prompt message may include Q location information corresponding to the Q target illuminance values. The third prompt message is used to remind the user that there is sufficient light when they are in the Q location information.

[0146] The preset illuminance threshold is a standard illuminance level for preventing myopia in users, obtained through experimental testing.

[0147] Optionally, if Q out of M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, a third prompt message is output, which may include the following implementation methods:

[0148] Method 1: Wearable devices can detect the target illuminance and corresponding location information multiple times a day, and combine the target illuminance throughout the day to output a third prompt message to the user at a fixed time each day.

[0149] In this optional implementation, the preset duration can be a whole day. The wearable device can detect the illuminance of M targets and the location information of M locations at M times throughout the day, and obtain the Q targets with illuminance greater than or equal to the preset illuminance threshold. The Q locations corresponding to the Q targets with illuminance are output to the user as a third prompt message to remind the user that there is sufficient light at the Q locations on that day and to suggest that the user increase the activity time at the Q locations the next day.

[0150] For example, assuming a preset duration of 24 hours, within 24 hours, the wearable device acquires 100 target illuminance values ​​and 100 location information values ​​at 100 different times. Among these, 23 target illuminance values ​​are greater than or equal to a preset illuminance threshold. The wearable device can then output the 23 location information values ​​corresponding to these 23 target illuminance values ​​to the user, indicating that there is sufficient light at these 23 locations within 24 hours and suggesting that the user increase their activity time at these 23 locations the following day.

[0151] With this optional implementation, wearable devices can send reminder messages to users at fixed times each day, informing them of well-lit locations and suggesting they extend their time spent in those locations the following day. This approach allows wearable devices to provide daily reminders based on the user's lighting conditions in different locations, helping them to gravitate towards better light sources and thus preventing myopia.

[0152] Method 2: Wearable devices can detect the target illuminance and corresponding location information multiple times in a short period of time, and output a third prompt message to the user based on the target illuminance during that period of time.

[0153] In this optional implementation, the preset duration can be a relatively short duration. Within this short duration, the wearable device can detect the illuminance of M targets and the location information of M locations at M times, and obtain the Q targets with illuminance values ​​greater than or equal to a preset illuminance threshold. The Q locations corresponding to these Q targets with illuminance values ​​are then output to the user as a third prompt message to indicate that there is sufficient light at these Q locations within this short duration, and to suggest that the user continue to engage in activities at these Q locations.

[0154] For example, assuming a preset duration of 1 hour, within 1 hour, the wearable device can acquire 20 target illuminance values ​​and 20 location information values ​​at 20 different times. Among these, 3 target illuminance values ​​are greater than or equal to a preset illuminance threshold. The wearable device can then output the 3 location information values ​​corresponding to these 3 target illuminance values ​​to the user, indicating that there is sufficient light at these 3 locations within 1 hour and suggesting that the user continue to engage in activities at these 3 locations.

[0155] Through this optional implementation, wearable devices can output prompts to users, informing them of locations with sufficient light within a given timeframe and suggesting that they immediately adjust their activity location and extend their time in well-lit areas. This solution allows wearable devices to instantly provide prompts based on the user's lighting conditions at different locations, helping them quickly move to higher-quality light sources to ensure that the required daily light exposure time meets standards, thereby achieving the goal of myopia prevention.

[0156] 404. If the average value of M spectral parameters is not within the preset parameter range, the first prompt message will be output.

[0157] Optionally, the output of the first prompt message and the output of the third prompt message can be performed simultaneously; or the first prompt message can be output first and then the third prompt message can be output; or the third prompt message can be output first and then the first prompt message can be output. This embodiment of the invention does not limit the specific actions taken.

[0158] This invention provides a light illumination prompting method. A wearable device equipped with a spectral sensor can acquire M spectral parameters and M location information at M time points within a preset time period. If Q target illuminance values ​​out of the M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, the device outputs the Q location information corresponding to the Q target illuminance values ​​to the user, prompting the user to increase activity time at those Q locations. If the average value of the M spectral parameters is not within a preset parameter range, a first prompt message is output, indicating that the light intensity within the preset time period is unfavorable for myopia prevention. Through this method, the wearable device can combine location information to inform the user of well-lit locations, suggesting that the user increase activity time at those locations. Based on spectral parameters over a period of time, it outputs light-related prompt messages to the user, helping them to approach high-quality light sources and obtain sufficient illumination, thereby achieving the goal of myopia prevention and control and improving the intelligence level of the wearable device.

[0159] Example 4

[0160] like Figure 5 As shown, this embodiment of the invention provides a lighting prompting method. In this embodiment, the spectral parameters include the target illuminance, and the method may further include the following steps:

[0161] 501. Obtain N preset bands for each of M time points.

[0162] In this embodiment of the invention, the wearable device can acquire N preset bands at each moment through a configured spectral sensor, where N is an integer greater than or equal to 1.

[0163] Among them, the band is the wavelength range of the detection light received by the spectral sensor, and the preset band is the wavelength range that the wearable device has obtained through experimental testing and is beneficial to the prevention and control of myopia in users.

[0164] For example, the wavelength of the detection light has many ranges, among which the bands 465nm~485nm, 625nm~645nm, 645nm~665nm, and 705nm~725nm are beneficial for myopia prevention and control.

[0165] 502. Obtain the N first illuminance values ​​corresponding to the N preset wavelength bands.

[0166] In this embodiment of the invention, the wearable device can obtain the first illuminance corresponding to each of the N preset bands through a configured spectral sensor, so as to obtain N first illuminance values.

[0167] Optionally, N first illuminance values ​​corresponding to N preset bands can be obtained, which may specifically include: obtaining P second illuminance values ​​corresponding to P preset sub-bands, where P is an integer greater than or equal to 1; and averaging the P second illuminance values ​​to obtain the first illuminance value corresponding to each preset band.

[0168] In this optional implementation, each of the N preset bands includes P preset sub-bands. The wearable device can obtain the second illuminance corresponding to each of the P preset sub-bands to obtain P second illuminances; then, the average value of the P second illuminances is calculated, and the average value is determined as the first illuminance corresponding to the preset band.

[0169] For example, taking the 625nm-645nm band as an example, assuming P is 4, that is, the 625nm-645nm band includes four preset sub-bands, namely 625nm-630nm, 630nm-635nm, 635nm-640nm, and 640nm-645nm. Then, the wearable device obtains the second illuminance corresponding to these four preset sub-bands as 548Lux, 563Lux, 539Lux, and 551Lux, respectively. Then, the wearable device can obtain the first illuminance of the 625nm-645nm band as (548Lux+563Lux+539Lux+551Lux) / 4 = 550.25Lux.

[0170] Optionally, obtaining N first illuminance values ​​corresponding to N preset bands may further include: obtaining P second illuminance values ​​corresponding to P preset sub-bands, where P is an integer greater than or equal to 1; and taking the median of the P second illuminance values ​​to obtain the first illuminance value corresponding to each preset band.

[0171] In this optional implementation, each of the N preset bands includes P preset sub-bands. The wearable device can obtain the second illuminance corresponding to each of the P preset sub-bands to obtain P second illuminances; then, the median of the P second illuminances is calculated, and the median is determined as the first illuminance corresponding to the preset band.

[0172] For example, taking the 625nm-645nm band as an example, assuming P is 4, that is, the 625nm-645nm band includes four preset sub-bands, namely 625nm-630nm, 630nm-635nm, 635nm-640nm, and 640nm-645nm. Then, the wearable device obtains the second illuminance corresponding to these four preset sub-bands as 548Lux, 563Lux, 539Lux, and 551Lux, respectively. The wearable device can then calculate the median of these four second illuminances, which is (548Lux + 551Lux) / 2 = 549.5Lux.

[0173] 503. Calculate the target illuminance at each moment based on N first illuminance values.

[0174] In this embodiment of the invention, the wearable device can obtain the target illuminance at the current moment based on N first illuminance values.

[0175] Optionally, the target illuminance at each moment can be calculated based on N first illuminance values. Specifically, this may include: obtaining the user's personal information, including the user's age and vision; determining a personal adjustment coefficient corresponding to the user's personal information, wherein the personal adjustment coefficient is inversely proportional to the user's vision and directly proportional to the user's age; and calculating the target illuminance at each moment based on the N first illuminance values, the personal adjustment coefficient, and the wavelength weighting coefficient corresponding to each of the N preset wavelength bands.

[0176] In this optional implementation, the wearable device can determine the user's personal adjustment coefficient based on the user's age and vision, and the personal adjustment coefficient is related to the user's age and vision.

[0177] Optionally, when a user's vision is poor, the user needs longer and more intense light exposure, so the wearable device can reduce the personal adjustment factor; when a user's vision is good, the user does not need longer and more intense light exposure, so the wearable device can increase the personal adjustment factor; therefore, the personal adjustment factor is directly proportional to the user's vision.

[0178] Optionally, when a user is younger, they need longer periods of intense light exposure, so the wearable device can lower the personal adjustment factor; when a user is older, they do not need longer periods of intense light exposure, so the wearable device can increase the personal adjustment factor. Therefore, the personal adjustment factor is directly proportional to the user's age.

[0179] It should be noted that the wavelength weighting coefficient corresponding to each preset band is a weighting coefficient obtained by the wearable device based on experimental testing. This weighting coefficient can be determined according to the importance of each preset band to the prevention and control of myopia in users. The sum of the wavelength weighting coefficients corresponding to each preset band is 1.

[0180] In this embodiment of the invention, the wearable device can calculate the target illuminance at each moment based on N first illuminance values, a personal adjustment coefficient, and a wavelength weighting coefficient corresponding to each of the N preset bands.

[0181] The specific calculation method is as follows: A = M * (K1 * A1 + K2 * A2 + ... + K N *A N ).

[0182] Where A is the target illuminance at the current moment, M is the user's personal adjustment coefficient, and K1, K2...K N Wavelength weighting coefficients corresponding to each preset band, A1, A2…A N The first illuminance corresponding to each preset band, K1+K2+…+K n =1.

[0183] For example, assuming M = 0.3, N = 4, K1 = 0.1, K2 = 0.3, K3 = 0.5, K4 = 0.1, and the wearable device detects A1 = 548 Lux, A2 = 563 Lux, A3 = 539 Lux, and A4 = 551 Lux through the spectral sensor, then substituting the above data into the formula yields: A = 0.3 * (548 Lux * 0.1 + 563 Lux * 0.3 + 539 Lux * 0.5 + 551 Lux * 0.1) = 164.49 Lux, meaning the target illuminance at the current moment is 164.49 Lux.

[0184] 504. If the average value of M spectral parameters is not within the preset parameter range, the first prompt message will be output.

[0185] This invention provides a light illumination prompting method. A wearable device equipped with a spectral sensor can acquire N preset wavelengths and N corresponding first illuminance values ​​for each of M time points within a preset time period. Based on these N first illuminance values, a target illuminance value for each time point is calculated. If the average value of the M target illuminance values ​​is not within a preset parameter range, a first prompt message is output. This first prompt message alerts the user that the light exposure within the preset time period is detrimental to myopia prevention. Through this method, the wearable device can calculate the target illuminance value for the current time point based on the spectral parameters of different wavelengths at each time point and output relevant light illumination prompts to the user, helping them to access high-quality light sources and obtain sufficient light, thereby achieving the goal of myopia prevention.

[0186] Example 5

[0187] like Figure 6 As shown, an embodiment of the present invention provides a wearable device equipped with a spectral sensor. The wearable device includes:

[0188] The acquisition module 601 is used to acquire M spectral parameters at M time points within a preset time period using a spectral sensor. The spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width, where M is an integer greater than or equal to 1.

[0189] The output module 602 is used to output a first prompt message if the average value of M spectral parameters is not within the preset parameter range. The first prompt message is used to remind the user that the light exposure within the preset time period is not conducive to myopia prevention and control.

[0190] Optionally, the output module 602 is specifically used to output a first prompt message when the spectral parameters include target illuminance and the average value of M target illuminances is not within the preset illuminance range.

[0191] And / or,

[0192] The output module 602 is specifically used to output a first prompt message when the spectral parameters include the target color temperature and the average value of the M target color temperatures is not within the preset color temperature range.

[0193] And / or,

[0194] The output module 602 is specifically used to output a first prompt message when the spectral parameters include the target peak width and the average value of the M target peak widths is not within the preset peak width range.

[0195] Optionally, the wearable device may also include:

[0196] The processing module 603 is used to determine Q detection times corresponding to the Q target illuminances if Q of the M target illuminances are detected to be greater than or equal to a preset illuminance threshold, where Q is an integer greater than or equal to 1;

[0197] The processing module 603 is also used to determine the interval duration between each detection time and the previous adjacent detection time in the Q detection times, so as to obtain the Q interval durations;

[0198] The processing module 603 is also used to determine the sum of the Q interval durations as the total illumination duration;

[0199] The output module 602 is also used to output a second prompt message if the total illumination duration is detected to be less than a preset illumination duration threshold. The second prompt message is used to prompt the user to extend the illumination duration.

[0200] The preset illuminance threshold is the standard illuminance for preventing myopia in users.

[0201] Optionally, the acquisition module 601 is also used to acquire M location information corresponding to M time points, and the M location information corresponds one-to-one with the illuminance of the M targets;

[0202] The output module 602 is further configured to output a third prompt message if Q of the M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold. The third prompt message includes Q location information corresponding to the Q target illuminance values. The third prompt message is used to prompt the user that there is sufficient light when the user is in the Q location information.

[0203] The preset illuminance threshold is the standard illuminance for preventing myopia in users, and Q is an integer greater than or equal to 1.

[0204] Optionally, module 601 is used to acquire N preset bands for each of M time points, where N is an integer greater than or equal to 1.

[0205] The acquisition module 601 is specifically used to acquire N first illuminance values ​​corresponding to N preset wavelength bands;

[0206] The processing module 603 is specifically used to calculate the target illuminance at each moment based on N first illuminance values.

[0207] Optionally, the acquisition module 601 is specifically used to acquire P second illuminance values ​​corresponding to P preset sub-bands, where P is an integer greater than or equal to 1;

[0208] The processing module 603 is specifically used to calculate the average value of P second illuminance values ​​to obtain the first illuminance value corresponding to each preset wavelength band.

[0209] Optionally, module 601 is used to obtain the user's personal information, which includes: the user's age and the user's vision.

[0210] The processing module 603 is specifically used to determine the personal adjustment coefficient corresponding to the user's personal information. The personal adjustment coefficient is proportional to the user's vision and also proportional to the user's age.

[0211] The processing module 603 is specifically used to calculate the target illuminance at each moment based on N first illuminances, personal adjustment coefficients, and wavelength weighting coefficients corresponding to each of the N preset bands.

[0212] Optionally, module 601 is used to obtain the current location information;

[0213] The acquisition module 601 is specifically used to acquire, through a six-axis sensor, the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing if the current location information is detected to be in an indoor location.

[0214] Processing module 603 is specifically used to determine the angle difference between the first direction and the second direction;

[0215] The acquisition module 601 is specifically used to acquire M spectral parameters at M time points if the angle difference is less than or equal to a preset angle threshold.

[0216] Among them, the angle difference between the first direction and the second direction at M time points is less than or equal to the preset angle threshold.

[0217] In this embodiment of the invention, each module can implement the lighting prompting method provided in the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0218] like Figure 7 As shown, embodiments of the present invention also provide a wearable device, which may include:

[0219] Memory 701 storing executable program code;

[0220] Processor 702 coupled to memory 701;

[0221] Specifically, the processor 702 calls the executable program code stored in the memory 701 to execute the light prompting method executed by the wearable device in the above method embodiments.

[0222] like Figure 8As shown, this embodiment of the invention also provides a wearable device, which includes, but is not limited to: a radio frequency (RF) circuit 801, a memory 802, an input unit 803, a display unit 804, a sensor 805, an audio circuit 806, a wireless fidelity (WiFi) module 807, a processor 808, a power supply 809, and a camera 810, etc. Those skilled in the art will understand that... Figure 8 The wearable device structure shown does not constitute a limitation on the wearable device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0223] The RF circuit 801 can be used to receive and transmit signals during information transmission or calls. In particular, it receives downlink information from the base station and processes it with the processor 808; in addition, it transmits uplink data to the base station.

[0224] The memory 802 can be used to store software programs and modules, and the processor 808 executes various functional applications and data processing of the wearable device by running the software programs and modules stored in the memory 802.

[0225] The input unit 803 can be used to receive input numeric or character information, and to generate key signal inputs related to user settings and function control of the wearable device. Specifically, the input unit 803 may include a touch panel 8031 ​​and other input devices 8032.

[0226] The display unit 804 can be used to display information input by the user or information provided to the user, as well as various menus of the wearable device. The display unit 804 may include a display panel 8041, which may optionally be configured as a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0227] Wearable devices may also include at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.

[0228] Audio circuit 806, speaker 8061, and microphone 8062 provide an audio interface between the user and the wearable device. Audio circuit 806 converts received audio data into electrical signals and transmits them to speaker 8061, where speaker 8061 converts them into sound signals for output. On the other hand, microphone 8062 converts collected sound signals into electrical signals, which are then received by audio circuit 806, converted into audio data, and output to processor 808 for processing. The audio data is then transmitted via RF circuit 801 to, for example, another wearable device, or output to memory 802 for further processing.

[0229] WiFi is a short-range wireless transmission technology. Wearable devices, through the WiFi module 807, can help users send and receive emails, browse web pages, and access streaming media, providing users with wireless broadband internet access.

[0230] The processor 808 is the control center of the wearable device. It connects various parts of the wearable device through various interfaces and lines. By running or executing software programs and / or modules stored in the memory 802, and calling data stored in the memory 802, it performs various functions of the wearable device and processes data, thereby monitoring the wearable device as a whole.

[0231] Wearable devices also include a power supply 809 (such as a battery) that powers the various components. Although not shown, wearable devices may also include Bluetooth modules, etc., which will not be described further here.

[0232] It should be noted that the wearable device can implement the light illumination prompting method in the embodiments of this application.

[0233] Optionally, the processor 808 can be used to acquire M spectral parameters at M time points within a preset time period using a spectral sensor. The spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width, where M is an integer greater than or equal to 1. If the average value of the M spectral parameters is detected to be outside the preset parameter range, a first prompt message is output. The first prompt message is used to remind the user that the light exposure within the preset time period is not conducive to myopia prevention and control.

[0234] Optionally, the processor 808 can be specifically used to output a first prompt message when the spectral parameters include target illuminance and the average value of M target illuminances is not within a preset illuminance range; and / or, when the spectral parameters include target color temperature and the average value of M target color temperatures is not within a preset color temperature range; and / or, when the spectral parameters include target peak width and the average value of M target peak widths is not within a preset peak width range.

[0235] Optionally, the processor 808 can be specifically configured to: if Q out of M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, determine Q detection times corresponding to the Q target illuminance values, where Q is an integer greater than or equal to 1; determine the interval duration between each of the Q detection times and the previous adjacent detection time, obtaining Q interval durations; determine the sum of the Q interval durations as the total illumination duration; if the total illumination duration is detected to be less than a preset illumination duration threshold, output a second prompt message, which is used to prompt the user to extend the illumination duration; wherein, the preset illuminance threshold is a standard illuminance for preventing myopia in the user.

[0236] Optionally, the processor 808 can specifically be used to acquire M location information corresponding to M time points, with each of the M location information points corresponding to one of the M target illuminance values; if Q target illuminance values ​​among the M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, a third prompt message is output. The third prompt message includes: Q location information points corresponding to the Q target illuminance values. The third prompt message is used to remind the user that there is sufficient light when they are at the Q location information points; wherein, the preset illuminance threshold is the standard illuminance for preventing myopia in the user, and Q is an integer greater than or equal to 1.

[0237] Optionally, the processor 808 can be used to acquire N preset bands for each of M time moments, where N is an integer greater than or equal to 1; acquire N first illuminance values ​​corresponding to the N preset bands; and calculate the target illuminance value for each time moment based on the N first illuminance values.

[0238] Optionally, the processor 808 can be used to obtain P second illuminance values ​​corresponding to P preset sub-bands, where P is an integer greater than or equal to 1; and to calculate the average value of the P second illuminance values ​​to obtain the first illuminance value corresponding to each preset band.

[0239] Optionally, the processor 808 can be used to obtain the user's personal information, including: the user's age and vision; determine the personal adjustment coefficient corresponding to the user's personal information, the personal adjustment coefficient being proportional to the user's vision and the user's age; and calculate the target illuminance at each moment based on N first illuminance values, the personal adjustment coefficient, and the wavelength weighting coefficient corresponding to each of the N preset wavelength bands.

[0240] Optionally, the processor 808 can be used to acquire the current location information; if the current location information is detected to be in an indoor location, then the processor uses a six-axis sensor to acquire the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing; determine the angle difference between the first direction and the second direction; if the angle difference is less than or equal to a preset angle threshold, then the processor acquires M spectral parameters at M times; wherein the angle difference between the first direction and the second direction at the M times is less than or equal to the preset angle threshold.

[0241] 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.

[0242] 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.

[0243] 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.

[0244] 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 recognize that the embodiments described in the specification are optional embodiments, and the actions and modules involved are not necessarily essential to the invention.

[0245] 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.

[0246] 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.

[0247] 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.

[0248] 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.

[0249] 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. The 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 (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

Claims

1. A method for providing lighting cues, characterized in that, Applied to wearable devices equipped with spectral sensors, the method includes: Within a preset time period, the spectral sensor acquires M spectral parameters at M time points. The spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width, where M is an integer greater than or equal to 1. If the average value of the M spectral parameters is not within the preset parameter range, a first prompt message is output. The first prompt message is used to remind the user that the light exposure within the preset time period is not conducive to myopia prevention and control. The acquisition of M spectral parameters at M time points includes: Get the current location information; If the current location information is detected to be indoors, then the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing are obtained through the six-axis sensor. Determine the angular difference between the first direction and the second direction; If the angle difference is less than or equal to a preset angle threshold, then obtain the M spectral parameters at the M times. Wherein, the angle difference between the first direction and the second direction at the M times is less than or equal to the preset angle threshold.

2. The method according to claim 1, characterized in that, If the average value of the M spectral parameters is detected to be outside the preset parameter range, a first prompt message is output, including: When the spectral parameters include the target illuminance, if the average value of the M target illuminances is not within the preset illuminance range, the first prompt message is output. And / or, When the spectral parameters include the target color temperature, if the average value of M target color temperatures is not within the preset color temperature range, the first prompt message is output. And / or, When the spectral parameters include the target peak width, if the average value of the M target peak widths is not within the preset peak width range, the first prompt message is output.

3. The method according to claim 1, characterized in that, The spectral parameters include the target illuminance. After acquiring M spectral parameters at M times within a preset time period using the spectral sensor, the method further includes: If Q out of M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, then Q detection times corresponding to the Q target illuminance values ​​are determined, where Q is an integer greater than or equal to 1. Determine the interval between each of the Q detection times and the previous adjacent detection time to obtain the Q interval durations; The sum of the Q interval durations is determined as the total illumination duration; If the total illumination duration is detected to be less than a preset illumination duration threshold, a second prompt message is output, which prompts the user to extend the illumination duration. The preset illuminance threshold is the standard illuminance for preventing myopia in users.

4. The method according to claim 1, characterized in that, The spectral parameters include the target illuminance. After acquiring M spectral parameters at M times within a preset time period using the spectral sensor, the method further includes: Obtain M location information corresponding to M time points, wherein each of the M location information points corresponds one-to-one with the illuminance of M targets; If Q of the M target illuminance values ​​are detected to be greater than or equal to a preset illuminance threshold, a third prompt message is output. The third prompt message includes Q location information corresponding to the Q target illuminance values. The third prompt message is used to remind the user that there is sufficient light when the user is in the Q location information. Wherein, the preset illuminance threshold is the standard illuminance for preventing myopia in users, and Q is an integer greater than or equal to 1.

5. The method according to claim 1, characterized in that, The spectral parameters include: the target illuminance; acquiring the M spectral parameters at M times includes: Obtain N preset bands for each of the M time points, where N is an integer greater than or equal to 1; Obtain the N first illuminance values ​​corresponding to the N preset wavelength bands; The target illuminance at each moment is calculated based on the N first illuminance values.

6. The method according to claim 5, characterized in that, Each of the N preset bands includes P preset sub-bands, and obtaining the N first illuminance values ​​corresponding to the N preset bands includes: Obtain the P second illuminance values ​​corresponding to the P preset sub-bands, where P is an integer greater than or equal to 1; The average value of the P second illuminance values ​​is used to obtain the first illuminance value corresponding to each preset wavelength band.

7. The method according to claim 5, characterized in that, The step of calculating the target illuminance at each moment based on the N first illuminance values ​​includes: Obtain the user's personal information, which includes: the user's age and the user's vision condition; Determine a personal adjustment coefficient corresponding to the user's personal information, wherein the personal adjustment coefficient is directly proportional to the user's vision and the user's age; The target illuminance at each moment is calculated based on the N first illuminance values, the personal adjustment coefficient, and the wavelength weighting coefficient corresponding to each of the N preset bands.

8. A wearable device, characterized in that, The wearable device is equipped with a spectral sensor, and the wearable device includes: The acquisition module is used to acquire M spectral parameters at M time points within a preset time period using the spectral sensor. The spectral parameters include at least one of the following: target illuminance, target color temperature, and target peak width, where M is an integer greater than or equal to 1. The output module is used to output a first prompt message if the average value of the M spectral parameters is not within the preset parameter range. The first prompt message is used to remind the user that the light exposure within the preset time period is not conducive to myopia prevention. The acquisition module is specifically used to acquire the location information at the current moment; if the location information at the current moment is detected to be in an indoor location, then the six-axis sensor is used to acquire the first direction in which the spectral sensor is facing and the second direction in which the user's face is facing. The processing module is used to determine the angle difference between the first direction and the second direction; The acquisition module is specifically used to acquire M spectral parameters at the M times if the angle difference is less than or equal to a preset angle threshold. Wherein, the angle difference between the first direction and the second direction at the M times is less than or equal to the preset angle threshold.

9. A wearable device, characterized in that, include: 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 lighting cueing method as described in any one of claims 1 to 7.

10. 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 lighting cueing method as described in any one of claims 1 to 7.