CN108346394B - Method for controlling eye protection mode, electronic device and computer readable storage medium - Google Patents

Method for controlling eye protection mode, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN108346394B
CN108346394B CN201810122272.7A CN201810122272A CN108346394B CN 108346394 B CN108346394 B CN 108346394B CN 201810122272 A CN201810122272 A CN 201810122272A CN 108346394 B CN108346394 B CN 108346394B
Authority
CN
China
Prior art keywords
user
screen
time
duration
eye
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.)
Expired - Fee Related
Application number
CN201810122272.7A
Other languages
Chinese (zh)
Other versions
CN108346394A (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 CN201810122272.7A priority Critical patent/CN108346394B/en
Publication of CN108346394A publication Critical patent/CN108346394A/en
Application granted granted Critical
Publication of CN108346394B publication Critical patent/CN108346394B/en
Expired - Fee Related 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A method, an electronic device and a computer-readable storage medium for controlling an eye protection mode are provided, wherein the method comprises: when the electronic device is lightened, if the duration time of the lightening screen exceeds a first preset time, periodically detecting whether the user uses eyestrain, and controlling to start an eyeshield mode when the user uses eyestrain is detected; and when the duration time of the bright screen exceeds a second preset time, controlling to start the eye protection mode. The method for controlling the opening of the eye protection mode, the electronic device and the computer readable storage medium can be used for improving the intelligent degree of the control opening of the eye protection mode, so that the eyesight of a user is effectively protected.

Description

Method for controlling eye protection mode, electronic device and computer readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method for controlling an eye protection mode, an electronic device and a computer-readable storage medium.
Background
With the development of computers and network technologies, electronic devices such as smart phones, tablet computers, desktop computers, and the like are becoming an essential part of people's lives. However, the problem of vision deterioration caused by the above-mentioned problems is more and more important for people. It is now common practice in the industry to turn on an eye-protection mode in the device based on user operation. However, this method usually requires a high degree of user awareness, and once the user forgets, the eye protection mode is similar to the design. Therefore, the existing eye protection method is not intelligent enough and cannot effectively achieve the effect of protecting the eyesight of the user.
Disclosure of Invention
The embodiment of the application provides a method for controlling the opening of an eye protection mode, an electronic device and a computer readable storage medium, which can be used for improving the intelligent degree of the eye protection mode control opening, thereby effectively protecting the eyesight of a user.
A first aspect of an embodiment of the present application provides a method for controlling an eye protection mode, including: when the electronic device is in bright screen, if the duration of the bright screen exceeds a first preset time, periodically detecting whether the user is tired of eyes, and controlling to start an eye protection mode when the user is detected to be tired of eyes; and when the duration time of the bright screen exceeds a second preset time, the eye protection mode is controlled to be started.
A second aspect of the embodiments of the present application provides an electronic device, including: the detection module is used for periodically detecting whether the user uses eyestrain or not if the duration time of the screen lightening exceeds a first preset time when the electronic device is lightened; the control module is used for controlling to start an eye protection mode when the detection module detects that the eye fatigue of the user is used; and the control module is also used for controlling the opening of the eye protection mode when the duration time of the bright screen exceeds a second preset time.
A third aspect of the embodiments of the present application provides an electronic apparatus, including: the eye protection device comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, and is characterized in that when the processor executes the computer program, the method for controlling the eye protection mode is realized.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for controlling the eye protection mode to be turned on provided by the first aspect of the embodiments of the present application.
Above-mentioned each embodiment through will combining together with eye fatigue detection and bright screen duration, can make the opportunity that the eyeshield mode was opened in the control more accord with user's actual eye condition with on the one hand, and on the other hand can avoid because of frequently with the too big problem of consumption that eye fatigue detection leads to can improve the intelligent degree that eye shield mode control was opened, reach the effect of effective protection user's eyesight.
Drawings
Fig. 1 is an application environment diagram of a method for controlling an eye protection mode according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating an implementation of a method for controlling an eye protection mode according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart illustrating an implementation of a method for controlling an eye protection mode according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present invention more apparent and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Please refer to fig. 1, which is an application environment diagram of a method for controlling an eye protection mode according to an embodiment of the present disclosure. As shown in fig. 1, during the use of the electronic device 200 by the user 100, the electronic device periodically detects whether the user is tired of eyes by using the method for controlling the open eye protection mode provided in the following embodiments, and controls the open eye protection mode to intelligently protect the eyesight of the user when the eye fatigue of the user is detected or the user continues to use the electronic device for more than a preset time period.
Please refer to fig. 2, which is a schematic flow chart illustrating an implementation of a method for controlling an eye protection mode to be turned on according to an embodiment of the present application, and the method can be applied to the electronic device in fig. 1, where the electronic device supports the eye protection mode, for example: the mobile terminal comprises a smart mobile terminal which can perform data processing in the moving process, such as a smart mobile phone, a tablet computer, a portable computer and the like, or other computer terminals which can not perform data processing in the moving process. As shown in fig. 2, the method mainly includes the following steps:
201. counting the duration of the screen lightening when the electronic device is lightened every time;
202. when the duration time of the screen lightening exceeds a first preset time, periodically detecting whether the user uses eyestrain;
the bright screen is a bright screen, and comprises a bright screen after starting up and a bright screen in a screen extinguishing state during the operation of the device. When the electronic device is an intelligent mobile terminal, an event monitor is arranged in the intelligent mobile terminal, and various events, such as screen-on events, occurring in the system are monitored through the event monitor. The bright screen event can be automatically triggered by the system based on startup, and can also be triggered based on a wake-up operation of a user in a screen-off state, wherein the wake-up operation is the operation of pressing a bright screen shortcut physical key by the user in a black screen state.
A first timer and a second timer are preset in the electronic device, and the first timer is used for counting the duration of one-time screen lightening. The second timer is used to periodically detect whether the user is tired. When the electronic device is on screen, the first timer starts timing to count the duration of the screen-on. And when the time counted by the first timer exceeds a first preset time, detecting whether the user is tired by eyes, and if the user is not tired by eyes, triggering a second timer to start timing. Then, when the timing of the second timer exceeds the time (for example, 30 minutes) corresponding to the preset detection period, detecting whether the user is tired in eyes again, if the user is not tired in eyes, triggering the second timer to restart timing, and repeating the steps until the user is tired in eyes is detected, or the duration of the current screen lightening exceeds a second preset time. Optionally, the first timer and the second timer may be countdown.
Optionally, the first preset time and the detection period may be set according to a setting operation of a user.
It is understood that when the electronic device is turned off (i.e., the screen is turned off) or the eye protection mode is controlled to be turned on, the first timer and the second timer stop counting time and are cleared or reset to the initial value (counting down time). When the electronic device is turned on again, the first timer restarts counting. The screen of the electronic device can be turned off based on the screen turning-off operation of the user or automatically turned off because the user operation is not detected for more than a preset time. Wherein the screen-off operation is such that the user presses a shortcut key for triggering screen-off.
203. When eye fatigue of a user is detected, controlling to start an eye protection mode;
after each screen is lightened, when eye fatigue of a user is detected, the eye protection mode is controlled to be started, and the value of the display parameter of the screen is adjusted to be a preset value. And in the eye protection mode, whether the user is tired by eyes is not periodically detected. Wherein the display parameters may include, but are not limited to: light brightness of the screen, flicker frequency, color temperature, etc.
204. And when the duration time of the bright screen exceeds a second preset time, controlling to start the eye protection mode.
When the duration of the current bright screen counted by the first timer exceeds a second preset time, whether eye fatigue of the user is detected or not is controlled to be started.
In consideration of individual differences, it may happen that some users still cannot detect eye strain after multiple rounds of detection. If the times of eye fatigue detection are too many, more resources are consumed, the power consumption is high, in order to achieve the balance between the power consumption and the eyesight protection, when the duration time of the bright screen exceeds a second preset time, the eye protection mode is controlled to be started, and whether the user uses eye fatigue is detected periodically in the eye protection mode, so that the power consumption is reduced while the eyesight of the user is protected.
Optionally, the second preset time may be set according to a setting operation of the user.
The method of eyeshield mode is opened in control that this embodiment provided combines together through detecting with eye fatigue and bright screen duration, can make the opportunity that eyeshield mode was opened in control more accord with user's actual eye condition with, on the other hand can avoid the too big problem of consumption because of frequently detecting with eye fatigue to can improve the intelligent degree that eyeshield mode control was opened, reach the effect of effective protection user's eyesight.
Please refer to fig. 3, which is a schematic flow chart illustrating an implementation of a method for controlling an eye protection mode according to another embodiment of the present disclosure, which can be applied to the electronic device in fig. 1, where the electronic device supports the eye protection mode, such as: the mobile terminal comprises a smart mobile terminal which can perform data processing in the moving process, such as a smart mobile phone, a tablet computer, a portable computer and the like, or other computer terminals which can not perform data processing in the moving process. As shown in fig. 3, the method mainly includes the following steps:
301. counting the duration of the screen lightening when the electronic device is lightened every time;
302. determining an initial value of first preset time corresponding to the environment parameter of the current screen lightening from corresponding relations between a plurality of preset environment parameters and a plurality of initial values;
the bright screen is a bright screen, and comprises a bright screen after starting up and a bright screen in a screen extinguishing state during the operation of the device. When the electronic device is an intelligent mobile terminal, an event monitor is arranged in the intelligent mobile terminal, and various events, such as screen-on events, occurring in the system are monitored through the event monitor. The bright screen event can be automatically triggered by the system based on startup, and can also be triggered based on a wake-up operation of a user in a screen-off state, wherein the wake-up operation is the operation of pressing a bright screen shortcut physical key by the user in a black screen state.
In consideration of the difference between the time for the user to use the eye fatigue in different environments, the electronic device is preset with a corresponding relationship between a plurality of environment parameters and a plurality of initial values, and a recording file of the corresponding relationship may be a database file, a text file, or another type of file for recording information, which is not specifically limited in this embodiment. When the electronic device is on screen, the current environmental parameters are acquired, and the initial value of the first preset time corresponding to the current environmental parameters is determined from the corresponding relation between the preset environmental parameters and the initial values of the first time. Wherein the environmental parameters may include, but are not limited to: the time point of the screen lightening and the position of the electronic device when the screen is lightened.
It can be understood that, in the morning, when the user just gets up at home, the physical state of the user is good, and the time required for generating eyestrain is long. On the way to home in the afternoon, the user is tired for one day, the physical ability of the user is reduced, and the time required for generating eyestrain is shorter. Further alternatively, in an outdoor environment in the daytime, generally, the user is more quickly tired of the eyes by the influence of strong light irradiation than in a home environment with soft light at night. Therefore, the first preset time for triggering the eye fatigue detection during each screen lightening is determined according to the actual environment parameters, so that the time or condition for triggering whether the user uses the eye fatigue can better meet the physical state of the user, and the detection operation is further more intelligent.
Furthermore, the server acquires information data of fatigue time of a plurality of different users at different time and place, analyzes the acquired information data of the fatigue time of the plurality of different users at different time and place, and obtains corresponding relation between the plurality of environment parameters and the plurality of initial values. In practical applications, the analysis operation may also be performed by a server, and the electronic device may obtain the analysis result directly from the server.
The information data of fatigue time of a plurality of different users at different time and place includes: the system time of the device for performing the detection of whether the user is eyeweary, the location of the device, and the duration of the current bright screen of the device when the eyestrain is detected, when the eyestrain is detected by a plurality of different users. In practical application, the corresponding relation between a plurality of environment parameters and a plurality of initial values can be obtained by dividing a time period and distinguishing different positions and carrying out average calculation on the current bright screen duration of a plurality of users in the same time period and position. For example: analyzing to obtain the average screen-on duration of 1000 Beijing outdoor sample users with eye fatigue between 12 am and 1 am, and setting 1 hour as the initial value of the first preset time corresponding to the environment parameter between 12 am and 1 am in Beijing outdoors.
303. If the duration time of the screen lightening exceeds a first preset time, periodically detecting whether the user uses eyestrain;
304. when detecting that the user uses the eye fatigue, controlling to start an eye protection mode;
a first timer and a second timer are preset in the electronic device, and the first timer is used for counting the duration of one-time screen lightening. The second timer is used to periodically detect whether the user is tired. When the electronic device is on screen, the first timer starts timing to count the duration of the screen-on. And when the time counted by the first timer exceeds a first preset time, detecting whether the user is tired by eyes, and if the user is not tired by eyes, triggering a second timer to start timing. And then, when the timing of the second timer exceeds the time (for example, 30 minutes) corresponding to the preset detection period, detecting whether the user is tired by eyes again, if the user is not tired by eyes, triggering the second timer to restart timing, and repeating the steps until the user is tired by eyes is detected, or until the duration time of the screen lightening exceeds the second preset time, controlling to start the eye protection mode. Optionally, the first timer and the second timer may be countdown.
It is understood that when the electronic device is turned off (i.e., the screen is turned off) or the eye protection mode is controlled to be turned on, the first timer and the second timer stop counting time and are cleared or reset to the initial value (counting down time). When the electronic device is turned on again, the first timer restarts counting. The screen of the electronic device can be turned off based on the screen turning-off operation of the user or automatically turned off because the user operation is not detected for more than a preset time. Wherein the screen-off operation is such that the user presses a shortcut key for triggering screen-off.
Optionally, periodically detecting whether the user is tired of eyes, specifically including: periodically calling a camera device (such as a front camera) to shoot an image of the eyes of the user, obtaining a track line of the eyeballs of the user from the image, comparing the similarity between the obtained track line and a preset standard track line, and determining the eye fatigue of the user if the similarity is smaller than the preset similarity.
Optionally, periodically detecting whether the user is tired of eyes, which may further specifically include: periodically detecting whether the user is tired with eyes by an external eyestrain detecting device. The external eye fatigue detection device can be, but is not limited to, intelligent wearable devices such as smart glasses and smart watches with an eye fatigue detection function, or portable or non-portable professional detection devices specially used for eye fatigue detection, such as detection devices of optometry mechanisms, and portable plug-and-play eye fatigue detection devices. The external device may perform data interaction with the electronic device in this embodiment through bluetooth, a data line, short-range wireless communication, and the like.
Optionally, the information of the eyes of the user can be periodically acquired through an internal eye information identification sensor, and whether the user is tired of eyes is detected according to the acquired eye information. The human eye information identification sensor can be arranged at any position on the front surface of the electronic device and specifically comprises a camera module and a processing chip. The human eye information recognition sensor collects images or images of human eyes through the camera module, then analyzes the changes of the human eyes in the images or the images through the processing chip, and if the similarity between the changes of the human eyes and the preset changes of the eyes is smaller than the preset similarity, the eye fatigue of a user is determined.
After each screen is lightened, when eye fatigue of a user is detected, the eye protection mode is controlled to be started, and the value of the display parameter of the screen is adjusted to be a preset value. In the eye protection mode, the periodic detection of whether the user is tired by eyes is stopped. Wherein the display parameters may include, but are not limited to: light brightness of the screen, flicker frequency, color temperature, etc.
305. Acquiring the target duration of the screen lightening when the eye fatigue of the user is detected;
306. when the target duration is greater than the first preset time, setting the target duration as the first preset time;
307. when the target duration time is equal to the first preset time, if the value of the first preset time is not the initial value of the first preset time, recovering the value of the first preset time to the initial value;
specifically, the target duration of the current screen lightening when the user is detected to be tired with eyes is obtained, if the target duration is longer than the first preset time, it is indicated that the physical state of the user is good, the user is not easy to be tired with eyes, and the first preset time is set to be too short, so that the target duration is set to be the first preset time.
If the target duration is equal to the first preset time, judging whether the value of the first preset time is an initial value, if not, indicating that the first preset time is modified, and if so, prolonging the first preset time because the first preset time is set to be too short. After the screen is turned on, when the eye fatigue detection is just triggered after the first preset time, the eye fatigue of the user is detected, the body state of the user is not good, the first preset time is set to be too long, and then the value of the first preset time is returned to the initial value.
For example, assume that the initial value of the first preset time is 3 hours. And if the eye fatigue of the user is detected after 4 hours when the screen is lightened for the Nth time, the first preset time is modified to be 4 hours, and if the eye fatigue of the user is detected from the 4 th hour after the screen is lightened for the (N + 1) th time, the eye fatigue of the user is periodically detected, and at the moment, if the eye fatigue of the user is detected just in the 4 th hour, the first preset time is recovered to be 3 hours.
Like this, through the target duration of this bright screen when detecting this user with eye fatigue each time, carry out dynamic adjustment to first preset time, can make with the trigger condition of eye fatigue detection more accord with user's health state change, more intelligent to reducible because of frequently carrying out with eye fatigue detection and the power consumption that leads to reduces with eye fatigue detection to the influence of system normal operating.
308. And when the duration time of the bright screen exceeds a second preset time, controlling to start the eye protection mode.
When the duration of the bright screen counted by the first timer exceeds a second preset time, whether eye fatigue of the user is detected or not is controlled to be started, and whether eye fatigue of the user is detected or not is stopped periodically in the eye protection mode, so that the power consumption is reduced while the eyesight of the user is protected.
Optionally, when the eye protection mode is controlled to be started, the current brightness value of the screen may be obtained first, then the target value of the display parameter of the screen corresponding to the obtained brightness value is determined according to the obtained current brightness value, and then the value of the display parameter of the screen is adjusted to the target value.
It can be understood that, in order to adapt to the needs of different external ambient lights, the brightness of the screen of the electronic device can be automatically adjusted according to the intensity change of the ambient light, and the eye protection mode may conflict with the current brightness of the screen, so as to affect normal use. In order to avoid the above situation, a plurality of groups of display parameter values corresponding to different brightness values are preset in the electronic device, and when the eye protection mode is controlled to be started, the value of the display parameter most matched with the current ambient brightness is determined according to the current brightness value of the screen, so that the purpose of protecting the eyesight of a user is achieved on the premise of ensuring the normal use of the electronic device.
Optionally, after the eye protection mode is controlled to be started, when the screen is turned on next time, whether the last screen turn-off duration before turning on the screen is longer than a preset duration is judged. If the duration is longer than the preset duration, the eyes of the user have a certain rest, then the user exits the eye protection mode, the display parameters are restored to the original values, and the step 301 and the subsequent steps are executed until the eye protection mode is started again. If the duration is not longer than the preset duration, the user does not have enough eye rest, and possibly still is in a fatigue state, and then the eye protection mode is continuously kept.
The method of eyeshield mode is opened in control that this embodiment provided combines together through detecting with eye fatigue and bright screen duration, can make the opportunity that eyeshield mode was opened in control more accord with user's actual eye condition with, on the other hand can avoid the too big problem of consumption because of frequently detecting with eye fatigue to can improve the intelligent degree that eyeshield mode control was opened, reach the effect of effective protection user's eyesight.
Please refer to fig. 4, which is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device can be used for implementing the method for controlling the open eye protection mode provided by the embodiment shown in fig. 2. As shown in fig. 4, the electronic device mainly includes:
the detection module 401 is configured to periodically detect whether a user is tired of eyes when the electronic device is turned on and the duration of the turn-on exceeds a first preset time;
the control module 402 is configured to control to start the eye protection mode when the detection module 401 detects that the user is tired in eyes;
the control module 402 is further configured to control to start the eye protection mode when the duration of the current screen lightening exceeds a second preset time.
Specifically, the electronic device is provided with a first timer and a second timer, and the first timer is used for counting the duration of one-time screen lightening. The second timer is used to periodically detect whether the user is tired. When the electronic device is on screen, the first timer starts timing to count the duration of the screen-on. When the time counted by the first timer exceeds a first preset time, the trigger detection module 401 detects whether the user is tired with eyes, and if the user is not tired with eyes, the second timer is triggered to start timing. Then, when the timing of the second timer exceeds the time (e.g., 30 minutes) corresponding to the preset detection period, the triggering detection module 401 detects whether the user is tired of eyes again, and if the user is not tired of eyes, the triggering detection module 401 starts timing again with the second timer, and the process is repeated in this way until the detection module 401 detects that the user is tired of eyes, or until the duration of the current screen lightening counted by the first timer exceeds a second preset time, the triggering control module 402 starts the eye protection mode.
It is understood that when the electronic device is turned off (i.e., the screen is turned off) or the eye protection mode is controlled to be turned on, the first timer and the second timer stop counting time and are cleared or reset to the initial value (counting down time). When electricity is generated
When the sub-device is on again, the first timer restarts to count time. The screen of the electronic device can be turned off based on the screen turning-off operation of the user or automatically turned off because the user operation is not detected for more than a preset time. Wherein the screen-off operation is such that the user presses a shortcut key for triggering screen-off.
Optionally, the first timer and the second timer may be countdown.
Optionally, the control module 402 controls to start the eye protection mode, and adjusts the value of the display parameter of the screen to a preset value. And in the eye protection mode, whether the user is tired by eyes is not periodically detected. Wherein the display parameters may include, but are not limited to: light brightness of the screen, flicker frequency, color temperature, etc.
It should be noted that, in the embodiment of the electronic device illustrated in fig. 4, the division of the functional modules is only an example, and in practical applications, the above functions may be distributed by different functional modules according to needs, for example, configuration requirements of corresponding hardware or convenience of implementation of software, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be implemented by corresponding hardware executing corresponding software. The above description principles can be applied to various embodiments provided in the present specification, and are not described in detail below.
For a specific process of each function module in the electronic device provided in this embodiment to implement each function, please refer to the specific content described in the embodiment shown in fig. 2, which is not described herein again.
The electronic device that this embodiment provided combines together through detecting with eye fatigue and bright screen duration, can make the opportunity that the eyeshield mode was opened in control more accord with user's actual eye condition with on the one hand, and on the other hand can avoid because of frequently detecting the too big problem of consumption that leads to with eye fatigue to can improve the intelligent degree that eye shield mode control was opened, reach the effect of effective protection user's eyesight.
Please refer to fig. 5, which is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device can be used for realizing the method for controlling the opening eye-protecting mode provided by the embodiment shown in the figures 2 and 3. Unlike the electronic device shown in fig. 4, in the present embodiment,
further, the electronic device further includes:
an obtaining module 501, configured to obtain a target duration of the screen lightening when eye fatigue of the user is detected;
a setting module 502, configured to set the target duration as the first preset time when the target duration is greater than the first preset time;
the setting module 502 is further configured to, when the target duration is equal to the first preset time, if the value of the first preset time is not the initial value of the first preset time, restore the value of the first preset time to the initial value.
Optionally, the setting module 502 is further configured to set an initial value of the first preset time and a detection period according to a setting operation of a user.
Further, the electronic device further includes:
the determining module 503 is configured to determine, when the electronic apparatus is turned on, an initial value of the first preset time corresponding to the environment parameter turned on this time from a corresponding relationship between a plurality of preset environment parameters and a plurality of initial values, where the environment parameters include: the time point of the screen lightening and the position of the electronic device when the screen is lightened;
a sending module 504, configured to send the system time when the user is detected to be tired of eyes, the position of the electronic device, and the duration of the current screen-on to a server;
the analysis module 505 is configured to obtain, by the server, information data of fatigue times of a plurality of different users at different times and places, and analyze the obtained information data of the fatigue times of the plurality of different users at different times and places to obtain a corresponding relationship between the plurality of environmental parameters and the plurality of initial values.
Specifically, the analysis module 505 obtains information data of fatigue times of a plurality of different users at different times and places through the server, and analyzes the obtained information data of fatigue times of the plurality of different users at different times and places to obtain a corresponding relationship between the plurality of environmental parameters and the plurality of initial values. The information data of fatigue time of a plurality of different users at different time and place includes: the system time of the device for performing the detection of whether the user is eyeweary, the location of the device, and the duration of the current bright screen of the device when the eyestrain is detected, when the eyestrain is detected by a plurality of different users. In practical application, the corresponding relation between a plurality of environment parameters and a plurality of initial values can be obtained by dividing a time period and distinguishing different positions and carrying out average calculation on the current bright screen duration of a plurality of users in the same time period and position.
Further, the detection module 401 is further configured to periodically invoke a camera device to capture an image of the eyes of the user, obtain a trajectory of the eyeballs of the user from the image, compare a similarity between the obtained trajectory and a preset standard trajectory, and if the similarity is smaller than a preset similarity, determine that the user is tired in eyes, and start the eye protection mode;
the detection module 401 is further configured to periodically detect whether the user is tired by using an internal eye information recognition sensor or an external eye fatigue detection device, and when detecting that the user is tired by using eyes, control to start the eye protection mode;
the control module 402 is further configured to obtain a current brightness value of the screen, determine a target value of a display parameter of the screen corresponding to the obtained brightness value according to the obtained current brightness value, and adjust the value of the display parameter of the screen to the target value;
the control module 402 is further configured to, during next screen brightening, determine whether the last screen-off duration before the screen brightening is longer than a preset duration, if so, exit from the eye-protection mode and trigger the detection module 401 to execute the step of periodically detecting whether the user is tired of eyes if the current screen brightening duration exceeds a first preset duration, and if not, continue to maintain the eye-protection mode.
For a specific process of each function module in the electronic device provided in this embodiment to implement each function, please refer to the specific contents described in the embodiments shown in fig. 2 to fig. 4, which is not described herein again.
The electronic device that this embodiment provided combines together through detecting with eye fatigue and bright screen duration, can make the opportunity that the eyeshield mode was opened in control more accord with user's actual eye condition with on the one hand, and on the other hand can avoid because of frequently detecting the too big problem of consumption that leads to with eye fatigue to can improve the intelligent degree that eye shield mode control was opened, reach the effect of effective protection user's eyesight.
Referring to fig. 6, fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic apparatus described in this embodiment includes:
a memory 701, a processor 702, and a computer program stored in the memory 701 and executable on the processor 702, wherein the processor 702 executes the computer program to implement the method for controlling the open eye protection mode described in the embodiments of fig. 2 and 3.
Further, the electronic device further includes:
at least one input device 703 and at least one output device 704.
The memory 701, the processor 702, the input device 703, and the output device 704 are connected by a bus 705.
The input device 703 may be a camera, a touch panel, a physical button, a mouse, or the like. The output device 704 may specifically be a display screen.
The Memory 701 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 701 is used for storing a set of executable program code, and the processor 702 is coupled to the memory 701.
Further, an embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium may be provided in an electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 6. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the method of controlling the open eye-protection mode described in the embodiments of fig. 2 and 3. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a RAM, a magnetic disk, or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed electronic device and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and in actual implementation, there may be other divisions, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are 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 in the form of a software functional module and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above 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.
In view of the above description, it is intended that all changes to the detailed description and applications of the method for controlling an eye-protection mode, the electronic device, and the computer-readable storage medium provided by the present application be interpreted as being a limitation to the present application.

Claims (12)

1. A method for controlling an eye protection mode is applied to an electronic device, and the method comprises the following steps:
when the electronic device is in bright screen, if the duration of the bright screen exceeds a first preset time, periodically detecting whether the user is tired of eyes, and controlling to start an eye protection mode when the user is detected to be tired of eyes;
acquiring the target duration of the screen lightening when the eye fatigue of the user is detected;
when the target duration is greater than the first preset time, setting the target duration as the first preset time;
when the target duration is equal to the first preset time, if the value of the first preset time is not the initial value of the first preset time, restoring the value of the first preset time to the initial value;
and when the duration time of the bright screen exceeds a second preset time, the eye protection mode is controlled to be started.
2. The method of claim 1, wherein the method further comprises:
when the electronic device is turned on, determining an initial value of the first preset time corresponding to the environment parameter turned on this time from a corresponding relationship between a plurality of preset environment parameters and a plurality of initial values, wherein the environment parameters include: the time point of the screen lightening and the position of the electronic device during the screen lightening.
3. The method of claim 2, wherein controlling to initiate an eye-protection mode after detecting the user's eye strain comprises:
sending the system time when the user is detected to be tired of eyes, the position of the electronic device and the duration of the screen lightening to a server;
the method further comprises the following steps:
acquiring information data of fatigue time of a plurality of different users at different time and place through the server;
and analyzing the acquired information data of the fatigue time of the plurality of different users at different time and places to obtain the corresponding relation between the plurality of environment parameters and the plurality of initial values.
4. The method of claim 1, wherein the periodically detecting whether the user is eyestrain and controlling the eye-protecting mode to be turned on when the user is eyestrain is detected comprises:
periodically calling a camera device to shoot the image of the eyes of the user;
obtaining a trajectory line of an eyeball of the user from the image;
comparing the similarity between the obtained trajectory line and a preset standard trajectory line;
and if the similarity is smaller than the preset similarity, determining that the eye fatigue of the user is used, and starting the eye protection mode.
5. The method of claim 1, wherein the periodically detecting whether the user is eyestrain and controlling the eye-protecting mode to be turned on when the user is eyestrain is detected comprises:
periodically detecting whether the user uses eyestrain through an internal eye information identification sensor or an external eyestrain detection device, and controlling to start the eyestrain mode when the user uses eyestrain is detected.
6. The method of claim 1, wherein the controlling to initiate the eye-shielding mode comprises:
acquiring a current brightness value of a screen;
determining a target value of a display parameter of the screen corresponding to the acquired brightness value according to the acquired current brightness value;
adjusting the value of the display parameter of the screen to the target value.
7. The method of claim 1, wherein said controlling after initiating said eye-shielding mode comprises:
judging whether the last screen turn-off duration before the screen is turned on is longer than the preset duration when the screen is turned on next time;
if the duration time of the bright screen exceeds the first preset time, periodically detecting whether the user uses eyestrain;
and if the duration is not longer than the preset duration, continuing to maintain the eye protection mode.
8. An electronic device, comprising:
the detection module is used for periodically detecting whether the user uses eyestrain or not if the duration time of the screen lightening exceeds a first preset time when the electronic device is lightened;
the control module is used for controlling to start an eye protection mode when the detection module detects that the eye fatigue of the user is used;
the acquisition module is used for acquiring the target duration of the screen lightening when the eye fatigue of the user is detected;
the setting module is used for setting the target duration time as the first preset time when the target duration time is greater than the first preset time;
the setting module is further configured to, when the target duration is equal to the first preset time, if the value of the first preset time is not the initial value of the first preset time, restore the value of the first preset time to the initial value;
and the control module is also used for controlling the opening of the eye protection mode when the duration time of the bright screen exceeds a second preset time.
9. The electronic device of claim 8, wherein the electronic device further comprises:
a determining module, configured to determine, when the electronic device is turned on, an initial value of the first preset time corresponding to an environment parameter turned on this time from a corresponding relationship between a plurality of preset environment parameters and a plurality of initial values, where the environment parameter includes: the method comprises the steps of (1) lightening the screen at the time point and the position of the electronic device when the screen is lightened;
the sending module is used for sending the system time when the user is detected to be tired in eyes, the position of the electronic device and the duration of the screen lightening to a server;
and the analysis module is used for acquiring the information data of the fatigue time of the plurality of different users at different time and places through the server, and analyzing the acquired information data of the fatigue time of the plurality of different users at different time and places to obtain the corresponding relation between the plurality of environment parameters and the plurality of initial values.
10. The electronic device of claim 9,
the detection module is further configured to periodically call a camera device to shoot an image of the eyes of the user, obtain a trajectory of the eyeballs of the user from the image, compare a similarity between the obtained trajectory and a preset standard trajectory, and if the similarity is smaller than a preset similarity, determine that the user is tired in eyes and start the eye protection mode;
the detection module is also used for periodically detecting whether the user uses eyestrain through an internal eye information recognition sensor or an external eyestrain detection device, and controlling to start the eyestrain mode when the user uses eyestrain is detected;
the control module is further configured to obtain a current brightness value of a screen, determine a target value of a display parameter of the screen corresponding to the obtained brightness value according to the obtained current brightness value, and adjust the value of the display parameter of the screen to the target value;
the control module is further used for judging whether the last screen-off duration is longer than the preset duration before the screen is turned on next time, if so, exiting the eye protection mode and triggering the detection module to execute the step of periodically detecting whether the user is tired with eyes if the last screen-on duration exceeds the first preset duration, and if not, continuing to maintain the eye protection mode.
11. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, wherein the processor implements the method of controlling the eye-shielding mode according to any one of claims 1 to 7 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of controlling an open eye protection mode according to any one of claims 1 to 7.
CN201810122272.7A 2018-02-07 2018-02-07 Method for controlling eye protection mode, electronic device and computer readable storage medium Expired - Fee Related CN108346394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810122272.7A CN108346394B (en) 2018-02-07 2018-02-07 Method for controlling eye protection mode, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810122272.7A CN108346394B (en) 2018-02-07 2018-02-07 Method for controlling eye protection mode, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108346394A CN108346394A (en) 2018-07-31
CN108346394B true CN108346394B (en) 2022-03-08

Family

ID=62958562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810122272.7A Expired - Fee Related CN108346394B (en) 2018-02-07 2018-02-07 Method for controlling eye protection mode, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108346394B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669512A (en) * 2018-10-30 2019-04-23 努比亚技术有限公司 A kind of display control method, Folding screen terminal and computer readable storage medium
CN109862173A (en) * 2018-11-30 2019-06-07 努比亚技术有限公司 Eyeshield display pattern autocontrol method, terminal and computer readable storage medium
CN109873899A (en) * 2018-11-30 2019-06-11 努比亚技术有限公司 A kind of terminal control method, terminal and computer readable storage medium
CN111212185A (en) * 2019-12-27 2020-05-29 宇龙计算机通信科技(深圳)有限公司 Eye protection mode starting method and device, storage medium and terminal
JP2022050117A (en) * 2020-09-17 2022-03-30 日本電気株式会社 Display control system, display control method, and computer program
CN112954242A (en) * 2021-01-27 2021-06-11 广州朗国电子科技有限公司 Eye protection control method and device for television, television and storage medium
CN113190197B (en) * 2021-04-28 2022-10-18 歌尔股份有限公司 Head-mounted device, control method thereof, and computer-readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325358A (en) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and method for controlling display effect of terminal
CN104182046A (en) * 2014-08-22 2014-12-03 京东方科技集团股份有限公司 Eye control reminding method, eye control image display method and display system
CN105577945A (en) * 2016-03-11 2016-05-11 厦门美图移动科技有限公司 Eyesight protection control method and device and mobile terminal
CN106098020A (en) * 2016-07-21 2016-11-09 广东欧珀移动通信有限公司 Control method and control device
CN106155318A (en) * 2016-06-28 2016-11-23 广东欧珀移动通信有限公司 Sight protectio method, device and the mobile terminal of mobile terminal
CN106200936A (en) * 2016-06-29 2016-12-07 广东欧珀移动通信有限公司 Sight protectio method based on terminal unit, device and terminal unit
KR20170085835A (en) * 2016-01-15 2017-07-25 백석문화대학교 산학협력단 Method for providing eye care display mode for user terminal and recording medium thereof
CN106991792A (en) * 2017-05-15 2017-07-28 广东小天才科技有限公司 A kind of eye fatigue detection method and device, user equipment
CN107219889A (en) * 2017-05-25 2017-09-29 京东方科技集团股份有限公司 Eye-protecting display device and display screen method of adjustment
CN107645590A (en) * 2017-08-16 2018-01-30 广东小天才科技有限公司 One kind uses kopiopia based reminding method and user terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8884734B2 (en) * 2008-11-17 2014-11-11 Roger Li-Chung Wu Vision protection method and system thereof
US8884735B2 (en) * 2008-11-17 2014-11-11 Roger Li-Chung Vision protection method and system thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103325358A (en) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and method for controlling display effect of terminal
CN104182046A (en) * 2014-08-22 2014-12-03 京东方科技集团股份有限公司 Eye control reminding method, eye control image display method and display system
KR20170085835A (en) * 2016-01-15 2017-07-25 백석문화대학교 산학협력단 Method for providing eye care display mode for user terminal and recording medium thereof
CN105577945A (en) * 2016-03-11 2016-05-11 厦门美图移动科技有限公司 Eyesight protection control method and device and mobile terminal
CN106155318A (en) * 2016-06-28 2016-11-23 广东欧珀移动通信有限公司 Sight protectio method, device and the mobile terminal of mobile terminal
CN106200936A (en) * 2016-06-29 2016-12-07 广东欧珀移动通信有限公司 Sight protectio method based on terminal unit, device and terminal unit
CN106098020A (en) * 2016-07-21 2016-11-09 广东欧珀移动通信有限公司 Control method and control device
CN106991792A (en) * 2017-05-15 2017-07-28 广东小天才科技有限公司 A kind of eye fatigue detection method and device, user equipment
CN107219889A (en) * 2017-05-25 2017-09-29 京东方科技集团股份有限公司 Eye-protecting display device and display screen method of adjustment
CN107645590A (en) * 2017-08-16 2018-01-30 广东小天才科技有限公司 One kind uses kopiopia based reminding method and user terminal

Also Published As

Publication number Publication date
CN108346394A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN108346394B (en) Method for controlling eye protection mode, electronic device and computer readable storage medium
US20230333377A1 (en) Display System
CN109782915B (en) Method and apparatus for controlling electronic device
EP3905230A1 (en) Display panel luminance correction method and display panel luminance correction device
CN105590577B (en) Display drive method, display drive integrated circult and electronic equipment
CN108510963B (en) Screen brightness adjusting method and device, storage medium and intelligent terminal
CN108650418B (en) Fatigue reminding method and device, intelligent terminal and storage medium
CN105679253B (en) A kind of terminal backlight adjusting method and device
CN108401078B (en) Backlight brightness adjusting method and device, mobile terminal and readable storage medium
CN106303039A (en) A kind of screen control method, device and mobile terminal
CN105072258B (en) Scene modes of mobile terminal switching method, device and mobile terminal
CN110534073A (en) A kind of screen luminance adjustment method and device
CN109543378B (en) Fingerprint unlocking method and related equipment
CN111966224A (en) Eye protection mode prompting method and device, electronic equipment and storage medium
CN111970753A (en) Intelligent terminal screen dormancy control method, storage medium, processor and intelligent terminal
CN106485117A (en) A kind of intelligent terminal method of controlling operation thereof based on recognition of face and system
CN112202957B (en) Terminal control method and control device
CN108601069A (en) One kind putting out screen clock control method, system and terminal device
CN108008804A (en) The screen control method and device of smart machine
CN109561291A (en) Color temperature compensating method, device, storage medium and mobile terminal
US11266910B2 (en) Control method and control device
CN112416172A (en) Electronic equipment control method and device and electronic equipment
CN109753336B (en) Method for switching screen locking interface to desktop, electronic device and computer readable storage medium
CN111614841B (en) Alarm clock control method and device, storage medium and mobile terminal
KR20200046526A (en) Screen control device and method for sight protection

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220308