CN112577597B - Ultraviolet detection method and device, wearable device and computer-readable storage medium - Google Patents

Ultraviolet detection method and device, wearable device and computer-readable storage medium Download PDF

Info

Publication number
CN112577597B
CN112577597B CN201910933427.XA CN201910933427A CN112577597B CN 112577597 B CN112577597 B CN 112577597B CN 201910933427 A CN201910933427 A CN 201910933427A CN 112577597 B CN112577597 B CN 112577597B
Authority
CN
China
Prior art keywords
sensor
wearable device
target
ultraviolet
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910933427.XA
Other languages
Chinese (zh)
Other versions
CN112577597A (en
Inventor
刘恩福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910933427.XA priority Critical patent/CN112577597B/en
Publication of CN112577597A publication Critical patent/CN112577597A/en
Application granted granted Critical
Publication of CN112577597B publication Critical patent/CN112577597B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/02Details
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/02Details
    • G01J2001/0257Details portable
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to an ultraviolet detection method, an ultraviolet detection device, a wearable device and a computer-readable storage medium. The method comprises the following steps: the acceleration data of the wearable device are detected through the acceleration sensor, the target UV sensor is determined according to the acceleration data, the target UV sensor is one of the first UV sensor and the second UV sensor, and the ultraviolet index of the environment where the wearable device is located is detected through the target UV sensor. Because wearable equipment is equipped with two UV sensors, can select one of them as target UV sensor according to the acceleration data, carry out the detection of ultraviolet index according to target UV sensor, can improve the accuracy that ultraviolet detected.

Description

Ultraviolet detection method and device, wearable device and computer-readable storage medium
Technical Field
The present application relates to the field of wearable device technologies, and in particular, to an ultraviolet detection method and apparatus, a wearable device, and a computer-readable storage medium.
Background
Along with the development of technology, people have higher and higher requirements on the functions of wearable devices such as smart watches, smart bracelets and the like. Currently, some manufacturers of wearable devices have UV (ultraviolet) sensors on the wearable devices, which can be used to detect the intensity of ultraviolet rays in the surrounding environment and output prompt information when the intensity of ultraviolet rays is too high. However, the conventional wearable device may have an inaccurate ultraviolet index detected by the conventional wearable device due to the influence of factors such as the environment where the wearable device is located, the posture and the motion of the user wearing the wearable device, and the like.
Disclosure of Invention
The embodiment of the application provides an ultraviolet detection method, an ultraviolet detection device, wearable equipment and a computer-readable storage medium, which can improve the accuracy of ultraviolet detection.
An ultraviolet detection method is applied to wearable equipment, and the wearable equipment comprises a main body, wherein a first Ultraviolet (UV) sensor is arranged on a first side face of the main body, and a second UV sensor is arranged on a second side face of the main body;
detecting acceleration data of the wearable device by an acceleration sensor;
determining a target UV sensor from the acceleration data, the target UV sensor being one of the first UV sensor and the second UV sensor;
detecting, by the target UV sensor, an ultraviolet index of an environment in which the wearable device is located.
An ultraviolet detection device comprising:
the acceleration detection module is used for detecting acceleration data of the wearable device through an acceleration sensor;
a sensor determination module for determining a target UV sensor from the acceleration data, the target UV sensor being at least one of the first UV sensor and the second UV sensor;
and the ultraviolet detection module is used for detecting the ultraviolet index of the environment where the wearable device is located through the target UV sensor.
A wearable device comprises a main body, wherein a first Ultraviolet (UV) sensor is arranged on a first side face of the main body, and a second UV sensor is arranged on a second side face of the main body; the main body further comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is enabled to execute the following steps:
detecting acceleration data of the wearable device by an acceleration sensor;
determining a target UV sensor from the acceleration data, the target UV sensor being one of the first UV sensor and the second UV sensor;
detecting, by the target UV sensor, an ultraviolet index of an environment in which the wearable device is located.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
detecting acceleration data of the wearable device by an acceleration sensor;
determining a target UV sensor from the acceleration data, the target UV sensor being one of the first UV sensor and the second UV sensor;
detecting, by the target UV sensor, an ultraviolet index of an environment in which the wearable device is located.
According to the ultraviolet detection method, the device, the wearable equipment and the computer-readable storage medium, acceleration data of the wearable equipment can be detected through the acceleration sensor, one of the first UV sensor and the second UV sensor is selected as the target UV sensor according to the acceleration data, and the ultraviolet index of the environment where the wearable equipment is located is detected through the target UV sensor. Because wearable equipment is equipped with two UV sensors, can select one of them as target UV sensor according to acceleration data, carry out the detection of ultraviolet index according to target UV sensor, can improve the accuracy that ultraviolet detected.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an exemplary UV detection method;
FIG. 2 is a flow diagram of a method for UV detection in one embodiment;
FIG. 3(a) is a schematic diagram of a wearable device in one embodiment;
FIG. 3(b) is a schematic diagram of a wearable device in one embodiment;
FIG. 4 is a flow diagram of a method for UV detection in one embodiment;
FIG. 5 is a flow chart of detecting UV index in one embodiment;
FIG. 6 is a graph of UV index versus sunburn time for one embodiment;
fig. 7 is a block diagram showing the structure of the ultraviolet detection device according to the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first UV sensor may be referred to as a second UV sensor, and similarly, a second UV sensor may be referred to as a first UV sensor, without departing from the scope of the present application. The first UV sensor and the second UV sensor are both UV sensors, but they are not the same UV sensor.
FIG. 1 is a schematic diagram of an application environment of the ultraviolet detection method according to an embodiment. As shown in fig. 1, the application environment includes a wearable device 100. The wearable device 100 includes a main body 110 and a wearing part 120, a first side of the main body 110 is provided with a first UV sensor 112, and a second side of the main body 110 is provided with a second UV sensor 114; the wearing part 120 may form a ring structure with the body 110, by which the wearable device 100 can be worn on a limb of a human body such as a wrist, an arm, an ankle, or a head, etc. Alternatively, the first side and the second side are opposite sides of the main body 110, and the wearing part 120 includes two parts, which can be respectively located on the other two sides of the main body 110. In some embodiments, the first UV sensor 112 and the second UV sensor 114 may be located on the adjacent first side and the second side of the main body 110, respectively, according to the requirements of practical applications.
The wearable device 100 may further include an acceleration sensor, and the wearable device 100 may detect acceleration data of the wearable device through the acceleration sensor, select one of the first UV sensor 112 and the second UV sensor 114 as a target UV sensor according to the acceleration data, and detect an ultraviolet index of an environment where the wearable device 100 is located through the target UV sensor.
FIG. 2 is a flow diagram of a method for UV detection in one embodiment. The ultraviolet detection method in this embodiment is described by taking the wearable device in fig. 1 as an example. As shown in fig. 2, the ultraviolet detection method includes steps 202 to 206.
Step 202, acceleration data of the wearable device is detected through the acceleration sensor.
The acceleration data may indicate how fast the speed of the wearable device changes. In practical applications, the wearable device is subjected to acceleration caused by gravity in a spatial environment, and the inclination angle of the wearable device relative to the horizontal plane can be calculated according to the acceleration. The wearable device is provided with an acceleration sensor for detecting acceleration data of the wearable device.
Optionally, the electronic device may detect acceleration data of the wearable device through the acceleration sensor when receiving the ultraviolet detection instruction; the ultraviolet detection instruction may be generated by a user by pressing a button of the wearable device, touching a control on a display screen of the wearable device, or converting according to detected voice information, or may be generated by the wearable device when determining that the current time, the ambient brightness, or the geographic location, and the like, satisfy the corresponding ultraviolet detection condition.
And 204, determining a target UV sensor according to the acceleration data, wherein the target UV sensor is one of the first UV sensor and the second UV sensor.
The target UV sensor is a UV sensor determined to detect ultraviolet rays, and the wearable device may select one of the first UV sensor and the second UV sensor as the target UV sensor according to the acceleration data. Specifically, the wearable device is generally exposed to ultraviolet radiation in a space environment due to sunlight, the wearable device can analyze one side of the first side and the second side, which is exposed to a larger sunlight radiation area, according to the acceleration data, and the UV sensor corresponding to the side, which is exposed to the larger sunlight radiation area, is determined as the target UV sensor. Namely, the side corresponding to the target UV sensor is the side with larger radiation area of the wearable device.
Optionally, it may be determined according to the irradiation direction of the sunlight that the altitude corresponding to the side of the wearable device that is exposed to a larger area of the sunlight is generally higher than the other side, and the wearable device may also analyze the altitudes of the first side and the second side according to the acceleration data, and use the UV sensor corresponding to the side with the higher altitude as the target UV sensor.
In one embodiment, the wearable device may further preset an acceleration interval when the first UV sensor is used as a target sensor, and if the currently detected acceleration data is located in the acceleration interval, the first UV sensor is used as the target UV sensor; optionally, if the currently detected acceleration data is not within the acceleration interval, the second UV sensor is taken as the target UV sensor. The preset acceleration interval may be determined according to a direction of the acceleration sensor in the wearable device relative to the gravitational acceleration, which is not limited herein.
And step 206, detecting the ultraviolet index of the environment where the wearable device is located through the target UV sensor.
The uv index is used to characterize the level of exposure to solar uv radiation. Generally, a higher uv index indicates a greater radiation intensity and greater damage to the skin and eyes of the human body. The wearable device detects the ultraviolet index of the environment where the wearable device is located through the target UV sensor. Specifically, the UV sensor may convert the received ultraviolet signal into a measurable electrical signal by using the photosensitive element, and the ultraviolet index of the environment where the wearable device is located may be determined according to the magnitude of the electrical signal.
The wearable device may output the detected ultraviolet index. Optionally, the wearable device may output indication information of different degrees according to the size of the ultraviolet index. For example, when the ultraviolet index is in the interval of 0-4, a pop-up window with green background color is adopted to display the ultraviolet index; when the ultraviolet index is in the interval of 4-6, displaying the ultraviolet index by adopting a pop-up window with yellow background color; and when the ultraviolet index is more than 6, displaying the ultraviolet index and the like by using a pop-up window with red background color. Optionally, the wearable device may also output the ultraviolet index by using voice information with different volumes, or voice information with different repetition times, or the like.
In one embodiment, the wearable device is preset with an index threshold, and the wearable device may output the indication information when determining that the detected ultraviolet index exceeds the index threshold. Wherein, the index threshold value is the ultraviolet index corresponding to the condition that the skin or eyes of the human body are injured.
According to the embodiment of the application, the acceleration data of the wearable device can be detected through the acceleration sensor, one of the first UV sensor and the second UV sensor is selected as the target UV sensor according to the acceleration data, and the ultraviolet index of the environment where the wearable device is located is detected through the target UV sensor. Because wearable equipment is equipped with two UV sensors, can select one of them as target UV sensor according to acceleration data, carry out the detection of ultraviolet index according to target UV sensor, can improve the accuracy that ultraviolet detected.
In one embodiment, step 204 of the provided ultraviolet detection method may include: acquiring a first data interval corresponding to the first side face and a second data interval corresponding to the second side face, wherein the data interval of the first data interval in the gravity direction is opposite to the data interval of the second data interval in the gravity direction; when the acceleration data are in a first data interval, taking the first UV sensor as a target UV sensor; and when the acceleration data is in a second data interval, taking the second UV sensor as a target UV sensor.
The acceleration sensor may be configured to detect acceleration data of the wearable device in a direction of gravity and two horizontal directions perpendicular to each other. Optionally, the first data interval and the second data interval that the wearable device may preset may include acceleration data intervals in three directions, respectively; in some embodiments, the first data interval and the second data interval may also include only the acceleration data interval in the gravity direction. The data interval of the first data interval in the gravity direction is opposite to the data interval of the second data interval in the gravity direction. For example, when the data interval of the first data interval in the gravity direction is less than-9.8, the data interval of the second data interval in the gravity direction may be greater than 9.8.
The first data interval and the second data interval may be set before the wearable device leaves a factory, or may be determined by guiding a user to perform gravity detection on the wearable device. Specifically, when the acceleration data is in the first data interval, the distance between the first side surface of the wearable device and the ground is greater than the distance between the second side surface of the wearable device and the ground; when the acceleration data is in the second data interval, the distance between the second side face of the wearable device and the ground is larger than the distance between the first side face of the wearable device and the ground.
Fig. 3(a) is a schematic diagram of a wearable device in one embodiment. As shown in fig. 3(a), the body of the wearable device includes a first side 310 and a second side 320; when the wearable device is placed as shown in fig. 3(a), the gravity direction is the Z axis, and two horizontal directions perpendicular to each other are respectively used as the X axis and the Y axis to establish a coordinate system; at this time, the acceleration data corresponding to the wearable device is (0,0, 9.8), the distance between the first side surface 310 and the ground is greater than the distance between the second side surface 320, and the first UV sensor provided on the first side surface 310 may be used as the target UV sensor; when the wearable device is placed as in fig. 3(b), the acceleration data corresponding to the wearable device is (0,0, -9.8), and the wearable device may use the second UV sensor provided on the second side 320 as the target UV sensor.
By acquiring a first data interval corresponding to the first side face and a second data interval corresponding to the second side face, when the acceleration data is in the first data interval, the first UV sensor is used as the target UV sensor, and when the acceleration data is in the second data interval, the second UV sensor is used as the target UV sensor, so that the accuracy of the target UV sensor can be improved.
In one embodiment, the provided ultraviolet detection method may further include detecting ultraviolet indexes of an environment in which the wearable device is located by the first UV sensor and the second UV sensor, respectively, and outputting a maximum ultraviolet index of the two obtained ultraviolet indexes when it is determined that the wearable device is in the horizontal placement state according to the acceleration data.
The wearable device is placed horizontally, that is, the distance between the first side surface and the ground is equal to the distance between the second side surface and the ground, and the accuracy of ultraviolet detection of the first UV sensor and the second UV sensor cannot be determined at this time. Wearable equipment can be when being in the horizontal placement state, detects the ultraviolet index of environment in place respectively through first UV sensor and second UV sensor simultaneously to the biggest ultraviolet index in two ultraviolet indexes that the output obtained can improve the accuracy of ultraviolet index.
In an embodiment, before performing step 202, the provided ultraviolet detection method may further include: detecting the ambient light brightness of the environment where the wearable equipment is located; when the ambient light brightness exceeds the brightness threshold, the operation of detecting the acceleration data of the wearable device through the acceleration sensor is executed.
The wearable device detects the ambient light brightness of the environment, and specifically, the wearable device may include a brightness sensor, and the brightness sensor may convert the received light signal into a corresponding electrical signal according to the brightness of the received light signal, so as to obtain the ambient light brightness. The wearable device has a large difference between the indoor ambient light brightness and the outdoor ambient light brightness. The brightness threshold may be determined according to the ambient light brightness detected by the wearable device in a low-light environment, and is used for distinguishing an indoor environment or an outdoor lighting environment. Typically, the ambient light level of a wearable device in a room is often in the range of hundreds to 2000 lux; and the ambient light brightness under outdoor illumination is often more than 2000lux, even can reach tens of thousands lux. The brightness threshold may be 2000lux, 3000lux, 4000lux, etc., without limitation.
When the ambient light brightness exceeds the brightness threshold, the wearable device is considered to be possibly irradiated by sunlight, and the wearable device can detect acceleration data of the wearable device through an acceleration sensor to determine that a target UV sensor performs ultraviolet detection; alternatively, when the ambient light level does not exceed the brightness threshold, the wearable device may be deemed not to be illuminated by sunlight, and the wearable device may not perform ultraviolet detection.
Through the environment luminance that acquires wearable equipment environment, when environment luminance surpassed the luminance threshold value, then through acceleration sensor detection wearable equipment's acceleration data to confirm that target UV sensor carries out ultraviolet ray and detect, can realize ultraviolet intelligent detection, do not need user manual start, and can reduce the consumption.
In an embodiment, before performing step 202, the method for detecting ultraviolet light may further include: acquiring the current moment of the wearable device; when the current moment is within the first period, the operation of detecting the acceleration data of the wearable device through the acceleration sensor is executed.
The first time interval is the time interval corresponding to the day. For example, the first period may be 5 hours to 18 hours, 6 hours to 19 hours, 5 hours to 30 minutes to 18 hours and 30 minutes, and the like, which is not limited herein. The first period of time may be a preset period of time of the wearable device. Optionally, in an embodiment, the wearable device may also locate current location information, obtain sunrise time and sunset time corresponding to the current location information, and determine a period between the sunrise time and the sunset time as the first period.
The wearable device can detect whether the current moment is in the first time period or not in real time, and when the current moment is determined to be in the first time period, acceleration data of the wearable device are detected through the acceleration sensor so as to determine that the target UV sensor performs ultraviolet detection.
Wearable equipment can not receive the sunlight irradiation when night, and wearable equipment can not carry out ultraviolet ray detection. Through the present moment who obtains wearable equipment, when being in first period at the present moment, then carry out ultraviolet ray and detect, can realize ultraviolet intelligent detection to reduce the consumption.
FIG. 4 is a flow chart of a method for UV detection in one embodiment. As shown in fig. 4, in one embodiment, a method for detecting ultraviolet light is provided, comprising:
step 402, obtaining a current moment of the wearable device.
And step 404, detecting the ambient light brightness of the environment where the wearable device is located when the current time is within the first time period.
And 406, detecting acceleration data of the wearable device through the acceleration sensor when the brightness of the environment light exceeds a brightness threshold.
Step 408, determining a target UV sensor from the acceleration data, the target UV sensor being one of the first UV sensor and the second UV sensor.
And step 410, detecting the ultraviolet index of the environment where the wearable device is located through the target UV sensor.
The current moment of the wearable device is detected firstly, when the current moment is determined to be in the first time period, the ambient light brightness of the environment where the wearable device is located is detected, whether ultraviolet detection is carried out or not is determined according to the ambient light brightness, and power consumption of the brightness sensor can be reduced.
FIG. 5 is a flow chart of detecting UV index in one embodiment. In one embodiment, the process of detecting the ultraviolet index of the environment where the wearable device is located by the target UV sensor in the provided ultraviolet detection method may further include:
step 502, determining a target second time interval to which the current time belongs from a plurality of second time intervals divided by the first time interval.
The first period may be divided into a plurality of second periods, such as two, 3, 4, etc., which are not limited herein. For example, the first time period is 6 hours to 18 hours, and the second time period may be 6 hours to 9 hours, 9 hours to 14 hours, 14 hours to 18 hours, etc., which are not limited herein. Generally, the intensity of the ultraviolet light radiated by the sunlight is different in the different second periods. The wearable device may determine a target second period to which the current time belongs from a plurality of second periods divided by the first period.
Step 504, according to the association relationship between the preset second time period and the frequency, a target frequency corresponding to the target second time period is obtained.
Frequency refers to the frequency at which the wearable device detects the ultraviolet index through the target UV sensor. The wearable device is preset with an association relationship between the second time period and the frequency. Generally, the ultraviolet intensity of the midday radiation is higher than the ultraviolet intensity of other times, and in the preset association relationship between the second time period and the frequency of the wearable device, the closer the second time period is to the midday, the higher the corresponding frequency is. For example, when the second period is 7 to 10, the corresponding frequency may be 3 times per hour; when the second period is 10 to 14, the corresponding frequency may be 6 times per hour; when the second period is 14 to 19, the corresponding frequency may be 2 times per hour, etc., and is not limited herein.
The wearable device may obtain a target frequency corresponding to the target second time period according to an association relationship between the preset second time period and the frequency.
And step 506, detecting the ultraviolet index of the environment where the wearable device is located according to the target frequency through the target UV sensor.
The wearable device can detect the ultraviolet index of the environment where the wearable device is located through the target UV sensor according to the target frequency.
Optionally, the wearable device may further re-determine the target UV sensor according to the target frequency, that is, detect acceleration data of the wearable device according to the target frequency through the acceleration sensor, to determine the target UV sensor according to the acceleration data, and detect an ultraviolet index of an environment where the wearable device is located through the target UV sensor.
The first time period is divided into a plurality of second time periods, the corresponding target frequency is obtained according to the target second time period of the current moment, the ultraviolet index is detected through the target UV sensor according to the target frequency, the timeliness of ultraviolet detection in partial time periods can be guaranteed, and meanwhile, low-frequency detection is adopted in partial time periods, so that the power consumption can be reduced.
In one embodiment, the process of detecting the ultraviolet index of the environment where the wearable device is located by the target UV sensor in the provided ultraviolet detection method may further include: when the current moment is not within the target time period, detecting the ultraviolet index of the environment where the wearable device is located through a target UV sensor according to a first frequency, wherein the first time period comprises the target time period; when the current moment is within the target time period, detecting the ultraviolet index of the environment where the wearable equipment is located through the target UV sensor according to the second frequency; the second frequency is greater than the first frequency, and the ultraviolet detection can be carried out by adopting higher frequency in a target time period, so that the timeliness of the ultraviolet detection can be improved. Wherein, the target time interval corresponds to the time interval with larger ultraviolet radiation intensity. For example, the target period may be 10 hours to 15 hours, 11 hours to 14 hours, 9 hours to 30 minutes to 16 hours, etc., without limitation.
In one embodiment, after detecting the ultraviolet index of the wearable device environment by the target UV sensor in the provided ultraviolet detection method, the method may further include: when the ultraviolet index is greater than or equal to the index threshold, determining the ultraviolet level corresponding to the ultraviolet index; and outputting protection information corresponding to the ultraviolet level.
The index threshold is an ultraviolet index corresponding to the condition that the skin or eyes of a human body are at risk of injury. That is, it is considered that when the ultraviolet index is smaller than the ultraviolet threshold, the human body is not damaged by the ultraviolet radiation. The ultraviolet index can be divided into different grades, and the damage intensity of the different grades to human bodies is different. The wearable device can preset protection information corresponding to different ultraviolet levels, and outputs corresponding protection information according to the ultraviolet level corresponding to the currently detected ultraviolet index. For example, when the ultraviolet level is low, the corresponding protection information may need to wear sun caps and sunglasses, apply sunscreen lotion, etc.; when the ultraviolet level is higher, the corresponding protection information can be that long-sleeve clothes are worn or shade needs to be found. Optionally, the wearable device may also output protection information including parameters of the sunscreen that needs to be applied according to the ultraviolet level.
FIG. 6 is a graph illustrating UV dose versus sunburn time for one embodiment. As shown in fig. 6, the uv index is low between 3 and 4, which causes less damage to the human body; the UV index is of the medium magnitude between 4 and 6, and the sunburn time limit is 20 minutes. The wearable device may preset protection information corresponding to different ultraviolet levels provided in the map. When the ultraviolet index detected by the wearable device is larger than or equal to the index threshold, the protection information corresponding to the ultraviolet level to which the ultraviolet index belongs is output, and the effectiveness of information reminding can be achieved.
It should be understood that although the steps in the flowcharts of fig. 2, 4, and 5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 4, and 5 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least some of the sub-steps or stages of other steps.
Fig. 7 is a block diagram showing the structure of an ultraviolet detection device according to an embodiment. As shown in fig. 7, the ultraviolet detection apparatus includes:
an acceleration detection module 702, configured to detect acceleration data of the wearable device through an acceleration sensor.
A sensor determination module 704 for determining a target UV sensor from the acceleration data, the target UV sensor being at least one of the first UV sensor and the second UV sensor.
And an ultraviolet detection module 706, configured to detect, by the target UV sensor, an ultraviolet index of an environment in which the wearable device is located.
The ultraviolet detection device that this application embodiment provided can detect wearable equipment's acceleration data, selects one of them as target UV sensor according to acceleration data, carries out the detection of ultraviolet index according to target UV sensor, can improve the accuracy that ultraviolet detected.
In one embodiment, the sensor determining module 704 may be further configured to obtain a first data interval corresponding to the first side and a second data interval corresponding to the second side, where the data interval of the first data interval in the gravity direction is opposite to the data interval of the second data interval in the gravity direction; when the acceleration data are in a first data interval, taking the first UV sensor as a target UV sensor; and when the acceleration data is in a second data interval, taking the second UV sensor as a target UV sensor.
In one embodiment, the ultraviolet detection module 706 may be further configured to detect ultraviolet indexes of environments where the wearable device is located through the first UV sensor and the second UV sensor, respectively, and output a maximum ultraviolet index of the two obtained ultraviolet indexes when it is determined that the wearable device is in the horizontal placement state according to the acceleration data.
In one embodiment, the acceleration detection module 702 may also be configured to detect an ambient light level of an environment in which the wearable device is located; when the ambient light brightness exceeds the brightness threshold, acceleration data of the wearable device is detected through the acceleration sensor.
In one embodiment, the acceleration detection module 702 may also be used to obtain the current time of the wearable device; when the current moment is within the first time period, acceleration data of the wearable device are detected through the acceleration sensor.
In one embodiment, the ultraviolet detection module 706 may be further configured to determine a target second time period to which the current time belongs from a plurality of second time periods divided by the first time period; acquiring a target frequency corresponding to a target second time period according to the incidence relation between the preset second time period and the frequency; and detecting the ultraviolet index of the environment where the wearable device is located according to the target frequency through the target UV sensor.
In one embodiment, the provided ultraviolet detection apparatus further includes a protection information reminding module 708, where the protection information reminding module 708 is configured to determine an ultraviolet level corresponding to the ultraviolet index when the ultraviolet index is greater than or equal to the index threshold; and outputting protection information corresponding to the ultraviolet level.
The division of each module in the ultraviolet detection device is only for illustration, and in other embodiments, the ultraviolet detection device may be divided into different modules as needed to complete all or part of the functions of the ultraviolet detection device.
For specific limitations of the ultraviolet detection device, reference may be made to the above limitations of the ultraviolet detection method, which are not described herein again. All or part of each module in the ultraviolet detection device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The implementation of each module in the ultraviolet detection apparatus provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a wearable device. The program modules of the computer program may be stored on a memory of the wearable device. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides wearable equipment, which comprises a main body, wherein a first Ultraviolet (UV) sensor is arranged on the first side surface of the main body, and a second UV sensor is arranged on the second side surface of the main body; the main body further comprises a memory and a processor, wherein the memory stores a computer program, and the computer program causes the processor to execute the steps of the ultraviolet detection method when being executed by the processor.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the ultraviolet detection method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a method of ultraviolet light detection.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. The ultraviolet detection method is characterized by being applied to wearable equipment, wherein the wearable equipment comprises a main body, a first UV sensor is arranged on a first side surface of the main body, and a second UV sensor is arranged on a second side surface of the main body;
acquiring the current moment of the wearable device; when the current moment is within a first time period, detecting acceleration data of the wearable device through an acceleration sensor; the first time interval is a time interval between sunrise time and sunset time corresponding to the current position information;
acquiring a first data interval corresponding to the first side surface and a second data interval corresponding to the second side surface, wherein the first data interval and the second data interval respectively comprise acceleration data intervals in three directions, and the data interval of the first data interval in the gravity direction is opposite to the data interval of the second data interval in the gravity direction;
when the acceleration data are in the first data interval, the first UV sensor is used as a target UV sensor; when the acceleration data are in the second data interval, taking the second UV sensor as the target UV sensor;
detecting, by the target UV sensor, an ultraviolet index of an environment in which the wearable device is located.
2. The method of claim 1, further comprising:
when the wearable device is determined to be in a horizontal placement state according to the acceleration data, the first UV sensor and the second UV sensor are used for respectively detecting the ultraviolet indexes of the environment where the wearable device is located, and the maximum ultraviolet index of the two obtained ultraviolet indexes is output.
3. The method of claim 1, wherein prior to detecting the acceleration data of the wearable device via the acceleration sensor, further comprising:
detecting the ambient light brightness of the environment where the wearable device is located;
when the ambient light brightness exceeds a brightness threshold, the operation of detecting the acceleration data of the wearable device through the acceleration sensor is executed.
4. The method of claim 1, wherein the detecting, by the target UV sensor, the UV index of the environment in which the wearable device is located comprises:
determining a target second time interval to which the current time belongs from a plurality of second time intervals divided by the first time interval;
acquiring a target frequency corresponding to the target second time period according to the incidence relation between the preset second time period and the frequency;
detecting, by the target UV sensor, an ultraviolet index of an environment in which the wearable device is located according to the target frequency.
5. The method of claim 1, wherein a target period is one of the first periods, and wherein the detecting, by the target UV sensor, the UV index of the environment in which the wearable device is located comprises:
when the current moment is not in the target time period, detecting an ultraviolet index of the environment where the wearable device is located through the target UV sensor according to a first frequency;
when the current moment is within the target time period, detecting an ultraviolet index of the environment where the wearable device is located through the target UV sensor according to a second frequency; the second frequency is higher than the first frequency.
6. The method of any of claims 1-5, further comprising, after detecting the ultraviolet index of the environment of the wearable device by the target UV sensor:
when the ultraviolet index is greater than or equal to an index threshold value, determining the ultraviolet level corresponding to the ultraviolet index;
and outputting the protection information corresponding to the ultraviolet level.
7. The utility model provides an ultraviolet detection device which characterized in that is applied to wearable equipment, wearable equipment includes the main part, the first side of main part is equipped with first UV sensor, and the second side is equipped with second UV sensor, the device includes:
the acceleration detection module is used for acquiring the current moment of the wearable device; when the current moment is within a first time period, detecting acceleration data of the wearable device through an acceleration sensor; the first time interval is a time interval between sunrise time and sunset time corresponding to the current position information;
the sensor determining module is used for acquiring a first data interval corresponding to a first side surface and a second data interval corresponding to a second side surface, wherein the first data interval and the second data interval respectively comprise acceleration data intervals in three directions, and the data interval of the first data interval in the gravity direction is opposite to the data interval of the second data interval in the gravity direction; when the acceleration data are in the first data interval, taking a first UV sensor as a target UV sensor; when the acceleration data are in the second data interval, taking a second UV sensor as the target UV sensor;
and the ultraviolet detection module is used for detecting the ultraviolet index of the environment where the wearable device is located through the target UV sensor.
8. The apparatus of claim 7, wherein the ultraviolet detection module is further configured to detect ultraviolet indexes of environments in which the wearable device is located through the first UV sensor and the second UV sensor, respectively, and output a maximum ultraviolet index of the two obtained ultraviolet indexes when it is determined that the wearable device is in a horizontal placement state according to the acceleration data.
9. A wearable device comprises a main body, wherein a first UV sensor is arranged on a first side face of the main body, and a second UV sensor is arranged on a second side face of the main body; the body further comprises a memory in which a computer program is stored and a processor, the computer program, when executed by the processor, causing the processor to perform the steps of the ultraviolet detection method of any one of claims 1 to 6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN201910933427.XA 2019-09-29 2019-09-29 Ultraviolet detection method and device, wearable device and computer-readable storage medium Active CN112577597B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910933427.XA CN112577597B (en) 2019-09-29 2019-09-29 Ultraviolet detection method and device, wearable device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910933427.XA CN112577597B (en) 2019-09-29 2019-09-29 Ultraviolet detection method and device, wearable device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN112577597A CN112577597A (en) 2021-03-30
CN112577597B true CN112577597B (en) 2022-09-09

Family

ID=75111044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910933427.XA Active CN112577597B (en) 2019-09-29 2019-09-29 Ultraviolet detection method and device, wearable device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN112577597B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003208128A (en) * 2002-01-16 2003-07-25 Sanyo Electric Co Ltd Display device
JP2014064222A (en) * 2012-09-24 2014-04-10 Kyocera Corp Mobile terminal, brightness control program, and brightness control method
AU2014100820A4 (en) * 2013-07-17 2014-08-21 Ecob, Stephen Edward MR Ultra Violet radiation sensing system
KR20160045320A (en) * 2014-10-17 2016-04-27 삼성전자주식회사 Method For Measuring Ultraviolet Ray and Electronic Device Using The Same
US10132680B1 (en) * 2015-09-25 2018-11-20 Apple Inc. UV dosimetry and exposure alert
WO2017088154A1 (en) * 2015-11-26 2017-06-01 华为技术有限公司 Profile mode switching method
KR102504308B1 (en) * 2016-03-02 2023-02-28 삼성전자주식회사 Method and terminal for controlling brightness of screen and computer-readable recording medium

Also Published As

Publication number Publication date
CN112577597A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
US10845872B2 (en) Eye-gaze tracker, eye-gaze tracking method, and recording medium
US10132680B1 (en) UV dosimetry and exposure alert
US9927294B2 (en) UV dosimetry system with sensor data correction
US20160300471A1 (en) Electronic apparatus and ultraviolet avoidance information providing method thereof
US11414923B2 (en) Light-shielding device and light-shielding method
US9662061B2 (en) Ultraviolet camera and display station for capturing reflected ultraviolet light
CN108700458B (en) System for calculating personal solar radiation exposure
EP2947970A2 (en) Method and apparatus for controlling electrical power usage based on exact sun elevation angle and measured geographical location
CN107948308B (en) Intelligent real-time dynamic display brightness adjusting system and method for display device
US20180266880A1 (en) Ultraviolet radiation monitoring apparatus, system having the same, and method thereof
CN111447413B (en) High-temperature monitoring method and device for preventing sun burn and storage device
CN102692271B (en) Sky visible light images based direct solar radiation intensity measurement method and device
US20160061657A1 (en) Ultraviolet Monitoring Device
CN105424188A (en) System and method of estimating spectral contributions in ambient light and correcting field of view errors
CN103017896B (en) Illumination photometry method and illumination photometry device
KR20190020578A (en) Method for processing image based on external light and electronic device supporting the same
Salmerón-Campillo et al. Novel method of remotely monitoring the face-device distance and face illuminance using mobile devices: a pilot study
CN112577597B (en) Ultraviolet detection method and device, wearable device and computer-readable storage medium
KR102489072B1 (en) Electronic device for measuring illuminance and operating method thereof
US10082423B2 (en) Method, electronic device and system for monitoring a skin surface condition
CN106352975B (en) Wearable dosage test equipment of heralding daybreak
US10145732B1 (en) Systems and methods for measuring ultraviolet exposure
CN109219209A (en) Accumulate light amount estimation method and device, storage medium and health management system arranged
CN110069124A (en) Double mode Eye-controlling focus method and system
CN106652971B (en) A kind of terminal screen and brightness control system, brightness control method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant