CN109243375B - Device control method, device, storage medium and electronic device - Google Patents

Device control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN109243375B
CN109243375B CN201810968217.XA CN201810968217A CN109243375B CN 109243375 B CN109243375 B CN 109243375B CN 201810968217 A CN201810968217 A CN 201810968217A CN 109243375 B CN109243375 B CN 109243375B
Authority
CN
China
Prior art keywords
light
quantity value
light quantity
blue light
user
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
CN201810968217.XA
Other languages
Chinese (zh)
Other versions
CN109243375A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810968217.XA priority Critical patent/CN109243375B/en
Publication of CN109243375A publication Critical patent/CN109243375A/en
Application granted granted Critical
Publication of CN109243375B publication Critical patent/CN109243375B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • G09G3/3413Details of control of colour illumination sources
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0666Adjustment of display parameters for control of colour parameters, e.g. colour temperature

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the application discloses a device control method and device, a computer readable storage medium and an electronic device, wherein the electronic device can acquire a first light quantity value of blue light released by the electronic device to a user, judge whether the acquired first light quantity value reaches a preset light quantity value, and control the electronic device to perform blue light filtering if the first light quantity value reaches the preset light quantity value.

Description

Device control method, device, storage medium and electronic device
Technical Field
The present application relates to the field of display technologies, and in particular, to a device control method, apparatus, storage medium, and electronic device.
Background
At present, electronic devices such as mobile phones and tablet computers are developing towards large screens, and larger screens provide better visual effects and release more blue light harmful to human eyes. At present, how to reduce the damage of blue light to human eyes becomes a topic of interest in the field. In the related art, an eye protection mode is provided for an electronic device, and the electronic device filters blue light in the eye protection mode to reduce the blue light released to a user as much as possible.
Disclosure of Invention
The embodiment of the application provides an equipment control method and device, a storage medium and electronic equipment, and can improve the flexibility of blue light filtering of the electronic equipment.
In a first aspect, an embodiment of the present application provides an apparatus control method, which is applied to an electronic apparatus, and the apparatus control method includes:
acquiring a first light quantity value of blue light released by the electronic equipment to a user;
judging whether the first light quantity value reaches a preset light quantity value or not;
and if the first light quantity value reaches the preset light quantity value, controlling the electronic equipment to filter blue light.
In a second aspect, an embodiment of the present application provides an apparatus control device, which is applied to an electronic apparatus, and includes an obtaining module, a determining module, and a control module,
the acquisition module is used for acquiring a first light quantity value of blue light released by the electronic equipment to a user;
the judging module is used for judging whether the first light quantity value reaches a preset light quantity value or not;
the control module is configured to control the electronic device to perform blue light filtering if the first light quantity value reaches the preset light quantity value.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the steps in the device control method provided in the present application.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory has a computer program, and the processor is configured to execute the steps in the device control method according to the embodiment of the present application by calling the computer program.
The electronic equipment in the embodiment of the application can acquire the first light quantity value of the blue light released by the electronic equipment to a user, judge whether the acquired first light quantity value reaches the preset light quantity value, and control the electronic equipment to filter the blue light if the first light quantity value reaches the preset light quantity value.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an apparatus control method according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram illustrating a light value interval division according to an embodiment of the present application.
Fig. 3 is a schematic diagram of the division of an age group in the embodiment of the present application.
Fig. 4 is a schematic diagram illustrating an electronic device determining whether a user uses another electronic device in an embodiment of the present application.
Fig. 5 is another schematic flow chart of an apparatus control method according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the device control method may be the device control apparatus provided in the embodiment of the present application, or an electronic device integrated with the device control apparatus, where the device control apparatus may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a schematic flow chart of an apparatus control method according to an embodiment of the present disclosure. As shown in fig. 1, a flow of the device control method provided in the embodiment of the present application may be as follows:
101, a first light value of blue light released by an electronic device to a user is obtained.
In the embodiment of the application, when the electronic device displays on the screen and a user exists in the visual range of the screen, the electronic device accumulates the amount of blue light released by the screen, acquires the amount of blue light released to the user in an accumulated manner, and records the amount of blue light as a first amount of blue light.
In the embodiment of the present invention, as to how the electronic device detects whether a user exists in the visual range of the screen, a person skilled in the art can select a suitable user identification scheme according to actual needs, which is not specifically limited in the embodiment of the present invention.
For example, the electronic device may capture a real-time image through a front-facing camera, perform face detection on the captured real-time image through a face recognition algorithm, and determine whether a user is present in a visual range of a screen according to a face detection result.
Optionally, when the electronic device accumulates the amount of blue light released by the screen, for any time, the screen content displayed by the screen may be analyzed to obtain the blue pixel included in the screen content, so as to obtain the amount of blue light released when the screen displays the screen content at the time, and thus, the first light amount value of blue light released by the electronic device to the user may be accumulated.
Optionally, when the electronic device accumulates the amount of blue light released by the screen, the electronic device may analyze the screen content displayed by the screen at a sampling time of any sampling period according to a preset sampling period to obtain a blue pixel included in the screen content, so as to obtain the amount of blue light released by the screen when the screen displays the screen content at the sampling time, further obtain the amount of blue light released by the screen to the user in the sampling period in an accumulated manner, and finally obtain the first amount of blue light released by the electronic device in the accumulated manner to the user.
In addition, it should be noted that blue light is part of visible light, visible light is a part of electromagnetic spectrum that can be perceived by human eyes, the visible spectrum has no precise range, and the range that different people can perceive is different, for example, some people can perceive electromagnetic waves with wavelengths between 400 nm and 760 nm, and other people can perceive electromagnetic waves with wavelengths between 380 nm and 780 nm. The electromagnetic wave with the wavelength between 400 nanometers and 500 nanometers is marked as commonly-called blue light, but the blue light is not harmful blue light, and the high-energy short-wave blue light with the wavelength within 400 nanometers to 450 nanometers is harmful to human eyes. The harm of the high-energy short-wave blue light to human bodies generally comprises the following three aspects:
firstly, the high-energy short-wave blue light has extremely high energy and can penetrate through the crystalline lens of human eyes to reach the retina, so that atrophy and even death of retinal pigment epithelial cells are caused. The death of retinal pigment epithelium will result in decreased or even complete loss of vision, which is irreversible.
Secondly, because the wavelength of the high-energy short-wave blue light is short, the focusing point of the high-energy short-wave blue light does not directly fall on the central position of the retina, but is positioned at a position which is closer to the front point of the retina. To be able to focus, the human eye is stressed for a long time, causing asthenopia.
Thirdly, the high-energy short-wave blue light can inhibit the secretion of melatonin of a human body, the melatonin is an important hormone influencing sleep, the melatonin can promote sleep and adjust time difference, and the insufficient secretion of the melatonin can cause low sleep quality of a user and even difficulty in falling asleep.
And 102, judging whether the first light quantity value reaches a preset light quantity value.
In the embodiment of the application, it is considered that the blue light is instantaneously acted on the human eyes, and the human eyes are not usually injured, but are injured only by continuously acting the blue light on the human eyes. Therefore, the electronic device is configured with a preset light value, and when the human eyes cumulatively receive the blue light of the preset light value, the human eyes are judged to be possibly damaged by the blue light.
Correspondingly, when the first light quantity value of the blue light which is released to the user by the electronic equipment in an accumulated mode is obtained, the electronic equipment judges whether the first light quantity value reaches a preset light quantity value, if the obtained first light quantity value reaches the preset light quantity value, blue light filtering is determined to be needed to prevent the blue light from damaging eyes of the user, and if the obtained first light quantity value does not reach the preset light quantity value, the light quantity value released to the user by the electronic equipment is continuously accumulated until the 'first light quantity value' reaches the preset light quantity value.
It should be noted that, in the embodiment of the present application, the value of the preset light quantity value is not specifically limited, and an empirical value may be obtained by a person skilled in the art according to actual needs.
103, if the first light value reaches the preset light value, the electronic device is controlled to perform blue light filtering.
In the embodiment of the application, when the electronic device determines that the first light quantity value of the blue light released by the electronic device to a user reaches the preset light quantity value, the electronic device is controlled to filter the blue light.
For example, the electronic device is configured with preset filtering strength for filtering blue light, the larger the preset filtering strength is, the higher the proportion of the electronic device for filtering the blue light is, and when the electronic device is used for filtering the blue light, the color temperature of the screen is adjusted according to the preset filtering strength, so that the purpose of filtering the blue light is achieved.
Therefore, the electronic equipment in the implementation of the application can acquire the first light quantity value of the blue light released by the electronic equipment to the user, judge whether the acquired first light quantity value reaches the preset light quantity value, and control the electronic equipment to filter the blue light if the acquired first light quantity value reaches the preset light quantity value.
In one embodiment, "controlling electronics to perform blue light filtering" includes:
(1) determining a light value interval in which the first light value is positioned;
(2) determining a first filtering intensity corresponding to the light quantity value interval according to a preset first blue light filtering strategy;
(3) and controlling the electronic equipment to filter the blue light according to the determined first filtering strength.
In the embodiment of the present application, a preset light value is used as a starting point, a plurality of light value intervals are divided (lengths of different light value intervals may be the same or different, which is not specifically limited in the embodiment of the present application), corresponding filtering intensities for blue light filtering are allocated to each of the divided light value intervals in advance, and a corresponding relationship between the light value interval and the filtering intensity is used as a first blue light filtering strategy, which is preset in the electronic device.
For example, referring to fig. 2, suppose that the light value intervals are divided into light value intervals of L1, L2, L3, and L4, wherein L1 uses the preset light value as a starting point, and the first blue light filtering strategy is: light value interval L1 corresponds to filtering intensity S1, light value interval L2 corresponds to filtering intensity S2, light value interval L3 corresponds to filtering intensity S3, light value interval L4 corresponds to filtering intensity S4, and so on. Correspondingly, when the electronic device performs blue light filtering, first determining a light value interval in which the first light value is located, if it is determined that the first light value is located in the light value interval L3, further determining, according to a preset first blue light filtering strategy, that the filtering intensity corresponding to the light value interval L3 is the filtering intensity S3, recording the filtering intensity S3 as the first filtering intensity, and finally controlling the electronic device to perform blue light filtering according to the determined first filtering intensity (i.e., the filtering intensity S3).
In one embodiment, the determining whether the first light quantity value reaches the preset light quantity value includes:
(1) acquiring age information of a user;
(2) determining a preset light quantity value corresponding to the age information according to the corresponding relation between the preset age information and the preset light quantity value;
(3) and judging whether the first light quantity value reaches a preset light quantity value corresponding to the age information.
It should be noted that, considering that users of different ages are affected by blue light differently, for example, in the age range of 0 to 2 years, about 70% to 80% of blue light can penetrate through the lens to reach the retina, in the age range of 2 to 10 years, about 60% to 70% of blue light can penetrate through the lens to reach the retina, and in the age range of 10 to 15 years, about 50% to 60% of blue light can penetrate through the lens to reach the retina, so that even though the electronic device emits blue light of the same amount, users of different ages receive different amounts of blue light.
In order to more accurately perform blue light filtering, in the embodiment of the present application, corresponding to different age groups, a corresponding preset light value is configured for triggering the electronic device to perform blue light filtering.
Correspondingly, when the electronic device judges whether the first light quantity value reaches the preset light quantity value, the electronic device can firstly acquire the age information of the user, then determine the preset light quantity value corresponding to the age information of the user according to the corresponding relation between the preset age information and the preset light quantity value, finally judge whether the first light quantity value reaches the preset light quantity value corresponding to the age information, and if so, determine that blue light filtering is needed. Wherein, the smaller the age, the smaller the corresponding preset light value.
For example, referring to fig. 3, it is assumed that 4 age groups are divided, which are Y1, Y2, Y3 and Y4, the age group Y1 corresponds to the preset light value PL1, the age group Y2 corresponds to the preset light value PL2, the age group Y3 corresponds to the preset light value PL3, and the age group Y4 corresponds to the preset light value PL 4. Correspondingly, when the electronic device determines whether the first light quantity value reaches the preset light quantity value, the electronic device may first obtain the age of the user, determine the age group in which the age is located, if the age of the user is located in the age group Y4, determine that the age information of the user corresponds to the preset light quantity value PL4, finally determine whether the first light quantity value reaches the preset light quantity value PL4, and if so, determine that blue light filtering is required.
In addition, it should be noted that how to acquire the age information of the user is not limited in the embodiment of the present application, and a person skilled in the art may select a suitable age acquisition scheme according to actual needs, for example, the age of the user may be identified by using a face recognition technology to obtain the age information of the user.
Optionally, "controlling the electronic device to perform blue light filtering," includes:
(1) determining a light value interval in which the first light value is positioned;
(2) acquiring a second blue light filtering strategy corresponding to the age information, and determining a second filtering strength corresponding to the light quantity value interval according to the second blue light filtering strategy;
(3) and controlling the electronic equipment to filter the blue light according to the determined second filtering strength.
In the embodiment of the present application, a plurality of light value intervals are respectively divided by taking each preset light value as a starting point, corresponding to different preset light values (the lengths of the different light value intervals may be the same or different, and the embodiment of the present application does not specifically limit this).
In addition, corresponding to different age information, the electronic device is provided with a blue light filtering strategy corresponding to each age information in the embodiment of the application, and the blue light filtering strategy is used for describing the corresponding relation between the light quantity value interval and the filtering strength.
Correspondingly, when the electronic device performs blue light filtering, firstly, according to the age information of the user, a light value interval division mode corresponding to the age information is obtained, and then, according to the light value interval division mode corresponding to the obtained age information, it is determined that the first light value is located at the light value. And then according to the corresponding relation between the age information and the blue light filtering strategy, acquiring the blue light filtering strategy corresponding to the age information, recording as a second blue light filtering strategy, and according to the corresponding relation between the light value interval and the filtering intensity described by the second blue light filtering strategy, determining the filtering intensity corresponding to the light value interval, and recording as a second filtering intensity. And finally, controlling the electronic equipment to filter the blue light according to the determined second filtering intensity.
In one embodiment, before determining whether the first light quantity value reaches the preset light quantity value, the method further includes:
(1) judging whether the user uses other electronic equipment or not;
(2) and if the user does not use other electronic equipment, judging whether the first light quantity value reaches a preset light quantity value or not.
It is easy to understand that, in a certain period of time, a user can use different electronic devices such as a mobile phone and a computer, and accordingly, when the user uses different electronic devices, the electronic devices all release blue light to the user.
Therefore, in order to further improve the accuracy of blue light filtering, after the electronic device obtains the first light value of blue light released by the electronic device to the user, it is further determined that the user has used other electronic devices, if the user has not used other electronic devices, the electronic device determines that the user only receives the blue light released by the user, and at this time, it is determined whether the first light value reaches a preset light value, so as to determine whether to perform blue light filtering.
Referring to fig. 4, when determining whether the user uses another electronic device, the electronic device may broadcast a predefined query request, and when receiving the query request, the other electronic device identifies whether the electronic device is used by the user according to the query request and returns an identification result to the electronic device.
In one embodiment, after determining whether the user has used another electronic device, the method further includes:
(1) if the user uses other electronic equipment, acquiring a second light quantity value of the blue light released by the other electronic equipment to the user;
(2) calculating a sum of the first light quantity value and the second light quantity value;
(3) and updating the first light quantity value into a sum value obtained by calculation, and executing judgment whether the first light quantity value reaches a preset light quantity value.
It should be noted that, referring to the same manner in which the electronic device obtains the light quantity value of the blue light released by the electronic device to the user in the embodiment of the present application, other electronic devices also accumulate the light quantity value of the blue light released by the electronic device to the user, and record the light quantity value of the blue light accumulated by other electronic devices and released to the user as the second light quantity value.
Correspondingly, in this embodiment of the application, when the electronic device determines that the user has used other electronic devices, the electronic device further obtains a second light value which is released to the user cumulatively by the other electronic devices used by the user, calculates a sum of the first light value and the second light value, updates the first light value to the sum, and then determines whether the updated first light value reaches a preset light value to determine whether to perform blue light filtering. For how to determine whether to perform the blue light filtering and how to perform the blue light filtering, reference may be specifically made to the related description above, and details thereof are not repeated here.
Optionally, the device control method provided in the embodiment of the present application further includes:
and sending a control instruction to the other electronic equipment, wherein the control instruction is used for instructing the other electronic equipment to carry out blue light filtering.
It is easy to understand that, since the user has accumulated the amount of received blue light which may harm the eyes, the electronic device prevents the blue light released by other electronic devices from damaging the eyes of the user by instructing other electronic devices to perform blue light filtering in addition to performing blue light filtering by itself.
Referring to fig. 5, fig. 5 is another schematic flow chart of an apparatus control method according to an embodiment of the present disclosure. As shown in fig. 5, a flow of the device control method provided in the embodiment of the present application may be as follows:
201. a first light value of blue light released by the electronic device to a user is obtained.
In the embodiment of the application, when the electronic device displays on the screen and a user exists in the visual range of the screen, the electronic device accumulates the amount of blue light released by the screen, acquires the amount of blue light released to the user in an accumulated manner, and records the amount of blue light as a first amount of blue light.
In the embodiment of the present invention, as to how the electronic device detects whether a user exists in the visual range of the screen, a person skilled in the art can select a suitable user identification scheme according to actual needs, which is not specifically limited in the embodiment of the present invention.
For example, the electronic device may capture a real-time image through a front-facing camera, perform face detection on the captured real-time image through a face recognition algorithm, and determine whether a user is present in a visual range of a screen according to a face detection result.
Optionally, when the electronic device accumulates the amount of blue light released by the screen, for any time, the screen content displayed by the screen may be analyzed to obtain the blue pixel included in the screen content, so as to obtain the amount of blue light released when the screen displays the screen content at the time, and thus, the first light amount value of blue light released by the electronic device to the user may be accumulated.
Optionally, when the electronic device accumulates the amount of blue light released by the screen, the electronic device may analyze the screen content displayed by the screen at a sampling time of any sampling period according to a preset sampling period to obtain a blue pixel included in the screen content, so as to obtain the amount of blue light released by the screen when the screen displays the screen content at the sampling time, further obtain the amount of blue light released by the screen to the user in the sampling period in an accumulated manner, and finally obtain the first amount of blue light released by the electronic device in the accumulated manner to the user.
202. And judging whether the user uses other electronic equipment, if so, turning to 203, and otherwise, turning to 204.
It is easy to understand that, in a certain period of time, a user can use different electronic devices such as a mobile phone and a computer, and accordingly, when the user uses different electronic devices, the electronic devices all release blue light to the user.
Correspondingly, after the electronic device acquires the first light quantity value of the blue light released by the electronic device to the user, the electronic device further judges that the user uses other electronic devices, and if the user does not use other electronic devices, the electronic device judges that the user only receives the blue light released by the user, and the process proceeds to 204.
Referring to fig. 4, when determining whether the user uses another electronic device, the electronic device may broadcast a predefined query request, and when receiving the query request, the other electronic device identifies whether the electronic device is used by the user according to the query request and returns an identification result to the electronic device.
203. And acquiring a second light quantity value of blue light released by other electronic equipment to a user, calculating the sum value of the first light quantity value and the second light quantity value, and updating the calculated sum value of the first light quantity value.
It should be noted that, referring to the same manner in which the electronic device obtains the light quantity value of the blue light released by the electronic device to the user in the embodiment of the present application, other electronic devices also accumulate the light quantity value of the blue light released by the electronic device to the user, and record the light quantity value of the blue light accumulated by other electronic devices and released to the user as the second light quantity value.
Correspondingly, in this embodiment of the application, when it is determined that the user has used other electronic devices, the electronic device further acquires a second light value which is released to the user cumulatively by the other electronic devices used by the user, calculates a sum of the first light value and the second light value, and updates the first light value to the sum.
204. And judging whether the first light quantity value reaches a preset light quantity value or not.
In the embodiment of the application, it is considered that the blue light is instantaneously acted on the human eyes, and the human eyes are not usually injured, but are injured only by continuously acting the blue light on the human eyes. Therefore, the electronic device is configured with a preset light value, and when the human eyes cumulatively receive the blue light of the preset light value, the human eyes are judged to be possibly damaged by the blue light.
Correspondingly, when the first light quantity value of the blue light which is released to the user by the electronic equipment in an accumulated mode is obtained, the electronic equipment judges whether the first light quantity value reaches a preset light quantity value, if the obtained first light quantity value reaches the preset light quantity value, blue light filtering is determined to be needed to prevent the blue light from damaging eyes of the user, and if the obtained first light quantity value does not reach the preset light quantity value, the light quantity value released to the user by the electronic equipment is continuously accumulated until the 'first light quantity value' reaches the preset light quantity value.
It should be noted that, in the embodiment of the present application, the value of the preset light quantity value is not specifically limited, and an empirical value may be obtained by a person skilled in the art according to actual needs.
205. And if the first light quantity value reaches a preset light quantity value, controlling the electronic equipment to filter the blue light.
In the embodiment of the application, when the electronic device determines that the first light quantity value of the blue light released by the electronic device to a user reaches the preset light quantity value, the electronic device is controlled to filter the blue light.
For example, the electronic device is configured with preset filtering strength for filtering blue light, the larger the preset filtering strength is, the higher the proportion of the electronic device for filtering the blue light is, and when the electronic device is used for filtering the blue light, the color temperature of the screen is adjusted according to the preset filtering strength, so that the purpose of filtering the blue light is achieved.
206. And sending a control instruction to other electronic equipment, wherein the control instruction is used for instructing the other electronic equipment to carry out blue light filtering.
It is easy to understand that, since the user has accumulated the amount of received blue light which may harm the eyes, the electronic device prevents the blue light released by other electronic devices from damaging the eyes of the user by instructing other electronic devices to perform blue light filtering in addition to performing blue light filtering by itself.
In one embodiment, an apparatus control device is also provided. Referring to fig. 6, fig. 6 is a schematic structural diagram of an apparatus control device 400 according to an embodiment of the present disclosure. The device control apparatus is applied to an electronic device, and includes an obtaining module 401, a determining module 402, and a control module 403, as follows:
the obtaining module 401 is configured to obtain a first light quantity value of blue light released by the electronic device to a user.
The determining module 402 is configured to determine whether the first light amount value reaches a preset light amount value.
The control module 403 is configured to control the electronic device to perform blue light filtering if the first light value reaches a preset light value.
In one embodiment, when controlling the electronic device to perform blue light filtering, the control module 403 may be configured to:
determining a light value interval in which the first light value is located;
determining a first filtering intensity corresponding to the light quantity value interval according to a preset first blue light filtering strategy;
the control electronics perform blue light filtering in accordance with the determined first filtering intensity.
In an embodiment, when determining whether the first light quantity value reaches the preset light quantity value, the determining module 402 may be configured to:
acquiring age information of a user;
determining a preset light quantity value corresponding to the age information according to the corresponding relation between the preset age information and the preset light quantity value;
and judging whether the first light quantity value reaches a preset light quantity value corresponding to the age information.
In one embodiment, when controlling the electronic device to perform blue light filtering, the control module 403 may be configured to:
determining a light value interval in which the first light value is located;
acquiring a second blue light filtering strategy corresponding to the age information, and determining second filtering strength corresponding to the light quantity value interval according to the second blue light filtering strategy;
and the control electronic equipment performs blue light filtering according to the determined second filtering intensity.
In an embodiment, before determining whether the first light quantity value reaches the preset light quantity value, the determining module 402 may be configured to:
judging whether the user uses other electronic equipment or not;
and if the user does not use other electronic equipment, judging whether the first light quantity value reaches a preset light quantity value or not.
In an embodiment, after determining whether the user uses another electronic device, the determining module 402 may be further configured to:
calculating a sum of the first light quantity value and the second light quantity value;
and updating the first light quantity value into a sum value obtained by calculation, and judging whether the first light quantity value reaches a preset light quantity value or not.
In an embodiment, the control module 403 may be further configured to:
and sending a control instruction to the other electronic equipment, wherein the control instruction is used for instructing the other electronic equipment to carry out blue light filtering.
The steps executed by each module in the device control apparatus 400 may refer to the method steps described in the above method embodiments. The device control apparatus 400 may be integrated into an electronic device, such as a mobile phone, a tablet computer, etc.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, the device control apparatus 400 of the present embodiment may first obtain, by the obtaining module 401, a first light quantity value of the blue light released by the electronic device to the user. Then, the determining module 402 determines whether the obtained first light quantity value reaches a preset light quantity value, and if the first light quantity value reaches the preset light quantity value, the control module 403 controls the electronic device to perform blue light filtering, so that the electronic device can determine whether blue light filtering is required according to the light quantity value of blue light released to a user, and the electronic device can flexibly perform blue light filtering.
In an embodiment, an electronic device is also provided. Referring to fig. 7, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
a first light value of blue light released by the electronic device to a user is obtained.
And judging whether the first light quantity value reaches a preset light quantity value or not.
And if the first light quantity value reaches a preset light quantity value, controlling the electronic equipment to filter the blue light.
Referring to fig. 8, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The power supply 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 8, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In some embodiments, when controlling the electronic device to perform blue light filtering, the processor 501 may perform the following steps:
determining a light value interval in which the first light value is located;
determining a first filtering intensity corresponding to the light quantity value interval according to a preset first blue light filtering strategy;
the control electronics perform blue light filtering in accordance with the determined first filtering intensity.
In some embodiments, in determining whether the first light amount value reaches the preset light amount value, the processor 501 may perform the following steps:
acquiring age information of a user;
determining a preset light quantity value corresponding to the age information according to the corresponding relation between the preset age information and the preset light quantity value;
and judging whether the first light quantity value reaches a preset light quantity value corresponding to the age information.
In some embodiments, when controlling the electronic device to perform blue light filtering, the processor 501 may perform the following steps:
determining a light value interval in which the first light value is located;
acquiring a second blue light filtering strategy corresponding to the age information, and determining second filtering strength corresponding to the light quantity value interval according to the second blue light filtering strategy;
and the control electronic equipment performs blue light filtering according to the determined second filtering intensity.
In some embodiments, before determining whether the first light quantity value reaches the preset light quantity value, the processor 501 may further perform the following steps:
judging whether the user uses other electronic equipment or not;
and if the user does not use other electronic equipment, judging whether the first light quantity value reaches a preset light quantity value or not.
In some embodiments, after determining whether the user has used another electronic device, the processor 501 may further perform the following steps:
if the user uses other electronic equipment, acquiring a second light quantity value of the blue light released by the other electronic equipment to the user;
calculating a sum of the first light quantity value and the second light quantity value;
and updating the first light quantity value into a sum value obtained by calculation, and judging whether the first light quantity value reaches a preset light quantity value or not.
In some embodiments, processor 501 may also perform the following steps:
and sending a control instruction to the other electronic equipment, wherein the control instruction is used for instructing the other electronic equipment to carry out blue light filtering.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program runs on a computer, the computer program causes the computer to execute the device control method in any one of the above embodiments, such as:
a first light value of blue light released by the electronic device to a user is obtained.
And judging whether the first light quantity value reaches a preset light quantity value or not.
And if the first light quantity value reaches a preset light quantity value, controlling the electronic equipment to filter the blue light.
In the embodiment of the present application, the computer readable storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the device control method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the device control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the device control method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, etc.
In the device control apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a non-volatile computer-readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a device control method, apparatus, storage medium and electronic device provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. An apparatus control method applied to an electronic apparatus, the apparatus control method comprising:
when a user exists in the visual range of the electronic equipment, acquiring a first light quantity value of blue light released by the electronic equipment to the user;
judging whether the user uses other electronic equipment or not;
if the user uses other electronic equipment, acquiring a second light quantity value of the blue light released by the other electronic equipment to the user;
calculating a sum of the first and second light quantity values and updating the first light quantity value to the sum;
judging whether the first light quantity value reaches a preset light quantity value or not;
and if the first light quantity value reaches the preset light quantity value, controlling the electronic equipment to carry out blue light filtering, and sending a control instruction to the other electronic equipment, wherein the control instruction is used for indicating the other electronic equipment to carry out blue light filtering.
2. The device control method of claim 1, wherein the controlling the electronic device to perform blue light filtering comprises:
determining a light value interval in which the first light value is located;
determining a first filtering intensity corresponding to the light quantity value interval according to a preset first blue light filtering strategy;
and controlling the electronic equipment to filter the blue light according to the first filtering intensity.
3. The device control method according to claim 1, wherein the determining whether the first light amount value reaches a preset light amount value comprises:
acquiring age information of the user;
determining a preset light quantity value corresponding to the age information according to the corresponding relation between the preset age information and the preset light quantity value;
and judging whether the first light quantity value reaches a preset light quantity value corresponding to the age information.
4. The device control method of claim 3, wherein the controlling the electronic device to perform blue light filtering comprises:
determining a light value interval in which the first light value is located;
acquiring a second blue light filtering strategy corresponding to the age information, and determining second filtering strength corresponding to the light quantity value interval according to the second blue light filtering strategy;
and controlling the electronic equipment to filter the blue light according to the second filtering intensity.
5. The equipment control device is applied to electronic equipment and is characterized by comprising an acquisition module, a judgment module and a control module,
the obtaining module is used for obtaining a first light quantity value of blue light released by the electronic equipment to a user when the user exists in the visible range of the electronic equipment;
the judging module is configured to judge whether the user has used another electronic device, and if the user has used another electronic device, obtain a second light amount value of blue light released by the another electronic device to the user, calculate a sum of the first light amount value and the second light amount value, and update the first light amount value to the sum; and
judging whether the first light quantity value reaches a preset light quantity value or not;
the control module is configured to control the electronic device to perform blue light filtering if the first light quantity value reaches the preset light quantity value.
6. A computer-readable storage medium, on which a computer program is stored, which, when run on a computer, causes the computer to perform the steps in the device control method according to any one of claims 1 to 4.
7. An electronic device comprising a processor and a memory, characterized in that the processor is adapted to perform the steps in the device control method according to any of claims 1 to 4 by invoking the computer program.
CN201810968217.XA 2018-08-23 2018-08-23 Device control method, device, storage medium and electronic device Active CN109243375B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810968217.XA CN109243375B (en) 2018-08-23 2018-08-23 Device control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810968217.XA CN109243375B (en) 2018-08-23 2018-08-23 Device control method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN109243375A CN109243375A (en) 2019-01-18
CN109243375B true CN109243375B (en) 2020-07-07

Family

ID=65069452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810968217.XA Active CN109243375B (en) 2018-08-23 2018-08-23 Device control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN109243375B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113112948B (en) * 2021-04-26 2022-11-04 Tcl通讯(宁波)有限公司 Method and device for adjusting intensity of blue light filter, display equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744249A (en) * 2014-12-26 2016-07-06 船井电机株式会社 Display device
CN106020481A (en) * 2016-05-26 2016-10-12 福建捷联电子有限公司 Realization method of hand-held device with functions of caring eyes and preventing blue light
CN206227909U (en) * 2016-11-01 2017-06-09 芯芮生技开发股份有限公司 Has the air cushion muffin set group of anti-blue light effect
CN206777134U (en) * 2017-01-19 2017-12-22 北京迅联杰程广告有限公司 A kind of infantal sleeping environmental monitoring system
CN107958576A (en) * 2016-10-17 2018-04-24 深圳市信息大成网络有限公司 The method that other people use eye health is reminded in monitoring based on internet
CN108255452A (en) * 2018-01-24 2018-07-06 广东小天才科技有限公司 A kind of blue light filter method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744249A (en) * 2014-12-26 2016-07-06 船井电机株式会社 Display device
CN106020481A (en) * 2016-05-26 2016-10-12 福建捷联电子有限公司 Realization method of hand-held device with functions of caring eyes and preventing blue light
CN107958576A (en) * 2016-10-17 2018-04-24 深圳市信息大成网络有限公司 The method that other people use eye health is reminded in monitoring based on internet
CN206227909U (en) * 2016-11-01 2017-06-09 芯芮生技开发股份有限公司 Has the air cushion muffin set group of anti-blue light effect
CN206777134U (en) * 2017-01-19 2017-12-22 北京迅联杰程广告有限公司 A kind of infantal sleeping environmental monitoring system
CN108255452A (en) * 2018-01-24 2018-07-06 广东小天才科技有限公司 A kind of blue light filter method and electronic equipment

Also Published As

Publication number Publication date
CN109243375A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
KR102361885B1 (en) Electronic apparatus and controlling method thereof
CN110262947B (en) Threshold warning method and device, computer equipment and storage medium
US11630561B2 (en) Image editing method and terminal
WO2016085265A1 (en) Method and apparatus for detecting that a device is immersed in a liquid
WO2014084224A1 (en) Electronic device and line-of-sight input method
CN107767839B (en) Brightness adjusting method and related product
US20200235463A1 (en) Electronic device including antenna using structure of display panel
WO2020037611A1 (en) Method and electronic device for processing notification message
CN108595000A (en) Screen luminance adjustment method and device
US11050942B2 (en) Screen fill light photographing method for mobile terminal, system and mobile terminal
WO2018174581A1 (en) Method and device for controlling white balance function of electronic device
KR20170098119A (en) Electronic device and method for controlling brightness of display thereof
WO2018106022A2 (en) Electronic device and method for controlling heat generated on surface of electronic device
CN110618852B (en) View processing method, view processing device and terminal equipment
CN109243375B (en) Device control method, device, storage medium and electronic device
CN107729100B (en) Interface display control method and mobile terminal
CN112509510A (en) Brightness adjusting method and device and electronic equipment
CN111212185A (en) Eye protection mode starting method and device, storage medium and terminal
CN111614841B (en) Alarm clock control method and device, storage medium and mobile terminal
CN115798418A (en) Image display method, device, terminal and storage medium
CN113473008B (en) Shooting method and device
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN114510183A (en) Dynamic effect duration management method and electronic equipment
CN110580561B (en) Analysis method and device for oil well oil increasing effect and storage medium
CN108924338B (en) Mobile terminal control method, mobile terminal and storage medium

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