[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN115756286A - Display screen brightness control method and device, electronic equipment and readable storage medium - Google Patents

Display screen brightness control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115756286A
CN115756286A CN202211469565.5A CN202211469565A CN115756286A CN 115756286 A CN115756286 A CN 115756286A CN 202211469565 A CN202211469565 A CN 202211469565A CN 115756286 A CN115756286 A CN 115756286A
Authority
CN
China
Prior art keywords
state
motion
display screen
optical
determining
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.)
Pending
Application number
CN202211469565.5A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211469565.5A priority Critical patent/CN115756286A/en
Publication of CN115756286A publication Critical patent/CN115756286A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure provides a display screen brightness control method, a display screen brightness control device, an electronic device and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of determining the environment state of the terminal device according to optical parameters collected by an optical sensor and/or motion parameters collected by the motion sensor, responding to the switching of the environment state, determining a target adjusting mode of the brightness of the display screen according to the difference of the optical parameters collected by the optical sensor before and after the switching of the environment state, and adjusting the brightness value of the display screen according to the target adjusting mode and the optical parameters. The utility model discloses make the user switch and when the ambient light difference is great indoor outer, the brightness adjustment process of display screen and user's vision adaptation process can rationally match, and the user of being convenient for still can conveniently read the demonstration content of display screen after the environmental condition switches.

Description

Display screen brightness control method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of display screen control technologies, and in particular, to a display screen brightness control method and apparatus, an electronic device, and a readable storage medium.
Background
Currently, in order to enable a user to clearly read display contents of a display screen under different ambient brightness, a terminal device is usually provided with an automatic brightness adjustment function, that is, a brightness value of the display screen is adjusted according to optical parameters acquired by an optical sensor. However, the terminal device usually only adopts the same adjustment mode to adjust the brightness, and when the user performs indoor and outdoor switching and the difference between the brightness and the brightness of the ambient light is large, the brightness adjustment process of the display screen is difficult to match with the visual adaptation process of the user, so that the user is not convenient to read the display content of the display screen.
Disclosure of Invention
In view of the above, the present disclosure provides a method, an apparatus, an electronic device and a readable storage medium for controlling brightness of a display screen, so as to solve at least the problems in the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a display screen brightness control method applied to a terminal device provided with an optical sensor, a motion sensor, and a display screen, the method including:
determining the environment state of the terminal equipment according to the optical parameters acquired by the optical sensor and/or the motion parameters acquired by the motion sensor, wherein the environment state comprises an indoor state or an outdoor state;
responding to the switching of the environment state, and determining a target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state;
and adjusting the brightness value of the display screen according to the target adjusting mode and the optical parameters.
With reference to any embodiment of the present disclosure, the determining an environmental status of a terminal device according to a motion parameter acquired by a motion sensor includes:
at each first sampling moment, inputting motion parameters acquired by a motion sensor within a first sampling duration into a first neural network to obtain a classification result of a motion state at the current moment, wherein the motion state represents a vehicle taken by a user or a motion type executed by the user, and the classification result comprises a type and a probability value of an initial motion state;
at each second sampling moment, determining the target motion state at the current moment according to the motion state classification results of a plurality of first sampling moments in the second sampling duration;
and at each third sampling moment, inputting the target motion states of a plurality of second sampling moments within the third sampling duration into the second neural network to obtain the environmental state of the terminal equipment at the current moment.
In combination with any of the embodiments of the present disclosure, the first neural network includes a first type of neural network and a second type of neural network;
before inputting the motion parameters acquired by the motion sensor for the first sampling duration into the first neural network, the method further comprises:
at each first sampling moment, inputting the motion parameters acquired by the motion sensor in the first sampling duration into a third neural network to obtain a preliminary classification result of the motion state, wherein the preliminary classification result comprises relative stillness or relative motion;
the step of inputting the motion parameters collected by the motion sensor in the first sampling duration to the first neural network to obtain the classification result of the motion state at the current moment includes:
in response to the fact that the preliminary classification result is relatively static, inputting motion parameters acquired by a motion sensor in a first sampling time length to a first class neural network to obtain a classification result of the motion state at the current moment;
and responding to the relative motion of the preliminary classification result, inputting the motion parameters acquired by the motion sensor in the first sampling time length to a second type of neural network, and obtaining the classification result of the motion state at the current moment.
With reference to any embodiment of the present disclosure, after determining the current target motion state, the method further includes:
acquiring a preset reference range of a motion parameter corresponding to the current target motion state;
and determining the target motion state at the current moment again in response to the fact that the motion parameter corresponding to the target motion state is not in the preset reference range.
In combination with any embodiment of the present disclosure, the determining the environmental status of the terminal device according to the optical parameter collected by the optical sensor includes:
responding to the optical parameters exceeding the first parameter threshold value in the first preset time, and determining that the current environmental state of the terminal equipment is an outdoor state or;
and responding to the situation that no optical parameter exceeding a second parameter threshold exists within a second preset time length, and determining that the current environmental state of the terminal equipment is an indoor state.
With reference to any embodiment of the present disclosure, the determining, in response to the switching of the environmental state, a target adjustment mode of the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after the switching of the environmental state includes:
determining a first adjusting mode corresponding to a first mapping relation as the target adjusting mode under the condition that the optical parameter difference is smaller than a first threshold value;
determining a second adjustment mode corresponding to a second mapping relation as the target adjustment mode under the condition that the optical parameter difference is not smaller than a first threshold value and the optical parameter after the environmental state is switched is smaller than the optical parameter before the environmental state is switched, wherein the average change rate of the second mapping relation is smaller than the first mapping relation;
and under the condition that the optical parameter difference is not less than a first threshold value and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, determining a third adjusting mode corresponding to a third mapping relation as the target adjusting mode, wherein the average change rate of the third mapping relation is greater than the first mapping relation.
With reference to any embodiment of the present disclosure, the rate of change of the brightness value of the display screen corresponding to the second adjustment mode is lower than that of the first adjustment mode, and the rate of change of the brightness value of the display screen corresponding to the third adjustment mode is higher than that of the first adjustment mode.
In combination with any embodiment of the present disclosure, the method further comprises:
and responding to the terminal equipment switched from an indoor state to an outdoor state, and performing accelerated correction on the change rate of the brightness value of the display screen in the target adjusting mode.
In combination with any embodiment of the present disclosure, the method further comprises:
and in response to the terminal equipment being switched from the outdoor state to the indoor state, carrying out deceleration correction on the change rate of the brightness value of the display screen in the target adjustment mode.
In combination with any embodiment of the present disclosure, the method further comprises:
training a third neural network to converge by using the brightness value of the display screen set by the user under different environmental states and optical parameters;
the responding to the switching of the environment state, and determining the target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state comprises the following steps:
and inputting the current environmental state switching result and the optical parameter difference into the third neural network to obtain a target adjusting mode corresponding to the current environmental state switching result and the optical parameter difference change result.
According to a second aspect of the embodiments of the present disclosure, there is provided a display screen brightness control apparatus applied to a terminal device provided with an optical sensor, a motion sensor, and a display screen, the apparatus including:
an environmental state determination module to: determining the environment state of the terminal equipment according to the optical parameters acquired by the optical sensor and/or the motion parameters acquired by the motion sensor, wherein the environment state comprises an indoor state or an outdoor state;
an adjustment mode determination module to: responding to the switching of the environment state, and determining a target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state;
a brightness adjusting module: and adjusting the brightness value of the display screen according to the target adjusting mode and the optical parameters.
With reference to any embodiment of the present disclosure, when determining the environmental state of the terminal device according to the motion parameters acquired by the motion sensor, the environmental state determination module is specifically configured to:
at each first sampling moment, inputting motion parameters acquired by a motion sensor within a first sampling duration into a first neural network to obtain a classification result of a motion state at the current moment, wherein the motion state represents a vehicle taken by a user or a motion type executed by the user, and the classification result comprises a type and a probability value of an initial motion state;
at each second sampling moment, determining the target motion state at the current moment according to the motion state classification results of a plurality of first sampling moments in the second sampling duration;
and at each third sampling moment, inputting the target motion states of a plurality of second sampling moments within the third sampling duration into the second neural network to obtain the environmental state of the terminal equipment at the current moment.
In combination with any of the embodiments of the present disclosure, the first neural network includes a first type of neural network and a second type of neural network;
before inputting the motion parameters acquired by the motion sensor in the first sampling time period into the first neural network, the device further comprises a pre-classification module for:
at each first sampling moment, inputting the motion parameters acquired by the motion sensor in the first sampling duration into a third neural network to obtain a preliminary classification result of the motion state, wherein the preliminary classification result comprises relative stillness or relative motion;
the step of inputting the motion parameters collected by the motion sensor in the first sampling duration to the first neural network to obtain the classification result of the motion state at the current moment includes:
in response to the fact that the preliminary classification result is relatively static, inputting motion parameters acquired by a motion sensor in a first sampling time length to a first class neural network to obtain a classification result of the motion state at the current moment;
and responding to the relative motion of the preliminary classification result, inputting the motion parameters acquired by the motion sensor in the first sampling time length to a second type of neural network, and obtaining the classification result of the motion state at the current moment.
With reference to any embodiment of the present disclosure, after determining the current target motion state, the apparatus further includes a checking module, configured to:
acquiring a preset reference range of a motion parameter corresponding to the motion state of a current target;
and determining the target motion state at the current moment again in response to the fact that the motion parameter corresponding to the target motion state is not in the preset reference range.
With reference to any embodiment of the present disclosure, when determining the environmental status of the terminal device according to the optical parameter acquired by the optical sensor, the environmental status determining module is specifically configured to:
responding to the optical parameters exceeding the first parameter threshold value in the first preset time, and determining that the current environmental state of the terminal equipment is an outdoor state or;
and responding to the situation that no optical parameter exceeding a second parameter threshold exists within a second preset time length, and determining that the current environmental state of the terminal equipment is an indoor state.
With reference to any embodiment of the present disclosure, when the adjustment mode determination module determines, in response to the switching of the environmental state, a target adjustment mode of the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after the switching of the environmental state, the adjustment mode determination module is specifically configured to:
determining a first adjusting mode corresponding to a first mapping relation as the target adjusting mode under the condition that the optical parameter difference is smaller than a first threshold value;
determining a second adjustment mode corresponding to a second mapping relation as the target adjustment mode under the condition that the optical parameter difference is not smaller than a first threshold value and the optical parameter after the environmental state is switched is smaller than the optical parameter before the environmental state is switched, wherein the average change rate of the second mapping relation is smaller than the first mapping relation;
and under the condition that the optical parameter difference is not less than a first threshold value and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, determining a third adjusting mode corresponding to a third mapping relation as the target adjusting mode, wherein the average change rate of the third mapping relation is greater than the first mapping relation.
With reference to any embodiment of the present disclosure, the rate of change of the brightness value of the display screen corresponding to the second adjustment mode is lower than that of the first adjustment mode, and the rate of change of the brightness value of the display screen corresponding to the third adjustment mode is higher than that of the first adjustment mode.
In combination with any embodiment of the present disclosure, the apparatus further includes an acceleration correction module configured to:
and in response to the terminal equipment being switched from an indoor state to an outdoor state, carrying out accelerated correction on the change rate of the brightness value of the display screen in the target adjustment mode.
In combination with any embodiment of the present disclosure, the apparatus further includes a deceleration correction module configured to:
and in response to the terminal equipment being switched from the outdoor state to the indoor state, carrying out deceleration correction on the change rate of the brightness value of the display screen in the target adjustment mode.
In combination with any embodiment of the present disclosure, the apparatus further includes a personalized learning module configured to:
training a third neural network to converge by using the brightness value of the display screen set by the user under different environmental states and optical parameters;
when the adjustment mode determining module switches in response to the environmental state and determines a target adjustment mode of the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after the environmental state is switched, the adjustment mode determining module is specifically configured to:
and inputting the current environmental state switching result and the optical parameter difference into the third neural network to obtain a target adjusting mode corresponding to the current environmental state switching result and the optical parameter difference change result.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a memory for storing the processor-executable instructions;
a processor configured to execute the executable instructions in the memory to implement the steps of the method of any of the embodiments of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method according to any of the embodiments of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of determining the environmental state of the terminal equipment through optical parameters acquired by an optical sensor and/or motion parameters acquired by a motion sensor, determining a target adjusting mode of the brightness of the display screen according to the difference of the optical parameters acquired by the optical sensor before and after the environmental state is switched when the environmental state is switched, so that when a user performs indoor and outdoor switching and the difference of the brightness of ambient light is large, the brightness adjusting process of the display screen can be reasonably matched with the visual adaptation process of the user, and the user can still conveniently read the display content of the display screen after the environmental state is switched.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a method for display screen brightness control according to an exemplary embodiment of the present disclosure;
FIG. 2 is a schematic illustration of an adjustment mode shown in accordance with an exemplary embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating an environmental status determination method according to an exemplary embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a display screen brightness control apparatus according to an exemplary embodiment of the present disclosure;
FIG. 5 is a block diagram of an electronic device shown in accordance with an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
In order to enable a user to clearly read display contents of the display screen under different ambient brightness, the terminal device is usually provided with an automatic brightness adjustment function, that is, the brightness value of the display screen is adjusted according to optical parameters acquired by the optical sensor. However, the terminal device usually only adopts the same adjusting mode to adjust the brightness, and when the user performs indoor and outdoor switching and the difference of the ambient light and shade is large, the brightness adjusting process of the display screen is difficult to match with the visual adaptation process of the user.
For example: when terminal equipment is switched indoors and outdoors, after being switched to the strong light environment from the weak light environment, the brightness of the display screen is not improved to a high degree, so that a user cannot read information of the display screen under the strong light environment, or after being switched to the weak light environment from the strong light environment, the brightness of the display screen is reduced to a high degree, so that the user cannot read information of the display screen before being adapted to the weak light environment. Or, when the user does not perform indoor and outdoor switching, the brightness of the display screen is changed only when the terminal device changes the posture and receives strong light or weak light, which still affects the user to read the information of the display screen and reduces the user experience.
In view of the above, the present disclosure provides a method for controlling brightness of a display screen to solve at least the problems in the related art.
The method is applied to the terminal equipment provided with the optical sensor, the motion sensor and the display screen. For example, the optical sensor may include a sensor capable of acquiring optical parameters and reflecting the intensity of ambient light, such as front and back light senses of the terminal device, and the motion sensor may include a sensor capable of acquiring acceleration of the terminal device along a spatial coordinate system and inertial parameters, such as an imu (inertial measurement unit) sensor.
Fig. 1 illustrates a flowchart of a display screen brightness control method according to an exemplary embodiment of the present disclosure.
In step S101, an environmental status of the terminal device is determined according to the optical parameter collected by the optical sensor and/or the motion parameter collected by the motion sensor, where the environmental status includes an indoor status or an outdoor status.
In one example, the environmental state in which the terminal device is located may be determined from the values of the optical parameters collected by the optical sensor.
For example, in response to that the optical parameter exceeding the first parameter threshold exists within the first preset time period, the environmental state of the terminal device at the current moment is determined to be the outdoor state. That is, it can be determined that the terminal device is located outdoors in the presence of strong ambient light in the environment in which the terminal device is located. For example, the environmental status of the terminal device at the current time may be determined to be the outdoor status in the case that the ambient light having the illuminance value greater than 2000l ux occurs at least once within 1mi n.
And in response to the fact that the optical parameters exceeding the second parameter threshold do not exist within the second preset time, determining that the current environmental state of the terminal equipment is an indoor state. That is, it can be determined that the terminal device is located indoors under the condition that the ambient light of the terminal device is dim within a certain time. For example, the environmental status of the terminal device at the current time may be determined to be the indoor status in the case that no ambient light with an illuminance value greater than 20lux appears within 20 s.
In another example, the environment state of the terminal device can be determined according to the motion parameters acquired by the motion sensor.
For example, the characteristic value of the motion parameter acquired by the I MU sensor within the preset time may be compared with the characteristic value corresponding to the preset indoor and outdoor environment to determine the environmental state of the terminal device. Further, the motion parameters collected in the first time period may be input to the neural network to obtain the environmental status, which will be described later.
The optical parameters may also be combined with the motion parameters to determine the environmental state in which the terminal device is located.
For example, in a normal case, the environmental state is determined by the motion parameters acquired by the motion sensor within a preset time, and in the process, if there is an optical parameter exceeding a first parameter threshold, the environmental state can be directly determined as an outdoor state, and if there is no optical parameter exceeding a second parameter threshold all the time within a second preset time period, the environmental state can be directly determined as an indoor state.
For example, when the first parameter threshold is 2000lux and the second parameter threshold is 20lux, the environmental state may be determined by the motion parameter when the collected illuminance value is between 20lux and 2000lux, so as to improve accuracy of the determination result of the environmental state, and when at least one time of the ambient light with the illuminance value greater than 2000lux occurs or no ambient light with the illuminance value greater than 20lux occurs within 20s, the environmental state may be determined directly according to the optical parameter, so as to reduce operation pressure of the terminal device and improve determination efficiency of the environmental state.
In step S102, in response to the switching of the environmental state, a target adjustment mode of the brightness of the display screen is determined according to an optical parameter difference acquired by the optical sensor before and after the switching of the environmental state.
Because the switching of the indoor and outdoor states is usually accompanied by the change of the ambient light intensity in a larger degree, when the ambient states are switched, the light change difference of the environment where the terminal device is located can be determined according to the difference between the specific optical parameters before and after the switching, and different display screen brightness adjusting modes can be selected according to the difference, so that the brightness adjusting process of the display screen is consistent with the visual adaptation process of a user.
And the environment state is switched, and the environment state representing the environment where the current terminal equipment is located is switched from the indoor state to the outdoor state or from the outdoor state to the indoor state.
Specifically, determining the adjustment mode of the display screen according to the optical parameter difference can be implemented by the following method:
first, when the optical parameter difference is smaller than a first threshold, a first adjustment mode corresponding to a first mapping relationship is determined as the target adjustment mode.
Illustratively, the optical parameter being smaller than the first threshold value may be represented by the following formula (1):
|L curr -L prev |<x 1 (1)
in the formula (1), L curr The optical parameter after representing the environmental state switching can be an optical parameter mean value L acquired within 5min after the environmental state switching prev The optical parameter before representing the environmental state switching can be an optical parameter value x acquired before the environmental state switching 1 The first threshold value is characterized, for example 1000lux or 2000lux.
The optical parameter difference is smaller than a first threshold value, the brightness difference of the ambient light is smaller before and after representing the switching of the ambient state, and the brightness value of the display screen can be adjusted by adopting a default adjusting mode of the terminal device.
Fig. 2 is a schematic diagram of a mapping curve according to an exemplary embodiment of the present disclosure, as shown in fig. 2, the mapping curve represents a mapping relationship between an optical parameter detected by an optical sensor and a brightness value of a display screen. The brightness value of the display screen is increased under the condition that the optical parameters are increased, so that a user can read the display content of the display screen under a strong light environment, and the brightness of the display screen is reduced under the condition that the optical parameters are reduced, so that the user does not feel dazzling when reading the display content under a weak light environment.
The first mapping relation represents a default mapping relation of the terminal device, and the brightness value of the display screen is adjusted by adopting a first adjusting mode under the condition that the brightness difference of the ambient light is small before and after the switching of the ambient state, so that the brightness of the display screen can be adjusted to the brightness value corresponding to the optical parameter in a conventional change interval, and the brightness adjusting process of the display screen corresponds to the visual adaptation process of the user.
And then, under the condition that the optical parameter difference is not smaller than a first threshold value and the optical parameter after the environmental state is switched is smaller than the optical parameter before the environmental state is switched, determining a second adjusting mode corresponding to a second mapping relation as the target adjusting mode, wherein the average change rate of the second mapping relation is smaller than the first mapping relation.
For example, the optical parameter difference is not less than the first threshold, and the optical parameter after the environmental state is switched to be less than the optical parameter before the environmental state is switched can be represented by formula (2):
L curr -L prev >x 1 (2)
in the formula (2), L curr Can be characterized as the mean value, the minimum value or the nearest local minimum value, relative, L of the optical parameters collected within 5min after the environmental state is switched prev It can be characterized as the mean, maximum, or nearest local maximum of the optical parameters collected within 5min before the environmental state switch.
The optical parameter difference is not less than a first threshold, and the optical parameter after the environmental state switching is less than the optical parameter before the switching, so that the terminal equipment is characterized by being switched from a strong light environment to a weak light environment with a larger brightness difference. A second adjustment mode corresponding to the second mapping relationship may be adopted as the target adjustment mode.
As shown in fig. 2, the average change rate of the second mapping relationship is smaller than that of the first mapping relationship, that is, in the process of decreasing the light parameter, the decrease degree of the brightness value of the display screen is lower than that in the first mapping relationship, so that the brightness value of the display screen is decreased at a slower speed after the terminal device enters a low-light environment, and the lowest value of the brightness is lower than the default lowest value. The user is made to get into the low light environment by the highlight environment, and under the condition that the vision still does not adapt to ambient brightness, can not lead to the user to be difficult to read the demonstration content of display screen because of the decline degree of display screen luminance is too big, and makes display screen luminance be in lower interval all the time under the low light environment, promotes user and uses experience.
In addition to the above formula, it can be expressed by formula (3) or formula (4) that the optical parameter difference is not less than the first threshold, and the optical parameter after the environmental state is switched is less than the optical parameter before the switching:
Figure BDA0003957990620000121
Figure BDA0003957990620000122
in equation (4), max (0,L) pick ) Characterized by the maximum, or nearest local maximum, of the optical parameter acquired within 5min before the switching of the environmental state.
It is understood that any formula capable of representing the magnitude relationship between the optical parameters before and after the environmental state is switched may be used as the criterion for determining the optical parameter difference, and the details of the disclosure are not repeated herein.
And finally, under the condition that the optical parameter difference is not less than a first threshold value and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, determining a third adjusting mode corresponding to a third mapping relation as the target adjusting mode, wherein the average change rate of the third mapping relation is greater than the first mapping relation.
For example, the optical parameter difference is not less than the first threshold, and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, which can be represented by formula (5):
L prev -L curr >x 1 (5)
in the formula (5), L curr Can be characterized as the mean value, the maximum value or the nearest local maximum value, relative, L of the optical parameters collected within 5min after the environmental state is switched prev Can be characterized as the mean, minimum, or nearest local minimum of the optical parameters collected within 5min before the environmental state switch.
The optical parameter difference is not less than the first threshold, and the optical parameter after the environmental state switching is greater than the optical parameter before the switching, which represents that the terminal device is switched from the low-light environment to the high-light environment with a larger brightness difference, and a third adjusting mode corresponding to a third mapping relation can be adopted as the target adjusting mode.
As shown in fig. 2, the average change rate of the third mapping relationship is greater than the first mapping relationship, that is, in the process of the light parameter rising, the rising degree of the brightness value of the display screen is higher than the rising degree in the first mapping relationship, so that the brightness value of the display screen is increased at a higher speed after the terminal device enters a strong light environment, and the maximum value of the brightness is greater than the default maximum value. Make the user get into the highlight environment by the low light environment after, can not lead to the user to be difficult to read the display content of display screen because of the ascending degree of display screen luminance is low excessively, and make display screen luminance be in higher interval all the time under the highlight environment, promote user experience.
In step S103, the brightness value of the display screen is adjusted according to the target adjustment mode and the optical parameter.
After the target adjusting mode is determined based on the optical parameter difference before and after the environmental state switching, the brightness value of the display screen can be adjusted according to the mapping relation corresponding to the target adjusting mode, so that the brightness adjusting mode of the display screen is always matched with the environment where the terminal device is located, and a user can read the display content conveniently.
According to the method, the environmental state of the terminal device is determined through the optical parameters collected by the optical sensor and/or the motion parameters collected by the motion sensor, and the target adjusting mode of the brightness of the display screen is determined according to the difference of the optical parameters collected by the optical sensor before and after the environmental state is switched when the environmental state is switched, so that when a user performs indoor and outdoor switching and the difference of the brightness of the ambient light is large, the brightness adjusting process of the display screen can be reasonably matched with the visual adaptation process of the user, and the user can still conveniently read the display content of the display screen after the environmental state is switched.
In an optional embodiment, the brightness modes of the display screen may further correspond to different brightness value change rates respectively, where the brightness value change rate of the display screen corresponding to the second adjustment mode is lower than that of the first adjustment mode, and the brightness value change rate of the display screen corresponding to the third adjustment mode is higher than that of the first adjustment mode.
The target adjusting mode is a second adjusting mode, which represents that the current user enters a weak light environment from a strong light environment, and the brightness value of the display screen is reduced at a lower speed, so that the user can enter the weak light environment from the strong light environment, and the display screen cannot be rapidly darkened due to the fact that the brightness of the display screen is reduced too fast under the condition that the vision is not adaptive to the ambient brightness, and the user cannot easily read the display content of the display screen
The target adjusting mode is a third adjusting mode, the target adjusting mode represents that the current user enters a strong light environment from a weak light environment, and the brightness value of the display screen is increased at a high speed, so that the situation that the user enters the strong light environment from the weak light environment can be avoided, and the situation that the user is difficult to read the display content of the display screen due to the fact that the increasing speed of the brightness of the display screen is too low can be avoided.
On the basis, in response to the terminal device being switched from an indoor state to an outdoor state, the change rate of the brightness value of the display screen in the target adjustment mode can be corrected in an accelerated manner; and in response to the terminal device being switched from the outdoor state to the indoor state, the display screen brightness value change rate in the target adjustment mode can be subjected to deceleration correction.
When a user enters the outdoor environment from the indoor environment, the complexity of the ambient light is increased, and the change rate of the brightness value of the display screen is properly increased, so that the brightness of the display screen can be timely adjusted according to the optical parameters, and the change of the light of the outdoor environment can be timely adapted.
And in the process that the user enters the room from the outdoor place, the complexity of the ambient light is usually properly reduced, and at the moment, the change rate of the brightness value of the display screen is reduced, so that the influence on the use experience of the user caused by sudden change of the brightness of the display screen can be avoided.
For the above embodiments, the various target adjustment modes shown in the present disclosure are as follows:
determining a first adjustment mode as the target adjustment mode in response to a user switching from an indoor/outdoor low-light environment to an indoor/outdoor low-light environment or from an indoor/outdoor high-light environment to an indoor/outdoor high-light environment, wherein the change rate is V, preferably, the change rate at which an indoor high-light environment is switched to an outdoor high-light environment may be increased to 3V and gradually decreased to V within 10 s;
determining a second adjustment mode as the target adjustment mode in response to a user switching from an indoor high light environment to an outdoor low light environment, wherein the rate of change is V;
in response to a user switching from an outdoor high light environment to an indoor low light environment, determining a second adjustment mode as the target adjustment mode, wherein the rate of change is 0.5V and is incrementally increased to V over 10 s;
determining a third adjustment mode as the target adjustment mode in response to a user switching from an indoor low-light environment to an outdoor high-light environment, wherein the rate of change is 5V and is gradually decreased to V within 10 s;
determining a third adjustment mode as the target adjustment mode in response to the user switching from an outdoor low-light environment to an indoor high-light environment, wherein the rate of change is 2V and is gradually decreased to V within 10 s;
according to the method, different display screen brightness value change rates are selected according to the optical parameter difference and the environment state type in the environment state switching process, so that the brightness adjustment speed of the display screen can be reasonably matched with the visual adaptation process of a user, and the user can still conveniently and rapidly read the display content of the display screen after the environment state is switched.
In an alternative embodiment, the target adjustment mode may also be determined by user daily preferences.
First, during the user's daily use of the terminal device, the third neural network may be trained to converge using the brightness values of the display screen set by the user under different environmental conditions and optical parameters.
For example, in response to the user switching from an indoor high-light environment to an outdoor low-light environment, if the user actively adjusts the brightness value of the display screen, the brightness value adjustment result collected in this state may be input to the third neural network for training.
The display screen brightness values used for training are all marked with environment state switching results and optical parameter difference change results corresponding to the acquisition time, so that the trained third neural network can represent the mapping relation between each environment state switching result, each optical parameter change result and each display screen brightness value adjustment result (namely, the adjustment mode).
If the user sets the brightness value of the display screen only under partial environmental conditions and optical parameters, and the adjustment modes under all conditions cannot be obtained through training due to fewer data samples, the corresponding adjustment brightness values of other similar users can be selected as supplementary training data according to the clustering result of the user information.
Under the condition that the user allows the terminal equipment to collect partial desensitization information, the brightness value adjusting data of the display screen of the user with similar identity information can be selected and input to the third neural network according to information such as age and gender of the user as clusters.
Under the condition that the user does not allow the terminal device to collect partial desensitization information, the display screen brightness value adjusting data of the user with similar comparison results can be selected to be input to the third neural network by comparing the display screen brightness value setting results with other users based on partial environment states and optical parameters input by the user.
After the third neural network is trained to converge, in response to the switching of the environmental state, a current environmental state switching result and an optical parameter difference may be input to the third neural network, so as to obtain a target adjustment mode corresponding to the current environmental state switching result and an optical parameter difference change result.
According to the method, the adjustment mode corresponding to the switching result of the current environment state of the user and the change result of the optical parameter difference is obtained based on the neural network obtained by training the display screen brightness value setting data of the user in different environment states and light states, so that the target adjustment mode is more personalized and accords with the daily use preference of the user.
In an alternative embodiment, the method for determining an environmental status according to an exemplary embodiment of the present disclosure is shown in fig. 3, and specifically includes steps S101A to S101C.
In step S101A, at each first sampling time, the motion parameters acquired by the motion sensor within the first sampling time duration are input to the first neural network, so as to obtain a classification result of the motion state at the current time, where the motion state represents a type of a vehicle taken by the user or a type of a motion performed by the user, and the classification result includes a type of an initial motion state and a probability value.
For example, the interval of each first sampling time may be 0.5s, the first sampling duration is 1.6s, that is, the motion parameter (e.g., I MU data) in 1.6s may be read at 25Hz every 0.5s interval and input to the first neural network, so as to obtain the motion state classification result at the current time, that is, the motion state with the maximum probability of the current user and the corresponding probability value.
The motion state characterizes a vehicle in which the user is sitting or a type of motion performed by the user, such as stationary, riding an electric car, a plane, or walking, running, climbing stairs, cycling, etc.
Illustratively, the training method of the first neural network includes:
the method comprises the steps of collecting I MU data of three axes of an accelerometer and three axes of a gyroscope of a terminal device in advance in various motion states of a user, inputting the I MU data as a training data set to a neural network at a frequency of 25hz, and carrying out optimization adjustment on network parameters based on an I oss value.
In a preferred embodiment, before inputting the motion parameters acquired by the motion sensor for the first sampling period to the first neural network, the method further comprises:
at each first sampling moment, inputting the motion parameters acquired by the motion sensor in the first sampling duration into a third neural network to obtain a preliminary classification result of the motion state, wherein the preliminary classification result comprises relative stillness or relative motion;
in response to the fact that the preliminary classification result is relatively static, inputting motion parameters acquired by a motion sensor in a first sampling time length to a first class neural network to obtain a classification result of the motion state at the current moment;
and responding to the relative motion of the preliminary classification result, inputting the motion parameters acquired by the motion sensor in the first sampling time length to a second type of neural network, and obtaining the classification result of the motion state at the current moment.
The motion parameters may be pre-classified through a third neural network to obtain a preliminary classification result of the motion state of the user, for example, the relative motion state is stationary, the relative motion state is taken by an electric vehicle, an automobile, an airplane, and the relative motion state is taken by walking, running, going upstairs, riding a bicycle, etc.
After the preliminary classification result of the user is determined, the preliminary classification result is respectively input to the corresponding neural networks so as to obtain a more accurate classification result of the motion state.
The first type of neural network can train the motion parameters of the user in a relatively static motion state as a training data set, and the second type of neural network can train the motion parameters of the user in a relatively moving motion state as a training data set.
In step S101B, at each second sampling time, the motion state of the target at the current time is determined according to the motion state classification results at the plurality of first sampling times within the second sampling duration.
For example, the interval of each second sampling time may be 10s, and the second sampling time duration is 10s, that is, 20 motion state classification results obtained every 0.5s in 10s may be obtained every 10s, and the target motion state may be determined according to the obtained motion state classification results. For example, if the motion state representing that the user is riding the electric vehicle is the most and the probability mean value is greater than a preset probability value (e.g., 90%) in the 20 calculation results within 10s, it may be determined that the target motion state at the current time is riding the electric vehicle.
Preferably, the second sampling time may be adjusted according to the preliminary classification result, for example: and adjusting the interval between the second sampling moments to 10s in response to the preliminary classification result being relatively static, and adjusting the interval between the second sampling moments to 2min in response to the preliminary classification result being relatively moving, wherein when the user is in a relative movement state, the switching frequency of the movement types is generally large, and the accuracy of the calculation result of the target movement state can be improved by appropriately expanding the data samples.
For example, 240 motion state classification results obtained every 0.5s within 2min may be obtained every 2min, and the target motion state may be determined according to the obtained motion state classification results. For example, if the exercise state representing that the user is running is the most and the probability mean value is greater than a preset probability value (for example, 70%) in 120 calculation results within 2min, it may be determined that the target exercise state at the current time is running.
Preferably, after determining the current target motion state, the method further comprises:
acquiring a preset reference range of a motion parameter corresponding to the motion state of a current target;
and determining the target motion state at the current moment again in response to the fact that the motion parameter corresponding to the target motion state is not in the preset reference range.
For example, when the target motion state is determined to be walking, the motion parameters in the first 10s may be compared with a preset reference range corresponding to the walking state, and if the motion parameters are not within the range, the previous target motion state result may be discarded, and the target state at the current time may be determined again, so as to improve the accuracy of the target state calculation result.
In step S101C, at each third sampling time, the target motion states at a plurality of second sampling times within the third sampling time duration are input to the second neural network, so as to obtain the environmental state of the terminal device at the current time.
For example, 360 target motion states determined every 10s within 60min may be obtained every 10s at intervals of 10s and input to the second neural network, so as to obtain an environmental state of the terminal device at the current time, that is, the terminal device is in an indoor state or an outdoor state.
The underlying logic for determining the environmental status by means of the motion status is that the type and the timing of the motion status of the user are generally highly correlated with the environmental status, for example, in case the user is in an indoor status, the motion status is generally focused on relative rest, walking, going upstairs and downstairs, etc., and in case the user is in an outdoor status, the motion status is generally focused on relative motion, electric vehicles, etc.
Illustratively, the training method of the second neural network includes:
the method comprises the steps of collecting target motion types of a user in an indoor state and an outdoor state in advance, using the target motion types as training data sets, inputting the training data sets into a neural network at a frequency of 10s within 60min according to a time sequence, and carrying out optimization adjustment on network parameters based on loss values, wherein the neural network can comprise networks containing data time sequence relations, such as RNN (neural network), transform and the like.
The method disclosed by the disclosure is based on the neural network, the motion type of the user is determined through the motion parameters acquired by the motion sensor, and the environment state of the terminal equipment is determined, so that the misjudgment of the environment state caused by the interference of the environment light is avoided, and the accuracy of the calculation result of the environment state is improved.
While, for purposes of simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present disclosure is not limited by the order of acts, as some steps may, in accordance with the present disclosure, occur in other orders and concurrently.
Further, those skilled in the art should also appreciate that the embodiments described in the specification are exemplary embodiments and that acts and modules referred to are not necessarily required by the disclosure.
Corresponding to the embodiment of the application function implementation method, the disclosure also provides an embodiment of an application function implementation device and a corresponding terminal.
A block diagram of a display screen brightness control apparatus shown in an exemplary embodiment of the present disclosure is shown in fig. 4, and is applied to a terminal device provided with an optical sensor, a motion sensor, and a display screen, where the apparatus includes:
an environment state determination module 401 configured to: determining the environment state of the terminal equipment according to the optical parameters acquired by the optical sensor and/or the motion parameters acquired by the motion sensor, wherein the environment state comprises an indoor state or an outdoor state;
an adjustment mode determination module 402 to: responding to the switching of the environment state, and determining a target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state;
the brightness adjustment module 403: and adjusting the brightness value of the display screen according to the target adjusting mode and the optical parameters.
With reference to any embodiment of the present disclosure, when determining the environmental status of the terminal device according to the motion parameter acquired by the motion sensor, the environmental status determining module is specifically configured to:
at each first sampling moment, inputting motion parameters acquired by a motion sensor within a first sampling duration into a first neural network to obtain a classification result of a motion state at the current moment, wherein the motion state represents a vehicle taken by a user or a motion type executed by the user, and the classification result comprises a type and a probability value of an initial motion state;
at each second sampling moment, determining the target motion state at the current moment according to the motion state classification results of a plurality of first sampling moments in the second sampling duration;
and at each third sampling moment, inputting the target motion states of a plurality of second sampling moments in the third sampling duration into a second neural network to obtain the environmental state of the terminal equipment at the current moment.
In combination with any of the embodiments of the present disclosure, the first neural network includes a first type of neural network and a second type of neural network;
before the motion parameters acquired by the motion sensor in the first sampling time period are input into the first neural network, the device further comprises a pre-classification module used for:
at each first sampling moment, inputting the motion parameters acquired by the motion sensor in the first sampling duration into a third neural network to obtain a preliminary classification result of the motion state, wherein the preliminary classification result comprises relative stillness or relative motion;
the step of inputting the motion parameters collected by the motion sensor in the first sampling duration to the first neural network to obtain the classification result of the motion state at the current moment includes:
in response to the fact that the preliminary classification result is relatively static, inputting motion parameters acquired by a motion sensor in a first sampling time length to a first class neural network to obtain a classification result of the motion state at the current moment;
and responding to the relative motion of the preliminary classification result, inputting the motion parameters acquired by the motion sensor in the first sampling time length to a second type of neural network, and obtaining the classification result of the motion state at the current moment.
With reference to any embodiment of the present disclosure, after determining the current target motion state, the apparatus further includes a checking module, configured to:
acquiring a preset reference range of a motion parameter corresponding to the current target motion state;
and determining the target motion state at the current moment again in response to the fact that the motion parameter corresponding to the target motion state is not in the preset reference range.
With reference to any embodiment of the present disclosure, when determining the environmental status of the terminal device according to the optical parameter acquired by the optical sensor, the environmental status determining module is specifically configured to:
responding to the optical parameters exceeding the first parameter threshold value in the first preset time, and determining that the current environmental state of the terminal equipment is an outdoor state or;
and responding to the situation that no optical parameter exceeding a second parameter threshold exists within a second preset time length, and determining that the current environmental state of the terminal equipment is an indoor state.
With reference to any embodiment of the present disclosure, when the adjustment mode determining module, in response to the switching of the environmental status, determines a target adjustment mode of the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after the switching of the environmental status, the adjustment mode determining module is specifically configured to:
determining a first adjusting mode corresponding to a first mapping relation as the target adjusting mode under the condition that the optical parameter difference is smaller than a first threshold value;
determining a second adjustment mode corresponding to a second mapping relation as the target adjustment mode under the condition that the optical parameter difference is not smaller than a first threshold value and the optical parameter after the environmental state is switched is smaller than the optical parameter before the environmental state is switched, wherein the average change rate of the second mapping relation is smaller than the first mapping relation;
and under the condition that the optical parameter difference is not less than a first threshold value and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, determining a third adjusting mode corresponding to a third mapping relation as the target adjusting mode, wherein the average change rate of the third mapping relation is greater than the first mapping relation.
With reference to any embodiment of the present disclosure, the rate of change of the brightness value of the display screen corresponding to the second adjustment mode is lower than that of the first adjustment mode, and the rate of change of the brightness value of the display screen corresponding to the third adjustment mode is higher than that of the first adjustment mode.
In combination with any embodiment of the present disclosure, the apparatus further includes an acceleration correction module configured to:
and responding to the terminal equipment switched from an indoor state to an outdoor state, and performing accelerated correction on the change rate of the brightness value of the display screen in the target adjusting mode.
In combination with any embodiment of the present disclosure, the apparatus further includes a deceleration correction module configured to:
and in response to the terminal equipment being switched from the outdoor state to the indoor state, carrying out deceleration correction on the change rate of the brightness value of the display screen in the target adjustment mode.
In combination with any embodiment of the present disclosure, the apparatus further includes a personalized learning module configured to:
training a third neural network to converge by using the brightness value of the display screen set by the user under different environmental states and optical parameters;
the adjustment mode determining module is specifically configured to, when determining a target adjustment mode of the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after the switching of the environmental state in response to the switching of the environmental state:
and inputting the current environmental state switching result and the optical parameter difference into the third neural network to obtain a target adjusting mode corresponding to the current environmental state switching result and the optical parameter difference change result.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
FIG. 5 illustrates a block diagram of an electronic device in accordance with an exemplary embodiment of the present disclosure.
Referring to fig. 5, a block diagram of an electronic device is shown for illustrative purposes. For example, the apparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communications component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operation at the device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 506 provide power to the various components of device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor component 514 may detect an open/closed state of the apparatus 500, the relative positioning of components, such as a display and keypad of the apparatus 500, the sensor component 514 may detect a change in position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The device 500 may access a wireless network based on a communication standard, such as WiFi,2G or 3g,4g or 5G or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 516 includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on radio frequency identification (RFI D) technology, infrared data association (I rDA) technology, ultra-wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASI C), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the power supply method of the electronic device.
The present disclosure provides, in an exemplary embodiment, a non-transitory computer-readable storage medium, such as the memory 504, including instructions executable by the processor 520 of the apparatus 500 to perform the method of powering the electronic device described above. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (22)

1. A display screen brightness control method is applied to a terminal device provided with an optical sensor, a motion sensor and a display screen, and comprises the following steps:
determining the environment state of the terminal equipment according to the optical parameters acquired by the optical sensor and/or the motion parameters acquired by the motion sensor, wherein the environment state comprises an indoor state or an outdoor state;
responding to the switching of the environment state, and determining a target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state;
and adjusting the brightness value of the display screen according to the target adjusting mode and the optical parameters.
2. The method according to claim 1, wherein the determining the environmental state of the terminal device according to the motion parameters collected by the motion sensor comprises:
at each first sampling moment, inputting motion parameters acquired by a motion sensor within a first sampling duration into a first neural network to obtain a classification result of a motion state at the current moment, wherein the motion state represents a vehicle taken by a user or a motion type executed by the user, and the classification result comprises a type and a probability value of an initial motion state;
at each second sampling moment, determining the target motion state at the current moment according to the motion state classification results of a plurality of first sampling moments in the second sampling duration;
and at each third sampling moment, inputting the target motion states of a plurality of second sampling moments within the third sampling duration into the second neural network to obtain the environmental state of the terminal equipment at the current moment.
3. The method of claim 2, wherein the first neural network comprises a first type of neural network and a second type of neural network;
before inputting the motion parameters acquired by the motion sensor for the first sampling duration into the first neural network, the method further comprises:
at each first sampling moment, inputting the motion parameters acquired by the motion sensor in the first sampling duration into a third neural network to obtain a preliminary classification result of the motion state, wherein the preliminary classification result comprises relative stillness or relative motion;
the step of inputting the motion parameters collected by the motion sensor in the first sampling duration to the first neural network to obtain the classification result of the motion state at the current moment includes:
in response to the fact that the preliminary classification result is relatively static, inputting motion parameters acquired by a motion sensor in a first sampling time length to a first class neural network to obtain a classification result of the motion state at the current moment;
and responding to the relative motion of the preliminary classification result, inputting the motion parameters acquired by the motion sensor in the first sampling time length to a second type of neural network, and obtaining the classification result of the motion state at the current moment.
4. The method of claim 2 or claim 3, wherein after determining the current target motion state, the method further comprises:
acquiring a preset reference range of a motion parameter corresponding to the current target motion state;
and determining the target motion state at the current moment again in response to the fact that the motion parameter corresponding to the target motion state is not in the preset reference range.
5. The method of claim 1, wherein determining the environmental status of the terminal device according to the optical parameters collected by the optical sensor comprises:
responding to the optical parameters exceeding the first parameter threshold value in the first preset time, and determining that the current environmental state of the terminal equipment is an outdoor state or;
and responding to the situation that no optical parameter exceeding a second parameter threshold exists within a second preset time length, and determining that the current environmental state of the terminal equipment is an indoor state.
6. The method of claim 1, wherein the determining a target adjustment mode for the brightness of the display screen based on the difference between the optical parameters collected by the optical sensor before and after the environmental state switch in response to the environmental state switch comprises:
determining a first adjusting mode corresponding to a first mapping relation as the target adjusting mode under the condition that the optical parameter difference is smaller than a first threshold value;
determining a second adjustment mode corresponding to a second mapping relation as the target adjustment mode under the condition that the optical parameter difference is not smaller than a first threshold value and the optical parameter after the environmental state is switched is smaller than the optical parameter before the environmental state is switched, wherein the average change rate of the second mapping relation is smaller than the first mapping relation;
and under the condition that the optical parameter difference is not less than a first threshold value and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, determining a third adjusting mode corresponding to a third mapping relation as the target adjusting mode, wherein the average change rate of the third mapping relation is greater than the first mapping relation.
7. The method of claim 6, wherein the second adjustment mode corresponds to a lower rate of change of the brightness values of the display screen than the first adjustment mode, and wherein the third adjustment mode corresponds to a higher rate of change of the brightness values of the display screen than the first adjustment mode.
8. The method of claim 6 or claim 7, further comprising:
and responding to the terminal equipment switched from an indoor state to an outdoor state, and performing accelerated correction on the change rate of the brightness value of the display screen in the target adjusting mode.
9. The method of claim 6 or claim 7, further comprising:
and in response to the terminal equipment being switched from the outdoor state to the indoor state, carrying out deceleration correction on the change rate of the brightness value of the display screen in the target adjustment mode.
10. The method of claim 1, further comprising:
training a third neural network to converge by using the brightness value of the display screen set by the user under different environmental states and optical parameters;
the responding to the switching of the environment state, and determining the target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state comprises the following steps:
and inputting the current environmental state switching result and the optical parameter difference into the third neural network to obtain a target adjusting mode corresponding to the current environmental state switching result and the optical parameter difference change result.
11. A display screen brightness control device is applied to a terminal device provided with an optical sensor, a motion sensor and a display screen, the device comprising:
an environmental state determination module to: determining the environment state of the terminal equipment according to the optical parameters acquired by the optical sensor and/or the motion parameters acquired by the motion sensor, wherein the environment state comprises an indoor state or an outdoor state;
an adjustment mode determination module to: responding to the switching of the environment state, and determining a target adjusting mode of the brightness of the display screen according to the optical parameter difference collected by the optical sensor before and after the switching of the environment state;
a brightness adjusting module: and adjusting the brightness value of the display screen according to the target adjusting mode and the optical parameters.
12. The apparatus according to claim 11, wherein the environment state determining module, when determining the environment state of the terminal device according to the motion parameter acquired by the motion sensor, is specifically configured to:
at each first sampling moment, inputting motion parameters acquired by a motion sensor within a first sampling duration into a first neural network to obtain a classification result of a motion state at the current moment, wherein the motion state represents a vehicle taken by a user or a motion type executed by the user, and the classification result comprises a type and a probability value of an initial motion state;
at each second sampling moment, determining the target motion state at the current moment according to the motion state classification results of a plurality of first sampling moments in the second sampling duration;
and at each third sampling moment, inputting the target motion states of a plurality of second sampling moments within the third sampling duration into the second neural network to obtain the environmental state of the terminal equipment at the current moment.
13. The apparatus of claim 12, wherein the first neural network comprises a first type of neural network and a second type of neural network;
before inputting the motion parameters acquired by the motion sensor in the first sampling time period into the first neural network, the device further comprises a pre-classification module for:
at each first sampling moment, inputting the motion parameters acquired by the motion sensor in the first sampling duration into a third neural network to obtain a preliminary classification result of the motion state, wherein the preliminary classification result comprises relative stillness or relative motion;
the step of inputting the motion parameters collected by the motion sensor in the first sampling duration to the first neural network to obtain the classification result of the motion state at the current moment includes:
in response to the fact that the preliminary classification result is relatively static, inputting motion parameters acquired by a motion sensor in a first sampling time length to a first class neural network to obtain a classification result of the motion state at the current moment;
and responding to the relative motion of the preliminary classification result, inputting the motion parameters acquired by the motion sensor in the first sampling time length to a second type of neural network, and obtaining the classification result of the motion state at the current moment.
14. The apparatus of claim 12 or claim 13, wherein after determining the current state of motion of the object, the apparatus further comprises a verification module for:
acquiring a preset reference range of a motion parameter corresponding to the motion state of a current target;
and determining the target motion state at the current moment again in response to the fact that the motion parameter corresponding to the target motion state is not in the preset reference range.
15. The apparatus according to claim 11, wherein the environment state determining module, when determining the environment state of the terminal device according to the optical parameter acquired by the optical sensor, is specifically configured to:
responding to the optical parameters exceeding the first parameter threshold value in the first preset time, and determining that the current environmental state of the terminal equipment is an outdoor state or;
and responding to the situation that no optical parameter exceeding a second parameter threshold exists within a second preset time length, and determining that the current environmental state of the terminal equipment is an indoor state.
16. The apparatus of claim 11, wherein the adjustment mode determining module, when switching in response to the environmental state, is configured to determine a target adjustment mode for the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after switching the environmental state, and is specifically configured to:
determining a first adjusting mode corresponding to a first mapping relation as the target adjusting mode under the condition that the optical parameter difference is smaller than a first threshold value;
determining a second adjustment mode corresponding to a second mapping relation as the target adjustment mode under the condition that the optical parameter difference is not smaller than a first threshold value and the optical parameter after the environmental state is switched is smaller than the optical parameter before the environmental state is switched, wherein the average change rate of the second mapping relation is smaller than the first mapping relation;
and under the condition that the optical parameter difference is not less than a first threshold value and the optical parameter after the environmental state is switched is greater than the optical parameter before the environmental state is switched, determining a third adjusting mode corresponding to a third mapping relation as the target adjusting mode, wherein the average change rate of the third mapping relation is greater than the first mapping relation.
17. The apparatus of claim 16, wherein the second adjustment mode corresponds to a lower rate of change of the brightness value of the display screen than the first adjustment mode, and wherein the third adjustment mode corresponds to a higher rate of change of the brightness value of the display screen than the first adjustment mode.
18. The apparatus of claim 16 or claim 17, further comprising an acceleration correction module to:
and in response to the terminal equipment being switched from an indoor state to an outdoor state, carrying out accelerated correction on the change rate of the brightness value of the display screen in the target adjustment mode.
19. The apparatus of claim 16 or claim 17, further comprising a deceleration correction module to:
and in response to the terminal equipment being switched from the outdoor state to the indoor state, carrying out deceleration correction on the change rate of the brightness value of the display screen in the target regulation mode.
20. The apparatus of claim 11, further comprising a personalized learning module to:
training a third neural network to converge by using the brightness value of the display screen set by the user under different environmental states and optical parameters;
the adjustment mode determining module is specifically configured to, when determining a target adjustment mode of the brightness of the display screen according to an optical parameter difference acquired by the optical sensor before and after the switching of the environmental state in response to the switching of the environmental state:
and inputting the current environmental state switching result and the optical parameter difference into the third neural network to obtain a target adjusting mode corresponding to the current environmental state switching result and the optical parameter difference change result.
21. An electronic device, characterized in that the electronic device comprises:
a memory for storing processor-executable instructions;
a processor configured to execute executable instructions in the memory to implement the steps of the method of any one of claims 1 to 10.
22. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 10.
CN202211469565.5A 2022-11-22 2022-11-22 Display screen brightness control method and device, electronic equipment and readable storage medium Pending CN115756286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211469565.5A CN115756286A (en) 2022-11-22 2022-11-22 Display screen brightness control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211469565.5A CN115756286A (en) 2022-11-22 2022-11-22 Display screen brightness control method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115756286A true CN115756286A (en) 2023-03-07

Family

ID=85335380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211469565.5A Pending CN115756286A (en) 2022-11-22 2022-11-22 Display screen brightness control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115756286A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117857916A (en) * 2024-03-08 2024-04-09 深圳市元亨光电股份有限公司 MINI LED display method and device based on artificial intelligence

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117857916A (en) * 2024-03-08 2024-04-09 深圳市元亨光电股份有限公司 MINI LED display method and device based on artificial intelligence

Similar Documents

Publication Publication Date Title
CN104039040B (en) The control method and device of intelligent lamp
US11158027B2 (en) Image capturing method and apparatus, and terminal
CN111128091B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
WO2022242213A9 (en) Refresh rate adjustment method and electronic device
CN106778623A (en) Terminal screen control method and device and electronic equipment
CN112202962B (en) Screen brightness adjusting method and device and storage medium
CN109785815B (en) Screen brightness adjusting method and mobile terminal
CN112000305B (en) Screen color temperature adjustment method and device
CN111813062A (en) Intelligent household equipment control method and device and storage medium
CN109522058B (en) Wake-up method, device, terminal and storage medium
CN115756286A (en) Display screen brightness control method and device, electronic equipment and readable storage medium
CN105700277B (en) Projection brightness adjusting method and device
CN111382599A (en) Image processing method and device and electronic equipment
CN111385400A (en) Backlight brightness adjusting method and device
CN109151217B (en) Backlight mode adjusting method and device
CN110708475A (en) Exposure parameter determination method, electronic equipment and storage medium
CN112086075A (en) Screen display parameter adjusting method and device and storage medium
CN114612635A (en) Method and device capable of switching between augmented reality mode and virtual reality mode
CN109711282A (en) Light adjusting method and device
CN106128415B (en) Screen luminance adjustment method and device
CN108597456B (en) Backlight brightness adjusting method and device
CN113241044B (en) Screen brightness adjusting method, device, equipment and storage medium
CN111897477A (en) Mobile terminal control method, mobile terminal and storage medium
CN112017598A (en) Backlight brightness adjusting method and device

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