CN108346394A - Method, electronic device and the computer readable storage medium of eyeshield pattern are opened in control - Google Patents

Method, electronic device and the computer readable storage medium of eyeshield pattern are opened in control Download PDF

Info

Publication number
CN108346394A
CN108346394A CN201810122272.7A CN201810122272A CN108346394A CN 108346394 A CN108346394 A CN 108346394A CN 201810122272 A CN201810122272 A CN 201810122272A CN 108346394 A CN108346394 A CN 108346394A
Authority
CN
China
Prior art keywords
asthenopia
user
time
bright screen
electronic device
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.)
Granted
Application number
CN201810122272.7A
Other languages
Chinese (zh)
Other versions
CN108346394B (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

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

Method, electronic device and the computer readable storage medium of eyeshield pattern are opened in a kind of control, and method therein includes:Whenever the bright screen of electronic device, if the duration of this bright screen is more than the first preset time, periodically detect whether user uses asthenopia, and when detecting user's asthenopia, eyeshield pattern is opened in control;When the duration of this bright screen being more than the second preset time, the eyeshield pattern is opened in control.Method, electronic device and the computer readable storage medium of eyeshield pattern are opened in above-mentioned control, can be used for improving the intelligence degree that eyeshield scheme control is opened, to effective protection user's eyesight.

Description

Method, electronic device and the computer readable storage medium of eyeshield pattern are opened in control
Technical field
This application involves field of computer technology more particularly to a kind of control to open the method for eyeshield pattern, electronic device And computer readable storage medium.
Background technology
With the development of computer and network technology, the electronic devices such as smart mobile phone, tablet computer, desktop computer are more next More at an essential part in for people's lives.But the problem of visual impairment caused therefrom, increasingly causes people Most attention.The common practice of industry is depending on the user's operation, to open eyeshield pattern in a device at present.But it this does Method, which usually requires user, high consciousness, once user has forgotten, then eyeshield pattern is just as ornaments.Therefore existing eyeshield Method is not smart enough, can not effectively achieve the effect of protection user's eyesight.
Invention content
The embodiment of the present application provides a kind of method, electronic device and the computer-readable storage medium of control unlatching eyeshield pattern Matter can be used for improving the intelligence degree that eyeshield scheme control is opened, to effective protection user's eyesight.
The embodiment of the present application first aspect provides a kind of method that eyeshield pattern is opened in control, including:Whenever the electronics When the bright screen of device, if the duration of this bright screen is more than the first preset time, whether tired with eye user is periodically detected Labor, and when detecting user's asthenopia, eyeshield pattern is opened in control;It is more than second when the duration of this bright screen When preset time, the eyeshield pattern is opened in control.
The embodiment of the present application second aspect provides a kind of electronic device, including:Detection module, for being filled whenever the electronics When setting bright screen, if the duration of this bright screen is more than the first preset time, periodically detect whether user uses asthenopia; Control module, for when the detection module detects user's asthenopia, eyeshield pattern to be opened in control;The control Module is additionally operable to when the duration of this bright screen being more than the second preset time, and the eyeshield pattern is opened in control.
The embodiment of the present application third aspect provides a kind of electronic device, including:Memory, processor and it is stored in described deposit On reservoir and the computer program that can run on the processor, which is characterized in that the processor executes the computer When program, the method that eyeshield pattern is opened in the control that above-mentioned the embodiment of the present application first aspect provides is realized.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, is stored thereon with computer program, It is characterized in that, when the computer program is executed by processor, the control that above-mentioned the embodiment of the present application first aspect provides is realized The method that system opens eyeshield pattern.
The various embodiments described above are combined with the bright screen duration by that will be detected with asthenopia, on the one hand may make control The opportunity of unlatching eyeshield pattern more meets the practical of user and uses eye situation, on the other hand can avoid because frequently being led with asthenopia detection The problem that the power consumption of cause is excessive reaches effective protection user and regards to which the intelligence degree of eyeshield scheme control unlatching can be improved The effect of power.
Description of the drawings
Fig. 1 is the applied environment figure for the method that eyeshield pattern is opened in control provided by the embodiments of the present application;
Fig. 2 is the implementation process schematic diagram for the method that eyeshield pattern is opened in the control that one embodiment of the application provides;
Fig. 3 is the implementation process schematic diagram for the method that eyeshield pattern is opened in the control that another embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the electronic device that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram for the electronic device that another embodiment of the application provides;
Fig. 6 is the hardware architecture diagram for the electronic device that one embodiment of the application provides.
Specific implementation mode
To enable present invention purpose, feature, advantage more apparent and understandable, below in conjunction with the application Attached drawing in embodiment, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described reality It is only some embodiments of the present application to apply example, and not all embodiments.Based on the embodiment in the application, people in the art The every other embodiment that member is obtained without making creative work, shall fall in the protection scope of this application.
Referring to Fig. 1, opening the applied environment figure of the method for eyeshield pattern for control provided by the embodiments of the present application.Such as figure Shown in 1, user 100 during using electronic device 200, using the control that following each embodiments provide opened by electronic device The method of eyeshield pattern, periodically detects whether user uses asthenopia, detects that user's asthenopia or user continue working as When being more than preset duration using electronic device, eyeshield pattern is opened in control, is protected to user's eyesight with intelligence.
Referring to Fig. 2, opening the implementation process signal of the method for eyeshield pattern for the control that one embodiment of the application provides Figure, can be applied to the electronic device in Fig. 1, which supports eyeshield pattern, such as:Smart mobile phone, tablet computer, hand-held electric Brain etc. can carry out the intelligent mobile terminal of data processing or non-other meters that can carry out data processing on the move on the move Calculation machine terminal.As shown in Fig. 2, this method mainly includes the following steps that:
201, whenever the bright screen of electronic device, the duration of this bright screen is counted;
202, when the duration of this bright screen being more than the first preset time, whether tired with eye user is periodically detected Labor;
Bright screen is the bright screen that bright screen and device go out during running under screen state after lighting screen, including booting.Work as electronics When device is intelligent mobile terminal, it is provided with event sniffer in the intelligent mobile terminal, system is monitored by the event sniffer The each event occurred in system, such as bright screen event.The bright screen event can be based on booting by system automatic trigger, may be based on user Wake operation under screen state of going out and be triggered, wherein wake operation such as user under black state by pressing light the quick physics of screen The operation of key.
The first timer and the second timer are preset in electronic device, the first timer is used to count holding for primary bright screen The continuous time.Second timer is applied to periodically detect whether user uses asthenopia.Whenever the bright screen of electronic device, the first meter When device start timing, to count the duration of this bright screen.It is more than the first preset time when the time of the first timer statistics When, whether detection user is triggered the second timer and starts timing with asthenopia if user is not tired with eye.Then, when second When the timing of timer is more than preset detection cycle corresponding time (e.g., 30 minutes), it is whether tired with eye that user is detected again Labor triggers the second timer and restarts timing, so move in circles if user is not tired with eye, until detecting user With asthenopia, alternatively, until the duration of this bright screen is more than the second preset time.Optionally, the first timer and second Timer can also be countdown.
Optionally, the first preset time and detection cycle can be according to the setting operation settings of user.
It should be understood that when electronic device goes out screen (that is, extinguishing screen) or control unlatching eyeshield pattern, the first timer Stop timing with the second timer, and reset or restore initial value (when countdown).When electronic device bright screen again, the first meter When device restart timing.Electronic device, which goes out, to be shielded and can be operated or based on the screen that goes out of user because use is not detected more than preset duration Family operates and the screen that goes out automatically.Screen operation of wherein going out such as shortcut key of user's pressing for triggering the screen that goes out.
203, when detecting user's asthenopia, eyeshield pattern is opened in control;
Each time after bright screen, when detecting user's asthenopia, eyeshield pattern is opened in control, by the display parameters of screen Value be adjusted to preset value.No longer periodically detect whether user uses asthenopia under eyeshield pattern.Wherein display parameters can be with But be not limited to include:The light luminance of screen, flicker frequency, colour temperature etc..
204, when the duration of this bright screen being more than the second preset time, eyeshield pattern is opened in control.
When the duration of this bright screen of the first timer statistics being more than the second preset time, regardless of whether detecting User's asthenopia, control open eyeshield pattern.
In view of individual difference, it is possible that for some users, after excessively taking turns detection, use still can not be detected The case where asthenopia.With asthenopia detect number it is too many if, more resource can be consumed, power consumption is larger, to reach power consumption With the balance of sight protectio, this bright screen duration be more than the second preset time when, control open eyeshield pattern, and Detect to dwelling period whether user uses asthenopia under eyeshield pattern, to reduce power consumption while protecting user's eyesight.
Optionally, the second preset time can be according to the setting operation setting of user.
The method that eyeshield pattern is opened in control provided in this embodiment, by will be detected and the bright screen duration with asthenopia It is combined, on the one hand may make the opportunity of control unlatching eyeshield pattern more to meet the practical of user and use eye situation, on the other hand may be used The problem for avoiding the power consumption caused by frequently being detected with asthenopia excessive, to which the intelligence of eyeshield scheme control unlatching can be improved Degree achievees the effect that effective protection user's eyesight.
Referring to Fig. 3, opening the realization stream of the method for eyeshield pattern for a kind of control that another embodiment of the application provides Journey schematic diagram can be applied to the electronic device in Fig. 1, which supports eyeshield pattern, such as:Smart mobile phone, tablet computer, Laptop computer etc. can carry out the intelligent mobile terminal of data processing or non-can carry out data processing on the move on the move Other terminals.As shown in figure 3, this method mainly includes the following steps that:
301, whenever the bright screen of electronic device, the duration of this bright screen is counted;
302, from the correspondence between preset multiple environmental parameters and multiple initial values, the ring of this bright screen is determined The initial value of corresponding first preset time of border parameter;
Bright screen is the bright screen that bright screen and device go out during running under screen state after lighting screen, including booting.Work as electronics When device is intelligent mobile terminal, it is provided with event sniffer in the intelligent mobile terminal, system is monitored by the event sniffer The each event occurred in system, such as bright screen event.The bright screen event can be based on booting by system automatic trigger, may be based on user Wake operation under screen state of going out and be triggered, wherein wake operation such as user under black state by pressing light the quick physics of screen The operation of key.
In view of under varying environment, the time of user's asthenopia is variant, multiple environment ginsengs are preset in electronic device Several correspondences between multiple initial values, the record file of the correspondence can be database file or text file or It is other kinds of for recording the file of information, be not specifically limited in the present embodiment.Whenever the bright screen of electronic device, acquisition is worked as Preceding environmental parameter is determined from the correspondence between preset multiple environmental parameters and the initial value of multiple first times The initial value of corresponding first preset time of current environmental parameter.Wherein the environmental parameter can be, but not limited to include:Bright screen Time point and when bright screen the electronic device position.
It should be understood that when just get up in the morning at home, user's body epidemic situation comparison is good, and generation is needed with asthenopia Time it is long.And on the road that come home from work in the afternoon, one day tired, user's physical stamina letdown, generation is needed with asthenopia Time is just shorter.Or usually influenced by strong illumination in the environment of outdoors during daylight hours, compared to night in light The environment of soft family, user faster use asthenopia.Therefore, it is used when determining bright screen each time according to actual environment parameter In the first preset time that triggering is detected with asthenopia, it can so that whether detection trigger user uses opportunity or the condition of asthenopia More meet the physical condition of user, to further such that detection operation is more intelligent.
Further, by server obtain multiple and different users the tired time in different time and place Information Number According to analyzing multiple and different users of acquisition in the information data of the tired time in different time and place, obtain multiple environment Correspondence between parameter and multiple initial values.In practical applications, analysis operation can also be completed by server, electronic device Can directly analysis result be obtained from server.
Information data of multiple and different users in the tired time in different time and place include:Multiple and different users are in quilt When detecting with asthenopia, for executes detect user whether the system time of the equipment operated with asthenopia, residing for the equipment Position and detect with asthenopia when the equipment current bright screen duration.It in practical applications, can be by drawing The time segment position different with differentiation, and to the duration of the current bright screen of multiple users of same period and position into The mode of row average computation obtains the correspondence between multiple environmental parameters and multiple initial values.Such as:Analysis obtains noon Between 12 points to 1 point, average bright screen duration of the sample of users to work outdoors of Pekinese 1000 when with asthenopia It is 1 hour, then was set as 12 noon to corresponding first preset time of this outdoor environmental parameter of 1 Beijing by 1 hour Initial value.
If 303, the duration of this bright screen is more than the first preset time, whether tired with eye user is periodically detected Labor;
304, when detecting user's asthenopia, eyeshield pattern is opened in control;
The first timer and the second timer are preset in electronic device, the first timer is used to count holding for primary bright screen The continuous time.Second timer is applied to periodically detect whether user uses asthenopia.Whenever the bright screen of electronic device, the first meter When device start timing, to count the duration of this bright screen.It is more than the first preset time when the time of the first timer statistics When, whether detection user is triggered the second timer and starts timing with asthenopia if user is not tired with eye.Then, when second When the timing of timer is more than preset detection cycle corresponding time (e.g., 30 minutes), it is whether tired with eye that user is detected again Labor triggers the second timer and restarts timing, so move in circles if user is not tired with eye, until detecting user With asthenopia, alternatively, until when the duration of this bright screen is more than the second preset time, eyeshield pattern is opened in control.It is optional , the first timer and the second timer can also be countdown.
It should be understood that when electronic device goes out screen (that is, extinguishing screen) or control unlatching eyeshield pattern, the first timer Stop timing with the second timer, and reset or restore initial value (when countdown).When electronic device bright screen again, the first meter When device restart timing.Electronic device, which goes out, to be shielded and can be operated or based on the screen that goes out of user because use is not detected more than preset duration Family operates and the screen that goes out automatically.Screen operation of wherein going out such as shortcut key of user's pressing for triggering the screen that goes out.
Optionally, it periodically detects whether user uses asthenopia, specifically includes:Photographic device is invoked periodically (e.g., Front camera) shoot the user eye image, the path line of the eyeball of the user is obtained from the image, compares to obtain Path line and preset standard gauge trace between similarity, if the similarity is less than default similarity, it is determined that the user Use asthenopia.
Optionally, it periodically detects whether user uses asthenopia, also may particularly include:It is tired periodically by exterior ocular Labor detection device detects whether the user uses asthenopia.Exterior ocular fatigue detection device can be, but not limited to asthenopia detection The intelligence wearable device such as intelligent glasses, smartwatch of function, alternatively, portable or non-portable dedicated for asthenopia inspection The professional detection device of survey, such as the detection device of optometry mechanism, the asthenopia detection device of portable plug and play.Outside dress Data friendship can be carried out by the electronic device in the modes, with the present embodiment such as bluetooth, data line, close range wireless communication by setting Mutually.
Optionally, the letter of the eyes of user can also be acquired periodically by the interior human eye information identification sensor set Breath, and detect whether user uses asthenopia according to the eye information of acquisition.Human eye information identification sensor may be provided at electronics dress Positive any position is set, specifically may include photographing module and processing chip.Human eye information identification sensor passes through photographing module The image or image for acquiring human eye, then analyze the variation of human eye in image or image by processing chip, if human eye Variation be less than default similarity with the similarity of preset eye change, it is determined that user's asthenopia.
Each time after bright screen, when detecting user's asthenopia, eyeshield pattern is opened in control, by the display parameters of screen Value be adjusted to preset value.Under eyeshield pattern, detect to dwelling period whether user uses asthenopia.Wherein display parameters can With but be not limited to include:The light luminance of screen, flicker frequency, colour temperature etc..
305, when acquisition detects user's asthenopia, the target time duration of this bright screen;
306, when the target time duration be more than first preset time when, by the target time duration be set as this first Preset time;
307, when the target time duration is equal to first preset time, if the value of first preset time be not this The value of first preset time is then reverted to the initial value by the initial value of one preset time;
Specifically, the target time duration of this bright screen when detecting user's asthenopia is obtained, if the target Continuous Time is more than first preset time, then illustrates that the physical condition of user is preferable, be not easily tied with eye, the first preset time is set That sets is too short, then sets the target time duration to first preset time.
If the target time duration is equal to first preset time, judge whether the value of the first preset time is initial Value, if not initial value, then the case where illustrating that the first preset time is modified, and changing is because the first preset time is set Set too short and extended.Passing through the first preset time after this bright screen, when being just triggered with asthenopia detection, is just detecting To user's asthenopia, illustrate that the physical condition of user is bad, the first preset time setting it is long, then by first it is default when Between value reply be initial value.
As an example it is assumed that the initial value of the first preset time is 3 hours.If being detected by 4 hours when the bright screen of n-th First preset time is then revised as 4 hours by user's asthenopia, when the N+1 times bright screen, is opened from the 4th hour after bright screen Beginning is periodically detected whether user uses asthenopia, if at this point, be just detected by user's asthenopia in the 4th hour, it will First preset time reverts to 3 hours.
Like this, right by the target time duration according to this bright screen when detecting user's asthenopia each time First preset time is adjusted into Mobile state, and the physical condition that the trigger condition detected with asthenopia more meets user may make to become Change, it is more intelligent, and the power consumption caused by frequently detected with asthenopia can be reduced, reduction asthenopia is detected to being The influence for normal operation of uniting.
308, when the duration of this bright screen being more than the second preset time, the eyeshield pattern is opened in control.
When the duration of this bright screen of the first timer statistics being more than the second preset time, regardless of whether detecting User's asthenopia, control open eyeshield pattern, detect to dwelling period whether user uses asthenopia under eyeshield pattern, with Power consumption is reduced while protecting user's eyesight.
Optionally, when eyeshield pattern is opened in control, the present intensity value of screen can be first obtained, then working as according to acquisition Preceding brightness value, determines the desired value of the display parameters of corresponding with the brightness value of the acquisition screen, then by the display of the screen The value of parameter is adjusted to the desired value.
It should be understood that adapt to the needs of different external ambient lights, the brightness of screen of electronic device can be according to environment The Strength Changes adjust automatically of light, eyeshield pattern is possible to clash with the present intensity of screen, to influence normal use, For example, the light intensity on outdoor daytime is bigger, the brightness of screen is usually relatively low, if the corresponding brightness of eyeshield pattern is higher than screen The present intensity of curtain, then can cause user not see screen.To avoid the generation of the above situation, difference is preset in an electronic The value of multigroup display parameters corresponding from different brightness values, when eyeshield pattern is opened in control, according to the present intensity value of screen Determine the value with the most matched display parameters of current environment brightness, thus under the premise of ensureing the normal use of electronic device, Achieve the purpose that protect user's eyesight.
Optionally, after the eyeshield pattern is opened in control, next time when bright screen, judge the screen that goes out for the last time before bright screen Whether the duration is more than preset durations.If more than preset durations, then illustrate that the eyes of user have obtained centainly Rest, then exits eyeshield pattern, display parameters is reverted to initial value, and execute step 301 and subsequent step, until again Eyeshield pattern is opened in control.If being not more than preset durations, illustrate that the eyes rest of user is inadequate, it may be also in fatigue State keeps eyeshield pattern in being to continue with.
The method that eyeshield pattern is opened in control provided in this embodiment, by will be detected and the bright screen duration with asthenopia It is combined, on the one hand may make the opportunity of control unlatching eyeshield pattern more to meet the practical of user and use eye situation, on the other hand may be used The problem for avoiding the power consumption caused by frequently being detected with asthenopia excessive, to which the intelligence of eyeshield scheme control unlatching can be improved Degree achievees the effect that effective protection user's eyesight.
Referring to Fig. 4, the structural schematic diagram of the electronic device provided for one embodiment of the application.The electronic device can be used for Realize the method that eyeshield pattern is opened in the control that above-mentioned embodiment illustrated in fig. 2 provides.As shown in figure 4, the electronic device mainly wraps It includes:
Detection module 401 is used for whenever the bright screen of the electronic device, if the duration of this bright screen is more than first default Time, then periodically detect whether user uses asthenopia;
Control module 402, for when detection module 401 detects user's asthenopia, eyeshield pattern to be opened in control;
Control module 402 is additionally operable to when the duration of this bright screen being more than the second preset time, and the shield is opened in control Eye pattern.
Specifically, being provided with the first timer and the second timer in electronic device, the first timer is for counting primary The duration of bright screen.Second timer is applied to periodically detect whether user uses asthenopia.Whenever the bright screen of electronic device When, the first timer starts timing, to count the duration of this bright screen.It is more than first when the time of the first timer statistics When preset time, detection trigger module 401 detects whether user uses asthenopia, if user is not tired with eye, the second meter of triggering When device start timing.Then, when the timing of the second timer is more than the preset detection cycle corresponding time (e.g., 30 minutes) When, detection trigger module 401 detects whether user uses asthenopia, if user is not tired with eye, detection trigger module 401 again Second timer restarts timing, so moves in circles, until detection module 401 detects user's asthenopia, alternatively, directly The duration of this bright screen counted to the first timer is more than the second preset time, and trigger control module 402 opens eyeshield Pattern.
It should be understood that when electronic device goes out screen (that is, extinguishing screen) or control unlatching eyeshield pattern, the first timer Stop timing with the second timer, and reset or restore initial value (when countdown).Work as electricity
Sub-device again bright screen when, the first timer restarts timing.Electronic device goes out screen can going out based on user Screen operates or because being more than the screen that goes out automatically due to user's operation is not detected in preset duration.Screen operation of wherein going out such as user presses for touching Send out the shortcut key for the screen that goes out.
Optionally, the first timer and the second timer can also be countdown.
Optionally, eyeshield pattern is opened in the control of control module 402, and the value of the display parameters of screen is adjusted to preset value. No longer periodically detect whether user uses asthenopia under eyeshield pattern.Wherein display parameters can be, but not limited to include:Screen Light luminance, flicker frequency, colour temperature etc..
It should be noted that in the embodiment of the exemplary electronic device of figure 4 above, the division of each function module is only to lift Example explanation, can be as needed in practical application, such as the convenient of realization of the configuration requirement or software of corresponding hardware considers, And complete above-mentioned function distribution by different function modules, i.e., the internal structure of electronic device is divided into different function moulds Block, to complete all or part of the functions described above.Moreover, in practical applications, the corresponding function in the present embodiment Module can also be executed corresponding software by corresponding hardware realization by corresponding hardware and be completed.This specification provides Each embodiment all can apply foregoing description principle, repeat no more below.
The detailed process of the respective function of each Implement of Function Module, refers to above-mentioned figure in electronic device provided in this embodiment Particular content described in 2 illustrated embodiments, details are not described herein again.
Electronic device provided in this embodiment is combined by that will be detected with asthenopia with the bright screen duration, on the one hand It may make the opportunity of control unlatching eyeshield pattern more to meet the practical of user and use eye situation, on the other hand can avoid because frequently using eye The excessive problem of power consumption caused by fatigue detecting reaches effective to which the intelligence degree of eyeshield scheme control unlatching can be improved Protect the effect of user's eyesight.
Referring to Fig. 5, the structural schematic diagram of the electronic device provided for another embodiment of the application.The electronic device is available In the method for realizing that eyeshield pattern is opened in the control that above-mentioned Fig. 2 and embodiment illustrated in fig. 3 are provided.Electronic device as shown in fig. 4 Unlike, in this present embodiment,
Further, which further includes:
Acquisition module 501, when detecting user's asthenopia for obtaining, the target time duration of this bright screen;
Setup module 502 is used for when the target time duration is more than first preset time, by the target time duration It is set as first preset time;
Setup module 502, be additionally operable to when the target time duration be equal to first preset time when, if this first it is default when Between value be not first preset time initial value, then the value of first preset time is reverted into the initial value.
Optionally, setup module 502, be additionally operable to according to the initial value of the first preset time of setting operation setting of user with And detection cycle.
Further, which further includes:
Determining module 503 is used for whenever the bright screen of the electronic device, from preset multiple environmental parameters and multiple initial values Between correspondence in, determine the initial value of corresponding first preset time of the environmental parameter of this bright screen, environment ginseng Number includes:The position of the electronic device when time point of bright screen and bright screen;
Sending module 504, for system time, the electronic device when will detect user's asthenopia position with And the duration of this bright screen is sent to server;
Analysis module 505, for obtaining multiple and different users in the fatigue in different time and place by the server Between information data, analyze multiple and different users of acquisition in the information data of the tired time in different time and place, obtain Correspondence between multiple environmental parameter and multiple initial values.
Specifically, analysis module 505 by the server obtain multiple and different users different time and place fatigue The information data of time is analyzed multiple and different users of acquisition in the information data of the tired time in different time and place, is obtained Correspondence between multiple environmental parameter and multiple initial values.Fatigue of multiple and different users in different time and place The information data of time includes:Multiple and different users are when being detected with asthenopia, for executing whether detection user uses eye The location of the system time of equipment of fatigue operation, the equipment and when detecting with asthenopia the equipment it is current bright The duration of screen.It in practical applications, can be by dividing the period position different with differentiation, and to same period and position Duration of the current bright screen of the multiple users set carries out the mode of average computation, obtain multiple environmental parameters with it is multiple initial Correspondence between value.
Further, detection module 401 are additionally operable to that the shadow for the eye that photographic device shoots the user is invoked periodically Picture obtains the path line of the eyeball of the user from the image, between the path line compared and preset standard gauge trace Similarity, and if the similarity be less than default similarity, it is determined that user's asthenopia opens the eyeshield pattern;
Detection module 401 is additionally operable to periodically by the interior human eye information identification sensor set or external asthenopia inspection Device is surveyed, detects whether the user uses asthenopia, and when detecting user's asthenopia, the eyeshield pattern is opened in control;
Control module 402 is additionally operable to obtain the present intensity value of screen, according to the present intensity value of acquisition, determines and is somebody's turn to do The desired value of the display parameters of the corresponding screen of brightness value of acquisition, and the value of the display parameters of the screen is adjusted to this Desired value;
Control module 402, whether the duration for the screen that is additionally operable to judge in bright screen next time to go out for the last time before bright screen More than preset durations, if more than preset durations, if then exiting the eyeshield pattern, simultaneously the execution of detection trigger module 401 should The duration of this bright screen is more than the first preset time, then periodically detects the step of whether user is with asthenopia, and If being not more than preset durations, continue to keep the eyeshield pattern.
The detailed process of the respective function of each Implement of Function Module, refers to above-mentioned figure in electronic device provided in this embodiment 2 to the particular content described in embodiment illustrated in fig. 4, and details are not described herein again.
Electronic device provided in this embodiment is combined by that will be detected with asthenopia with the bright screen duration, on the one hand It may make the opportunity of control unlatching eyeshield pattern more to meet the practical of user and use eye situation, on the other hand can avoid because frequently using eye The excessive problem of power consumption caused by fatigue detecting reaches effective to which the intelligence degree of eyeshield scheme control unlatching can be improved Protect the effect of user's eyesight.
Referring to Fig. 6, Fig. 6 is the hardware architecture diagram for the electronic device that one embodiment of the application provides.
Electronic device described in the present embodiment, including:
Memory 701, processor 702 and it is stored in the computer journey that can be run on memory 701 and on processor 702 Sequence when processor 702 executes the computer program, realizes that eyeshield is opened in the control described in earlier figures 2 and embodiment illustrated in fig. 3 The method of pattern.
Further, which further includes:
At least one input equipment 703 and at least one output equipment 704.
Above-mentioned memory 701, processor 702, input equipment 703 and output equipment 704, are connected by bus 705.
Wherein, input equipment 703 concretely camera, touch panel, physical button or mouse etc..Output equipment 704 concretely display screens.
Memory 701 can be high random access memory body (RAM, Random Access Memory) memory, Can be non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 701 is for storing one Group executable program code, processor 702 are coupled with memory 701.
Further, the embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable storages Medium can be disposed in the electronic device in the various embodiments described above, which can be earlier figures 6 Memory in illustrated embodiment.It is stored with computer program on the computer readable storage medium, which is held by processor The method that eyeshield pattern is opened in the control described in earlier figures 2 and embodiment illustrated in fig. 3 is realized when row.Further, the calculating Machine can storage medium can also be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), RAM, magnetic disc or The various media that can store program code such as person's CD.
In several embodiments provided herein, it should be understood that disclosed electronic device and method, Ke Yitong Other modes are crossed to realize.For example, the apparatus embodiments described above are merely exemplary, for example, the module is drawn Point, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple module or components can To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for The mutual coupling, direct-coupling or communication connection of opinion can be the INDIRECT COUPLING by some interfaces, device or module Or communication connection, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separated, aobvious as module The component shown may or may not be physical module, you can be located at a place, or may be distributed over multiple On network module.Some or all of module therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each function module in each embodiment of the application can be integrated in a processing module, it can also That modules physically exist alone, can also two or more modules be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and sells or use as independent product When, it can be stored in a computer read/write memory medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a readable storage medium storing program for executing, including some instructions are used so that a meter It calculates machine equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment the method for the application All or part of step.And readable storage medium storing program for executing above-mentioned includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. The various media that can store program code.
It should be noted that for each method embodiment above-mentioned, describe, therefore it is all expressed as a series of for simplicity Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps may be used other sequences or be carried out at the same time.Secondly, those skilled in the art should also know It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this Shens It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
It is method, electronic device and the computer-readable storage that eyeshield pattern is opened to control provided herein above The description of medium in specific implementation mode and applies model for those skilled in the art according to the thought of the embodiment of the present application There will be changes are placed, to sum up, the contents of this specification should not be construed as limiting the present application.

Claims (14)

1. a kind of method that eyeshield pattern is opened in control, is applied in electronic device, which is characterized in that the method includes:
Whenever the bright screen of the electronic device, if the duration of this bright screen is more than the first preset time, periodically examine Survey whether user uses asthenopia, and when detecting user's asthenopia, eyeshield pattern is opened in control;
When the duration of this bright screen being more than the second preset time, the eyeshield pattern is opened in control.
2. the method as described in claim 1, which is characterized in that described when detecting user's asthenopia, control is opened After opening eyeshield pattern, including:
When acquisition detects user's asthenopia, the target time duration of this bright screen;
When the target time duration is more than first preset time, the target time duration is set as described first Preset time;
When the target time duration is equal to first preset time, if the value of first preset time is not described the The value of first preset time is then reverted to the initial value by the initial value of one preset time.
3. method as claimed in claim 1 or 2, which is characterized in that the method further includes:
Whenever the bright screen of the electronic device, from the correspondence between preset multiple environmental parameters and multiple initial values, Determine that the initial value of corresponding first preset time of the environmental parameter of this bright screen, the environmental parameter include:Bright screen The position of electronic device when time point and bright screen.
4. method as claimed in claim 3, which is characterized in that described when detecting user's asthenopia, control is opened After opening eyeshield pattern, including:
It will detect system time, the position of the electronic device and continuing for this bright screen when user's asthenopia Time is sent to server;
The method further includes:
By the server obtain multiple and different users the tired time in different time and place information data;
Multiple and different users that analysis obtains obtain the multiple ring in the information data of the tired time in different time and place Correspondence between border parameter and multiple initial values.
5. the method as described in claim 1, which is characterized in that it is described to periodically detect whether user uses asthenopia, and work as When detecting user's asthenopia, eyeshield pattern is opened in control, including:
The image that photographic device shoots the eye of the user is invoked periodically;
The path line of the eyeball of the user is obtained from the image;
Similarity between the path line compared and preset standard gauge trace;
If the similarity is less than default similarity, it is determined that user's asthenopia opens the eyeshield pattern.
6. the method as described in claim 1, which is characterized in that it is described to periodically detect whether user uses asthenopia, and work as When detecting user's asthenopia, eyeshield pattern is opened in control, including:
Periodically by the interior human eye information identification sensor set or exterior ocular fatigue detection device, whether the user is detected With asthenopia, and when detecting user's asthenopia, the eyeshield pattern is opened in control.
7. the method as described in claim 1, which is characterized in that the control opens the eyeshield pattern and includes:
Obtain the present intensity value of screen;
According to the present intensity value of acquisition, the target of the display parameters of the screen corresponding with the brightness value of the acquisition is determined Value;
The value of the display parameters of the screen is adjusted to the desired value.
8. the method as described in claim 1, which is characterized in that after the eyeshield pattern is opened in the control, including:
In bright screen next time, whether the duration for the screen that judges to go out for the last time before bright screen is more than preset durations;
If more than preset durations, if it is more than the then to exit the eyeshield pattern and execute the duration of this bright screen One preset time then periodically detects the step of whether user is with asthenopia;
If being not more than preset durations, continue to keep the eyeshield pattern.
9. a kind of electronic device, which is characterized in that the electronic device includes:
Detection module is used for whenever the bright screen of the electronic device, if the duration of this bright screen is more than the first preset time, Then periodically detect whether user uses asthenopia;
Control module, for when the detection module detects user's asthenopia, eyeshield pattern to be opened in control;
The control module is additionally operable to when the duration of this bright screen being more than the second preset time, and the shield is opened in control Eye pattern.
10. electronic device as claimed in claim 9, which is characterized in that the electronic device further includes:
Acquisition module, when detecting user's asthenopia for obtaining, the target time duration of this bright screen;
Setup module is used for when the target time duration is more than first preset time, by the target time duration It is set as first preset time;
The setup module is additionally operable to when the target time duration is equal to first preset time, if described first is pre- If the value of time is not the initial value of first preset time, then the value of first preset time is reverted to described initial Value.
11. the electronic device as described in claim 9 or 10, which is characterized in that the electronic device further includes:
Determining module is used for whenever the bright screen of the electronic device, between preset multiple environmental parameters and multiple initial values Correspondence in, determine the initial value of corresponding first preset time of the environmental parameter of this bright screen, the environment ginseng Number includes:The position of the electronic device when time point of bright screen and bright screen;
Sending module, for system time, the electronic device when will detect user's asthenopia position and The duration of this bright screen is sent to server;
Analysis module, for by the server obtain multiple and different users the tired time in different time and place letter Data are ceased, multiple and different users of acquisition is analyzed in the information data of the tired time in different time and place, obtains described more Correspondence between a environmental parameter and multiple initial values.
12. electronic device as claimed in claim 9, which is characterized in that
The detection module is additionally operable to that the image for the eye that photographic device shoots the user is invoked periodically, from the shadow The path line of the eyeball of the user is obtained as in, it is similar between the path line compared and preset standard gauge trace Degree, and if the similarity be less than default similarity, it is determined that user's asthenopia opens the eyeshield pattern;
The detection module is additionally operable to fill periodically by the interior human eye information identification sensor set or exterior ocular fatigue detecting It sets, detects whether the user uses asthenopia, and when detecting user's asthenopia, the eyeshield mould is opened in control Formula;
The control module is additionally operable to obtain the present intensity value of screen, and according to the present intensity value of acquisition, determination is obtained with described The desired value of the display parameters of the corresponding screen of brightness value taken, and the value of the display parameters of the screen is adjusted to The desired value;
Whether the duration of the control module, the screen that is additionally operable to judge in bright screen next time to go out for the last time before bright screen is big In preset durations, if more than preset durations, then the eyeshield pattern is exited and triggers the detection module executing institute If the duration for stating this bright screen is more than the first preset time, the step of whether user is with asthenopia is periodically detected, And if no more than preset durations, continuing to keep the eyeshield pattern.
13. a kind of electronic device, including:It memory, processor and is stored on the memory and can be on the processor The computer program of operation, which is characterized in that when the processor executes the computer program, realize in claim 1 to 8 Any one described in control open eyeshield pattern method.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program When being executed by processor, the method that eyeshield pattern is opened in the control described in any one in claim 1 to 8 is realized.
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 true CN108346394A (en) 2018-07-31
CN108346394B 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)

Cited By (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
CN112954242A (en) * 2021-01-27 2021-06-11 广州朗国电子科技有限公司 Eye protection control method and device for television, television and storage medium
CN113190197A (en) * 2021-04-28 2021-07-30 歌尔股份有限公司 Head-mounted device, control method thereof, and computer-readable storage medium
WO2022059739A1 (en) * 2020-09-17 2022-03-24 日本電気株式会社 Display control system, display control method, and recording medium

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110279277A1 (en) * 2008-11-17 2011-11-17 Roger Li-Chung Vision protection method and system thereof
CN103325358A (en) * 2012-03-23 2013-09-25 宇龙计算机通信科技(深圳)有限公司 Terminal and method for controlling display effect of terminal
US20140267027A1 (en) * 2008-11-17 2014-09-18 Roger Li-Chung Wu Vision Protection Method and System Thereof
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 广东小天才科技有限公司 Eye fatigue detection method and device and 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 广东小天才科技有限公司 Eye fatigue reminding method and user terminal

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110279277A1 (en) * 2008-11-17 2011-11-17 Roger Li-Chung Vision protection method and system thereof
US20140267027A1 (en) * 2008-11-17 2014-09-18 Roger Li-Chung Wu Vision Protection Method and System Thereof
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 广东小天才科技有限公司 Eye fatigue detection method and device and 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 广东小天才科技有限公司 Eye fatigue reminding method and user terminal

Cited By (8)

* 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
WO2022059739A1 (en) * 2020-09-17 2022-03-24 日本電気株式会社 Display control system, display control method, and recording medium
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
CN113190197A (en) * 2021-04-28 2021-07-30 歌尔股份有限公司 Head-mounted device, control method thereof, and computer-readable storage medium

Also Published As

Publication number Publication date
CN108346394B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN108346394A (en) Method, electronic device and the computer readable storage medium of eyeshield pattern are opened in control
CN106446786B (en) Fingerprint identification method, fingerprint identification device and terminal device
CN108520241B (en) Fingerprint acquisition method and device based on optical fingerprint technology and user terminal
CN103676604B (en) Watch and running method thereof
CN105679253B (en) A kind of terminal backlight adjusting method and device
CN105072258B (en) Scene modes of mobile terminal switching method, device and mobile terminal
CN107945733B (en) Brightness of display screen method of adjustment, device, storage medium and electronic equipment
CN111966224A (en) Eye protection mode prompting method and device, electronic equipment and storage medium
CN107861857A (en) Screen virtual shade control method, device and terminal device in a kind of terminal device
CN106200904A (en) A kind of gesture identifying device, electronic equipment and gesture identification method
CN109218621A (en) Image processing method, device, storage medium and mobile terminal
CN108881875A (en) Image white balancing treatment method, device, storage medium and terminal
CN106551679A (en) Mobile terminal and temperature measurement method based on mobile terminal
CN108496173A (en) Electronic equipment and its face recognition method
CN108601069A (en) One kind putting out screen clock control method, system and terminal device
CN107194232A (en) Solve lock control method, device, computer installation and computer-readable recording medium
JP7073607B2 (en) Grain identification methods, devices and computer storage media
CN108833695A (en) Control method, control device, electronic device, computer storage medium and equipment
CN105549927A (en) Display method and terminal
CN106333642B (en) A kind of dynamic visual acuity tester and its test method
CN106293421B (en) Control method and mobile terminal
CN112153292A (en) Shooting method and device and electronic equipment
CN107657221A (en) A kind of facial information acquisition method and relevant device
CN115793918A (en) Wallpaper display method and device and electronic equipment
TW201227469A (en) Implement methods of an interactive multi-media bathroom mirror touch display system

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20220308

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